本文整理汇总了PHP中showtitle函数的典型用法代码示例。如果您正苦于以下问题:PHP showtitle函数的具体用法?PHP showtitle怎么用?PHP showtitle使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了showtitle函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: exit
<?php
if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
exit('Access Denied');
}
showtableheader();
showtagheader('tbody class="psetting"', '', true);
showtitle('未启用的扩展');
$sql = "SELECT * FROM " . DB::table('yinxingfei_zzza_kuozhan') . " WHERE available = '0' ORDER BY identifier ASC";
$query = DB::query($sql);
while ($value = DB::fetch($query)) {
if ($value['name']) {
showtablerow('class="hover hover" style="overflow: hidden;"', array(), array('
<div style="float:left;width:20%;padding-bottom: 10px;">
<p><span class="bold">' . $value['name'] . '</span></p>
<p><span class="sml"></span></p>
</div>
<div style="float:left;width:80%;padding-bottom: 10px;">
<p>说明:' . $value['description'] . '</p>
<p style="overflow: hidden;">
<div style="float:left;width:50%;">版本:' . $value['version'] . '<em style="color:#ddd;padding: 0px 5px;">|</em>作者:' . $value['copyright'] . '<em style="color:#ddd;padding: 0px 5px;">|</em>类型:' . $value['type'] . '<em style="color:#ddd;padding: 0px 5px;">|</em>文件夹:' . $value['identifier'] . '</div>
<div style="text-align: right;float:right;width:50%;">
<a href="' . ADMINSCRIPT . '?action=plugins&operation=config&identifier=yinxingfei_zzza&pmod=extend&caozuo=kaiqi&kzid=' . $value['kzid'] . '">开启</a>
<span> </span>
<a href="' . ADMINSCRIPT . '?action=plugins&operation=config&identifier=yinxingfei_zzza&pmod=extend&caozuo=xiezai&kzid=' . $value['kzid'] . '">卸载</a>
</div>
</p>
</div>
'));
echo '<style>.yincang_' . $value['identifier'] . ' {display:none;}</style>';
}
示例2: array
$tradelog = array('orderid' => 'TEST' . dgmdate(TIMESTAMP, 'YmdHis') . random(18), 'baseprice' => 1, 'number' => 1, 'transportfee' => 0);
dheader('location: ' . trade_payurl($pay, $trade, $tradelog));
}
exit;
}
if (!submitcheck('tenpaysubmit')) {
shownav('extended', 'nav_ec');
showsubmenu('nav_ec', array(array('nav_ec_config', 'setting&operation=ec', 0), array('nav_ec_tenpay', 'ec&operation=tenpay', 1), array('nav_ec_alipay', 'ec&operation=alipay', 0), array('nav_ec_credit', 'ec&operation=credit', 0), array('nav_ec_orders', 'ec&operation=orders', 0), array('nav_ec_tradelog', 'tradelog', 0), array('nav_ec_inviteorders', 'ec&operation=inviteorders', 0)));
showtips('ec_tenpay_tips');
showformheader('ec&operation=tenpay');
showtableheader('', 'nobottom');
showtitle('ec_tenpay_opentrans');
showsetting('ec_tenpay_opentrans_chnid', 'settingsnew[ec_tenpay_opentrans_chnid]', $settings['ec_tenpay_opentrans_chnid'], 'text');
$tenpay_securitycodemask = $settings['ec_tenpay_opentrans_key'] ? $settings['ec_tenpay_opentrans_key'][0] . '********' . substr($settings['ec_tenpay_opentrans_key'], -4) : '';
showsetting('ec_tenpay_opentrans_key', 'settingsnew[ec_tenpay_opentrans_key]', $tenpay_securitycodemask, 'text');
showtitle('ec_tenpay');
showsetting('ec_tenpay_direct', 'settingsnew[ec_tenpay_direct]', $settings['ec_tenpay_direct'], 'radio');
showsetting('ec_tenpay_bargainor', 'settingsnew[ec_tenpay_bargainor]', $settings['ec_tenpay_bargainor'], 'text');
$tenpay_securitycodemask = $settings['ec_tenpay_key'] ? $settings['ec_tenpay_key'][0] . '********' . substr($settings['ec_tenpay_key'], -4) : '';
showsetting('ec_tenpay_key', 'settingsnew[ec_tenpay_key]', $tenpay_securitycodemask, 'text');
showsetting('ec_tenpay_check', '', '', '<a href="' . ADMINSCRIPT . '?action=ec&operation=tenpay&checktype=credit" target="_blank">' . $lang['ec_alipay_checklink_credit'] . '</a><br />' . '<a href="' . ADMINSCRIPT . '?action=ec&operation=tenpay&checktype=virtualgoods" target="_blank">' . $lang['ec_alipay_checklink_virtualgoods'] . '</a><br />' . '<a href="' . ADMINSCRIPT . '?action=ec&operation=tenpay&checktype=goods" target="_blank">' . $lang['ec_alipay_checklink_goods'] . '</a><br />');
showtablefooter();
showtableheader('', 'notop');
showsubmit('tenpaysubmit');
showtablefooter();
showformfooter();
} else {
$settingsnew = $_G['gp_settingsnew'];
$settingsnew['ec_tenpay_bargainor'] = trim($settingsnew['ec_tenpay_bargainor']);
$settingsnew['ec_tenpay_key'] = trim($settingsnew['ec_tenpay_key']);
$tenpay_securitycodemask = $settings['ec_tenpay_key'] ? $settings['ec_tenpay_key'][0] . '********' . substr($settings['ec_tenpay_key'], -4) : '';
示例3: while
$query = DB::query("SELECT * FROM " . DB::table('common_taskvar') . " WHERE taskid='{$id}'");
while ($taskvar = DB::fetch($query)) {
if ($taskvar['sort'] == 'apply') {
$taskvars['apply'][] = $taskvar;
} elseif ($taskvar['sort'] == 'complete') {
$taskvars['complete'][$taskvar['variable']] = $taskvar;
} elseif ($taskvar['sort'] == 'setting' && $taskvar['name']) {
$taskvars['setting'][$taskvar['variable']] = $taskvar;
}
}
if ($taskvars['apply']) {
foreach ($taskvars['apply'] as $taskvar) {
showsetting($taskvar['name'], $taskvar['variable'], $taskvar['value'], $taskvar['type'], '', 0, $taskvar['description']);
}
}
showtitle('tasks_add_conditions');
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']);
}
示例4: showtagheader
showtagheader('tbody', '', true);
showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_doctor_dns_qzone') . '</strong>', $doctorService->checkDNSResult(3, $_G['setting'])));
showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_doctor_dns_qzone_test') . '</strong>', $doctorService->showTestJS(3)));
showtagfooter('tbody');
showtagheader('tbody', 'cloud_tbody_qzone_test', false);
showtagfooter('tbody');
showtagheader('tbody', 'cloud_tbody_site_test', true);
showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_doctor_site_test') . '</strong>', cplang('cloud_doctor_site_test_result', array('imgdir' => $_G['style']['imgdir']))));
showtagfooter('tbody');
showtagheader('tbody', '', true);
showtitle('cloud_doctor_title_plugin');
$doctorService->showPlugins();
showtagfooter('tbody');
if ($appService->getCloudAppStatus('connect')) {
if ($op == 'fixGuest') {
$doctorService->fixGuestGroup(cplang('connect_guest_group_name'));
}
showtagheader('tbody', '', true);
showtitle('cloud_doctor_title_connect');
showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_doctor_connect_app_id') . '</strong>', !empty($_G['setting']['connectappid']) ? $_G['setting']['connectappid'] : $lang['cloud_doctor_connect_reopen']));
showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_doctor_connect_app_key') . '</strong>', !empty($_G['setting']['connectappkey']) ? preg_replace('/(\\w{2})\\w*(\\w{2})/', '\\1****\\2', $_G['setting']['connectappkey']) . ' ' . $lang['cloud_site_key_safetips'] : $lang['cloud_doctor_connect_reopen']));
$guestGroupStr = cplang('cloud_doctor_result_success') . ' ' . cplang('cloud_doctor_normal');
if (!$doctorService->checkGuestGroup()) {
$guestGroupStr = cplang('cloud_doctor_result_failure') . ' ' . cplang('cloud_doctor_connect_fix');
}
showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_doctor_connect_guestgroup') . '</strong>', $guestGroupStr));
showtagfooter('tbody');
}
showtablefooter();
$doctorService->showCloudDoctorJS();
}
示例5: cpmsg
$pluginvarid = $_G['gp_pluginvarid'];
$pluginvar = DB::fetch_first("SELECT * FROM " . DB::table('common_plugin') . " p, " . DB::table('common_pluginvar') . " pv WHERE p.pluginid='{$pluginid}' AND pv.pluginid=p.pluginid AND pv.pluginvarid='{$pluginvarid}'");
if (!$pluginvar) {
cpmsg('pluginvar_not_found', '', 'error');
}
if (!submitcheck('varsubmit')) {
shownav('plugin');
showsubmenu($lang['plugins_edit'] . ' - ' . $pluginvar['name'], array(array('plugins_list', 'plugins', 0), array('config', 'plugins&operation=edit&pluginid=' . $pluginid . '&anchor=config', 0), array('plugins_config_module', 'plugins&operation=edit&pluginid=' . $pluginid . '&anchor=modules', 0), array('plugins_config_vars', 'plugins&operation=edit&pluginid=' . $pluginid . '&anchor=vars', 1), array('export', 'plugins&operation=export&pluginid=' . $pluginid, 0)));
$typeselect = '<select name="typenew" onchange="if(this.value.indexOf(\'select\') != -1) $(\'extra\').style.display=\'\'; else $(\'extra\').style.display=\'none\';">';
foreach (array('number', 'text', 'radio', 'textarea', 'select', 'selects', 'color', 'date', 'datetime', 'forum', 'forums', 'group', 'groups', 'extcredit', 'forum_text', 'forum_textarea', 'forum_radio', 'forum_select', 'group_text', 'group_textarea', 'group_radio', 'group_select') as $type) {
$typeselect .= '<option value="' . $type . '" ' . ($pluginvar['type'] == $type ? 'selected' : '') . '>' . $lang['plugins_edit_vars_type_' . $type] . '</option>';
}
$typeselect .= '</select>';
showformheader("plugins&operation=vars&pluginid={$pluginid}&pluginvarid={$pluginvarid}");
showtableheader();
showtitle($lang['plugins_edit_vars'] . ' - ' . $pluginvar['title']);
showsetting('plugins_edit_vars_title', 'titlenew', $pluginvar['title'], 'text');
showsetting('plugins_edit_vars_description', 'descriptionnew', $pluginvar['description'], 'textarea');
showsetting('plugins_edit_vars_type', '', '', $typeselect);
showsetting('plugins_edit_vars_variable', 'variablenew', $pluginvar['variable'], 'text');
showtagheader('tbody', 'extra', $pluginvar['type'] == 'select' || $pluginvar['type'] == 'selects');
showsetting('plugins_edit_vars_extra', 'extranew', $pluginvar['extra'], 'textarea');
showtagfooter('tbody');
showsubmit('varsubmit');
showtablefooter();
showformfooter();
} else {
$titlenew = cutstr(dhtmlspecialchars(trim($_G['gp_titlenew'])), 25);
$descriptionnew = cutstr(dhtmlspecialchars(trim($_G['gp_descriptionnew'])), 255);
$variablenew = trim($_G['gp_variablenew']);
$extranew = dhtmlspecialchars(trim($_G['gp_extranew']));
示例6: showsetting
showsetting('admingroup_edit_manage_hotuser', 'managehotusernew', $group['managehotuser'], 'radio');
showsetting('admingroup_edit_manage_defaultuser', 'managedefaultusernew', $group['managedefaultuser'], 'radio');
showsetting('admingroup_edit_manage_videophoto', 'managevideophotonew', $group['managevideophoto'], 'radio');
showsetting('admingroup_edit_manage_magic', 'managemagicnew', $group['managemagic'], 'radio');
showsetting('admingroup_edit_manage_click', 'manageclicknew', $group['manageclick'], 'radio');
showtagfooter('tbody');
showtagheader('tbody', 'otherperm', $_GET['anchor'] == 'otherperm');
showtitle('admingroup_edit_otherperm');
showsetting('admingroup_edit_view_ip', 'allowviewipnew', $group['allowviewip'], 'radio');
showsetting('admingroup_edit_manage_collection', 'allowmanagecollectionnew', $group['allowmanagecollection'], 'radio');
showtagfooter('tbody');
showtablefooter();
showtagheader('div', 'portalperm', $_GET['anchor'] == 'portalperm');
showtableheader();
showtagheader('tbody', '', true);
showtitle('admingroup_edit_portalperm');
showsetting('admingroup_edit_manage_article', 'allowmanagearticlenew', $group['allowmanagearticle'], 'radio');
showtagfooter('tbody');
showtagheader('tbody', '', true);
showsetting('admingroup_edit_add_topic', 'allowaddtopicnew', $group['allowaddtopic'], 'radio');
showsetting('admingroup_edit_manage_topic', 'allowmanagetopicnew', $group['allowmanagetopic'], 'radio');
showsetting('admingroup_edit_diy', 'allowdiynew', $group['allowdiy'], 'radio');
showtagfooter('tbody');
showtablefooter();
showtagfooter('div');
showsubmit('groupsubmit');
$_G['showsetting_multi']++;
}
if ($_G['showsetting_multicount'] > 1) {
showhiddenfields(array('multi' => implode(',', $mgids)));
showmulti();
示例7: showsetting
showsetting('members_edit_email_emailstatus', 'emailstatusnew', $member['emailstatus'], 'radio');
showsetting('members_edit_posts', 'postsnew', $member['posts'], 'text');
showsetting('members_edit_digestposts', 'digestpostsnew', $member['digestposts'], 'text');
showsetting('members_edit_regip', 'regipnew', $member['regip'], 'text');
showsetting('members_edit_regdate', 'regdatenew', $member['regdate'], 'text');
showsetting('members_edit_lastvisit', 'lastvisitnew', $member['lastvisit'], 'text');
showsetting('members_edit_lastip', 'lastipnew', $member['lastip'], 'text');
showsetting('members_edit_addsize', 'addsizenew', $member['addsize'], 'text');
showsetting('members_edit_addfriend', 'addfriendnew', $member['addfriend'], 'text');
showsetting('members_edit_timeoffset', 'timeoffsetnew', $member['timeoffset'], 'text');
showsetting('members_edit_invisible', 'invisiblenew', $member['invisible'], 'radio');
showtitle('members_edit_option');
showsetting('members_edit_cstatus', 'cstatusnew', $member['customstatus'], 'text');
showsetting('members_edit_signature', 'signaturenew', $member['signature'], 'textarea');
if ($fields) {
showtitle('profilefields_fields');
include_once libfile('function/profile');
foreach ($fields as $fieldid => $fieldtitle) {
$html = profile_setting($fieldid, $member);
if ($html) {
showsetting($fieldtitle, '', '', $html);
}
}
}
showsubmit('editsubmit');
showtablefooter();
showformfooter();
} else {
loaducenter();
require_once libfile('function/discuzcode');
$questionid = $_G['gp_clearquestion'] ? 0 : '';
示例8: showsubmenu
showsubmenu('nav_plugins', array(array('plugins_list', 'plugins', 0), $isplugindeveloper ? array('plugins_add', 'plugins&operation=add', 0) : array(), array('cloudaddons_plugin_link', 'cloudaddons')), '<a href="' . ADMINSCRIPT . '?action=plugins&operation=upgradecheck" class="bold" style="float:right;padding-right:40px;">' . $lang['plugins_validator'] . '</a>');
showtableheader();
if ($nowarray) {
showtitle('plugins_validator_nowupgrade');
foreach ($nowarray as $row) {
showtablerow('class="hover"', array(), array($row));
}
}
if ($newarray) {
showtitle('plugins_validator_newversion');
foreach ($newarray as $row) {
showtablerow('class="hover"', array(), array($row));
}
}
if ($errarray) {
showtitle('plugins_validator_error');
foreach ($errarray as $row) {
showtablerow('class="hover"', array(), array($row));
}
}
showtablefooter();
}
} elseif ($operation == 'sample') {
$plugin = C::t('common_plugin')->fetch($pluginid);
if (!$plugin) {
cpmsg('plugin_not_found', '', 'error');
}
$code = moduleample($_GET['typeid'], $_GET['module'], $plugin);
if (!$code) {
cpmsg('NO_OPERATION');
}
示例9: showformheader
showformheader("styles&operation=edit&id={$id}");
showtableheader($lang['styles_edit'], 'nobottom');
showsetting('styles_edit_name', 'namenew', $style['name'], 'text');
showsetting('styles_edit_tpl', array('templateidnew', $tplselect), $style['templateid'], 'select');
showsetting('styles_edit_extstyle', array('extstylenew', $extstyle), $style['extstyle'], 'mcheckbox');
if ($extstyle) {
showsetting('styles_edit_defaultextstyle', array('defaultextstylenew', $defaultextstyle), $style['defaultextstyle'], 'select');
}
showsetting('styles_edit_smileytype', array("stylevar[{$stylestuff[stypeid][id]}]", $smileytypes), $stylestuff['stypeid']['subst'], 'select');
showsetting('styles_edit_imgdir', '', '', '<input type="text" class="txt" name="stylevar[' . $stylestuff['imgdir']['id'] . ']" id="imgdir" value="' . $stylestuff['imgdir']['subst'] . '" />');
showsetting('styles_edit_styleimgdir', '', '', '<input type="text" class="txt" name="stylevar[' . $stylestuff['styleimgdir']['id'] . ']" id="styleimgdir" value="' . $stylestuff['styleimgdir']['subst'] . '" />');
showsetting('styles_edit_logo', "stylevar[{$stylestuff[boardimg][id]}]", $stylestuff['boardimg']['subst'], 'text');
foreach ($predefinedvars as $predefinedvar => $v) {
if ($v !== array()) {
if (!empty($v[1])) {
showtitle($v[1]);
}
$type = $v[0] == 1 ? 'text' : 'color';
$extra = '';
$comment = ($type == 'text' ? $lang['styles_edit_' . $predefinedvar . '_comment'] : $lang['styles_edit_hexcolor']) . $lang['styles_edit_' . $predefinedvar . '_comment'];
if (substr($predefinedvar, -7, 7) == 'bgcolor') {
$stylestuff[$predefinedvar]['subst'] = explode(' ', $stylestuff[$predefinedvar]['subst']);
$bgimg = $stylestuff[$predefinedvar]['subst'][1];
$bgextra = implode(' ', array_slice($stylestuff[$predefinedvar]['subst'], 2));
$stylestuff[$predefinedvar]['subst'] = $stylestuff[$predefinedvar]['subst'][0];
$bgimgpre = $bgimg ? preg_match('/^http:\\/\\//i', $bgimg) ? $bgimg : ($stylestuff['styleimgdir']['subst'] ? $stylestuff['styleimgdir']['subst'] : ($stylestuff['imgdir']['subst'] ? $stylestuff['imgdir']['subst'] : 'static/image/common')) . '/' . $bgimg : 'static/image/common/none.gif';
$comment .= '<div id="bgpre_' . $stylestuff[$predefinedvar]['id'] . '" onclick="imgpre_switch(' . $stylestuff[$predefinedvar]['id'] . ')" style="background-image:url(' . $bgimgpre . ');cursor:pointer;float:right;width:350px;height:40px;overflow:hidden;border: 1px solid #ccc"></div>' . $lang['styles_edit_' . $predefinedvar . '_comment'] . $lang['styles_edit_bg'];
$extra = '<br /><input name="stylevarbgimg[' . $stylestuff[$predefinedvar]['id'] . ']" value="' . $bgimg . '" onchange="imgpre_update(' . $stylestuff[$predefinedvar]['id'] . ', this)" type="text" class="txt" style="margin:5px 0;" />' . '<br /><input name="stylevarbgextra[' . $stylestuff[$predefinedvar]['id'] . ']" value="' . $bgextra . '" type="text" class="txt" />';
$varcomment = ' {' . strtoupper($predefinedvar) . '},{' . strtoupper(substr($predefinedvar, 0, -7)) . 'BGCODE}:';
} else {
$varcomment = ' {' . strtoupper($predefinedvar) . '}:';
示例10: showformheader
';
echo '<div style="margin: 0 10px; width: 700px;">';
showformheader('cloud');
showhiddenfields(array('operation' => $operation));
if ($_G['gp_callback']) {
showhiddenfields(array('callback' => $_G['gp_callback']));
}
showtableheader();
showsetting('cloud_api_ip', 'cloud_api_ip', $_G['setting']['cloud_api_ip'], 'text');
showsetting('cloud_manyou_ip', 'my_ip', $_G['setting']['my_ip'], 'text');
showsubmit('ipsubmit');
showtablefooter();
showformfooter();
echo '</div>';
ajaxshowfooter();
} else {
shownav('navcloud', 'menu_cloud_siteinfo');
showsubmenu('menu_cloud_siteinfo');
showtips('cloud_siteinfo_tips');
echo '<script type="text/javascript">var disallowfloat = "";</script>';
showformheader('cloud');
showhiddenfields(array('operation' => $operation));
showtableheader();
showtitle('menu_cloud_siteinfo');
showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_site_name') . '</strong>', $_G['setting']['bbname']));
showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_site_url') . '</strong>', $_G['siteurl']));
showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_site_id') . '</strong>', $_G['setting']['my_siteid']));
showsubmit('syncsubmit', 'cloud_sync', '', '<input type="submit" class="btn" id="submit_resetsubmit" name="resetsubmit" value="' . $lang['cloud_resetkey'] . '" /> <input type="button" class="btn" onClick="showWindow(\'cloudApiIpWin\', \'' . ADMINSCRIPT . '?action=cloud&operation=siteinfo&anchor=cloud_ip\'); return false;" value="' . $lang['cloud_api_ip_btn'] . '" />');
showtablefooter();
showformfooter();
}
示例11: showsetting
showsetting('magics_edit_description', 'descriptionnew', $magic['description'], 'textarea');
if (is_array($magicsetting)) {
foreach ($magicsetting as $settingvar => $setting) {
if (!empty($setting['value']) && is_array($setting['value'])) {
foreach ($setting['value'] as $k => $v) {
$setting['value'][$k][1] = lang('magic/' . $magic['identifier'], $setting['value'][$k][1]);
}
}
$varname = in_array($setting['type'], array('mradio', 'mcheckbox', 'select', 'mselect')) ? $setting['type'] == 'mselect' ? array('perm[' . $settingvar . '][]', $setting['value']) : array('perm[' . $settingvar . ']', $setting['value']) : 'perm[' . $settingvar . ']';
$value = $magicperm[$settingvar] != '' ? $magicperm[$settingvar] : $setting['default'];
$comment = lang('magic/' . $magic['identifier'], $setting['title'] . '_comment');
$comment = $comment != $setting['title'] . '_comment' ? $comment : '';
showsetting(lang('magic/' . $magic['identifier'], $setting['title']) . ':', $varname, $value, $setting['type'], '', 0, $comment);
}
}
showtitle('magics_edit_perm');
showtablerow('', 'colspan="2" class="td27"', $lang['magics_edit_usergroupperm'] . ':<input class="checkbox" type="checkbox" name="chkall1" onclick="checkAll(\'prefix\', this.form, \'usergroupsperm\', \'chkall1\', true)" id="chkall1" /><label for="chkall1"> ' . cplang('select_all') . '</label>');
showtablerow('', 'colspan="2"', mcheckbox('usergroupsperm', $groups, explode("\t", $magicperm['usergroups'])));
if (!empty($magicclass->targetgroupperm)) {
showtablerow('', 'colspan="2" class="td27"', $lang['magics_edit_targetgroupperm'] . ':<input class="checkbox" type="checkbox" name="chkall2" onclick="checkAll(\'prefix\', this.form, \'targetgroupsperm\', \'chkall2\', true)" id="chkall2" /><label for="chkall2"> ' . cplang('select_all') . '</label>');
showtablerow('', 'colspan="2"', mcheckbox('targetgroupsperm', $groups, explode("\t", $magicperm['targetgroups'])));
}
showsubmit('magiceditsubmit');
showtablefooter();
showformfooter();
} else {
$namenew = dhtmlspecialchars(trim($_GET['namenew']));
$identifiernew = dhtmlspecialchars(trim(strtoupper($_GET['identifiernew'])));
$descriptionnew = dhtmlspecialchars($_GET['descriptionnew']);
$availablenew = !$identifiernew ? 0 : 1;
$magicperm['usergroups'] = is_array($_GET['usergroupsperm']) && !empty($_GET['usergroupsperm']) ? "\t" . implode("\t", $_GET['usergroupsperm']) . "\t" : '';
示例12: showtableheader
$tradetypeselect .= '<option value="' . $type['typeid'] . '"' . ($checked ? ' selected="selected"' : '') . '>' . $type['name'] . '</option>';
}
$tradetypeselect .= '</select>';
showtableheader();
showtitle('settings_ec_credittrade');
showsetting('settings_ec_ratio', 'settingsnew[ec_ratio]', $settings['ec_ratio'], 'text');
showsetting('settings_ec_mincredits', 'settingsnew[ec_mincredits]', $settings['ec_mincredits'], 'text');
showsetting('settings_ec_maxcredits', 'settingsnew[ec_maxcredits]', $settings['ec_maxcredits'], 'text');
showsetting('settings_ec_maxcreditspermonth', 'settingsnew[ec_maxcreditspermonth]', $settings['ec_maxcreditspermonth'], 'text');
showtitle('settings_ec_goodstrade');
showsetting('settings_ec_type', '', '', $tradetypeselect);
} elseif ($operation == 'msn') {
$settings['msn'] = unserialize($settings['msn']);
showtips('settings_msn_tips');
showtableheader();
showtitle('settings_msn_basic');
showsetting('settings_msn_on', 'settingsnew[msn][on]', $settings['msn']['on'], 'radio');
showsetting('settings_msn_domain', 'msndomain', $settings['msn']['domain'], 'text');
showsubmit('settingsubmit', 'submit', '', '<input type="button" class="btn" name="msncheck" value="' . $lang['settings_msn_domain_check'] . '" onclick="window.open(\'https://domains.live.com/members/signup.aspx?domain=\'+this.form.msndomain.value)" />');
showtablefooter();
exit;
} else {
cpmsg('undefined_action');
}
showsubmit('settingsubmit', 'submit', '', $extbutton . (!empty($from) ? '<input type="hidden" name="from" value="' . $from . '">' : ''));
showtablefooter();
showformfooter();
} else {
if ($operation == 'credits') {
$extcredits_exists = 0;
foreach ($settingsnew['extcredits'] as $val) {
示例13: array
}
if (!submitcheck('copysubmit')) {
$groupselect = array();
foreach (C::t('common_usergroup')->fetch_all_not(array(6, 7), true) as $group) {
$group['type'] = $group['type'] == 'special' && $group['radminid'] ? 'specialadmin' : $group['type'];
$groupselect[$group['type']] .= "<option value=\"{$group['groupid']}\">{$group['grouptitle']}</option>\n";
}
$groupselect = '<optgroup label="' . $lang['usergroups_member'] . '">' . $groupselect['member'] . '</optgroup>' . ($groupselect['special'] ? '<optgroup label="' . $lang['usergroups_special'] . '">' . $groupselect['special'] . '</optgroup>' : '');
$usergroupselect = '<select name="target" size="10">' . $groupselect . '</select>';
shownav('user', 'usergroups_merge');
showsubmenu('usergroups_merge');
showtips('usergroups_merge_tips');
showformheader('usergroups&operation=merge');
showhiddenfields(array('source' => $source));
showtableheader();
showtitle('usergroups_copy');
showsetting(cplang('usergroups_copy_source') . ':', '', '', $sourceusergroup['grouptitle']);
showsetting('usergroups_merge_target', '', '', $usergroupselect);
showsetting('usergroups_merge_delete_source', 'delete_source', 0, 'radio');
showsubmit('copysubmit');
showtablefooter();
showformfooter();
} else {
$target = intval($_GET['target']);
$targetusergroup = $_G['cache']['usergroups'][$target];
if (empty($targetusergroup) || $targetusergroup['type'] == 'system' || $targetusergroup['type'] == 'special' && $targetusergroup['radminid']) {
cpmsg('usergroups_copy_target_invalid', '', 'error');
}
C::t('common_member')->update_groupid_by_groupid($source, $target);
if (helper_dbtool::isexisttable('common_member_archive')) {
C::t('common_member_archive')->update_groupid_by_groupid($source, $target);
示例14: elseif
} elseif ($operation == 'edit') {
loadcache('diytemplatename');
$targettplname = $_G['gp_targettplname'];
$diydata = DB::fetch_first('SELECT * FROM ' . DB::table('common_diy_data') . " WHERE targettplname='{$targettplname}'");
if (empty($diydata)) {
cpmsg_error('diytemplate_targettplname_error', dreferer());
}
if (!submitcheck('editsubmit')) {
if (empty($diydata['name'])) {
$diydata['name'] = $_G['cache']['diytemplatename'][$diydata['targettplname']];
}
shownav('portal', 'diytemplate', $diydata['name']);
showsubmenu(cplang('diytemplate_edit') . ' - ' . $diydata['name'], array(array('list', 'diytemplate', 0), array('edit', 'diytemplate&operation=edit&targettplname=' . $_GET['targettplname'], 1)));
showformheader("diytemplate&operation=edit&targettplname={$targettplname}");
showtableheader();
showtitle('edit');
showsetting('diytemplate_name', 'name', $diydata['name'], 'text');
showsetting('diytemplate_targettplname', '', '', cplang('diytemplate_path') . './data/diy/' . $diydata['targettplname'] . '.htm');
showsetting('diytemplate_primaltplname', '', '', cplang('diytemplate_path') . $_G['style']['tpldir'] . '/' . $diydata['primaltplname'] . '.htm');
showsetting('diytemplate_username', '', '', $diydata['username']);
showsetting('diytemplate_dateline', '', '', $diydata['dateline'] ? dgmdate($diydata['dateline']) : '');
showsubmit('editsubmit');
showtablefooter();
showformfooter();
} else {
$editdiydata = array('name' => $_G['gp_name']);
DB::update('common_diy_data', $editdiydata, array('targettplname' => $targettplname));
include_once libfile('function/cache');
updatecache('diytemplatename');
cpmsg('diytemplate_edit_succeed', 'action=diytemplate', 'succeed');
}
示例15: showsetting
showsetting('seodescription', 'dzapp_haodai_seo[main][seodescription]', $dzapp_haodai_seo['main']['seodescription'], 'text', '', 0, $codes['main']);
showtitle('dzapp_haodai_search');
showsetting('seotitle', 'dzapp_haodai_seo[search][seotitle]', $dzapp_haodai_seo['search']['seotitle'], 'text', '', 0, $codes['search']);
showsetting('seokeywords', 'dzapp_haodai_seo[search][seokeywords]', $dzapp_haodai_seo['search']['seokeywords'], 'text', '', 0, $codes['search']);
showsetting('seodescription', 'dzapp_haodai_seo[search][seodescription]', $dzapp_haodai_seo['search']['seodescription'], 'text', '', 0, $codes['search']);
showtitle('dzapp_haodai_view');
showsetting('seotitle', 'dzapp_haodai_seo[view][seotitle]', $dzapp_haodai_seo['view']['seotitle'], 'text', '', 0, $codes['view']);
showsetting('seokeywords', 'dzapp_haodai_seo[view][seokeywords]', $dzapp_haodai_seo['view']['seokeywords'], 'text', '', 0, $codes['view']);
showsetting('seodescription', 'dzapp_haodai_seo[view][seodescription]', $dzapp_haodai_seo['view']['seodescription'], 'text', '', 0, $codes['view']);
showtitle('dzapp_haodai_news');
showsetting('seotitle', 'dzapp_haodai_seo[news][seotitle]', $dzapp_haodai_seo['news']['seotitle'], 'text', '', 0, $codes['news']);
showsetting('seokeywords', 'dzapp_haodai_seo[news][seokeywords]', $dzapp_haodai_seo['news']['seokeywords'], 'text', '', 0, $codes['news']);
showsetting('seodescription', 'dzapp_haodai_seo[news][seodescription]', $dzapp_haodai_seo['news']['seodescription'], 'text', '', 0, $codes['news']);
showtitle('dzapp_haodai_apply');
showsetting('seotitle', 'dzapp_haodai_seo[apply][seotitle]', $dzapp_haodai_seo['apply']['seotitle'], 'text', '', 0, $codes['apply']);
showsetting('seokeywords', 'dzapp_haodai_seo[apply][seokeywords]', $dzapp_haodai_seo['apply']['seokeywords'], 'text', '', 0, $codes['apply']);
showsetting('seodescription', 'dzapp_haodai_seo[apply][seodescription]', $dzapp_haodai_seo['apply']['seodescription'], 'text', '', 0, $codes['apply']);
showtitle('dzapp_haodai_calc');
showsetting('seotitle', 'dzapp_haodai_seo[calc][seotitle]', $dzapp_haodai_seo['calc']['seotitle'], 'text', '', 0, $codes['calc']);
showsetting('seokeywords', 'dzapp_haodai_seo[calc][seokeywords]', $dzapp_haodai_seo['calc']['seokeywords'], 'text', '', 0, $codes['calc']);
showsetting('seodescription', 'dzapp_haodai_seo[calc][seodescription]', $dzapp_haodai_seo['calc']['seodescription'], 'text', '', 0, $codes['calc']);
showsubmit('seosubmit');
showtablefooter();
showformfooter();
} else {
$dzapp_haodai_seo = serialize($_GET['dzapp_haodai_seo']);
DB::query("REPLACE INTO " . DB::table('common_setting') . " (skey, svalue) VALUES ('dzapp_haodai_seo', '{$dzapp_haodai_seo}')");
updatecache('setting');
cpmsg('seo_update_succeed', 'action=plugins&operation=config&identifier=dzapp_haodai&pmod=admincp_seo', 'succeed');
}
}