本文整理汇总了PHP中check_submit_func函数的典型用法代码示例。如果您正苦于以下问题:PHP check_submit_func函数的具体用法?PHP check_submit_func怎么用?PHP check_submit_func使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了check_submit_func函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tabheader
${'u_' . $var} = '&' . $var . '=' . $u_url['setting'][$var];
}
}
}
tabheader(lang('cata_choose'), 'ajax_arc', '', '', '', 1);
tr_cns(lang('be_catalog'), 'caid', $caid, $sid, 0, 0, lang('p_choose'));
$js_frm = "[{$ca_vmode},1,'caid','" . str_replace("'", "\\'", lang('be_catalog')) . "'],";
foreach ($u_coids as $k) {
$v =& $cotypes[$k];
$js_frm .= "\n\t\t[" . $v['vmode'] . ",0,'ccid{$k}','" . str_replace("'", "\\'", $v['cname']) . "'],";
tr_cns($v['cname'], "ccid{$k}", ${"ccid{$k}"}, $sid, $k, 0, lang('p_choose'), 0, $v['asmode']);
}
trbasic(lang('prompt_msg'), '', '<div id="information"></div>', '');
trbasic(lang('allow_type'), '', '<div id="setlink"></div>', '');
tabfooter();
check_submit_func('return false;');
echo <<<EOT
<!--?> -->
</form>
<script type="text/javascript">
var form = document.forms['ajax_arc'],
\tstruct = [//类型(单选、下拉、弹出),必选,名称,标题
\t\t{$js_frm}
\t],result = {};
function \$id(d){return typeof d == 'string' ? document.getElementById(d) : d}
function listen(dom,event,action){
\tif(dom.attachEvent){
\t\tvar func=action;action=function(){func.apply(dom,arguments)};
\t\tdom.attachEvent('on'+event,action);
\t}else if(dom.addEventListener){
\t\tdom.addEventListener(event,action,false);
示例2: 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);
}
}
示例3: noedit
if (!in_array('fsalecp', $citems)) {
$noedit = noedit('fsalecp');
trbasic(lang('adjunctsaleprice') . $noedit, 'archivenew[fsalecp]', makeoption(array('' => lang('freesale')) + $vcps['fsale'], $aedit->archive['fsalecp']), 'select');
$_no_button = false;
}
}
if (empty($u_lists) || in_array('cpupdate', $u_lists)) {
if (!in_array('copy', $citems)) {
//副本不需要同步
$cpupdatearr = array(0 => lang('noupdate'), 1 => lang('cpupdate1'), 2 => lang('cpupdate2'));
trbasic(lang('cpupdate'), '', makeradio('archivenew[cpupdate]', $cpupdatearr, 0), '');
$_no_button = false;
}
}
tabfooter($_no_button ? '' : 'barchivedetail');
!$_no_button && check_submit_func($submitstr);
m_guide(@$u_guide);
} else {
include M_ROOT . $u_tplname;
}
} else {
foreach ($cotypes as $k => $v) {
if (isset($archivenew["ccid{$k}"])) {
if (!$v['self_reg'] && !in_array($k, $ccoids) && !noedit("ccid{$k}")) {
$archivenew["ccid{$k}"] = empty($archivenew["ccid{$k}"]) ? '' : $archivenew["ccid{$k}"];
$aedit->arc_ccid($archivenew["ccid{$k}"], $k);
if ($v['emode']) {
$archivenew["ccid{$k}date"] = !isdate($archivenew["ccid{$k}date"]) ? 0 : strtotime($archivenew["ccid{$k}date"]);
if ($aedit->archive["ccid{$k}"] && !$archivenew["ccid{$k}date"] && $v['emode'] == 2) {
mcmessage('setcoclass', axaction(2, M_REFERER), $v['cname']);
}