Advertisement
Millie-non

topics_list_box (Stardust)

Jan 4th, 2024
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.19 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">
  42. <ul class="topiclist topics">
  43. <div class="h3"><!-- BEGIN multi_selection -->
  44. <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" />
  45. <!-- END multi_selection -->
  46. {topics_list_box.row.L_TITLE}
  47. </div>
  48. </ul>
  49.  
  50. <ul class="topiclist topics bg_none">
  51. <!-- END header_table -->
  52.  
  53. <!-- BEGIN header_row -->
  54. <strong>{topics_list_box.row.L_TITLE}</strong>
  55. <!-- END header_row -->
  56.  
  57. <!-- BEGIN topic -->
  58.  
  59. <!-- BEGIN table_sticky -->
  60. </ul></div>
  61. </div>
  62.  
  63.  
  64. <div class="forumbg">
  65. <div class="inner">
  66. <ul class="topiclist topics"><div class="h3">{topics_list_box.row.topic.table_sticky.L_TITLE}</div></ul>
  67.  
  68. <ul class="topiclist topics bg_none">
  69. <!-- END table_sticky -->
  70.  
  71. <div class="stardust-tp {topics_list_box.row.ROW_ALT_CLASS}"<!-- BEGIN line_sticky --> style="margin-top:5px;"<!-- END line_sticky --> >
  72. <!-- BEGIN single_selection -->
  73. <input type="radio" name="{topics_list_box.FIELDNAME}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} />
  74. <!-- END single_selection -->
  75. <div class="stardust-tpicon" style="background-image:url('{topics_list_box.row.TOPIC_FOLDER_IMG}');"></div>
  76.  
  77. <div class="stardust-topics">
  78. <div class="stardust-nontopics">{topics_list_box.row.TOPIC_TYPE} <a href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a></div>
  79. <div class="stardust-autor"><b>{topics_list_box.row.L_BY}</b>:&nbsp;<strong>{topics_list_box.row.TOPIC_AUTHOR}</strong><i class="cp cp-star"></i><div class="stardust-rnumber"><b>{topics_list_box.row.REPLIES}</b> {L_REPLIES}</div><i class="cp cp-star"></i> <div class="stardust-rnumber"><b>{topics_list_box.row.VIEWS}</b> {L_VIEWS}</div></div>
  80. </div>
  81.  
  82. <!-- BEGIN avatar --><div class="stardust-lastpost-avatar">{topics_list_box.row.topic.avatar.LAST_POST_AVATAR}</div> <!-- END avatar -->
  83.  
  84. <div class="stardust-lastpost-sts">
  85. <b>{L_LASTPOST}:</b> {topics_list_box.row.LAST_POST_AUTHOR}<div style="margin: 0 2px;display: inline-block;">{topics_list_box.row.LAST_POST_IMG}</div>
  86. {topics_list_box.row.LAST_POST_TIME}
  87. <div class="stardust-pagination">{topics_list_box.row.GOTO_PAGE_NEW} <!-- BEGIN nav_tree -->{topics_list_box.row.TOPIC_NAV_TREE_NEW}<!-- END nav_tree --></div>
  88. </div>
  89.  
  90. <!-- BEGIN multi_selection -->
  91. <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} />
  92. <!-- END multi_selection -->
  93. </div>
  94. <!-- END topic -->
  95.  
  96. <!-- BEGIN no_topics -->
  97. <div class="stardust-tp"><strong>{topics_list_box.row.L_NO_TOPICS}</strong></div>
  98. <!-- END no_topics -->
  99.  
  100. <!-- BEGIN bottom -->
  101. </ul></div>
  102. </div>
  103. <!-- END bottom -->
  104. <!-- BEGIN spacer --><br /><!-- END spacer -->
  105. <!-- END row -->
  106. <!-- END topics_list_box -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement