Ejemplo n.º 1
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
if (!submitcheck('bmtagadd') && !submitcheck('bmtagsdetail') && !submitcheck('bmtagcode')) {
    templatebox(lang('tagtemplate'), 'mtagnew[template]', empty($mtag['template']) ? '' : $mtag['template'], 10, 110);
    trbasic(lang('arr_pre'), 'mtagnew[setting][val]', empty($mtag['setting']['val']) ? 'v' : $mtag['setting']['val'], 'text', lang('agarr_pre'));
    $orderbyarr = array('' => lang('nosetting'), 'vieworder_asc' => lang('msg_order'), 'vieworder_desc' => lang('msg_order_desc'), 'createdate_desc' => lang('add_time_desc'), 'createdate_asc' => lang('add_time_asc1'));
    $orderbyoption = makeoption($orderbyarr, empty($mtag['setting']['orderby']) ? 'vieworder_asc' : $mtag['setting']['orderby']);
    trbasic(lang('list_result'), 'mtagnew[setting][limits]', empty($mtag['setting']['limits']) ? 10 : $mtag['setting']['limits']);
    trbasic(lang('cocllimi'), 'mtagnew[setting][casource]', makeoption(fcaidsarr(), empty($mtag['setting']['casource']) ? '0' : $mtag['setting']['casource']), 'select');
    trbasic(lang('listby'), 'mtagnew[setting][orderby]', $orderbyoption, 'select');
    trbasic(lang('only_valid_period'), 'mtagnew[setting][validperiod]', empty($mtag['setting']['validperiod']) ? 0 : $mtag['setting']['validperiod'], 'radio');
    tabfooter();
    tabheader(lang('adv_options') . "&nbsp; <input class=\"checkbox\" type=\"checkbox\" name=\"viewdetail\" value=\"1\" onclick=\"alterview('advancedfilter')\">" . lang('view'));
    echo "<tbody id=\"advancedfilter\" style=\"display: none;\">";
    trbasic(lang('startno'), 'mtagnew[setting][startno]', empty($mtag['setting']['startno']) ? '' : $mtag['setting']['startno'], 'text', lang('agstartno'));
    trbasic(lang('tagjspick'), 'mtagnew[setting][js]', empty($mtag['setting']['js']) ? 0 : $mtag['setting']['js'], 'radio');
    $createurl = "&nbsp; >><a href=\"?entry=liststr&tclass=farchives\" 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');
    trbasic(lang('order_str') . $createurl, 'mtagnew[setting][orderstr]', empty($mtag['setting']['orderstr']) ? '' : stripslashes($mtag['setting']['orderstr']), 'textarea');
    echo "</tbody>";
    tabfooter();
} else {
    if (empty($mtagnew['template'])) {
        if (!submitcheck('bmtagcode')) {
            amessage('input_tag_tpl', M_REFERER);
        } else {
            $errormsg = lang('input_tag_tpl');
        }
        //生成代码出错的提示信息
Ejemplo n.º 2
0
     ${$k} && ($filterstr .= "&{$k}=" . rawurlencode(stripslashes(${$k})));
 }
 foreach (array('checked', 'valid') as $k) {
     ${$k} != -1 && ($filterstr .= "&{$k}=" . ${$k});
 }
 if (!submitcheck('barcsedit')) {
     if (empty($u_tplname)) {
         echo form_str($action . 'arcsedit', "?action=farchives&nmuid={$nmuid}&page={$page}");
         //搜索区块
         tabheader_e();
         echo "<tr><td colspan=\"2\" class=\"txt txtleft\">";
         //关键词固定显示
         echo lang('keyword') . "&nbsp; <input class=\"text\" name=\"keyword\" type=\"text\" value=\"{$keyword}\" size=\"8\" style=\"vertical-align: middle;\">&nbsp; ";
         //分类
         if (empty($u_filters) || in_array('catalog', $u_filters)) {
             echo "<select style=\"vertical-align: middle;\" name=\"fcaid\">" . makeoption(array(0 => lang('coclass')) + fcaidsarr(), $fcaid) . "</select>&nbsp; ";
         }
         //审核状态
         if (empty($u_filters) || in_array('check', $u_filters)) {
             $checkedarr = array('-1' => lang('checkstate'), '0' => lang('nocheck'), '1' => lang('checked'));
             echo "<select style=\"vertical-align: middle;\" name=\"checked\">" . makeoption($checkedarr, $checked) . "</select>&nbsp; ";
         }
         //有效状态
         if (empty($u_filters) || in_array('valid', $u_filters)) {
             $validarr = array('-1' => lang('validperiodstate'), '0' => lang('invalid'), '1' => lang('available'));
             echo "<select style=\"vertical-align: middle;\" name=\"valid\">" . makeoption($validarr, $valid) . "</select>&nbsp; ";
         }
         //有效状态
         if (empty($u_filters) || in_array('qstate', $u_filters)) {
             $qstatearr = array('' => lang('qstate'), 'new' => lang('nosettle'), 'dealing' => lang('dealing'), 'end' => lang('settled'), 'close' => lang('closed'));
             echo "<select style=\"vertical-align: middle;\" name=\"qstate\">" . makeoption($qstatearr, $qstate) . "</select>&nbsp; ";
Ejemplo n.º 3
0
     }
     trbasic(lang('checkpm'), '', makecheckbox("checksnew[]", $checkarr, empty($amconfig['checks']) ? array() : $amconfig['checks'], 6), '');
     foreach ($commus as $k => $v) {
         if (in_array($v['cclass'], array('comment', 'reply', 'offer', 'purchase', 'answer'))) {
             $cuidsarr[$k] = $v['cname'];
         }
     }
     foreach ($mcommus as $k => $v) {
         if (in_array($v['cclass'], array('comment', 'reply'))) {
             $mcuidsarr[$k] = $v['cname'];
         }
     }
     foreach ($matypes as $k => $v) {
         $matidsarr[$k] = $v['cname'];
     }
     $fcaidsarr += fcaidsarr();
     $mchidsarr += mchidsarr();
     trbasic(lang('allowacommu') . '<br /><input class="checkbox" type="checkbox" name="xchkall" onclick="checkall(this.form,\'cuid0snew\',\'xchkall\')">' . lang('selectall'), '', makecheckbox('cuid0snew[]', $cuidsarr, empty($amconfig['cuids']) ? array() : $amconfig['cuids'], 8, 1), '');
     if (!$amconfig['sid']) {
         trbasic(lang('allowafcoclass') . '<br /><input class="checkbox" type="checkbox" name="fachkall" onclick="checkall(this.form,\'fcaidsnew\',\'fachkall\')">' . lang('selectall'), '', makecheckbox('fcaidsnew[]', $fcaidsarr, empty($amconfig['fcaids']) ? array() : $amconfig['fcaids'], 5, 1), '');
         trbasic(lang('allowamember') . '<br /><input class="checkbox" type="checkbox" name="mcchkall" onclick="checkall(this.form,\'mchidsnew\',\'mcchkall\')">' . lang('selectall'), '', makecheckbox('mchidsnew[]', $mchidsarr, empty($amconfig['mchids']) ? array() : $amconfig['mchids'], 8, 1), '');
         trbasic(lang('allowamcommu') . '<br /><input class="checkbox" type="checkbox" name="ychkall" onclick="checkall(this.form,\'mcuidsnew\',\'ychkall\')">' . lang('selectall'), '', makecheckbox('mcuidsnew[]', $mcuidsarr, empty($amconfig['mcuids']) ? array() : $amconfig['mcuids'], 8, 1), '');
         trbasic(lang('allowamatype') . '<br /><input class="checkbox" type="checkbox" name="zchkall" onclick="checkall(this.form,\'matidsnew\',\'zchkall\')">' . lang('selectall'), '', makecheckbox('matidsnew[]', $matidsarr, empty($amconfig['matids']) ? array() : $amconfig['matids'], 8, 1), '');
     }
     tabfooter('bamconfigdetail');
     a_guide('amconfigdetail');
 } else {
     $menusnew = empty($menusnew) ? '' : implode(',', $menusnew);
     $funcsnew = empty($funcsnew) ? '' : implode(',', $funcsnew);
     $checksnew = empty($checksnew) ? '' : (in_array('-1', $checksnew) ? '-1' : implode(',', $checksnew));
     foreach (array('caid0snew', 'fcaidsnew', 'mchidsnew', 'cuid0snew', 'mcuidsnew', 'matidsnew') as $var) {
Ejemplo n.º 4
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
if (empty($submitmode)) {
    load_cache('fcatalogs');
    tabfooter();
    tabheader(lang('arangeset'));
    trbasic(lang('arange') . lang('coclass') . "<br><input class=\"checkbox\" type=\"checkbox\" name=\"chkallcaids\" onclick=\"checkall(this.form,'caidsnew','chkallcaids')\">" . lang('selectall'), '', makecheckbox('caidsnew[]', fcaidsarr(), empty($murl['setting']['caids']) ? array() : explode(',', $murl['setting']['caids']), 5), '', lang('agnoselect'));
    tabfooter();
    tabheader(lang('pageresult'));
    trbasic(lang('adm_title'), 'murlnew[mtitle]', $murl['mtitle'], 'text', lang('aga_title'));
    trbasic(lang('adm_guide'), 'murlnew[guide]', $murl['guide'], 'textarea', lang('aga_title'));
    $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'));
} else {
    foreach (array('caids') as $var) {
        $murlnew['setting'][$var] = empty(${$var . 'new'}) ? '' : implode(',', ${$var . 'new'});
    }
    $murlnew['url'] = "?action=farchiveadd&nmuid={$muid}";
}
Ejemplo n.º 5
0
        ocache2file($stepadds, 'stepadds');
        amessage('undosuc', '?entry=subsetup&action=fchannels');
    }
} elseif ($action == 'fcatalogs') {
    load_cache('fcatalogs');
    $ofcatalogs = oread_cache('fcatalogs', '', '', 'cache');
    $n_operated = isset($stepeds['fcatalogs']);
    $do_enable = $n_operated || !isset($stepeds['fchannels']) ? false : true;
    //如果上一步没有完成,这一步不能开始
    $undo_enable = !$n_operated || isset($stepeds['freeinfos']) ? false : true;
    //如果上一步没有撤消,这一步不能撤消
    if (!submitcheck('bdo') && !submitcheck('bundo')) {
        tabheader(lang('freecoctran') . '&nbsp; -&nbsp; ' . ($n_operated ? '&nbsp; Y' : '&nbsp; N'), 'fcatalogs', '?entry=subsetup&action=fcatalogs', '3');
        trcategory(array(lang('soufrecocid'), lang('soufrecoccna'), lang('tranurrentsys')));
        foreach ($ofcatalogs as $k => $v) {
            echo "<tr class=\"txt\"><td class=\"txtC w80\">{$k}</td>\n" . "<td class=\"txtC\">{$v['title']}</td>\n" . "<td class=\"txtC\"><select style=\"vertical-align: middle;\" name=\"transtonew[{$k}]\">" . makeoption(array(0 => lang('add')) + fcaidsarr(), empty($idsmap['fcaids'][$k]) ? 0 : $idsmap['fcaids'][$k]) . "</select></td></tr>\n";
        }
        tabfooter();
        echo "<input class=\"button\" type=\"submit\" name=\"bdo\" value=\"" . lang('nextstep') . "\"" . ($do_enable ? '' : ' disabled') . ">&nbsp; &nbsp; ";
        echo "<input class=\"button\" type=\"submit\" name=\"bundo\" value=\"" . lang('undosetting') . "\"" . ($undo_enable ? '' : ' disabled') . ">&nbsp; &nbsp; ";
        echo "</form>\n";
    } elseif (submitcheck('bdo')) {
        foreach ($ofcatalogs as $k => $v) {
            //需要先转栏目字段
            if (empty($transtonew[$k])) {
                $v = oread_cache('fcatalog', $k, '', 'cache');
                $v['chid'] = str2newid($v['chid'], 'fchids');
                $v['rugids'] = str2newid($v['rugids'], 'ugids');
                $v['taxcrid'] = str2newid($v['taxcrid'], 'crids');
                $v['ugids'] = implode(',', $v['ugids']);
                $v['ugids'] = str2newid($v['ugids'], 'ugids');