<%@ Page Language="C#" AutoEventWireup="true" Inherits="System_InfoModel_ModelPreView, QianboCMS" EnableEventValidation="false" %>
<%@ Register Src="../../Common/Linkage.ascx" TagName="Linkage" TagPrefix="uc1" %>
<%@ Import Namespace="Qianbo.BLL" %>
<%@ Import Namespace="System.Data" %>
<!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 runat="server">
    <title>模型预览</title>
    <link href="../Css/layout.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../Js/jquery.js"></script>
    <script type="text/javascript" src="../../Js/lhgdialog/lhgdialog.min.js?self=true"></script>
    <script src="../../Js/XmlHttp.js" type="text/javascript"></script>
    <script src="../../Js/Common.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript" src="../../Js/DatePicker/WdatePicker.js"></script>
    <script src="../../Js/InfoModel.js" type="text/javascript"></script>
    <script language="javascript">
        function EWEBeditor_Create(s_ID, s_Style) {
            document.write('<input type="hidden" name="' + s_ID + '" value="">'
                + '<iframe id="' + s_ID + '__Iframe" src="../../Editor/eWebEditor/eWebEditor.htm?id=' + s_ID + '&style=' + s_Style + '" width="0" height="0" style="display: none;" frameborder="0" scrolling="no"></iframe>');
        }
        function EWEBeditor_ShowDialog(s_ID, s_Type, s_Mode, s_LinkID_SavePathFileName, s_LinkID_SaveFileName, s_LinkID_OriginalFileName) {
            var editor = document.getElementById(s_ID + '__Iframe').contentWindow;
            editor.openUploadDialog(s_Type, s_Mode, s_LinkID_SavePathFileName, s_LinkID_SaveFileName, s_LinkID_OriginalFileName)
        }
        EWEBeditor_Create("eWebEditor1", "standard650");
    </script>
</head>

<body onload="GetTitleType()">
    <form id="form1" runat="server">
        <iframe width="260" height="165" id="colorPalette" src="../../Common/SetColor.htm" style="visibility: hidden; position: absolute; border: 1px gray solid; left: 2px; top: 1px;" frameborder="0" scrolling="no"></iframe>
        <table cellspacing="1" cellpadding="0" class="wzdh" align="center">
            <tr>
                <td style="padding-left: 10px;">
                    <img src="../Images/Skin/Default/you.gif" align="absmiddle" />
                    您现在的位置：<a href="../SystemInfo.aspx">后台管理</a> &gt;&gt;
                    <asp:Literal runat="server" ID="litNav"></asp:Literal>
                    <uc1:linkage id="Linkage1" runat="server" />
                </td>
            </tr>
        </table>
        <table cellspacing="0" cellpadding="0" align="center" border="0" class="cd">
            <tbody id="ShowDefault">
                <tr align="center">
                    <td id="TabTitle0" class="title6" onclick="ShowTabs(0)">基本信息</td>
                    <td id="TabTitle1" class="title5" onclick="ShowTabs(1)">所属专题</td>
                    <td id="TabTitle2" class="title5" onclick="ShowTabs(2)">高级选项</td>
                    <td id="TabTitle3" class="title5" onclick="ShowTabs(3)">收费选项</td>
                    <td>&nbsp;</td>
                </tr>
        </table>
        <table class="editborder" cellspacing="1" cellpadding="0" border="0" align="center">
            <tbody id="Tabs0">
                <tr>
                    <td class="bqleft">
                        <asp:TextBox ID="FilePicPath" runat="server" Style="display: none;">news</asp:TextBox>
                        文章类型：
					</td>
                    <td class="bqright">
                        <asp:RadioButton ID="rbComm" runat="server" Checked="True" GroupName="TitleType" Text="普通标题" onclick="SetTitleType(1)" />
                        <asp:RadioButton ID="rbImg" runat="server" GroupName="TitleType" Text="图片标题" onclick="SetTitleType(2)" />
					</td>
                </tr>
                <tr id="ShowImgUrl" style="display: none;">
                    <td class="bqleft">图片地址：</td>
                    <td class="bqright">
                        <asp:TextBox ID="txtTitleImgPath" name="txtTitleImgPath" runat="server" Width="265px"></asp:TextBox>
                        <input id="btn" type="button" class="btn" value="上传图片" onclick="EWEBeditor_ShowDialog('eWebEditor1', 'image', '0', 'txtTitleImgPath', '', '')" />
                        <span class="red">*</span>
					</td>
                </tr>
                <tr>
                    <td class="bqleft">文章标题：</td>
                    <td class="bqright">
                        <asp:TextBox ID="txtTitle" runat="server" Text='' Width="35%" MaxLength="30"></asp:TextBox>
                        <span class="red">*</span>
                        <asp:DropDownList ID="ddlTitleFontType" runat="server">
                            <asp:ListItem Value="0">常规</asp:ListItem>
                            <asp:ListItem Value="1">粗体</asp:ListItem>
                            <asp:ListItem Value="2">斜体</asp:ListItem>
                        </asp:DropDownList>
                        <span style="display: none;">
                            <asp:TextBox ID="txtTitleColor" runat="server" Width="45px"></asp:TextBox>
                        </span>
                        <span>
                            <img src="../../Images/<%if (txtTitleColor.Text == ""){%>rectNoColor.gif<%}else{%>rect.gif<%} %>" width="18" height="17" border="0" align="absmiddle" id="TitleColorShow" style="cursor: pointer; background-color: #<%=txtTitleColor.Text %>;" title="选取颜色" onclick="GetColor($('TitleColorShow'),'txtTitleColor');" />
						</span>
                        <input type="button" class="btn" value="文章标题重名检测" />
					</td>
                </tr>
                <tr>
                    <td class="bqleft">所属栏目：</td>
                    <td class="bqright">
                        <asp:DropDownList ID="ddlColId" runat="server">
                            <asp:ListItem>无类别</asp:ListItem>
                        </asp:DropDownList>
					</td>
                </tr>
                <tr>
                    <td class="bqleft">Tag关键字：</td>
                    <td class="bqright">
                        <asp:TextBox ID="txtTagNameStr" runat="server" Text='' Width="361px" MaxLength="100"></asp:TextBox>
                        <span class="tips"><a href="javascript:SepTagName()">多个关键字使用“<span style="color: #00f; font-weight: 600;">|</span>”分隔</a>（每个关键字长度建议保持在20个字符以内）</span>
					</td>
                </tr>
                <tr>
                    <td class="bqleft">属性设置：</td>
                    <td class="bqright">
                        <asp:CheckBox ID="chkBoxIsRecommend" runat="server" Text="推荐" />
                        <asp:CheckBox ID="chkBoxIsFocus" runat="server" Text="焦点" />
                        <asp:CheckBox ID="chkBoxIsTop" runat="server" Text="置顶" />
                        <asp:CheckBox ID="chkBoxIsSideShow" runat="server" Text="幻灯" />
                        <asp:CheckBox ID="chkBoxIsAllowComment" runat="server" Text="允许评论" Checked="True" />
                        <asp:CheckBox ID="chkBoxIsCreate" runat="server" Text="发布" Checked="True" />
					</td>
                </tr>
                <asp:Literal ID="ModelHtml" runat="server"></asp:Literal>
            </tbody>
            <tbody id="Tabs1" style="display: none;">
                <tr>
                    <td class="bqleft">所属专题：</td>
                    <td class="bqright">
                        <asp:ListBox ID="lBoxTopicIdStr" runat="server" SelectionMode="Multiple" Width="180px" Height="250px"></asp:ListBox>
                        <br />
                        <input type="button" id="btnSelAllTopicIdStr" name="btnSelAllTopicIdStr" value="选定所有专题" class="btn" onclick="btnSetToppicStr('ChooseAll')" />
                        <input type="button" id="btnCanCelTopicIdStr" name="btnCanCelTopicIdStr" value="取消选定专题" class="btn" onclick="btnSetToppicStr('Cancel')" />
					</td>
                </tr>
            </tbody>
            <tbody id="Tabs2" style="display: none;">
                <tr>
                    <td class="bqleft">点击数：</td>
                    <td class="bqright" colspan="3">
                        <asp:TextBox ID="txtHitCount" runat="server" Width="70px" MaxLength="10">0</asp:TextBox> 次
					</td>
                </tr>
                <script type="text/javascript">
                    var jq = jQuery.noConflict();
                    jQuery(function () {
                        jQuery('#btnSelTemplate').click(function () {
                            jQuery.dialog({
                                id: 'txtSelTemplate',
                                lock: true,
                                title: '选择模板',
                                content: "url:../Common/SelectFile.aspx?ControlId=" + escape('txtTemplatePath') + "&StartPath=" + escape('/Template') + "",
                                width: 800,
                                height: 500
                            });
                        });
                    });
                </script>
                <tr>
                    <td class="bqleft">模板路径：</td>
                    <td class="bqright" colspan="3">
                        <asp:TextBox ID="txtTemplatePath" runat="server" Text="" Width="35%"></asp:TextBox>
                        <input type="button" value="选择模板" id="btnSelTemplate" class="btn" />
                        <span class="red">*</span>
					</td>
                </tr>
                <tr>
                    <td class="bqleft">内容页扩展名：</td>
                    <td class="bqright" colspan="3">
                        <asp:RadioButtonList ID="rdBtnPageType" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Value="1" Selected="True">.html</asp:ListItem>
                            <asp:ListItem Value="2">.htm</asp:ListItem>
                            <asp:ListItem Value="3">.shtml</asp:ListItem>
                            <asp:ListItem Value="4">.aspx</asp:ListItem>
                        </asp:RadioButtonList>
					</td>
                </tr>
            </tbody>
            <tbody id="Tabs3" style="display: none;">
                <tr>
                    <td class="bqleft">阅读收取金币数：</td>
                    <td class="bqright">
                        <asp:TextBox ID="txtPointCount" runat="server" Width="70px" MaxLength="10">0</asp:TextBox>
                        （阅读本文需要消耗多少<%=SiteModel.GUnitName%>金币）
					</td>
                </tr>
                <tr>
                    <td class="bqleft">阅读权限：</td>
                    <td class="bqright">
                        <asp:RadioButtonList ID="rdBtnIsOpened" runat="server">
                            <asp:ListItem Selected="True" Value="2">继承栏目权限（当所属栏目为认证栏目时，建议选择此项。）</asp:ListItem>
                            <asp:ListItem Value="1">开放（当所属栏目为开放栏目，想单独对某些文章进行阅读权限设置，可以选择此项。）</asp:ListItem>
                            <asp:ListItem Value="0">认证（当所属栏目为认证栏目，想单独对某些文章进行阅读权限设置，可以选择此项。）</asp:ListItem>
                        </asp:RadioButtonList>
                        <asp:CheckBoxList ID="chkBoxGroupIdStr" runat="server" RepeatDirection="Horizontal"></asp:CheckBoxList>
					</td>
                </tr>
                <tr>
                    <td class="bqleft">重复收费方式：</td>
                    <td class="bqright">
                        <asp:RadioButton ID="rdBtnChargeType1" runat="server" Checked="True" GroupName="ChargeType" />不重复收费<br />
                        <asp:RadioButton ID="rdBtnChargeType2" runat="server" GroupName="ChargeType" />距离上次收费时间
                        <asp:TextBox runat="server" ID="txtChargeHourCount" Text="24" MaxLength="10" Width="82px"></asp:TextBox>小时后重新收费<br />
                        <asp:RadioButton ID="rdBtnChargeType3" runat="server" GroupName="ChargeType" />会员重复阅读此文章
                        <asp:TextBox runat="server" ID="txtChargeViewCount" Text="10" MaxLength="10" Width="70px"></asp:TextBox>次后重新收费<br />
                        <asp:RadioButton ID="rdBtnChargeType4" runat="server" GroupName="ChargeType" />上述两者都满足时重新收费<br />
                        <asp:RadioButton ID="rdBtnChargeType5" runat="server" GroupName="ChargeType" />上述两者任一个满足时就重新收费<br />
                        <asp:RadioButton ID="rdBtnChargeType6" runat="server" GroupName="ChargeType" />每阅读一次就重复收费一次
					</td>
                </tr>
            </tbody>
            <tr>
                <td class="bqleft"></td>
                <td class="bqright">
                    <input id="Button3" type="button" value="返回" class="btn" onclick="window.location.href='FieldList.aspx?ModelId=<%=Request.QueryString["ModelId"] %>'" />
				</td>
            </tr>
        </table>
    </form>
    <br />
</body>
</html>