function get_cate_option($pid = 0, $selID = 0, $lv = 0) { global $db, $tpf; $q = $db->query("select * from {$tpf}categories order by show_order asc"); while ($rs = $db->fetch_array($q)) { $data[] = $rs; } $db->free($q); unset($rs); if (count($data)) { $html = ''; foreach ($data as $v) { if ($v['pid'] == $pid) { $html .= '<option value="' . $v[cate_id] . '"'; $html .= $selID ? ifselected($selID, $v[cate_id]) : ''; $html .= '>' . str_repeat(' ', $lv * 2) . $v[cate_name] . '</option>' . LF; $lv++; $html .= get_cate_option($v['cate_id'], $selID, $lv); $lv--; } } return $html; } else { return ''; } }
<option value="0" <?php echo ifselected(0, $cate_id); ?> style="color:#008800"><?php echo __('uncate_public_file'); ?> </option> <option value="-1" <?php echo ifselected('-1', $cate_id, 'str'); ?> style="color:#0000FF"><?php echo __('uncheck_public_file'); ?> </option> <option value="-2" <?php echo ifselected('-2', $cate_id, 'str'); ?> ><?php echo __('commend_file'); ?> </option> <option disabled="disabled"><?php echo __('split_public_line'); ?> </option> <?php echo get_cate_option(0, $cate_id); ?> </select> </div> <form name="file_frm" action="<?php
echo get_folder_option(0); ?> </select></td> </tr> <tr> <td><?php echo __('bbs_type'); ?> :</td> <td><select name="plugin_type"> <option value="dx2" <?php echo ifselected('dx2', $plugin_type, 'str'); ?> >DiscuzX v2.0 v2.5</option> <option value="pw87" <?php echo ifselected('pw87', $plugin_type, 'str'); ?> >PHPWind v8.7 v8.5</option> </select></td> </tr> <tr> <td> </td> <td><input type="submit" class="btn" value="<?php echo __('btn_make_code'); ?> "/> <a href="plugins/phpdisk_plugin.zip" class="txtred"><?php echo __('phpdisk_plugin_download_install'); ?> </a></td> </tr> <?php
<option value="adv_code" <?php echo ifselected('adv_code', $adv_type, 'str'); ?> ><?php echo __('adv_code'); ?> </option> <option value="adv_text" <?php echo ifselected('adv_text', $adv_type, 'str'); ?> ><?php echo __('adv_text'); ?> </option> <option value="adv_flash" <?php echo ifselected('adv_flash', $adv_type, 'str'); ?> ><?php echo __('adv_flash'); ?> </option> </select> </td> </tr> </table> <table align="center" width="100%" cellpadding="4" cellspacing="0" border="0" class="td_line"> <tbody id="adv_1" style="display:none"> <tr> <td colspan="2" class="bold"><?php echo __('adv_img'); ?>
<option value="success" class="txtgreen" <?php echo ifselected($v[o_status], 'success', 'str'); ?> ><?php echo __('income_success'); ?> </option> <option value="fail" class="txtred" <?php echo ifselected($v[o_status], 'fail', 'str'); ?> ><?php echo __('income_fail'); ?> </option> <option value="pendding" class="txtblue" <?php echo ifselected($v[o_status], 'pendding', 'str'); ?> ><?php echo __('income_pendding'); ?> </option> </select> <?php } ?> </td> <td align="center" class="txtgray"><?php echo $v['in_time']; ?> </td> <td align="center" class="txtgray"><?php
echo __('search_files_tips'); ?> " class="td_input" /> <?php if ($pd_uid) { ?> <select name="scope" class="td_sel"> <option value="all" <?php echo ifselected('all', $scope, 'str'); ?> ><?php echo __('all_file'); ?> </option> <option value="mydisk" <?php echo ifselected('mydisk', $scope, 'str'); ?> ><?php echo __('scope_mydisk'); ?> </option> </select> <?php } ?> <input type="submit" class="btn" value="<?php echo __('search'); ?> " /></td> </tr> </table>
?> " /> 关键字:<input type="text" name="word" value="<?php echo $word; ?> " title="<?php echo __('search_files_tips'); ?> " /> <select name="sel_type"> <option value="0"<?php echo ifselected(0, $sel_type); ?> >文件名</option> <option value="1"<?php echo ifselected(1, $sel_type); ?> >文件ID</option> </select> <input type="submit" class="btn" value="<?php echo __('search_files'); ?> " /></div> </div> </form> <div class="clear"></div> <script language="javascript"> function chg_view(){ var view = getId('view').value.strtrim(); document.location.href = '<?php echo urr(ADMINCP, "item=files&menu=file&action=index&view='+view+'");
/> <?php echo __('uc_type_phpwind'); ?> </td> </tr> <tr> <td><span class="bold"><?php echo __('uc_charset'); ?> </span>:<br /><span class="txtgray"><?php echo __('uc_charset_tips'); ?> </span></td> <td><select name="setting[uc_charset]"> <option value="utf-8" <?php echo ifselected('utf-8', $setting[uc_charset], 'str'); ?> >UTF-8</option> </select></td> </tr> <tr> <td><span class="bold"><?php echo __('uc_admin'); ?> </span>:<br /><span class="txtgray"><?php echo __('uc_admin_tips'); ?> </span></td> <td><input type="text" name="setting[uc_admin]" value="<?php echo $setting['uc_admin']; ?>
} if ($settings['open_switch_langs']) { ?> <label for="s_lang"><?php echo __('lang_switch'); ?> </label>:<select onchange="chg_lang();" id="s_lang"> <?php if (count($langs_sw)) { foreach ($langs_sw as $v) { ?> <option value="<?php echo $v['lang_href']; ?> " <?php echo ifselected($v['lang_name'], $C['lang_type'], 'str'); ?> ><?php echo $v[lang_txt]; ?> </option> <?php } unset($langs_sw); } ?> </select> <script type="text/javascript"> function chg_lang(){ document.location.href = getId('s_lang').options[getId('s_lang').selectedIndex].value;
function get_folder_option($pid = 0, $selID = 0, $lv = 0, $folder_id = 0) { global $db, $tpf, $pd_uid; $q = $db->query("select * from {$tpf}folders where userid='{$pd_uid}' and folder_id<>'{$folder_id}' order by folder_order asc,folder_id desc"); while ($rs = $db->fetch_array($q)) { $data[] = $rs; } $db->free($q); unset($rs); if (count($data)) { $html = ''; foreach ($data as $v) { if ($v['parent_id'] == $pid) { $html .= '<option value="' . $v[folder_id] . '"'; $html .= $selID ? ifselected($selID, $v[folder_id]) : ''; $html .= '>' . str_repeat(' ', $lv * 2) . $v[folder_name] . '</option>' . LF; $lv++; $html .= get_folder_option($v['folder_id'], $selID, $lv, $folder_id); $lv--; } } return $html; } else { return ''; } }
<div class="search_box"> <div class="l"><img src="<?php echo $admin_tpl_dir; ?> images/it_nav.gif" align="absbottom"/> 查看筛选: <select name="status" id="status" onchange="chg_status();"> <?php foreach ($defineCouser as $k => $v) { ?> <option value="<?php echo $k; ?> " <?php echo ifselected($current_status, $k, 'int'); ?> ><?php echo $v; ?> </option> <?php } ?> </select> </div> <div class="r"> 日期:<input type="text" name="dd" value="<?php echo $dd; ?> " title="日期格式:<?php
<td> <select name="nav_target"> <option <?php echo ifselected('_self', $nav_target, 'str'); ?> >_self</option> <option <?php echo ifselected('_blank', $nav_target, 'str'); ?> >_blank</option> <option <?php echo ifselected('_parent', $nav_target, 'str'); ?> >_parent</option> <option <?php echo ifselected('_top', $nav_target, 'str'); ?> >_top</option> </select> </td> </tr> <tr> <td><?php echo __('nav_position'); ?> :</td> <td><input type="radio" name="nav_position" value="top" id="top" <?php echo ifchecked('top', $nav_position, 'str'); ?> /><label for="top"><?php echo __('position_top');