123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357 |
- <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TrendToolInfoPage.aspx.cs"
- Inherits="CB.Admin.Plugins.TrendTool.TrendToolInfoPage" %>
- <!DOCTYPE html PUBLIC>
- <html>
- <head>
- <title></title>
- <link href="../../static/css/main.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="../../static/js/jquery.js"></script>
- <script type="text/javascript" src="../../Static/js/adminTool.js?"></script>
- <script src="../../Static/editor/kindeditor-all-min.js" type="text/javascript"></script>
- <script type="text/javascript">
- KindEditor.ready(function (K)
- {
- K.create('#txtOldHTML1', {
- resizeType: 1,
- filterMode: false,
- allowImageUpload: false,
- allowFlashUpload: false,
- allowMediaUpload: false,
- allowFileManager: false,
- shadowMode: false,
- uploadJson: '../',
- themeType: 'default',
- newlineTag: 'p',
- pasteType: 2,
- items: [
- 'source', '|', 'undo', 'redo', '|', 'preview', 'cut', 'copy', 'paste',
- 'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
- 'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
- 'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
- 'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
- 'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'table', 'hr', 'emoticons', 'link', 'unlink', 'image', 'multiimage', '|', 'flash', 'media']
- });
- });
- </script>
- </head>
- <body>
- <form id="form1" runat="server">
- <div class="box">
- <div class="title">
- <span>过滤项明细配置</span><a href="TrendToolList.aspx?authPage=<%=authPage %>&Id=<%=PageId %>">返回过滤项列表</a>
- </div>
- <div class="content">
- <div class="listtable">
- <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <th>
- ID
- </th>
- <th>
- 过滤项名称
- </th>
- <th>
- 值
- </th>
- <th>
- 状态
- </th>
- <th>
- 操 作
- </th>
- </tr>
- <asp:Repeater ID="repeaterList" runat="server" OnItemCommand="repeaterList_ItemCommand">
- <ItemTemplate>
- <tr>
- <td>
- <%#DataBinder.Eval(Container.DataItem, "id")%>
- </td>
- <td>
- <%#DataBinder.Eval(Container.DataItem, "ToolName")%>
- </td>
- <td>
- <%#DataBinder.Eval(Container.DataItem, "ItemValue")%>
- </td>
- <td>
- <%#DataBinder.Eval(Container.DataItem, "Status")%>
- </td>
- <td>
- <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"id")%>'
- CommandName="dnedit" Text="编辑"></asp:LinkButton>
- <span> </span>
- <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"id")%>'
- CommandName="dndel" Text="<span onclick="javascript:return confirm('此操作不可恢复,确认要删除此内容吗?')">删除</span>"></asp:LinkButton>
- </td>
- </tr>
- </ItemTemplate>
- </asp:Repeater>
- </table>
- </div>
- </div>
- </div>
- <div class="box">
- <div class="content">
- <div class="bar">
- 明细信息
- </div>
- <div class="listtable">
- <table cellspacing="0" cellpadding="0" width="98%" border="0">
- <col width="10%" />
- <col width="40%" />
- <col width="10%" />
- <col width="40%" />
- <tr>
- <td>
- <div class="right">
- <asp:HiddenField ID="txtPageID" runat="server" />
- <asp:HiddenField ID="txtID" runat="server"></asp:HiddenField>
- 项类型 :
- </div>
- </td>
- <td>
- <div class="left" style="width: 100%">
- <%--
- <asp:DropDownList runat="Server" ID="ddlToolType" description="项类型" isnull="false">
- <asp:ListItem Value="">--请选择--</asp:ListItem>
- <asp:ListItem Value="0">标题类型</asp:ListItem>
- <asp:ListItem Value="1">单选类型</asp:ListItem>
- <asp:ListItem Value="2">多选类型</asp:ListItem>
- </asp:DropDownList>
- <span style="color: Red;">(必填)确定项的关键,如果是单选则选择单选,多选则选择多选,其他情况选择标题类型即可</span>--%>
- <asp:DropDownList ID="ddlFilterCodeType" runat="server" Style="display: block; float: left;
- width: 30%">
- <asp:ListItem Value="0" Selected="True">无</asp:ListItem>
- <asp:ListItem Value="1">判断取值</asp:ListItem>
- <asp:ListItem Value="2">项取值</asp:ListItem>
- </asp:DropDownList>
- <span style="color: Red; display: block; float: left; width: 60%; text-align: left">【判断取值】-(包含选中,排除选中)选择
- <br />
- 【项取值】-(0,1,2,3,4,5,6,7,8,9)选择<br />
- 【无】-其他情况选择</span>
- </div>
- </td>
- <td>
- <div class="right">
- <%-- 项取值类型 :--%>
- </div>
- </td>
- <td colspan="1">
- <div class="left" style="width: 100%">
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="right">
- <span>名称 :</span>
- </div>
- </td>
- <td>
- <div class="left">
- <asp:TextBox ID="txtToolName" runat="server" description="名称" isnull="false"></asp:TextBox> <span
- style="color: Red;">(必填)项的名称</span>
- </div>
- </td>
- <td>
- <div class="right">
- 父项 :
- </div>
- </td>
- <td colspan="1">
- <div class="left">
- <asp:DropDownList ID="ddlParentID" runat="server">
- </asp:DropDownList>
- <span style="color: Red;">如果不选择即为根节点</span>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="right">
- 标题信息 :
- </div>
- </td>
- <td>
- <div class="left">
- <asp:TextBox ID="txtTitle" runat="server"></asp:TextBox>
- <span style="color: Red;">标题信息【果填写则会替换模版#@@Title】</span>
- </div>
- </td>
- <td>
- <div class="right">
- 项个数 :
- </div>
- </td>
- <td>
- <div class="left">
- <asp:TextBox ID="txtItemCount" runat="server" description="项个数" mytype="int" Min="0"></asp:TextBox> <span
- style="color: Red;">(必填)html元素总数</span>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="right">
- 备注信息:
- </div>
- </td>
- <td>
- <div class="left" style="width: 100%">
- <asp:TextBox ID="txtRemark" runat="server" TextMode="MultiLine" Rows="5" Style="display: block;
- float: left; width: 60%"></asp:TextBox> <span style="color: Red; display: block;
- float: left; width: 35%; text-align: left">描述信息【果填写则会替换模版#@@Remark】</span>
- </div>
- </td>
- <td>
- <div class="right">
- 项值:
- </div>
- </td>
- <td>
- <div class="left" style="width: 100%">
- <asp:TextBox ID="txtItemValue" runat="server" TextMode="MultiLine" Rows="5" Width="400px"
- Style="display: block; float: left; width: 60%"></asp:TextBox> <span style="color: Red;
- display: block; float: left; width: 35%; text-align: left">项值,如果多个值请用英文状态下的逗号隔开,例:0,1,2,3,4,5,6,7,8,9
- 【如果填写则会替换模版#@@Content】</span>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="right">
- 取值范围 :
- </div>
- </td>
- <td colspan="3">
- <div class="left">
- 开始值
- <asp:TextBox ID="txtIndexStart" runat="server" description="开始值" mytype="int">-1</asp:TextBox>
- 结束值 :
- <asp:TextBox ID="txtIndexEnd" runat="server" description="结束值" mytype="int">-1</asp:TextBox>
- <span style="color: Red;">从0开始,如果取百位进行过滤则填写去百位填写0,0,如果取百位十位填写0,1,依此类推,如果不填写则默认-1</span>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="right">
- 是否保存 :
- </div>
- </td>
- <td>
- <div class="left">
- <asp:DropDownList ID="ddlIsSaveData" runat="server">
- <asp:ListItem Value="false" Selected="True">否</asp:ListItem>
- <asp:ListItem Value="true">是</asp:ListItem>
- </asp:DropDownList>
- <span style="color: Red;">是否保存用户过滤数据,目前为否</span>
- </div>
- </td>
- <td>
- <div class="right">
- 排序 :
- </div>
- </td>
- <td>
- <div class="left">
- <asp:TextBox ID="txtToolOrder" runat="server" description="排序序号" mytype="int"></asp:TextBox> <span
- style="color: Red;">不填写自动增加</span>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="right">
- 是否有效 :
- </div>
- </td>
- <td colspan="1">
- <div class="left">
- <asp:DropDownList ID="ddlStatus" runat="server" description="是否有效" isnull="false">
- <asp:ListItem Value="" Selected="True">--请选择--</asp:ListItem>
- <asp:ListItem Value="1">正常状态</asp:ListItem>
- <asp:ListItem Value="2">测试状态</asp:ListItem>
- <asp:ListItem Value="-1">失效状态</asp:ListItem>
- </asp:DropDownList>
- <span style="color: Red;">(必填)项是否有效</span>
- </div>
- </td>
- <td>
- <div class="right">
- 过滤方法 :
- </div>
- </td>
- <td colspan="1">
- <div class="left">
- <asp:DropDownList ID="ddlFilterFunEnum" runat="server">
- <asp:ListItem Value="">--请选择--</asp:ListItem>
- </asp:DropDownList>
- <span style="color: Red;">(当父节点是根节点的时候必选)</span>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- 模版信息
- </td>
- <td colspan="3">
- <div class="left" style="width: 100%; height: 200px;">
- <textarea runat="server" id="txtTemplateHtml" name="txtHeadContent" cols="45" style="width: 75%;
- height: 195px; display: block; float: left;"></textarea>
- <span style="color: Red; display: block; float: left; width: 15%; text-align: left">
- 参数<br />
- 头部信息:#@@Title
- <br />
- 内容信息:#@@Content
- <br />
- 描述信息:#@@Remark
- <br />
- 多个项信息:{#@@Title#@@Content#@@Remark} 请用英文状态下的{}包括起来,大括号中的内容将会根据配置的项值个数自动循环 </span>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- 实际效果
- </td>
- <td colspan="3">
- <div class="left" style="width: 100%; height: 250px;">
- <textarea runat="server" id="txtOldHTML" name="txtHeadContent" cols="45" rows="3"
- style="width: 95%; height: 250px; display: block; float: left;"></textarea>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="right">
- 操作 :
- </div>
- </td>
- <td colspan="3">
- <div class="left">
- <asp:Button ID="btnCreateHTML" runat="server" Text="生成HTML" OnClick="btnCreateHTML_Click"
- OnClientClick="return onBeforeSaveSubmit();" />
- <asp:Button ID="btnSave" runat="server" Text=" 保 存 " OnClick="btnSave_Click" OnClientClick="return onBeforeSaveSubmit();" />
- <asp:Button ID="btnClear" runat="server" Text=" 清 空 " OnClick="btnClear_Click" />
- </div>
- </td>
- </tr>
- </table>
- </div>
- </div>
- </div>
- </form>
- </body>
- </html>
- <script type="text/javascript">
- var onBeforeSaveSubmit = function ()
- {
- if (!onVerifySaveSubmit())
- { return false; }
- return true;
- }
-
- </script>
|