コード例 #1
0
             if ($v == -1) {
                 break;
             }
             if ($v < 10) {
                 $_chk = 1;
             }
         }
     }
 }
 if (!empty($arcdeal['abover'])) {
     $aedit->updatefield('abover', 1, 'main');
 } elseif (!empty($arcdeal['unabover'])) {
     $aedit->updatefield('abover', 0, 'main');
 }
 if (!empty($arcdeal['caid'])) {
     $aedit->arc_caid($arccaid);
 }
 foreach ($cotypes as $k => $v) {
     if (!empty($arcdeal['ccid' . $k])) {
         $aedit->arc_ccid(${'arcccid' . $k}, $k);
         if ($v['emode']) {
             $aedit->updatefield("ccid{$k}date", !isdate(${"arcccid{$k}date"}) || !$aedit->archive["ccid{$k}"] ? 0 : strtotime(${"arcccid{$k}date"}), 'main');
         }
     }
 }
 if (!empty($arcdeal['rpmid'])) {
     $aedit->updatefield('rpmid', $arcrpmid, 'main');
 }
 if (!empty($arcdeal['dpmid'])) {
     $aedit->updatefield('dpmid', $arcdpmid, 'main');
 }
コード例 #2
0
ファイル: arcs.php プロジェクト: polarlight1989/08cms
                     }
                 }
             }
         }
         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 {
     if (isset($archivenew['caid'])) {
         $aedit->arc_caid($archivenew['caid']);
     }
     foreach ($cotypes as $k => $v) {
         if (isset($archivenew["ccid{$k}"])) {
             if (!$v['self_reg'] && !in_array($k, $acoids)) {
                 $archivenew["ccid{$k}"] = empty($archivenew["ccid{$k}"]) ? '' : $archivenew["ccid{$k}"];
                 $aedit->arc_ccid($archivenew["ccid{$k}"], $k);
                 if ($v['emode']) {
                     $archivenew["ccid{$k}date"] = !isdate($archivenew["ccid{$k}date"]) ? 0 : strtotime($archivenew["ccid{$k}date"]);
                     if ($aedit->archive["ccid{$k}"] && !$archivenew["ccid{$k}date"] && $v['emode'] == 2) {
                         amessage('setcoclass', axaction(2, M_REFERER), $v['cname']);
                     }
                     !$aedit->archive["ccid{$k}"] && ($archivenew["ccid{$k}date"] = 0);
                     $aedit->updatefield("ccid{$k}date", $archivenew["ccid{$k}date"], 'main');
                 }
             }