<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>图片管理 {#$LA_poweredby#} -  Powered by GV32.COM</title>
<link rel="stylesheet" type="text/css" href="{#$base_weburl#}/templates/adminsys/css/list.css" />
<script language="javascript" src="{#$base_weburl#}/js/common.js"></script>
<script language="javascript">
	
	function pageEnter()
	{
	   var  Url = ""
	   var UrlkeyWord = document.getElementById("keywordhedden").value;
	   if(UrlkeyWord !=''){
	     Url += "&keyword="+UrlkeyWord;
	   }
	   
	   var Urlsort = document.getElementById("pis_idhedden").value;
	   if(Urlsort !=''){
	     Url += "&pis_id="+Urlsort;
	   }   
	    return Url;
	}

	//跳转页面
	function getToPage(pageNum)
	{
	   var pageNum = pageNum;
	   urlValue  = location.pathname;
	   urlValue += "?load=artlice&act=infolist&pageNum="+pageNum;
	   if(typeof(pageEnter)=="function")
	   {  
		   urlValue += pageEnter();
	   }
	   window.location = urlValue;
	}
</script>
</head>
<body>
<table  cellpadding="0" cellspacing="0" style="width:100%; ">
<tr><td><table cellpadding="0" cellspacing="0" height="22" style="width:100%; color:#000000; font-weight:normal; background-color:#67D9FF;"  >
  <tr>
    <td>&nbsp;<img src="{#$base_weburl#}/uploads/sys/h.gif"  width="15" border="0">图片管理</td>
    <td>&nbsp;</td>
    <td align="right"><a href="http://help.gv32.com/type_picture.html" target="_blank" title="点击-在线帮助"><img src="{#$base_weburl#}/images/sys/adminhelp.png"  width="21" border="0" alt="点击-在线帮助"></a>&nbsp;&nbsp;</td>
  </tr>
</table>
</td></tr>

<tr><td>
<div class="list">
<table cellpadding="0" cellspacing="1"   style="width:100%" class="tableborder">
<tbody><tr>
<td colspan="7"  class="tdleft"><form action="{#$employee_weburl#}/index.php?load=picture&act=infolist" method="post" >&nbsp;<input type="hidden" name="webroot_url"   id="webroot_url" value="{#$employee_weburl#}"  />
分类：<select name="pis_id" id="pis_id" >
<option value="">选择分类</option>
{#foreach key=key item=item from=$psInfo#}
	<option value="{#$item.pis_id#}" {#if $pis_idval eq $item.pis_id#} selected="selected" {#/if#} >{#$item.pis_name#}</option>
	{#foreach item=spitem from=$item.array#}
	<option value="{#$spitem.pis_id#}" {#if $pis_idval eq $spitem.pis_id#} selected="selected" {#/if#} >|__{#$spitem.pis_name#}</option>
	{#/foreach#}
{#/foreach#}
</select>
关键字：<input name="keyword" id="keyword" value="{#$keywordval#}"  width="100px" /><input type="submit" value="查询" /></form></td>
</tr>
<tr>
<th>{#if $listval eq 'pic_id'#}<a href="javascript:addOrderBy('pic_id','{#$listhtml#}')" >{#if $listhtml eq 'DESC'#}↑{#else#}↓{#/if#}序号</a>{#else#}<a href="javascript:addOrderBy('pic_id','DESC')" >序号</a>{#/if#}</th>
<th>{#if $listval eq 'pic_name'#}<a href="javascript:addOrderBy('pic_name','{#$listhtml#}')" >{#if $listhtml eq 'DESC'#}↑{#else#}↓{#/if#}图片标题</a>{#else#}<a href="javascript:addOrderBy('pic_name','DESC')" >图片标题</a>{#/if#}</th>
<th>{#if $listval eq 'pis_id'#}<a href="javascript:addOrderBy('pis_id','{#$listhtml#}')" >{#if $listhtml eq 'DESC'#}↑{#else#}↓{#/if#}图片分类</a>{#else#}<a href="javascript:addOrderBy('pis_id','DESC')" >图片分类</a>{#/if#}</th>
<th>{#if $listval eq 'pic_count'#}<a href="javascript:addOrderBy('pic_count','{#$listhtml#}')" >{#if $listhtml eq 'DESC'#}↑{#else#}↓{#/if#}流量</a>{#else#}<a href="javascript:addOrderBy('pic_count','DESC')" >流量</a>{#/if#}</th>
<th>{#if $listval eq 'pic_enabled'#}<a href="javascript:addOrderBy('pic_enabled','{#$listhtml#}')" >{#if $listhtml eq 'DESC'#}↑{#else#}↓{#/if#}是否显示</a>{#else#}<a href="javascript:addOrderBy('pic_enabled','DESC')" >是否显示</a>{#/if#}</th>
<th>{#if $listval eq 'pic_uptime'#}<a href="javascript:addOrderBy('pic_uptime','{#$listhtml#}')" >{#if $listhtml eq 'DESC'#}↑{#else#}↓{#/if#}更新时间</a>{#else#}<a href="javascript:addOrderBy('pic_uptime','DESC')" >更新时间</a>{#/if#}</th>
<th>操作</th>
</tr>

{#foreach item=item from=$info#}
			<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';">
			<td class="tdcenter" ><input  type="checkbox"   name="radobj[]"  id="radobj[]" value="{#$item.pic_id#}" />{#$item.pic_id#} </td>
			<td  class="key">&nbsp;<a href="{#$base_weburl#}/?load=pic&act=detail&id={#$item.pic_id#}" target="_blank">{#$item.pic_name#}</a></td>
			<td  class="tdcenter">{#$psInfoval[$item.pis_id]#} </td>
			<td  class="tdcenter">{#$item.pic_count#}</td>
			<td  class="tdcenter">{#$_LANG.bd_enabledArray[$item.pic_enabled]#}</td>
			<td  class="keykey">&nbsp;&nbsp;{#$item.pic_uptime|date_format:"%Y-%m-%d %H:%M:%S"#} </td>
			<td class="keykey"> <a href="{#$employee_weburl#}/index.php?load=picture&act=info&id={#$item.pic_id#}" >修改</a> <a href="{#$employee_weburl#}/index.php?load=picture&act=piclist&id={#$item.pic_id#}" >图片列表</a>  <a href="{#$employee_weburl#}/index.php?load=picture&act=del&id={#$item.pic_id#}"  onclick="if(confirm('你确认要删除操作！')){ return  true; }else{ return  false; }"  title="删除" >删除</a></td>
			</tr>
{#/foreach#}

<tr>
<td colspan="7" >{#$PageStr#}</td>
</tr>

<tr>
<td colspan="7" class="tdleft"><input  type="checkbox"   name="radobjall" id="radobjall"  alt="全选"  onclick="selectAll(this,'radobj')" >&nbsp;<input name="delall" id="delall" type="button"  value="批量删除" onclick="arrayDel('radobj','picture')" />&nbsp;<input name="delall" id="delall" type="button"  value="批量显示" onclick="arrayShow('radobj','picture')" />&nbsp;<input name="delall" id="delall" type="button"  value="批量隐藏" onclick="arrayHide('radobj','picture')" />&nbsp;<input type="button" name="addnew" id="addnew" value="添加新图片" onclick="window.location='{#$employee_weburl#}/index.php?load=picture&act=add'"  />&nbsp;<input name="keywordhedden" id="keywordhedden" value="{#$keywordval#}"   type="hidden" /><input type="hidden" name="pis_idhedden" id="pis_idhedden" value="{#$pis_idval#}"  /></td>
</tr></tbody>
</table>
</div>

</td></tr>
<tr><td></td></tr>
</table>

</body>
</html>