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


PHP a_guide函数代码示例

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


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

示例1: lang

            $contents = $gather->gather_guid(0, 1, $item);
            if ($contents) {
                $timeout = lang('gather_timeout_err');
                $chid = $gmodels[$gmissions[$gsid]['gmid']]['chid'];
                $fields = read_cache('fields', $chid);
                foreach ($contents as $k => $v) {
                    trbasic('[' . $fields[$k]['cname'] . ']' . lang('gather_result'), '', $v === false ? $timeout : mhtmlspecialchars($v), '');
                }
            } else {
                trbasic(lang('gather_result'), '', '', '');
            }
        } else {
            trbasic('', '', lang('please_gather_netsite'), '');
        }
        tabfooter();
        a_guide('contentstest');
    }
} elseif ($action == 'contentsoption' && $gsid) {
    empty($gmissions[$gsid]) && amessage('choosegatmis');
    $page = !empty($page) ? max(1, intval($page)) : 1;
    submitcheck('bfilter') && ($page = 1);
    $viewdetail = empty($viewdetail) ? 0 : $viewdetail;
    $gathered = isset($gathered) ? $gathered : '-1';
    $outputed = isset($outputed) ? $outputed : '-1';
    $abover = isset($abover) ? $abover : '-1';
    $keyword = empty($keyword) ? '' : $keyword;
    $filterstr = '';
    foreach (array('viewdetail', 'gathered', 'outputed', 'abover', 'keyword') as $k) {
        $filterstr .= "&{$k}=" . rawurlencode(stripslashes(${$k}));
    }
    $wheresql = "WHERE gsid='{$gsid}'";
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:gmissions.inc.php

示例2: explode

        ${$var . 'arr'} = explode(',', $cnode[$var]);
    }
    if (!submitcheck('bcnodedetail')) {
        tabheader(lang('cnode_detail_set'), 'cnodedetail', "?entry={$entry}&action={$action}{$param_suffix}&cnid={$cnid}&forward=" . urlencode($forward));
        trbasic(lang('cnode_name'), '', cnode_cname($cnode['ename']), '');
        trbasic(lang('cnode_alias'), 'cnodenew[alias]', $cnode['alias']);
        trbasic(lang('cnode_url'), 'cnodenew[appurl]', $cnode['appurl'], 'btext', lang('agappurl'));
        for ($i = 0; $i <= $cnode['addnum']; $i++) {
            $pvar = $i ? lang('addp') . $i : lang('index');
            trbasic($pvar . lang('template'), 'tplsnew[]', makeoption(array('' => lang('noset')) + mtplsarr('cindex'), empty($tplsarr[$i]) ? '' : $tplsarr[$i]), 'select');
            trbasic($pvar . lang('wtemplate'), 'wtplsnew[]', makeoption(array('' => lang('noset')) + mtplsarr('wap'), empty($wtplsarr[$i]) ? '' : $wtplsarr[$i]), 'select');
            trbasic($pvar . lang('staticfomart'), 'urlsnew[]', empty($urlsarr[$i]) ? '' : $urlsarr[$i], 'btext', !$i ? lang('agcnstaticfomart') : '');
            trbasic($pvar . lang('ifstatic'), "staticsnew[{$i}]", makeoption(array(0 => lang('staticsys'), 1 => lang('keepdnc'), 2 => lang('create_static')), empty($staticsarr[$i]) ? 0 : $staticsarr[$i]), 'select');
            trbasic($pvar . lang('staticperiod'), 'periodsnew[]', empty($periodsarr[$i]) ? '' : $periodsarr[$i], 'text');
        }
        tabfooter('bcnodedetail');
        a_guide('cnodedetail');
    } else {
        $cnodenew['alias'] = trim(strip_tags($cnodenew['alias']));
        $cnodenew['appurl'] = trim($cnodenew['appurl']);
        $sqlstr = "alias='{$cnodenew['alias']}',appurl='{$cnodenew['appurl']}'";
        foreach (array('tpls', 'wtpls', 'urls', 'statics', 'periods') as $var) {
            $cnodenew[$var] = empty(${$var . 'new'}) ? '' : implode(',', ${$var . 'new'});
            $sqlstr .= ",{$var}='{$cnodenew[$var]}'";
        }
        $db->query("UPDATE {$tblprefix}cnodes SET {$sqlstr} WHERE cnid={$cnid}");
        adminlog(lang('detail_catas_cnode'));
        updatecache('cnodes', '', $sid);
        amessage('cnodesetfinish', axaction(6, $forward));
    }
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:cnodes.inc.php

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

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

示例5: empty

 empty($mcommu) && amessage('chooseitem');
 if (!submitcheck('bmcommudetail')) {
     tabheader(lang('memcomitset'), 'mcommudetail', "?entry=mcommus&action=mcommudetail&cuid={$cuid}", 2, 0, 0, 1);
     trbasic(lang('item_type'), '', $cclassarr[$mcommu['cclass']], '');
     trbasic(lang('item_name'), 'mcommunew[cname]', $mcommu['cname']);
     if (!empty($mcommu['usetting'])) {
         $str = '';
         foreach ($mcommu['usetting'] as $k => $v) {
             $str .= $k . '=' . $v . "\n";
         }
         $mcommu['usetting'] = $str;
         unset($str);
     }
     include M_ROOT . './include/mcommus/' . $mcommu['cclass'] . '.php';
     tabfooter('bmcommudetail', lang('modify'));
     a_guide('mcommudetail');
 } else {
     $submitmode = true;
     @(include M_ROOT . './include/mcommus/' . $mcommu['cclass'] . '.php');
     $mcommunew['cname'] = empty($mcommunew['cname']) ? $mcommu['cname'] : $mcommunew['cname'];
     $mcommunew['cutpl'] = empty($mcommunew['cutpl']) ? '' : $mcommunew['cutpl'];
     $mcommunew['addtpl'] = empty($mcommunew['addtpl']) ? '' : $mcommunew['addtpl'];
     $mcommunew['func'] = empty($mcommunew['func']) ? '' : $mcommunew['func'];
     $mcommunew['setting'] = !empty($mcommunew['setting']) ? addslashes(serialize($mcommunew['setting'])) : '';
     $mcommunew['ucadd'] = empty($mcommunew['ucadd']) ? '' : trim($mcommunew['ucadd']);
     $mcommunew['ucvote'] = empty($mcommunew['ucvote']) ? '' : trim($mcommunew['ucvote']);
     $mcommunew['uadetail'] = empty($mcommunew['uadetail']) ? '' : trim($mcommunew['uadetail']);
     $mcommunew['umdetail'] = empty($mcommunew['umdetail']) ? '' : trim($mcommunew['umdetail']);
     if (!empty($mcommunew['usetting'])) {
         $mcommunew['usetting'] = str_replace("\r", "", $mcommunew['usetting']);
         $temps = explode("\n", $mcommunew['usetting']);
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:mcommus.inc.php

示例6: array_filter

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

示例7: updatecache

        $muid = $db->insert_id();
        updatecache('murls');
        adminlog(lang('copy_url_item'));
        amessage('urlcopyfinish', "?entry=murls&action=murldetail&muid={$muid}");
    }
} elseif ($action == 'murldetail' && $muid) {
    $murl = fetch_one($muid);
    empty($murl) && amessage('choosemurl');
    if (!submitcheck('bmurldetail')) {
        tabheader(lang('murl_item_set'), 'murldetail', "?entry=murls&action=murldetail&muid={$muid}");
        trbasic(lang('murl_name'), 'murlnew[cname]', $murl['cname']);
        trbasic(lang('murl_remark'), 'murlnew[remark]', $murl['remark'], 'btext');
        trbasic(lang('murl_type'), '', $uclassarr[$murl['uclass']], '');
        include M_ROOT . './include/murls/' . $murl['uclass'] . '.php';
        tabfooter('bmurldetail', lang('modify'));
        a_guide('murldetail');
    } else {
        $murlnew['cname'] = empty($murlnew['cname']) ? $murl['cname'] : $murlnew['cname'];
        $submitmode = true;
        include M_ROOT . './include/murls/' . $murl['uclass'] . '.php';
        $murlnew['tplname'] = empty($murlnew['tplname']) ? '' : trim(strip_tags($murlnew['tplname']));
        $murlnew['onlyview'] = empty($murlnew['onlyview']) ? 0 : 1;
        $murlnew['mtitle'] = empty($murlnew['mtitle']) ? '' : trim($murlnew['mtitle']);
        $murlnew['otitle'] = empty($murlnew['otitle']) ? '' : trim($murlnew['otitle']);
        $murlnew['guide'] = empty($murlnew['guide']) ? '' : trim($murlnew['guide']);
        $murlnew['remark'] = trim(strip_tags($murlnew['remark']));
        $murlnew['setting'] = !empty($murlnew['setting']) ? addslashes(serialize($murlnew['setting'])) : '';
        $db->query("UPDATE {$tblprefix}murls SET \n\t\t\t\t\tcname='{$murlnew['cname']}',\n\t\t\t\t\tremark='{$murlnew['remark']}',\n\t\t\t\t\ttplname='{$murlnew['tplname']}',\n\t\t\t\t\tonlyview='{$murlnew['onlyview']}',\n\t\t\t\t\tmtitle='{$murlnew['mtitle']}',\n\t\t\t\t\totitle='{$murlnew['otitle']}',\n\t\t\t\t\tguide='{$murlnew['guide']}',\n\t\t\t\t\turl='{$murlnew['url']}',\n\t\t\t\t\tsetting='{$murlnew['setting']}'\n\t\t\t\t\tWHERE muid='{$muid}'");
        updatecache('murls');
        adminlog(lang('detail_modify_citem'));
        amessage('itemmodifyfinish', axaction(6, "?entry=murls&action=murlsedit"));
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:murls.inc.php

示例8: trbasic

             trbasic($v['cname'], "minfosnew[grouptype{$k}]", makeoption(ugidsarr($k, $mchid), $minfos["grouptype{$k}"]), 'select');
         }
     }
     foreach ($mfields as $k => $field) {
         if ($field['available'] && !$field['issystem'] && !$field['isfunc'] && !$field['isadmin'] && in_array($k, $additems)) {
             $a_field->init();
             $a_field->field = $field;
             $a_field->oldvalue = !isset($minfos[$k]) ? '' : $minfos[$k];
             $a_field->trfield('minfosnew', '', 'm', $mchid);
             $submitstr .= $a_field->submitstr;
         }
     }
     unset($a_field);
     tabfooter('bmtrandetail');
     check_submit_func($submitstr);
     a_guide('mtrandetail');
 } else {
     if (in_array('mtcid', $additems)) {
         $minfosnew['mtcid'] = empty($minfosnew['mtcid']) ? 1 : $minfosnew['mtcid'];
     }
     foreach ($grouptypes as $k => $v) {
         if (!$v['mode'] && in_array("grouptype{$k}", $additems)) {
             $minfosnew["grouptype{$k}"] = empty($minfosnew["grouptype{$k}"]) ? 0 : $minfosnew["grouptype{$k}"];
         }
     }
     $c_upload = new cls_upload();
     $mfields = fields_order($mfields);
     $a_field = new cls_field();
     foreach ($mfields as $k => $v) {
         if ($v['available'] && !$v['issystem'] && !$v['isfunc'] && !$v['isadmin'] && in_array($k, $additems)) {
             $a_field->init();
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:mtrans.inc.php

示例9: tabheader

     tabheader(lang('edit') . $mc_str . lang('usualurl'), 'usualurldetail', "?entry=usualurls&action=usualurldetail&uid={$uid}{$mc_suffix}");
     trbasic(lang('usuatitle'), 'usualurlnew[title]', $usualurl['title'], 'text');
     trbasic(lang('usualurl'), 'usualurlnew[url]', $usualurl['url'], 'btext');
     trbasic(lang('usuorder'), 'usualurlnew[vieworder]', $usualurl['vieworder'], 'text');
     trspecial(lang('urlimage'), 'usualurlnew[logo]', $usualurl['logo'], 'image');
     trbasic(lang('newwin'), 'usualurlnew[newwin]', $usualurl['newwin'], 'radio');
     if (!$ismc) {
         $sidsarr = array('m' => lang('msite')) + sidsarr(1);
         trbasic(lang('belsitforuse'), '', makecheckbox('sidsnew[]', $sidsarr, $usualurl['sids'] === '' ? array() : explode(',', $usualurl['sids']), 5), '');
         trbasic(lang('inhitatt'), 'usualurlnew[actsid]', $usualurl['actsid'], 'radio');
     } else {
         trbasic(lang('onclick'), 'usualurlnew[onclick]', $usualurl['onclick'], 'btext');
     }
     trbasic(lang('u_permission_set'), 'usualurlnew[pmid]', makeoption(pmidsarr('menu'), $usualurl['pmid']), 'select');
     tabfooter('busualurldetail');
     a_guide('usualurldetail');
 } else {
     $usualurlnew['title'] = trim(strip_tags($usualurlnew['title']));
     $usualurlnew['url'] = trim(strip_tags($usualurlnew['url']));
     $usualurlnew['vieworder'] = max(0, intval($usualurlnew['vieworder']));
     $usualurlnew['title'] = empty($usualurlnew['title']) ? $usualurl['title'] : $usualurlnew['title'];
     $usualurlnew['url'] = empty($usualurlnew['url']) ? $usualurl['url'] : $usualurlnew['url'];
     $c_upload = new cls_upload();
     $usualurlnew['logo'] = upload_s($usualurlnew['logo'], $usualurl['logo'], 'image');
     $usualurlnew['sids'] = !empty($sidsnew) ? implode(',', $sidsnew) : '';
     $usualurlnew['actsid'] = empty($usualurlnew['actsid']) ? 0 : 1;
     $usualurlnew['onclick'] = empty($usualurlnew['onclick']) ? '' : trim($usualurlnew['onclick']);
     $db->query("UPDATE {$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\tWHERE uid='{$uid}'");
     $c_upload->closure(1, $uid, 'usualurls');
     adminlog(lang('edusudet'));
     updatecache('usualurls');
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:usualurls.inc.php

示例10: submitcheck

        $dealstr = submitcheck('bdboptimize') ? 'OPTIMIZE' : 'REPAIR';
        $tablestr = '';
        foreach ($tables as $table) {
            $tablestr .= ($tablestr ? ',' : '') . $tblprefix . $table;
        }
        $tablestr && $db->query("{$dealstr} TABLE {$tablestr}");
        adminlog(lang('db_tb_' . submitcheck('bdboptimize') ? 'optimize' : 'repair'));
        amessage('tableoperatefinish', '?entry=database&action=dboptimize');
    }
} elseif ($action == 'dbsql') {
    if (!submitcheck('bdbsql')) {
        url_nav(lang('dboperate'), $urlsarr, 'dbsql');
        tabheader(lang('run_sql_code'), 'dbsql', '?entry=database&action=dbsql');
        echo "<tr class=\"txt\"><td class=\"txtL w25B\">" . lang('im_sql_code_content') . "</td><td class=\"txtL\"><textarea rows=\"15\" name=\"sqlcode\" cols=\"100\"></textarea></td></tr>";
        tabfooter('bdbsql');
        a_guide('dbsql');
    } else {
        empty($sqlcode) && amessage('inputsqlcode', '?entry=database&action=dbsql');
        $sqlquery = splitsql(str_replace(array(' cms_', ' {tblprefix}', ' `cms_'), array(' ' . $tblprefix, ' ' . $tblprefix, ' `' . $tblprefix), $sqlcode));
        $affected_rows = 0;
        foreach ($sqlquery as $sql) {
            if (trim($sql) != '') {
                $db->query(stripslashes($sql), 'SILENT');
                if ($sqlerror = $db->error()) {
                    break;
                } else {
                    $affected_rows += intval($db->affected_rows());
                }
            }
        }
        adminlog(lang('run_sql_code'));
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:database.inc.php

示例11: trbasic

     trbasic(lang('payorderidsn'), '', $item['ordersn'] ? $item['ordersn'] : '-', '');
     trbasic(lang('messsentim'), '', date("{$dateformat} {$timeformat}", $item['senddate']), '');
     trbasic(lang('casarrtim'), '', $item['receivedate'] ? date("{$dateformat} {$timeformat}", $item['receivedate']) : '-', '');
     trbasic(lang('currsavtime'), '', $item['transdate'] ? date("{$dateformat} {$timeformat}", $item['transdate']) : '-', '');
     trbasic(lang('contaname'), 'itemnew[truename]', $item['truename']);
     trbasic(lang('contatelep'), 'itemnew[telephone]', $item['telephone']);
     trbasic(lang('contactemail'), 'itemnew[email]', $item['email']);
     trbasic(lang('remark'), 'itemnew[remark]', br2nl($item['remark']), 'textarea');
     trspecial(lang('paywarrant') . "&nbsp; &nbsp; [" . "<a href=\"" . $item['warrant'] . "\" target=\"_blank\">" . lang('bigimage') . "</a>" . "]", 'itemnew[warrant]', $item['warrant'], 'image');
     if ($item['transdate']) {
         tabfooter();
         echo "<input class=\"button\" type=\"submit\" name=\"\" value=\"" . lang('goback') . "\" onclick=\"history.go(-1);\">";
     } else {
         tabfooter('bpaydetail', lang('modify'));
     }
     a_guide('paydetail');
 } else {
     include_once M_ROOT . "./include/upload.cls.php";
     $itemnew['amount'] = max(0, round(floatval($itemnew['amount']), 2));
     empty($itemnew['amount']) && amessage('inppayamo', M_REFERER);
     $itemnew['truename'] = trim(strip_tags($itemnew['truename']));
     $itemnew['telephone'] = trim(strip_tags($itemnew['telephone']));
     $itemnew['email'] = trim(strip_tags($itemnew['email']));
     $itemnew['remark'] = mnl2br(mhtmlspecialchars($itemnew['remark']));
     $c_upload = new cls_upload();
     $itemnew['warrant'] = upload_s($itemnew['warrant'], $item['warrant'], 'image');
     $c_upload->closure(1, $pid, 'pays');
     $c_upload->saveuptotal(1);
     unset($c_upload);
     $db->query("UPDATE {$tblprefix}pays SET\n\t\t\t\t\t amount='{$itemnew['amount']}',\n\t\t\t\t\t truename='{$itemnew['truename']}',\n\t\t\t\t\t telephone='{$itemnew['telephone']}',\n\t\t\t\t\t email='{$itemnew['email']}',\n\t\t\t\t\t remark='{$itemnew['remark']}',\n\t\t\t\t\t warrant='{$itemnew['warrant']}' \n\t\t\t\t\t WHERE pid='{$pid}'\n\t\t\t\t\t ");
     amessage('paymesmodfin', $forward);
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:pays.inc.php

示例12: aheader

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'));
        amessage('replycoclasseditfinish', '?entry=cucatalogs&action=rcatalogsedit');
    } elseif (submitcheck('brcatalogadd')) {
        if (!$rcatalognew['title']) {
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:ucoclasses.inc.php

示例13: lang

        if (!$order['state'] || $order['state'] == 1) {
            print '<input type="submit" name="borderdetail" value="' . lang('modify_confirm') . '">&nbsp;&nbsp;<input type="submit" name="borderpay" value="' . lang('orderspayed') . '" onclick="return orderPayedConfirm()"/>';
        } elseif ($modify) {
            print '<input type="submit" name="bordermodify" value="' . lang('modify_payed') . '">';
        }
        echo '</form><div class="clear"></div>';
        tabheader(lang('ordemessset'), 'orderdetail', '?entry=orders&action=orderdetail&oid=' . $oid . '&forward=' . urlencode($forward));
        $submitstr = '';
        if ($order['state'] && $order['state'] != 1) {
            foreach ($pfields as $k => $field) {
                trbasic($field['cname'], '', !isset($order[$k]) ? '' : htmlspecialchars($order[$k]), '');
            }
            $order['state'] < 0 ? tabfooter('borderdelete', lang('deleteorders')) : (print '</form>');
        } else {
            $a_field = new cls_field();
            foreach ($pfields as $k => $field) {
                $a_field->init();
                $a_field->field = $field;
                $a_field->oldvalue = !isset($order[$k]) ? '' : $order[$k];
                $a_field->trfield('cartnew', '', 'p');
                $submitstr .= $a_field->submitstr;
            }
            tabfooter();
            print '<input type="submit" name="borderinfo" value="' . lang('modify') . '">';
            (!$order['state'] || $order['state'] == 1) && (print '&nbsp;&nbsp;<input type="submit" name="bordercancel" value="' . lang('cancelorders') . '">');
            echo '</form>';
            check_submit_func($submitstr);
        }
        a_guide('orderdetail');
    }
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:orders.inc.php

示例14: lang

         }
         if (empty($u_operates) || in_array('check', $u_operates)) {
             $s_arr['check'] = lang('check');
         }
         if (empty($u_operates) || in_array('uncheck', $u_operates)) {
             $s_arr['uncheck'] = lang('uncheck');
         }
         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, '');
         }
         tabfooter('barcsedit');
         a_guide(@$u_guide);
     } else {
         include M_ROOT . $u_tplname;
     }
 } else {
     if (empty($arcdeal)) {
         amessage('selectoperateitem', M_REFERER);
     }
     if (empty($selectid)) {
         amessage('confirmselectcomment', M_REFERER);
     }
     $uedit = new cls_mcuedit();
     foreach ($selectid as $cid) {
         if ($uedit->read($cid, 'comment')) {
             continue;
         }
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:mcomments.inc.php

示例15: lang

         }
         if (empty($u_operates) || in_array('check', $u_operates)) {
             $s_arr['check'] = lang('check');
         }
         if (empty($u_operates) || in_array('uncheck', $u_operates)) {
             $s_arr['uncheck'] = lang('uncheck');
         }
         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, '');
         }
         tabfooter('barcsedit');
         a_guide('commentsedit');
     } else {
         include M_ROOT . $u_tplname;
     }
 } else {
     if (empty($arcdeal) && empty($dealstr)) {
         amessage('selectoperateitem', axaction(1, M_REFERER));
     }
     if (empty($selectid) && empty($select_all)) {
         amessage('pchoosecontent', axaction(1, M_REFERER));
     }
     if (!empty($select_all)) {
         if (empty($dealstr)) {
             $dealstr = implode(',', array_keys(array_filter($arcdeal)));
         } else {
             $arcdeal = array();
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:comments.inc.php


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