Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.30 KB | None | 0 0
  1. <!-- BEGIN topics_list_box -->
  2. <!-- BEGIN row -->
  3. <!-- BEGIN header_table -->
  4. <!-- BEGIN multi_selection -->
  5. <script type="text/javascript">
  6.  
  7. function check_uncheck_main_{topics_list_box.row.header_table.BOX_ID}()
  8. {
  9. alert('MAIN');
  10.  
  11. var all_checked = true;
  12.  
  13. for (i = 0; (i < document.{topics_list_box.FORMNAME}.elements.length) && all_checked; i++)
  14. {
  15. if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}')
  16. {
  17. all_checked = document.{topics_list_box.FORMNAME}.elements[i].checked;
  18. }
  19. }
  20.  
  21. document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked = all_checked;
  22. }
  23.  
  24. function check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}()
  25. {
  26. alert('ALL');
  27.  
  28. for (i = 0; i < document.{topics_list_box.FORMNAME}.length; i++)
  29. {
  30. if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}')
  31. {
  32. document.{topics_list_box.FORMNAME}.elements[i].checked = document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked;
  33. }
  34. }
  35. }
  36.  
  37. </script>
  38. <!-- END multi_selection -->
  39.  
  40. <div class="forumbg announcement">
  41. <div class="inner"><span class="corners-top"><span></span></span>
  42. <ul class="topiclist topics">
  43. <li class="header">
  44. <dl class="icon">
  45. <dt>
  46. <!-- BEGIN multi_selection -->
  47. <input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" />
  48. <!-- END multi_selection -->
  49. {topics_list_box.row.L_TITLE}
  50. </dt>
  51. </dl>
  52. </li>
  53. </ul>
  54. <ul class="topiclist topics bg_none">
  55. <!-- END header_table -->
  56.  
  57. <!-- BEGIN header_row -->
  58. <strong>{topics_list_box.row.L_TITLE}</strong>
  59. <!-- END header_row -->
  60.  
  61. <!-- BEGIN topic -->
  62.  
  63. <!-- BEGIN table_sticky -->
  64. </ul>
  65. <span class="corners-bottom"><span></span></span></div>
  66. </div>
  67. <div class="forumbg">
  68. <div class="inner"><span class="corners-top"><span></span></span>
  69. <ul class="topiclist topics">
  70. <li class="header">
  71. <dl class="icon">
  72. <!--<dd class="dterm">-->
  73. <dd class="dterm" style="padding-left:0;">
  74. <!-- BEGIN multi_selection -->
  75. <input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" />
  76. <!-- END multi_selection -->
  77. {topics_list_box.row.topic.table_sticky.L_TITLE}
  78. </dd>
  79. <!-- <dd class="authors">{topics_list_box.row.L_AUTHOR}</dd> -->
  80. </dl>
  81. </li>
  82. </ul>
  83. <ul class="topiclist topics bg_none">
  84. <!-- END table_sticky -->
  85.  
  86. <li class="row {topics_list_box.row.ROW_ALT_CLASS}"<!-- BEGIN line_sticky --> style="margin-top:5px;"<!-- END line_sticky --> >
  87. <dl class="icon" style="background-image:url('{topics_list_box.row.TOPIC_FOLDER_IMG}');">
  88. <dd class="dterm" title="{topicrow.TOPIC_FOLDER_IMG_ALT}" {topics_list_box.row.ICON}>
  89. <!-- BEGIN single_selection -->
  90. <input type="radio" name="{topics_list_box.FIELDNAME}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} />
  91. <!-- END single_selection -->
  92. {topics_list_box.row.NEWEST_POST_IMG}
  93. {topics_list_box.row.PARTICIPATE_POST_IMG}&nbsp;
  94. {topics_list_box.row.TOPIC_TYPE}
  95. <div class="topic-title-container"><h2 class="topic-title hierarchy"><a class="topictitle" href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a></h2></div>
  96. <!-- BEGIN switch_description -->
  97. <br />
  98. {topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION}
  99. <!-- END switch_description -->
  100. <br />
  101. {topics_list_box.row.GOTO_PAGE_NEW}
  102. <span class="span-tab">{topics_list_box.row.L_BY} <strong>{topics_list_box.row.TOPIC_AUTHOR}</strong></span>
  103. <!-- BEGIN nav_tree -->{topics_list_box.row.TOPIC_NAV_TREE_NEW}<!-- END nav_tree -->
  104. </dd>
  105.  
  106. <dd class="lastpost">
  107.  
  108. <!-- BEGIN avatar -->
  109. <span class="lastpost-avatar">{topics_list_box.row.topic.avatar.LAST_POST_AVATAR}</span>
  110. <div style="float:left;">
  111. <!-- END avatar -->
  112.  
  113. <span>{topics_list_box.row.LAST_POST_AUTHOR}&nbsp;
  114. {topics_list_box.row.LAST_POST_IMG}<br style="clear:left;" />{topics_list_box.row.LAST_POST_TIME}</span>
  115.  
  116. <!-- BEGIN avatar -->
  117. </div>
  118. <!-- END avatar -->
  119. </dd>
  120. <!-- BEGIN multi_selection -->
  121. <input onclick="javascript:check_uncheck_main_{topics_list_box.row.BOX_ID}();" type="checkbox" name="{topics_list_box.FIELDNAME}[]{topics_list_box.row.BOX_ID}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} />
  122. <!-- END multi_selection -->
  123. </dl>
  124. </li>
  125. <!-- END topic -->
  126. <!-- BEGIN no_topics -->
  127. <li class="row row1">
  128. <dl>
  129. <dt><strong>{topics_list_box.row.L_NO_TOPICS}</strong></dt>
  130. </dl>
  131. </li>
  132. <!-- END no_topics -->
  133.  
  134. <!-- BEGIN bottom -->
  135. </ul>
  136. <span class="corners-bottom"><span></span></span></div>
  137. </div>
  138. <!-- END bottom -->
  139. <!-- BEGIN spacer --><br /><!-- END spacer -->
  140. <!-- END row -->
  141. <!-- END topics_list_box -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement