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