foreach ($s_arr as $k => $v) { $soperatestr .= "<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[{$k}]\" value=\"1\">{$v} "; if (!($i % 5)) { $soperatestr .= '<br>'; } $i++; } trbasic(lang('choose_item'), '', $soperatestr, ''); } if (empty($u_operates) || in_array('catalog', $u_operates)) { tr_cns("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[caid]\" value=\"1\"> " . lang('set') . lang('catalog'), 'arccaid', 0, $sid, 0, 0, lang('p_choose')); } foreach ($cotypes as $k => $v) { if (empty($v['self_reg'])) { if (empty($u_operates) || in_array('ccid' . $k, $u_operates)) { tr_cns("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[ccid{$k}]\" value=\"1\"> " . lang('set') . "{$v['cname']}", "arcccid{$k}", '', $sid, $k, 0, lang('p_choose'), 0, $v['asmode'], 0, $v['emode'], "arcccid{$k}date"); } } } if (empty($u_operates) || in_array('vol', $u_operates)) { trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[vol]\" value=\"1\"> " . lang('set_volid'), 'arcvol', makeoption(array('' => lang('nosetting')) + $volids), 'select'); } if (empty($u_operates) || in_array('rpmid', $u_operates)) { trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[rpmid]\" value=\"1\"> " . lang('read_pmid'), 'arcrpmid', makeoption(array('-1' => lang('fromcata')) + pmidsarr('aread'), -1), 'select'); } if (empty($u_operates) || in_array('dpmid', $u_operates)) { trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[dpmid]\" value=\"1\"> " . lang('down_pmid'), 'arcdpmid', makeoption(array('-1' => lang('fromcata')) + pmidsarr('down'), -1), 'select'); } if (empty($u_operates) || in_array('sale', $u_operates)) { trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[salecp]\" value=\"1\"> " . lang('arc_price'), 'arcsalecp', makeoption(array('' => lang('freesale')) + $vcps['sale']), 'select'); }
tr_cns(($v['notblank'] ? '*' : '') . $v['cname'], "archiveadd[ccid{$k}]", 0, $nsid, $k, $chid, lang('p_choose'), 0, $v['asmode'], 0, $v['emode'], "archiveadd[ccid{$k}date]", 0); } else { $endstr = $v['emode'] ? ' ' . lang('enddate1') . ($v['emode'] > 1 ? '*' : '') . "<input type=\"text\" size=\"10\" id=\"archiveadd[ccid{$k}date]\" name=\"archiveadd[ccid{$k}date]\" value=\"\" onclick=\"ShowCalendar(this.id);\"><span id=\"alert_archiveadd[ccid{$k}date]\" name=\"alert_archiveadd[ccid{$k}date]\" class=\"red\"></span>\n" : ''; $coclasses = read_cache('coclasses', $k); trbasic(($v['notblank'] ? '*' : '') . $v['cname'], '', cnstitle($pre_cns['ccid' . $k], $v['asmode'], $coclasses) . $endstr, ''); trhidden("archiveadd[ccid{$k}]", $pre_cns['ccid' . $k]); } $submitstr .= makesubmitstr("archiveadd[ccid{$k}]", $v['notblank'], 0, 0, 0, 'common'); $v['notblank'] && $v['emode'] == 2 && ($submitstr .= makesubmitstr("archiveadd[ccid{$k}date]", 1, 0, 0, 0, 'date')); } } if (!in_array('copy', $citems) && !in_array('copy', $additems)) { in_array('caid', $coidscp) && tr_cns(lang('addcpinca'), 'archiveadd[cpcaids]', '', $nsid, 0, $chid, lang('p_choose'), 0, 5); 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; }
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}"); } $dvaluesnew['musts'] = empty($dvaluesnew['musts']) ? '' : implode(',', $dvaluesnew['musts']); foreach ($cotypes as $k => $v) { $dvaluesnew["ccid{$k}"] = empty($dvaluesnew["ccid{$k}"]) ? '' : $dvaluesnew["ccid{$k}"]; } $dvaluesnew['autoabstract'] = empty($dvaluesnew['autoabstract']) ? 0 : $dvaluesnew['autoabstract'];
${$var} = $channel[$var] ? explode(',', $channel[$var]) : array(); } if (!submitcheck('barchivedetail')) { if (empty($u_tplname)) { $submitstr = ''; $a_field = new cls_field(); tabheader($channel['cname'] . ' - ' . lang('arcedit'), 'archivedetail', "{$urlpre}action=archivedetail&aid={$aid}{$param_suffix}{$forwardstr}", 2, 1, 1, 1); //tabheader($channel['cname'].' - '.lang('arcedit'),'archivedetail',"?entry=archive&action=archivedetail&aid=$aid$param_suffix$forwardstr",2,1,1); if (empty($u_lists) || in_array('caid', $u_lists)) { tr_cns(lang('be_catalog'), 'archivenew[caid]', $aedit->archive['caid'], $aedit->archive['sid'], 0, $chid, lang('p_choose')); $submitstr .= makesubmitstr('archivenew[caid]', 1, 0, 0, 0, 'common'); } foreach ($cotypes as $k => $v) { if (empty($u_lists) || in_array("ccid{$k}", $u_lists)) { if (!$v['self_reg'] && !in_array($k, $acoids)) { 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);
$ptypearr = array(); for ($i = 0; $i <= $cn_max_addno; $i++) { $ptypearr[$i] = $i ? lang('addp') . $i : lang('index'); } trbasic(lang('choatpaty'), '', makecheckbox('ptypes[]', $ptypearr, $ptypes), ''); trbasic(lang('numperpic20_500'), 'numperpic', $numperpic); tabfooter(); tabheader(lang('ficatcnocuo') . $db->result_one("SELECT count(*) {$fromsql} {$wheresql}")); $mainlinearr = array('0' => lang('nolimit'), 'ca' => lang('catalog')); foreach ($cotypes as $k => $v) { if ($v['sortable']) { $mainlinearr[$k] = $v['cname']; } } trbasic(lang('mainlinemode'), 'mainline', makeoption($mainlinearr, $mainline), 'select'); tr_cns(lang('caid_attr'), 'caid', $caid, $sid, 0, 0, lang('p_choose'), 1); trbasic(lang('cnodelevelnum'), 'cnlevel', makeoption(array('0' => lang('nolimit'), '1' => lang('topic'), '2' => lang('level2'), '3' => lang('level3'), '4' => lang('level4')), $cnlevel), 'select'); tabfooter(); echo "<input class=\"button\" type=\"submit\" name=\"bcnodes\" value=\"" . lang('submit') . "\"> "; echo "<input class=\"button\" type=\"submit\" name=\"bfilter\" value=\"" . lang('filter0') . "\"></form>"; } else { empty($ptypes) && amessage('chocatpagty', "?entry={$entry}&action={$action}{$param_suffix}{$filterstr}"); $npage = empty($npage) ? 1 : $npage; if (empty($pages)) { $pages = @ceil($db->result_one("SELECT count(*) {$fromsql} {$wheresql}") / $numperpic); } if (empty($pages)) { amessage('chocatcno', 'history.go(-1)'); } $selectid = $cnstrarr = array(); if ($npage <= $pages) {
${'u_' . $var} = explode(',', $u_url['setting'][$var]); } } foreach (array('chids', 'nochids') as $var) { if (!empty($u_url['setting'][$var])) { ${'u_' . $var} = '&' . $var . '=' . $u_url['setting'][$var]; } } } tabheader(lang('cata_choose'), 'ajax_arc', '', '', '', 1); tr_cns(lang('be_catalog'), 'caid', $caid, $sid, 0, 0, lang('p_choose')); $js_frm = "[{$ca_vmode},1,'caid','" . str_replace("'", "\\'", lang('be_catalog')) . "'],"; foreach ($u_coids as $k) { $v =& $cotypes[$k]; $js_frm .= "\n\t\t[" . $v['vmode'] . ",0,'ccid{$k}','" . str_replace("'", "\\'", $v['cname']) . "'],"; tr_cns($v['cname'], "ccid{$k}", ${"ccid{$k}"}, $sid, $k, 0, lang('p_choose'), 0, $v['asmode']); } trbasic(lang('prompt_msg'), '', '<div id="information"></div>', ''); trbasic(lang('allow_type'), '', '<div id="setlink"></div>', ''); tabfooter(); check_submit_func('return false;'); echo <<<EOT <!--?> --> </form> <script type="text/javascript"> var form = document.forms['ajax_arc'], \tstruct = [//类型(单选、下拉、弹出),必选,名称,标题 \t\t{$js_frm} \t],result = {}; function \$id(d){return typeof d == 'string' ? document.getElementById(d) : d} function listen(dom,event,action){
$chidsarr = array('0' => lang('all_channel')) + chidsarr(); echo "<select style=\"vertical-align: middle;\" name=\"chid\">" . makeoption($chidsarr, $chid) . "</select> "; } $statusarr = array('-1' => lang('nolimit'), '0' => lang('update_need'), '1' => lang('checkneed'), '2' => lang('overupdate')); echo "<select style=\"vertical-align: middle;\" name=\"status\">" . makeoption($statusarr, $status) . "</select> "; echo "<input class=\"btn\" type=\"submit\" name=\"bfilter\" id=\"bfilter\" value=\"" . lang('filter0') . "\">" . viewcheck('viewdetail', $viewdetail, $actionid . 'tbodyfilter'); echo "</td></tr>"; //某些固定页面参数 trhidden('caid', $caid); trhidden('nauid', $nauid); //隐藏区块 echo "<tbody id=\"{$actionid}tbodyfilter\" style=\"display: " . (empty($viewdetail) ? 'none' : '') . "\">"; //类系筛选 foreach ($cotypes as $coid => $cotype) { if (empty($u_filters) || in_array('ccid' . $coid, $u_filters)) { tr_cns("{$cotype['cname']}", "ccid{$coid}", ${"ccid{$coid}"}, $sid, $coid, 0, lang('p_choose'), 0, 0, 1); } } //日期筛选 if (empty($u_filters) || in_array('date', $u_filters)) { trrange(lang('add_date'), array('outdays', empty($outdays) ? '' : $outdays, '', ' ' . lang('day_before') . ' - ', 5), array('indays', empty($indays) ? '' : $indays, '', ' ' . lang('day_in'), 5)); } echo "</tbody>"; tabfooter(); //列表区 tabheader(lang('content_list') . " <input class=\"checkbox\" type=\"checkbox\" name=\"select_all\" value=\"1\"> " . lang('selectallpage'), '', '', 9); $cy_arr = array("<input class=\"checkbox\" type=\"checkbox\" name=\"chkall\" onclick=\"checkall(this.form, 'selectid', 'chkall')\">", array(' ' . lang('title'), 'txtL')); if (in_array('catalog', $u_lists)) { $cy_arr[] = lang('catalog'); } if (in_array('channel', $u_lists)) {