TrendToolListItemInfo.aspx 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TrendToolListItemInfo.aspx.cs"
  2. Inherits="CB.Admin.Plugins.TrendTool.TrendToolListItemConfig" %>
  3. <!DOCTYPE html >
  4. <html>
  5. <head>
  6. <title>过滤项明细配置</title>
  7. <link href="../../static/css/main.css" rel="stylesheet" type="text/css" />
  8. <script src="../../static/js/jquery.js" type="text/javascript"></script>
  9. <script type="text/javascript" src="../../Static/js/adminTool.js?"></script>
  10. </head>
  11. <body>
  12. <form id="form1" runat="server">
  13. <div class="box">
  14. <div class="title">
  15. <span>过滤项明细配置</span><a href="TrendToolList.aspx?authPage=<%=authPage %>&Id=<%=PageID %>">返回过滤项列表</a>
  16. </div>
  17. <div class="content">
  18. <div class="listtable">
  19. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  20. <col width="5%" />
  21. <col width="5%" />
  22. <col width="5%" />
  23. <col width="10%" />
  24. <col width="10%" />
  25. <col width="20%" />
  26. <col width="10%" />
  27. <col width="5%" />
  28. <col width="10%" />
  29. <col width="15%" />
  30. <tr>
  31. <th>
  32. ItemID
  33. </th>
  34. <th>
  35. 分类控制
  36. </th>
  37. <th>
  38. 分组控制
  39. </th>
  40. <th>
  41. 描述
  42. </th>
  43. <th>
  44. HTML元素名称
  45. </th>
  46. <th>
  47. HTML元素值
  48. </th>
  49. <th>
  50. HTML元素数量
  51. </th>
  52. <th>
  53. 排序
  54. </th>
  55. <th>
  56. 是否生成Lable
  57. </th>
  58. <th>
  59. 操 作
  60. </th>
  61. </tr>
  62. <asp:Repeater ID="repeaterList" runat="server" OnItemCommand="repeaterList_ItemCommand">
  63. <ItemTemplate>
  64. <tr>
  65. <td>
  66. <%#DataBinder.Eval(Container.DataItem, "ItemID")%>
  67. </td>
  68. <td>
  69. <%#DataBinder.Eval(Container.DataItem, "FilterCode")%>
  70. </td>
  71. <td>
  72. <%#DataBinder.Eval(Container.DataItem, "FilterCodeGroup")%>
  73. </td>
  74. <td>
  75. <%#DataBinder.Eval(Container.DataItem, "FilterRemark")%>
  76. </td>
  77. <td>
  78. <%#DataBinder.Eval(Container.DataItem, "ElementName")%>
  79. </td>
  80. <td>
  81. <%#DataBinder.Eval(Container.DataItem, "ElementValue")%>
  82. </td>
  83. <td>
  84. <%#DataBinder.Eval(Container.DataItem, "ElementCount")%>
  85. </td>
  86. <td>
  87. <%#DataBinder.Eval(Container.DataItem, "ItemOrder")%>
  88. </td>
  89. <td>
  90. <%#DataBinder.Eval(Container.DataItem, "HasLabel").ToString().ToLower()=="true"?"是":"否"%>
  91. </td>
  92. <td>
  93. <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"ItemID")%>'
  94. CommandName="dnedit" Text="编辑"></asp:LinkButton>
  95. <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"ItemID")%>'
  96. CommandName="dndel" Text="&lt;span onclick=&quot;javascript:return confirm('此操作不可恢复,确认要删除此内容吗?')&quot;&gt;删除&lt;/span&gt;"></asp:LinkButton>
  97. </td>
  98. </tr>
  99. </ItemTemplate>
  100. </asp:Repeater>
  101. </table>
  102. </div>
  103. </div>
  104. </div>
  105. <div class="box">
  106. <div class="content">
  107. <div class="bar">
  108. 明细信息
  109. </div>
  110. <div class="listtable">
  111. <table cellspacing="0" cellpadding="0" width="98%" border="0">
  112. <col width="10%" />
  113. <col width="40%" />
  114. <col width="10%" />
  115. <col width="40%" />
  116. <tr>
  117. <td>
  118. <div class="right">
  119. 明细ID :
  120. </div>
  121. </td>
  122. <td>
  123. <div class="left">
  124. <asp:HiddenField ID="txtConfigID" runat="server" />
  125. <asp:Label ID="labItemID" runat="server"></asp:Label>&nbsp;&nbsp;<span style="color: Red;"></span>
  126. </div>
  127. </td>
  128. <td>
  129. <div class="right">
  130. <span>描述 :</span>
  131. </div>
  132. </td>
  133. <td>
  134. <div class="left">
  135. <asp:TextBox ID="txtFilterRemark" runat="server" description="描述" isnull="false"></asp:TextBox>&nbsp;&nbsp;<span
  136. style="color: Red;">(必填)作用的描述</span>
  137. </div>
  138. </td>
  139. </tr>
  140. <tr>
  141. <td>
  142. <div class="right">
  143. 分类控制 :
  144. </div>
  145. </td>
  146. <td>
  147. <div class="left">
  148. <asp:DropDownList runat="Server" ID="ddlFilterCode" description="分类控制" isnull="false">
  149. <asp:ListItem Value="">--请选择--</asp:ListItem>
  150. <asp:ListItem Value="Title">Title</asp:ListItem>
  151. <asp:ListItem Value="Header">Header</asp:ListItem>
  152. <asp:ListItem Value="Content">Content</asp:ListItem>
  153. </asp:DropDownList>
  154. &nbsp;&nbsp;<span style="color: Red;">(必填)分类控制</span>
  155. </div>
  156. </td>
  157. <td>
  158. <div class="right">
  159. 特殊编码 :
  160. </div>
  161. </td>
  162. <td>
  163. <div class="left">
  164. <asp:TextBox ID="txtSpecialCode" runat="server"></asp:TextBox>&nbsp;&nbsp;<span style="color: Red;">(必填)在程序中特殊情况使用
  165. </span>
  166. </div>
  167. </td>
  168. </tr>
  169. <tr>
  170. <td>
  171. <div class="right">
  172. 分组控制 :
  173. </div>
  174. </td>
  175. <td>
  176. <div class="left">
  177. <asp:TextBox ID="txtFilterCodeGroup" runat="server" description="分组控制" isnull="false"></asp:TextBox>
  178. &nbsp;&nbsp;<span style="color: Red;">(必填)分组控制</span>
  179. </div>
  180. </td>
  181. <td>
  182. <div class="right">
  183. 换行数:
  184. </div>
  185. </td>
  186. <td>
  187. <div class="left">
  188. <asp:TextBox ID="txtLineCount" runat="server" description="换行数" isnull="false" myType="int"
  189. Min="0">0</asp:TextBox>&nbsp;&nbsp;<span style="color: Red;">(必填)整数、默认0为不换行</span>
  190. </div>
  191. </td>
  192. </tr>
  193. <tr>
  194. <td>
  195. <div class="right">
  196. 是否取值元素:
  197. </div>
  198. </td>
  199. <td>
  200. <div class="left">
  201. <asp:DropDownList ID="ddlNameControl" runat="server" description="是否取值元素" isnull="false">
  202. <asp:ListItem Value="">--请选择--</asp:ListItem>
  203. <asp:ListItem Value="false">否</asp:ListItem>
  204. <asp:ListItem Value="true">是</asp:ListItem>
  205. </asp:DropDownList>
  206. &nbsp;&nbsp;<span style="color: Red;">(必填)是否取值元素,如果是后天程序将会自动获取该元素值</span>
  207. </div>
  208. </td>
  209. <td>
  210. <div class="right">
  211. 是否控制号码范围 :
  212. </div>
  213. </td>
  214. <td>
  215. <div class="left">
  216. <asp:DropDownList ID="ddlIsControlArea" runat="server" description="是否控制号码范围" isnull="false">
  217. <asp:ListItem Value="">--请选择--</asp:ListItem>
  218. <asp:ListItem Value="false">否</asp:ListItem>
  219. <asp:ListItem Value="true">是</asp:ListItem>
  220. </asp:DropDownList>
  221. &nbsp;&nbsp;<span style="color: Red;">(必填)是否控制号码范围</span>
  222. </div>
  223. </td>
  224. </tr>
  225. <tr>
  226. <td>
  227. <div class="right">
  228. html元素名称 :
  229. </div>
  230. </td>
  231. <td>
  232. <div class="left">
  233. <asp:DropDownList ID="ddlElementName" runat="server" description="html元素名称" isnull="false"
  234. onclick="spanControl();">
  235. <asp:ListItem Value="">--请选择--</asp:ListItem>
  236. <asp:ListItem Value="span" Text="span"></asp:ListItem>
  237. <asp:ListItem Value="input" Text="input"></asp:ListItem>
  238. <asp:ListItem Value="textarea" Text="textarea"></asp:ListItem>
  239. </asp:DropDownList>
  240. &nbsp;&nbsp;<span style="color: Red;">(必填)html元素名称</span>
  241. </div>
  242. </td>
  243. <td>
  244. <div class="right">
  245. 号码控制范围 :
  246. </div>
  247. </td>
  248. <td>
  249. <div class="left">
  250. <asp:TextBox ID="txtControlArea" runat="server"></asp:TextBox>
  251. &nbsp;&nbsp;<span style="color: Red;">例如取3D百位进行计算填写0</span>
  252. </div>
  253. </td>
  254. </tr>
  255. <tr>
  256. <td>
  257. <div class="right">
  258. 元素type :
  259. </div>
  260. </td>
  261. <td>
  262. <div class="left">
  263. <asp:DropDownList ID="ddlElementType" runat="server">
  264. <asp:ListItem Value="">无</asp:ListItem>
  265. <asp:ListItem Value="radio" Text="radio"></asp:ListItem>
  266. <asp:ListItem Value="checkbox" Text="checkbox"></asp:ListItem>
  267. </asp:DropDownList>
  268. &nbsp;&nbsp;<span style="color: Red;" id="spanElementType">作用于input元素,控制input的类型checkbox,radio;非input选无</span>
  269. </div>
  270. </td>
  271. <td>
  272. <div class="right">
  273. 是否创建lable :
  274. </div>
  275. </td>
  276. <td>
  277. <div class="left">
  278. <asp:DropDownList ID="ddlHasLabel" runat="server" description="是否创建Lable" isnull="false">
  279. <asp:ListItem Value="">--请选择--</asp:ListItem>
  280. <asp:ListItem Value="false">否</asp:ListItem>
  281. <asp:ListItem Value="true">是</asp:ListItem>
  282. </asp:DropDownList>
  283. &nbsp;&nbsp;<span style="color: Red;">(必填)是否要创建对应的Lable元素</span>
  284. </div>
  285. </td>
  286. </tr>
  287. <tr>
  288. <td>
  289. <div class="right">
  290. html元素值 :
  291. </div>
  292. </td>
  293. <td colspan="1">
  294. <div class="left">
  295. <asp:TextBox ID="txtElementValue" runat="server" TextMode="MultiLine" Rows="4" Width="400px"
  296. description="html元素值" isnull="false" Style="display: block; float: left; width: 60%"></asp:TextBox>&nbsp;&nbsp;<span
  297. style="color: Red; display: block; float: left; width: 35%; text-align: left">(必填)HTML元素的值,如果多个元素请用英文状态下的逗号隔开,例:0,1,2,3,4,5,6,7,8,9</span>
  298. </div>
  299. </td>
  300. <td>
  301. <div class="right">
  302. lable值 :
  303. </div>
  304. </td>
  305. <td>
  306. <div class="left">
  307. <asp:TextBox ID="txtLabelValue" runat="server" TextMode="MultiLine" Width="400px"
  308. Rows="4" Style="display: block; float: left; width: 60%"></asp:TextBox>&nbsp;&nbsp;<span
  309. style="color: Red; display: block; float: left; width: 35%; text-align: left">lable对应的值,如果多个元素请用英文状态下的逗号隔开,例:0,1,2,3,4,5,6,7,8,9</span>
  310. </div>
  311. </td>
  312. </tr>
  313. <tr>
  314. <td>
  315. <div class="right">
  316. html元素总数 :
  317. </div>
  318. </td>
  319. <td>
  320. <div class="left">
  321. <asp:TextBox ID="txtElementCount" runat="server" description="html元素总数" mytype="int"
  322. MinExceed="0"></asp:TextBox>&nbsp;&nbsp;<span style="color: Red;">(必填)整数且大于0、要生成的HTML元素总数量(数字类型)</span>
  323. </div>
  324. </td>
  325. <td>
  326. <div class="right">
  327. 排序 :
  328. </div>
  329. </td>
  330. <td>
  331. <div class="left">
  332. <asp:TextBox ID="txtItemOrder" runat="server" description="排序序号" mytype="int"></asp:TextBox>&nbsp;&nbsp;<span
  333. style="color: Red;">(必填)项排序控制(单个数字)</span>
  334. </div>
  335. </td>
  336. </tr>
  337. <tr>
  338. <td>
  339. <div class="right">
  340. 选中项 :
  341. </div>
  342. </td>
  343. <td>
  344. <div class="left" style="overflow: hidden; width: 100%">
  345. <asp:TextBox ID="txtIsCheckeds" runat="server" TextMode="MultiLine" Rows="4" Style="display: block;
  346. float: left; width: 60%"></asp:TextBox><span style="color: Red; display: block; float: left;
  347. width: 35%; text-align: left">check类元素的选中项(多个元素值中间用英文状态下的分号隔开,1为选中)</span>
  348. </div>
  349. </td>
  350. <td>
  351. <div class="right">
  352. 扩展属性 :
  353. </div>
  354. </td>
  355. <td>
  356. <div class="left">
  357. <asp:TextBox ID="txtAttrOther" runat="server" TextMode="MultiLine" Rows="4" Width="400px"></asp:TextBox>&nbsp;&nbsp;<span
  358. style="color: Red;">元素的扩展属性</span>
  359. </div>
  360. </td>
  361. </tr>
  362. <tr>
  363. <td>
  364. <div class="right">
  365. 是否有效 :
  366. </div>
  367. </td>
  368. <td colspan="3">
  369. <div class="left">
  370. <asp:DropDownList ID="ddlStatus" runat="server" description="是否有效" isnull="false">
  371. <asp:ListItem Value="">--请选择--</asp:ListItem>
  372. <asp:ListItem Value="false">否</asp:ListItem>
  373. <asp:ListItem Value="true">是</asp:ListItem>
  374. </asp:DropDownList>
  375. &nbsp;&nbsp;<span style="color: Red;">(必填)项是否有效</span>
  376. </div>
  377. </td>
  378. </tr>
  379. </table>
  380. </div>
  381. </div>
  382. </div>
  383. <div class="box">
  384. <div class="content">
  385. <div class="bar">
  386. 样式
  387. </div>
  388. <div class="listtable">
  389. <table cellspacing="0" cellpadding="0" width="98%" border="0">
  390. <col width="10%" />
  391. <col width="40%" />
  392. <col width="10%" />
  393. <col width="40%" />
  394. <tr>
  395. <td>
  396. <div class="right">
  397. Class :
  398. </div>
  399. </td>
  400. <td>
  401. <div class="left">
  402. <asp:HiddenField runat="Server" ID="txtFilterCssID" />
  403. <asp:TextBox ID="txtElementClass" runat="server"></asp:TextBox>&nbsp;&nbsp;<span
  404. style="color: Red;">元素的class 多个class用,分割开</span>
  405. </div>
  406. </td>
  407. <td>
  408. <div class="right">
  409. 控制ID :
  410. </div>
  411. </td>
  412. <td>
  413. <div class="left">
  414. <asp:TextBox ID="txtControlNameID" runat="server"></asp:TextBox>&nbsp;&nbsp;<span
  415. style="color: Red;">默认是控制当前对应的行的ID,如果是其他行就填写其他行的ID</span>
  416. </div>
  417. </td>
  418. </tr>
  419. <tr>
  420. <td>
  421. <div class="right">
  422. 其他HTML :
  423. </div>
  424. </td>
  425. <td colspan="3">
  426. <div class="left">
  427. <asp:TextBox ID="txtOtherHTML" runat="server" TextMode="MultiLine" Style="width: 600px;
  428. height: 70px;"></asp:TextBox>&nbsp;&nbsp;<span style="color: Red;">其他的HTML代码(目前尽供扩展确定取消按钮)</span>
  429. </div>
  430. </td>
  431. </tr>
  432. <tr>
  433. <td>
  434. <div class="right">
  435. 操作 :
  436. </div>
  437. </td>
  438. <td colspan="3">
  439. <div class="left">
  440. <asp:Button ID="btnUpdate" runat="server" Text="生成HTML" OnClick="btnUpdate_Click" />&nbsp;&nbsp;
  441. <asp:Button ID="btnClear" runat="server" Text=" 清 空 " OnClick="btnClear_Click" /></div>
  442. </td>
  443. </tr>
  444. </table>
  445. </div>
  446. </div>
  447. </div>
  448. </form>
  449. </body>
  450. </html>
  451. <script type="text/javascript">
  452. var onBeforeSaveSubmit = function () {
  453. if (!onVerifySaveSubmit())
  454. { return false; }
  455. var eledata = $("#<%=ddlElementName.ClientID %>").val();
  456. var elevalue = $("#<%=ddlElementType.ClientID %>").val();
  457. if (eledata == "input" && elevalue == "") {
  458. alert("请选择input的元素type");
  459. return false;
  460. }
  461. return true;
  462. }
  463. </script>