<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ADAdd.aspx.cs" Inherits="ADAdd" 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" />
    <script type="text/javascript" src="../../KindEditor/kindeditor.js"></script>
    <script charset="utf-8" src="../../KindEditor/lang/zh_CN.js"></script>

        <link href="../50/style.css" rel="stylesheet" />
     <script type="text/javascript">
      

      $(function () {

     

            var imgurl = document.getElementById("txtImgUrl").value;
            if (imgurl != "")
             {
            $(".imgbox").empty();
            $(".imgbox").css({ background: "none" });
            $(".imgbox").append("<img src=\"" + imgurl + "\" />");
        }


        var imgurl2 = document.getElementById("txtImgUrl2").value;
        if (imgurl != "") {
            $(".imgbox2").empty();
            $(".imgbox2").css({ background: "none" });
            $(".imgbox2").append("<img src=\"" + imgurl2 + "\" />");
        }

        });


    </script>
</head>
<body class="gray-bg">
<form id="form2" runat="server" class="form-horizontal m-t">
  <div class="wrapper animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
            <div class="tabs-container" style="margin-top: 1em;">
                <ul class="nav nav-tabs">
                    <li class="active" id="tab1" ><a data-toggle="tab" href="#tab11" aria-expanded="true">
                        基础信息</a> </li>
                    <li class="" id="tab2" ><a data-toggle="tab" href="#tab22" aria-expanded="false">
                        扩展信息</a> </li>
               
                </ul>
                <div class="tab-content"  >
                       
                          
                    <div id="tab11" class="tab-pane active">
                     <div class="panel-body">
                     <div class="col-sm-12" style="margin-top: 1em;">
                                <label class="col-sm-1 control-label">广告标题：</label>
                                <div class="col-sm-5">
                                    <asp:TextBox ID="txtTitle" runat="server" CssClass="form-control" required="true"
            maxlength="250" minlength="1" HintTitle="发布的文章标题" HintInfo="控制在100个字数内，标题文本尽量不要太长。"></asp:TextBox>
                                 </div>
                     </div>

                       
                        <div class="col-sm-12" style="margin-top: 1em;">
                        <label class="col-sm-1 control-label">跳转地址：</label>
                                <div class="col-sm-5">
                                   <asp:TextBox ID="txtUrl" runat="server" CssClass="form-control" 
            maxlength="100" HintTitle="跳转地址" HintInfo="外网地址请写完整URL如：http://www.50cms.cc 本站地址可以用相对地址如：list12.aspx"></asp:TextBox></td>
       
                                 </div>
                        </div>
                      
                 <div class="col-sm-12" style="margin-top: 1em;">
                                <label class="col-sm-1 control-label">Meta描述：</label>
                                <div class="col-sm-5">
                                     <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-1 control-label">图片一：</label>
                                <div class="col-sm-5">
                                  <div class="imgbox"></div>
         
             <asp:TextBox ID="txtImgUrl" runat="server" CssClass="input w250 left" style="display:none;"></asp:TextBox>
                <a href="javascript:void(0);" class="files">
                <input type="file" id="FileUpload" name="FileUpload" onchange="SingleUpload('txtImgUrl','FileUpload')" /></a>
                <a class="uploading">正在上传，请稍候...</a>
                                 </div>
                     </div>


              <div class="col-sm-12" style="margin-top: 1em;">
                                <label class="col-sm-1 control-label">图片二：</label>
                                <div class="col-sm-5">
                                  <div class="imgbox"></div>
         
                   <div class="imgbox2"></div>
         
             <asp:TextBox ID="txtImgUrl2" runat="server" CssClass="input w250 left" style="display:none;"></asp:TextBox>
                <a href="javascript:void(0);" class="files2">
                <input type="file" id="FileUpload2" name="FileUpload2" onchange="SingleUpload2('txtImgUrl2','FileUpload2')" /></a>
                <a class="uploading">正在上传，请稍候...</a>

                                 </div>
                     </div>
  
                         
    <div class="col-sm-12" style="margin-top: 2em;">
        <label class="col-sm-1 control-label"></label>
         <div class="col-sm-5">
  <asp:Button ID="btnSave" runat="server" Text="确认保存" CssClass="btn btn-primary" onclick="btnSave_Click"  />
  &nbsp;
  <input name="重置" type="reset" class="btn btn-primary" value="重置" />
             </div>
</div>

                         </div>
                      </div>

                 <div id="tab22" class="tab-pane">
                     <div class="panel-body">
                        <div class="col-sm-12" style="margin-top: 1em;">
                        <label class="col-sm-1 control-label">Meta关键字：</label>
                                <div class="col-sm-5">
                        <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-1 control-label">广告导读：</label>
                                <div class="col-sm-5">
                      <asp:TextBox ID="txtDaodu" runat="server" CssClass="form-control" HintTitle="文章导读属性" 
                    maxlength="250" HintInfo="控制在250个字数内，纯文本，不填写将自动提取。" 
                    TextMode="MultiLine"></asp:TextBox>
                                 </div>
                        </div>

                        <div class="col-sm-12" style="margin-top: 1em;">
                        <label class="col-sm-1 control-label">浏览次数：</label>
                                <div class="col-sm-5">
 <asp:TextBox ID="txtClick" runat="server" CssClass="form-control" size="10" 
            maxlength="10" HintTitle="文章的浏览次数" HintInfo="纯数字，本文章被阅读的次数。">0</asp:TextBox>
     
                                 </div>
                        </div>
                     
                        <div class="col-sm-12" style="margin-top: 1em;">
                        <label class="col-sm-1 control-label">发布日期：</label>
                                <div class="col-sm-5">

<asp:TextBox ID="txtRQ" runat="server" CssClass="form-control" 
            maxlength="100" HintTitle="发布日期" HintInfo="日期为空自动取服务器当前日期"></asp:TextBox>
            <img onclick="WdatePicker({el:'txtRQ',dateFmt:'yyyy/MM/dd HH:mm:ss'})" src="../../Content/My97DatePicker/skin/datePicker.gif" align="absmiddle">
              
                                 </div>
                        </div>
                     
                   
                </div>
             </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 type="text/javascript" src="../js/layer/layer.js"></script>
    <script type="text/javascript">
      
                if (typeof (Close) != "undefined") {
                layer.msg('保存成功，正在返回', {
                time: 2000, //20s后自动关闭 
                },function()
                {
                var index = parent.layer.getFrameIndex(window.name); //获取当前窗体索引
                parent.layer.close(index); //执行关闭
                });       
                }
    
    
    </script>
 
</body>
</html>
 
