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

PHP url_nav函数代码示例

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

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



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

示例1: exit

<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('database') || amessage('no_apermission');
load_cache('dbfields');
$url_type = 'data';
include 'urlsarr.inc.php';
if (empty($action)) {
    $dbtable = empty($dbtable) ? $tblprefix . 'archives' : $dbtable;
    if (!submitcheck('bdbdict')) {
        url_nav(lang('dboperate'), $urlsarr, 'dbdict');
        $dbtables = array('' => lang('select_table'));
        $query = $db->query("SHOW TABLES FROM {$dbname}");
        while ($v = $db->fetch_row($query)) {
            $dbtables[$v[0]] = $v[0];
        }
        $filterbox = lang('choose_table') . '&nbsp; &nbsp;';
        $filterbox .= "<select style=\"vertical-align: middle;\" name=\"dbtable\" onchange=\"redirect('?entry=dbdict&dbtable=' + this.options[this.selectedIndex].value);\">";
        foreach ($dbtables as $k => $v) {
            $filterbox .= "<option value=\"{$k}\"" . ($dbtable == $k ? ' selected' : '') . ">{$v}</option>";
        }
        $filterbox .= "</select>";
        tabheader($filterbox);
        tabfooter();
        $tblfields = array();
        $PRI = '';
        if ($dbtable) {
            $query = $db->query("SHOW FULL COLUMNS FROM {$dbtable}", 'SILENT');
            while ($row = $db->fetch_array($query)) {
                $tblfields[$row['Field']] = strtolower($row['Type']);
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:dbdict.inc.php


示例2: foreach

 $filterstr = '';
 foreach (array('keyword', 'viewdetail', 'caid', 'mainline', 'cnlevel', 'inconfig') as $k) {
     $filterstr .= "&{$k}=" . urlencode(${$k});
 }
 foreach ($cotypes as $coid => $cotype) {
     if ($cotype['sortable']) {
         ${"ccid{$coid}"} = isset(${"ccid{$coid}"}) ? ${"ccid{$coid}"} : 0;
         if (!empty(${"ccid{$coid}"})) {
             $filterstr .= "&ccid{$coid}=" . ${"ccid{$coid}"};
             $wheresql .= " AND ename REGEXP 'ccid{$coid}=" . ${"ccid{$coid}"} . "(&|\$)'";
         }
     }
 }
 $wheresql = $wheresql ? "WHERE " . $wheresql : "";
 if (!submitcheck('bcnodescommon')) {
     url_nav(lang('cnodeadmin'), $urlsarr, 'cnodescommon');
     echo form_str('cnodescommon', "?entry={$entry}&action={$action}{$param_suffix}&page={$page}");
     tabheader_e();
     echo "<tr><td colspan=\"2\" class=\"txt txtleft\">";
     //关键词固定显示
     echo lang('keyword') . "&nbsp; <input class=\"text\" name=\"keyword\" type=\"text\" value=\"{$keyword}\" size=\"8\" style=\"vertical-align: middle;\">&nbsp; ";
     echo "<select name=\"caid\">" . makeoption(array('0' => lang('catalog_attr')) + caidsarr($catalogs), $caid) . "</select>&nbsp; ";
     echo "<select name=\"cnlevel\">" . makeoption(array('0' => lang('cnodelevelnum'), '1' => lang('acrossleve1'), '2' => lang('acrossleve2'), '3' => lang('acrossleve3'), '4' => lang('acrossleve4')), $cnlevel) . "</select>&nbsp; ";
     echo strbutton('bfilter', 'filter0') . viewcheck('viewdetail', $viewdetail, 'tbodyfilter');
     echo "</td></tr>";
     echo "<tbody id=\"tbodyfilter\" style=\"display: " . (empty($viewdetail) ? 'none' : '') . "\">";
     $mainlinearr = array('-1' => lang('nolimit'), '0' => lang('catalog'));
     foreach ($cotypes as $k => $v) {
         if ($v['sortable']) {
             $mainlinearr[$k] = $v['cname'];
         }
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:cnodes.inc.php


示例3: exit

<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
load_cache('btagnames,channels,fchannels');
aheader();
$url_type = 'btags';
include 'urlsarr.inc.php';
url_nav(lang('originallogo'), $urlsarr, 'search');
$bclasses = array('common' => lang('common_message'), 'archive' => lang('archive_related'), 'cnode' => lang('catas_related'), 'freeinfo' => lang('freeinfo_related'), 'commu' => lang('commu_message'), 'member' => lang('member_related'), 'other' => lang('other'));
$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(lang('search_initag'), 'btagsearch', '?entry=btagsearch');
trbasic(lang('tagid_inc_string'), 'bsearch[ename]', empty($bsearch['ename']) ? '' : $bsearch['ename']);
trbasic(lang('tagname_inc_string'), 'bsearch[cname]', empty($bsearch['cname']) ? '' : $bsearch['cname']);
trbasic(lang('tag_coclass'), 'bsearch[bclass]', makeoption(array('' => lang('nolimit')) + $bclasses, empty($bsearch['bclass']) ? '' : $bsearch['bclass']), 'select');
tabfooter('bbtagsearch', lang('search'));
if (submitcheck('bbtagsearch')) {
    $ename = trim(strtolower($bsearch['ename']));
    $cname = trim($bsearch['cname']);
    $bclass = trim($bsearch['bclass']);
    if (empty($ename) && empty($cname) && empty($bclass)) {
        amessage('inputsearchstring');
    }
    tabheader(lang('initag_search_result'), '', '', '8');
    trcategory(array(lang('sn'), lang('tagname'), array(lang('use_style') . '1', 'txtL'), array(lang('use_style') . '2', 'txtL'), array(lang('use_style') . '3', 'txtL'), lang('tagclass'), lang('detail_coclass'), lang('field_type')));
    $i = 1;
    foreach ($btagnames as $k => $v) {
        if ((!$ename || in_str($ename, $v['ename'])) && (!$cname || in_str($cname, $v['cname'])) && (!$bclass || $v['bclass'] == $bclass)) {
            $sclasses = array();
            if ($v['bclass'] == 'archive') {
                foreach ($channels as $chid => $channel) {
                    $sclasses[$chid] = $channel['cname'];
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:btagsearch.inc.php


示例4: exit

<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('mcconfig') || amessage('no_apermission');
load_cache('acatalogs,channels,cotypes,commus,mcommus,matypes,inmurls,ucotypes');
$uclassarr = array('archives' => lang('archive_admin'), 'albums' => lang('openalbum'), 'comments' => lang('commentadmin'), 'replys' => lang('replyadmin'), 'areplys' => lang('areplyadmin'), 'answers' => lang('answeradmin'), 'offers' => lang('offeradmin'), 'arcadd' => lang('issuearchive'), 'mdetail' => lang('memberdetail'), 'farchives' => lang('freeinfo'), 'farcadd' => lang('issue_freeinfo'), 'mcomments' => lang('membercomment'), 'mreplys' => lang('memberreply'), 'amreplys' => lang('memberareply'), 'custom' => lang('customphp'));
if (empty($uclass)) {
    $uclass = '';
}
$uclass && ($param_suffix .= "&uclass={$uclass}");
$url_type = 'mcenter';
include 'urlsarr.inc.php';
if ($action == 'murlsedit') {
    url_nav(lang('mcenterconfig'), $urlsarr, 'mu', 10);
    $murls = fetch_arr($uclass);
    if (!submitcheck('bmurlsedit')) {
        $arr = array();
        $uclassarr = array('' => lang('alltype')) + $uclassarr;
        foreach ($uclassarr as $k => $v) {
            $arr[] = $uclass == $k ? "<b>-{$v}-</b>" : "<a href=\"?entry=murls&action=murlsedit&uclass={$k}\">{$v}</a>";
        }
        echo tab_list($arr, 10, 0);
        tabheader(lang('murl_admin') . "&nbsp; <a href=\"?entry=murls&action=murladd{$param_suffix}\">>>" . lang('add') . "</a>", 'murlsedit', "?entry=murls&action=murlsedit{$param_suffix}", '7');
        trcategory(array(lang('delete'), lang('enable'), lang('cname'), lang('type'), lang('remark'), lang('order'), lang('url'), lang('copy'), lang('edit')));
        foreach ($murls as $muid => $murl) {
            echo "<tr class=\"txt\">" . "<td class=\"txtC w30\"><input class=\"checkbox\" type=\"checkbox\" name=\"delete[{$muid}]\" value=\"{$muid}\"" . ($murl['issys'] ? ' disabled' : '') . "></td>\n" . "<td class=\"txtC w30\"><input class=\"checkbox\" type=\"checkbox\" name=\"murlsnew[{$muid}][available]\" value=\"1\"" . ($murl['available'] ? ' checked' : '') . "></td>\n" . "<td class=\"txtC w100\"><input type=\"text\" size=\"10\" name=\"murlsnew[{$muid}][cname]\" value=\"{$murl['cname']}\"></td>\n" . "<td class=\"txtC w80\">" . @$uclassarr[$murl['uclass']] . "</td>\n" . "<td class=\"txtC w160\"><input type=\"text\" size=\"25\" name=\"murlsnew[{$muid}][remark]\" value=\"{$murl['remark']}\"></td>\n" . "<td class=\"txtC w60\"><input type=\"text\" size=\"4\" name=\"murlsnew[{$muid}][vieworder]\" value=\"{$murl['vieworder']}\"></td>\n" . "<td class=\"txtL\">{$murl['url']}</td>\n" . "<td class=\"txtC w30\"><a href=\"?entry=murls&action=murlcopy&muid={$muid}\" onclick=\"return floatwin('open_murlsedit',this)\">" . lang('copy') . "</a></td>\n" . "<td class=\"txtC w30\"><a href=\"?entry=murls&action=murldetail&muid={$muid}\" onclick=\"return floatwin('open_murlsedit',this)\">" . lang('detail') . "</a></td></tr>\n";
        }
        tabfooter('bmurlsedit', lang('modify'));
        a_guide('murlsedit');
    } else {
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:murls.inc.php


示例5: exit

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('cfmcommu') || amessage('no_apermission');
load_cache('grouptypes,currencys,rprojects,channels,permissions');
sys_cache('fieldwords');
load_cache('mtpls', $sid);
include_once M_ROOT . "./include/fields.fun.php";
$cclassarr = array('score' => lang('score'), 'friend' => lang('friend'), 'flink' => lang('flink'), 'comment' => lang('comment'), 'reply' => lang('reply'), 'report' => lang('pickbug'), 'favorite' => lang('favorite'));
$action = empty($action) ? 'mcommusedit' : $action;
$url_type = 'mcufield';
include 'urlsarr.inc.php';
if ($action == 'mcommusedit') {
    $mcommus = fetch_arr();
    if (!submitcheck('bmcommusedit')) {
        url_nav(lang('memberinterconfig'), $urlsarr, 'mcommu');
        tabheader(lang('memcomitad'), 'mcommusedit', "?entry=mcommus&action=mcommusedit", '7');
        trcategory(array(lang('delete'), lang('enable'), array(lang('item_name'), 'txtL'), lang('type'), array(lang('pick_url_style'), 'txtL'), lang('copy'), lang('edit')));
        foreach ($mcommus as $cuid => $mcommu) {
            $cclass = $cclassarr[$mcommu['cclass']];
            $pickurl = '{$mspaceurl}' . $mcommu['cclass'] . '.php?mid={mid}';
            if ($mcommu['cclass'] == 'score') {
                $pickurl .= '&score=xx (xx-' . lang('score_amount') . ')';
            }
            echo "<tr class=\"txt\">" . "<td class=\"txtC w30\"><input class=\"checkbox\" type=\"checkbox\" name=\"delete[{$cuid}]\" value=\"{$cuid}\"" . ($mcommu['issystem'] || $sid ? ' disabled' : '') . "></td>\n" . "<td class=\"txtC w30\"><input class=\"checkbox\" type=\"checkbox\" name=\"mcommusnew[{$cuid}][available]\" value=\"1\"" . (empty($mcommu['available']) ? '' : ' checked') . "></td>\n" . "<td class=\"txtL w200\"><input type=\"text\" size=\"30\" maxlength=\"30\" name=\"mcommusnew[{$cuid}][cname]\" value=\"{$mcommu['cname']}\"></td>\n" . "<td class=\"txtC w60\">{$cclass}</td>\n" . "<td class=\"txtL\">{$pickurl}</td>\n" . "<td class=\"txtC w30\">" . ($mcommu['ch'] ? "<a href=\"?entry=mcommus&action=mcommucopy&cuid={$cuid}\" onclick=\"return floatwin('open_mcommusedit',this)\">" . lang('copy') . "</a>" : '-') . "</td>\n" . "<td class=\"txtC w30\"><a href=\"?entry=mcommus&action=mcommudetail&cuid={$cuid}\" onclick=\"return floatwin('open_mcommusedit',this)\">" . lang('detail') . "</a></td></tr>\n";
        }
        tabfooter('bmcommusedit', lang('modify'));
        a_guide('mcommusedit');
    } else {
        if (!empty($delete)) {
            foreach ($delete as $cuid) {
开发者ID:polarlight1989,项目名称:08cms,代码行数:30,代码来源:mcommus.inc.php


示例6: exit

<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('webparam') || amessage('no_apermission');
load_cache('players');
$ptypearr = array('media' => lang('mediaplayer'), 'flash' => lang('flashplayer'));
$url_type = 'mconfig';
include 'urlsarr.inc.php';
url_nav(lang('webparam'), $urlsarr, 'player', 12);
if ($action == 'playersedit') {
    if (!submitcheck('bplayersedit') && !submitcheck('bplayeradd')) {
        tabheader(lang('playermanager'), 'playersedit', '?entry=players&action=playersedit', '7');
        trcategory(array(lang('delete'), lang('available'), lang('playercname'), lang('playertype'), lang('defplayfileformat'), lang('order'), lang('detail')));
        foreach ($players as $plid => $player) {
            echo "<tr class=\"txt\">" . "<td class=\"txtC w40\"><input class=\"checkbox\" type=\"checkbox\" name=\"delete[{$plid}]\" value=\"{$plid}\"" . (!empty($player['issystem']) ? ' disabled' : '') . "></td>\n" . "<td class=\"txtC w40\"><input class=\"checkbox\" type=\"checkbox\" name=\"playersnew[{$plid}][available]\" value=\"1\"" . (!empty($player['available']) ? ' checked' : '') . "></td>\n" . "<td class=\"txtC\"><input type=\"text\" size=\"25\" maxlength=\"30\" name=\"playersnew[{$plid}][cname]\" value=\"{$player['cname']}\"></td>\n" . "<td class=\"txtC w100\">" . $ptypearr[$player['ptype']] . "</td>\n" . "<td class=\"txtC\"><input type=\"text\" size=\"25\" maxlength=\"50\" name=\"playersnew[{$plid}][exts]\" value=\"{$player['exts']}\"></td>\n" . "<td class=\"txtC w50\"><input type=\"text\" size=\"4\" maxlength=\"4\" name=\"playersnew[{$plid}][vieworder]\" value=\"{$player['vieworder']}\"></td>\n" . "<td class=\"txtC w50\"><a href=\"?entry=players&action=playerdetail&plid={$plid}\">" . lang('setting') . "</a></td>\n" . "</tr>\n";
        }
        tabfooter('bplayersedit', lang('modify'));
        tabheader(lang('addplayer'), 'playeradd', '?entry=players&action=playersedit');
        trbasic(lang('playercname'), 'playeradd[cname]');
        trbasic(lang('playertype'), 'playeradd[ptype]', makeoption($ptypearr), 'select');
        trbasic(lang('defplayfileformat'), 'playeradd[exts]');
        tabfooter('bplayeradd', lang('add'));
        a_guide('playersedit');
    } elseif (submitcheck('bplayeradd')) {
        if (!$playeradd['cname']) {
            amessage('inpplanam', '?entry=players&action=playersedit');
        }
        if (preg_match("/[^a-z,A-Z0-9]+/", $playeradd['exts'])) {
            amessage('fileextill', '?entry=players&action=playersedit');
        }
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:players.inc.php


示例7: trbasic

        trbasic(lang('meniteord'), 'menunew[vieworder]', '', 'text');
        tabfooter('bmenuadd');
        a_guide('menuadd');
    } else {
        $menunew['title'] = trim(strip_tags($menunew['title']));
        $menunew['url'] = trim(strip_tags($menunew['url']));
        $menunew['vieworder'] = max(0, intval($menunew['vieworder']));
        (!$menunew['title'] || !$menunew['url']) && amessage('pleinpmetitandurl');
        !$menunew['mtid'] && amessage('pombecoc');
        $db->query("INSERT INTO {$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\tissub='{$issub}', \n\t\t\t\t\tvieworder='{$menunew['vieworder']}'\n\t\t\t\t\t");
        adminlog(lang('addbackmenite'));
        updatecache('menus', $issub);
        amessage('memcenmeniteadd', axaction(6, "?entry=menus&action=menusedit{$sub_suffix}"));
    }
} elseif ($action == 'menusedit') {
    url_nav(lang('backareaconfig'), $urlsarr, $issub ? 's' : 'm', 10);
    if (!submitcheck('bmenusedit')) {
        tabheader(lang(($issub ? 'subsite' : 'msite') . '_ba_menu_manager') . "&nbsp; &nbsp; >><a href=\"?entry=menus&action=mtypeadd{$sub_suffix}\">" . lang('add_coclass') . '</a>', 'menusedit', "?entry=menus&action=menusedit{$sub_suffix}", '8');
        trcategory(array(lang('sn'), lang('title'), lang('enable'), lang('order'), lang('add'), lang('edit'), lang('delete')));
        $i = 0;
        $query = $db->query("SELECT * FROM {$tblprefix}mtypes WHERE issub={$issub} ORDER BY vieworder,mtid");
        while ($mtype = $db->fetch_array($query)) {
            $mtid = $mtype['mtid'];
            $i++;
            echo "<tr class=\"txt\">\n" . "<td class=\"txtC w30\">{$i}</td>\n" . "<td class=\"txtL\"><input type=\"text\" name=\"mtypesnew[{$mtid}][title]\" value=\"{$mtype['title']}\" size=\"25\"></td>\n" . "<td class=\"txtC w30\"></td>\n" . "<td class=\"txtC w40\"><input type=\"text\" name=\"mtypesnew[{$mtid}][vieworder]\" value=\"{$mtype['vieworder']}\" size=\"4\"></td>\n" . "<td class=\"txtC w40\">" . ($mtype['fixed'] ? '' : "<a href=\"?entry=menus&action=menuadd&mtid={$mtid}{$sub_suffix}\" onclick=\"return floatwin('open_menusedit',this)\">+" . lang('menu') . "</a>") . "</td>\n" . "<td class=\"txtC w40\">" . ($mtype['fixed'] ? '-' : "<a href=\"?entry=menus&action=mtypedetail&mtid={$mtid}{$sub_suffix}\" onclick=\"return floatwin('open_menusedit',this)\">" . lang('detail') . "</a>") . "</td>\n" . "<td class=\"txtC w40\">" . ($mtype['fixed'] ? '-' : "<a href=\"?entry=menus&action=mtypedel&mtid={$mtid}{$sub_suffix}\">" . lang('delete') . "</a>") . "</td>\n" . "</tr>";
            $query1 = $db->query("SELECT * FROM {$tblprefix}menus WHERE mtid='{$mtid}' AND isbk=0 AND issub={$issub} ORDER BY vieworder,mnid");
            while ($row = $db->fetch_array($query1)) {
                $mnid = $row['mnid'];
                $i++;
                echo "<tr class=\"txt\">\n" . "<td class=\"txtC w30\">{$i}</td>\n" . "<td class=\"txtL\">&nbsp; &nbsp; &nbsp; &nbsp; <input type=\"text\" name=\"menusnew[{$mnid}][title]\" value=\"{$row['title']}\" size=\"25\"></td>\n" . "<td class=\"txtC w30\"><input class=\"checkbox\" type=\"checkbox\" name=\"menusnew[{$mnid}][available]\" value=\"1\"" . ($row['available'] ? " checked" : "") . "></td>\n" . "<td class=\"txtC w40\"><input type=\"text\" name=\"menusnew[{$mnid}][vieworder]\" value=\"{$row['vieworder']}\" size=\"4\"></td>\n" . "<td class=\"txtC w40\">-</td>\n" . "<td class=\"txtC w40\">" . ($row['fixed'] ? '-' : "<a href=\"?entry=menus&action=menudetail&mnid={$mnid}{$sub_suffix}\" onclick=\"return floatwin('open_menusedit',this)\">" . lang('detail') . "</a>") . "</td>\n" . "<td class=\"txtC w40\">" . ($row['fixed'] ? '-' : "<a href=\"?entry=menus&action=menudel&mnid={$mnid}{$sub_suffix}\">" . lang('delete') . "</a>") . "</td>\n" . "</tr>";
            }
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:menus.inc.php


示例8: exit

<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('normal') || amessage('no_apermission');
load_cache('cotypes,channels,currencys,permissions,inurls');
load_cache('catalogs,mtpls,cnodes', $sid);
include_once M_ROOT . "./include/parse.fun.php";
include_once M_ROOT . "./include/arcedit.cls.php";
include_once M_ROOT . "./include/commu.fun.php";
$urlpre = "?entry=extend&extend=arcs&";
$action = $action ? $action : 'archivesedit';
if ($action == 'archivesedit') {
    //允许不区分栏目进行管理
    if ($urlnavtitle) {
        url_nav($urlnavtitle, $urlsarr, $urlskey);
    }
    //分析页面设置
    $nauid = empty($nauid) ? 0 : $nauid;
    $u_checked = $u_valid = -1;
    if ($nauid && ($u_url = read_cache('aurl', $nauid))) {
        $u_tplname = $u_url['tplname'];
        $u_onlyview = empty($u_url['onlyview']) ? 0 : 1;
        foreach (array('checked', 'valid') as $var) {
            ${'u_' . $var} = $u_url['setting'][$var];
        }
        $vars = array('chids', 'filters', 'lists', 'operates', 'iuids');
        foreach ($cotypes as $k => $v) {
            $vars[] = 'ccids' . $k;
        }
        foreach ($vars as $var) {
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:arcs.php


示例9: exit

<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('tpl') || amessage('no_apermission');
$url_type = 'othertpl';
include 'urlsarr.inc.php';
url_nav(lang('tplrelated'), $urlsarr, 'tcah');
if (!isset($confirm) || $confirm != 'ok') {
    $message = lang('rebuld_tplcache') . "<br><br>";
    $message .= lang('confirmclick') . ">><a href=?entry=tplcache&confirm=ok{$param_suffix}><b>" . lang('rebuild') . "</b></a><br>";
    $message .= lang('giveupclick') . ">><a href=?entry=tplconfig&action=tplbase{$param_suffix}>" . lang('goback') . "</a>";
    amessage($message);
}
clear_dir(M_ROOT . "./template/{$templatedir}/pcache/");
amessage(lang('tplcachefin'), "?entry=tplconfig&action=tplbase{$param_suffix}");
开发者ID:polarlight1989,项目名称:08cms,代码行数:16,代码来源:tplcache.inc.php


示例10: exit

<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('repu') || amessage('no_apermission');
load_cache('repugrades');
include_once M_ROOT . "./include/upload.cls.php";
include_once M_ROOT . "./include/fields.cls.php";
$url_type = 'repus';
include 'urlsarr.inc.php';
url_nav(lang('repurelate'), $urlsarr, 'grade');
if (!submitcheck('brepugradesedit')) {
    $itemstr = '';
    tabheader(lang('repugradeadmin'), 'repugradesedit', '?entry=repugrades', '7');
    trcategory(array(lang('id'), lang('repugrade') . lang('cname'), lang('rgbase'), lang('available'), lang('ico'), lang('preview')));
    $query = $db->query("SELECT * FROM {$tblprefix}repugrades ORDER BY rgid ASC");
    while ($row = $db->fetch_array($query)) {
        $rgid = $row['rgid'];
        $validstr = empty($invalid) && (!isset($oldvalue) || $row['rgbase'] > $oldvalue) ? 'Y' : '-';
        $oldvalue = $row['rgbase'];
        $invalid = $validstr != '-' ? false : true;
        $thumbstr = $row['thumb'] ? "<img src=\"" . view_atmurl($row['thumb']) . "\" height=\"18\">" : '';
        echo "<tr class=\"txtcenter txt\"><td class=\"txtC\">{$rgid}</td>\n" . "<td class=\"txtC\"><input type=\"text\" size=\"25\" name=\"repugradesnew[{$rgid}][cname]\" value=\"{$row['cname']}\"></td>\n" . "<td class=\"txtC\"><input type=\"text\" size=\"5\" name=\"repugradesnew[{$rgid}][rgbase]\" value=\"{$row['rgbase']}\"></td>\n" . "<td class=\"txtC\">{$validstr}</td>\n" . "<td class=\"txtC\">";
        echo singlemodule("repugradesnew[{$rgid}][thumb]", $row['thumb'], 'image');
        echo "</td>\n" . "<td class=\"txtC\">{$thumbstr}</td>\n" . "</tr>\n";
    }
    tabfooter('brepugradesedit', lang('modify'));
    a_guide('repugradesedit');
} else {
    $c_upload = new cls_upload();
    foreach ($repugradesnew as $rgid => $repugrade) {
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:repugrades.inc.php


示例11: defined

<?php

defined('M_COM') && defined('M_ADMIN') || exit('No Permission');
aheader();
backallow('member') || amessage('no_apermission');
$backamember = backallow('amember');
$modes = array(0 => lang('general_cert'), 1 => lang('email_cert'), 2 => lang('mobile_cert'));
load_cache('mchannels,memcerts');
foreach ($mchannels as $k => $v) {
    $mchannels[$k] = $v['cname'];
}
empty($action) && ($action = '');
$url_type = 'memcert';
include 'urlsarr.inc.php';
$action != 'check' && $action != 'detail' && url_nav(lang('memcert_manage'), $urlsarr, $action);
switch ($action) {
    case '':
        //审核列表
        if (!submitcheck('bmemcertlist')) {
            $wheresql = '';
            if (empty($keyword)) {
                $keyword = '';
            } else {
                $wheresql = " AND mname like '%{$keyword}%'";
            }
            if (empty($mcid)) {
                $mcid = '';
            } else {
                $wheresql = " AND mcid='{$mcid}'";
            }
            echo form_str('memcert_list', "?entry={$entry}&action={$action}");
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:memcerts.inc.php


示例12: empty

                    $setting[$mcaid]['list'] = $spacelist;
                }
            }
        }
        $setting = empty($setting) ? '' : addslashes(serialize($setting));
        $db->query("UPDATE {$tblprefix}mtconfigs SET setting='{$setting}' WHERE mtcid='{$mtcid}'");
        adminlog(lang('detmodspatempro'));
        updatecache('mtconfigs');
        amessage('tempprosetfin', '?entry=mtconfigs&action=mtconfigdetail&mtcid=' . $mtcid);
    }
} elseif ($action == 'mtconfigtpl' && !empty($mtcid)) {
    empty($mtconfigs[$mtcid]) && amessage('choosespatempro');
    $arctpls = $mtconfigs[$mtcid]['arctpls'];
    $url_type = 'mtdetail';
    include 'urlsarr.inc.php';
    url_nav($mtconfigs[$mtcid]['cname'], $urlsarr, 'tpl');
    if (!submitcheck('bmtconfigdetail')) {
        tabheader('[' . $mtconfigs[$mtcid]['cname'] . ']' . lang('cnt_tpl'), 'mtconfigdetail', '?entry=mtconfigs&action=mtconfigtpl&mtcid=' . $mtcid, 5);
        trcategory(array("<input class=\"checkbox\" type=\"checkbox\" name=\"chkall\" onclick=\"checkall(this.form, 'selectid', 'chkall')\">", array(lang('achannel'), 'txtL'), lang('ms_cnt_tpl'), lang('product_tpl')));
        foreach ($channels as $k => $v) {
            $archivetpl = empty($arctpls['archive'][$k]) ? '-' : (empty($mtpls[$arctpls['archive'][$k]]['cname']) ? $arctpls['archive'][$k] : $mtpls[$arctpls['archive'][$k]]['cname']);
            $producttpl = empty($arctpls['product'][$k]) ? '-' : (empty($mtpls[$arctpls['product'][$k]]['cname']) ? $arctpls['product'][$k] : $mtpls[$arctpls['product'][$k]]['cname']);
            echo "<tr class=\"txt\">\n" . "<td class=\"txtC w40\"><input class=\"checkbox\" type=\"checkbox\" name=\"selectid[{$k}]\" value=\"{$k}\"></td>\n" . "<td class=\"txtL\">{$v['cname']}</td>\n" . "<td class=\"txtC\">{$archivetpl}</td>\n" . "<td class=\"txtC\">{$producttpl}</td>\n" . "</tr>";
        }
        tabfooter();
        tabheader(lang('operate_item'));
        trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"cndeal[archive]\" value=\"1\">&nbsp;" . lang('ms_cnt_tpl'), 'tplarchive', makeoption(array('' => lang('noset')) + mtplsarr('space')), 'select');
        trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"cndeal[product]\" value=\"1\">&nbsp;" . lang('product_tpl'), 'tplproduct', makeoption(array('' => lang('noset')) + mtplsarr('space')), 'select');
        tabfooter('bmtconfigdetail');
        a_guide('mtconfigdetail');
    } else {
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:mtconfigs.inc.php


示例13: foreach

            }
        }
        if (!empty($dbsourcesnew)) {
            foreach ($dbsourcesnew as $k => $v) {
                $v['cname'] = empty($v['cname']) ? $dbsources[$k]['cname'] : $v['cname'];
                if ($v['cname'] != $dbsources[$k]['cname']) {
                    $db->query("UPDATE {$tblprefix}dbsources SET\n\t\t\t\t\t\t\t\tcname='{$v['cname']}'\n\t\t\t\t\t\t\t\tWHERE dsid='{$k}'");
                }
            }
        }
        adminlog(lang('edit_db_src'));
        updatecache('dbsources');
        amessage('dbmodfin', '?entry=dbsources&action=dbsourcesedit');
    }
} elseif ($action == 'dbsourcedetail' && $dsid) {
    url_nav(lang('tplrelated'), $urlsarr, 'db');
    empty($dbsources[$dsid]) && amessage('choosedbs', '?entry=dbsources&action=dbsourcesedit');
    $dbsource = $dbsources[$dsid];
    $dbsource['vdbpw'] = $dbsource['tdbpw'] = '';
    if (!empty($dbsource['dbpw'])) {
        $dbsource['tdbpw'] = authcode($dbsource['dbpw'], 'DECODE', md5($authkey));
        $dbsource['vdbpw'] = $dbsource['tdbpw'][0] . '********' . $dbsource['tdbpw'][strlen($dbsource['tdbpw']) - 1];
    }
    if (!submitcheck('bdbsourcedetail')) {
        tabheader(lang('edit_db_src'), 'dbsourcedetail', "?entry=dbsources&action=dbsourcedetail");
        trbasic(lang('db_src_name'), 'dbsourcenew[cname]', $dbsource['cname']);
        trbasic(lang('db_server'), 'dbsourcenew[dbhost]', $dbsource['dbhost']);
        trbasic(lang('db_user'), 'dbsourcenew[dbuser]', $dbsource['dbuser']);
        trbasic(lang('db_pwd'), 'dbsourcenew[dbpw]', $dbsource['vdbpw']);
        echo "<input type=\"hidden\" name=\"dbsourcenew[dbpw0]\" value=\"{$dbsource['dbpw']}\">\n";
        echo "<input type=\"hidden\" name=\"dsid\" value=\"{$dsid}\">\n";
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:dbsources.inc.php


示例14: min

 $numperpic = min(500, max(20, intval(@$numperpic)));
 $mcnvar = trim(@$mcnvar);
 if (!isset($ptypestr)) {
     $ptypes = empty($ptypes) ? array() : $ptypes;
     $ptypestr = implode(',', $ptypes);
 } else {
     $ptypes = explode(',', $ptypestr);
 }
 $wheresql = $mcnvar ? "WHERE mcnvar='{$mcnvar}'" : '';
 $fromsql = "FROM {$tblprefix}mcnodes";
 $filterstr = '';
 foreach (array('staticmode', 'ptypestr', 'numperpic', 'mcnvar') as $k) {
     $filterstr .= "&{$k}=" . rawurlencode(${$k});
 }
 if (!submitcheck('bcnodes')) {
     url_nav(lang('staticadmin'), $urlsarr, 'mcnodes');
     $staticarr = array('0' => lang('pascresta'), '1' => lang('actcresta'), '2' => lang('repstaurl'));
     $ptypearr = array();
     for ($i = 0; $i <= $mcn_max_addno; $i++) {
         $ptypearr[$i] = $i ? lang('addp') . $i : lang('index');
     }
     tabheader(lang('crecatcnodpagsta'), 'archives', "?entry={$entry}&action={$action}{$param_suffix}");
     trbasic(lang('stacremo'), '', makeradio('staticmode', $staticarr, $staticmode), '');
     trbasic(lang('choatpaty'), '', makecheckbox('ptypes[]', $ptypearr, $ptypes), '');
     trbasic(lang('numperpic20_500'), 'numperpic', $numperpic);
     tabfooter();
     $filtercounts = $db->result_one("SELECT count(*) {$fromsql} {$wheresql}");
     tabheader(lang('ficatcnocuo') . $filtercounts);
     $mcnvars = array('' => lang('alltype'), 'caid' => lang('catalog'));
     foreach ($cotypes as $k => $v) {
         !$v['self_reg'] && ($mcnvars['ccid' . $k] = $v['cname']);
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:static.inc.php


示例15: elseif

    } elseif (submitcheck('bfchanneladd')) {
        $fchanneladd['cname'] = trim(strip_tags($fchanneladd['cname']));
        empty($fchanneladd['cname']) && amessage('channelnamemiss', '?entry=fchannels&action=fchannelsedit');
        $db->query("INSERT INTO {$tblprefix}fchannels SET cname='{$fchanneladd['cname']}'");
        if ($chid = $db->insert_id()) {
            $db->query("CREATE TABLE {$tblprefix}farchives_{$chid} (\n\t\t\t\t\t\taid mediumint(8) unsigned NOT NULL default '0',\n\t\t\t\t\t\tPRIMARY KEY (aid))" . (mysql_get_server_info() > '4.1' ? " ENGINE=MYISAM DEFAULT CHARSET={$dbcharset}" : " TYPE=MYISAM"));
            $db->query("INSERT INTO {$tblprefix}ffields SET \n\t\t\t\t\t\tename='subject', \n\t\t\t\t\t\tcname='" . lang('message_title') . "', \n\t\t\t\t\t\tchid='{$chid}', \n\t\t\t\t\t\tissystem='1', \n\t\t\t\t\t\tavailable='1', \n\t\t\t\t\t\tinnertext='', \n\t\t\t\t\t\tlength='255', \n\t\t\t\t\t\tdatatype='text', \n\t\t\t\t\t\tnotnull='1', \n\t\t\t\t\t\tmlimit='0', \n\t\t\t\t\t\trpid='0'");
            updatecache('ffields', $chid);
            updatecache('fchannels');
        }
        adminlog(lang('add_freeinfo_channel'));
        amessage('frechaaddfin', "?entry=fchannels&action=fchannelsedit");
    }
} elseif ($action == 'ffieldadd' && $chid) {
    if (!submitcheck('bffieldadd')) {
        url_nav(lang('pluginframework'), $urlsarr, 'channel');
        tabheader(lang('add') . "&nbsp;[" . $fchannels[$chid]['cname'] . "]&nbsp;" . lang('field'), 'ffieldadd', "?entry=fchannels&action=ffieldadd&chid={$chid}", 2, 0, 1);
        $submitstr = '';
        if (empty($fieldnew['datatype'])) {
            trbasic(lang('field_type'), 'fieldnew[datatype]', makeoption($datatypearr), 'select');
            trbasic(lang('is_func_field'), 'fieldnew[isfunc]', 0, 'radio');
            tabfooter('bffieldaddpre', lang('continue'));
        } elseif (empty($baddpre1) && $fieldnew['datatype'] == 'cacc') {
            trbasic(lang('field_type'), '', $datatypearr[$fieldnew['datatype']], '');
            trhidden('fieldnew[datatype]', $fieldnew['datatype']);
            $coidsarr = array('0' => lang('catalog'));
            load_cache('cotypes');
            foreach ($cotypes as $k => $v) {
                !$v['self_reg'] && ($coidsarr[$k] = $v['cname']);
            }
            trbasic(lang('sourcecotype'), 'fieldnew[length]', makeoption($coidsarr), 'select');
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:fchannels.inc.php


示例16: floatwin

                        $teststr2 = "<a href=\"?entry=gmissions&action=urlstest{$param_suffix}&gsid={$sonid}&confirm=1&gather_test_url={$sonurl}\" onclick=\"return floatwin('open_newgmission_son',this)\" >{$lang_son}</a>";
                    }
                }
                echo "<tr class=\"txt\">" . "<td class=\"txtC w40\">{$i}</td>\n" . "<td class=\"txtL\">{$titlestr}</td>\n" . "<td class=\"txtL\">{$gurlstr}</td>\n" . "<td class=\"txtC\">{$teststr}</td>\n" . ($sonid ? "<td class=\"txtC\">{$teststr2}</td>\n" : '') . "<td class=\"txtC\">{$gurl1str}</td>\n" . "<td class=\"txtC\">{$gurl2str}</td></tr>\n";
            }
            tabfooter();
        } else {
            $surl && amessage(lang(is_array($rets) ? 'no_content_gather' : 'gather_timeout_err'));
        }
        a_guide('urlstest');
    }
} elseif ($action == 'contentstest' && $gsid) {
    //只从数据库中加入有效链接来测试
    $url_type = 'grule';
    include 'urlsarr.inc.php';
    url_nav(lang('rulemanagement'), $urlsarr, 'test');
    if (empty($confirm)) {
        $message = lang('choose_contentstest') . "<br><br>";
        $message .= lang('confirmclick') . ">><a href=?entry=gmissions&action=contentstest&gsid=" . $gsid . "&confirm=1{$param_suffix}>" . lang('start') . "</a>";
        amessage($message);
    } else {
        tabheader(lang('gather_content_rule_test'), 'gather_testc', "?{$_SERVER['QUERY_STRING']}");
        #		$counts = $db->result_one("SELECT COUNT(*) FROM {$tblprefix}gurls WHERE gsid='$gsid' AND gatherdate=0");
        if (empty($gather_test_url)) {
            $item = $db->fetch_one("SELECT guid,gurl,gurl1,gurl2,utitle FROM {$tblprefix}gurls WHERE gsid='{$gsid}' AND gatherdate=0 AND guid >= (SELECT floor(RAND() * (SELECT MAX(guid) FROM {$tblprefix}gurls))) ORDER BY guid LIMIT 1");
        } else {
            $item = array('utitle' => lang('gather_test_title'), 'gurl' => $gather_test_url, 'gurl1' => $gather_test_url1, 'gurl2' => $gather_test_url2);
        }
        if ($item) {
            trbasic(lang('current_test_netsite_title'), '', mhtmlspecialchars($item['utitle']), '');
            #			trbasic(lang('current_test_netsite'),'',"<input name=\"gather_test_url\" style=\"width:98%\" value=\"$item[gurl]\" />",'');
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:gmissions.inc.php


示例17: foreach

        if (!empty($subsitesnew)) {
            foreach ($subsitesnew as $k => $v) {
                $v['closed'] = empty($v['closed']) ? 0 : 1;
                $v['vieworder'] = max(0, intval($v['vieworder']));
                $v['sitename'] = trim($v['sitename']);
                !$v['sitename'] && ($v['sitename'] = $subsites[$k]['sitename']);
                $db->query("UPDATE {$tblprefix}subsites SET sitename='{$v['sitename']}',closed='{$v['closed']}',vieworder='{$v['vieworder']}' WHERE sid='{$k}'");
            }
        }
        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('subdatamis 

鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP url_par函数代码示例发布时间:2022-05-23
下一篇:
PHP url_maker函数代码示例发布时间: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