<div class="goods-gallery" nctype="gallery-<?php echo $color_id;?>">
    <a class="sample_demo" href="{:url('/Home/Selleralbum/pic_list',['item'=>'goods_image','color_id'=>$color_id])}" style="display:none;">{$Think.lang.ds_submit}</a>
  <div class="nav"><span class="l">{$Think.lang.store_goods_album_users} >
    <?php if(isset($class_name) && $class_name != ''){echo $class_name;}else{?>
    {$Think.lang.store_goods_album_all_photo}
    <?php }?>
    </span><span class="r">
    <select name="jumpMenu" style="width:100px;">
      <option value="0" style="width:80px;">{$Think.lang.ds_please_choose}</option>
      <?php foreach($class_list as $val) { ?>
      <option style="width:80px;" value="<?php echo $val['aclass_id']; ?>" {if condition="$val.aclass_id eq $Think.param.id"}selected{/if}><?php echo $val['aclass_name']; ?></option>
      <?php } ?>
    </select>
    </span></div>
  <ul class="list">
    <?php if(!empty($pic_list)){?>
    <?php foreach ($pic_list as $v){?>
    <li onclick="insert_img('<?php echo $v['apic_cover'];?>','<?php echo thumb($v, 240);?>', <?php echo $color_id;?>);"><a href="JavaScript:void(0);"><img src="<?php echo thumb($v, 240);?>" title='<?php echo $v['apic_name']?>'/></a></li>
    <?php }?>
    <?php }else{?>
    {$Think.lang.no_record}
    <?php }?>
  </ul>
  <div class="pagination">{$show_page}</div>
</div>
<script>
$(document).ready(function(){
	$('div[nctype="gallery-<?php echo $color_id;?>"]').find('.demo').unbind().ajaxContent({
		event:'click', //mouseover
		loaderType:'img',
		loadingMsg:SITE_URL+'public/static/home/images/loading.gif',
		target:'div[nctype="album-<?php echo $color_id;?>"]'
	});
	$('div[nctype="gallery-<?php echo $color_id;?>"]').find('select[name="jumpMenu"]').unbind().change(function(){
		var $_select_submit = $('div[nctype="gallery-<?php echo $color_id;?>"]').find('.sample_demo');
		var $_href = $_select_submit.attr('href') + "?id=" + $(this).val();
		$_select_submit.attr('href',$_href);
		$_select_submit.unbind().ajaxContent({
			event:'click', //mouseover
			loaderType:'img',
			loadingMsg:SITE_URL+'public/static/home/images/loading.gif',
			target:'div[nctype="album-<?php echo $color_id;?>"]'
		});
		$_select_submit.click();
	});
});
</script>