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


PHP trbasic函数代码示例

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


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

示例1: shipingmodule

function shipingmodule($save = 0)
{
    global $shiping, $shipingnew;
    if (!$save) {
        trbasic(lang('soushipname'), 'shipingnew[cname]', isset($shiping['cname']) ? $shiping['cname'] : '');
        trbasic(lang('freetopyuan'), 'shipingnew[freetop]', isset($shiping['freetop']) ? $shiping['freetop'] : '');
        trbasic(lang('basedfeeyuan'), 'shipingnew[basefee]', isset($shiping['basefee']) ? $shiping['basefee'] : '');
        trbasic(lang('plusfee1') . "<input class=\"checkbox\" type=\"checkbox\" name=\"shipingnew[plus1mode]\" value=\"1\"" . (empty($shiping['plus1mode']) ? '' : ' checked') . ">" . lang('pluscontent'), 'shipingnew[plus1]', isset($shiping['plus1']) ? $shiping['plus1'] : '');
        trbasic(lang('plusfee2') . "<input class=\"checkbox\" type=\"checkbox\" name=\"shipingnew[plus2mode]\" value=\"1\"" . (empty($shiping['plus2mode']) ? '' : ' checked') . ">" . lang('pluscontent'), 'shipingnew[plus2]', isset($shiping['plus2']) ? $shiping['plus2'] : '');
        trbasic(lang('overw1staweightKg'), 'shipingnew[base1]', isset($shiping['base1']) ? $shiping['base1'] : '');
        trbasic(lang('overw1weighKg'), 'shipingnew[unit1]', isset($shiping['unit1']) ? $shiping['unit1'] : '');
        trbasic(lang('overw1priyuan'), 'shipingnew[price1]', isset($shiping['price1']) ? $shiping['price1'] : '');
        trbasic(lang('overw2stawKg'), 'shipingnew[base2]', isset($shiping['base2']) ? $shiping['base2'] : '');
        trbasic(lang('overw2weigKg'), 'shipingnew[unit2]', isset($shiping['unit2']) ? $shiping['unit2'] : '');
        trbasic(lang('overw2priyuan'), 'shipingnew[price2]', isset($shiping['price2']) ? $shiping['price2'] : '');
    } else {
        if (empty($shipingnew['cname'])) {
            return lang('shipdatamiss');
        }
        $shipingnew['freetop'] = max(0, floatval($shipingnew['freetop']));
        $shipingnew['basefee'] = max(0, floatval($shipingnew['basefee']));
        $shipingnew['plus1mode'] = empty($shipingnew['plus1mode']) ? 0 : 1;
        $shipingnew['plus1'] = max(0, floatval($shipingnew['plus1']));
        $shipingnew['plus2mode'] = empty($shipingnew['plus2mode']) ? 0 : 1;
        $shipingnew['plus2'] = max(0, floatval($shipingnew['plus2']));
        $shipingnew['base1'] = max(0, floatval($shipingnew['base1']));
        $shipingnew['unit1'] = max(0, floatval($shipingnew['unit1']));
        $shipingnew['price1'] = max(0, floatval($shipingnew['price1']));
        $shipingnew['base2'] = max(0, floatval($shipingnew['base2']));
        $shipingnew['unit2'] = max(0, floatval($shipingnew['unit2']));
        $shipingnew['price2'] = max(0, floatval($shipingnew['price2']));
        return '';
    }
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:34,代码来源:shipings.inc.php

示例2: lang

         }
         if (empty($u_operates) || in_array('delete', $u_operates)) {
             $s_arr['delete'] = lang('delarchive');
         }
         if ($s_arr) {
             $soperatestr = '';
             foreach ($s_arr as $k => $v) {
                 $soperatestr .= "<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[{$k}]\" value=\"1\">{$v} &nbsp;";
             }
             trbasic(lang('choose_item'), '', $soperatestr, '');
         }
         if (empty($u_operates) || in_array('uclass', $u_operates)) {
             trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[ucid]\" value=\"1\">&nbsp;" . lang('set') . lang('mycoclass'), 'arcucid', makeoption(array('0' => lang('cancelcoclass')) + $ucidsarr), 'select');
         }
         if (empty($u_operates) || in_array('valid', $u_operates)) {
             trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[validperiod]\" value=\"1\">&nbsp;" . lang('resetvalidperiod'), 'arcvalidperiod', '', 'text');
         }
         tabfooter('barcsedit');
         m_guide(@$u_guide);
     } else {
         include M_ROOT . $u_tplname;
     }
 } else {
     if (empty($arcdeal)) {
         mcmessage('selectoperateitem', M_REFERER);
     }
     if (empty($selectid)) {
         mcmessage('selectarchive', M_REFERER);
     }
     $aedit = new cls_arcedit();
     foreach ($selectid as $aid) {
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:archives.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: lang

    $tnstr = "<input type=\"text\" size=\"25\" id=\"murlnew[tplname]\" name=\"murlnew[tplname]\" value=\"{$murl['tplname']}\">&nbsp; \n\t\t\t<input class=\"checkbox\" type=\"checkbox\" name=\"murlnew[onlyview]\" id=\"murlnew[onlyview]\" value=\"1\"" . (empty($murl['onlyview']) ? '' : ' checked') . ">" . lang('onlyview');
    trbasic(lang('customapage'), '', $tnstr, '', lang('agcustomapage'));
    $filtersarr = array('commu' => lang('commuitem'), 'channel' => lang('achannel'), 'check' => lang('check_state'));
    foreach ($ucotypes as $k => $v) {
        if ($v['cclass'] == 'comment') {
            $filtersarr['uccid' . $k] = $v['cname'];
        }
    }
    trbasic(lang('view_filters') . "<br><input class=\"checkbox\" type=\"checkbox\" name=\"chkallfilters\" onclick=\"checkall(this.form,'filtersnew','chkallfilters')\">" . lang('selectall'), '', makecheckbox('filtersnew[]', $filtersarr, empty($murl['setting']['filters']) ? array() : explode(',', $murl['setting']['filters']), 5), '', lang('agnoselect1'));
    $listsarr = array('catalog' => lang('catalog'), 'uclass' => lang('uclass'), 'channel' => lang('achannel'), 'commu' => lang('commuitem'), 'check' => lang('check_state'), 'adddate' => lang('add_time'), 'updatedate' => lang('update_time'), 'edit' => lang('edit'));
    foreach ($ucotypes as $k => $v) {
        if ($v['cclass'] == 'comment') {
            $listsarr['uccid' . $k] = $v['cname'];
        }
    }
    trbasic(lang('view_lists') . "<br><input class=\"checkbox\" type=\"checkbox\" name=\"chkalllists\" onclick=\"checkall(this.form,'listsnew','chkalllists')\">" . lang('selectall'), '', makecheckbox('listsnew[]', $listsarr, empty($murl['setting']['lists']) ? array() : explode(',', $murl['setting']['lists']), 5), '', lang('agnoselect1'));
    $imuidsarr = array();
    foreach ($inmurls as $k => $v) {
        if (in_array($v['uclass'], array('commentetail', 'custom'))) {
            $imuidsarr[$k] = '<b>' . $v['cname'] . '</b>&nbsp; ' . $v['remark'];
        }
    }
    trbasic(lang('view_inmurls') . "<br><input class=\"checkbox\" type=\"checkbox\" name=\"chkallimuids\" onclick=\"checkall(this.form,'imuidsnew','chkallimuids')\">" . lang('selectall'), '', makecheckbox('imuidsnew[]', $imuidsarr, empty($murl['setting']['imuids']) ? array() : explode(',', $murl['setting']['imuids']), 3), '', lang('agnoselect1'));
    trbasic(lang('adm_title'), 'murlnew[mtitle]', $murl['mtitle'], 'text', lang('aga_title'));
    trbasic(lang('adm_guide'), 'murlnew[guide]', $murl['guide'], 'textarea', lang('aga_title'));
} else {
    foreach (array('cuids', 'caids', 'chids', 'filters', 'lists', 'imuids') as $var) {
        $murlnew['setting'][$var] = empty(${$var . 'new'}) ? '' : implode(',', ${$var . 'new'});
    }
    $murlnew['url'] = "?action=comments&nmuid={$muid}";
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:comments.php

示例5: trbasic

            }
            trbasic(lang('cu_citems') . "<br><input class=\"checkbox\" type=\"checkbox\" name=\"chkall_1\" onclick=\"checkall(this.form,'citemsnew','chkall_1')\">" . lang('selectall'), '', makecheckbox('citemsnew[]', $itemsarr, empty($commu['setting']['citems']) ? array() : explode(',', $commu['setting']['citems']), 5), '');
            trbasic(lang('cu_useredits') . "<br><input class=\"checkbox\" type=\"checkbox\" name=\"chkall_5\" onclick=\"checkall(this.form,'usereditsnew','chkall_5')\">" . lang('selectall'), '', makecheckbox('usereditsnew[]', $itemsarr, empty($commu['setting']['useredits']) ? array() : explode(',', $commu['setting']['useredits']), 5), '');
            tabfooter();
            tabheader(lang('udef_func') . "&nbsp;&nbsp;&nbsp;&nbsp;<input class=\"checkbox\" type=\"checkbox\" name=\"viewdetail\" value=\"1\" onclick=\"alterview('funcsetting')\">" . lang('view'));
            echo "<tbody id=\"funcsetting\" style=\"display: none;\">";
            trbasic(lang('php_func_code'), 'communew[func]', empty($commu['func']) ? '' : $commu['func'], 'btextarea');
            echo "</tbody>";
            tabfooter();
            tabheader(lang('advsetting') . "&nbsp;&nbsp;&nbsp;&nbsp;<input class=\"checkbox\" type=\"checkbox\" name=\"viewdetail2\" value=\"1\" onclick=\"alterview('advsetting')\">" . lang('view'));
            echo "<tbody id=\"advsetting\" style=\"display: none;\">";
            trbasic(lang('custom_ucadd'), 'communew[ucadd]', empty($commu['ucadd']) ? '' : $commu['ucadd'], 'text', lang('agmucustom'));
            trbasic(lang('custom_ucvote'), 'communew[ucvote]', empty($commu['ucvote']) ? '' : $commu['ucvote'], 'text', lang('agmucustom'));
            trbasic(lang('custom_uadetail'), 'communew[uadetail]', empty($commu['uadetail']) ? '' : $commu['uadetail'], 'text', lang('agmucustom'));
            trbasic(lang('custom_umdetail'), 'communew[umdetail]', empty($commu['umdetail']) ? '' : $commu['umdetail'], 'text', lang('agmucustom'));
            trbasic(lang('customsetting'), 'communew[usetting]', empty($commu['usetting']) ? '' : $commu['usetting'], 'btextarea', lang('agcustomsetting'));
            echo "</tbody>";
        } else {
            foreach (array('citems', 'useredits') as $var) {
                $communew['setting'][$var] = empty(${$var . 'new'}) ? '' : implode(',', ${$var . 'new'});
            }
            $communew['setting']['repeattime'] = max(0, intval($communew['setting']['repeattime']));
        }
    } elseif ($action == 'commulink') {
        trbasic(lang('add_reply'), '', '{$cms_abs}tools/reply.php?aid={aid}', '');
        trbasic(lang('vote_url'), '', '{$cms_abs}tools/reply.php?action=vote&cid={cid}&option=xx (xx-' . lang('vote_option') . ')', '');
        trbasic(lang('qt_url'), '', '{$cms_abs}tools/reply.php?aid={aid}&qtid={cid}', '');
    }
} else {
    include M_ROOT . $commu['uconfig'];
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:reply.php

示例6: 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

示例7: mexit

             exit;
         }
         if (empty($_sys) && ($html = template('login', $temparr))) {
             mexit($html);
         } else {
             include_once M_ROOT . "./include/cheader.inc.php";
             _header(lang('memberlogin'));
             $cookiedef = '1m';
             $cookiearr = array('0' => lang('inbrowser'), '1h' => '1' . lang('hours'), '1d' => '1' . lang('days'), '1w' => '1' . lang('weeks'), '1m' => '1' . lang('month'), '-1' => lang('saveforever'));
             echo '<form name="cmslogin" id="cmslogin" method="post" action="?forward=' . rawurlencode($forward) . ($infloat ? "&infloat={$infloat}&handlekey={$handlekey}" : '') . '" onsubmit="return checklogin(this)">';
             tabheader_e();
             echo '<tr class="header"><td colspan="2"><b>' . lang('memberlogin') . '&nbsp; &nbsp; >><a href="tools/lostpwd.php"' . (empty($infloat) ? '' : " onclick=\"return floatwin('open_{$handlekey}',this)\"") . '>' . lang('getpwd') . '</a></b></td></tr>';
             trbasic(lang('membercname'), 'username');
             trbasic(lang('loginpwd'), 'password', '', 'password');
             tr_regcode('login');
             trbasic('Cookie', 'expires', makeoption($cookiearr, $cookiedef), 'select');
             trhidden('client_t', '');
             $infloat && trhidden('infloat', 1);
             tabfooter('cmslogin', lang('login'));
             mexit('</div></body></html>');
         }
     }
 } else {
     switch (empty($expires) ? '0' : strtolower($expires)) {
         case '-1':
             $expires = 3650 * 86400;
             break;
         case '1m':
             $expires = 30 * 86400;
             break;
         case '1w':
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:login.php

示例8: trbasic

<?php

if (!submitcheck('bmtagadd') && !submitcheck('bmtagsdetail') && !submitcheck('bmtagcode')) {
    trbasic(lang('point_isolute_page0_id'), 'mtagnew[setting][fid]', empty($mtag['setting']['fid']) ? '' : $mtag['setting']['fid']);
    tabfooter();
} else {
    $mtagnew['setting']['fid'] = max(0, intval($mtagnew['setting']['fid']));
    if (empty($mtagnew['setting']['fid'])) {
        if (!submitcheck('bmtagcode')) {
            amessage('point_isolute_page_id', M_REFERER);
        } else {
            $errormsg = lang('page0id');
        }
        //生成代码出错的提示信息
    }
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:16,代码来源:freeurl.php

示例9: trbasic

    trbasic(lang('msclicks1'), 'mtagnew[setting][msclicks]', !isset($mtag['setting']['msclicks']) ? '' : $mtag['setting']['msclicks']);
    trbasic(lang('issue_archive_amount'), 'mtagnew[setting][checks]', !isset($mtag['setting']['checks']) ? '' : $mtag['setting']['checks']);
    trbasic(lang('comments_gt'), 'mtagnew[setting][comments]', !isset($mtag['setting']['comments']) ? '' : $mtag['setting']['comments']);
    trbasic(lang('purchase_goods_amount'), 'mtagnew[setting][purchases]', !isset($mtag['setting']['purchases']) ? '' : $mtag['setting']['purchases']);
    trbasic(lang('answer_amount'), 'mtagnew[setting][answers]', !isset($mtag['setting']['answers']) ? '' : $mtag['setting']['answers']);
    trbasic(lang('answer_credit'), 'mtagnew[setting][credits]', !isset($mtag['setting']['credits']) ? '' : $mtag['setting']['credits']);
    trbasic(lang('indays'), 'mtagnew[setting][indays]', !isset($mtag['setting']['indays']) ? '' : $mtag['setting']['indays']);
    trbasic(lang('outdays'), 'mtagnew[setting][outdays]', !isset($mtag['setting']['outdays']) ? '' : $mtag['setting']['outdays']);
    $createurl = "&nbsp; >><a href=\"?entry=liststr&tclass=members\" target=\"_blank\">" . lang('create_str') . "</a>";
    $isfuncstr = "<br><input class=\"checkbox\" type=\"checkbox\" id=\"mtagnew[setting][isfunc]\" name=\"mtagnew[setting][isfunc]\"" . (empty($mtag['setting']['isfunc']) ? '' : ' checked') . ">" . lang('fromfunc');
    trbasic(lang('filter_sql_str') . $createurl . $isfuncstr, 'mtagnew[setting][wherestr]', empty($mtag['setting']['wherestr']) ? '' : $mtag['setting']['wherestr'], 'textarea');
    echo "</tbody>";
    tabfooter();
    tabheader(lang('ptnaviset'));
    trbasic(lang('nav_simple'), 'mtagnew[setting][simple]', empty($mtag['setting']['simple']) ? '0' : $mtag['setting']['simple'], 'radio');
    trbasic(lang('nav_length'), 'mtagnew[setting][length]', isset($mtag['setting']['length']) ? $mtag['setting']['length'] : '');
    tabfooter();
} else {
    if (empty($mtagnew['template'])) {
        if (!submitcheck('bmtagcode')) {
            amessage('input_tag_tpl', M_REFERER);
        } else {
            $errormsg = lang('pleinptatem');
        }
        //生成代码出错的提示信息
    }
    $mtagnew['setting']['length'] = $mtagnew['setting']['length'] ? $mtagnew['setting']['length'] : '10';
    $mtagnew['setting']['limits'] = max(0, intval($mtagnew['setting']['limits']));
    $mtagnew['setting']['limits'] = empty($mtagnew['setting']['limits']) ? 10 : $mtagnew['setting']['limits'];
    $mtagnew['setting']['alimits'] = max(0, intval($mtagnew['setting']['alimits']));
    $mtagnew['setting']['orderstr'] = empty($mtagnew['setting']['orderstr']) ? '' : trim($mtagnew['setting']['orderstr']);
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:members.php

示例10: trbasic

    trbasic(lang('praise_pics_gt'), 'mtagnew[setting][praises]', !isset($mtag['setting']['praises']) ? '' : $mtag['setting']['praises']);
    trbasic(lang('debase_pics_gt'), 'mtagnew[setting][debases]', !isset($mtag['setting']['debases']) ? '' : $mtag['setting']['debases']);
    trbasic(lang('goods_orders_amount_gt'), 'mtagnew[setting][orders]', !isset($mtag['setting']['orders']) ? '' : $mtag['setting']['orders']);
    trbasic(lang('goods_price_le'), 'mtagnew[setting][inprice]', empty($mtag['setting']['inprice']) ? '' : $mtag['setting']['inprice']);
    trbasic(lang('goods_price_gt'), 'mtagnew[setting][outprice]', empty($mtag['setting']['outprice']) ? '' : $mtag['setting']['outprice']);
    trbasic(lang('answer0_amount_gt'), 'mtagnew[setting][answers]', !isset($mtag['setting']['answers']) ? '' : $mtag['setting']['answers']);
    trbasic(lang('adopt_answer0_amount_gt'), 'mtagnew[setting][adopts]', !isset($mtag['setting']['adopts']) ? '' : $mtag['setting']['adopts']);
    trbasic(lang('answer_reward_currency_le'), 'mtagnew[setting][incurrency]', empty($mtag['setting']['incurrency']) ? '' : $mtag['setting']['incurrency']);
    trbasic(lang('answer_reward_currency_gt'), 'mtagnew[setting][outcurrency]', empty($mtag['setting']['outcurrency']) ? '' : $mtag['setting']['outcurrency']);
    $closedarr = array('-1' => lang('nolimit'), '0' => lang('noclose'), '1' => lang('closed'));
    trbasic(lang('is_answer_close'), '', makeradio('mtagnew[setting][closed]', $closedarr, !isset($mtag['setting']['closed']) ? '-1' : $mtag['setting']['closed']), '');
    $aboverarr = array('-1' => lang('nolimit'), '0' => lang('noabover'), '1' => lang('abover'));
    trbasic(lang('album_weather_abover'), '', makeradio('mtagnew[setting][abover]', $aboverarr, !isset($mtag['setting']['abover']) ? '-1' : $mtag['setting']['abover']), '');
    $createurl = "&nbsp; >><a href=\"?entry=liststr&tclass=alarchives\" target=\"_blank\">" . lang('create_str') . "</a>";
    $isfuncstr = "<br><input class=\"checkbox\" type=\"checkbox\" id=\"mtagnew[setting][isfunc]\" name=\"mtagnew[setting][isfunc]\"" . (empty($mtag['setting']['isfunc']) ? '' : ' checked') . ">" . lang('fromfunc');
    trbasic(lang('filter_sql_str') . $createurl . $isfuncstr, 'mtagnew[setting][wherestr]', empty($mtag['setting']['wherestr']) ? '' : $mtag['setting']['wherestr'], 'textarea');
    echo "</tbody>";
    tabfooter();
} else {
    if (empty($mtagnew['template'])) {
        if (!submitcheck('bmtagcode')) {
            amessage('input_tag_tpl', M_REFERER);
        } else {
            $errormsg = lang('input_tag_tpl');
        }
        //生成代码出错的提示信息
    }
    $mtagnew['setting']['orderstr'] = empty($mtagnew['setting']['orderstr']) ? '' : trim($mtagnew['setting']['orderstr']);
    $mtagnew['setting']['wherestr'] = empty($mtagnew['setting']['wherestr']) ? '' : stripslashes(trim($mtagnew['setting']['wherestr']));
    $mtagnew['setting']['isfunc'] = empty($mtagnew['setting']['isfunc']) || empty($mtagnew['setting']['wherestr']) ? 0 : 1;
    $idvars = array('caids', 'chids');
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:inscount.php

示例11: addslashes

                $sqlstr .= ",{$k}='" . addslashes($v) . "'";
            }
        }
        $db->query("INSERT INTO {$tblprefix}mcommus SET {$sqlstr}");
        $cuid = $db->insert_id();
        updatecache('mcommus');
        adminlog(lang('copymcomitem'));
        amessage('mcommucopyfinish', "?entry=mcommus&action=mcommudetail&cuid={$cuid}");
    }
} elseif ($action == 'mcommudetail' && $cuid) {
    $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'];
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:mcommus.inc.php

示例12: trbasic

     trbasic(lang('mail_sign'), 'mconfigsnew[mail_sign]');
     tabfooter();
     echo "<input class=\"button\" type=\"submit\" name=\"bmconfigs\" value=\"" . lang('submit') . "\">&nbsp; &nbsp;" . "<input class=\"button\" type=\"button\" name=\"mailcheck\" value=\"" . lang('mailtest') . "\" onclick=\"var url=this.form.action;this.form.action='?entry=checks&action=mailcheck';this.form.target='mailcheckiframe';this.form.submit();this.form.action=url;this.form.target='_self'\"><iframe name=\"mailcheckiframe\" style=\"display: none\"></iframe>" . "</form>";
     tabheader(lang('mobileset'), 'cfmobile', '?entry=mconfigs&action=cfmobmail');
     echo "<tr class=\"txt\"><td class=\"txt txtright fB borderright\">" . lang('msgcodemode') . "</td>\n" . "<td class=\"txtL\">\n" . "<input class=\"radio\" type=\"radio\" id=\"msgcode_mode2\" name=\"mconfigsnew[msgcode_mode]\" value=\"2\" onclick=\"\$id('msgcode1').style.display = 'none';\$id('msgcode2').style.display = '';\"" . (@$mconfigs['msgcode_mode'] == 2 ? ' checked="checked"' : '') . "><label for=\"msgcode_mode2\">" . lang('msgcode2') . "</label> " . "<input class=\"radio\" type=\"radio\" id=\"msgcode_mode1\" name=\"mconfigsnew[msgcode_mode]\" value=\"1\" onclick=\"\$id('msgcode1').style.display = '';\$id('msgcode2').style.display = 'none';\"" . (@$mconfigs['msgcode_mode'] == 1 ? ' checked="checked"' : '') . "><label for=\"msgcode_mode1\">" . lang('msgcode1') . "</label> " . "<input class=\"radio\" type=\"radio\" id=\"msgcode_mode0\" name=\"mconfigsnew[msgcode_mode]\" value=\"0\" onclick=\"\$id('msgcode1').style.display = 'none';\$id('msgcode2').style.display = 'none';\"" . (@(!$mconfigs['msgcode_mode']) ? ' checked="checked"' : '') . "><label for=\"msgcode_mode0\">" . lang('msgcode0') . "</label> " . "</td></tr>\n";
     echo "<tbody id=\"msgcode2\" style=\"display:" . (@$mconfigs['msgcode_mode'] == 2 ? '' : 'none') . "\">";
     trbasic(lang('msggate'), '', '<input class="radio" type="radio" id="msgcode_gate1" name="mconfigsnew[msgcode_gate]" value="1"' . (@$mconfigs['msgcode_gate'] == 1 ? ' checked="checked"' : '') . "><label for=\"msgcode_gate1\">" . lang('msggate1') . "</label>", '');
     trbasic(lang('msgcode_sp1'), 'mconfigsnew[msgcode_sp1]', @$mconfigs['msgcode_sp1']);
     trbasic(lang('msgcode_pw1'), 'mconfigsnew[msgcode_pw1]', @$mconfigs['msgcode_pw1']);
     trbasic(lang('msggate'), '', '<input class="radio" type="radio" id="msgcode_gate2" name="mconfigsnew[msgcode_gate]" value="2"' . (@$mconfigs['msgcode_gate'] != 1 ? ' checked="checked"' : '') . "><label for=\"msgcode_gate2\">" . lang('msggate2') . "</label>", '');
     trbasic(lang('msgcode_sp2'), 'mconfigsnew[msgcode_sp2]', @$mconfigs['msgcode_sp2']);
     trbasic(lang('msgcode_pw2'), 'mconfigsnew[msgcode_pw2]', @$mconfigs['msgcode_pw2']);
     trbasic(lang('msgcode_sms'), 'mconfigsnew[msgcode_sms]', @$mconfigs['msgcode_sms'], 'textarea', lang('msgcode_sms_tip'));
     echo "</tbody>";
     echo "<tbody id=\"msgcode1\" style=\"display:" . (@$mconfigs['msgcode_mode'] == 1 ? '' : 'none') . "\">";
     trbasic(lang('msgcode_msg'), 'mconfigsnew[msgcode_msg]', @$mconfigs['msgcode_msg'], 'textarea', lang('msgcode_msg_tip'));
     echo "</tbody>";
     tabfooter();
     echo '<input class="button" type="submit" name="bmconfigs" value="' . lang('submit') . '"/>&nbsp; &nbsp;' . '<input type="hidden" name="mobmode" value="1"/>' . '</form>';
     a_guide('cfmail');
 } else {
     if (empty($mobmode)) {
         $mconfigsnew['mail_smtp'] = trim($mconfigsnew['mail_smtp']);
         $mconfigsnew['mail_port'] = trim($mconfigsnew['mail_port']);
         $mconfigsnew['mail_from'] = trim($mconfigsnew['mail_from']);
         $mconfigsnew['mail_user'] = trim($mconfigsnew['mail_user']);
         $mconfigsnew['mail_pwd'] = trim($mconfigsnew['mail_pwd']);
         unset($mconfigsnew['mail_sign'], $mconfigsnew['mail_to']);
     }
     saveconfig('mail');
     adminlog(lang('mailset'), lang('upanddownset'));
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:setting.php

示例13: 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

示例14: exit

!defined('M_COM') && exit('No Permission');
$aid = empty($aid) ? 0 : max(0, intval($aid));
//关于文档的个人分类
$uclasses = loaduclasses($curuser->info['mid']);
$ucidsarr = array();
foreach ($uclasses as $k => $v) {
    if (!$v['cuid']) {
        $ucidsarr[$k] = $v['title'];
    }
}
$aedit = new cls_arcedit();
$aedit->set_aid($aid);
$aedit->detail_data();
$chid = $aedit->archive['chid'];
tabheader(lang('basemessage'));
trbasic(lang('archivetitle'), '', $aedit->archive['subject'], '');
trbasic(lang('membercname'), '', $aedit->archive['mname'], '');
trbasic(lang('addtime'), '', date("Y-m-d H:i:s", $aedit->archive['createdate']), '');
trbasic(lang('updatetime'), '', date("Y-m-d H:i:s", $aedit->archive['updatedate']), '');
trbasic(lang('retime'), '', date("Y-m-d H:i:s", $aedit->archive['refreshdate']), '');
trbasic(lang('endtime'), '', $aedit->archive['enddate'] ? date("Y-m-d H:i:s", $aedit->archive['enddate']) : '-', '');
trbasic(lang('checkstate'), '', ($aedit->archive['checked'] ? lang('check') : lang('uncheck')) . '&nbsp;&nbsp;/&nbsp;&nbsp;' . ($aedit->archive['editor'] ? $aedit->archive['editor'] : '-'), '');
trbasic(lang('clickcomment'), '', $aedit->archive['clicks'] . '&nbsp;&nbsp;/&nbsp;&nbsp;' . $aedit->archive['comments'], '');
tabfooter();
tabheader(lang('othermessage'));
trbasic(lang('channel'), '', $aedit->archive['chid'] ? $channels[$aedit->archive['chid']]['cname'] : '-', '');
//trbasic(lang('browse archive deductvalue'),'',empty($aedit->archive['tax_price']) ? '-' : $aedit->archive['tax_price'],'');
//trbasic(lang('browse archive saleprice'),'',empty($aedit->archive['sale_price']) ? '-' : $aedit->archive['sale_price'],'');
//trbasic(lang('attachment deductvalue').'/'.lang('piece'),'',empty($aedit->archive['f_tax_price']) ? '-' : $aedit->archive['f_tax_price'],'');
//trbasic(lang('attachment saleprice').'/'.lang('piece'),'',empty($aedit->archive['f_sale_price']) ? '-' : $aedit->archive['f_sale_price'],'');
tabfooter();
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:arcview.inc.php

示例15: count

             if (in_array('reporttime', $u_lists)) {
                 $itemstr .= "<td class=\"txtC\">{$reporttime}</td>\n";
             }
             if ($editstr) {
                 $itemstr .= "<td class=\"txtR\">{$editstr}</td>\n";
             }
             $itemstr .= "</tr>\n";
         }
         $counts = $db->result_one("SELECT count(*) {$fromsql} {$wheresql}");
         $multi = multi($counts, $atpp, $page, "?entry={$entry}&action={$action}{$filterstr}");
         echo $itemstr;
         tabfooter();
         echo $multi;
         //操作区
         tabheader(lang('operate_item'));
         trbasic(lang('choose_item'), '', "<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[delete]\" value=\"1\">" . lang('delete') . " &nbsp;", '');
         tabfooter('barcsedit');
     } else {
         include M_ROOT . $u_tplname;
     }
 } else {
     if (empty($arcdeal) && empty($dealstr)) {
         amessage('selectoperateitem', "?entry={$entry}&action={$action}&page={$page}{$filterstr}");
     }
     if (empty($selectid) && empty($select_all)) {
         amessage('selectmember', "?entry={$entry}&action={$action}&page={$page}{$filterstr}");
     }
     if (!empty($select_all)) {
         if (empty($dealstr)) {
             $dealstr = implode(',', array_keys(array_filter($arcdeal)));
         } else {
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:mreports.inc.php


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