当前位置: 首页>>代码示例>>PHP>>正文


PHP makesubmitstr函数代码示例

本文整理汇总了PHP中makesubmitstr函数的典型用法代码示例。如果您正苦于以下问题:PHP makesubmitstr函数的具体用法?PHP makesubmitstr怎么用?PHP makesubmitstr使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了makesubmitstr函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: message

 !$curuser->pmbypmids('cuadd', $commu['setting']['apmid']) && message('younoitempermis');
 ($arc->archive['closed'] || $arc->archive['finishdate'] < $timestamp) && message('questionclosed');
 switch_cache($arc->archive['sid']);
 $sid = $arc->archive['sid'];
 if_siteclosed($sid);
 cache_merge($commu, 'commu', $sid);
 if (!($tplname = @$commu['addtpl'])) {
     load_cache('mlangs');
     include_once M_ROOT . "./include/admin.fun.php";
     include_once M_ROOT . "./include/adminm.fun.php";
     include_once M_ROOT . "./include/cheader.inc.php";
     _header();
     tabheader(lang('add') . $commu['cname'] . '&nbsp; &nbsp; ' . "<a href=\"" . view_arcurl($arc->archive) . "\" target=\"_blank\">>>&nbsp; " . $arc->archive['subject'] . "</a>", 'answeradd', "?aid={$aid}{$forwardstr}", 2, 1, 1);
     $submitstr = '';
     trbasic(lang('answer0'), 'communew[answer]', '', 'textarea');
     $submitstr .= makesubmitstr('communew[answer]', 1, 0, $commu['setting']['minlength'], $commu['setting']['maxlength'], 'multitext');
     $submitstr .= tr_regcode('answer');
     tabfooter('newcommu');
     check_submit_func($submitstr);
 } else {
     $_da =& $arc->archive;
     arc_parse($_da);
     _aenter($_da, 1);
     @extract($btags);
     extract($_da, EXTR_OVERWRITE);
     tpl_refresh($tplname);
     @(include M_ROOT . "template/{$templatedir}/pcache/{$tplname}.php");
     $_content = ob_get_contents();
     ob_clean();
     mexit($_content);
 }
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:answer.php

示例2: tabheader

 $aedit->set_aid($report['aid']);
 $aedit->detail_data();
 if (!submitcheck('newcommu')) {
     tabheader($commu['cname'] . '&nbsp; -&nbsp; ' . lang('based_msg'), 'commudetail', "?entry=reports&action=reportdetail&cid={$cid}{$param_suffix}{$forwardstr}", 2, 1, 1);
     $archive = $db->fetch_one("SELECT * FROM {$tblprefix}archives WHERE aid='{$report['aid']}'");
     trbasic(lang('lookrelatedsource'), '', "<a href=\"" . view_arcurl($aedit->archive) . "\" target=\"_blank\">>>&nbsp; " . $aedit->archive['subject'] . "</a>", '');
     trbasic(lang('add_time'), '', date('Y-m-d H:i', $report['createdate']), '');
     tabfooter();
     $a_field = new cls_field();
     tabheader($commu['cname'] . '&nbsp; -&nbsp; ' . lang('submitmessage'));
     $submitstr = '';
     foreach ($ucotypes as $k => $v) {
         if (in_array('uccid' . $k, $citems) && $v['umode'] != 1) {
             trbasic($v['cname'], '', mu_cnselect("communew[uccid{$k}]", $report["uccid{$k}"], $k, lang('p_choose'), $v['emode'], "communew[uccid{$k}date]", @$report["uccid{$k}date"] ? date('Y-m-d', $report["uccid{$k}date"]) : ''), '');
             $submitstr .= makesubmitstr("communew[uccid{$k}]", $v['notblank'], 0, 0, 0, 'common');
             $v['emode'] == 2 && ($submitstr .= makesubmitstr("communew[uccid{$k}date]", 1, 0, 0, 0, 'date'));
         }
     }
     $a_field = new cls_field();
     foreach ($bfields as $k => $v) {
         if (!$v['isfunc'] && in_array($k, $citems)) {
             $a_field->init();
             $a_field->field = $v;
             $a_field->oldvalue = isset($report[$k]) ? $report[$k] : '';
             $a_field->trfield('communew', '', 'b');
             $submitstr .= $a_field->submitstr;
         }
     }
     unset($a_field);
     tabfooter('newcommu');
     check_submit_func($submitstr);
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:reports.inc.php

示例3: 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');
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:memberpwd.inc.php

示例4: array

$urlsarr = array('pmsend' => array(lang('sendpm'), '?action=pmsend'));
for ($i = 0; $i < $l; $i++) {
    $urlsarr[$boxs[$i]] = array(lang($boxl[$i]) . ($new[$boxs[$i]] ? '(' . $new[$boxs[$i]] . ')' : ''), "?action=pmbox&box={$boxs[$i]}&page={$page}");
}
murl_nav($urlsarr, 'pmbox' == $action ? $box : 'pmsend', 6);
if ($action == 'pmsend') {
    if (!submitcheck('bpmsend')) {
        //发送框
        tabheader(lang('sendpm'), 'pmsend', "?action=pmsend&box={$box}&page={$page}", 2, 0, 1);
        trbasic(lang('pmtitle'), 'pmnew[title]', '', 'btext');
        trbasic(lang('pmtonames'), 'pmnew[tonames]', empty($tonames) ? '' : $tonames, 'btext');
        trbasic(lang('pmcontent'), 'pmnew[content]', '', 'btextarea');
        $submitstr = '';
        //		$submitstr .= makesubmitstr('pmnew[title]',1,0,0,80);
        $submitstr .= makesubmitstr('pmnew[tonames]', 1, 0, 0, 100);
        $submitstr .= makesubmitstr('pmnew[content]', 1, 0, 0, 1000);
        $submitstr .= tr_regcode('pm');
        tabfooter('bpmsend');
        check_submit_func($submitstr);
    } else {
        //发送短信
        if (!regcode_pass('pm', empty($regcode) ? '' : trim($regcode))) {
            mcmessage(lang('regcodeerror'), M_REFERER);
        }
        $pmnew['title'] = trim($pmnew['title']);
        $pmnew['tonames'] = trim($pmnew['tonames']);
        $pmnew['content'] = trim($pmnew['content']);
        if (empty($pmnew['content']) || empty($pmnew['tonames'])) {
            mcmessage(lang('pmdatamiss'), M_REFERER);
        }
        $tos = array_filter(explode(',', $pmnew['tonames']));
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:pmuc.inc.php

示例5: updatecache

        }
        updatecache('murls');
        adminlog(lang('edit_citem_mlist'));
        amessage('itemmodifyfinish', M_REFERER);
    }
} elseif ($action == 'murladd') {
    $forward = empty($forward) ? M_REFERER : $forward;
    $forwardstr = '&forward=' . rawurlencode($forward);
    if (!submitcheck('bmurladd')) {
        tabheader(lang('murl_add'), 'murladd', "?entry=murls&action=murladd{$forwardstr}", 2, 1, 1);
        $submitstr = '';
        trbasic(lang('murl_name'), 'murlnew[cname]');
        trbasic(lang('murl_remark'), 'murlnew[remark]', '', 'btext');
        trbasic(lang('murl_type'), 'murlnew[uclass]', makeoption($uclassarr, $uclass), 'select');
        tabfooter('bmurladd');
        $submitstr .= makesubmitstr('murlnew[cname]', 1, 0, 4, 18);
        check_submit_func($submitstr);
        a_guide('murladd');
    } else {
        $murlnew['cname'] = trim(strip_tags($murlnew['cname']));
        empty($murlnew['cname']) && amessage('murlmissname', M_REFERER);
        $murlnew['remark'] = trim(strip_tags($murlnew['remark']));
        $db->query("INSERT INTO {$tblprefix}murls SET\n\t\t cname='{$murlnew['cname']}',\n\t\t remark='{$murlnew['remark']}',\n\t\t uclass='{$murlnew['uclass']}'\n\t\t ");
        $muid = $db->insert_id();
        updatecache('murls');
        adminlog(lang('murl_add'));
        amessage('murladdfinish', "?entry=murls&action=murldetail&muid={$muid}");
    }
} elseif ($action == 'murlcopy' && $muid) {
    if (!($murl = fetch_one($muid, 1))) {
        amessage('choosecpurl');
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:murls.inc.php

示例6: url_nav

$url_type = 'fchannel';
include 'urlsarr.inc.php';
if ($action == 'fchannelsedit') {
    if (!submitcheck('bfchannelsedit') && !submitcheck('bfchanneladd')) {
        url_nav(lang('pluginframework'), $urlsarr, 'channel');
        tabheader(lang('channel_manager'), 'fchannelsedit', '?entry=fchannels&action=fchannelsedit', '4');
        trcategory(array(lang('id'), lang('channel_name'), lang('edit'), lang('delete')));
        foreach ($fchannels as $k => $fchannel) {
            echo "<tr class=\"txt\">" . "<td class=\"txtC w30\">{$k}</td>\n" . "<td class=\"txtL\"><input type=\"text\" size=\"30\" maxlength=\"30\" name=\"fchannelnew[{$k}][cname]\" value=\"{$fchannel['cname']}\"></td>\n" . "<td class=\"txtC w40\"><a href=\"?entry=fchannels&action=fchanneldetail&chid={$fchannel['chid']}\" onclick=\"return floatwin('open_fchannelsedit',this)\">" . lang('detail') . "</a></td>\n" . "<td class=\"txtC w40\"><a href=\"?entry=fchannels&action=fchanneldel&chid={$fchannel['chid']}\">" . lang('delete') . "</a></td>\n" . "</tr>\n";
        }
        tabfooter('bfchannelsedit', lang('modify'));
        tabheader(lang('add_channel'), 'fchanneladd', '?entry=fchannels&action=fchannelsedit', 2, 0, 1);
        trbasic(lang('channel_name'), 'fchanneladd[cname]');
        tabfooter('bfchanneladd', lang('add'));
        $submitstr = '';
        $submitstr .= makesubmitstr('fchanneladd[cname]', 1, 0, 3, 30);
        check_submit_func($submitstr);
        a_guide('fchannelsedit');
    } elseif (submitcheck('bfchannelsedit')) {
        if (isset($fchannelnew)) {
            foreach ($fchannelnew as $k => $v) {
                $v['cname'] = trim(strip_tags($v['cname']));
                $v['cname'] = $v['cname'] ? $v['cname'] : $fchannels[$k]['cname'];
                if ($v['cname'] != $fchannels[$k]['cname']) {
                    $db->query("UPDATE {$tblprefix}fchannels SET cname='{$v['cname']}' WHERE chid='{$k}'");
                }
            }
            adminlog(lang('edit_freeinfo_channel_list'));
            updatecache('fchannels');
            amessage('frechaedifin', "?entry=fchannels&action=fchannelsedit");
        }
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:fchannels.inc.php

示例7: tabheader

 if (empty($u_tplname)) {
     tabheader((empty($u_mtitle) ? $commu['cname'] : $u_mtitle) . '&nbsp; &nbsp; ' . "<a href=\"" . view_arcurl($oldrow) . "\" target=\"_blank\">>>&nbsp; " . $oldrow['subject'] . "</a>", 'commudetail', "?action=offer&cid={$cid}", 2, 1, 1);
     $submitstr = '';
     if (empty($u_lists) || in_array('oprice', $u_lists)) {
         trbasic(lang('price'), 'offernew[oprice]', $oldrow['oprice']);
     }
     if (empty($u_lists) || in_array('storage', $u_lists)) {
         trbasic(lang('stock'), 'offernew[storage]', $oldrow['storage']);
     }
     foreach ($ucotypes as $k => $v) {
         if (empty($u_lists) || in_array("uccid{$k}", $u_lists)) {
             if (in_array('uccid' . $k, $citems)) {
                 $noedit = noedit('uccid' . $k, $v['umode'] == 2);
                 trbasic($v['cname'] . $noedit, '', mu_cnselect("offernew[uccid{$k}]", $oldrow['uccid' . $k], $k, lang('p_choose'), $v['emode'], "offernew[uccid{$k}date]", @$oldrow["uccid{$k}date"] ? date('Y-m-d', $oldrow["uccid{$k}date"]) : ''), '');
                 !$noedit && ($submitstr .= makesubmitstr("offernew[uccid{$k}]", $v['notblank'], 0, 0, 0, 'common'));
                 !$noedit && $v['emode'] == 2 && ($submitstr .= makesubmitstr("offernew[uccid{$k}date]", 1, 0, 0, 0, 'date'));
             }
         }
     }
     $a_field = new cls_field();
     foreach ($fields as $k => $v) {
         if (empty($u_lists) || in_array($k, $u_lists)) {
             if (!$v['isfunc']) {
                 $a_field->init();
                 $a_field->field = $v;
                 $a_field->oldvalue = $oldrow[$k];
                 $noedit = noedit($k, $v['isadmin'] || !$curuser->pmbypmids('field', $v['pmid']));
                 $a_field->trfield('offernew', $noedit, 'o');
                 !$noedit && ($submitstr .= $a_field->submitstr);
             }
         }
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:offer.inc.php

示例8: tr_regcode

function tr_regcode($rname)
{
    global $cms_regcode, $cms_abs, $timestamp;
    $submitstr = '';
    if ($cms_regcode && in_array($rname, explode(',', $cms_regcode))) {
        if (defined('M_MCENTER')) {
            echo "<tr><td class=\"item1\"><b>" . lang('safecode') . "</b></td>" . "<td class=\"item2\"><input type=\"text\" name=\"regcode\" id=\"regcode\" size=\"4\" maxlength=\"4\">&nbsp;&nbsp;" . "<img src=\"{$cms_abs}tools/regcode.php?t={$timestamp}\" alt=\"" . lang('safetips') . "\" style=\"vertical-align: middle;cursor:pointer;\" onclick=\"this.src+=1\">" . "<div id=\"alert_regcode\" name=\"alert_regcode\" class=\"red\"></div><font class=\"gray\">" . lang('safemark') . "</font>" . "</td></tr>";
        } else {
            echo "<tr><td class=\"txt txtright fB borderright\">" . lang('regcode') . "<font class=\"gray\">&nbsp; " . lang('agregcode') . "</font>" . "&nbsp; <div id=\"alert_regcode\" name=\"alert_regcode\" class=\"red\"></div></td>" . "<td class=\"txt txtleft\"><input type=\"text\" name=\"regcode\" id=\"regcode\" size=\"4\" maxlength=\"4\">&nbsp;&nbsp;" . "<img src=\"{$cms_abs}tools/regcode.php?t={$timestamp}\" alt=\"" . lang('re_regcode') . "\" style=\"vertical-align: middle;cursor:pointer;\" onclick=\"this.src+=1\"></td></tr>";
        }
        $submitstr = makesubmitstr('regcode', 1, 'number', 4, 4);
    }
    return $submitstr;
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:14,代码来源:admin.fun.php

示例9: a_guide

    a_guide('memberadd0');
} else {
    $mchid = empty($mchid) ? 1 : max(1, intval($mchid));
    if (!($mchannel = $mchannels[$mchid])) {
        amessage('choosememberchannel');
    }
    $mfields = read_cache('mfields', $mchid);
    if (!submitcheck('bmemberadd')) {
        $a_field = new cls_field();
        $submitstr = '';
        tabheader(lang('base_option') . '&nbsp;- &nbsp; ' . lang('add') . $mchannels[$mchid]['cname'], 'memberadd', '?entry=memberadd&mchid=' . $mchid, 2, 1, 1, 1);
        trbasic('*&nbsp;' . lang('member_cname'), 'minfosadd[mname]');
        trbasic('*&nbsp;' . lang('password'), 'minfosadd[password]', '', 'password');
        trbasic('&nbsp;' . lang('email'), 'minfosadd[email]');
        $submitstr .= makesubmitstr('minfosadd[mname]', 1, 0, 0, 15);
        $submitstr .= makesubmitstr('minfosadd[password]', 1, 0, 0, 15);
        #$submitstr .= makesubmitstr('minfosadd[email]',1,'email',0,50);
        //个人空间模板
        #trbasic(lang('space_tpl_prj'),'minfosadd[mtcid]',makeoption(mtcidsarr($mchid)),'select');
        foreach ($mfields as $k => $field) {
            if ($field['available'] && !$field['issystem'] && !$field['isfunc']) {
                $a_field->init();
                $a_field->field = $field;
                $a_field->isadd = 1;
                $a_field->trfield('minfosadd', '', 'm', $mchid);
                $submitstr .= $a_field->submitstr;
            }
        }
        tabfooter();
        tabheader(lang('usergroup_msg'), '', '', 4);
        foreach ($grouptypes as $gtid => $grouptype) {
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:memberadd.inc.php

示例10: adminlog

        adminlog(lang('addusergaltpro'), lang('addusergaltpro'));
        amessage('useraltproaddfin', axaction(6, '?entry=mprojects&action=mprojectsedit'));
    }
} elseif ($action == 'uprojectdetail' && $gtid && $upid) {
    !($ugidsarr = ugidsarr($gtid)) && amessage('confirmadduser');
    !($uproject = $uprojects[$upid]) && amessage('choosememchaaltpro');
    if (!submitcheck('buprojectdetail')) {
        $ugidsarr = array(0 => lang('user0')) + $ugidsarr;
        tabheader(lang('ediusergaltpro'), "uprojectdetail", "?entry=mprojects&action=uprojectdetail&gtid={$gtid}&upid={$upid}", 2, 0, 1);
        trbasic(lang('projectname'), 'uprojectnew[cname]', $uproject['cname']);
        trbasic(lang('sourceuser'), 'uprojectnew[sugid]', makeoption($ugidsarr, $uproject['sugid']), 'select');
        trbasic(lang('targetusergroup'), 'uprojectnew[tugid]', makeoption($ugidsarr, $uproject['tugid']), 'select');
        trbasic(lang('useraltautch'), 'uprojectnew[autocheck]', $uproject['autocheck'], 'radio');
        tabfooter('buprojectdetail');
        $submitstr = '';
        $submitstr .= makesubmitstr('uprojectnew[cname]', 1, 0, 3, 30);
        check_submit_func($submitstr);
        a_guide('uprojectdetail');
    } else {
        $uprojectnew['cname'] = trim(strip_tags($uprojectnew['cname']));
        if (!$uprojectnew['cname']) {
            amessage('inpprocna', axaction(2, M_REFERER));
        }
        if ($uprojectnew['sugid'] == $uprojectnew['tugid']) {
            amessage('souchatarchasam', axaction(2, M_REFERER));
        }
        $uprojectnew['ename'] = $uprojectnew['sugid'] . '_' . $uprojectnew['tugid'];
        $usedcnames = array();
        foreach ($uprojects as $v) {
            $usedcnames[] = $v['ename'];
        }
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:mprojects.inc.php

示例11: mtrbasic

 mtrbasic($muststr . lang('password'), 'password', '', 'password');
 mtrbasic($muststr . lang('repwd'), 'password2', '', 'password');
 mtrbasic($muststr . lang('email'), 'email');
 $submitstr = "function checkChannel(form){\nvar i = true;\n{$submitstr}";
 if (in_array('mtcid', $additems)) {
     mtrbasic(lang('spacetemplateproject'), 'mtcid', makeoption(mtcidsarr($mchid)), 'select');
 }
 if (in_array('caid', $ccoids) && in_array('caid', $additems)) {
     $catalogs =& $acatalogs;
     mtrcns($muststr . lang('memberrelatecatalog'), 'caid', 0, -1, 0, $mchid, 1, lang('p_choose'));
     $submitstr .= makesubmitstr('caid', 1, 0, 0, 0, 'common');
 }
 foreach ($cotypes as $k => $v) {
     if (in_array('ccid' . $k, $ccoids) && in_array('ccid' . $k, $additems)) {
         mtrcns($muststr . lang('memberrelatecoclass') . '&nbsp; -&nbsp; ' . $v['cname'], "ccid{$k}", 0, -1, $k, $mchid, 1, lang('p_choose'));
         $submitstr .= makesubmitstr("ccid{$k}", 1, 0, 0, 0, 'common');
     }
 }
 foreach ($grouptypes as $k => $v) {
     if (!$v['mode'] && !in_array($mchid, explode(',', $v['mchids'])) && in_array("grouptype{$k}", $additems)) {
         mtrbasic($v['cname'], 'grouptype' . $k, makeoption(ugidsarr($k, $mchid)), 'select');
     }
 }
 $a_field = new cls_field();
 foreach ($mfields as $k => $field) {
     if (!$upload_nouser && in_array($field['datatype'], array('image', 'images', 'flash', 'flashs', 'media', 'medias', 'file', 'files'))) {
         continue;
     }
     if (!$field['issystem'] && !$field['isfunc'] && !$field['isadmin'] && in_array($k, $additems)) {
         $a_field->init(1);
         $a_field->field = read_cache('mfield', $mchid, $k);
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:register.inc.php

示例12: mcmessage

                }
            }
            if ($num >= $mcatalogs[$uclassadd['mcaid']]['maxucid']) {
                mcmessage('pcuaol', "?action=uclasses&cuid={$cuid}");
            }
        }
        $db->query("INSERT INTO {$tblprefix}uclasses SET \n\t\t\t\t\ttitle='{$uclassadd['title']}', \n\t\t\t\t\tmcaid='{$uclassadd['mcaid']}', \n\t\t\t\t\tcuid='{$uclassadd['cuid']}', \n\t\t\t\t\tmid='{$memberid}'");
        mcmessage('addcoclassfinish', "?action=uclasses&cuid={$cuid}");
    }
} elseif ($deal == 'uclassdetail' && !empty($ucid)) {
    if (!($uclass = $db->fetch_one("SELECT * FROM {$tblprefix}uclasses WHERE ucid='{$ucid}' AND mid='{$memberid}'"))) {
        mcmessage('chooseyouruclass', '?action=uclasses');
    }
    if (!submitcheck('buclassdetail')) {
        $mstpls = load_mtconfig($memberid, 'setting');
        tabheader(lang('edituclass'), 'uclassdetail', "?action=uclasses&deal=uclassdetail&ucid={$ucid}", 2, 0, 1);
        trbasic(lang('uclasscname'), 'uclassnew[title]', $uclass['title']);
        trbasic(lang('uclasstype'), 'uclassnew[cuid]', makeoption($cuidsarr, $uclass['cuid']), 'select');
        trbasic(lang('belongspacecatalog'), 'uclassnew[mcaid]', makeoption(array('0' => lang('nosetting')) + mcaidsarr(1, 1), $uclass['mcaid']), 'select');
        tabfooter('buclassdetail');
        $submitstr = '';
        $submitstr .= makesubmitstr('uclassnew[title]', 1, 0, 0, $uclasslength);
        check_submit_func($submitstr);
    } else {
        $uclassnew['title'] = trim(strip_tags($uclassnew['title']));
        !$uclassnew['title'] && mcmessage('inputuclasscname', M_REFERER);
        $uclassnew['title'] = cutstr($uclassnew['title'], $uclasslength, '');
        $db->query("UPDATE {$tblprefix}uclasses SET \n\t\t\t\t\ttitle='{$uclassnew['title']}', \n\t\t\t\t\tmcaid='{$uclassnew['mcaid']}', \n\t\t\t\t\tcuid='{$uclassnew['cuid']}'\n\t\t\t\t\tWHERE ucid='{$ucid}'");
        mcmessage('editcoclassfinish', '?action=uclasses');
    }
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:uclasses.inc.php

示例13: exit

<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
if (!empty($mnid)) {
    $forward = empty($forward) ? M_REFERER : $forward;
    if (!submitcheck('bmguide')) {
        load_cache('mmnlangs');
        $content = '';
        if (@(include M_ROOT . "./dynamic/mguides/mguide_{$mnid}.php")) {
            $content = $mguide;
        }
        tabheader(lang('memcenpaggui'), 'mguide', "?entry=mguides&mnid={$mnid}&forward=" . rawurlencode($forward), 2, 0, 1);
        trbasic(lang('memcenpacna'), '', $mmnlangs["mmenuitem_{$mnid}"], '');
        trbasic(lang('guidecontent'), 'contentnew', $content, 'btextarea');
        tabfooter('bmguide');
        $submitstr = '';
        $submitstr .= makesubmitstr('contentnew', 0, 0, 0, 500);
        check_submit_func($submitstr);
        a_guide('mguides');
    } else {
        $contentnew = stripslashes(strip_tags(trim($contentnew)));
        mmkdir(M_ROOT . './dynamic/mguides/');
        if (@($fp = fopen(M_ROOT . "./dynamic/mguides/mguide_{$mnid}.php", 'wb'))) {
            fwrite($fp, "<?php\n\$mguide = '" . addcslashes($contentnew, '\'\\') . "';\n?>");
            fclose($fp);
        }
        amessage('mecenpagusetfin', $forward);
    }
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:30,代码来源:mguides.inc.php

示例14: read_cache

include_once M_ROOT . "./include/cnode.fun.php";
$cotype = $cotypes[$coid];
$coclasses = read_cache('coclasses', $coid);
$cotypename = $cotype['cname'];
if ($action == 'coclassadd') {
    if (!submitcheck('bcoclassadd')) {
        $pid = empty($pid) ? 0 : $pid;
        if ($pid) {
            $pmsg = read_cache('coclass', $coid, $pid);
        }
        $submitstr = '';
        tabheader(lang('add') . "&nbsp;[{$cotypename}]&nbsp;" . lang('coclass') . "-" . lang('base_setting'), 'coclassadd', '?entry=coclass&action=coclassadd&coid=' . $coid, 2, 1, 1);
        trbasic(lang('cocname'), 'coclassnew[title]');
        $submitstr .= makesubmitstr('coclassnew[title]', 1, 0, 0, 30);
        trbasic(lang('coclass_ename'), '', '<input type="text" value="" name="coclassnew[dirname]" id="coclassnew[dirname]" size="25">&nbsp;&nbsp;<input type="button" value="' . lang('checksubject') . '" onclick="check_repeat(this,\'coclassnew[dirname]\',\'dirname\');">', '');
        $submitstr .= makesubmitstr('coclassnew[dirname]', 1, 'tagtype', 0, 30);
        trbasic(lang('parent_coclass'), 'coclassnew[pid]', makeoption(array('0' => lang('topiccoclass')) + ccidsarr($coid), $pid), 'select');
        trbasic(lang('isframe_coclass_i'), 'coclassnew[isframe]', '', 'radio');
        if (empty($cotype['self_reg'])) {
            trbasic(lang('allow_channel_archive'), '', makecheckbox('coclassnew[chids][]', chidsarr(1), !empty($pmsg['chids']) ? explode(',', $pmsg['chids']) : array(), 5), '');
            if ($cotype['permission']) {
                trbasic(lang('add_pmid'), 'coclassnew[apmid]', makeoption(pmidsarr('aadd'), @$pmsg['apmid']), 'select');
                trbasic(lang('read_pmid'), 'coclassnew[rpmid]', makeoption(pmidsarr('aread'), @$pmsg['rpmid']), 'select');
                trbasic(lang('cread_pmid'), 'coclassnew[crpmid]', makeoption(pmidsarr('cread'), @$pmsg['crpmid']), 'select');
                trbasic(lang('down_pmid'), 'coclassnew[dpmid]', makeoption(pmidsarr('down'), @$pmsg['dpmid']), 'select');
            }
            $cotype['awardcp'] && trbasic(lang('issue_arc_currency'), 'coclassnew[awardcp]', makeoption(array('' => lang('noaward')) + $vcps['award'], @$pmsg['awardcp']), 'select');
            $cotype['taxcp'] && trbasic(lang('arc_deduct_currency'), 'coclassnew[taxcp]', makeoption(array('' => lang('freesale')) + $vcps['tax'], @$pmsg['taxcp']), 'select');
            $cotype['ftaxcp'] && trbasic(lang('att_deduct_currency'), 'coclassnew[ftaxcp]', makeoption(array('' => lang('freesale')) + $vcps['ftax'], @$pmsg['ftaxcp']), 'select');
            $cotype['sale'] && trbasic(lang('allow_sale_arc'), 'coclassnew[allowsale]', @$pmsg['allowsale'], 'radio');
            $cotype['fsale'] && trbasic(lang('allow_sale_att'), 'coclassnew[allowfsale]', @$pmsg['allowfsale'], 'radio');
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:coclass.inc.php

示例15: trbasic

    trbasic(lang('field_cname'), 'fieldnew[cname]', empty($field['cname']) ? '' : $field['cname']);
    $submitstr .= makesubmitstr('fieldnew[cname]', 1, 0, 0, 30);
    trbasic(lang('field_ename'), $fnew ? 'fieldnew[ename]' : '', empty($field['ename']) ? '' : $field['ename'], $fnew ? 'text' : '');
    if ($fnew) {
        $submitstr .= makesubmitstr('fieldnew[ename]', 1, 'tagtype', 0, 30);
    }
    if (!$isfunc) {
        !in_array($fmode, array('cn')) && empty($field['issystem']) && trbasic(lang('field_pmid'), 'fieldnew[pmid]', makeoption(pmidsarr('field', lang('frommsg')), empty($field['pmid']) ? 0 : $field['pmid']), 'select');
        empty($field['issystem']) && trbasic(lang('input_notnull'), 'fieldnew[notnull]', empty($field['notnull']) ? 0 : $field['notnull'], 'radio');
        trbasic(lang('form_guide'), 'fieldnew[guide]', empty($field['guide']) ? '' : $field['guide'], 'btext', lang('agguide'));
        $submitstr .= makesubmitstr('fieldnew[guide]', 0, 0, 0, 80);
        trbasic(lang('default_value'), 'fieldnew[vdefault]', empty($field['vdefault']) ? '' : date('Y-m-d', $field['vdefault']), 'calendar');
        $submitstr .= makesubmitstr('fieldnew[vdefault]', 0, 'date', 0, 10);
        trrange(lang('date_range'), array('fieldnew[min]', empty($field['min']) ? '' : date('Y-m-d', $field['min']), '', '&nbsp; -&nbsp; ', 10), array('fieldnew[max]', empty($field['max']) ? '' : date('Y-m-d', $field['max']), '', '', 10), 'calendar');
        $submitstr .= makesubmitstr('fieldnew[min]', 0, 'date', 0, 10);
        $submitstr .= makesubmitstr('fieldnew[max]', 0, 'date', 0, 10);
    }
    if ($isfunc) {
        trbasic(lang('php_func'), 'fieldnew[func]', empty($field['func']) ? '' : $field['func'], 'textarea');
    }
    if (in_array($fmode, array('a', 'i', 'm', 'im', 'ma')) && ($fnew || !empty($field['iscustom']))) {
        $issearcharr = array('0' => lang('nosearch'), '1' => lang('onesearch'), '2' => lang('multisearch'));
        trbasic(lang('issearch'), '', makeradio('fieldnew[issearch]', $issearcharr, empty($field['issearch']) ? '0' : $field['issearch']), '');
    }
    trbasic(lang('custom_1'), 'fieldnew[custom_1]', empty($field['custom_1']) ? '' : $field['custom_1'], 'text', lang('agcustom_1'));
    trbasic(lang('custom_2'), 'fieldnew[custom_2]', empty($field['custom_2']) ? '' : $field['custom_2'], 'text', lang('agcustom_1'));
} else {
    $sqlstr = empty($fconfigarr['sqlstr']) ? "" : $fconfigarr['sqlstr'];
    $fieldnew['cname'] = trim(strip_tags($fieldnew['cname']));
    if ($fnew) {
        $filterstr = empty($fconfigarr['filterstr']) ? "/[^a-zA-Z_0-9]+|^[0-9_]+/" : $fconfigarr['filterstr'];
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:date.php


注:本文中的makesubmitstr函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。