Changeset 862 for trunk/include/functions_html.inc.php
- Timestamp:
- Sep 14, 2005, 11:57:05 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_html.inc.php
r850 r862 204 204 } 205 205 206 //207 // Pick a template/theme combo,208 //209 function style_select($default_style, $select_name = "style")210 {211 $templates = get_templates();212 213 $style_selected = '<select name="' . $select_name . '" >';214 foreach ($templates as $template)215 {216 $selected = ( $template == $default_style ) ? ' selected="selected"' : '';217 $style_selected.= '<option value="'.$template.'"'.$selected.'>';218 $style_selected.= $template.'</option>';219 }220 $style_selected .= '</select>';221 return $style_selected;222 }223 224 206 /** 225 207 * returns the list of categories as a HTML string
Note: See TracChangeset
for help on using the changeset viewer.