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