<%@ page language="C#" autoeventwireup="true" inherits="sortEdit, kfenlei" %><%@ Register Src="inc/adminTop.ascx" TagName="adminTop" TagPrefix="qth8" %><!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>
<link href="css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div align="center">
<div class="main" align="left">
<qth8:adminTop ID="AdminTop1" runat="server" />
<div class="d01">
<div class="tabTitle">修改分类</div>
<form id="sortAdd" name="sortAdd" class="layui-form" method="post" action="action.aspx?s=sortedit">
<input type="hidden" value="<%=id %>" name="id" />
<table width="100%" border="0" class="layui-table" cellspacing="0" cellpadding="0">
<tr>
<td width="200">设置</td>
<td>所属类：<div class="layui-input-inline" style="width:200px;"><select name="topid" id="topid">
<option value="0">一级分类</option>
<%=sSelect %>
</select></div>&nbsp;&nbsp;模板：<div class="layui-input-inline" style="width:200px;"><select name="template" id="template"><option value="">默认模板</option>
<%=tools.getInfoTemp() %></select></div>&nbsp;&nbsp;<input type="checkbox" id="displayad" name="displayad" value="1" title="独立头部广告 " />&nbsp;&nbsp;<input type="checkbox" name="displayad1" id="displayad1" value="1" title="独立右侧广告" /></td>
</tr>
<tr>
<td>列表中显示联系方式</td>
<td><input type="radio" value="0" name="tel" title="默认" /><input type="radio" value="2" name="tel" title="显示" /><input type="radio" value="1" name="tel" title="不显示" /></td>
</tr>
<tr>
<td>分类名</td>
<td><input type="text" class="inputText" style="width:400px;" name="name" value="<%=sSortName %>" /></td>
</tr>
<tr>
<td>分类标题</td>
<td><input type="text" class="inputText" style="width:400px;" name="title" value="<%=sSortTitle %>"  /> <span class="comments">Title标签中的内容，200字以内，不填则显示默认值</span></td>
</tr>
<tr>
<td>分类关键字</td>
<td><input type="text" class="inputText" style="width:400px;" name="keywords" value="<%=sSortKeywords %>"  />  <span class="comments">Keywords标签中的内容，200字以内，不填则显示默认值</span></td>
</tr>
<tr>
<td class="head" width="100">分类描述</td>
<td><input type="text" class="inputText" style="width:400px;" name="description" value="<%=sSortDescription %>"  />  <span class="comments">Description标签中的内容，200字以内，不填则显示默认值</span></td>
</tr>
<tr>
<td class="head" width="100">分类目录</td>
<td><input type="text" class="inputText" style="width:400px;" name="path" value="<%=sSortPath %>"  /> </td>
</tr>
<tr><td class="head"></td>
<td><input type="submit" value="确认修改分类" class="layui-btn" /></td>
</tr>
</table></form>
<div class="tabTitle">分类广告管理<span class="tabTitleCom">广告数<%=iRecordCount%>条</span></div>
<form action="sortEdit.aspx" name="guanggao" method="get" id="guanggao" class="layui-form"><input type="hidden" name="id" value="<%=id%>" />
<table width="1200" border="0" class="layui-table" cellspacing="0" cellpadding="0">
<tr><td colspan="9" class="head">
<strong>筛选：</strong>
<input type="radio" name="a" lay-filter="a" value="0" title="全部广告" />
<input type="radio" name="a" lay-filter="a" value="2" title="电脑版列表头部" />
<input type="radio" name="a" lay-filter="a" value="9" title="电脑版列表右侧" />
<input type="radio" name="a" lay-filter="a" value="16" title="手机版列表头部" />&nbsp;&nbsp;&nbsp;&nbsp;
<strong>日期：</strong> <input type="radio" value="0" name="t" lay-filter="t" title="全部广告" /> <input type="radio" value="1" name="t" lay-filter="t" title="到期广告" />
</td></tr>
</table>
</form>
<script type="text/javascript">
layui.use(['form','laydate'], function(){
var form = layui.form();
form.render();
form.on('radio(a)', function(data){
$("#guanggao").submit();
});
form.on('radio(t)', function(data){
$("#guanggao").submit();
});
});
</script>
<table width="100%" border="0" class="layui-table" cellspacing="0" cellpadding="0">
<thead>
<tr>
<td width="40" class="head">id</td>
<td width="40" class="head">排序</td>
<td width="100" class="head">类型</td>
<td width="380" class="head">广告位/名称</td>
<td width="200" class="head">[宽/高] [上/右/下/左边距]</td>
<td width="140" class="head">开始日期</td>
<td width="140" class="head">到期日期</td>
<td width="40" class="head">显示</td>
<td width="120" class="head"><a href="adAdd.aspx" class="layui-btn layui-btn-small">添加广告</a></td></tr>
</thead>
<%=sList %>
<tr>
<td class="mhead1" colspan="9">页码 <%=iPageIndex.ToString() %>/<%=iPageCount.ToString() %> <span class="color3">|</span> <a href="sortEdit.aspx?p=1&id=<%=c%>&a=<%=a %>&t=<%=t %>">首页</a> <a href="sortEdit.aspx?p=<%=iTp.ToString()%>&id=<%=c%>&a=<%=a %>&t=<%=t %>">上一页</a> <a href="sortEdit.aspx?p=<%=iNp.ToString()%>&id=<%=c%>&a=<%=a %>&t=<%=t %>">下一页</a> <a href="sortEdit.aspx?p=<%=iPageCount.ToString()%>&id=<%=c%>&a=<%=a %>&t=<%=t %>">尾页</a></td>
</tr>
</table><br />
</div>
</div>
</div>

<script>ceElement("topid","<%=sSortId%>");ceElement("template","<%=sSortTemplate%>");
if("<%=sSortDisplayAd %>"==1){q$("displayad").checked="checked";}
if("<%=sSortDisplayAd1 %>"==1){q$("displayad1").checked="checked";}</script>
<script type="text/javascript">
ckRadio("a","<%=a%>");
ckRadio("t","<%=t%>");
ckRadio("tel","<%=sTel%>");
</script>
</body>
</html>
