- Timestamp:
- Nov 13, 2009, 6:38:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/blocks/recent_posts_list_block.php
r365 r435 24 24 $time_format = empty( $options[6] ) ? '' : $options[6] ; 25 25 $tag_select = $options[7] ; 26 $ selected = array_slice($options,8); // get allowed cats26 $cat_select = empty( $options[8] ) ? '0' : $options[8] ; 27 27 28 28 $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; … … 47 47 } 48 48 49 $form .= _MB_XP2_CATS_SELECT ."<br />\n"; 50 $isAll = (count($selected)==0||empty($selected[0]))?true:false; 51 $form .= " <select name=\"options[]\" multiple=\"multiple\">\n"; 52 $form .= "\t<option value=\"0\" "; 53 if ($isAll) $form .= " selected=\"selected\""; 54 $form .= ">"._MB_XP2_ALL ."</option>\n"; 55 ob_start(); 56 dropdown_cats_options('ID','asc',$selected); 57 $list_str = ob_get_contents(); 58 ob_end_clean(); 59 $form .= $list_str. "</select><br />\n"; 60 61 // $form .="<br /><input type='text' size='60' name='options[5]' value='".htmlspecialchars($this_template,ENT_QUOTES)."' />"; 49 $form .= categorie_select('options[8]' , $cat_select); 62 50 63 51 return $form;
Note: See TracChangeset
for help on using the changeset viewer.