本文整理汇总了PHP中showsetting函数的典型用法代码示例。如果您正苦于以下问题:PHP showsetting函数的具体用法?PHP showsetting怎么用?PHP showsetting使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了showsetting函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: admincp_show_simple
function admincp_show_simple($setting)
{
$setting['startTime'] = $setting['startTime'] ? dgmdate($setting['startTime'], 'd') : '';
$setting['endTime'] = $setting['endTime'] ? dgmdate($setting['endTime'], 'd') : '';
$setting['getCountLimit'] = intval($setting['getCountLimit']);
showsetting('上线时间(日期):', 'startTime', $setting['startTime'], 'calendar', '', '', '勋章开始领取时间,留空表示立即开始');
showsetting('下线时间(日期):', 'endTime', $setting['endTime'], 'calendar', '', '', '结束后会员将无法领取/申请此勋章,留空表示不限制');
showsetting('获取人次上限', 'getCountLimit', $setting['getCountLimit'], 'number', '', '', '当领取的人次达到这个数值时,系统将自动拒绝新的领取,0 或留空为不限制。(注:此选项仅对自动发放有效!)');
}
示例2: admincp_show_simple
/**
* 设置时显示的内容(直接在函数中输出即可)
* 此函数先于 admincp_show 调用,一般用于显示无需采用独立table的设置项
* @param <array> $setting 传入admincp_save方法中保存的信息
*/
function admincp_show_simple($setting)
{
global $_G, $lang;
$var = array();
$var['value'] = $setting['ppercon'];
$var['type'] = '<input name="month_sign" value="' . $var['value'] . '" type="number" class="txt">';
showsetting('每日签到-月签到次数', '', '', $var['type'], '', '', '允许连续签到到达设置的用户领取勋章。');
$var2 = array();
$var2['value'] = $setting['pperaddup'];
$var2['type'] = '<input name="all_sign" value="' . $var2['value'] . '" type="number" class="txt">';
showsetting('每日签到-总签到次数', '', '', $var2['type'], '', '', '允许累计签到到达设置的用户领取勋章。');
}
示例3: admincp_show_simple
function admincp_show_simple($setting)
{
global $medalid;
$setting['preMedalid'] = intval($setting['preMedalid']);
$varname = array('preMedalid', array());
$varname[1][] = array(0, '无限制');
$query = DB::query("SELECT medalid, name FROM " . DB::table('forum_medal') . " ORDER BY displayorder");
while ($medal = DB::fetch($query)) {
if ($medalid != $medal['medalid']) {
$varname[1][] = array($medal['medalid'], $medal['name']);
}
}
showsetting('拥有勋章', $varname, $setting['preMedalid'], 'select', '', '', '在领取此勋章前需要拥有的勋章');
}
示例4: admincp_show_simple
function admincp_show_simple($setting)
{
global $_G, $lang, $medal;
$medal['permission'] = is_array($medal['permission']) ? $medal['permission'] : unserialize($medal['permission']);
$medal['usergroups'] = (array) $medal['permission']['usergroups'];
$var = array();
$var['value'] = $medal['usergroups'] ? $medal['usergroups'] : $setting['usergroup'];
$query = DB::query("SELECT type, groupid, grouptitle, radminid FROM " . DB::table('common_usergroup') . " ORDER BY (creditshigher<>'0' || creditslower<>'0'), creditslower, groupid");
$groupselect = array();
while ($group = DB::fetch($query)) {
$group['type'] = $group['type'] == 'special' && $group['radminid'] ? 'specialadmin' : $group['type'];
$groupselect[$group['type']] .= '<option value="' . $group['groupid'] . '"' . (@in_array($group['groupid'], $var['value']) ? ' selected' : '') . '>' . $group['grouptitle'] . '</option>';
}
$var['type'] = '<select name="usergroup[]" size="10" multiple="multiple"><option value=""' . (@in_array('', $var['value']) ? ' selected' : '') . '>' . cplang('plugins_empty') . '</option>';
$var['type'] .= '<optgroup label="' . $lang['usergroups_member'] . '">' . $groupselect['member'] . '</optgroup>' . ($groupselect['special'] ? '<optgroup label="' . $lang['usergroups_special'] . '">' . $groupselect['special'] . '</optgroup>' : '') . ($groupselect['specialadmin'] ? '<optgroup label="' . $lang['usergroups_specialadmin'] . '">' . $groupselect['specialadmin'] . '</optgroup>' : '') . '<optgroup label="' . $lang['usergroups_system'] . '">' . $groupselect['system'] . '</optgroup></select>';
showsetting('用户组', '', '', $var['type'], '', '', '允许领取勋章的用户组,留空代表不限制');
}
示例5: showtagheader
}
</script>
EOT;
showtagheader('div', 'searchposts', !$searchsubmit && empty($newlist));
showformheader("share" . (!empty($_G['gp_search']) ? '&search=true' : ''), '', 'shareforum');
showhiddenfields(array('page' => $page, 'pp' => $_G['gp_pp'] ? $_G['gp_pp'] : $_G['gp_perpage']));
showtableheader();
showsetting('share_search_detail', 'detail', $detail, 'radio');
showsetting('share_search_perpage', '', $_G['gp_perpage'], "<select name='perpage'><option value='20'>{$lang['perpage_20']}</option><option value='50'>{$lang['perpage_50']}</option><option value='100'>{$lang['perpage_100']}</option></select>");
$selected[$type] = $type ? 'selected="selected"' : '';
showsetting('share_search_icon', '', $type, "<select name='type'><option value=''>{$lang['all']}</option><option value='link' {$selected['link']}>{$lang['link']}</option>\r\n\t\t\t<option value='video' {$selected['video']}>{$lang['video']}</option><option value='music' {$selected['music']}>{$lang['music']}</option><option value='flash' {$selected['flash']}>Flash</option>\r\n\t\t\t<option value='blog' {$selected['blog']}>{$lang['blogs']}</option><option value='album' {$selected['album']}>{$lang['albums']}</option><option value='pic' {$selected['pic']}>{$lang['pics']}</option>\r\n\t\t\t<option value='space' {$selected['space']}>{$lang['members']}</option><option value='thread' {$selected['thread']}>{$lang['thread']}</option></select>");
showsetting('share_search_uid', 'uid', $uid, 'text');
showsetting('share_search_user', 'users', $users, 'text');
showsetting('share_search_sid', 'sid', $sid, 'text');
showsetting('share_search_hot', array('hot1', 'hot2'), array('', ''), 'range');
showsetting('share_search_time', array('starttime', 'endtime'), array($starttime, $endtime), 'daterange');
showsubmit('searchsubmit');
showtablefooter();
showformfooter();
showtagfooter('div');
} else {
$sids = authcode($sids, 'DECODE');
$sidsadd = $sids ? explode(',', $sids) : $_G['gp_delete'];
include_once libfile('function/delete');
$deletecount = count(deleteshares($sidsadd));
$cpmsg = cplang('share_succeed', array('deletecount' => $deletecount));
?>
<script type="text/JavaScript">alert('<?php
echo $cpmsg;
?>
');parent.$('shareforum').searchsubmit.click();</script>
示例6: showportalprimaltemplate
function showportalprimaltemplate($pritplname, $type)
{
include_once libfile('function/portalcp');
$tpls = array('./template/default:portal/' . $type => getprimaltplname('portal/' . $type . '.htm'));
foreach ($alltemplate = C::t('common_template')->range() as $template) {
if ($dir = dir(DISCUZ_ROOT . $template['directory'] . '/portal/')) {
while (false !== ($file = $dir->read())) {
$file = strtolower($file);
if (fileext($file) == 'htm' && substr($file, 0, strlen($type) + 1) == $type . '_') {
$key = $template['directory'] . ':portal/' . str_replace('.htm', '', $file);
$tpls[$key] = getprimaltplname($template['directory'] . ':portal/' . $file);
}
}
}
}
foreach ($tpls as $key => $value) {
echo "<input name=signs[{$type}][" . dsign($key) . "] value='1' type='hidden' />";
}
$pritplvalue = '';
if (empty($pritplname)) {
$pritplhide = '';
$pritplvalue = ' style="display:none;"';
} else {
$pritplhide = ' style="display:none;"';
}
$catetplselect = '<span' . $pritplhide . '><select id="' . $type . 'select" name="' . $type . 'primaltplname">';
$selectedvalue = '';
if ($type == 'view') {
$catetplselect .= '<option value="">' . cplang('portalcategory_inheritupsetting') . '</option>';
}
foreach ($tpls as $k => $v) {
if ($pritplname === $k) {
$selectedvalue = $k;
$selected = ' selected';
} else {
$selected = '';
}
$catetplselect .= '<option value="' . $k . '"' . $selected . '>' . $v . '</option>';
}
$pritplophide = !empty($pritplname) ? '' : ' style="display:none;"';
$catetplselect .= '</select> <a href="javascript:;"' . $pritplophide . ' onclick="$(\'' . $type . 'select\').value=\'' . $selectedvalue . '\';$(\'' . $type . 'select\').parentNode.style.display=\'none\';$(\'' . $type . 'value\').style.display=\'\';">' . cplang('cancel') . '</a></span>';
if (empty($pritplname)) {
showsetting('portalcategory_' . $type . 'primaltplname', '', '', $catetplselect);
} else {
$tplname = getprimaltplname($pritplname . '.htm');
$html = '<span id="' . $type . 'value" ' . $pritplvalue . '> ' . $tplname . '<a href="javascript:;" onclick="$(\'' . $type . 'select\').parentNode.style.display=\'\';$(\'' . $type . 'value\').style.display=\'none\';"> ' . cplang('modify') . '</a></span>';
showsetting('portalcategory_' . $type . 'primaltplname', '', '', $catetplselect . $html);
}
}
示例7: showsubmenu
showsubmenu($menustr);
showtableheader('', 'nobottom');
$typeclass = array(1, 2);
showtablerow('', array(), array(shownavmenu($type, $typeclass, $langs)));
showtablefooter();
showformheader($thisurl . '&type=' . $type, 'enctype');
showtableheader($langs['slide'], 'nobottom');
for ($j = 1; $j < 6; $j++) {
$grouplogohtml = '';
$pic = '';
if ($result['pic' . $j]) {
$pic = $result['pic' . $j];
$grouplogohtml = '<label>' . $langs['slideimgtip'] . '<br /><img src="' . fiximage($pic) . '?' . random(6) . '" width="400" height="100" />';
}
showsetting($langs['slide_img'] . $j, 'pic' . $j, $pic, 'filetext', '', 0, $grouplogohtml);
showsetting($langs['slide_link'] . $j, 'movie' . $j, $result['movie' . $j], 'text');
}
showsubmit('submit');
showtablefooter();
showformfooter();
}
function shownavmenu($type, $typeclass, $langs)
{
$result = '<ul class="tab1">';
$typelist = array();
$typelist[$type] = ' class="current"';
foreach ($typeclass as $key => $value) {
$result .= '<li' . $typelist[$value] . '><a href="' . ADMINSCRIPT . '?action=plugins&operation=config&act=slide&identifier=sanree_brand&pmod=admincp&type=' . $value . '"><span>' . $langs['slide' . $value] . '</span></a></li>';
}
$result .= '</ul>';
return $result;
示例8: showsetting
if ($imagesizes) {
$v = $adv['parameters']['width'] . 'x' . $adv['parameters']['height'];
showsetting('adv_edit_style_image_size', '', '', '<select onchange="setsize(this.value, \'image\')"><option value="x">' . cplang('adv_edit_style_custom') . '</option>' . str_replace('"' . $v . '"', '"' . $v . '" selected="selected"', $imagesizes) . '</select>');
}
showsetting('adv_edit_style_image_width', 'advnew[image][width]', $adv['parameters']['width'], 'text', '', 0, '', 'id="imagewidth" onchange="setpreview(\'image\')"');
showsetting('adv_edit_style_image_height', 'advnew[image][height]', $adv['parameters']['height'], 'text', '', 0, '', 'id="imageheight" onchange="setpreview(\'image\')"');
showtagfooter('tbody');
showtagheader('tbody', 'style_flash', $adv['parameters']['style'] == 'flash');
showtitle('adv_edit_style_flash');
showsetting('adv_edit_style_flash_url', 'advnewflash', $adv['parameters']['url'], 'filetext');
if ($imagesizes) {
$v = $adv['parameters']['flash'] . 'x' . $adv['parameters']['flash'];
showsetting('adv_edit_style_flash_size', '', '', '<select onchange="setsize(this.value, \'flash\')"><option>' . cplang('adv_edit_style_custom') . '</option>' . str_replace('"' . $v . '"', '"' . $v . '" selected="selected"', $imagesizes) . '</select>');
}
showsetting('adv_edit_style_flash_width', 'advnew[flash][width]', $adv['parameters']['width'], 'text', '', 0, '', 'id="flashwidth" onchange="setpreview(\'flash\')"');
showsetting('adv_edit_style_flash_height', 'advnew[flash][height]', $adv['parameters']['height'], 'text', '', 0, '', 'id="flashheight" onchange="setpreview(\'flash\')"');
showtagfooter('tbody');
echo '<tr><td colspan="2">';
if ($operation == 'edit') {
echo '<input id="previewbtn" type="button" class="btn" onclick="$(\'advpreview\').style.display=\'\';this.form.preview.value=1;this.form.target=\'preview\';this.form.submit();" name="jspreview" value="' . $lang['preview'] . '"> ';
}
echo '<input type="submit" class="btn" name="advsubmit" onclick="this.form.preview.value=0;this.form.target=\'\'" value="' . $lang['submit'] . '"><input name="preview" type="hidden" value="0"></td></tr>';
showtablefooter();
showtableheader();
echo '<tr><td colspan="2" id="imagesizepreviewtd" style="border:0"><div id="imagesizepreview" style="display:none;border:1px dotted gray"></div></td></tr>';
echo '<tr><td colspan="2" id="flashsizepreviewtd" style="border:0"><div id="flashsizepreview" style="display:none;border:1px dotted gray"></div></td></tr>';
showtablefooter();
showformfooter();
echo '<script type="text/JavaScript">
function setsize(v, o) {
if(v) {
示例9: libfile
require_once libfile('task/' . $task['scriptname'], 'class');
$taskclass = 'task_' . $task['scriptname'];
$taskcv = new $taskclass();
if ($taskvars['complete']) {
foreach ($taskvars['complete'] as $taskvar) {
$taskcvar = $taskcv->conditions[$taskvar['variable']];
if (is_array($taskcvar['value'])) {
foreach ($taskcvar['value'] as $k => $v) {
$taskcvar['value'][$k][1] = lang('task/' . $task['scriptname'], $taskcvar['value'][$k][1]);
}
}
$varname = in_array($taskvar['type'], array('mradio', 'mcheckbox', 'select', 'mselect')) ? $taskvar['type'] == 'mselect' ? array($taskvar['variable'] . '[]', $taskcvar['value']) : array($taskvar['variable'], $taskcvar['value']) : $taskvar['variable'];
if (in_array($taskvar['type'], array('mcheckbox', 'mselect'))) {
$taskvar['value'] = unserialize($taskvar['value']);
}
showsetting($taskvar['name'], $varname, $taskvar['value'], $taskvar['type'], '', 0, $taskvar['description']);
}
} else {
showtablerow('', 'class="td27" colspan="2"', cplang('nolimit'));
}
showsubmit('editsubmit', 'submit');
showtablefooter();
showformfooter();
} else {
$applyperm = $_G['gp_grouplimit'] == 'special' && is_array($_G['gp_applyperm']) ? implode("\t", $_G['gp_applyperm']) : $_G['gp_grouplimit'];
$_G['gp_starttime'] = dmktime($_G['gp_starttime']);
$_G['gp_endtime'] = dmktime($_G['gp_endtime']);
$reward = $_G['gp_reward'];
$prize = $_G['gp_prize_' . $reward];
$bonus = $_G['gp_bonus_' . $reward];
if (!$_G['gp_name'] || !$_G['gp_description']) {
示例10: in_array
require_once DISCUZ_ROOT . './include/forum.func.php';
$anchor = in_array($anchor, array('search', 'admin')) ? $anchor : 'search';
shownav('topic', 'nav_attaches');
showsubmenusteps('nav_attaches', array(array('search', !$searchsubmit), array('admin', $searchsubmit)));
showtips('attach_tips', 'attach_tips', $searchsubmit);
showtagheader('div', 'search', !$searchsubmit);
showformheader('attach');
showtableheader();
showsetting('attach_nomatched', 'nomatched', 0, 'radio');
showsetting('attach_forum', '', '', '<select name="inforum"><option value="all"> >' . lang('all') . '</option><option value=""> </option>' . forumselect(FALSE, 0, 0, TRUE) . '</select>');
showsetting('attach_sizerange', array('sizeless', 'sizemore'), array('', ''), 'range');
showsetting('attach_dlcountrange', array('dlcountless', 'dlcountmore'), array('', ''), 'range');
showsetting('attach_daysold', 'daysold', '', 'text');
showsetting('filename', 'filename', '', 'text');
showsetting('attach_keyword', 'keywords', '', 'text');
showsetting('attach_author', 'author', '', 'text');
showsubmit('searchsubmit', 'search');
showtablefooter();
showformfooter();
showtagfooter('div');
if (submitcheck('searchsubmit')) {
require_once DISCUZ_ROOT . './include/attachment.func.php';
$sql = "a.pid=p.pid";
$ppp = 100;
if ($inforum != 'all') {
$inforum = intval($inforum);
}
$sql .= is_numeric($inforum) ? " AND p.fid='{$inforum}'" : '';
$sql .= $daysold ? " AND p.dateline<='" . ($timestamp - 86400 * $daysold) . "'" : '';
$sql .= $author ? " AND p.author='{$author}'" : '';
$sql .= $filename ? " AND a.filename LIKE '%{$filename}%'" : '';
示例11: shownewsletter
function shownewsletter()
{
global $lang;
showtableheader();
showsetting('members_newsletter_subject', 'subject', '', 'text');
showsetting('members_newsletter_message', 'message', '', 'textarea');
if ($_GET['do'] == 'mobile') {
showsetting('members_newsletter_system', 'system', 0, 'radio');
showhiddenfields(array('notifymembers' => 'mobile'));
} else {
showsetting('members_newsletter_method', array('notifymembers', array(array('email', $lang['email'], array('pmextra' => 'none', 'posttype' => '')), array('notice', $lang['notice'], array('pmextra' => 'none', 'posttype' => '')), array('pm', $lang['grouppm'], array('pmextra' => '', 'posttype' => 'none')))), 'pm', 'mradio');
showtagheader('tbody', 'posttype', '', 'sub');
showsetting('members_newsletter_posttype', array('posttype', array(array(0, cplang('members_newsletter_posttype_text')), array(1, cplang('members_newsletter_posttype_html'))), TRUE), '0', 'mradio');
showtagfooter('tbody');
showtagheader('tbody', 'pmextra', true, 'sub');
showsetting('members_newsletter_system', 'system', 0, 'radio');
showtagfooter('tbody');
}
showsetting('members_newsletter_num', 'pertask', 100, 'text');
showtablefooter();
}
示例12: libfile
if ($operate_type == 'delete') {
require_once libfile('function/delete');
foreach ($ctidarray as $ctid) {
deletecollection($ctid);
}
}
cpmsg('collection_admin_updated', 'action=collection&operation=admin&searchsubmit=yes&perpage=' . $_GET['perpage'] . '&page=' . $_GET['page'], 'succeed');
}
if (!submitcheck('searchsubmit', 1)) {
showformheader('collection&operation=admin');
showtableheader();
showsetting('collection_name', 'collection_name', $collection_name, 'text');
showsetting('collection_ctid', 'collection_ctid', $collection_ctid, 'text');
showsetting('collection_username', 'collection_username', $collection_username, 'text');
showsetting('collection_uid', 'collection_uid', $collection_uid, 'text');
showsetting('feed_search_perpage', '', $_GET['perpage'], "<select name='perpage'><option value='20'>{$lang['perpage_20']}</option><option value='50'>{$lang['perpage_50']}</option><option value='100'>{$lang['perpage_100']}</option></select>");
showsubmit('searchsubmit');
showtablefooter();
showformfooter();
showtagfooter('div');
} else {
$collection_name = trim($_GET['collection_name']);
$collection_ctid = dintval($_GET['collection_ctid']);
$collection_username = trim($_GET['collection_username']);
$collection_uid = dintval($_GET['collection_uid']);
$ppp = $_GET['perpage'];
$startlimit = ($page - 1) * $ppp;
$multipage = '';
$totalcount = C::t('forum_collection')->fetch_all_for_search($collection_name, $collection_ctid, $collection_username, $collection_uid, -1);
$multipage = multi($totalcount, $ppp, $page, ADMINSCRIPT . "?action=collection&operation=admin&searchsubmit=yes&collection_name={$collection_name}&collection_ctid={$collection_ctid}&collection_username={$collection_username}&collection_uid={$collection_uid}&perpage={$ppp}&status={$status}");
$collection = C::t('forum_collection')->fetch_all_for_search($collection_name, $collection_ctid, $collection_username, $collection_uid, $startlimit, $ppp);
示例13: showsetting
if ($_GET['op'] == 'edit') {
showsetting('category_note', 'note', $categorylist[$_GET['catid']]['note'], 'text');
}
if ($_GET['op'] == 'edit') {
showsetting('category_displayorder', 'displayorder', $categorylist[$_GET['catid']]['displayorder'], 'number');
}
if ($type == 'shop' && $_GET['upid'] == 0 && $_G['setting']['commentmodel'] == 1) {
$model = !empty($categorylist[$_GET['catid']]['cmid']) ? 1 : 0;
$query = DB::query('SELECT * FROM ' . tname('commentmodels') . ' ORDER BY cmid ASC');
while ($commentmodel = DB::fetch($query)) {
foreach (unserialize($commentmodel['scorename']) as $scorename) {
$commentmodel['scorenamestr'] .= '[' . $scorename . ']';
}
$commentmodelarr[] = $commentmodel;
}
showsetting('category_model', array('commtmodel', array(array(1, lang('yes'), array('catmodel' => '')), array(0, lang('no'), array('catmodel' => 'none'))), true), $model, 'mradio');
showtagheader('tbody', 'catmodel', $model, 'sub');
echo "<tr><td colspan='2'>";
if (!empty($commentmodelarr)) {
echo "<table width='800' style='margin:10px;'>";
showsubtitle(array('', 'modelname', 'scorename', 'cmdateline'));
foreach ($commentmodelarr as $value) {
$checked = $value['cmid'] == $categorylist[$_GET['catid']]['cmid'] ? 'checked' : '';
showtablerow('', array('class="td27" style="width:30px;"'), array("<input class='radio' type='radio' name='cmid' value='{$value['cmid']}' {$checked}/>", $value['modelname'], $value['scorenamestr'], date('Y-m-d', $value['dateline'])));
}
echo "</table>";
} else {
showtablerow('', array('class="td27"'), array(lang('catmodel_add')));
}
echo "</td></tr>";
showtagfooter('tbody');
示例14: showtype
}
echo '<form method="post" action="admincp.php?action=jswizard&function=custom#' . $lang['jswizard_custom'] . '">';
showtype('jswizard_jstemplate', 'top');
echo '<tr><td class="altbg1" colspan="2">' . $lang['jswizard_custom_jstemplate_comment'] . '<br />';
echo '<img src="images/admincp/zoomin.gif" onmouseover="this.style.cursor=\'pointer\'" onclick="zoomtextarea(\'jstemplate\', 1)"> <img src="images/admincp/zoomout.gif" onmouseover="this.style.cursor=\'pointer\'" onclick="zoomtextarea(\'jstemplate\', 0)"><br />';
jsinsertunit();
echo '<textarea cols="100" rows="5" id="jstemplate" name="parameter[jstemplate]" style="width: 95%;">' . ($parameter['jstemplate'] != '' ? stripslashes($parameter['jstemplate']) : '') . '</textarea></td></tr>';
showtype('', 'bottom');
echo '<br />';
showtype('jswizard_custom', 'top');
showsetting('jswizard_jskey', 'jskey', $jskey, 'text');
showsetting('jswizard_cachelife', 'parameter[cachelife]', $parameter['cachelife'] != '' ? intval($parameter['cachelife']) : '', 'text');
if (strtoupper($charset) != 'UTF-8') {
showsetting('jswizard_charset', 'parameter[jscharset]', $parameter['jscharset'], 'radio');
} else {
showsetting('jswizard_charsetr', array('parameter[jscharset]', array(array(0, $lang['none']), array(1, 'GBK'), array(2, 'BIG5'))), intval($parameter['jscharset']), 'mradio');
}
showtype('', 'bottom');
echo $editext . '<br /><center><input class="button" type="submit" name="jssubmit" value="' . $lang['jswizard_preview'] . '"> <input class="button" type="button" onclick="this.form.preview.value=0;this.form.jssubmit.click()" value="' . $lang['submit'] . '"><input name="preview" type="hidden" value="1"></center></form><br />';
/* Custom == End == */
}
} elseif ($action == 'fileperms') {
shownav('menu_tools_fileperms');
showtips('fileperms_tips');
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
<tr class="header"><td><?php
echo $lang['fileperms_check'];
?>
</td></tr>
<tr><td class="altbg1"><br /><ul>
示例15: ajaxshowheader
ajaxshowheader();
echo '
<h3 class="flb" id="fctrl_showblock" style="cursor: move;">
<em id="return_showblock" fwin="showblock">' . $lang['cloud_doctor_setidkey'] . '</em>
<span><a title="' . $lang['close'] . '" onclick="hideWindow(\'cloudApiIpWin\');return false;" class="flbc" href="javascript:;">' . $lang['close'] . '</a></span>
</h3>
';
echo '<div style="margin: 0 10px; width: 700px;">';
showtips('cloud_doctor_setidkey_tips');
showformheader('cloud');
showhiddenfields(array('operation' => $operation));
showhiddenfields(array('op' => $op));
showtableheader();
showsetting('cloud_site_id', 'my_siteid', $_G['setting']['my_siteid'], 'text');
showsetting('cloud_site_key', 'my_sitekey', preg_replace('/(\\w{2})\\w*(\\w{2})/', '\\1****\\2', $_G['setting']['my_sitekey']), 'text');
showsetting('cloud_site_status', array('cloud_status', array(array('0', $lang['cloud_doctor_status_0']), array('1', $lang['cloud_doctor_status_1']), array('2', $lang['cloud_doctor_status_2']))), $_G['setting']['cloud_status'], 'select');
showsubmit('setidkeysubmit');
showtablefooter();
showformfooter();
echo '</div>';
ajaxshowfooter();
} else {
$appService = Cloud::loadClass('Service_App');
$doctorService = Cloud::loadClass('Service_Doctor');
require_once DISCUZ_ROOT . './source/discuz_version.php';
shownav('navcloud', 'menu_cloud_doctor');
showsubmenu('menu_cloud_doctor');
showtips('cloud_doctor_tips');
echo '<script type="text/javascript">var disallowfloat = "";</script>';
showtableheader();
showtagheader('tbody', '', true);