Changeset 100 for trunk/blocks/recent_posts_content_block.php
- Timestamp:
- Mar 8, 2009, 4:09:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/blocks/recent_posts_content_block.php
r89 r100 29 29 require_once(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/blocks/block_common.php'); 30 30 31 $form = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />"; 32 $form .= _MB_XPRESS_COUNT .": <input type='text' name='options[1]' value='" . $disp_count . "' />"; 33 $form .= "<br />" . yes_no_radio_option('options[2]', _MB_XPRESS_P_EXCEPT , $except); 34 $form .= "<br />" . _MB_XPRESS_P_EXCEPT_SIZE .": <input type='text' name='options[3]' value='" . $except_size . "' />"; 35 $form .= "<br /><br />" . _MB_XPRESS_CATS_SELECT ; 31 $form = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 32 $form .= _MB_XPRESS_COUNT .": <input type='text' name='options[1]' value='" . $disp_count . "' /><br />\n"; 33 $form .= yes_no_radio_option('options[2]', _MB_XPRESS_P_EXCEPT , $except) . "<br />\n"; 34 $form .= _MB_XPRESS_P_EXCEPT_SIZE .": <input type='text' name='options[3]' value='" . $except_size . "' /><br />\n"; 35 36 $form .= "<br />\n"; 37 $form .= _MB_XPRESS_TAGS_SELECT .": <input type='text' name='options[4]' value='" . $tag_select . "' /><br />\n"; 38 $form .= _MB_XPRESS_CATS_SELECT ."<br />\n"; 36 39 $isAll = (count($selected)==0||empty($selected[0]))?true:false; 37 $form .= " <br /> <select name=\"options[]\" multiple=\"multiple\">";38 $form .= " <option value=\"0\" ";40 $form .= " <select name=\"options[]\" multiple=\"multiple\">\n"; 41 $form .= "\t<option value=\"0\" "; 39 42 if ($isAll) $form .= " selected=\"selected\""; 40 $form .= ">"._MB_XPRESS_ALL ."</option> ";43 $form .= ">"._MB_XPRESS_ALL ."</option>\n"; 41 44 ob_start(); 42 45 dropdown_cats_options('ID','asc',$selected); 43 46 $list_str = ob_get_contents(); 44 47 ob_end_clean(); 45 $form .= $list_str. "</select><br />"; 46 $form .= "<br />" . _MB_XPRESS_TAGS_SELECT .": <input type='text' name='options[4]' value='" . $tag_select . "' />"; 48 $form .= $list_str. "</select><br />\n"; 47 49 48 50 // $form .="<br /><input type='text' size='60' name='options[11]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' />"; … … 54 56 function _b_content_show($options) 55 57 { 56 global $wpdb;57 58 $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 58 59 $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname;
Note: See TracChangeset
for help on using the changeset viewer.