本文整理汇总了PHP中tabfooter函数的典型用法代码示例。如果您正苦于以下问题:PHP tabfooter函数的具体用法?PHP tabfooter怎么用?PHP tabfooter使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tabfooter函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: m_sites
function m_sites($urlpre = '', $num = 5)
{
global $sid, $infloat, $handlekey;
$sidsarr = array(0 => lang('msite')) + sidsarr(1);
$i = 0;
tabheader(lang('selectsite'), '', '', $num);
foreach ($sidsarr as $k => $v) {
if (!($i % $num)) {
echo "<tr>";
}
echo "<td class=\"item2\" width=\"" . intval(100 / $num) . "%\">>>" . ($sid == $k ? "<b>{$v}</b>" : "<a href=\"{$urlpre}" . ($k ? "&sid={$k}" : '') . "\"" . ($infloat ? " onclick=\"floatwin('open_{$handlekey}',this)\"" : '') . ">{$v}</a>") . "</td>\n";
$i++;
if (!($i % $num)) {
echo "</tr>\n";
}
}
if ($i % $num) {
while ($i % $num) {
echo "<td class=\"item2\" width=\"" . intval(100 / $num) . "%\"></td>\n";
$i++;
}
echo "</tr>\n";
}
tabfooter();
}
示例2: view_cucatalogurls
function view_cucatalogurls()
{
global $action;
tabheader(lang('co_class_manager'), '', '', 4);
echo "<tr class=\"txt\">\n";
echo "<td class=\"txtL w25B\">" . (in_str('rcatalog', $action) ? "<b>" . lang('reply_class_manager') . "</b>" : "<a href=\"?entry=cucatalogs&action=rcatalogsedit\">" . lang('reply_class_manager') . "</a>") . "</td>\n";
echo "<td class=\"txtL w25B\"></td>\n";
echo "<td class=\"txtL w25B\"></td>\n";
echo "<td class=\"txtL w25B\"></td>\n";
echo "</tr>\n";
tabfooter();
}
示例3: amessage
amessage('enameillegal', '?entry=alangs&action=alangsedit');
}
$alangnew['ename'] = strtolower(trim(strip_tags($alangnew['ename'])));
if (in_array($alangnew['ename'], array_keys($alangs))) {
amessage('enamerepeat', '?entry=alangs&action=alangsedit');
}
$alangnew['content'] = trim($alangnew['content']);
$db->query("INSERT INTO {$tblprefix}alangs SET \n\t\t\t\t\tename='{$alangnew['ename']}', \n\t\t\t\t\tcontent='{$alangnew['content']}',\n\t\t\t\t\tcreatedate='{$timestamp}'\n\t\t\t\t\t");
adminlog(lang('add_alang'));
updatecache('alangs');
amessage('alangaddfin', "?entry=alangs&action=alangsedit");
}
} elseif ($action == 'alangdetail' && $ename) {
if (!($alang = $db->fetch_one("SELECT * FROM {$tblprefix}alangs WHERE ename='{$ename}'"))) {
amessage('chooseclang');
}
if (!submitcheck('balangdetail')) {
tabheader(lang('edit_alang'), 'alangdetail', "?entry=alangs&action=alangdetail&ename={$ename}");
trbasic(lang('alang_ename'), '', $alang['ename'], '');
trbasic(lang('alang_content'), 'alangnew[content]', $alang['content'], 'textarea');
tabfooter('balangdetail');
a_guide('alangdetail');
} else {
$alangnew['content'] = trim($alangnew['content']);
$sql = $alangnew['content'] != $alang['content'] ? ",createdate='{$timestamp}'" : '';
$db->query("UPDATE {$tblprefix}alangs SET \n\t\t\t\t\tcontent='{$alangnew['content']}'\n\t\t\t\t\t{$sql}\n\t\t\t\t\tWHERE ename='{$ename}'");
adminlog(lang('edit_alang_detail'));
updatecache('alangs');
amessage('alangmodfin', "?entry=alangs&action=alangsedit");
}
}
示例4: check_submit_func
check_submit_func($submitstr);
a_guide('memberdetail');
} else {
foreach ($grouptypes as $gtid => $grouptype) {
if ($grouptype['mode'] < 2 && !in_array($mchid, explode(',', $grouptype['mchids'])) && ($gtid != 2 || $backamember)) {
$minfosnew['grouptype' . $gtid . 'date'] = !$minfosnew['grouptype' . $gtid] || !isdate($minfosnew['grouptype' . $gtid . 'date']) ? '0' : strtotime($minfosnew['grouptype' . $gtid . 'date']);
$actuser->handgrouptype($gtid, $minfosnew['grouptype' . $gtid], $minfosnew['grouptype' . $gtid . 'date']);
}
}
$actuser->updatedb();
adminlog(lang('detail_edit_member'));
amessage('membermodifyfinish', M_REFERER);
}
} elseif ($action == 'allowance' && $mid) {
if (!submitcheck('bmemberdetail')) {
$a_field = new cls_field();
$submitstr = '';
tabheader(lang('issue_allowance_manager') . ' : [' . $mchannel['cname'] . ']' . $actuser->info['mname'], 'memberdetail', "?entry=member&action=allowance&mid={$mid}", 2, 1, 1);
trbasic(lang('aw_arc_issue_limit'), 'minfosnew[arcallowance]', $actuser->info['arcallowance']);
trbasic(lang('aw_commu_issue_limit'), 'minfosnew[cuallowance]', $actuser->info['cuallowance']);
tabfooter('bmemberdetail');
check_submit_func($submitstr);
a_guide('memberdetail');
} else {
$actuser->updatefield('arcallowance', empty($minfosnew['arcallowance']) ? 0 : max(0, intval($minfosnew['arcallowance'])), 'main');
$actuser->updatefield('cuallowance', empty($minfosnew['cuallowance']) ? 0 : max(0, intval($minfosnew['cuallowance'])), 'main');
$actuser->updatedb();
adminlog(lang('detail_edit_member'));
amessage('membermodifyfinish', M_REFERER);
}
}
示例5: exit
<?php
!defined('M_COM') && exit('No Permission');
if (!submitcheck('bmemberpwd')) {
tabheader(lang('memberpwdsetting'), 'memberpwd', '?action=memberpwd', 2, 0, 1);
trbasic(lang('membercname'), '', $curuser->info['mname'], '');
trbasic(lang('oldpwd'), 'opassword', '', 'password');
trbasic(lang('newpwd'), 'npassword', '', 'password');
trbasic(lang('repwd'), 'npassword2', '', 'password');
$submitstr = '';
$submitstr .= makesubmitstr('opassword', 1, 0, 0, 15);
$submitstr .= makesubmitstr('npassword', 1, 0, 0, 15);
$submitstr .= makesubmitstr('npassword2', 1, 0, 0, 15);
$submitstr .= tr_regcode('login');
tabfooter('bmemberpwd');
check_submit_func($submitstr);
} else {
if (!regcode_pass('login', empty($regcode) ? '' : trim($regcode))) {
mcmessage('regcodeerror', '?action=memberpwd');
}
$opassword = trim($opassword);
$npassword = trim($npassword);
$npassword2 = trim($npassword2);
if (md5(md5($opassword)) != $curuser->info['password']) {
mcmessage('oldpasserror', '?action=memberpwd');
}
if ($npassword != $npassword2) {
mcmessage('notsamepwd', '?action=memberpwd');
}
if (!$npassword || strlen($npassword) > 15 || $npassword != addslashes($npassword)) {
mcmessage('memberpwdillegal', '?action=memberpwd');
示例6: explode
${$var . 'arr'} = explode(',', $cnode[$var]);
}
if (!submitcheck('bcnodedetail')) {
tabheader(lang('cnode_detail_set'), 'cnodedetail', "?entry={$entry}&action={$action}{$param_suffix}&cnid={$cnid}&forward=" . urlencode($forward));
trbasic(lang('cnode_name'), '', cnode_cname($cnode['ename']), '');
trbasic(lang('cnode_alias'), 'cnodenew[alias]', $cnode['alias']);
trbasic(lang('cnode_url'), 'cnodenew[appurl]', $cnode['appurl'], 'btext', lang('agappurl'));
for ($i = 0; $i <= $cnode['addnum']; $i++) {
$pvar = $i ? lang('addp') . $i : lang('index');
trbasic($pvar . lang('template'), 'tplsnew[]', makeoption(array('' => lang('noset')) + mtplsarr('cindex'), empty($tplsarr[$i]) ? '' : $tplsarr[$i]), 'select');
trbasic($pvar . lang('wtemplate'), 'wtplsnew[]', makeoption(array('' => lang('noset')) + mtplsarr('wap'), empty($wtplsarr[$i]) ? '' : $wtplsarr[$i]), 'select');
trbasic($pvar . lang('staticfomart'), 'urlsnew[]', empty($urlsarr[$i]) ? '' : $urlsarr[$i], 'btext', !$i ? lang('agcnstaticfomart') : '');
trbasic($pvar . lang('ifstatic'), "staticsnew[{$i}]", makeoption(array(0 => lang('staticsys'), 1 => lang('keepdnc'), 2 => lang('create_static')), empty($staticsarr[$i]) ? 0 : $staticsarr[$i]), 'select');
trbasic($pvar . lang('staticperiod'), 'periodsnew[]', empty($periodsarr[$i]) ? '' : $periodsarr[$i], 'text');
}
tabfooter('bcnodedetail');
a_guide('cnodedetail');
} else {
$cnodenew['alias'] = trim(strip_tags($cnodenew['alias']));
$cnodenew['appurl'] = trim($cnodenew['appurl']);
$sqlstr = "alias='{$cnodenew['alias']}',appurl='{$cnodenew['appurl']}'";
foreach (array('tpls', 'wtpls', 'urls', 'statics', 'periods') as $var) {
$cnodenew[$var] = empty(${$var . 'new'}) ? '' : implode(',', ${$var . 'new'});
$sqlstr .= ",{$var}='{$cnodenew[$var]}'";
}
$db->query("UPDATE {$tblprefix}cnodes SET {$sqlstr} WHERE cnid={$cnid}");
adminlog(lang('detail_catas_cnode'));
updatecache('cnodes', '', $sid);
amessage('cnodesetfinish', axaction(6, $forward));
}
}
示例7: lang
$sn++;
echo "<tr class=\"txt\">" . "<td class=\"txtC w40\">{$sn}</td>\n" . "<td class=\"txtL\">" . $splang['cname'] . "</td>\n" . "<td class=\"txtC w120\">" . $types[$splang['type']] . "</td>\n" . "<td class=\"txtC w40\"><a href=\"?entry=splangs&action=splangdetail&slid={$slid}\">" . lang('edit') . "</a></td></tr>\n";
}
}
tabfooter();
a_guide('splangsedit');
}
} elseif ($action == 'splangdetail' && $slid) {
$forward = empty($forward) ? M_REFERER : $forward;
$splang = fetch_one($slid);
if (!submitcheck('bsplangdetail')) {
tabheader(lang('splangset'), 'splangsdetail', '?entry=splangs&action=splangdetail&slid=' . $slid . '&forward=' . urlencode($forward));
trbasic(lang('splangcname'), '', $splang['cname'], '');
trbasic(lang('splangtype'), '', $types[$splang['type']], '');
trbasic(lang('splangcontent'), 'splangnew[content]', $splang['content'], 'btextarea');
tabfooter('bsplangdetail');
a_guide('splangdetail');
} else {
if (empty($splangnew['content'])) {
amessage('datamissing', M_REFERER);
}
$db->query("UPDATE {$tblprefix}splangs SET content='{$splangnew['content']}' WHERE slid='{$slid}'");
updatecache('splangs');
adminlog(lang('detaimodifysplang'));
amessage('splmodfin', $forward);
}
}
function fetch_arr($type)
{
global $db, $tblprefix;
$items = array();
示例8: fetch_one
$mcommu = fetch_one($cuid);
empty($mcommu) && amessage('chooseitem');
if (!submitcheck('bmcommudetail')) {
tabheader(lang('memcomitset'), 'mcommudetail', "?entry=mcommus&action=mcommudetail&cuid={$cuid}", 2, 0, 0, 1);
trbasic(lang('item_type'), '', $cclassarr[$mcommu['cclass']], '');
trbasic(lang('item_name'), 'mcommunew[cname]', $mcommu['cname']);
if (!empty($mcommu['usetting'])) {
$str = '';
foreach ($mcommu['usetting'] as $k => $v) {
$str .= $k . '=' . $v . "\n";
}
$mcommu['usetting'] = $str;
unset($str);
}
include M_ROOT . './include/mcommus/' . $mcommu['cclass'] . '.php';
tabfooter('bmcommudetail', lang('modify'));
a_guide('mcommudetail');
} else {
$submitmode = true;
@(include M_ROOT . './include/mcommus/' . $mcommu['cclass'] . '.php');
$mcommunew['cname'] = empty($mcommunew['cname']) ? $mcommu['cname'] : $mcommunew['cname'];
$mcommunew['cutpl'] = empty($mcommunew['cutpl']) ? '' : $mcommunew['cutpl'];
$mcommunew['addtpl'] = empty($mcommunew['addtpl']) ? '' : $mcommunew['addtpl'];
$mcommunew['func'] = empty($mcommunew['func']) ? '' : $mcommunew['func'];
$mcommunew['setting'] = !empty($mcommunew['setting']) ? addslashes(serialize($mcommunew['setting'])) : '';
$mcommunew['ucadd'] = empty($mcommunew['ucadd']) ? '' : trim($mcommunew['ucadd']);
$mcommunew['ucvote'] = empty($mcommunew['ucvote']) ? '' : trim($mcommunew['ucvote']);
$mcommunew['uadetail'] = empty($mcommunew['uadetail']) ? '' : trim($mcommunew['uadetail']);
$mcommunew['umdetail'] = empty($mcommunew['umdetail']) ? '' : trim($mcommunew['umdetail']);
if (!empty($mcommunew['usetting'])) {
$mcommunew['usetting'] = str_replace("\r", "", $mcommunew['usetting']);
示例9: cls_field
}
}
$a_field = new cls_field();
foreach ($fields as $k => $v) {
if (!$v['isfunc']) {
$a_field->init();
$a_field->field = $v;
$a_field->oldvalue = $oldrow[$k];
if ($curuser->pmbypmids('field', $v['pmid'])) {
$a_field->trfield('commentnew', '', 'c');
$submitstr .= $a_field->submitstr;
}
}
}
unset($a_field);
tabfooter('bcommentdetail');
check_submit_func($submitstr);
} else {
$c_upload = new cls_upload();
$fields = fields_order($fields);
$a_field = new cls_field();
foreach ($ucotypes as $k => $v) {
if (in_array('uccid' . $k, $citems) && $v['umode'] != 1) {
$uedit->updatefield('uccid' . $k, $commentnew['uccid' . $k]);
if ($v['emode']) {
$commentnew["uccid{$k}date"] = !isdate($commentnew["uccid{$k}date"]) ? 0 : strtotime($commentnew["uccid{$k}date"]);
if ($uedit->info["uccid{$k}"] && !$commentnew["uccid{$k}date"] && $v['emode'] == 2) {
amessage('setcoclass', axaction(2, M_REFERER), $v['cname']);
}
!$uedit->info["uccid{$k}"] && ($commentnew["uccid{$k}date"] = 0);
$uedit->updatefield("uccid{$k}date", $commentnew["uccid{$k}date"]);
示例10: unset
$a_field->field = $field;
$a_field->isadd = 1;
$a_field->trfield('farchiveadd', '', 'f', $chid);
$submitstr .= $a_field->submitstr;
}
}
unset($a_field);
if (empty($fcatalog['nodurat'])) {
foreach (array('startdate', 'enddate') as $var) {
trbasic(lang($var), "farchiveadd[{$var}]", '', 'calendar');
$submitstr .= makesubmitstr("farchiveadd[{$var}]", 0, 0, 0, 0, 'date');
}
}
$submitstr .= tr_regcode('farchive');
//显示验证码
tabfooter('bfarchiveadd');
check_submit_func($submitstr);
} else {
if (!regcode_pass('farchive', empty($regcode) ? '' : trim($regcode))) {
mcmessage('safecodeerr', axaction(2, M_REFERER));
}
$c_upload = new cls_upload();
$fields = fields_order($fields);
$a_field = new cls_field();
$sqlcommon = "fcaid='{$fcaid}',chid='{$chid}',mid='" . $curuser->info['mid'] . "',mname='" . $curuser->info['mname'] . "',createdate='{$timestamp}',updatedate='{$timestamp}'";
$sqlcustom = "";
foreach ($fields as $k => $v) {
if (!$v['isadmin'] && !$v['isfunc']) {
$a_field->init();
$a_field->field = $v;
$a_field->deal('farchiveadd');
示例11: checktext
i = 1;
{$a_field->submitstr}
if(i && !empty(mob.value) && ({$mobile} || mob.defaultValue != mob.value)){
\ti = _i;
\trmsg = checktext('msgcode',1,'','/^\\\\d{6}\$/');
\tif(dom=\$id('alert_msgcode'))dom.innerHTML = rmsg ? rmsg : '';
\tif(rmsg)i = false;
}
//<?
EOT;
} else {
$submitstr .= $a_field->submitstr;
}
}
tabfooter('barchivedetail');
check_submit_func($submitstr);
break;
} else {
$email = '';
foreach ($fields as $k) {
empty($memcertnew[$k]) && mcmessage('memcert_empty_field', M_REFERER);
}
$certdata = array('values' => $memcertnew, 'flags' => $flags);
foreach ($fields as $k) {
if (empty($flags[$k]) || stripslashes($memcertnew[$k]) != $curuser->info[$k]) {
if ($k == $memcert['mobile'] && ($msgcode_mode == 1 || $msgcode_mode == 2)) {
$curuser->detail_data();
@(list($inittime, $initcode) = maddslashes(explode("\t", authcode($m_cookie['08cms_msgcode'], 'DECODE')), 1));
if ($msgcode_mode == 1) {
$certdata['codes'][$k] = $initcode;
示例12: elseif
} elseif ($action == 'menudetail' && $mnid) {
if (!($menu = $db->fetch_one("SELECT * FROM {$tblprefix}menus WHERE mnid='{$mnid}'"))) {
amessage('choosemeit');
}
if (!submitcheck('bmenudetail')) {
tabheader(lang('edit_' . ($issub ? 'subsite' : 'msite') . '_menu_item'), 'menudetail', "?entry=menus&action=menudetail&mnid={$mnid}{$sub_suffix}");
$mtidsarr = array();
$query = $db->query("SELECT * FROM {$tblprefix}mtypes WHERE fixed=0 AND issub={$issub} ORDER BY vieworder,mtid");
while ($row = $db->fetch_array($query)) {
$mtidsarr[$row['mtid']] = $row['title'];
}
trbasic(lang('belongcocl'), 'menunew[mtid]', makeoption($mtidsarr, $menu['mtid']), 'select');
trbasic(lang('menuitemcname'), 'menunew[title]', $menu['title'], 'text');
trbasic(lang('menuitemurl'), 'menunew[url]', $menu['url'], 'btext');
trbasic(lang('meniteord'), 'menunew[vieworder]', $menu['vieworder'], 'text');
tabfooter('bmenudetail');
a_guide('menudetail');
} else {
$menunew['title'] = trim(strip_tags($menunew['title']));
$menunew['url'] = trim(strip_tags($menunew['url']));
$menunew['vieworder'] = max(0, intval($menunew['vieworder']));
$menunew['mtid'] = empty($menunew['mtid']) ? 0 : max(0, intval($menunew['mtid']));
(!$menunew['title'] || !$menunew['url']) && amessage('pleinpmetitandurl');
!$menunew['mtid'] && amessage('pombecoc');
$db->query("UPDATE {$tblprefix}menus SET \n\t\t\t\t\ttitle='{$menunew['title']}', \n\t\t\t\t\turl='{$menunew['url']}', \n\t\t\t\t\tmtid='{$menunew['mtid']}', \n\t\t\t\t\tvieworder='{$menunew['vieworder']}'\n\t\t\t\t\tWHERE mnid='{$mnid}'");
adminlog(lang('edimenitdet'));
updatecache('menus', $issub);
amessage('menitemodfin', axaction(6, "?entry=menus&action=menusedit{$sub_suffix}"));
}
} elseif ($action == 'mtypedel' && $mtid) {
if ($db->result_one("SELECT COUNT(*) FROM {$tblprefix}menus WHERE mtid='{$mtid}'")) {
示例13: elseif
}
} elseif ($action == 'gmodeldetail' && $gmid) {
$gmodel = read_cache('gmodel', $gmid, '', $sid);
empty($gmodel) && amessage('choosegatmod');
empty($channels[$gmodel['chid']]) && amessage('modrelarcmodnoe');
$gfields = empty($gmodel['gfields']) ? array() : $gmodel['gfields'];
$fields = read_cache('fields', $gmodel['chid']);
if (!submitcheck('bfieldsedit')) {
$datatypearr = array('text' => lang('text'), 'multitext' => lang('multitext'), 'htmltext' => lang('htmltext'), 'image' => lang('image_f'), 'images' => lang('images'), 'flash' => lang('flash'), 'flashs' => lang('flashs'), 'media' => lang('media'), 'medias' => lang('medias'), 'file' => lang('file_f'), 'files' => lang('files_f'), 'select' => lang('select'), 'mselect' => lang('mselect'), 'cacc' => lang('cacc'), 'date' => lang('date_f'), 'int' => lang('int'), 'float' => lang('float'), 'map' => lang('map'), 'vote' => lang('vote'));
tabheader($gmodel['cname'] . '-' . lang('gather_field_set'), 'gmodeldetail', "?entry=gmodels&action=gmodeldetail&gmid={$gmid}{$param_suffix}", '5');
trcategory(array(lang('gather'), lang('onlylink'), array(lang('field_name'), 'txtL'), lang('field_ename'), lang('field_type')));
foreach ($fields as $k => $field) {
$islinkstr = $field['datatype'] != 'text' ? '-' : "<input class=\"checkbox\" type=\"checkbox\" name=\"fieldsnew[{$k}][islink]\" value=\"1\"" . (!empty($gfields[$k]) ? ' checked' : '') . ">";
echo "<tr class=\"txt\">\n" . "<td class=\"txtC w40\"><input class=\"checkbox\" type=\"checkbox\" name=\"fieldsnew[{$k}][available]\" value=\"1\"" . (isset($gfields[$k]) ? ' checked' : '') . "></td>\n" . "<td class=\"txtC w50\">{$islinkstr}</td>\n" . "<td class=\"txtL\">{$field['cname']}</td>\n" . "<td class=\"txtC\">{$k}</td>\n" . "<td class=\"txtC w80\">" . $datatypearr[$field['datatype']] . "</td>\n" . "</tr>";
}
tabfooter('bfieldsedit');
a_guide('gmodeldetail');
} else {
foreach ($fields as $k => $v) {
if (!empty($fieldsnew[$k]['available'])) {
$islink = empty($fieldsnew[$k]['islink']) ? 0 : 1;
in_array($v['datatype'], array('image', 'flash', 'file', 'media')) && ($islink = 1);
$newgfields[$k] = $islink;
}
}
$gfieldsnew = empty($newgfields) ? '' : addslashes(serialize($newgfields));
$db->query("UPDATE {$tblprefix}gmodels SET gfields='{$gfieldsnew}' WHERE gmid='{$gmid}'");
updatecache('gmodels', '', $sid);
adminlog(lang('det_modify_gather_model'));
amessage('gathmodedifin', axaction(6, "?entry=gmodels&action=gmodeledit{$param_suffix}"));
}
示例14: preg_match
$playernew['exts'] = preg_match("/[^a-z,A-Z0-9]+/", $playernew['exts']) ? $players[$plid]['exts'] : strtolower($playernew['exts']);
$playernew['available'] = empty($playernew['available']) ? 0 : $playernew['available'];
$db->query("UPDATE {$tblprefix}players SET \n\t\t\t\t\t\tcname='{$playernew['cname']}',\n\t\t\t\t\t\texts='{$playernew['exts']}',\n\t\t\t\t\t\tavailable='{$playernew['available']}',\n\t\t\t\t\t\tvieworder='{$playernew['vieworder']}' \n\t\t\t\t\t\tWHERE plid='{$plid}'");
}
updatecache('players');
adminlog(lang('edimed'), lang('edimedplalis'));
amessage('playedifin', '?entry=players&action=playersedit');
}
} elseif ($action == 'playerdetail' && !empty($plid)) {
empty($players[$plid]) && amessage('choosepla', '?entry=players&action=playersedit');
$player = read_cache('player', $plid);
if (!submitcheck('bplayerdetail')) {
tabheader(lang('playerset'), 'playerdetail', '?entry=players&action=playerdetail&plid=' . $plid);
trbasic(lang('playercname'), 'playernew[cname]', $player['cname'], 'text');
trbasic(lang('playertype'), '', $ptypearr[$player['ptype']], '');
trbasic(lang('defplayfileformat'), 'playernew[exts]', $player['exts'], 'text');
echo "<tr class=\"txt\"><td class=\"txtL\">" . lang('playertemplate') . "</td><td class=\"txtL\"><textarea rows=\"25\" name=\"playernew[template]\" id=\"playernew[template]\" cols=\"100\">" . mhtmlspecialchars(str_replace("\t", " ", $player['template'])) . "</textarea></td></tr>";
tabfooter('bplayerdetail');
a_guide('playerdetail');
} else {
if (!$playernew['template']) {
amessage('inpplatem', '?entry=players&action=playerdetail&plid=' . $plid);
}
$playernew['cname'] = empty($playernew['cname']) ? $players[$plid]['cname'] : $playernew['cname'];
$playernew['exts'] = preg_match("/[^a-z,A-Z0-9]+/", $playernew['exts']) ? $players[$plid]['exts'] : strtolower($playernew['exts']);
$db->query("UPDATE {$tblprefix}players SET \n\t\t\t\t\tcname='{$playernew['cname']}',\n\t\t\t\t\texts='{$playernew['exts']}',\n\t\t\t\t\ttemplate='{$playernew['template']}' \n\t\t\t\t\tWHERE plid='{$plid}'");
updatecache('players');
adminlog(lang('detmodmedpla'), lang('detmodmedpla'));
amessage('playmodfin', '?entry=players&action=playersedit');
}
}
示例15: updatecache
}
}
updatecache('subsites');
adminlog(lang('subsitemanager'), lang('sublisadmope'));
amessage('subopefin', "?entry=subsites&action=subsitesedit");
}
} elseif ($action == 'tosubsite') {
if (!submitcheck('btosubsite')) {
url_nav(lang('subsitemanager'), $urlsarr, 'tosub');
$submitstr = '';
tabheader(lang('newsubset'), 'tosubsite', "?entry=subsites&action=tosubsite", 2, 1, 1);
trbasic(lang('subsitecname'), 'subsitenew[sitename]', '', 'text');
trbasic(lang('subsstadir'), 'subsitenew[dirname]', '', 'text');
$submitstr .= makesubmitstr('subsitenew[sitename]', 1, 0, 0, 80);
$submitstr .= makesubmitstr('subsitenew[dirname]', 1, 'tagtype', 0, 15);
tabfooter('btosubsite');
check_submit_func($submitstr);
a_guide('tosubsite');
} else {
$subsitenew['sitename'] = trim(strip_tags($subsitenew['sitename']));
$subsitenew['dirname'] = trim(strip_tags($subsitenew['dirname']));
if (!$subsitenew['sitename'] || !$subsitenew['dirname']) {
amessage('subdatamiss', M_REFERER);
}
if (preg_match("/[^a-zA-Z_0-9]+/", $subsitenew['dirname'])) {
amessage('substadirill', M_REFERER);
}
$subsitenew['dirname'] = strtolower($subsitenew['dirname']);
if (!mmkdir(M_ROOT . $subsitenew['dirname'], 0)) {
anmessage('nowcresubstadir', M_REFERER);
}