<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>产品专题列表管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel='stylesheet' type='text/css' href='__PUBLIC__/css/admin-style.css' />
<script language="JavaScript" type="text/javascript" charset="utf-8" src="__PUBLIC__/jquery/jquery-1.7.2.min.js"></script>
<script language="JavaScript" type="text/javascript" charset="utf-8" src="__PUBLIC__/js/admin.js"></script>
<!--专题管理ajax相关操作 -->
<script language="javascript">
function special_chanpin($did,$type,$lastdid){
	$.ajax({
		type: 'get',
		cache: false,
		url: "?s=Admin-Special-Ajax-type-"+$type+"-sid-1-tid-<?php echo ($tid); ?>-did-"+$did+"-lastdid-"+$lastdid,
		timeout: 3000, 
		success:function($html){
			$('#specialhtml').html($html);
		}
	});
}
function special_news($did,$type,$lastdid){
	$.ajax({
		type: 'get',
		cache: false,
		url: "?s=Admin-Special-Ajax-type-"+$type+"-sid-2-tid-<?php echo ($tid); ?>-did-"+$did+"-lastdid-"+$lastdid,
		timeout: 3000, 
		success:function($html){
			$('#specialhtml').html($html);
		}
	});
}
</script>
<style>
ul{ float:left; text-align:left; width:100%; overflow: hidden; position:relative}
ul li{ float:left;  margin-left:5px; line-height:21px; height:21px; clear:both; color:#999}
ul li span{ position:absolute; right:5px;}
ul li label{ float:left; margin-right:5px}
.count{color:#FF0000; padding:0px 2px}
a.up{color:green;}
a.down{ color:red; }
a.adds{ color:blue}
</style>
<script language="javascript">
$(document).ready(function(){
	special_chanpin(0,'show',0);
})
</script>
</head>
<body class="body" style="color:#333333; font-size:13px">
<div style=" width:800px; height:400px;">
<div style="float:left; width:390px">
<table border="0" cellpadding="0" cellspacing="0" class="table" style="margin-bottom:5px">
    <thead><tr class="ct"><th class="tr">已收录产品列表<label id="count" class="count"></label></th></tr></thead>
    <tr><td class="r" ><ul id="specialhtml" style="width:100%;height:378px;overflow-y:auto">loading...</ul></td></tr>
</table>
</div>
<div style="float:right; width:390px">
<table border="0" cellpadding="0" cellspacing="0" class="table">
  <thead><tr class="ct"><th class="tr">待收录产品列表</th></tr></thead>
  <tr><td class="r"><ul><?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$gxlcms): ++$i;$mod = ($i % 2 )?><li><span><a href="javascript:void(0);" onclick="special_chanpin(<?php echo ($gxlcms["chanpin_id"]); ?>,'add',0);$(this).css({color:'#999'});" class="adds">添加</a></span><label><?php echo ($gxlcms["chanpin_id"]); ?></label><a href="<?php echo ff_data_url('chanpin',$gxlcms['chanpin_id'],$gxlcms['chanpin_cid'],$gxlcms['chanpin_name'],1,'');?>" target="_blank" title="<?php echo ($gxlcms["chanpin_name"]); ?> 主演:<?php echo ($gxlcms["chanpin_actor"]); ?>"><?php echo (msubstr($gxlcms["chanpin_name"],0,24)); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?></ul></td></tr> 
</table>
</div>
<div style="clear:both" class="pages"><?php echo ($pages); ?></div>
<div><form action="?s=Admin-Chanpin-Show" method="post" name="myform" id="myform"><input name="tid" type="hidden" value="<?php echo ($tid); ?>" /><input type="text" name="wd" id="wd" maxlength="20" value="<?php echo (urldecode(($wd)?($wd):'输入关键字搜索产品')); ?>" onClick="this.select();" style="color:#666666"> <input type="button" value="搜索" class="submit" onClick="post('?s=Admin-Chanpin-Show');"></form></div>
</div>
</body>
</html>