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

PHP trcategory函数代码示例

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

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



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

示例1: exit

<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
$action = empty($action) ? 'rcatalogsedit' : $action;
if ($action == 'rcatalogsedit') {
    if (!submitcheck('brcatalogsedit') && !submitcheck('brcatalogadd')) {
        tabheader(lang('reply_coclass_manager'), 'rcatalogsedit', '?entry=cucatalogs&action=rcatalogsedit', '4');
        trcategory(array(lang('id'), lang('cocname'), lang('order'), lang('delete')));
        $query = $db->query("SELECT * FROM {$tblprefix}cucatalogs WHERE cu='1' ORDER BY vieworder,caid");
        while ($row = $db->fetch_array($query)) {
            $caid = $row['caid'];
            echo "<tr class=\"txt\">\n" . "<td class=\"txtC w30\">{$caid}</td>\n" . "<td class=\"txtL\"><input type=\"text\" name=\"rcatalogsnew[{$caid}][title]\" value=\"" . mhtmlspecialchars($row['title']) . "\" size=\"25\"></td>\n" . "<td class=\"txtC w50\"><input type=\"text\" name=\"rcatalogsnew[{$caid}][vieworder]\" value=\"{$row['vieworder']}\" size=\"4\"></td>\n" . "<td class=\"txtC w30\"><a href=\"?entry=cucatalogs&action=rcatalogdel&caid={$caid}\">" . lang('delete') . "</a></td>\n" . "</tr>";
        }
        tabfooter('brcatalogsedit');
        tabheader(lang('add_msg_coclass'), 'rcatalogadd', '?entry=cucatalogs&action=rcatalogsedit');
        trbasic(lang('cocname'), 'rcatalognew[title]', '', 'text');
        tabfooter('brcatalogadd', lang('add'));
        a_guide('rcatalogsedit');
    } elseif (submitcheck('brcatalogsedit')) {
        if (!empty($rcatalogsnew)) {
            foreach ($rcatalogsnew as $caid => $v) {
                $v['title'] = trim(strip_tags($v['title']));
                $v['vieworder'] = max(0, intval($v['vieworder']));
                $sqlstr = "vieworder='{$v['vieworder']}'";
                $v['title'] && ($sqlstr .= ",title='{$v['title']}'");
                $db->query("UPDATE {$tblprefix}cucatalogs SET {$sqlstr} WHERE caid='{$caid}'");
            }
            updatecache('rcatalogs');
        }
        adminlog(lang('e_re_class_mlist'));
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:ucoclasses.inc.php


示例2: array

$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'];
                }
            } elseif ($v['bclass'] == 'cnode') {
                $sclasses = array('catalog' => lang('catalog'), 'coclass' => lang('coclass'));
            } elseif ($v['bclass'] == 'freeinfo') {
                foreach ($fchannels as $chid => $channel) {
                    $sclasses[$chid] = $channel['cname'];
                }
            } elseif ($v['bclass'] == 'commu') {
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:btagsearch.inc.php


示例3: lang

 }
 if (in_array('updatedate', $u_lists)) {
     $cy_arr[] = lang('updatetime');
 }
 if (in_array('refreshdate', $u_lists)) {
     $cy_arr[] = lang('retime');
 }
 if (in_array('enddate', $u_lists)) {
     $cy_arr[] = lang('endtime');
 }
 if (in_array('storage', $u_lists)) {
     $cy_arr[] = lang('stock');
 }
 $cy_arr[] = lang('price');
 $cy_arr[] = lang('admin');
 trcategory($cy_arr);
 $itemstr = '';
 while ($row = $db->fetch_array($query)) {
     cu_checkend($row, 'offer');
     $selectstr = "<input class=\"checkbox\" type=\"checkbox\" name=\"selectid[{$row['cid']}]\" value=\"{$row['cid']}\">";
     $subjectstr = "<a href=\"" . view_arcurl($row) . "\" target=\"_blank\">" . mhtmlspecialchars($row['asubject']) . "</a>";
     $catalogstr = @$catalogs[$row['caid']]['title'];
     $uclassstr = $row['ucid'] ? $ucidsarr[$row['ucid']] : '-';
     $channelstr = @$channels[$row['chid']]['cname'];
     foreach ($ucotypes as $k => $v) {
         if (in_array('uccid' . $k, $u_lists) && $v['cclass'] == 'offer') {
             $ucoclasses = read_cache('ucoclasses', $k);
             ${'uccid' . $k . 'str'} = @$ucoclasses[$row['uccid' . $k]]['title'];
         }
     }
     $checkstr = $row['checked'] ? 'Y' : '-';
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:offers.inc.php


示例4: aheader

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) {
                if ($mcommus[$cuid]['issystem']) {
                    continue;
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:mcommus.inc.php


示例5: mcmessage

     $order['delstate'] && $order['state'] == -2 && $db->query("DELETE FROM {$tblprefix}purchases WHERE oid='{$oid}'");
     //删除购物记录
     mcmessage('orddelfin', $forward);
 } else {
     tabheader(lang('ordersbasedset'), 'orderdetail', '?action=orders&oid=' . $oid . '&forward=' . urlencode($forward));
     trbasic(lang('orderssncode'), '', $order['ordersn'], '');
     trbasic(lang('ordersstate'), '', $statearr[$order['state']], '');
     trbasic(lang('seller'), '', $order['tomname'], '');
     trbasic(lang('goodsfeeyuan'), '', $order['orderfee'], '');
     trbasic(lang('shipfeeyuan'), '', $order['shipingfee'], '');
     trbasic(lang('orderfeeamountyuan'), '', $order['totalfee'], '');
     trbasic(lang('payedcashyuan'), '', $order['payed'], '');
     trbasic(lang('shiping'), '', lang($order['shipingmode'] ? "shipingfee{$order['shipingmode']}" : 'noshiping'), '');
     tabfooter();
     tabheader(lang('ordersgoodslist'), '', '', 5);
     trcategory(array(lang('goodscname'), lang('catalog'), lang('channel'), lang('price'), lang('amount')));
     $query = $db->query("SELECT cu.*,cu.createdate AS ucreatedate,a.sid,a.createdate,a.caid,a.chid,a.customurl,a.subject AS asubject FROM {$tblprefix}purchases cu LEFT JOIN {$tblprefix}archives a ON (a.aid=cu.aid) WHERE oid='{$oid}'");
     while ($item = $db->fetch_array($query)) {
         $cid = $item['cid'];
         $item['arcurl'] = view_arcurl($item);
         $item['catalog'] = empty($catalogs[$item['caid']]) ? lang('nocata') : $catalogs[$item['caid']]['title'];
         $item['channel'] = $channels[$item['chid']]['cname'];
         $item['createdate'] = date("{$dateformat}", $item['ucreatedate']);
         echo "<tr>" . "<td class=\"item2\"><a href=\"{$item['arcurl']}\" target=\"_blank\">" . mhtmlspecialchars($item['asubject']) . "</a></td>\n" . "<td class=\"item\">{$item['catalog']}</td>\n" . "<td class=\"item\">{$item['channel']}</td>\n" . "<td class=\"item\">{$item['price']}</td>\n" . "<td class=\"item\" width=\"70\">{$item['nums']}</td></tr>\n";
     }
     tabfooter();
     if ($order['state'] == 1 || !$order['state'] && @$cfg_ordermode) {
         tabheader(lang('paymode'));
         trbasic(lang('paymode'), 'paymodenew', makeradio('ordernew[paymode]', $pmodearr, -1), '');
         tabfooter();
         print '<input class="button" type="submit" name="borderpay" value="' . lang('confirm_pay') . '"/>';
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:orders.inc.php


示例6: array_filter

        $tos = array_filter(explode(',', $pmnew['tonames']));
        $count = 0;
        $pmnew['title'] = $pmnew['title'] ? $pmnew['title'] : ($pmnew['content'] ? $pmnew['content'] : '');
        foreach ($tos as $to) {
            if (uc_pm_send($uid, $to, $pmnew['title'], $pmnew['content'], 1, 0, 1)) {
                $count++;
            }
        }
        $count ? mcmessage($count . lang('pmsendfinish'), "?action=pmbox&box={$box}&page={$page}") : mcmessage(lang('pmsenderr'), M_REFERER);
    }
} elseif (empty($fid) && empty($pmid)) {
    if (!submitcheck('bpmbox')) {
        //各收件箱
        $ucpm = uc_pm_list($uid, $page, $mrowpp, 'inbox', $box, 30);
        tabheader(lang('pmlist'), 'pmsedit', "?action=pmbox&box={$box}&page={$page}", 6);
        trcategory(array($box == 'announcepm' ? '' : "<input class=\"checkbox\" type=\"checkbox\" name=\"chkall\" class=\"category\" onclick=\"checkall(this.form, '', 'chkall')\">" . lang('del'), array(lang('title'), 'left'), lang('senduser'), lang('state'), lang('senddate'), lang('content')));
        if ($ucpm['data']) {
            foreach ($ucpm['data'] as $pm) {
                echo "<tr title=\"" . mhtmlspecialchars($pm['message']) . "\">\n<td align=\"left\" width=\"40\">" . ($box == 'announcepm' ? '' : "<input class=\"checkbox\" type=\"checkbox\" name=\"" . ($pm['msgformid'] ? "fids[{$pm['msgformid']}]\" value=\"{$pm['msgform']}" : "pmids[{$pm['pmid']}]\" value=\"{$pm['pmid']}") . '">') . "</td>\n" . "<td class=\"item2\">" . mhtmlspecialchars($pm['subject']) . "</td>\n" . "<td align=\"center\" width=\"120\">" . ($pm['msgfromid'] ? $pm['msgfrom'] : lang('syspm')) . "</td>\n" . "<td align=\"center\" width=\"40\">" . ($box == 'announcepm' ? '-' : lang($pm['new'] ? 'noread' : 'read')) . "</td>\n" . "<td align=\"center\" width=\"80\">" . date($dateformat, $pm['dateline']) . "</td>\n" . "<td align=\"center\" width=\"40\"><a href=\"?action=pmbox&box={$box}&page={$page}&" . ($pm['msgfromid'] ? "fid={$pm['msgfromid']}" : "pmid={$pm['pmid']}") . "\">" . lang('look') . "</a></td></tr>\n";
            }
        } else {
            echo '<tr class="item2" height="50"><td align="center" colspan="6">' . lang('nonepm') . '</td></tr>';
        }
        echo multi($ucpm['count'], $mrowpp, $page, "?action=pmbox");
        $box == 'announcepm' ? tabfooter() : tabfooter('bpmbox', lang('delete'));
    } else {
        //删除
        empty($fids) && empty($pmids) && mcmessage(lang('choosedeltem'), "?action=pmbox&box={$box}&page={$page}");
        is_array($fids) || ($fids = array($fids));
        is_array($pmids) || ($pmids = array($pmids));
        if ($fids) {
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:pmuc.inc.php


示例7: tabfooter

     tabfooter();
     $pagetmp = $page;
     do {
         $query = $db->query("SELECT * {$fromsql} {$wheresql} ORDER BY cid DESC LIMIT " . ($pagetmp - 1) * $mrowpp . ",{$mrowpp}");
         $pagetmp--;
     } while (!$db->num_rows($query) && $pagetmp);
     $itemstr = '';
     while ($item = $db->fetch_array($query)) {
         $createdatestr = date("{$dateformat}", $item['createdate']);
         $checkedstr = $item['checked'] ? 'Y' : '-';
         $itemstr .= "<tr><td class=\"item\" width=\"30\"><input class=\"checkbox\" type=\"checkbox\" name=\"selectid[{$item['cid']}]\" value=\"{$item['cid']}\"></td>\n" . "<td class=\"item\" width=\"30\">{$item['fromid']}</td>\n" . "<td class=\"item\"><a href=\"{$mspaceurl}index.php?mid={$item['fromid']}\" target=\"_blank\">{$item['fromname']}</a></td>\n" . "<td class=\"item\" width=\"60\">{$createdatestr}</td>\n" . "<td class=\"item\" width=\"100\"><a href=\"?action={$action}&deal=agree&cid={$item['cid']}\">" . lang('agree') . "</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=mfriends{$filterstr}");
     tabheader(lang('needlist'), '', '', 11);
     trcategory(array("<input class=\"checkbox\" type=\"checkbox\" name=\"chkall\" class=\"category\" onclick=\"checkall(this.form, 'selectid', 'chkall')\">", lang('id'), lang('membercname'), lang('needtime'), lang('operate')));
     echo $itemstr;
     tabfooter();
     echo $multi;
     tabheader(lang('operateitem'));
     trbasic(lang('choose_item'), '', "<input class=\"checkbox\" type=\"checkbox\" name=\"frienddeal[delete]\" value=\"1\">&nbsp;" . lang('delete') . $listname . "&nbsp;<input class=\"checkbox\" type=\"checkbox\" name=\"frienddeal[pass]\" value=\"1\">&nbsp;" . lang('check') . $listname, '');
     tabfooter('bfriendsedit');
 } else {
     if (empty($frienddeal)) {
         mcmessage('selectoperateitem', M_REFERER);
     }
     if (empty($selectid)) {
         mcmessage('chooseoperatemember', M_REFERER);
     }
     if (!empty($frienddeal['delete'])) {
         $db->query("DELETE FROM {$tblprefix}mfriends WHERE cid in (" . join(',', $selectid) . ") AND mid={$memberid}");
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:amfriends.inc.php


示例8: exit

<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('cfcommu') || amessage('no_apermission');
load_cache('ucotypes');
$cclassarr = array('comment' => lang('comment'), 'answer' => lang('answer'), 'purchase' => lang('purchase'), 'offer' => lang('offer'), 'reply' => lang('reply'), 'report' => lang('report'));
if ($action == 'ucotypesedit') {
    $url_type = 'commu';
    include 'urlsarr.inc.php';
    url_nav(lang('docinterconfig'), $urlsarr, 'coclass');
    if (!submitcheck('bucotypesedit') && !submitcheck('bucotypesadd')) {
        tabheader(lang('ucotype_manager'), 'ucotypesedit', '?entry=ucotypes&action=ucotypesedit', '10');
        trcategory(array(lang('id'), lang('cotype_name'), lang('commu_type'), lang('order'), lang('delete'), lang('setting'), lang('coclass')));
        foreach ($ucotypes as $k => $ucotype) {
            echo "<tr class=\"txt\">\n" . "<td class=\"txtC w35\">{$k}</td>\n" . "<td class=\"txtL\"><input type=\"text\" size=\"30\" maxlength=\"30\" name=\"ucotypesnew[{$k}][cname]\" value=\"{$ucotype['cname']}\"></td>\n" . "<td class=\"txtC\">" . $cclassarr[$ucotype['cclass']] . "</td>\n" . "<td class=\"txtC w40\"><input type=\"text\" size=\"4\" maxlength=\"4\" name=\"ucotypesnew[{$k}][vieworder]\" value=\"{$ucotype['vieworder']}\"></td>\n" . "<td class=\"txtC w40\"><a href=\"?entry=ucotypes&action=ucotypesdelete&ucoid={$k}\">" . lang('delete') . "</a></td>\n" . "<td class=\"txtC w40\"><a href=\"?entry=ucotypes&action=ucotypedetail&ucoid={$k}\" onclick=\"return floatwin('open_ucotypesedit',this)\">" . lang('setting') . "</a></td>\n" . "<td class=\"txtC w40\"><a href=\"?entry=ucoclass&action=ucoclassedit&ucoid={$k}\" onclick=\"return floatwin('open_ucotypesedit',this)\">" . lang('admin') . "</a></td>\n" . "</tr>";
        }
        tabfooter('bucotypesedit', lang('modify'));
        tabheader(lang('add_ucotype'), 'ucotypesadd', '?entry=ucotypes&action=ucotypesedit', 2, 0, 1);
        trbasic(lang('cotype_name'), 'ucotypeadd[cname]');
        trbasic(lang('commu_type'), '', makeradio('ucotypeadd[cclass]', $cclassarr), '');
        tabfooter('bucotypesadd', lang('add'));
        $submitstr = '';
        $submitstr .= makesubmitstr('ucotypeadd[cname]', 1, 0, 0, 30);
        check_submit_func($submitstr);
        a_guide('ucotypesedit');
    } elseif (submitcheck('bucotypesedit')) {
        if (!empty($ucotypesnew)) {
            foreach ($ucotypesnew as $k => $ucotype) {
                $ucotype['vieworder'] = max(0, intval($ucotype['vieworder']));
                $ucotype['cname'] = trim(strip_tags($ucotype['cname']));
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:ucotypes.inc.php


示例9: foreach

    $itemrecord = '';
    foreach ($records as $recordstr) {
        $record = explode("\t", $recordstr);
        if (empty($record[1])) {
            continue;
        }
        $record[1] = date('y-n-j H:i', $record[1]);
        $itemrecord .= "<tr class=\"txt\"><td class=\"txtC w40\">{$record['2']}</td>\n" . "<td class=\"txtL w80\">{$record['3']}</td>\n" . "<td class=\"txtC w80\">{$record['4']}</td>\n" . "<td class=\"txtC w100\">{$record['5']}</td>\n" . "<td class=\"txtC\">{$record['6']}</td>\n" . "<td class=\"txtC\">{$record['7']}</td>\n" . "<td class=\"txtC w110\">{$record['1']}</td></tr>\n";
    }
    tabheader(lang('adminoperate'), '', '', 7);
    trcategory(array(lang('userid'), lang('usercname'), lang('usergroup'), 'IP' . lang('address'), lang('operate'), lang('detail'), lang('time')));
    echo $itemrecord;
    tabfooter();
    echo $multi;
} elseif ($action == 'currencylog') {
    url_nav(lang('sitelogs'), $urlsarr, 'currency');
    $itemrecord = '';
    foreach ($records as $recordstr) {
        $record = explode("\t", $recordstr);
        if (empty($record[1])) {
            continue;
        }
        $record[1] = date('y-n-j H:i', $record[1]);
        $itemrecord .= "<tr class=\"txt\"><td class=\"txtC w40\">{$record['2']}</td>\n" . "<td class=\"txtL w80\">{$record['3']}</td>\n" . "<td class=\"txtC w60\">{$record['4']}</td>\n" . "<td class=\"txtC w40\">{$record['5']}</td>\n" . "<td class=\"txtC w40\">{$record['6']}</td>\n" . "<td class=\"txtC\">{$record['7']}</td>\n" . "<td class=\"txtC w110\">{$record['1']}</td></tr>\n";
    }
    tabheader(lang('crrecord'), '', '', 7);
    trcategory(array(lang('userid'), lang('usercname'), lang('currencytype'), lang('mode1'), lang('amount'), lang('reason'), lang('time')));
    echo $itemrecord;
    tabfooter();
    echo $multi;
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:records.inc.php


示例10: adminlog

        $db->query("INSERT INTO {$tblprefix}usualurls SET \n\t\t\t\t\ttitle='{$usualurlnew['title']}', \n\t\t\t\t\turl='{$usualurlnew['url']}', \n\t\t\t\t\tlogo='{$usualurlnew['logo']}', \n\t\t\t\t\tpmid='{$usualurlnew['pmid']}', \n\t\t\t\t\tsids='{$usualurlnew['sids']}', \n\t\t\t\t\tnewwin='{$usualurlnew['newwin']}',\n\t\t\t\t\tonclick='{$usualurlnew['onclick']}',\n\t\t\t\t\tactsid='{$usualurlnew['actsid']}',\n\t\t\t\t\tvieworder='{$usualurlnew['vieworder']}',\n\t\t\t\t\tismc='{$ismc}'\n\t\t\t\t\t");
        adminlog(lang('addusualurl'));
        $c_upload->closure(1, $db->insert_id(), 'usualurls');
        updatecache('usualurls');
        amessage('usuaddfin', "?entry=usualurls&action=usualurlsedit{$mc_suffix}");
    }
} elseif ($action == 'usualurlsedit') {
    url_nav(lang($ismc ? 'mcenterconfig' : 'backareaconfig'), $urlsarr, $ismc ? 'musual' : 'ausual', 10);
    $usualurls = array();
    $query = $db->query("SELECT * FROM {$tblprefix}usualurls WHERE ismc='{$ismc}' ORDER BY vieworder,uid");
    while ($row = $db->fetch_array($query)) {
        $usualurls[$row['uid']] = $row;
    }
    if (!submitcheck('busualurlsedit')) {
        tabheader(lang('urlusualurlmana', $mc_str) . "&nbsp; &nbsp; >><a href=\"?entry=usualurls&action=usualurladd{$mc_suffix}\">" . lang('aaddusualurl') . '</a>', 'usualurlsedit', "?entry=usualurls&action=usualurlsedit{$mc_suffix}", '8');
        trcategory(array("<input class=\"checkbox\" type=\"checkbox\" name=\"chkall\" onclick=\"checkall(this.form, 'delete', 'chkall')\">" . lang('del'), lang('title'), 'URL', lang('enable'), lang('order'), lang('edit')));
        foreach ($usualurls as $k => $v) {
            echo "<tr class=\"txt\">\n" . "<td class=\"txtC w40\"><input class=\"checkbox\" type=\"checkbox\" name=\"delete[{$k}]\" value=\"{$k}\"></td>\n" . "<td class=\"txtL\"><input type=\"text\" name=\"usualurlsnew[{$k}][title]\" value=\"{$v['title']}\" size=\"30\"></td>\n" . "<td class=\"txtL\"><input type=\"text\" name=\"usualurlsnew[{$k}][url]\" value=\"{$v['url']}\" size=\"50\"></td>\n" . "<td class=\"txtC w30\"><input class=\"checkbox\" type=\"checkbox\" name=\"usualurlsnew[{$k}][available]\" value=\"1\"" . ($v['available'] ? " checked" : "") . "></td>\n" . "<td class=\"txtC w40\"><input type=\"text\" name=\"usualurlsnew[{$k}][vieworder]\" value=\"{$v['vieworder']}\" size=\"4\"></td>\n" . "<td class=\"txtC w40\"><a href=\"?entry=usualurls&action=usualurldetail&uid={$k}{$mc_suffix}\" onclick=\"return floatwin('open_usualurlsedit',this)\">" . lang('detail') . "</a></td>\n" . "</tr>";
        }
        tabfooter('busualurlsedit');
        a_guide('usualurlsedit');
    } else {
        if (!empty($delete)) {
            foreach ($delete as $k) {
                $db->query("DELETE FROM {$tblprefix}usualurls WHERE uid='{$k}'");
                unset($usualurlsnew[$k]);
            }
        }
        if (!empty($usualurlsnew)) {
            foreach ($usualurlsnew as $k => $v) {
                $v['title'] = trim(strip_tags($v['title']));
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:usualurls.inc.php


示例11: ON

         $query = $db->query("SELECT cu.*,cu.createdate AS ucreatedate,a.sid,a.createdate,a.caid,a.chid,a.customurl,a.subject AS asubject FROM {$tblprefix}purchases cu LEFT JOIN {$tblprefix}archives a ON (a.aid=cu.aid) {$wheresql} ORDER BY cu.cid DESC LIMIT " . ($pagetmp - 1) * $atpp . ",{$atpp}");
         $pagetmp--;
     } while (!$db->num_rows($query) && $pagetmp);
     $itemstr = '';
     while ($item = $db->fetch_array($query)) {
         $cid = $item['cid'];
         $item['arcurl'] = view_arcurl($item);
         $item['catalog'] = @$catalogs[$item['caid']]['title'];
         $item['createdate'] = date("{$dateformat}", $item['ucreatedate']);
         $item['orderstr'] = $item['oid'] ? "<a href=\"?entry=orders&action=orderdetail&oid={$item['oid']}{$param_suffix}\">" . lang('look') . "</a>" : '-';
         $itemstr .= "<tr class=\"txt\"><td class=\"txtC w40\"><input class=\"checkbox\" type=\"checkbox\" name=\"selectid[{$cid}]\" value=\"{$cid}\"></td>\n" . "<td class=\"txtL\"><a href=\"{$item['arcurl']}\" target=\"_blank\">" . mhtmlspecialchars($item['asubject']) . "</a></td>\n" . "<td class=\"txtC w80\">{$item['catalog']}</td>\n" . "<td class=\"txtC w80\">{$item['mname']}</td>\n" . "<td class=\"txtC w40\">{$item['nums']}</td>\n" . "<td class=\"txtC w40\">{$item['orderstr']}</td>\n" . "<td class=\"txtC w80\">{$item['createdate']}</td></tr>\n";
     }
     $counts = $db->result_one("SELECT count(*) FROM {$tblprefix}purchases cu LEFT JOIN {$tblprefix}archives a ON (a.aid=cu.aid) {$wheresql}");
     $multi = multi($counts, $atpp, $page, "?entry=purchases&action=purchasesedit{$param_suffix}{$filterstr}");
     tabheader(lang('goodslist') . "&nbsp;&nbsp;&nbsp;&nbsp;<input class=\"checkbox\" type=\"checkbox\" name=\"select_all\" value=\"1\">&nbsp;" . lang('selectallpage'), '', '', 9);
     trcategory(array("<input class=\"checkbox\" type=\"checkbox\" name=\"chkall\" onclick=\"checkall(this.form, 'selectid', 'chkall')\">" . lang('del'), lang('goodscname'), lang('catalog'), lang('purchasemember'), lang('amount'), lang('orders'), lang('add_time')));
     echo $itemstr;
     tabfooter();
     echo $multi;
     echo "<input class=\"button\" type=\"submit\" name=\"barcsedit\" value=\"" . lang('submit') . "\">";
 } else {
     if (empty($selectid) && empty($select_all)) {
         amessage('selectgoods', M_REFERER);
     }
     if (!empty($select_all)) {
         $selectid = array();
         $npage = empty($npage) ? 1 : $npage;
         if (empty($pages)) {
             $counts = $db->result_one("SELECT count(*) FROM {$tblprefix}purchases cu LEFT JOIN {$tblprefix}archives a ON (a.aid=cu.aid) {$wheresql}");
             $pages = @ceil($counts / $atpp);
         }
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:purchases.inc.php


示例12: while

     $pagetmp = $page;
     do {
         $query = $db->query("SELECT * FROM {$tblprefix}mtrans {$wheresql} ORDER BY trid DESC LIMIT " . ($pagetmp - 1) * $atpp . ",{$atpp}");
         $pagetmp--;
     } while (!$db->num_rows($query) && $pagetmp);
     $itemstr = '';
     while ($row = $db->fetch_array($query)) {
         $createdatestr = date("{$dateformat}", $row['createdate']);
         $checkstr = $row['checked'] ? 'Y' : "<input class=\"checkbox\" type=\"checkbox\" name=\"checkid[{$row['trid']}]\" value=\"{$row['trid']}\">";
         $detailstr = $row['checked'] ? '-' : "<a href=\"?entry=mtrans&action=mtrandetail&trid={$row['trid']}\" onclick=\"return floatwin('open_transdetail',this)\">" . lang('detail') . "</a>";
         $itemstr .= "<tr class=\"txt\">\n" . "<td class=\"txtC w50\"><input class=\"checkbox\" type=\"checkbox\" name=\"delete[{$row['trid']}]\" value=\"{$row['trid']}\"></td>\n" . "<td class=\"txtL\">{$row['mname']}</td>\n" . "<td class=\"txtC\">" . $mchannels[$row['fromid']]['cname'] . "</td>\n" . "<td class=\"txtC\">" . $mchannels[$row['toid']]['cname'] . "</td>\n" . "<td class=\"txtC w50\">{$checkstr}</td>\n" . "<td class=\"txtC w70\">{$createdatestr}</td>\n" . "<td class=\"txtC w30\">{$detailstr}</td>\n" . "</tr>\n";
     }
     $counts = $db->result_one("SELECT count(*) FROM {$tblprefix}mtrans {$wheresql}");
     $multi = multi($counts, $atpp, $page, "?entry=mtrans&action=mtransedit{$filterstr}");
     tabheader(lang('memchanaltli'), '', '', 8);
     trcategory(array("<input class=\"checkbox\" type=\"checkbox\" name=\"chkdel\" onclick=\"checkall(this.form,'delete','chkdel')\">" . lang('del'), lang('member_cname'), lang('sourcechannel'), lang('targetchannel'), "<input class=\"checkbox\" type=\"checkbox\" name=\"chkcheck\" onclick=\"checkall(this.form,'checkid','chkcheck')\">" . lang('check'), lang('add_date'), lang('detail')));
     echo $itemstr;
     tabfooter();
     echo $multi;
     echo "<input class=\"button\" type=\"submit\" name=\"bmtransedit\" value=\"" . lang('submit') . "\">";
 } else {
     if (empty($delete) && empty($checkid)) {
         amessage('selectaltrec', "?entry=mtrans&action=mtransedit&page={$page}{$filterstr}");
     }
     if (!empty($delete)) {
         $db->query("DELETE FROM {$tblprefix}mtrans WHERE trid " . multi_str($delete));
     }
     if (!empty($checkid)) {
         $actuser = new cls_userinfo();
         foreach ($checkid as $trid) {
             //?????????????????????????????????????????
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:mtrans.inc.php


示例13: while

         $pagetmp--;
     } while (!$db->num_rows($query) && $pagetmp);
     $stritem = '';
     while ($item = $db->fetch_array($query)) {
         $pid = $item['pid'];
         $pmodestr = $pmodearr[$item['pmode']];
         $poidstr = empty($item['poid']) ? '-' : $poids[$item['poid']];
         $sendstr = date("{$dateformat}", $item['senddate']);
         $receivestr = empty($item['receivedate']) ? '-' : date("{$dateformat}", $item['receivedate']);
         $transstr = empty($item['transdate']) ? '-' : date("{$dateformat}", $item['transdate']);
         $stritem .= "<tr class=\"txt\"><td class=\"txtC w30\"><input class=\"checkbox\" type=\"checkbox\" name=\"selectid[{$pid}]\" value=\"{$pid}\"></td>\n" . "<td class=\"txtL\">{$item['mname']}</td>\n" . "<td class=\"txtC w80\">{$item['amount']}</td>\n" . "<td class=\"txtC w60\">{$pmodestr}</td>\n" . "<td class=\"txtC w60\">{$poidstr}</td>\n" . "<td class=\"txtC w80\">{$sendstr}</td>\n" . "<td class=\"txtC w80\">{$receivestr}</td>\n" . "<td class=\"txtC w80\">{$transstr}</td>\n" . "<td class=\"txtC w30\"><a href=\"?entry=pays&action=paydetail&pid={$pid}\">" . lang('look') . "</a></td></tr>\n";
     }
     $counts = $db->result_one("SELECT count(*) FROM {$tblprefix}pays {$wheresql}");
     $multi = multi($counts, $atpp, $page, "?entry=pays&action=paysedit{$filterstr}");
     tabheader(lang('payrecolist') . "&nbsp;&nbsp;&nbsp;&nbsp;<input class=\"checkbox\" type=\"checkbox\" name=\"select_all\" value=\"1\">&nbsp;" . lang('selectallpage'), '', '', 9);
     trcategory(array("<input class=\"checkbox\" type=\"checkbox\" name=\"chkall\" onclick=\"checkall(this.form, 'selectid', 'chkall')\">", lang('paymember'), lang('payamount'), lang('paymode'), lang('payinter'), lang('recodate'), lang('arrivedate'), lang('savdate'), lang('detail')));
     echo $stritem;
     tabfooter();
     echo $multi;
     $receivearr = array('0' => lang('noarrive'), '1' => lang('arrived'));
     tabheader(lang('operate_item'));
     trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[delete]\" value=\"1\">&nbsp;" . lang('delpayrec'), '', lang('onlynoartrarecdel'), '');
     trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[receive]\" value=\"1\">&nbsp;" . lang('setarrsta'), 'arcreceive', makeradio('arcreceive', $receivearr, 1), '');
     trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[trans]\" value=\"1\">&nbsp;" . lang('formemcasaccsav'), '', lang('payarrcansav'), '');
     tabfooter('barcsedit');
 } else {
     if (empty($arcdeal) && empty($dealstr)) {
         amessage('selectoperateitem', "?entry=pays&action=paysedit&page={$page}{$filterstr}");
     }
     if (empty($selectid) && empty($select_all)) {
         amessage('selectpayrec', "?entry=pays&action=paysedit&page={$page}{$filterstr}");
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:pays.inc.php


示例14: array

         $infos = array();
         $fp = fopen(M_ROOT . './dynamic/' . $backupdir . '/' . $expfile, 'rb');
         $identify = explode(',', base64_decode(preg_replace("/^# DatafileID:\\s*(\\w+).*/s", "\\1", fgets($fp, 256))));
         fclose($fp);
         $infos['filename'] = $expfile;
         $infos['createdate'] = date("{$dateformat} {$timeformat}", @filemtime(M_ROOT . './dynamic/' . $backupdir . '/' . $expfile));
         $infos['filesize'] = ceil(@filesize(M_ROOT . './dynamic/' . $backupdir . '/' . $expfile) / 1024);
         $infos['cmsname'] = empty($identify[1]) ? '' : $identify[1];
         $infos['version'] = empty($identify[2]) ? '' : $identify[2];
         $infos['volume'] = empty($identify[3]) ? '' : $identify[3];
         $infos['download'] = "<a href=\"?entry=database&action=download&filename={$infos['filename']}\">" . lang('download') . "</a>";
         $infos['import'] = $infos['volume'] == '1' && $infos['cmsname'] == '08CMS' ? "<a href=\"?entry=database&action=dbimport&bdbimport=1&filename={$infos['filename']}\">" . lang('import') . "</a>" : "-";
         $itemstr .= "<tr class=\"txt\"><td class=\"txtC\"><input class=\"checkbox\" type=\"checkbox\" name=\"selectid[{$infos['filename']}]\" value=\"{$infos['filename']}\">\n" . "<td class=\"txtL\"><a href=\"" . $cms_abs . "dynamic/{$backupdir}/{$infos['filename']}\">{$infos['filename']}</a></td>\n" . "<td class=\"txtC\">{$infos['version']}</td>\n" . "<td class=\"txtC\">{$infos['volume']}</td>\n" . "<td class=\"txtC\">{$infos['filesize']}</td>\n" . "<td class=\"txtC\">{$infos['createdate']}</td>\n" . "<td class=\"txtC\">{$infos['download']}</td>\n" . "<td class=\"txtC\">{$infos['import']}</td></tr>\n";
     }
     tabheader(lang('backup_file_list'), 'dbimport', '?entry=database&action=dbimport', 8);
     trcategory(array("<input class=\"checkbox\" type=\"checkbox\" name=\"chkall\" class=\"category\" onclick=\"checkall(this.form)\">", lang('backup_file_name'), lang('version'), lang('volume'), lang('sizek'), lang('backup_time'), lang('download'), lang('import')));
     echo $itemstr;
     tabfooter('bbddelete', lang('delete'));
     a_guide('dbimport');
 } elseif (submitcheck('bbddelete')) {
     empty($selectid) && amessage('selectbackupfile', '?entry=database&action=dbimport');
     foreach ($selectid as $filename) {
         @unlink(M_ROOT . './dynamic/' . $backupdir . '/' . $filename);
     }
     adminlog(lang('del_db_backup_file'));
     amessage('backupfiledelfinish', '?entry=database&action=dbimport');
 } elseif (submitcheck('bdbimport')) {
     empty($filename) && amessage('selectbackupfile', '?entry=database&action=dbimport');
     $volume = empty($volume) ? 1 : intval($volume);
     $datafile = M_ROOT . './dynamic/' . $backupdir . '/' . $filename;
     $sqldump = '';
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:database.inc.php


示例15: exit

<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
load_cache('channels,catalogs,cotypes');
include_once M_ROOT . "./include/fields.cls.php";
include_once M_ROOT . "./include/fields.fun.php";
if (empty($action)) {
    tabheader(lang('contseaurl'), '', '', '8');
    trcategory(array(lang('sn'), lang('channel_name'), lang('searformurl'), lang('searesurl'), lang('more')));
    $i = 0;
    $channels = array(0 => array('cname' => lang('all_channel'))) + $channels;
    foreach ($channels as $k => $channel) {
        $i++;
        $surlstr = "search.php" . ($k ? "?chid={$k}" : '');
        $rurlstr = "search.php?searchsubmit=1" . ($k ? "&chid={$k}" : '');
        echo "<tr class=\"txt\">" . "<td class=\"txtC w30\">{$i}</td>\n" . "<td class=\"txtL w120\">{$channel['cname']}</td>\n" . "<td class=\"txtL\">{\$cms_abs}{$surlstr}</td>\n" . "<td class=\"txtL\"><a href=\"{$rurlstr}\" target=\"_blank\">{\$cms_abs}{$rurlstr}</a></td>\n" . "<td class=\"txtC w40\"><a href=\"?entry=searchs&action=searchdetail&chid={$k}\">" . lang('setting') . "</a></td>\n" . "</tr>\n";
    }
    tabfooter();
    a_guide('searchs');
} elseif ($action == 'searchdetail') {
    $chid = empty($chid) ? 0 : $chid;
    $searchword = empty($searchword) ? '' : cutstr(trim($searchword), 50, '');
    $searchmode = empty($searchmode) ? 'subject' : trim($searchmode);
    $caid = empty($caid) ? 0 : $caid;
    $indays = empty($indays) ? 0 : max(0, intval($indays));
    $outdays = empty($outdays) ? 0 : ma 

鲜花

握手

雷人

路过

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

请发表评论

全部评论

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