<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Add.aspx.cs" Inherits="Add" ValidateRequest="false" %>
<!DOCTYPE html>
<html>
<head>
   <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>50CMS后台框架</title>
    <link rel="shortcut icon" href="favicon.ico">
     <link href="../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="../css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="../css/animate.css" rel="stylesheet">
    <link href="../css/style.css?v=4.1.0" rel="stylesheet">
    

        <link href="../50/style.css" rel="stylesheet" />
        <link href="../css/plugins/sweetalert/sweetalert.css" rel="stylesheet" />
    <script src="../Js/plugins/sweetalert/sweetalert.min.js"></script>

         <script type="text/javascript">
         function popupWindow(mypage, myname, w, h, scroll) {
             var winl = (screen.width - w) / 2;
             var wint = (screen.height - h) / 2;
             winprops = 'height=' + h + ',width=' + w + ',top=' + wint + ',left=' + winl + ',scrollbars=' + scroll + ',resizable'+',location=no'
             win = window.open(mypage, myname, winprops)
             if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
         }

     </script>

</head>
<body class="gray-bg">
<form id="form1" runat="server" class="form-horizontal m-t">
  <div class="wrapper animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
            
                    <div class="ibox-content">
                       <div class="panel-body">
                      <div class="form-group">


                         <div class="col-sm-12" style="margin-top: 1em;">
                            <label class="col-sm-2 control-label">上级分类：</label>
                            <div class="col-sm-6">
                  <asp:DropDownList ID="aClassddl" class="form-control" required="" aria-required="true"   runat="server" >
				</asp:DropDownList>
                            </div>
                        </div>

                         <div class="col-sm-12" style="margin-top: 1em;">
                            <label class="col-sm-2 control-label">分类名称：</label>
                            <div class="col-sm-6">
                               <asp:TextBox ID="txtName" runat="server"  class="form-control" required="" aria-required="true"  
            maxlength="50" HintTitle="分类名称" HintInfo="控制在50个字数内，如“新闻动态”。"></asp:TextBox>
            
                            </div>
                        </div>

                         <div class="col-sm-12" style="margin-top: 1em;">
                            <label class="col-sm-2 control-label">类型：</label>
                            <div class="col-sm-2">
          <asp:DropDownList ID="DropDownList1" runat="server" style="margin-right: 0px"  class="form-control" required="" aria-required="true"  >
                      <asp:ListItem Value="1">文章</asp:ListItem>
                      <asp:ListItem Value="2">单页</asp:ListItem>
                      <asp:ListItem Value="3">链接</asp:ListItem>
                  </asp:DropDownList>
                            </div>
                        </div>

                         <div class="col-sm-12" style="margin-top: 1em;">
                            <label class="col-sm-2 control-label">Meta关键字：</label>
                            <div class="col-sm-6">
                                <asp:TextBox ID="txtKeyword" runat="server" CssClass="form-control" 
            maxlength="100" HintTitle="Meta关键字" HintInfo="用于搜索引擎，如有多个关健字请用英文的,号分隔。"></asp:TextBox>
                            </div>
                        </div>

                         <div class="col-sm-12" style="margin-top: 1em;">
                            <label class="col-sm-2 control-label">Meta描述：</label>
                            <div class="col-sm-6">
                                 <asp:TextBox ID="txtZhaiyao" runat="server" CssClass="form-control"  
            maxlength="250" HintTitle="Meta描述" 
                    HintInfo="用于搜索引擎，控制在250个字数内" TextMode="MultiLine"></asp:TextBox>
                            </div>
                        </div>

                         <div class="col-sm-12" style="margin-top: 1em;">
                            <label class="col-sm-2 control-label">列表模板：</label>
                            <div class="col-sm-2">
                                <asp:TextBox ID="txtList" runat="server"  CssClass="form-control" HintTitle="列表模板" 
                    maxlength="50" HintInfo="为空默认为lsit.htm 自定义请填写模板全称（不需要路径）" ></asp:TextBox>
      
                            </div>
                            <div class="col-sm-1">
                                      <input id="add3" type="button" value="..." onclick="popupWindow('Temple_File.aspx','列表模板',400,300,1)" />
                            </div>

                          
                            <label class="col-sm-2 control-label">手机列表模板：</label>
                            <div class="col-sm-2">
                                <asp:TextBox ID="txtMList" runat="server"  CssClass="form-control" HintTitle="手机列表模板" 
                    maxlength="50" HintInfo="为空默认为mlsit.htm 自定义请填写模板全称（不需要路径）" ></asp:TextBox>
      
                            </div>
                            <div class="col-sm-1">
                                      <input id="add3" type="button" value="..." onclick="popupWindow('Temple_File.aspx', '手机列表模板', 400, 300, 1)" />
                            </div>


                        </div>



                         <div class="col-sm-12" style="margin-top: 1em;">
                            <label class="col-sm-2 control-label">内容模板：</label>
                            <div class="col-sm-2">
                               <asp:TextBox ID="txtRead" runat="server"  CssClass="form-control" HintTitle="内容模板" 
                    maxlength="50" HintInfo="为空时默认为read.htm 自定义请填写模板全称（不需要路径）" ></asp:TextBox>
      
                            </div>
                               <div class="col-sm-1">
                                      <input id="Button2" type="button" value="..." onclick="popupWindow('Template_Files2.aspx','内容模板',400,300,1)" />
                             </div>

                      <label class="col-sm-2 control-label">手机内容模板：</label>
                            <div class="col-sm-2">
                               <asp:TextBox ID="txtMRead" runat="server"  CssClass="form-control" HintTitle="手机内容模板" 
                    maxlength="50" HintInfo="为空时默认为mread.htm 自定义请填写模板全称（不需要路径）" ></asp:TextBox>
      
                            </div>
                               <div class="col-sm-1">
                              <input id="Button2" type="button" value="..." onclick="popupWindow('Template_Files2.aspx', '手机内容模板', 400, 300, 1)" />
                             </div>

                        </div>



                         <div class="col-sm-12" style="margin-top: 1em;">
                            <label class="col-sm-2 control-label">自定义代码：</label>
                            <div class="col-sm-6">
                                <asp:TextBox ID="txtTag" runat="server" class="form-control"  HintTitle="自定义代码" 
                    maxlength="1020" HintInfo="调用方法<!--#Dex_Tag*1#-->。" 
                    TextMode="MultiLine" Height="150px" Width="540px"></asp:TextBox>
                            </div>
                        </div>


        <div class="col-sm-12" style="margin-top: 1em;">
                            <label class="col-sm-2 control-label">自定义代码2：</label>
                            <div class="col-sm-6">
                                <asp:TextBox ID="txtTag2" runat="server" class="form-control"  HintTitle="自定义代码" 
                    maxlength="1020" HintInfo="调用方法<!--#Dex_Tag*2#-->。" 
                    TextMode="MultiLine" Height="150px" Width="540px"></asp:TextBox>
                            </div>
                        </div>

        <div class="col-sm-12" style="margin-top: 1em;">
                            <label class="col-sm-2 control-label">自定义代码3：</label>
                            <div class="col-sm-6">
                                <asp:TextBox ID="txtTag3" runat="server" class="form-control"   HintTitle="自定义代码" 
                    maxlength="1020" HintInfo="调用方法<!--#Dex_Tag*3#-->。" 
                    TextMode="MultiLine" Height="150px" Width="540px"></asp:TextBox>
                            </div>
                        </div>

  
                       <div class="form-group" style="margin-top: 2em;">
                            <div class="col-sm-8 col-sm-offset-3" style="margin-top: 2em;">

                                  <asp:Button ID="btnSave" runat="server" Text="确认保存" CssClass="btn btn-primary" onclick="btnSave_Click" />
  &nbsp;
  <input type="button" class="btn btn-primary" id="btnCancel" value="取消" onclick="javascript:jQuery().colorbox.close();"/>


                            </div>
                        </div>

    <div style="margin-top:10px;text-align:center;">


        </div>
                        </div>
                    </div>
                </div>
            </div>
       
    </div>
        </form>

    
      <!-- 全局js -->
    <script src="../js/jquery.min.js?v=2.1.4"></script>
    <script src="../js/bootstrap.min.js?v=3.3.6"></script>

      <!-- 自定js -->

    <script src="../50/function.js"></script>
    <script type="text/javascript" src="../js/layer/layer.js"></script>
    <script type="text/javascript">
      



                if (typeof (success) != "undefined") {

                    swal({ title: "成功", type: "success", showConfirmButton: false, timer: 2000 }
                        , function () {
                            var index = parent.layer.getFrameIndex(window.name); //获取当前窗体索引
                            parent.layer.close(index); //执行关闭
                        }
                  );
                }
                function myclose() {
                    var index = parent.layer.getFrameIndex(window.name); //获取当前窗体索引
                    parent.layer.close(index); //执行关闭
                }
    
    
    </script>
 
</body>
</html>