123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470 |
- <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TrendToolListItemInfo.aspx.cs"
- Inherits="CB.Admin.Plugins.TrendTool.TrendToolListItemConfig" %>
- <!DOCTYPE html >
- <html>
- <head>
- <title>过滤项明细配置</title>
- <link href="../../static/css/main.css" rel="stylesheet" type="text/css" />
- <script src="../../static/js/jquery.js" type="text/javascript"></script>
- <script type="text/javascript" src="../../Static/js/adminTool.js?"></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">
- <col width="5%" />
- <col width="5%" />
- <col width="5%" />
- <col width="10%" />
- <col width="10%" />
- <col width="20%" />
- <col width="10%" />
- <col width="5%" />
- <col width="10%" />
- <col width="15%" />
- <tr>
- <th>
- ItemID
- </th>
- <th>
- 分类控制
- </th>
- <th>
- 分组控制
- </th>
- <th>
- 描述
- </th>
- <th>
- HTML元素名称
- </th>
- <th>
- HTML元素值
- </th>
- <th>
- HTML元素数量
- </th>
- <th>
- 排序
- </th>
- <th>
- 是否生成Lable
- </th>
- <th>
- 操 作
- </th>
- </tr>
- <asp:Repeater ID="repeaterList" runat="server" OnItemCommand="repeaterList_ItemCommand">
- <ItemTemplate>
- <tr>
- <td>
- <%#DataBinder.Eval(Container.DataItem, "ItemID")%>
- </td>
- <td>
- <%#DataBinder.Eval(Container.DataItem, "FilterCode")%>
- </td>
- <td>
- <%#DataBinder.Eval(Container.DataItem, "FilterCodeGroup")%>
- </td>
- <td>
- <%#DataBinder.Eval(Container.DataItem, "FilterRemark")%>
- </td>
- <td>
- <%#DataBinder.Eval(Container.DataItem, "ElementName")%>
- </td>
- <td>
- <%#DataBinder.Eval(Container.DataItem, "ElementValue")%>
- </td>
- <td>
- <%#DataBinder.Eval(Container.DataItem, "ElementCount")%>
- </td>
- <td>
- <%#DataBinder.Eval(Container.DataItem, "ItemOrder")%>
- </td>
- <td>
- <%#DataBinder.Eval(Container.DataItem, "HasLabel").ToString().ToLower()=="true"?"是":"否"%>
- </td>
- <td>
- <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"ItemID")%>'
- CommandName="dnedit" Text="编辑"></asp:LinkButton>
- <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"ItemID")%>'
- 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">
- 明细ID :
- </div>
- </td>
- <td>
- <div class="left">
- <asp:HiddenField ID="txtConfigID" runat="server" />
- <asp:Label ID="labItemID" runat="server"></asp:Label> <span style="color: Red;"></span>
- </div>
- </td>
- <td>
- <div class="right">
- <span>描述 :</span>
- </div>
- </td>
- <td>
- <div class="left">
- <asp:TextBox ID="txtFilterRemark" runat="server" description="描述" isnull="false"></asp:TextBox> <span
- style="color: Red;">(必填)作用的描述</span>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="right">
- 分类控制 :
- </div>
- </td>
- <td>
- <div class="left">
- <asp:DropDownList runat="Server" ID="ddlFilterCode" description="分类控制" isnull="false">
- <asp:ListItem Value="">--请选择--</asp:ListItem>
- <asp:ListItem Value="Title">Title</asp:ListItem>
- <asp:ListItem Value="Header">Header</asp:ListItem>
- <asp:ListItem Value="Content">Content</asp:ListItem>
- </asp:DropDownList>
- <span style="color: Red;">(必填)分类控制</span>
- </div>
- </td>
- <td>
- <div class="right">
- 特殊编码 :
- </div>
- </td>
- <td>
- <div class="left">
- <asp:TextBox ID="txtSpecialCode" runat="server"></asp:TextBox> <span style="color: Red;">(必填)在程序中特殊情况使用
- </span>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="right">
- 分组控制 :
- </div>
- </td>
- <td>
- <div class="left">
- <asp:TextBox ID="txtFilterCodeGroup" runat="server" description="分组控制" isnull="false"></asp:TextBox>
- <span style="color: Red;">(必填)分组控制</span>
- </div>
- </td>
- <td>
- <div class="right">
- 换行数:
- </div>
- </td>
- <td>
- <div class="left">
- <asp:TextBox ID="txtLineCount" runat="server" description="换行数" isnull="false" myType="int"
- Min="0">0</asp:TextBox> <span style="color: Red;">(必填)整数、默认0为不换行</span>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="right">
- 是否取值元素:
- </div>
- </td>
- <td>
- <div class="left">
- <asp:DropDownList ID="ddlNameControl" runat="server" description="是否取值元素" isnull="false">
- <asp:ListItem Value="">--请选择--</asp:ListItem>
- <asp:ListItem Value="false">否</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:DropDownList ID="ddlIsControlArea" runat="server" description="是否控制号码范围" isnull="false">
- <asp:ListItem Value="">--请选择--</asp:ListItem>
- <asp:ListItem Value="false">否</asp:ListItem>
- <asp:ListItem Value="true">是</asp:ListItem>
- </asp:DropDownList>
- <span style="color: Red;">(必填)是否控制号码范围</span>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="right">
- html元素名称 :
- </div>
- </td>
- <td>
- <div class="left">
- <asp:DropDownList ID="ddlElementName" runat="server" description="html元素名称" isnull="false"
- onclick="spanControl();">
- <asp:ListItem Value="">--请选择--</asp:ListItem>
- <asp:ListItem Value="span" Text="span"></asp:ListItem>
- <asp:ListItem Value="input" Text="input"></asp:ListItem>
- <asp:ListItem Value="textarea" Text="textarea"></asp:ListItem>
- </asp:DropDownList>
- <span style="color: Red;">(必填)html元素名称</span>
- </div>
- </td>
- <td>
- <div class="right">
- 号码控制范围 :
- </div>
- </td>
- <td>
- <div class="left">
- <asp:TextBox ID="txtControlArea" runat="server"></asp:TextBox>
- <span style="color: Red;">例如取3D百位进行计算填写0</span>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="right">
- 元素type :
- </div>
- </td>
- <td>
- <div class="left">
- <asp:DropDownList ID="ddlElementType" runat="server">
- <asp:ListItem Value="">无</asp:ListItem>
- <asp:ListItem Value="radio" Text="radio"></asp:ListItem>
- <asp:ListItem Value="checkbox" Text="checkbox"></asp:ListItem>
- </asp:DropDownList>
- <span style="color: Red;" id="spanElementType">作用于input元素,控制input的类型checkbox,radio;非input选无</span>
- </div>
- </td>
- <td>
- <div class="right">
- 是否创建lable :
- </div>
- </td>
- <td>
- <div class="left">
- <asp:DropDownList ID="ddlHasLabel" runat="server" description="是否创建Lable" isnull="false">
- <asp:ListItem Value="">--请选择--</asp:ListItem>
- <asp:ListItem Value="false">否</asp:ListItem>
- <asp:ListItem Value="true">是</asp:ListItem>
- </asp:DropDownList>
- <span style="color: Red;">(必填)是否要创建对应的Lable元素</span>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="right">
- html元素值 :
- </div>
- </td>
- <td colspan="1">
- <div class="left">
- <asp:TextBox ID="txtElementValue" runat="server" TextMode="MultiLine" Rows="4" Width="400px"
- description="html元素值" isnull="false" Style="display: block; float: left; width: 60%"></asp:TextBox> <span
- style="color: Red; display: block; float: left; width: 35%; text-align: left">(必填)HTML元素的值,如果多个元素请用英文状态下的逗号隔开,例:0,1,2,3,4,5,6,7,8,9</span>
- </div>
- </td>
- <td>
- <div class="right">
- lable值 :
- </div>
- </td>
- <td>
- <div class="left">
- <asp:TextBox ID="txtLabelValue" runat="server" TextMode="MultiLine" Width="400px"
- Rows="4" Style="display: block; float: left; width: 60%"></asp:TextBox> <span
- style="color: Red; display: block; float: left; width: 35%; text-align: left">lable对应的值,如果多个元素请用英文状态下的逗号隔开,例:0,1,2,3,4,5,6,7,8,9</span>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="right">
- html元素总数 :
- </div>
- </td>
- <td>
- <div class="left">
- <asp:TextBox ID="txtElementCount" runat="server" description="html元素总数" mytype="int"
- MinExceed="0"></asp:TextBox> <span style="color: Red;">(必填)整数且大于0、要生成的HTML元素总数量(数字类型)</span>
- </div>
- </td>
- <td>
- <div class="right">
- 排序 :
- </div>
- </td>
- <td>
- <div class="left">
- <asp:TextBox ID="txtItemOrder" runat="server" description="排序序号" mytype="int"></asp:TextBox> <span
- style="color: Red;">(必填)项排序控制(单个数字)</span>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="right">
- 选中项 :
- </div>
- </td>
- <td>
- <div class="left" style="overflow: hidden; width: 100%">
- <asp:TextBox ID="txtIsCheckeds" runat="server" TextMode="MultiLine" Rows="4" Style="display: block;
- float: left; width: 60%"></asp:TextBox><span style="color: Red; display: block; float: left;
- width: 35%; text-align: left">check类元素的选中项(多个元素值中间用英文状态下的分号隔开,1为选中)</span>
- </div>
- </td>
- <td>
- <div class="right">
- 扩展属性 :
- </div>
- </td>
- <td>
- <div class="left">
- <asp:TextBox ID="txtAttrOther" runat="server" TextMode="MultiLine" Rows="4" Width="400px"></asp:TextBox> <span
- style="color: Red;">元素的扩展属性</span>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="right">
- 是否有效 :
- </div>
- </td>
- <td colspan="3">
- <div class="left">
- <asp:DropDownList ID="ddlStatus" runat="server" description="是否有效" isnull="false">
- <asp:ListItem Value="">--请选择--</asp:ListItem>
- <asp:ListItem Value="false">否</asp:ListItem>
- <asp:ListItem Value="true">是</asp:ListItem>
- </asp:DropDownList>
- <span style="color: Red;">(必填)项是否有效</span>
- </div>
- </td>
- </tr>
- </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">
- Class :
- </div>
- </td>
- <td>
- <div class="left">
- <asp:HiddenField runat="Server" ID="txtFilterCssID" />
- <asp:TextBox ID="txtElementClass" runat="server"></asp:TextBox> <span
- style="color: Red;">元素的class 多个class用,分割开</span>
- </div>
- </td>
- <td>
- <div class="right">
- 控制ID :
- </div>
- </td>
- <td>
- <div class="left">
- <asp:TextBox ID="txtControlNameID" runat="server"></asp:TextBox> <span
- style="color: Red;">默认是控制当前对应的行的ID,如果是其他行就填写其他行的ID</span>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="right">
- 其他HTML :
- </div>
- </td>
- <td colspan="3">
- <div class="left">
- <asp:TextBox ID="txtOtherHTML" runat="server" TextMode="MultiLine" Style="width: 600px;
- height: 70px;"></asp:TextBox> <span style="color: Red;">其他的HTML代码(目前尽供扩展确定取消按钮)</span>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="right">
- 操作 :
- </div>
- </td>
- <td colspan="3">
- <div class="left">
- <asp:Button ID="btnUpdate" runat="server" Text="生成HTML" OnClick="btnUpdate_Click" />
- <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; }
- var eledata = $("#<%=ddlElementName.ClientID %>").val();
- var elevalue = $("#<%=ddlElementType.ClientID %>").val();
- if (eledata == "input" && elevalue == "") {
- alert("请选择input的元素type");
- return false;
- }
- return true;
- }
-
- </script>
|