Changeset 142 for trunk/blocks/popular_posts_block.php
- Timestamp:
- Mar 30, 2009, 2:01:07 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/blocks/popular_posts_block.php
r121 r142 20 20 $disp_count = empty( $options[2] ) ? '10' : $options[2] ; 21 21 $show_month_range = empty( $options[3] ) ? '0' : $options[3] ; 22 $tag_select = $options[4] ; 23 $selected = array_slice($options, 5); // get allowed cats 22 $date_format = empty( $options[4] ) ? '' : $options[4] ; 23 $time_format = empty( $options[5] ) ? '' : $options[5] ; 24 $tag_select = $options[6] ; 25 $selected = array_slice($options, 7); // get allowed cats 26 24 27 $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 25 28 … … 27 30 28 31 $form = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 29 $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br /> ";30 $form .= "<br /> ";32 $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />\n"; 33 $form .= "<br />\n"; 31 34 $form .= _MB_XPRESS_COUNT .": <input type='text' name='options[2]' value='" . $disp_count . "' /><br />\n"; 32 35 $form .= _MB_MONTH_RANGE .": <input type='text' name='options[3]' value='" . $show_month_range . "' /><br />\n"; 36 $form .= _MB_XPRESS_DATE_FORMAT .": <input type='text' name='options[4]' value='" . $date_format . "' /><br />\n"; 37 $form .= _MB_XPRESS_TIME_FORMAT .": <input type='text' name='options[5]' value='" . $time_format . "' /><br />\n"; 33 38 $form .= "<br />\n"; 34 35 $form .= _MB_XPRESS_TAGS_SELECT .": <input type='text' name='options[4]' value='" . $tag_select . "' /><br />\n"; 39 $form .= _MB_XPRESS_TAGS_SELECT .": <input type='text' name='options[6]' value='" . $tag_select . "' /><br />\n"; 36 40 $form .= _MB_XPRESS_CATS_SELECT ."<br />\n"; 37 41 $isAll = (count($selected)==0||empty($selected[0]))?true:false; 38 $form .= " <br /> <select name=\"options[]\" multiple=\"multiple\">";42 $form .= " <select name=\"options[]\" multiple=\"multiple\">"; 39 43 $form .= "<option value=\"0\" "; 40 44 if ($isAll) $form .= " selected=\"selected\"";
Note: See TracChangeset
for help on using the changeset viewer.