<col> </colgroup> <thead> <tr> <th scope="col">구분</th> <th scope="col">설정</th> </tr> </thead> <tbody> <tr> <td align="center">목록헤드</td> <td> <select name="wset[hskin]"> <option value="">기본헤드</option> <?php $skinlist = apms_skin_file_list(G5_PATH . '/css/head', 'css'); for ($k = 0; $k < count($skinlist); $k++) { echo "<option value=\"" . $skinlist[$k] . "\"" . get_selected($wset['hskin'], $skinlist[$k]) . ">" . $skinlist[$k] . "</option>\n"; } ?> </select> 기본컬러 <select name="wset[hcolor]"> <?php echo apms_color_options($wset['hcolor']); ?> </select> </td> </tr> </tbody>
function apms_skin_options($path, $dir, $value, $opt) { $path = $path . '/' . $dir; $skin = $opt ? apms_skin_file_list($path, $opt) : apms_skin_dir_list($path); $options = ''; for ($i = 0; $i < count($skin); $i++) { $options .= "<option value=\"" . $skin[$i] . "\"" . get_selected($value, $skin[$i]) . ">" . $skin[$i] . "</option>\n"; } return $options; }