Advertisement
Millie-non

topics_list_box (Peaceful)

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