<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebExam.Admin.Exam.Admin_ZGSJ" Title="试卷管理" Codebehind="KS.ZGSJ.aspx.cs" %>
<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.Publics" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
    <asp:Panel ID="ListPanel" runat="server" Width="100%">
    <div id="manage_top" class="menu_top_fixed">
         <ul>
           <span style="float:right;padding-right:10px">
            <asp:DropDownList ID="DrpClassID1" runat="server" onchange="location.href='?classid='+this.value;">
             <asp:ListItem Value="0">--按分类查看--</asp:ListItem>
             </asp:DropDownList>
          </span>
           <li id='p1'><asp:LinkButton ID="addclassbutton" runat="server" OnClick="addclassbutton_Click"><b></b>添加正规考试试卷</asp:LinkButton></li>
           <li id='p18'><a href="?action=add&fromword=1"><b></b>从Word导入试卷</a></li>
           <li id='p4'><asp:LinkButton ID="editclassbutton" runat="server" OnClick="editclassbutton_Click"><b></b>编辑正规考试试卷</asp:LinkButton></li>
           <li id='p3'><asp:LinkButton ID="delclassbutton" runat="server" OnClick="delclassbutton_Click"><b></b>删除正规考试试卷</asp:LinkButton></li>
           </ul>
        </div> 
      <div class="menu_top_fixed_height"></div>       
        
<style>
.categorynav{line-height:25px;width:97%;margin:0 auto;margin-bottom:10px;border:1px solid #DEEFFA;background-color:#F7FBFE;padding:5px 0px 5px 10px; height:100%; overflow:hidden;}
ul,li{padding:0px;margin:0px}
.categorynav li{width:160px;float:left;}
</style>
<div class="content-area">
        <div class="myTitle">
          <div class="quickSearch">
          <strong>搜索试卷：</strong>
          <asp:DropDownList ID="DrpTJ" runat="server">
             <asp:ListItem Value="1">试卷名称</asp:ListItem>
             <asp:ListItem Value="2">试卷介绍</asp:ListItem>
             <asp:ListItem Value="3">试卷录入员</asp:ListItem>
         </asp:DropDownList>

          <asp:TextBox runat="server" ID="TxtKeyWord" CssClass="textbox" /> 
                <asp:Button ID="BtnSearch" runat="server" CssClass="button" Text="开始搜索" 
                         onclick="BtnSearch_Click"  />
         </div>
         正规考试试卷
        <!--当前位置：<asp:Label ID="LabNav" runat="server"></asp:Label>-->
        </div>
       
<KS:ksgv id="list" cssclass="CTable" runat="server" AutoGenerateColumns="False" 
            EmptyDataText="没有添加任何试卷!" PagerType="CustomNumeric" Width="99%" 
            HorizontalAlign="Center" GridLines="None" OnRowCommand="List_RowCommand" 
            OnRowCreated="List_RowCreated" onrowdatabound="list_RowDataBound">
        <Columns>
         <asp:TemplateField HeaderText="选择">
                <itemstyle horizontalalign="Center" width="30px" />
                <itemtemplate>
                <input type="checkbox"  name="ids" id="ids" value="<%#Eval("id") %>" />
                </itemtemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="ID号" DataField="ID" Visible="false">
                <itemstyle horizontalalign="Center" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="状态">
                <itemstyle Width="30px" horizontalalign="Center" />
                <itemtemplate>
                  <a href="?action=verify&id=<%#Eval("id")%>" <%# Convert.ToString(Eval("verify"))=="0"?"class='no' title='未审核'":"class='ok' title='已审核'" %>></a>
                </itemtemplate>
            </asp:TemplateField>
            
            <asp:TemplateField HeaderText="试卷名称">
               <itemstyle width="500px"/>
                <itemtemplate>
                 <div onmouseover="jQuery('#a<%#Eval("id") %>').show();" onmouseout="jQuery('#a<%#Eval("id") %>').hide();">
                <a href="../../<%=MyCache.GetSJCacheConfig(1) %>/view.aspx?id=<%# Eval("id") %>"   target="_blank"><span <%# Eval("OpenTimeLimit").ToString()=="1"?" title='开考时间限制:"+Eval("TimeLimitBegin").ToString()+"至"+Eval("TimeLimitEnd").ToString()+"' class='PicDoc_1'":" class='doc_1'" %>></span></a>
                [<%# MyCache.GetCacheSJCategory(Convert.ToInt32(Eval("classid")),1) %>]
                <%# Utils.CutStr(Convert.ToString(Eval("title")),30) %>

                 <span id="a<%#Eval("id") %>" style="display:none;padding-left:20px;">
                    <span style="display:<%#Eval("dtfs").ToString()=="2"? "none":"inline"%>;">
                     <asp:LinkButton runat="server" ForeColor="Gray" id="linkSTGL" commandargument=<%#Eval("id")+","+Eval("dtfs") %> commandname="stmanage">试题管理</asp:LinkButton>
                     <asp:LinkButton runat="server" ForeColor="Gray" ToolTip="添加试题" id="linkTJST" commandargument=<%#Eval("id")+","+Eval("dtfs") %> commandname="stadd"><img src="../../admin/images/ico/ico1.png" width="12" align="absmiddle" border="0"/>添加</asp:LinkButton>
                     </span>
                     <span class="tips" style="display:<%#Eval("dtfs").ToString()=="2"? "":"none"%>;">
                      随机抽<%# Eval("FrontSize") %>题
                     </span>
                  </span>
                 </div>

                </itemtemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="类型">
                <itemstyle horizontalalign="Center" />
                <itemtemplate>
                <%# 
                 GetSJDtfs(Convert.ToInt16(Eval("dtfs")))
                %>
                </itemtemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="上传者" DataField="inputer">
                <itemstyle verticalalign="Middle"  horizontalalign="Center"/>
            </asp:BoundField>
            <asp:BoundField HeaderText="更新时间" DataField="adddate">
                <itemstyle verticalalign="Middle"  horizontalalign="Center"/>
            </asp:BoundField>
            <asp:TemplateField HeaderText="试卷属性">
                <itemstyle horizontalalign="Center" />
                <itemtemplate>
                <%#Convert.ToString(Eval("rndst"))=="1"?"<font color=green>随机</font>":"" %>
                <%#Convert.ToString(Eval("PowerTF")) == "1" ? "<font color=red>断保</font>" : ""%>
                <%#Convert.ToString(Eval("FullScreen")) == "1" ? "<font color=brown>全屏</font>" : ""%>
                <%#Convert.ToString(Eval("comment"))=="1"?"<font color=blue>心得</font>":"" %>
                </itemtemplate>
            </asp:TemplateField>
           
             <asp:TemplateField HeaderText="编辑">
              <itemstyle width="30px" horizontalalign="Center"/>
              <itemtemplate>
             <asp:LinkButton ID="LinkButton1" ToolTip="编辑" CssClass="edit" runat="server" commandargument=<%#Eval("id") %> commandname="modify"></asp:LinkButton>
              </itemtemplate>
            </asp:TemplateField>
             <asp:TemplateField HeaderText="删除">
              <itemstyle width="30px" horizontalalign="Center"/>
              <itemtemplate>
             <asp:LinkButton CssClass="delete" ToolTip="删除" runat="server" id="delete" commandargument=<%#Eval("id") %> commandname="del"></asp:LinkButton>
              </itemtemplate>
            </asp:TemplateField>
        </Columns>
        <HeaderStyle CssClass="CTitle" />
        <EmptyDataRowStyle CssClass="emptycss" />
    </KS:ksgv>
    
        <asp:Panel ID="Panel2" runat="server" Height="30px" Width="741px">
          <div style="margin-top:8px"></div>
            &nbsp;&nbsp;<input type="checkbox" name="chkall" id="chkall" onclick="CheckAll(this.form);"/><label for="chkall">全部选中</label>
            
           &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="删除记录" onmouseover="this.className='button_on';" onmouseout="this.className='button';" class="button" onclick="if (GetIDS('del')){this.form.action='?action=del';this.form.submit()}" />
            <asp:Button ID="BtnRecommend" runat="server" Text="设为试题顺序随机" CssClass="button" 
            onclick="BtnRecommend_Click" />
        <asp:Button ID="BtnRecommend1" runat="server" CssClass="button" 
             Text="取消试题顺序随机" onclick="BtnRecommend1_Click" />
      </asp:Panel>
      
            
 <KS:Page ID="Page1" runat="server" />    

    
    <asp:Panel ID="Panel1" runat="server" Height="30px" Width="100%">
      <br />
        <script type="text/javascript">
            showtips('<span class="state"><strong>试卷属性对应说明：</strong><br /></span><br/><font color=green>随机</font>->试题顺序随机&nbsp;<font color=red>断保</font>->启用断电保护&nbsp;<font color=brown>全屏</font>->试卷全屏防作弊&nbsp;<font color=blue>心得</font>->允许发表考后心得');
		</script>

            </asp:Panel>
</asp:Panel>

</div>
     
    <asp:Panel ID="AddPanel" runat="server"  Width="100%" Visible="false">
    <KS:TopNav ID="TopNav1" runat="server" Text="添加正规考试试卷" />
 <div class="content-area">
    <div class="tab-page" id="zgsjPanel">
         <script type="text/javascript">
           var tabPane1 = new WebFXTabPane( document.getElementById( "zgsjPanel" ), 1 )
         </script>
             
		 <div class="tab-page" id="tab0">
		  <h2 class="tab">基本信息</h2>
			<script type="text/javascript">
						 tabPane1.addTabPage( document.getElementById( "tab0" ) );
			</script>
    
    <table width="100%" align="center" border="0" cellpadding="1" cellspacing="1" class="CTable"> 

    <tbody class="fromWordFile" id="inprotClass"<%=KSCMS.S("fromword")=="1"?"":" style='display:none'" %>>
         <tr>
           <td colspan="2" class="CTitle"><strong>第一步：上传Word试题</strong></td>
       </tr>
       <tr>
            <td align="right" class="lefttd" height="30" ><strong>从Word文件导入：</strong></td>
            <td class="righttd"><table border="0" cellpadding="0" cellspacing="0">
                 <tr>
                  <td width="150" style="padding-left:2px"><iframe src="../include/UpLoad.aspx?FieldID=doc&ChannelID=1"  marginheight="0" marginwidth="0"  width="100%" height="32" frameborder="0" scrolling="no"></iframe></td>
                  <td><a href="../../admin/exam/word试卷示例.doc" style="color:green">下载Word试卷示例</a></td>
                 </tr>
                </table>
                <input type="text" style="display:inline;position:absolute; left:-9999px;" id="doc" value="0"  />
            </td>
        </tr>
        <tr id="sjtm">
            <td align="right" class="lefttd" height="30" >
                <strong>试卷的试题内容：</strong>
                 <input type="button" class="button" value="存Word图片" onclick="KesionJS.saveWordPic('admin', '1');" />
                </td>
            <td class="righttd">
             <asp:TextBox ID="TxtContent" runat="server" TextMode="MultiLine" style="width:80%;height:400px;"></asp:TextBox>
            <% Kesion.APPCode.EditorAPI.EchoEditor("editor1", this.TxtContent.ClientID, "Common",0,false,true,false,false,true);%>
            </td>
        </tr>

        <script>
        function removeHTMLTag(str) {
            str = str.replace(/<\/?[^>]*>/g,''); //去除HTML tag
            str = str.replace(/[ | ]*\n/g,'\n'); //去除行尾空白
            str=str.replace(/&nbsp;/ig,'');//去掉&nbsp;
            return str;
        }
        jQuery(function(){
                var ie = !-[1,];  
                var evs="focus";
                if (ie) evs="propertychange";

                jQuery('#inprotClass,#doc').bind(evs, function(){
                    var path = jQuery("#doc").val();
                    if(path == 0)
                    {
                        return;
                    }
                    jQuery.ajax({
                        type: "POST",
                        url: "InportFromWord.ashx",
                        data: "path="+path,
                        success: function(s){
                            if(s.substring(0,3) == "err" && s.indexOf("找不到此文件")==-1)
                            {
                                jQuery.dialog.alert(s);
                                return;
                            }else{
                               var arr=s.split('[PaperNameEnd]');
                               jQuery("#sjtm").show();
                               jQuery("#sjdetail").show();
                               jQuery("#<%=this.TxtTitle.ClientID %>").val(removeHTMLTag(arr[0]));
                                editor1.setContent(arr[1]);
                            }
                        }
                    });
                });

            });
        </script>
        <tr>
           <td colspan="2" class="CTitle"><strong>第二步：录入试卷基本信息</strong></td>
       </tr>
        </tbody>

        <tbody id="sjdetail"<%=KSCMS.S("fromword")=="1"?" style='display:nones'":"" %>>
          <tr>
            <td class="lefttd" height="30" align="right" style="width: 102px"><b>试卷名称：</b></td>
            <td class="righttd">
                &nbsp;<asp:TextBox CssClass="textbox" ID="TxtTitle" runat="server" Width="335px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtTitle"
                    ErrorMessage="请填写试卷名称!" Display="Dynamic"></asp:RequiredFieldValidator> <span class="tips">如（员工面试题）等</span></td>
        </tr>
        
        <tr>
            <td align="right" class="lefttd" height="30" style="width: 102px">
                <strong>试卷分类：</strong></td>
            <td class="righttd">
                &nbsp;<asp:DropDownList ID="DrpClassID" runat="server">
                    <asp:ListItem Value="0">--选择试卷分类--</asp:ListItem>
                </asp:DropDownList>
                &nbsp;考试时间：<asp:TextBox ID="TxtKSSJ" Text="120" CssClass="textbox" runat="server" Width="50"></asp:TextBox> 分钟
            试卷总分：
            <asp:TextBox ID="TxtScore" Text="100" CssClass="textbox" runat="server" Width="50"></asp:TextBox> 分
            
            
            
            
           <span style="display:none">&nbsp;答卷次数：<asp:TextBox CssClass="textbox" ID="TxtTimes" runat="server" Width="30px" Text="1"></asp:TextBox>
              次 不限制请输入“0”。</span>
              </td>
        </tr>
        <tr>
            <td align="right" class="lefttd" height="30" style="width: 102px"><strong>开考时间限制：</strong></td>
            <td class="righttd">
                 <asp:RadioButtonList ID="RdbLimitDate" runat="server"  
                    RepeatDirection="Horizontal"  onclick="showvaliddate();"  RepeatLayout="Flow">
                        <asp:ListItem Value="1">启用</asp:ListItem>
                        <asp:ListItem Value="0"  Selected="True">不启用</asp:ListItem>
                    </asp:RadioButtonList>
                    <span style="display:none" id="datearea">
                <script>    isHour = 1;</script>
                &nbsp;有效期：从<asp:TextBox  CssClass="textbox" ID="TxtBeginTime" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});" runat="server" Width="120"></asp:TextBox> 至 <asp:TextBox CssClass="textbox" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});" ID="TxtEndTime" runat="server"  Width="120"></asp:TextBox>
             </span>
               <script>
                   jQuery(document).ready(function () {
                       showvaliddate();
                       showScorePubType();
                       showAuthorizationType();
                   });
                   function showvaliddate() {
                       var checkrad = jQuery("#<%=this.RdbLimitDate.ClientID %> :radio[checked]").val();
                       if (checkrad == "1") {
                           jQuery("#datearea").show();
                       } else {
                           jQuery("#datearea").hide();
                       }
                   }
                   function showScorePubType() {
                       var checkrad = jQuery("#<%=this.RdbScorePubType.ClientID %> :radio[checked]").val();
                       if (checkrad == "1") {
                           jQuery("#pubdate").show();
                       } else {
                           jQuery("#pubdate").hide();
                       }
                   }
                   function showAuthorizationType() {
                       var checkrad = jQuery("#<%=this.RdbAuthorizationType.ClientID %> :radio[checked]").val();
                       if (checkrad == "1") {
                           jQuery("#power").hide();
                       } else {
                           jQuery("#power").show();
                       }
                   }
               </script>
               &nbsp;每隔<asp:TextBox ID="TxtAutoSaveTime" runat="server" Width="30" Text="1" style="text-align:center" CssClass="textbox" />秒自动保存答案。
           </td>
        </tr>       
        
         <tr>
            <td align="right" class="lefttd" height="30" style="width: 102px">
                <strong>成绩公布方式： </strong></td>
            <td class="righttd">
                <asp:RadioButtonList ID="RdbScorePubType" runat="server" 
                    RepeatDirection="Horizontal" RepeatLayout="Flow" 
                    onclick="showScorePubType()">
                        <asp:ListItem Value="0" Selected="True">即时显示成绩<span class="tips">（仅适合没有主观题及不需要人工评卷的考试）</span></asp:ListItem>
                        <asp:ListItem Value="1">指定评卷教师及设定成绩发布时间</asp:ListItem>
                    </asp:RadioButtonList>
                 <div style="display:none;margin:10px;border:1px solid #ccc;padding:10px;" id="pubdate">
                    <strong>评卷教师：</strong>
                    <asp:TextBox CssClass="textbox" ID="TxtPJTeacher" Width="300" runat="server" />
                     <span class="tips">多个评卷老师请用英文逗号隔开。</span>
                    <br />
                    <strong>成绩公布时间：</strong>
                    <asp:TextBox  CssClass="textbox" ID="TxtScorePubDate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});" runat="server"></asp:TextBox>
                  </div>
           </td>
        </tr>
        
        <tr>
            <td align="right" class="lefttd" height="30" style="width: 102px"><strong>授权考试方式：</strong></td>
            <td class="righttd">
                <asp:RadioButtonList ID="RdbAuthorizationType" runat="server" 
                    RepeatDirection="Horizontal"  RepeatLayout="Flow" 
                    onclick="showAuthorizationType()">
                        <asp:ListItem Value="1" Selected="True">准考证</asp:ListItem>
                        <asp:ListItem Value="0">满足以下条件即可参加考试</asp:ListItem>
                    </asp:RadioButtonList>
                    <div id="power" style="display:none;margin:10px;border:1px solid #ccc;padding:10px;">
                    <strong>所需<%=MyCache.GetCacheConfig(49) %>：</strong>                &nbsp;<asp:TextBox CssClass="textbox" ID="TxtMoney" Text="0" runat="server" Width="60px"></asp:TextBox><%=MyCache.GetCacheConfig(50) %>，<span class="tips">免费请输入“0”</span>
                    <br />
                    <strong>指定权限组<span style="color:#999;font-weight:normal">(不限制用户组，请不要勾选。)</span>：</strong>
                    <div ID="GroupPanel" runat="server"> </div>
                    <strong>指定部门<span class="tips">(按Ctrl或Shift可以多选 <a href="javascript:;" onclick="jQuery('#<%=this.LstDepartID.ClientID %> option').attr('selected',false);">取消选中</a>)</span>： </strong>
                    <br />
                    <asp:ListBox ID="LstDepartID" SelectionMode="Multiple" runat="server" Width="250px" Height="140px">
                       </asp:ListBox>
                      
                 
                 
                   </div>
           </td>
        </tr> 
        
        
        

        <tr>
            <td align="right" class="lefttd" height="30" style="width: 102px">
                <strong>应用成绩等级：</strong></td>
            <td class="righttd">
             &nbsp;<asp:DropDownList ID="DrpCjdID" runat="server">
              <asp:ListItem Value="0">--不应用成绩等级--</asp:ListItem>
             </asp:DropDownList>
             &nbsp;
             试卷来源：<asp:TextBox ID="TxtCopyFrom" runat="server" Width="100px" CssClass="textbox"></asp:TextBox>
            试卷作者：
            <asp:TextBox ID="TxtAuthor" runat="server" Width="100px" CssClass="textbox"></asp:TextBox>
             </td>
        </tr>
        <tr>
            <td align="right" class="lefttd" height="30" style="width: 102px">
                <strong>试卷属性：</strong></td>
            <td class="righttd">
             
            
                <asp:CheckBoxList ID="ChBoxAttr" runat="server" 
                    RepeatDirection="Horizontal" RepeatColumns="4" RepeatLayout="Flow">
                    <asp:ListItem Value="1">试题顺序随机</asp:ListItem>
                    <asp:ListItem Value="1">启用断电保护(断电后允许打开继续考试)</asp:ListItem>
                    <asp:ListItem Value="1">试卷全屏防作弊(仅允许考生用IE浏览器)</asp:ListItem>
                    <asp:ListItem Value="1" Selected>允许发表考后心得</asp:ListItem>
                    <asp:ListItem Value="1" Selected>禁止右键及选择</asp:ListItem>
                    <asp:ListItem Value="1" Selected>禁止F5键刷新</asp:ListItem>
                    
                </asp:CheckBoxList>
             
            
             </td>
        </tr>
        <tr style="display:none">
            <td align="right" class="lefttd" height="30" style="width: 102px">
              <strong>试题添加方式：</strong></td>
            <td class="righttd">
             <asp:DropDownList ID="Drpdtfs" runat="server">
             <asp:ListItem Value="1">按题型逐题录入</asp:ListItem>
             <asp:ListItem Value="2">整份复制进入</asp:ListItem>
             </asp:DropDownList></td>
        </tr>
        <tr>
            <td align="right" class="lefttd" height="30" style="width: 102px">
                <strong>考生须知：</strong></td>
            <td class="righttd">

            <asp:TextBox ID="TxtIntro" runat="server" Width="100px" TextMode="MultiLine" style="width:80%;height:200px;"></asp:TextBox>
             <% Kesion.APPCode.EditorAPI.EchoEditor("editor", this.TxtIntro.ClientID, "Basic",0,false,true,false,false,true);%>


             </td>
        </tr>
         <tr>
            <td align="right" class="lefttd" height="30" style="width: 102px">
                <strong>试卷状态：</strong></td>
            <td class="righttd">
             <asp:RadioButtonList ID="RdbVerify" runat="server" Width="137px" 
                    RepeatDirection="Horizontal" Height="24px">
              <asp:ListItem Value="1" Selected="True">已审核</asp:ListItem>
              <asp:ListItem Value="0">未审核</asp:ListItem>
             </asp:RadioButtonList>
             </td>
        </tr>
         <tr>
            <td align="right" class="lefttd" height="30" style="width: 102px">
                <strong>关键字Tags：</strong></td>
            <td class="righttd">
             <asp:TextBox ID="TxtKeyTags" runat="server" CssClass="textbox" Width="300px" /> 
            【<a href='javascript:;' onclick='GetKeyTags()' style='color:green'>根据试卷名称自动获取Tags</a>】&nbsp;&nbsp;<font class='tips'>多个tags请用空格隔开</font>
             </td>
        </tr>
        </tbody>
      </table>
      </div>
      <div class="tab-page" id="tab1">
		  <h2 class="tab">SEO选项</h2>
			<script type="text/javascript">
			    tabPane1.addTabPage(document.getElementById("tab1"));
			</script>
    
    <table style="width:100%;margin:0 auto;" cellpadding="2" cellspacing="1" class="CTable">
     <tr>
       <td class="lefttd" align="right"><strong>页面标题：</strong></td>
       <td class="righttd">
          <asp:TextBox ID="TxtSeoTitle" runat="server" Width="300px"  CssClass="textbox" />
         <span class='tips'>留空则默认显示文章名称,模板里请用标签{KS:Field:SEOTitle}调用。</span>
        </td>
     </tr>
     <tr>
       <td class="lefttd" align="right"><strong>页面关键字：</strong>(meta_keywords)</td>
       <td class="righttd">
          <asp:TextBox TextMode="MultiLine" Rows="5" ID="TxtSeoKeyWords" runat="server" Width="300px"  CssClass="textbox" />
         <span class='tips'>留空则默认显示文章里设置的KeyWords,模板里请用标签{KS:Field:SEOKeyWords}调用。</span>
        </td>
     </tr>
     <tr>
       <td class="lefttd" align="right"><strong>页面描述：</strong>(meta_description)</td>
       <td class="righttd">
          <asp:TextBox TextMode="MultiLine" Rows="5" ID="TxtSeoDescription" runat="server" Width="300px"  CssClass="textbox" />
         <span class='tips'>留空则默认显示文章简介,模板里请用标签{KS:Field:SEODescription}调用。</span>
        </td>
     </tr>
    </table>
     </div>
      
      
   </div>
      <asp:Label ID="labsjinfo" runat="server"></asp:Label>
      <div style="clear:both;text-align:center">
      <br />
        <KS:Foot ID="Foot1" runat="server" OnSubmit="Foot1_Submit" />
      
    </asp:Panel>
        <script>
            function CheckForm() {
                if (jQuery('#<%=this.TxtTitle.ClientID %>').val() == '') {
                    KesionJS.Alert('试卷名称必须输入!', "jQuery('#<%=this.TxtTitle.ClientID %>').focus()");
                    return false;
                }
                if (jQuery('#<%=this.DrpClassID.ClientID %>').val() == '0') {
                    KesionJS.Alert('请选择试卷分类!', "jQuery('#<%=this.DrpClassID.ClientID %>').focus()");
                    return false;
                }
                return true;
            }
        function GetKeyTags() {
            var text = escape(jQuery('#<%=this.TxtTitle.ClientID %>').val());
            if (text != '') {
                jQuery('#<%=this.TxtKeyTags.ClientID %>').val('请稍等,系统正在自动获取tags...').attr("disabled", true);
                jQuery.get("../../plus/ajaxs.ashx", { a: "GetTags", text: text },
				  function(data) { jQuery('#<%=this.TxtKeyTags.ClientID %>').val(unescape(data)).attr("disabled", false); });
            } else { KesionJS.Alert('对不起,请先输入试卷名称!', "jQuery('#<%=this.TxtTitle.ClientID %>').focus();"); }
        }
    </script>
 </div>   
</asp:Content>
