<%@ page language="C#" autoeventwireup="true" inherits="admin2_xx2a, gj_web" enableviewstatemac="false" enableEventValidation="false" %>
<head><title>无标题页</title></head><link href="css/yb.css" rel="stylesheet" type="text/css">
<script language="javascript" src="js/sbyk.js" ></script><script language="javascript" src="js/db.js" ></script>
<script  language="javascript">
function jssc(cz,id){
document.getElementById("hid_cz").value=cz;
document.getElementById("hid_xz").value=id;
var s4="";var sj = document.getElementsByName("zdhtml");for (var i = 0;i < sj.length;i++) {var e = sj[i];if(e.checked==true){s4=e.value;}}

var s3="";var s1="";
if(s4!=""){
var sj = document.getElementsByName("mbsb");
for (var i = 0;i < sj.length;i++) {var e = sj[i];if(e.checked==true){s3=e.value+","+s3;}}
if(s3==""){alert("请选择自动生成html的目标设备");return;}else{document.getElementById("hid_mbsbhtml").value=s3;}
var yy = document.getElementsByName("dxk");
for (var i = 0;i < yy.length;i++) {var e = yy[i];if(e.checked==true){s1=e.value+","+s1;}}
if(s1==""){alert("请选择自动生成html的版本");return;}else{document.getElementById("hid_dxkhtml").value=s1;}

}

document.getElementById("hid_zdhtml").value=s4;
sendRequest('xx2c.aspx');}
</script>
<body>
<form id="form1" runat="server"><asp:HiddenField ID="Hidmk" runat="server" /><asp:HiddenField ID="Hidsc" runat="server" />
<input type="hidden" name="hid_xz" id="hid_xz" /><input type="hidden" name="hid_cz" id="hid_cz" /><input type="hidden" name="hid_zdhtml" id="hid_zdhtml" /><input type="hidden" name="hid_mbsbhtml" id="hid_mbsbhtml" /><input type="hidden" name="hid_dxkhtml" id="hid_dxkhtml" />
<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#e2e2e2"  style="margin-bottom:5px;">
<tr style="background-color:#f2f2f2;"><td >
<div class="bt"><asp:label ID="btxs" runat="server" text="添加分类 "></asp:label>
<span style="margin-left:10px;font-weight:normal;"><a href="xx2.aspx?mk=<%=gmk()%>&sc=<%=lbh()%>"><%=gmkm()%>分类</a></span>
</div>
</td></tr></table>

<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#e2e2e2"  style="margin-bottom:5px;">
<tr style="background-color:#ffffff;"><td width="100px" align="right" style="padding:8px;">分类编号：</td>
<td ><asp:TextBox ID="TextBox1" runat="server" Width="150px"></asp:TextBox> <span style="color:Red;">*</span> <input type='checkbox' name='zdhtml' id='zdhtml' value='1' checked="checked">自动生成此分类列表Html，每页<input id="jls" name="jls" type="text" value="10"  style="width:30px;" />条记录，目标设备<input type='checkbox' name='mbsb' id='mbsb' value='0' checked="checked" >电脑 <input type='checkbox' name='mbsb' id='Checkbox1' value='1'>手机<asp:Label ID="Lmm" runat="server" Text=""></asp:Label> </td></tr>

<tr style="background-color:#ffffff;" id="y1id"><td align="right" style="padding:8px;">分类名称：</td>
<td ><asp:TextBox ID="TextBox2" runat="server" Width="150px"></asp:TextBox> <select name="Select1" id="Select1" style="width:120px;">
<option selected="selected" value="1">前台页面显示</option><option value="0">前台页面不显示</option>
</select> <span style="color:Red;">*</span> <input type='checkbox' name='dxk' id='dxk' value='1' checked="checked"><asp:Label ID="y1mc" runat="server" Text=""></asp:Label></td></tr>

<tr style="background-color:#ffffff;" id="y2id"><td align="right" style="padding:8px;">分类名称：</td>
<td ><asp:TextBox ID="yy2" runat="server" Width="150px"></asp:TextBox> <select name="Select2" id="Select2" style="width:120px;">
<option selected="selected" value="1">前台页面显示</option><option value="0">前台页面不显示</option>
</select> <span style="color:Red;">*</span> <input type='checkbox' name='dxk' id='dxk' value='2'><asp:Label ID="y2mc" runat="server" Text=""></asp:Label></td></tr>

<tr style="background-color:#ffffff;" id="y3id"><td align="right" style="padding:8px;">分类名称：</td>
<td ><asp:TextBox ID="yy3" runat="server" Width="150px"></asp:TextBox> <select name="Select3"  id="Select3" style="width:120px;">
<option selected="selected" value="1">前台页面显示</option><option value="0">前台页面不显示</option>
</select> <span style="color:Red;">*</span> <input type='checkbox' name='dxk' id='dxk' value='3'><asp:Label ID="y3mc" runat="server" Text=""></asp:Label></td></tr>

<tr style="background-color:#ffffff;" id="y4id"><td align="right" style="padding:8px;">分类名称：</td>
<td ><asp:TextBox ID="yy4" runat="server" Width="150px"></asp:TextBox> <select name="Select4"  id="Select4" style="width:120px;">
<option selected="selected" value="1">前台页面显示</option><option value="0">前台页面不显示</option>
</select> <span style="color:Red;">*</span> <input type='checkbox' name='dxk' id='dxk' value='4'><asp:Label ID="y4mc" runat="server" Text=""></asp:Label></td></tr>

<tr style="background-color:#ffffff;" id="y5id"><td align="right" style="padding:8px;">分类名称：</td>
<td ><asp:TextBox ID="yy5" runat="server" Width="150px"></asp:TextBox> <select name="Select5"  id="Select5" style="width:120px;">
<option selected="selected" value="1">前台页面显示</option><option value="0">前台页面不显示</option>
</select> <span style="color:Red;">*</span> <input type='checkbox' name='dxk' id='dxk' value='5'><asp:Label ID="y5mc" runat="server" Text=""></asp:Label></td></tr>

<tr style="background-color:#ffffff;" id="y6id"><td align="right" style="padding:8px;">分类名称：</td>
<td ><asp:TextBox ID="yy6" runat="server" Width="150px"></asp:TextBox> <select name="Select6"  id="Select6" style="width:120px;">
<option selected="selected" value="1">前台页面显示</option><option value="0">前台页面不显示</option>
</select> <span style="color:Red;">*</span> <input type='checkbox' name='dxk' id='dxk' value='6'><asp:Label ID="y6mc" runat="server" Text=""></asp:Label></td></tr>

<tr style="background-color:#ffffff;" id="y7id"><td align="right" style="padding:8px;">分类名称：</td>
<td ><asp:TextBox ID="yy7" runat="server" Width="150px"></asp:TextBox> <select name="Select7" id="Select7" style="width:120px;">
<option selected="selected" value="1">前台页面显示</option><option value="0">前台页面不显示</option>
</select> <span style="color:Red;">*</span> <input type='checkbox' name='dxk' id='dxk' value='7'><asp:Label ID="y7mc" runat="server" Text=""></asp:Label></td></tr>

<tr style="background-color:#ffffff;" id="y8id"><td align="right" style="padding:8px;">分类名称：</td>
<td ><asp:TextBox ID="yy8" runat="server" Width="150px"></asp:TextBox> <select name="Select8"  id="Select8" style="width:120px;">
<option selected="selected" value="1">前台页面显示</option><option value="0">前台页面不显示</option>
</select> <span style="color:Red;">*</span> <input type='checkbox' name='dxk' id='dxk' value='8'><asp:Label ID="y8mc" runat="server" Text=""></asp:Label></td></tr>

<tr style="background-color:#ffffff;" id="y9id"><td align="right" style="padding:8px;">分类名称：</td>
<td ><asp:TextBox ID="yy9" runat="server" Width="150px"></asp:TextBox> <select name="Select9"  id="Select9" style="width:120px;">
<option selected="selected" value="1">前台页面显示</option><option value="0">前台页面不显示</option>
</select> <span style="color:Red;">*</span> <input type='checkbox' name='dxk' id='dxk' value='9'><asp:Label ID="y9mc" runat="server" Text=""></asp:Label></td></tr>

<tr style="background-color:#ffffff;" id="y10id"><td align="right" style="padding:8px;">分类名称：</td>
<td ><asp:TextBox ID="yy10" runat="server" Width="150px"></asp:TextBox> <select name="Select10"  id="Select10" style="width:120px;">
<option selected="selected" value="1">前台页面显示</option><option value="0">前台页面不显示</option>
</select> <span style="color:Red;">*</span> <input type='checkbox' name='dxk' id='dxk' value='10'><asp:Label ID="y10mc" runat="server" Text=""></asp:Label></td></tr><asp:Label ID="Label2" runat="server" Text=""></asp:Label>


<tr style="background-color:#ffffff;display:none;"><td align="right" style="padding:8px;">排序号：</td>
<td ><asp:TextBox ID="TextBox3" runat="server" Width="150px" Text="0"></asp:TextBox> 填写数字，数字越小越靠前</td></tr>


<tr bgcolor="#FFFFFF" id="lbup" style="display:none;"><td align="right">上级类别：</td>
<td width=""><asp:DropDownList ID="DropDownList3" runat="server"></asp:DropDownList></td></tr>

</table>

<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#e2e2e2"  style="margin-top:5px;">
<tr style="background-color:#f2f2f2;"><td >

<input id="Button1" type="button" value="添加" onclick="jssc('4','0');" style="width:80px;" onfocus="this.blur();" />
<input id="Button2" type="button" value="修改" onclick="jssc('5','0');" style="width:80px;" onfocus="this.blur();" />

</td></tr></table>    
<asp:Label ID="Label1" runat="server" Text=""></asp:Label>
<%=rfh()%>
</form>
</body>