Exemplo n.º 1
0
     if (!($oldmsg = $db->fetch_one("SELECT * FROM {$tblprefix}mflinks WHERE fromid='{$memberid}' ORDER BY cid DESC LIMIT 0,1"))) {
         $oldmsg = array();
     }
     tabheader(lang('add') . $mcommu['cname'], 'flinkadd', "?mid={$mid}{$forwardstr}", 2, 1, 1);
     $submitstr = '';
     $a_field = new cls_field();
     foreach ($mlfields as $k => $v) {
         if (!$v['isadmin'] && !$v['isfunc'] && in_array($k, $fieldsarr)) {
             $a_field->init();
             $a_field->field = $v;
             if (isset($oldmsg[$k])) {
                 $a_field->oldvalue = $oldmsg[$k];
             } else {
                 $a_field->isadd = 1;
             }
             $a_field->trfield('communew', '', 'ml');
             $submitstr .= $a_field->submitstr;
         }
     }
     unset($a_field);
     tabfooter('newcommu');
     check_submit_func($submitstr);
     _footer();
 } else {
     $_da =& $actuser->info;
     _aenter($_da, 1);
     @extract($btags);
     extract($_da, EXTR_OVERWRITE);
     tpl_refresh($tplname);
     @(include M_ROOT . "template/{$templatedir}/pcache/{$tplname}.php");
     $_content = ob_get_contents();
Exemplo n.º 2
0
 trbasic(lang('goodsdcpricesum'), '', $oldsum . ' ' . lang('yuan'), '');
 trbasic(lang('shipingfee'), 'shipingfee', makeradio('shipingfee', $spmodearr, -1), '');
 /*		if(!empty($enableship)){
 		trbasic(lang('goodsweightsum'),'',$cartnew['weights'].' kg','');
 		trbasic(lang('shiping'),'cartnew[shid]',makeoption($shidsarr,empty($oldmsg['shid']) ? 0 : $oldmsg['shid']),'select');
 	}*/
 tabfooter();
 $submitstr = "rmsg = checkcheck('shipingfee',form);\nif(rmsg){\n\tif(dom=\$id('alert_shipingfee'))dom.innerHTML = rmsg;\n\ti = false;\n}\n";
 tabheader(lang('ordersothermessage'));
 $a_field = new cls_field();
 foreach ($pfields as $k => $field) {
     if (!$field['isadmin']) {
         $a_field->init();
         $a_field->field = $field;
         $a_field->oldvalue = !isset($oldmsg[$k]) ? '' : $oldmsg[$k];
         $a_field->trfield('', '', 'p');
         $submitstr .= $a_field->submitstr;
     }
 }
 tabfooter();
 $spma = join(',', array_keys($spmodearr));
 $goods = join(';', $goods);
 trhidden('oid', $oid);
 trhidden('tomname', htmlspecialchars($tomname));
 #	trhidden('ordersn', $ordersn);
 trhidden('orderfee', $oldsum);
 trhidden('goods', $goods);
 trhidden('spma', $spma);
 #	trhidden('crc', my_crc($oid, $tomname, $ordersn, $oldsum, $spma, $goods));
 trhidden('crc', my_crc($oid, $tomname, $oldsum, $spma, $goods));
 echo "<input class=\"button\" type=\"submit\" name=\"bcartpay\" value=\"" . lang('continue') . "\"></form>";
Exemplo n.º 3
0
                $fromid = min($selectid);
                $transtr = '';
                $transtr .= "&select_all=1";
                $transtr .= "&pages={$pages}";
                $transtr .= "&npage={$npage}";
                $transtr .= "&barcsedit=1";
                $transtr .= "&fromid={$fromid}";
                amessage('operating', "?entry={$entry}&action={$action}&page={$page}{$filterstr}{$transtr}{$parastr}&dealstr={$dealstr}", $pages, $npage, "<a href=\"?entry={$entry}&action={$action}&page={$page}{$filterstr}\">", '</a>');
            }
        }
        adminlog(lang('member_admin'), lang('member_list_admin'));
        amessage('memberoperatefinish', "?entry={$entry}&action={$action}&page={$page}{$filterstr}");
    }
} elseif ($action == 'mreportsdetail' && !empty($cid)) {
    ($result = $db->fetch_one("SELECT * FROM {$tblprefix}mreports WHERE cid='{$cid}' LIMIT 0,1")) || amessage('selectoperateitem');
    load_cache('mbfields');
    tabheader(lang('memberreport') . ' - ' . $result['mname']);
    include_once M_ROOT . "./include/fields.cls.php";
    $a_field = new cls_field();
    foreach ($mbfields as $k => $v) {
        if (!$v['isadmin'] && !$v['isfunc']) {
            //			trbasic($v['cname'],'',$result[$k],'');
            $a_field->init();
            $a_field->field = $v;
            $a_field->oldvalue = $result[$k];
            $a_field->trfield('', '', 'mb');
        }
    }
    unset($a_field);
    tabfooter();
}
Exemplo n.º 4
0
    mcmessage('choosemarchive');
}
if ($aedit->archive['mid'] != $memberid) {
    mcmessage('selectyoumarc');
}
$fields = read_cache('mafields', $matid);
if (!submitcheck('bmarchive')) {
    $a_field = new cls_field();
    $submitstr = '';
    tabheader($aedit->matype['cname'] . '&nbsp; -&nbsp; ' . lang('contentsetting'), 'marchive', "?matid={$matid}&maid={$maid}&action=marchive{$param_suffix}{$forwardstr}", 2, 1, 1, 1);
    foreach ($fields as $k => $field) {
        if ($field['available'] && !$field['isadmin'] && !$field['isfunc']) {
            $a_field->init();
            $a_field->field = $field;
            $a_field->oldvalue = isset($aedit->archive[$k]) ? $aedit->archive[$k] : '';
            $a_field->trfield('marchivenew', '', 'ma', $matid);
            $submitstr .= $a_field->submitstr;
        }
    }
    unset($a_field);
    tabfooter('bmarchive');
    check_submit_func($submitstr);
} else {
    $c_upload = new cls_upload();
    $fields = fields_order($fields);
    $a_field = new cls_field();
    foreach ($fields as $k => $v) {
        if ($v['available'] && !$v['isadmin'] && !$v['isfunc']) {
            $a_field->init();
            $a_field->field = $v;
            $a_field->oldvalue = isset($aedit->archive[$k]) ? $aedit->archive[$k] : '';
Exemplo n.º 5
0
     $submitstr = '';
     foreach ($ucotypes as $k => $v) {
         if (in_array('uccid' . $k, $citems) && $v['umode'] != 1) {
             trbasic($v['cname'], '', mu_cnselect("commentnew[uccid{$k}]", $oldrow['uccid' . $k], $k, lang('p_choose'), $v['emode'], "commentnew[uccid{$k}date]", @$oldrow["uccid{$k}date"] ? date('Y-m-d', $oldrow["uccid{$k}date"]) : ''), '');
             $submitstr .= makesubmitstr("commentnew[uccid{$k}]", $v['notblank'], 0, 0, 0, 'common');
             $v['emode'] == 2 && ($submitstr .= makesubmitstr("commentnew[uccid{$k}date]", 1, 0, 0, 0, 'date'));
         }
     }
     $a_field = new cls_field();
     foreach ($fields as $k => $v) {
         if (!$v['isfunc']) {
             $a_field->init();
             $a_field->field = $v;
             $a_field->oldvalue = $oldrow[$k];
             if ($curuser->pmbypmids('field', $v['pmid'])) {
                 $a_field->trfield('commentnew', '', 'c');
                 $submitstr .= $a_field->submitstr;
             }
         }
     }
     unset($a_field);
     tabfooter('bcommentdetail');
     check_submit_func($submitstr);
 } else {
     $c_upload = new cls_upload();
     $fields = fields_order($fields);
     $a_field = new cls_field();
     foreach ($ucotypes as $k => $v) {
         if (in_array('uccid' . $k, $citems) && $v['umode'] != 1) {
             $uedit->updatefield('uccid' . $k, $commentnew['uccid' . $k]);
             if ($v['emode']) {
Exemplo n.º 6
0
 }
 if (!submitcheck('breportdetail')) {
     tabheader($mcommu['cname'] . '&nbsp; -&nbsp; ' . lang('basemessage'), 'reportdetail', "?action=mreport&mid={$mid}&cid={$cid}{$forwardstr}", 2, 1, 1);
     $submitstr = '';
     trbasic(lang('lookreportobject'), '', "<a href=\"{$mspaceurl}index.php?mid={$mid}\" target=\"_blank\">>>&nbsp; " . $reportold['mname'] . "</a>", '');
     trbasic(lang('addtime'), '', date('Y-m-d H:i', $reportold['createdate']), '');
     tabfooter();
     $submitstr .= tr_regcode('report');
     $a_field = new cls_field();
     tabheader($mcommu['cname'] . '&nbsp; -&nbsp; ' . lang('submitmessage'));
     foreach ($mbfields as $k => $v) {
         if (!$v['isadmin'] && !$v['isfunc'] && in_array($k, $fieldsarr)) {
             $a_field->init();
             $a_field->field = $v;
             $a_field->oldvalue = isset($reportold[$k]) ? $reportold[$k] : '';
             $a_field->trfield('reportnew', '', 'mb');
             $submitstr .= $a_field->submitstr;
         }
     }
     unset($a_field);
     tabfooter('breportdetail', '', strbutton('', 'goback', "redirect('{$forward}');"));
     check_submit_func($submitstr);
 } else {
     $c_upload = new cls_upload();
     $mbfields = fields_order($mbfields);
     $sqlstr = '';
     $a_field = new cls_field();
     foreach ($mbfields as $k => $v) {
         if (!$v['isadmin'] && !$v['isfunc'] && in_array($k, $fieldsarr)) {
             $a_field->init();
             $a_field->field = $v;
Exemplo n.º 7
0
         trrange(lang('answer_reward_currency'), array('coclassnew[conditions][currencyfrom]', isset($coclass['conditions']['currencyfrom']) ? $coclass['conditions']['currencyfrom'] : '', '', '&nbsp; ' . lang('mini') . '&nbsp; &nbsp; -&nbsp; &nbsp; '), array('coclassnew[conditions][currencyto]', isset($coclass['conditions']['currencyto']) ? $coclass['conditions']['currencyto'] : '', '', '&nbsp; ' . lang('max')));
         $closedarr = array('-1' => lang('nolimit'), '0' => lang('noclose'), '1' => lang('closed'));
         trbasic(lang('is_answer_close'), 'coclassnew[conditions][closed]', makeoption($closedarr, isset($coclass['conditions']['closed']) ? $coclass['conditions']['closed'] : '-1'), 'select');
         $createurl = "&nbsp; >><a href=\"?entry=liststr&tclass=coclass\" target=\"_blank\">" . lang('create_string') . "</a>";
         trbasic(lang('udef_query_string') . $createurl, 'coclassnew[conditions][sqlstr]', isset($coclass['conditions']['sqlstr']) ? stripslashes($coclass['conditions']['sqlstr']) : '', 'textarea');
         echo "</tbody>";
         tabfooter();
     }
     $a_field = new cls_field();
     $addfieldstr = "&nbsp; &nbsp; >><a href=\"?entry=cotypes&action=ccfieldsedit\">" . lang('iscustom_coclass_field') . '</a>';
     tabheader(lang('coclass') . "&nbsp;[{$coclass['title']}]&nbsp;" . lang('iscustom_message') . $addfieldstr);
     foreach ($ccfields as $field) {
         $a_field->init();
         $a_field->field = $field;
         $a_field->oldvalue = !isset($coclass[$field['ename']]) ? '' : $coclass[$field['ename']];
         $a_field->trfield('coclassnew', '', 'cc');
         $submitstr .= $a_field->submitstr;
     }
     tabfooter('bcoclassdetail');
     check_submit_func($submitstr);
     a_guide('coclassdetail');
 } else {
     $coclassnew['dirname'] = strtolower($coclassnew['dirname']);
     if ($coclassnew['dirname'] != $coclass['dirname']) {
         if (preg_match("/[^a-zA-Z_0-9]+/", $coclassnew['dirname'])) {
             amessage('coclassenameillegal', axaction(2, M_REFERER));
         }
         $enamearr = array();
         foreach ($catalogs as $k => $v) {
             $enamearr[] = $v['dirname'];
         }
Exemplo n.º 8
0
                     $noedit = noedit('uccid' . $k, $v['umode'] == 2);
                     trbasic($v['cname'] . $noedit, '', mu_cnselect("offernew[uccid{$k}]", $oldrow['uccid' . $k], $k, lang('p_choose'), $v['emode'], "offernew[uccid{$k}date]", @$oldrow["uccid{$k}date"] ? date('Y-m-d', $oldrow["uccid{$k}date"]) : ''), '');
                     !$noedit && ($submitstr .= makesubmitstr("offernew[uccid{$k}]", $v['notblank'], 0, 0, 0, 'common'));
                     !$noedit && $v['emode'] == 2 && ($submitstr .= makesubmitstr("offernew[uccid{$k}date]", 1, 0, 0, 0, 'date'));
                 }
             }
         }
         $a_field = new cls_field();
         foreach ($fields as $k => $v) {
             if (empty($u_lists) || in_array($k, $u_lists)) {
                 if (!$v['isfunc']) {
                     $a_field->init();
                     $a_field->field = $v;
                     $a_field->oldvalue = $oldrow[$k];
                     $noedit = noedit($k, $v['isadmin'] || !$curuser->pmbypmids('field', $v['pmid']));
                     $a_field->trfield('offernew', $noedit, 'o');
                     !$noedit && ($submitstr .= $a_field->submitstr);
                 }
             }
         }
         unset($a_field);
         tabfooter('newcommu');
         check_submit_func($submitstr);
         m_guide(@$u_guide);
     } else {
         include M_ROOT . $u_tplname;
     }
 } else {
     if (isset($offernew['oprice'])) {
         $uedit->updatefield('oprice', max(0, round($offernew['oprice'], 2)));
         $uedit->updatefield('refreshdate', $timestamp);
Exemplo n.º 9
0
     foreach ($grouptypes as $k => $v) {
         if (empty($u_lists) || in_array("grouptype{$k}", $u_lists)) {
             if (!$v['mode'] && !in_array($mchid, explode(',', $v['mchids']))) {
                 $noedit = noedit("grouptype{$k}");
                 trbasic(lang('usergroup') . $noedit, "minfosnew[grouptype{$k}]", makeoption(ugidsarr($k, $mchid), $curuser->info["grouptype{$k}"]), 'select');
             }
         }
     }
     foreach ($mfields as $k => $field) {
         if (empty($u_lists) || in_array($k, $u_lists)) {
             if ($field['available'] && !$field['issystem'] && !$field['isfunc'] && !$field['isadmin']) {
                 $a_field->init();
                 $a_field->field = $field;
                 $noedit = noedit($k, !$curuser->pmbypmids('field', $a_field->field['pmid']));
                 $a_field->oldvalue = isset($curuser->info[$k]) ? $curuser->info[$k] : '';
                 $a_field->trfield('minfosnew', $noedit, 'm', $mchid);
                 !$noedit && ($submitstr .= $a_field->submitstr);
             }
         }
     }
     unset($a_field);
     tabfooter('bmemberdetail');
     check_submit_func($submitstr);
     m_guide(@$u_guide);
 } else {
     if (empty($u_lists) || in_array('email', $u_lists)) {
         $minfosnew['email'] = empty($minfosnew['email']) ? '' : trim($minfosnew['email']);
         if (empty($minfosnew['email']) || !isemail($minfosnew['email'])) {
             mcmessage('mememill', M_REFERER);
         }
         $curuser->updatefield('email', $minfosnew['email'], 'main');
Exemplo n.º 10
0
 } elseif (!submitcheck('bflinkdetail')) {
     tabheader($mcommu['cname'] . '&nbsp; -&nbsp; ' . lang('basemessage'), 'flinkdetail', "?action=mflink&mid={$mid}&cid={$cid}{$forwardstr}", 2, 1, 1);
     $submitstr = '';
     trbasic(lang('looklinkobject'), '', "<a href=\"{$mspaceurl}index.php?mid={$mid}\" target=\"_blank\">>>&nbsp; " . $flinkold['mname'] . "</a>", '');
     trbasic(lang('checkstate'), '', empty($flinkold['checked']) ? lang('nocheck') : lang('checked'), '');
     trbasic(lang('addtime'), '', date('Y-m-d H:i', $flinkold['createdate']), '');
     tabfooter();
     $submitstr .= tr_regcode('link');
     $a_field = new cls_field();
     tabheader($mcommu['cname'] . '&nbsp; -&nbsp; ' . lang('submitmessage'));
     foreach ($mlfields as $k => $v) {
         if (!$v['isadmin'] && !$v['isfunc'] && in_array($k, $fieldsarr)) {
             $a_field->init();
             $a_field->field = $v;
             $a_field->oldvalue = isset($flinkold[$k]) ? $flinkold[$k] : '';
             $a_field->trfield('flinknew', '', 'ml');
             $submitstr .= $a_field->submitstr;
         }
     }
     unset($a_field);
     tabfooter('bflinkdetail', '', strbutton('', 'goback', "redirect('{$forward}');"));
     check_submit_func($submitstr);
 } else {
     $c_upload = new cls_upload();
     $mlfields = fields_order($mlfields);
     $sqlstr = '';
     $a_field = new cls_field();
     foreach ($mlfields as $k => $v) {
         if (!$v['isadmin'] && !$v['isfunc'] && in_array($k, $fieldsarr)) {
             $a_field->init();
             $a_field->field = $v;
Exemplo n.º 11
0
                     $noedit = $amode ? noedit('uccid' . $k, $v['umode'] == 1) : noedit('uccid' . $k, $v['umode'] == 2);
                     trbasic($v['cname'] . $noedit, '', mu_cnselect("replynew[uccid{$k}]", $oldrow['uccid' . $k], $k, lang('p_choose'), $v['emode'], "replynew[uccid{$k}date]", @$oldrow["uccid{$k}date"] ? date('Y-m-d', $oldrow["uccid{$k}date"]) : ''), '');
                     !$noedit && ($submitstr .= makesubmitstr("replynew[uccid{$k}]", $v['notblank'], 0, 0, 0, 'common'));
                     !$noedit && $v['emode'] == 2 && ($submitstr .= makesubmitstr("replynew[uccid{$k}date]", 1, 0, 0, 0, 'date'));
                 }
             }
         }
         $a_field = new cls_field();
         foreach ($fields as $k => $v) {
             if (empty($u_lists) || in_array($k, $u_lists)) {
                 if (!$v['isfunc']) {
                     $a_field->init();
                     $a_field->field = $v;
                     $a_field->oldvalue = $oldrow[$k];
                     $noedit = noedit($k, !$amode && $v['isadmin'] || !$curuser->pmbypmids('field', $v['pmid']));
                     $a_field->trfield('replynew', $noedit, 'r');
                     !$noedit && ($submitstr .= $a_field->submitstr);
                 }
             }
         }
         unset($a_field);
         tabfooter('newcommu');
         check_submit_func($submitstr);
         m_guide(@$u_guide);
     } else {
         include M_ROOT . $u_tplname;
     }
     $db->query("UPDATE {$tblprefix}replys SET " . ($amode ? "aread='1'" : "uread='1'") . " WHERE cid='{$cid}'");
 } else {
     $c_upload = new cls_upload();
     $fields = fields_order($fields);
Exemplo n.º 12
0
 foreach (array('mcommu', 'fields') as $var) {
     ${$var} =& $uedit->{$var};
 }
 $oldrow =& $uedit->info;
 $freeupdate = $curuser->check_allow('freeupdatecheck') || !$oldrow['checked'];
 if (!submitcheck('newcommu')) {
     tabheader($mcommu['cname'] . '&nbsp; &nbsp; ' . "<a href=\"{$mspaceurl}index.php?mid=" . $oldrow['fromid'] . "\" target=\"_blank\">>>&nbsp; " . $oldrow['fromname'] . "</a>", 'commudetail', "?action=mcomment&cid={$cid}", 2, 1, 1);
     $submitstr = '';
     $a_field = new cls_field();
     foreach ($fields as $k => $v) {
         if (!$v['isfunc']) {
             $a_field->init();
             $a_field->field = $v;
             $a_field->oldvalue = $oldrow[$k];
             $noedit = noedit($k, $v['isadmin'] || !$curuser->pmbypmids('field', $v['pmid']));
             $a_field->trfield('communew', $noedit, 'mc');
             !$noedit && ($submitstr .= $a_field->submitstr);
         }
     }
     unset($a_field);
     tabfooter('newcommu');
     check_submit_func($submitstr);
 } else {
     $c_upload = new cls_upload();
     $fields = fields_order($fields);
     $a_field = new cls_field();
     foreach ($fields as $k => $v) {
         if (!$v['isfunc'] && !$v['isadmin']) {
             $a_field->init();
             $a_field->field = $v;
             if (!noedit($k, !$curuser->pmbypmids('field', $v['pmid']))) {
Exemplo n.º 13
0
     trbasic(lang('stock'), 'offernew[storage]', $oldrow['storage']);
     foreach ($ucotypes as $k => $v) {
         if (in_array('uccid' . $k, $citems) && $v['umode'] != 1) {
             trbasic(($v['notblank'] ? '*' : '') . $v['cname'], '', mu_cnselect("offernew[uccid{$k}]", $oldrow['uccid' . $k], $k, lang('p_choose'), $v['emode'], "offernew[uccid{$k}date]", @$oldrow["uccid{$k}date"] ? date('Y-m-d', $oldrow["uccid{$k}date"]) : ''), '');
             $submitstr .= makesubmitstr("offernew[uccid{$k}]", $v['notblank'], 0, 0, 0, 'common');
             $v['emode'] == 2 && ($submitstr .= makesubmitstr("offernew[uccid{$k}date]", 1, 0, 0, 0, 'date'));
         }
     }
     $a_field = new cls_field();
     foreach ($fields as $k => $v) {
         if (!$v['isfunc']) {
             $a_field->init();
             $a_field->field = $v;
             $a_field->oldvalue = $oldrow[$k];
             if ($curuser->pmbypmids('field', $v['pmid'])) {
                 $a_field->trfield('offernew', '', 'o');
                 $submitstr .= $a_field->submitstr;
             }
         }
     }
     unset($a_field);
     tabfooter('bofferdetail');
     check_submit_func($submitstr);
 } else {
     $uedit->updatefield('oprice', max(0, round($offernew['oprice'], 2)));
     $uedit->updatefield('refreshdate', $timestamp);
     $uedit->updatefield('enddate', empty($uedit->commu['setting']['vdays']) ? 0 : $timestamp + 86400 * $uedit->commu['setting']['vdays']);
     $uedit->updatefield('storage', max(-1, intval($offernew['storage'])));
     $c_upload = new cls_upload();
     $fields = fields_order($fields);
     $a_field = new cls_field();
Exemplo n.º 14
0
     if ($fields['abstract']['available'] && !in_array('abstract', array_keys($gmodel['gfields']))) {
         trbasic(lang('auto_abstract'), 'dvaluesnew[autoabstract]', empty($dvalues['autoabstract']) ? 0 : $dvalues['autoabstract'], 'radio');
     }
     if ($fields['thumb']['available'] && !in_array('thumb', array_keys($gmodel['gfields']))) {
         trbasic(lang('auto_thumb'), 'dvaluesnew[autothumb]', empty($dvalues['autothumb']) ? 0 : $dvalues['autothumb'], 'radio');
     }
     tabfooter();
     tabheader('[' . $gmission['cname'] . lang('output_default_value'));
     tr_cns('*' . lang('be_catalog'), 'dvaluesnew[caid]', empty($dvalues['caid']) ? 0 : $dvalues['caid'], $sid, 0, $chid, lang('p_choose'));
     $submitstr .= makesubmitstr('dvaluesnew[caid]', 1, 'int', 0, 0, 'common');
     foreach ($fields as $k => $field) {
         if ($field['available'] && !in_array($k, array_keys($gmodel['gfields'])) && !in_array($k, array('abstract', 'thumb'))) {
             $a_field->init();
             $a_field->field = $field;
             $a_field->oldvalue = !isset($dvalues[$k]) ? '' : $dvalues[$k];
             $a_field->trfield('dvaluesnew', '', '', $chid);
             $submitstr .= $a_field->submitstr;
         }
     }
     foreach ($cotypes as $k => $v) {
         if (!$v['self_reg']) {
             tr_cns($v['cname'], "dvaluesnew[ccid{$k}]", empty($dvalues["ccid{$k}"]) ? '' : $dvalues["ccid{$k}"], $sid, $k, $chid, lang('p_choose'), 0, $v['asmode']);
         }
     }
     tabfooter('bgmissionoutput');
     check_submit_func($submitstr);
     a_guide('gmissionoutput');
 } else {
     //数组内的addsalshes
     if (empty($dvaluesnew['caid'])) {
         amessage('choosecatalog', "?entry=gmissions&action=gmissionoutput&gsid={$gsid}{$param_suffix}");
Exemplo n.º 15
0
                     $noedit = noedit('uccid' . $k, $v['umode'] == 2);
                     trbasic($v['cname'] . $noedit, '', mu_cnselect("commentnew[uccid{$k}]", $oldrow['uccid' . $k], $k, lang('p_choose'), $v['emode'], "commentnew[uccid{$k}date]", @$oldrow["uccid{$k}date"] ? date('Y-m-d', $oldrow["uccid{$k}date"]) : ''), '');
                     !$noedit && ($submitstr .= makesubmitstr("commentnew[uccid{$k}]", $v['notblank'], 0, 0, 0, 'common'));
                     !$noedit && $v['emode'] == 2 && ($submitstr .= makesubmitstr("commentnew[uccid{$k}date]", 1, 0, 0, 0, 'date'));
                 }
             }
         }
         $a_field = new cls_field();
         foreach ($fields as $k => $v) {
             if (empty($u_lists) || in_array($k, $u_lists)) {
                 if (!$v['isfunc']) {
                     $a_field->init();
                     $a_field->field = $v;
                     $a_field->oldvalue = $oldrow[$k];
                     $noedit = noedit($k, $v['isadmin'] || !$curuser->pmbypmids('field', $v['pmid']));
                     $a_field->trfield('commentnew', $noedit, 'c');
                     !$noedit && ($submitstr .= $a_field->submitstr);
                 }
             }
         }
         unset($a_field);
         tabfooter('newcommu');
         check_submit_func($submitstr);
         m_guide(@$u_guide);
     } else {
         include M_ROOT . $u_tplname;
     }
 } else {
     $c_upload = new cls_upload();
     $fields = fields_order($fields);
     $a_field = new cls_field();
Exemplo n.º 16
0
         if (!$v['mode'] && !in_array($mchid, explode(',', $v['mchids'])) && in_array("grouptype{$k}", $additems)) {
             trbasic($v['cname'], 'grouptype' . $k, makeoption(ugidsarr($k, $mchid)), 'select');
         }
     }
     $a_field = new cls_field();
     foreach ($mfields as $k => $field) {
         if (!$upload_nouser && in_array($field['datatype'], array('image', 'images', 'flash', 'flashs', 'media', 'medias', 'file', 'files'))) {
             continue;
         }
         if ($field['available'] && !$field['issystem'] && !$field['isfunc'] && !$field['isadmin'] && in_array($k, $additems)) {
             $a_field->init();
             $a_field->field = $field;
             if ($curuser->pmbypmids('field', $a_field->field['pmid'])) {
                 //字段附加权限设置
                 $a_field->isadd = 1;
                 $a_field->trfield('', '', 'm', $mchid);
                 $submitstr .= $a_field->submitstr;
             }
         }
     }
     tabfooter();
     $submitstr .= "return i}\n";
     echo '<input class="button" type="submit" name="register" value="' . lang('register') . '"></form>' . "<script type=\"text/javascript\" language=\"javascript\" reload=\"1\">\n{$submitstr}</script>";
     _footer();
 } else {
     $_da = array('mchid' => $mchid);
     _aenter($_da, 1);
     @extract($btags);
     extract($_da, EXTR_OVERWRITE);
     tpl_refresh($tplname);
     @(include M_ROOT . "template/{$templatedir}/pcache/{$tplname}.php");
Exemplo n.º 17
0
        if (in_array('ccid' . $k, $ccoids) && in_array('ccid' . $k, $additems)) {
            mtrcns($muststr . lang('memberrelatecoclass') . '&nbsp; -&nbsp; ' . $v['cname'], "ccid{$k}", 0, -1, $k, $mchid, 1, lang('p_choose'));
            $submitstr .= makesubmitstr("ccid{$k}", 1, 0, 0, 0, 'common');
        }
    }
    foreach ($grouptypes as $k => $v) {
        if (!$v['mode'] && !in_array($mchid, explode(',', $v['mchids'])) && in_array("grouptype{$k}", $additems)) {
            mtrbasic($v['cname'], 'grouptype' . $k, makeoption(ugidsarr($k, $mchid)), 'select');
        }
    }
    $a_field = new cls_field();
    foreach ($mfields as $k => $field) {
        if (!$upload_nouser && in_array($field['datatype'], array('image', 'images', 'flash', 'flashs', 'media', 'medias', 'file', 'files'))) {
            continue;
        }
        if (!$field['issystem'] && !$field['isfunc'] && !$field['isadmin'] && in_array($k, $additems)) {
            $a_field->init(1);
            $a_field->field = read_cache('mfield', $mchid, $k);
            if ($curuser->pmbypmids('field', $a_field->field['pmid'])) {
                //字段附加权限设置
                $a_field->isadd = 1;
                $a_field->trfield();
                $submitstr .= $a_field->submitstr;
            }
        }
    }
    mtabfooter();
    $submitstr .= "return i}\n";
    echo '<input class="button" type="submit" name="register" value="' . lang('register') . '"></form>' . "<script type=\"text/javascript\" language=\"javascript\" reload=\"1\">\n{$submitstr}</script>";
}
_footer();
Exemplo n.º 18
0
\taj = new Ajax('XML');
\taj.get('{$cms_abs}tools/ajax.php?action=memcert&option=msgcode&mobile='+mob.value, function(info){
\t\tclearTimeout(tmp);
\t\tif(info.time > 0)step = info.time;
\t\tgetMsgcode.status = (new Date).getTime() + step * 60000;
\t\tif(info.time < 0)getMsgcode.info = info.text;
\t\talert(lang(info.text || 'msgcode_send_ok', step + lang('minutes')));
\t});
}
</script>
{$input}<a href="javascript:" onclick="getMsgcode(\$id('memcertnew[{$k}]'));">{$lang_click_get_mcode}</a><span id="alert_msgcode" style="color:red"></span></td></tr>
EOT;
                        //<?
                    }
                }
                $a_field->trfield('memcertnew', '', 'm', $mchid);
                if ($k == $memcert['mobile'] && $msgcode_mode == 2) {
                    $mobile = empty($flags[$k]) ? 1 : 0;
                    $submitstr .= <<<EOT
//?><script>
var _i = i,mob = \$id('memcertnew[{$k}]');
i = 1;
{$a_field->submitstr}
if(i && !empty(mob.value) && ({$mobile} || mob.defaultValue != mob.value)){
\ti = _i;
\trmsg = checktext('msgcode',1,'','/^\\\\d{6}\$/');
\tif(dom=\$id('alert_msgcode'))dom.innerHTML = rmsg ? rmsg : '';
\tif(rmsg)i = false;
}
//<?
Exemplo n.º 19
0
     $submitstr = '';
     tabheader(lang('base_option') . '&nbsp;- &nbsp; ' . lang('add') . $mchannels[$mchid]['cname'], 'memberadd', '?entry=memberadd&mchid=' . $mchid, 2, 1, 1, 1);
     trbasic('*&nbsp;' . lang('member_cname'), 'minfosadd[mname]');
     trbasic('*&nbsp;' . lang('password'), 'minfosadd[password]', '', 'password');
     trbasic('&nbsp;' . lang('email'), 'minfosadd[email]');
     $submitstr .= makesubmitstr('minfosadd[mname]', 1, 0, 0, 15);
     $submitstr .= makesubmitstr('minfosadd[password]', 1, 0, 0, 15);
     #$submitstr .= makesubmitstr('minfosadd[email]',1,'email',0,50);
     //个人空间模板
     #trbasic(lang('space_tpl_prj'),'minfosadd[mtcid]',makeoption(mtcidsarr($mchid)),'select');
     foreach ($mfields as $k => $field) {
         if ($field['available'] && !$field['issystem'] && !$field['isfunc']) {
             $a_field->init();
             $a_field->field = $field;
             $a_field->isadd = 1;
             $a_field->trfield('minfosadd', '', 'm', $mchid);
             $submitstr .= $a_field->submitstr;
         }
     }
     tabfooter();
     tabheader(lang('usergroup_msg'), '', '', 4);
     foreach ($grouptypes as $gtid => $grouptype) {
         if (!in_array($mchid, explode(',', $grouptype['mchids'])) && $grouptype['mode'] < 2 && ($backamember || $gtid != 2)) {
             $ugidsarr = array('0' => lang('noset')) + ugidsarr($grouptype['gtid'], $mchid);
             echo "<tr class=\"txt\">\n" . "<td class=\"txtL w15B\">{$grouptype['cname']}</td>\n" . "<td class=\"txtL w35B\"><select style=\"vertical-align: middle;\" name=\"minfosadd[grouptype" . $gtid . "]\">" . makeoption($ugidsarr) . "</select></td>\n" . "<td class=\"txtL w15B\">" . lang('enddate') . "</td>\n" . "<td class=\"txtL w35B\"><input type=\"text\" size=\"20\" id=\"minfosadd[grouptype" . $gtid . "date]\" name=\"minfosadd[grouptype" . $gtid . "date]\" value=\"\" onclick=\"ShowCalendar(this.id);\"></td>\n" . "</tr>";
         }
     }
     tabfooter('bmemberadd');
     check_submit_func($submitstr);
     a_guide('memberadd');
 } else {
Exemplo n.º 20
0
include_once M_ROOT . "./include/cnode.fun.php";
$catalog = read_cache('catalog', $caid, '', $sid);
if (!submitcheck('bcatalogdetail')) {
    $submitstr = '';
    $a_field = new cls_field();
    #$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;
Exemplo n.º 21
0
     $submitstr = '';
     foreach ($ucotypes as $k => $v) {
         if (in_array('uccid' . $k, $citems) && $v['umode'] != 1) {
             trbasic($v['cname'], '', mu_cnselect("replynew[uccid{$k}]", $oldrow['uccid' . $k], $k, lang('p_choose'), $v['emode'], "replynew[uccid{$k}date]", @$oldrow["uccid{$k}date"] ? date('Y-m-d', $oldrow["uccid{$k}date"]) : ''), '');
             $submitstr .= makesubmitstr("replynew[uccid{$k}]", $v['notblank'], 0, 0, 0, 'common');
             $v['emode'] == 2 && ($submitstr .= makesubmitstr("replynew[uccid{$k}date]", 1, 0, 0, 0, 'date'));
         }
     }
     $a_field = new cls_field();
     foreach ($fields as $k => $v) {
         if (!$v['isfunc']) {
             $a_field->init();
             $a_field->field = $v;
             $a_field->oldvalue = $oldrow[$k];
             if ($curuser->pmbypmids('field', $v['pmid'])) {
                 $a_field->trfield('replynew', '', 'r');
                 $submitstr .= $a_field->submitstr;
             }
         }
     }
     unset($a_field);
     tabfooter('breplydetail');
     check_submit_func($submitstr);
 } else {
     $c_upload = new cls_upload();
     $fields = fields_order($fields);
     $a_field = new cls_field();
     $uedit->updatefield('refreshdate', $timestamp);
     foreach ($ucotypes as $k => $v) {
         if (in_array('uccid' . $k, $citems) && $v['umode'] != 1) {
             $uedit->updatefield('uccid' . $k, $replynew['uccid' . $k]);
Exemplo n.º 22
0
     foreach ($cotypes as $k => $v) {
         if (!$v['self_reg'] && empty($v['asmode']) && in_array($k, $coidscp)) {
             tr_cns(lang('addcpincc', $v['cname']), "archiveadd[cpccids{$k}]", '', $nsid, $k, $chid, lang('p_choose'), 0, 5);
         }
     }
 }
 $a_field = new cls_field();
 $subject_table = 'archives';
 foreach ($fields as $k => $field) {
     if ($field['available'] && !$field['isadmin'] && !$field['isfunc'] && !in_array($k, $additems)) {
         $a_field->init();
         $a_field->field = $field;
         if ($curuser->pmbypmids('field', $a_field->field['pmid'])) {
             //字段附加权限设置
             $a_field->isadd = 1;
             $a_field->trfield('archiveadd', '', '', $chid);
             $submitstr .= $a_field->submitstr;
         }
     }
 }
 unset($a_field);
 if (!in_array('jumpurl', $citems) && !in_array('jumpurl', $additems)) {
     trbasic(lang('jumpurl'), 'archiveadd[jumpurl]', '', 'btext', lang('agjumpurl'));
 }
 if ($channel['validperiod']) {
     $agstr = $channel['mindays'] ? lang('mini') . $channel['mindays'] . lang('day') : '';
     $agstr .= ($agstr ? ',' : '') . ($channel['maxdays'] ? lang('max') . $channel['maxdays'] . lang('day') : '');
     trbasic(lang('set_valid_day'), 'archiveadd[validperiod]', '', 'text', $agstr);
     $submitstr .= makesubmitstr('archiveadd[validperiod]', $channel['mindays'] ? 1 : 0, 0, $channel['mindays'], $channel['maxdays'], 'int');
 }
 if (!in_array('ppids', $citems) && !in_array('ppids', $additems)) {
Exemplo n.º 23
0
if (!$curuser->checkforbid('issue')) {
    mcmessage('userisforbid');
}
$forward = empty($forward) ? M_REFERER : $forward;
$forwardstr = '&forward=' . rawurlencode($forward);
$fields = read_cache('mafields', $matid);
if (!submitcheck('bmarchiveadd')) {
    $a_field = new cls_field();
    $submitstr = '';
    tabheader($matype['cname'] . '&nbsp; -&nbsp; ' . lang('contentsetting'), 'marchiveadd', "?matid={$matid}&action=marchiveadd{$param_suffix}{$forwardstr}", 2, 1, 1, 1);
    foreach ($fields as $k => $field) {
        if ($field['available'] && !$field['isadmin'] && !$field['isfunc']) {
            $a_field->init();
            $a_field->field = $field;
            $a_field->isadd = 1;
            $a_field->trfield('marchiveadd', '', 'ma', $matid);
            $submitstr .= $a_field->submitstr;
        }
    }
    $submitstr .= tr_regcode('archive');
    tabfooter();
    unset($a_field);
    tabfooter('bmarchiveadd');
    check_submit_func($submitstr);
} else {
    if (!regcode_pass('archive', empty($regcode) ? '' : trim($regcode))) {
        mcmessage('safecodeerr');
    }
    $sqlmain = "matid='{$matid}',mid='{$memberid}',mname='" . $curuser->info['mname'] . "',createdate='{$timestamp}'";
    $c_upload = new cls_upload();
    $fields = fields_order($fields);
Exemplo n.º 24
0
     ${$var} =& $uedit->{$var};
 }
 $oldrow =& $uedit->info;
 $freeupdate = $curuser->check_allow('freeupdatecheck') || !$oldrow['checked'] || $amode;
 if (!submitcheck('newcommu')) {
     tabheader($mcommu['cname'] . '&nbsp; &nbsp; ' . "<a href=\"{$mspaceurl}index.php?mid=" . $oldrow[$amode ? 'fromid' : 'mid'] . "\" target=\"_blank\">>>&nbsp; " . $oldrow[$amode ? 'fromname' : 'mname'] . "</a>", 'commudetail', "?action=mreply&amode={$amode}&cid={$cid}", 2, 1, 1);
     $submitstr = '';
     $a_field = new cls_field();
     foreach ($fields as $k => $v) {
         if (empty($u_lists) || in_array($k, $u_lists)) {
             if (!$v['isfunc']) {
                 $a_field->init();
                 $a_field->field = $v;
                 $a_field->oldvalue = $oldrow[$k];
                 $noedit = noedit($k, !$amode && $v['isadmin'] || !$curuser->pmbypmids('field', $v['pmid']));
                 $a_field->trfield('communew', $noedit, '', 'mr');
                 !$noedit && ($submitstr .= $a_field->submitstr);
             }
         }
     }
     unset($a_field);
     tabfooter('newcommu');
     check_submit_func($submitstr);
     $db->query("UPDATE {$tblprefix}mreplys SET " . ($amode ? "aread='1'" : "uread='1'") . " WHERE cid='{$cid}'");
 } else {
     $c_upload = new cls_upload();
     $fields = fields_order($fields);
     $a_field = new cls_field();
     foreach ($fields as $k => $v) {
         if (empty($u_lists) || in_array($k, $u_lists)) {
             if (!$v['isfunc'] && ($amode || !$v['isadmin'])) {
Exemplo n.º 25
0
     trbasic(lang('memcert_title'), '', $memcert['title'], '');
     trbasic(lang('needtime'), '', date('Y-m-d', $record['needtime']), '');
     //		trbasic(lang('memcert_and_checked'), '', makeradio('memberset[check]', array(1 => lang('yes'), 0 => lang('no')), $memcerts[$record['mcid']]['check']), '');
     tabfooter();
     tabheader(lang('memcert_info'));
     $a_field = new cls_field();
     foreach ($values as $k => $v) {
         $a_field->init();
         $a_field->field = read_cache('mfield', $user->info['mchid'], $k);
         if (!empty($certdata['flags'][$k])) {
             $a_field->field['cname'] .= ' [<i title="' . lang('memcert_ok') . '">ok</i>]';
         } elseif ($k == $memcert['mobile'] && $msgcode_mode == 1) {
             $a_field->field['cname'] .= ' [<i title="' . lang('msg_code') . '">' . $certdata['codes'][$k] . '</i>]';
         }
         $a_field->oldvalue = $v;
         $a_field->trfield('memcertnew', '', 'm', $user->info['mchid']);
     }
     tabfooter('bmemcertcheck', lang('memcert_modify_cert'));
 } else {
     unset($certdata['values']);
     $user->updatefield('memcert', $record['mcid']);
     $c_upload = new cls_upload();
     $a_field = new cls_field();
     foreach ($values as $k => $v) {
         $a_field->init();
         $a_field->field = read_cache('mfield', $user->info['mchid'], $k);
         if ($curuser->pmbypmids('field', $a_field->field['pmid'])) {
             $a_field->deal('memcertnew');
             if (!empty($a_field->error)) {
                 $c_upload->rollback();
                 message($a_field->error, M_REFERER);
Exemplo n.º 26
0
        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') . '"/>';
        }
        echo '</form><div class="clear"></div>';
        tabheader(lang('ordersmessageset'), 'orderdetail', '?action=orders&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 class="button" type="submit" name="borderinfo" value="' . lang('modify') . '">';
            (!$order['state'] || $order['state'] == 1) && (print '&nbsp;&nbsp;<input class="button" type="submit" name="bordercancel" value="' . lang('cancelorders') . '">');
            echo '</form>';
            check_submit_func($submitstr);
        }
    }
}
Exemplo n.º 27
0
                     tr_cns(($v['notblank'] ? '*' : '') . $v['cname'], "archivenew[ccid{$k}]", $aedit->archive["ccid{$k}"], $aedit->archive['sid'], $k, $chid, lang('p_choose'), 0, $v['asmode'], 0, $v['emode'], "archivenew[ccid{$k}date]", @$aedit->archive["ccid{$k}date"] ? date('Y-m-d', $aedit->archive["ccid{$k}date"]) : '');
                     #$submitstr .= makesubmitstr("archivenew[ccid$k]", $v['notblank'],0,0,0,'common');
                     $v['emode'] == 2 && ($submitstr .= makesubmitstr("archivenew[ccid{$k}date]", 1, 0, 0, 0, 'date'));
                 }
             }
         }
         $subject_table = 'archives';
         foreach ($fields as $k => $field) {
             if (empty($u_lists) || in_array($k, $u_lists)) {
                 if ($field['available'] && !$field['isfunc']) {
                     $a_field->init();
                     $a_field->field = $field;
                     if ($curuser->pmbypmids('field', $a_field->field['pmid'])) {
                         //字段附加权限设置
                         $a_field->oldvalue = isset($aedit->archive[$k]) ? $aedit->archive[$k] : '';
                         $a_field->trfield('archivenew', '', '', $chid);
                         #$submitstr .= $a_field->submitstr;
                     }
                 }
             }
         }
         if (empty($u_lists) || in_array('jumpurl', $u_lists)) {
             trbasic(lang('jumpurl'), 'archivenew[jumpurl]', $aedit->archive['jumpurl'], 'btext', lang('agjumpurl'));
         }
         tabfooter('barchivedetail');
         #@check_submit_func($submitstr);
         a_guide('archivedetail');
     } else {
         include M_ROOT . $u_tplname;
     }
 } else {
Exemplo n.º 28
0
 $mfields = read_cache('mfields', $mchid);
 if (!submitcheck('bmemberdetail')) {
     $a_field = new cls_field();
     $submitstr = '';
     tabheader(lang('base_option') . '&nbsp;:&nbsp;[' . $mchannel['cname'] . ']' . $actuser->info['mname'], 'memberdetail', "?entry=member&action=memberdetail&mid={$mid}", 2, 1, 1);
     trbasic(lang('modify_pwd'), 'minfosnew[password]', '', 'password');
     trbasic('*' . lang('email'), 'minfosnew[email]', $actuser->info['email']);
     $submitstr .= makesubmitstr('minfosnew[password]', 0, 0, 0, 15);
     $submitstr .= makesubmitstr('minfosnew[email]', 1, 'email', 0, 50);
     trbasic(lang('space_tpl_prj'), 'minfosnew[mtcid]', makeoption(mtcidsarr($mchid), $actuser->info['mtcid']), 'select');
     foreach ($mfields as $k => $field) {
         if ($field['available'] && !$field['issystem'] && !$field['isfunc']) {
             $a_field->init();
             $a_field->field = $field;
             $a_field->oldvalue = isset($actuser->info[$k]) ? $actuser->info[$k] : '';
             $a_field->trfield('minfosnew', '', 'm', $mchid);
             $submitstr .= $a_field->submitstr;
         }
     }
     tabfooter('bmemberdetail');
     check_submit_func($submitstr);
     a_guide('memberdetail');
 } else {
     $minfosnew['email'] = empty($minfosnew['email']) ? '' : trim($minfosnew['email']);
     if (empty($minfosnew['email']) || !isemail($minfosnew['email'])) {
         amessage('memberemailillegal', M_REFERER);
     }
     if (!empty($minfosnew['password']) && strlen($minfosnew['password']) > 15 || $minfosnew['password'] != addslashes($minfosnew['password'])) {
         amessage('memberpwdillegal', M_REFERER);
     }
     $minfosnew['password'] = trim($minfosnew['password']);
Exemplo n.º 29
0
             !$noedit && ($submitstr .= makesubmitstr("archivenew[ccid{$k}]", $v['notblank'], 0, 0, 0, 'common'));
             !$noedit && $v['emode'] == 2 && ($submitstr .= makesubmitstr("archivenew[ccid{$k}date]", 1, 0, 0, 0, 'date'));
             $_no_button = false;
         }
     }
 }
 $a_field = new cls_field();
 $subject_table = 'archives';
 foreach ($fields as $k => $field) {
     if (empty($u_lists) || in_array($k, $u_lists)) {
         if ($field['available'] && !$field['isadmin'] && !$field['isfunc']) {
             $a_field->init();
             $a_field->field = $field;
             $a_field->oldvalue = isset($aedit->archive[$k]) ? $aedit->archive[$k] : '';
             $noedit = noedit($k, !$curuser->pmbypmids('field', $a_field->field['pmid']));
             $a_field->trfield('archivenew', $noedit, '', $chid);
             !$noedit && ($submitstr .= $a_field->submitstr);
             $_no_button = false;
         }
     }
 }
 if (empty($u_lists) || in_array('jumpurl', $u_lists)) {
     if (!in_array('jumpurl', $citems)) {
         $noedit = noedit('jumpurl');
         trbasic(lang('jumpurl') . $noedit, 'archivenew[jumpurl]', $aedit->archive['jumpurl'], 'btext', lang('agjumpurl'));
         $_no_button = false;
     }
 }
 //个人分类设置
 if (empty($u_lists) || in_array('ucid', $u_lists)) {
     if (!in_array('ucid', $citems)) {