• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP tabfooter函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了tabfooter函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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();
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:25,代码来源:adminm.fun.php


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


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


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


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


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


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


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


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


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


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


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


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


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


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


示例16: trbasic

         if (!in_array('fsalecp', $citems) && !in_array('fsalecp', $additems)) {
             trbasic(lang('annex_price'), 'archiveadd[fsalecp]', makeoption(array('' => lang('freesale')) + $vcps['fsale']), 'select');
         }
         if (!in_array('ucid', $citems) && !in_array('ucid', $additems)) {
             //关于文档的个人分类
             $uclasses = loaduclasses($curuser->info['mid']);
             $ucidsarr = array(0 => lang('p_choose'));
             foreach ($uclasses as $k => $v) {
                 if (!$v['cuid']) {
                     $ucidsarr[$k] = $v['title'];
                 }
             }
             trbasic(lang('mycoclass'), 'archiveadd[ucid]', makeoption($ucidsarr), 'select');
         }
         $submitstr .= tr_regcode('archive');
         tabfooter('barchiveadd', lang('add'));
         check_submit_func($submitstr);
         _footer();
     } else {
         include_once M_ROOT . './include/common.fun.php';
         parse_str($_SERVER['QUERY_STRING'], $_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);
     }
 } else {
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:archiveadd.php


示例17: strtolower

        $cmsgnew['ename'] = strtolower(trim(strip_tags($cmsgnew['ename'])));
        if (in_array($cmsgnew['ename'], array_keys($cmsgs))) {
            amessage('enamerepeat', '?entry=cmsgs&action=cmsgsedit');
        }
        $cmsgnew['content'] = trim($cmsgnew['content']);
        $db->query("INSERT INTO {$tblprefix}cmsgs SET \n\t\t\t\t\tename='{$cmsgnew['ename']}', \n\t\t\t\t\tcontent='{$cmsgnew['content']}',\n\t\t\t\t\tcreatedate='{$timestamp}'\n\t\t\t\t\t");
        adminlog(lang('add_cmsg'));
        updatecache('cmsgs');
        amessage('cmsgaddfinish', "?entry=cmsgs&action=cmsgsedit");
    }
} elseif ($action == 'cmsgdetail' && $ename) {
    if (!($cmsg = $db->fetch_one("SELECT * FROM {$tblprefix}cmsgs WHERE ename='{$ename}'"))) {
        amessage('confirmchoosecmsg');
    }
    if (!submitcheck('bcmsgdetail')) {
        tabheader(lang('edit_cmsg'), 'cmsgdetail', "?entry=cmsgs&action=cmsgdetail&ename={$ename}");
        trbasic(lang('cmsg_ename'), '', $cmsg['ename'], '');
        trbasic(lang('cmsg_content'), 'cmsgnew[content]', $cmsg['content'], 'textarea');
        //trbasic(lang('cmsg_jump_url'),'cmsgnew[jump]',$cmsg['jump'],'btext');
        //trbasic(lang('cmsg_view_url'),'cmsgnew[urls]',$cmsg['urls'],'textarea');
        tabfooter('bcmsgdetail');
        a_guide('cmsgdetail');
    } else {
        $cmsgnew['content'] = trim($cmsgnew['content']);
        $sql = $cmsgnew['content'] != $cmsg['content'] ? ",createdate='{$timestamp}'" : '';
        $db->query("UPDATE {$tblprefix}cmsgs SET \n\t\t\t\t\tcontent='{$cmsgnew['content']}'\n\t\t\t\t\t{$sql}\n\t\t\t\t\tWHERE ename='{$ename}'");
        adminlog(lang('edit_cmsg_detail'));
        updatecache('cmsgs');
        amessage('cmsgmodifyfinish', "?entry=cmsgs&action=cmsgsedit");
    }
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:cmsgs.inc.php


示例18: while

     } while (!$db->num_rows($query) && $pagetmp);
     $itemstr = '';
     while ($item = $db->fetch_array($query)) {
         $createdatestr = date("{$dateformat}", $item['createdate']);
         $itemstr .= "<tr><td class=\"item\" width=\"30\"><input class=\"checkbox\" type=\"checkbox\" name=\"selectid[{$item['cid']}]\" value=\"{$item['cid']}\"></td>\n" . "<td align=\"center\" class=\"item2\" width=\"30\">{$item['mid']}</td>\n" . "<td class=\"item\"><a href=\"{$mspaceurl}index.php?mid={$item['mid']}\" target=\"_blank\">{$item['mname']}</a></td>\n" . "<td class=\"item\" width=\"60\">{$createdatestr}</td>\n" . "<td class=\"item\" width=\"60\"><a href=\"?action=mreport&mid={$item['mid']}&cid={$item['cid']}\">" . lang('edit') . "</a> <a href=\"?action={$action}&deal=delete&cid={$item['cid']}\">" . lang('delete') . "</a></td></tr>\n";
     }
     $counts = $db->result_one("SELECT COUNT(*) {$fromsql} {$wheresql}");
     $multi = multi($counts, $mrowpp, $page, "?action=mreports{$filterstr}");
     tabheader($listname . lang('list'), '', '', 11);
     trcategory(array("<input class=\"checkbox\" type=\"checkbox\" name=\"chkall\" class=\"category\" onclick=\"checkall(this.form, 'selectid', 'chkall')\">", lang('id'), lang('member'), lang('add time'), lang('operate')));
     echo $itemstr;
     tabfooter();
     echo $multi;
     tabheader(lang('operateitem'));
     trbasic(lang('choose_item'), '', "<input class=\"checkbox\" type=\"checkbox\" name=\"reportdeal[delete]\" value=\"1\">&nbsp;" . lang('delete') . $listname, '');
     tabfooter('breportsedit');
 } else {
     if (empty($reportdeal)) {
         mcmessage('selectoperateitem', M_REFERER);
     }
     if (empty($selectid)) {
         mcmessage('confirmselectreport', M_REFERER);
     }
     if (!empty($reportdeal['delete'])) {
         $db->query("DELETE FROM {$tblprefix}mreports WHERE cid in (" . join(',', $selectid) . ") AND fromid={$memberid}");
     } else {
         if (!empty($reportdeal['ucid'])) {
             $db->query("UPDATE {$tblprefix}mreports SET ucid='{$reportucid}' WHERE cid in (" . join(',', $selectid) . ") AND fromid={$memberid}");
         }
     }
     mcmessage('reportadminfin', M_REFERER);
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:mreports.inc.php


示例19: read_cache

$fields = read_cache('mafields', $matid);
if (!submitcheck('bmarchive')) {
    $a_field = new cls_field();
    $submitstr = '';
    tabheader($aedit->matype['cname'] . '&nbsp; -&nbsp; ' . lang('contentsetting'), 'marchive', "?matid={$matid}&maid={$maid}&action=marchive{$param_suffix}{$forwardstr}", 2, 1, 1, 1);
    foreach ($fields as $k => $field) {
        if ($field['available'] && !$field['isadmin'] && !$field['isfunc']) {
            $a_field->init();
            $a_field->field = $field;
            $a_field->oldvalue = isset($aedit->archive[$k]) ? $aedit->archive[$k] : '';
            $a_field->trfield('marchivenew', '', 'ma', $matid);
            $submitstr .= $a_field->submitstr;
        }
    }
    unset($a_field);
    tabfooter('bmarchive');
    check_submit_func($submitstr);
} else {
    $c_upload = new cls_upload();
    $fields = fields_order($fields);
    $a_field = new cls_field();
    foreach ($fields as $k => $v) {
        if ($v['available'] && !$v['isadmin'] && !$v['isfunc']) {
            $a_field->init();
            $a_field->field = $v;
            $a_field->oldvalue = isset($aedit->archive[$k]) ? $aedit->archive[$k] : '';
            $a_field->deal('marchivenew');
            if (!empty($a_field->error)) {
                $c_upload->rollback();
                mcmessage($a_field->error, M_REFERER);
            }
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:marchive.inc.php


示例20: cls_field

    $submitstr = '';
    $a_field = new cls_field();
    #$addfieldstr = $sid ? '' : ("&nbsp; &nbsp; >><a href=\"?entry=catalogs&action=cafieldsedit\">".lang('iscustom_catalog_field').'</a>');
    $allow = array_filter(explode(",", $allow));
    tabheader('页面内容设置' . "&nbsp;&nbsp;[{$catalog['title']}]", 'catalogdetail', "", 2, 1, 1);
    foreach ($cafields as $field) {
        if (!in_array($field['ename'], $allow)) {
            continue;
        }
        $a_field->init();
        $a_field->field = $field;
        $a_field->oldvalue = isset($catalog[$field['ename']]) ? $catalog[$field['ename']] : '';
        $a_field->trfield('catalognew', '', 'ca');
        $submitstr .= $a_field->submitstr;
    }
    tabfooter('bcatalogdetail');
    check_submit_func($submitstr);
    a_guide('catalogdetail');
} else {
    $forward = empty($forward) ? M_REFERER : $forward;
    $catalognew['dirname'] = strtolower($catalognew['dirname']);
    $c_upload = new cls_upload();
    $cafields = fields_order($cafields);
    $a_field = new cls_field();
    $sqlstr = "";
    foreach ($cafields as $k => $v) {
        $a_field->init();
        $a_field->field = $v;
        $a_field->oldvalue = isset($catalog[$k]) ? $catalog[$k] : '';
        $a_field->deal('catalognew');
        if (!empty($a_field->error)) {
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:cata_manage.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP tabheader函数代码示例发布时间:2022-05-23
下一篇:
PHP tabel函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap