Changeset 142 for trunk/blocks
- Timestamp:
- Mar 30, 2009, 2:01:07 PM (16 years ago)
- Location:
- trunk/blocks
- Files:
-
- 4 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\""; -
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\""; -
trunk/blocks/recent_posts_content_block.php
r121 r142 22 22 $except = empty( $options[3] ) ? false : true ; 23 23 $except_size = ($options[4])?intval($options[4]):100; 24 $tag_select = $options[5] ; 25 $selected = array_slice($options,6); // get allowed cats 24 $date_format = empty( $options[5] ) ? '' : $options[5] ; 25 $time_format = empty( $options[6] ) ? '' : $options[6] ; 26 $tag_select = $options[7] ; 27 $selected = array_slice($options,8); // get allowed cats 26 28 27 29 $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; … … 35 37 $form .= yes_no_radio_option('options[3]', _MB_XPRESS_P_EXCEPT , $except) . "<br />\n"; 36 38 $form .= _MB_XPRESS_P_EXCEPT_SIZE .": <input type='text' name='options[4]' value='" . $except_size . "' /><br />\n"; 39 $form .= _MB_XPRESS_DATE_FORMAT .": <input type='text' name='options[5]' value='" . $date_format . "' /><br />\n"; 40 $form .= _MB_XPRESS_TIME_FORMAT .": <input type='text' name='options[6]' value='" . $time_format . "' /><br />\n"; 37 41 38 42 $form .= "<br />\n"; 39 $form .= _MB_XPRESS_TAGS_SELECT .": <input type='text' name='options[ 5]' value='" . $tag_select . "' /><br />\n";43 $form .= _MB_XPRESS_TAGS_SELECT .": <input type='text' name='options[7]' value='" . $tag_select . "' /><br />\n"; 40 44 $form .= _MB_XPRESS_CATS_SELECT ."<br />\n"; 41 45 $isAll = (count($selected)==0||empty($selected[0]))?true:false; -
trunk/blocks/recent_posts_list_block.php
r121 r142 21 21 $disp_red = empty( $options[3] ) ? '1' : $options[3] ; 22 22 $disp_green = empty( $options[4] ) ? '7' : $options[4] ; 23 $tag_select = $options[5] ; 24 $selected = array_slice($options,6); // get allowed cats 23 $date_format = empty( $options[5] ) ? '' : $options[5] ; 24 $time_format = empty( $options[6] ) ? '' : $options[6] ; 25 $tag_select = $options[7] ; 26 $selected = array_slice($options,8); // get allowed cats 27 25 28 $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 26 29 … … 28 31 29 32 $form = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 30 $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br /> ";31 $form .= "<br /> ";33 $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />\n"; 34 $form .= "<br />\n"; 32 35 $form .= _MB_XPRESS_COUNT .": <input type='text' name='options[2]' value='" . $disp_count . "' /><br />\n"; 33 36 $form .= _MB_XPRESS_REDNEW_DAYS .": <input type='text' name='options[3]' value='" . $disp_red . "' /><br />\n"; 34 37 $form .= _MB_XPRESS_GREENNEW_DAYS .": <input type='text' name='options[4]' value='" . $disp_green . "' /><br />\n"; 38 $form .= _MB_XPRESS_DATE_FORMAT .": <input type='text' name='options[5]' value='" . $date_format . "' /><br />\n"; 39 $form .= _MB_XPRESS_TIME_FORMAT .": <input type='text' name='options[6]' value='" . $time_format . "' /><br />\n"; 35 40 36 41 $form .= "<br />\n"; 37 $form .= _MB_XPRESS_TAGS_SELECT .": <input type='text' name='options[ 5]' value='" . $tag_select . "' /><br />\n";42 $form .= _MB_XPRESS_TAGS_SELECT .": <input type='text' name='options[7]' value='" . $tag_select . "' /><br />\n"; 38 43 $form .= _MB_XPRESS_CATS_SELECT ."<br />\n"; 39 44 $isAll = (count($selected)==0||empty($selected[0]))?true:false;
Note: See TracChangeset
for help on using the changeset viewer.