<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Admin_SJConfig" Title="考试系统参数设置" CodeBehind="KS.SJConfig.aspx.cs" %>

<%@ Import Namespace="Kesion.Cache" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" runat="Server">
    <div id="manage_top" class="menu_top_fixed">
        <ul class="titleTab">
            <li class="curr"><a href="KS.SJConfig.aspx">频道参数设置</a></li>
            <li><a href="KS.SJCategory.aspx">分类管理</a></li>
            <li><a href="KS.SJType.aspx">自定义类别</a></li>
            <li><a href="KS.SJZDYType.aspx">自定义题型</a></li>
            <%if (MyCache.GetSJCacheConfig(2).ToString() == "1")
                { %>
            <li><a href="KS.SJKnowledge.aspx">知识点管理</a></li>
            <%} %>
            <li><a href="KS.SjTypeClass.aspx">章节管理</a></li>
            <li><a href="KS.SJCJD.aspx">成绩等级管理</a></li>
            <li><a href="KS.ZGCard.aspx">准考证生成管理</a></li>
            <li><a href="KS.SJKM.aspx">会计科目管理</a></li>
        </ul>
    </div>
    <div class="menu_top_fixed_height"></div>
    <div class="content-area pageBlank">
        <div class="tab-page" id="SystemExamPanel">
            <script type="text/javascript">
                var tabPane1 = new WebFXTabPane(document.getElementById("SystemExamPanel"), 1)
            </script>
            <div class="tab-page" id="tab0">
                <h2 class="tab">基本参数</h2>
                <script type="text/javascript">
                    tabPane1.addTabPage(document.getElementById("tab0"));
                </script>
                <table id="tbs" width="100%" border="0" cellpadding="1" cellspacing="1" class="CTable no-borderTable">
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>考试频道状态：</b></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="ExamStatus" runat="server" RepeatDirection="horizontal">
                                <asp:ListItem Value="0">关闭</asp:ListItem>
                                <asp:ListItem Value="1" Selected>正常</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 258px"><strong>考试频道名称：</strong></td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="TxtExamName" runat="server"></asp:TextBox>
                            <span class="tips">如考试频道、模拟考场。标签： {$GetExamName}</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 258px"><strong>前台发布是否需要审核：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="ExamPubVefify" runat="server" RepeatDirection="horizontal">
                                <asp:ListItem Value="1">需要后台审核后,方可发布</asp:ListItem>
                                <asp:ListItem Value="0">不需要审核,直接发布</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr style="display: none">
                        <td align="right" class="lefttd" height="30" style="width: 258px"><strong>已审核的信息是否允许修改：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="ExamVerifyModify" runat="server">
                                <asp:ListItem Value="0">不允许修改<font color=red>(建议)</font></asp:ListItem>
                                <asp:ListItem Value="1">允许修改,修改后自动转为待审</asp:ListItem>
                                <asp:ListItem Value="2">允许修改且仍为已审核状态</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 258px"><strong>后台添加试卷时试卷的显示方式：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RdbSjClassType" runat="server" RepeatDirection="horizontal">
                                <asp:ListItem Value="0">下拉显示试卷分类</asp:ListItem>
                                <asp:ListItem Value="1">联动显示试卷分类<font color=red>(推荐)</font></asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 258px"><strong>是否启用多选题,少选得分：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="horizontal">
                                <asp:ListItem Value="0">不启用</asp:ListItem>
                                <asp:ListItem Value="1">启用</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 258px"><strong>是否启用只看错题：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RadioErr" runat="server" RepeatDirection="horizontal">
                                <asp:ListItem Value="0">不启用</asp:ListItem>
                                <asp:ListItem Value="1">启用</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 258px"><strong>是否启用知识点：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="ExamKnowledgeTF" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Value="0">不启用</asp:ListItem>
                                <asp:ListItem Value="1">启用</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 258px"><strong>是否启用试卷类别：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="ExamTypeTF" runat="server" RepeatDirection="horizontal">
                                <asp:ListItem Value="0">不启用</asp:ListItem>
                                <asp:ListItem Value="1">启用</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 258px"><strong>是否启用所属省份：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="ExamProvinceTF" runat="server" RepeatDirection="horizontal">
                                <asp:ListItem Value="0">不启用</asp:ListItem>
                                <asp:ListItem Value="1">启用</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 258px"><strong>是否启用多省份：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="ExamMoreProvinceTF" runat="server" RepeatDirection="horizontal">
                                <asp:ListItem Value="0">不启用</asp:ListItem>
                                <asp:ListItem Value="1">启用</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 258px"><strong>是否启用题目旁显示收藏试题：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="ExamCollectTMTF" runat="server" RepeatDirection="horizontal">
                                <asp:ListItem Value="0">不启用</asp:ListItem>
                                <asp:ListItem Value="1">启用</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 258px"><strong>是否启用错题本功能：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="ExamCTBTF" runat="server" RepeatDirection="horizontal">
                                <asp:ListItem Value="0">不启用</asp:ListItem>
                                <asp:ListItem Value="1">启用</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 258px"><strong>是否启用栏目筛选省份，年份等：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="ExamJC" runat="server" RepeatDirection="horizontal">
                                <asp:ListItem Value="0">不启用</asp:ListItem>
                                <asp:ListItem Value="1">启用</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 258px"><strong>是否启用自动生成每日一练：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RadioDaily" runat="server" RepeatDirection="horizontal">
                                <asp:ListItem Value="0">不启用</asp:ListItem>
                                <asp:ListItem Value="1" Selected>启用</asp:ListItem>
                            </asp:RadioButtonList>
                            <span>每天24点自动随机生成</span>
                        </td>
                    </tr>
                    <tr style="display: none">
                        <td align="right" class="lefttd" height="30" style="width: 258px"><strong>答题表情</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RadioShowFace" runat="server" RepeatDirection="horizontal" onclick="free()">
                                <asp:ListItem Value="0">不启用</asp:ListItem>
                                <asp:ListItem Value="1">启用</asp:ListItem>
                            </asp:RadioButtonList>
                            <div id="showtext" style="display: none">
                                正确表情路径:
                                <asp:TextBox ID="TextShow" CssClass="textbox" runat="server"></asp:TextBox><br />
                                文字: 
                                <asp:TextBox ID="Textright" TextMode="MultiLine" Rows="5" runat="server" Width="300px"></asp:TextBox>
                                <a class="textarea_min" href="javascript:zoomtextarea(-2,'<%=this.Textright.ClientID %>');"></a>
                                <a class="textarea_max" href="javascript:zoomtextarea(2,'<%=this.Textright.ClientID %>');"></a>
                                <font color="red">  一行一个提示</font>
                                <br />
                                错误表情路径:
                                <asp:TextBox ID="Texterr" CssClass="textbox" runat="server"></asp:TextBox>
                                <br />
                                文字：
                                <asp:TextBox ID="Textworrng" TextMode="MultiLine" Rows="5" runat="server" Width="300px"></asp:TextBox>
                                <a class="textarea_min" href="javascript:zoomtextarea(-2,'<%=this.Textworrng.ClientID %>');"></a>
                                <a class="textarea_max" href="javascript:zoomtextarea(2,'<%=this.Textworrng.ClientID %>');"></a>
                                <font color="red">  一行一个提示</font>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 258px"><strong>每日一练显示多少天：</strong></td>
                        <td class="righttd">
                            <asp:TextBox ID="DailySettime" CssClass="textbox" runat="server" Style="width: 60px; text-align: center"></asp:TextBox>
                            <span class="tips">如：15  后面不能加:天</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 258px"><strong>每日一练/随机抽题数：</strong></td>
                        <td class="righttd">
                            <asp:TextBox ID="Dailynum" CssClass="textbox" runat="server" Style="width: 60px; text-align: center"></asp:TextBox>
                            <span class="tips">如：10  后面不加:题</span>
                            <input type="button" name="" id="dailyput" value="生成练习" class="button" onclick="put()" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 258px"><strong>每日一练/随机练习答题时间：</strong></td>
                        <td class="righttd">
                            <asp:TextBox ID="pxDate" CssClass="textbox" runat="server" Style="width: 60px; text-align: center"></asp:TextBox>
                            <span class="tips">如：120  后面不加:分</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 258px"><strong>章节练习抽题数：</strong></td>
                        <td class="righttd">
                            <asp:TextBox ID="chapterNum" CssClass="textbox" runat="server" Style="width: 60px; text-align: center"></asp:TextBox>
                            <span class="tips">如：10  后面不加:题</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>试卷缓存：</b></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RadioCache" runat="server" RepeatDirection="horizontal">
                                <asp:ListItem Value="0" Selected>不启用</asp:ListItem>
                                <asp:ListItem Value="1">启用</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr style="display: none">
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>交卷显示答案解析：</b></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RadioDajs" runat="server" RepeatDirection="horizontal">
                                <asp:ListItem Value="0">不启用</asp:ListItem>
                                <asp:ListItem Value="1" Selected>启用</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 258px"><strong>是否启用试卷多选分类：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="MoreSJClass" runat="server" RepeatDirection="horizontal">
                                <asp:ListItem Value="0">不启用</asp:ListItem>
                                <asp:ListItem Value="1">启用</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                </table>
            </div>
            <script>
                $(function () {
                    var show =<%=showface%>;
                    if (show == 1) {
                        jQuery("#showtext").show();
                    } else {
                        jQuery("#showtext").hide();
                    }
                });

                function free() {
                    var show = jQuery("#<%=this.RadioShowFace.ClientID %> :radio[checked]").val();
                    if (show == 1) {
                        jQuery("#showtext").show();
                    } else {
                        jQuery("#showtext").hide();
                    }
                }
                function put() {
                    location.href = 'KS.DayList.aspx?action=GoDialy';
                }
            </script>
            <div class="tab-page" id="tab3">
                <h2 class="tab">权限控制</h2>
                <script type="text/javascript">
                    tabPane1.addTabPage(document.getElementById("tab3"));
                </script>
                <table width="100%" border="0" cellpadding="1" cellspacing="1" class="CTable no-borderTable">
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>允许游客考试：</b></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RdbAllowVisitorExamTF" runat="server" RepeatDirection="horizontal">
                                <asp:ListItem Value="0">所有试卷都不允许游客考试</asp:ListItem>
                                <asp:ListItem Value="1">以每份试卷的设置为准</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>

                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>允许游客练习：</b></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RdbAllowVisitorTrainTF" runat="server" RepeatDirection="horizontal">
                                <asp:ListItem Value="0">不允许游客练习</asp:ListItem>
                                <asp:ListItem Value="1">允许游客练习</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>练习是否开启收费：</b></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RadioButtonList2" runat="server" RepeatDirection="horizontal">
                                <asp:ListItem Value="0" Selected>不收费</asp:ListItem>
                                <asp:ListItem Value="1">套餐包模式收费</asp:ListItem>
                                <asp:ListItem Value="2">VIP形式收费</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>练习收费类型设置：</b></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="Radiopay" runat="server" RepeatDirection="horizontal">
                                <asp:ListItem Value="0">金币</asp:ListItem>
                                <asp:ListItem Value="1">资金</asp:ListItem>
                                <asp:ListItem Value="2">积分</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>收费试卷间隔：</b></td>
                        <td class="righttd">
                            <asp:TextBox ID="TxtChargesInterval" runat="server" Width="50px" CssClass="textbox" />
                            小时后重新收费，不重复收费请输入“0”
                        </td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 258px"><b>查看试题解释需要消费：</b></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RdbChargeExplainTF" runat="server" RepeatDirection="Vertical">
                                <asp:ListItem Value="0">不需要</asp:ListItem>
                                <%--  <asp:ListItem Value="1">看一份试卷只需消费一次</asp:ListItem>--%>
                                <asp:ListItem Value="2">看一题消费一次</asp:ListItem>
                            </asp:RadioButtonList>
                            查看试题解释每次消费<asp:TextBox ID="TxtChargeExplainMoney" CssClass="textbox" runat="server" Width="50" />元，间隔<asp:TextBox ID="TxtChargesIntervalExplain" runat="server" Width="50" CssClass="textbox" />小时后需要重复收复，不重复收费输入“0”。
                        </td>
                    </tr>
                </table>
            </div>
            <div class="tab-page" id="tab1">
                <h2 class="tab">SEO选项</h2>
                <script type="text/javascript">
                    tabPane1.addTabPage(document.getElementById("tab1"));
                </script>
                <table width="100%" border="0" cellpadding="1" cellspacing="1" class="CTable no-borderTable">
                    <tr>
                        <td height="30" align="right" class="lefttd" style="width: 258px"><b>考试频道标题：</b></td>
                        <td class="righttd">
                            <asp:TextBox ID="TxtExamSeoTitle" runat="server" Columns="50" Rows="3" TextMode="MultiLine"></asp:TextBox>
                            <a class="textarea_min" href="javascript:zoomtextarea(-2,'<%=this.TxtExamSeoTitle.ClientID %>');"></a>
                            <a class="textarea_max" href="javascript:zoomtextarea(2,'<%=this.TxtExamSeoTitle.ClientID %>');"></a>
                            <br />
                            <span class="tips">网页标题通常是搜索引擎关注的重点,模板时使用标签{$GetSEOTitle}</span>
                        </td>
                    </tr>

                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 258px"><strong>考试频道META关键词：</strong></td>
                        <td class="righttd">
                            <asp:TextBox ID="TxtExamSeoKeywords" runat="server" TextMode="MultiLine" Columns="50" Rows="5"></asp:TextBox>
                            <a class="textarea_min" href="javascript:zoomtextarea(-2,'<%=this.TxtExamSeoKeywords.ClientID %>');"></a>
                            <a class="textarea_max" href="javascript:zoomtextarea(2,'<%=this.TxtExamSeoKeywords.ClientID %>');"></a>
                            <br />
                            <span class="tips">针对搜索引擎设置的网页关键词,多个关键词请用,号分隔。模板时使用标签{$GetMetaKeyWords}</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 258px"><strong>考试频道META网页描述：</strong></td>
                        <td class="righttd">
                            <asp:TextBox ID="TxtExamSeoDescript" runat="server" TextMode="MultiLine" Columns="50" Rows="5"></asp:TextBox>
                            <a class="textarea_min" href="javascript:zoomtextarea(-2,'<%=this.TxtExamSeoDescript.ClientID %>');"></a>
                            <a class="textarea_max" href="javascript:zoomtextarea(2,'<%=this.TxtExamSeoDescript.ClientID %>');"></a>
                            <br />
                            <span class="tips">针对搜索引擎设置的网页描述,多个描述请用,号分隔。模板里使用标签：{$GetMetaDescript}调用</span>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="tab-page" id="tab4">
                <h2 class="tab">其他内容</h2>
                <script type="text/javascript">
                    tabPane1.addTabPage(document.getElementById("tab4"));
                </script>
                <table width="100%" border="0" cellpadding="1" cellspacing="1" class="CTable">
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px"><strong>导出模板：
                        </strong>
                        </td>
                        <td class="righttd">
                            <asp:TextBox ID="TxtExportTemplate" runat="server" TextMode="MultiLine" Height="450px" Width="900px"></asp:TextBox>
                            <br />
                            <span class="tips">存在{#Answer}标签时  表示导出试卷时  答案解析存在试题后面      不存在表示答案解析最后出现
                            </span>
                        </td>
                    </tr>
                </table>
            </div>

        </div>
    </div>
    <KS:Foot runat="server" CancelButtonEnabled="false" ID="Foot1" OnSubmit="Foot1_Submit" />
</asp:Content>

