- Timestamp:
- Nov 20, 2009, 2:52:16 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/XPressMU/xpressme_integration_kit/blocks/recent_comments_block.php
r232 r451 23 23 $date_format = empty( $options[4] ) ? '' : $options[4] ; 24 24 $time_format = empty( $options[5] ) ? '' : $options[5] ; 25 $selected = array_slice($options,6); // get allowed cats25 $com_select = empty( $options[6] ) ? '0' : $options[6] ; 26 26 27 27 $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; … … 37 37 $form .= _MB_XP2_TIME_FORMAT .": <input type='text' name='options[5]' value='" . $time_format . "' /><br />\n"; 38 38 $form .= "<br />\n"; 39 $form .= _MB_XP2_COM_TYPE . "<br />\n"; 40 $isAll = (count($selected)==0||empty($selected[0]))?true:false; 41 $form .= " <select name=\"options[]\" multiple=\"multiple\">"; 42 $form .= "<option value=\"0\" "; 43 if ($isAll) $form .= " selected=\"selected\""; 44 $form .= ">"._MB_XP2_ALL ."</option>"; 45 46 $form .= "<option value=\"1\" "; 47 if (in_array(1, $selected)) 48 $form .= " selected=\"selected\""; 49 $form .= ">"._MB_XP2_COMMENT ."</option>"; 50 51 $form .= "<option value=\"2\" "; 52 if (in_array(2, $selected)) 53 $form .= " selected=\"selected\""; 54 $form .= ">"._MB_XP2_TRUCKBACK ."</option>"; 55 56 $form .= "<option value=\"3\" "; 57 if (in_array(3, $selected)) 58 $form .= " selected=\"selected\""; 59 $form .= ">"._MB_XP2_PINGBACK ."</option>"; 60 $form .= "</select><br />"; 61 // $form .="<br /><input type='text' size='60' name='options[5]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' />"; 39 $form .= comment_type_select('options[6]' , $com_select); 62 40 63 41
Note: See TracChangeset
for help on using the changeset viewer.