<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Item.aspx.cs" Inherits="KZS.Web.Manage.Setting.Item" %>

<!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 id="Head1" runat="server">
    <title></title>
    <script src="/Common/ajax.js" type="text/javascript"></script>
    <script src="/Common/jquery-1.7.1.min.js" type="text/javascript"></script>
    <link href="../Template/Images/global.css" rel="stylesheet" type="text/css" />
    <script language="JavaScript" type="text/javascript">
    $(function());
        function del() {
            if (confirm("真的要删除这条记录吗？删除后将无法恢复！")) {
                return true;
            }
            else {
                return false;
            }
        }
    </script>
</head>
<body>
    <div id="topitem">
    </div>
    <form id="form1" runat="server">
    <div id="div_URLstr" runat="server">
        <%=URLstr %></div>
    <br />
    <div id="ui_AddItem" runat="server" visible="false">
        <div id="ui_AddStep1" runat="server" visible="false">
            栏目名称：<input type="text" name="ItemName" size="20" /><br />
            栏目图标：<asp:FileUpload ID="FacePic" runat="server" />（用于3G版网站首页图标）
            <br />
            <input type="button" name="btn" value="上一步" class="step1" onclick="javascript:history.go(-1)" />
            <input type="submit" name="submit" value="下一步" class="step1" />
        </div>
        <div id="ui_AddStep2" runat="server" visible="false">
            栏目类型：<select size="1" name="ClassType"><option value="0">选择类型</option>
                <%=LibHelper.CommonLib.StringFromEnum(typeof(LibHelper.ClassType),"<option value=\"{1}\" {2}>{0}</option>",0,"selected") %></select><br />
            <input type="button" name="btn" value="上一步" class="step1" onclick="javascript:history.go(-1)" />
            <input type="submit" name="submit" value="下一步" class="setp2" />
        </div>
        <div id="ui_AddStep3" runat="server" visible="false">
            显示样式：<select size="1" name="ShowStyle">
                <option value="0">全部分类</option>
                <option value="1">列表</option>
                <option value="2">具体页面</option>
            </select><br />
            <input type="button" name="btn" value="上一步" class="step1" onclick="javascript:history.go(-1)" />
            <input type="submit" name="submit" value="下一步" class="step3" />
        </div>
        <div id="ui_AddStep4" runat="server" visible="false">
            选择分类：<%=LibHelper.ClassControl.getclsHtml("AllClass", (LibHelper.ClassType)Enum.Parse(typeof(LibHelper.ClassType),LibHelper.GetRequest.GetString("ClassType",LibHelper.Method.Get,"0")), "ClassId", 0, "span")%><br />
            <input type="button" name="btn" value="上一步" class="step1" onclick="javascript:history.go(-1)" />
            <input type="submit" name="submit" value="下一步" class="step4" />
        </div>
        <div id="ui_AddStep5" runat="server" visible="false">
            外部连接：<input name="OutLinkUrl" type="text" value="" /><br />
            <input type="button" name="btn" value="上一步" class="step1" onclick="javascript:history.go(-1)" />
            <input type="submit" name="submit" value="下一步" class="step5" />
        </div>
        <div id="ui_AddStep6" runat="server" visible="false">
            选择内容：<%=Step6Str%>
            <input type="button" name="btn" value="上一步" class="step1" onclick="javascript:history.go(-1)" />
            <input type="submit" name="submit" value="下一步" class="step6" />
        </div>
    </div>
    <div id="ui_ItemList" runat="server" visible="false">
        <table border="1" width="100%" class="lsttab" style="border-collapse: collapse" bordercolor="#C0C0C0">
            <tr>
                <td colspan="3" class="Pager">
                    <a href="?Action=AddItem&Step=1">添加栏目</a>
                </td>
            </tr>
            <tr class="tit">
                <td>
                    栏目名称
                </td>
                <td>
                    排序
                </td>
                <td>
                    操作
                </td>
            </tr>
            <%=ItemList%>
            <tr>
                <td colspan="3">
                    <input type="submit" name="submit" value="保存排序" />
                    <b style="color: Red;">(从大到小排序)</b>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
