Example #1
0
}
if (!empty($chid)) {
    $wheresql .= " AND a.chid='{$chid}'";
}
if (!empty($subject)) {
    $wheresql .= " AND a.subject='{$subject}'";
}
if (!empty($indays)) {
    $wheresql .= " AND s.createdate>'" . ($timestamp - 86400 * $indays) . "'";
}
if (!empty($outdays)) {
    $wheresql .= " AND s.createdate<'" . ($timestamp - 86400 * $outdays) . "'";
}
if (!submitcheck('barcsedit')) {
    $caidsarr = array('0' => lang('allcatalog')) + caidsarr($catalogs);
    $chidsarr = array('0' => lang('allchannel')) + chidsarr();
    $isatmarr = array('0' => lang('archive'), '1' => lang('attachment'));
    tabheader(lang('filtersubscribe') . viewcheck('viewdetail', $viewdetail, 'tbodyfilter') . '&nbsp; &nbsp; ' . strbutton('bfilter', 'filter0'), "?action=subscribes{$forwardstr}");
    trbasic(lang('subscribetype'), '', makeradio('isatm', $isatmarr, $isatm), '');
    echo "<tbody id=\"tbodyfilter\" style=\"display: " . (empty($viewdetail) ? 'none' : '') . "\">";
    trbasic(lang('belongcatalog'), 'caid', makeoption($caidsarr, $caid), 'select');
    trbasic(lang('archivechannel'), 'chid', makeoption($chidsarr, $chid), 'select');
    trbasic(lang('archivetitle'), 'subject', $subject);
    trrange(lang('purchasedate'), array('outdays', empty($outdays) ? '' : $outdays, '', '&nbsp; ' . lang('daybefore') . '&nbsp; -&nbsp; ', 5), array('indays', empty($indays) ? '' : $indays, '', '&nbsp; ' . lang('dayin'), 5));
    echo "</tbody>";
    tabfooter();
    $pagetmp = $page;
    do {
        $query = $db->query("SELECT s.*,a.* FROM {$tblprefix}subscribes s LEFT JOIN {$tblprefix}archives a ON a.aid=s.aid {$wheresql} ORDER BY s.id DESC LIMIT " . ($pagetmp - 1) * $mrowpp . ",{$mrowpp}");
        $pagetmp--;
    } while (!$db->num_rows($query) && $pagetmp);
Example #2
0
(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
if (empty($submitmode)) {
    tabfooter();
    tabheader(lang('arangeset'));
    //只需要筛选文档模型即可
    $cuidsarr = array();
    foreach ($commus as $k => $v) {
        if ($v['cclass'] == 'comment') {
            $cuidsarr[$k] = $v['cname'];
        }
    }
    trbasic(lang('arange') . lang('commuitem') . "<br><input class=\"checkbox\" type=\"checkbox\" name=\"chkallcuids\" onclick=\"checkall(this.form,'cuidsnew','chkallcuids')\">" . lang('selectall'), '', makecheckbox('cuidsnew[]', $cuidsarr, empty($murl['setting']['cuids']) ? array() : explode(',', $murl['setting']['cuids']), 5), '', lang('agnoselect'));
    $checkedarr = array('-1' => lang('nolimit'), '0' => lang('nocheck'), '1' => lang('checked'));
    trbasic(lang('arange') . lang('check_state'), '', makeradio('murlnew[setting][checked]', $checkedarr, !isset($murl['setting']['checked']) ? '-1' : $murl['setting']['checked']), '');
    trbasic(lang('arange') . lang('achannel') . "<br><input class=\"checkbox\" type=\"checkbox\" name=\"chkallchids\" onclick=\"checkall(this.form,'chidsnew','chkallchids')\">" . lang('selectall'), '', makecheckbox('chidsnew[]', chidsarr(1), empty($murl['setting']['chids']) ? array() : explode(',', $murl['setting']['chids']), 5), '', lang('agnoselect'));
    $caidsarr = array();
    foreach ($acatalogs as $k => $v) {
        $caidsarr[$k] = $v['title'] . '(' . $v['level'] . ')';
    }
    trbasic(lang('arange') . lang('catalog') . "<br><input class=\"checkbox\" type=\"checkbox\" name=\"chkallcaids\" onclick=\"checkall(this.form,'caidsnew','chkallcaids')\">" . lang('selectall'), '', makecheckbox('caidsnew[]', $caidsarr, empty($murl['setting']['caids']) ? array() : explode(',', $murl['setting']['caids']), 5), '', lang('agnoselect'));
    tabfooter();
    tabheader(lang('pageresult'));
    $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'));
    $filtersarr = array('commu' => lang('commuitem'), 'channel' => lang('achannel'), 'check' => lang('check_state'));
    foreach ($ucotypes as $k => $v) {
        if ($v['cclass'] == 'comment') {
            $filtersarr['uccid' . $k] = $v['cname'];
        }
    }
Example #3
0
     ${$k} != -1 && ($filterstr .= "&{$k}=" . ${$k});
 }
 $wheresql = empty($no_list) ? $wheresql : 'WHERE 1=0';
 //echo $wheresql;
 if (!submitcheck('bloadold')) {
     if (empty($u_tplname)) {
         //需要归入的合辑管理区***********************************************************
         echo form_str($actionid . 'albumadmin', "?entry=inarchive&action=loadold&aid={$aid}&page={$page}{$param_suffix}");
         //搜索区块
         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('channel', $u_filters)) {
             $chidsarr = array('0' => lang('all_channel')) + chidsarr(1);
             echo "<select style=\"vertical-align: middle;\" name=\"chid\">" . makeoption($chidsarr, $chid) . "</select>&nbsp; ";
         }
         //所在子站搜索
         if (empty($u_filters) || in_array('subsite', $u_filters)) {
             $sidsarr = array('-1' => lang('nolimit') . lang('subsite'), '0' => lang('msite')) + sidsarr();
             echo "<select style=\"vertical-align: middle;\" name=\"nsid\">" . makeoption($sidsarr, $nsid) . "</select>&nbsp; ";
         }
         //栏目搜索
         if (empty($u_filters) || in_array('catalog', $u_filters)) {
             $caidsarr = array('0' => lang('all_catalog')) + caidsarr($catalogs);
             echo "<select style=\"vertical-align: middle;\" name=\"caid\">" . makeoption($caidsarr, $caid) . "</select>&nbsp; ";
         }
         echo "<input class=\"btn\" type=\"submit\" name=\"bfilter\" id=\"bfilter\" value=\"" . lang('filter0') . "\">";
         echo "</td></tr>";
         //某些固定页面参数
Example #4
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'));
    tabfooter();
    tabheader(lang('filter0_set'));
    $sourcearr = array('0' => lang('nolimitcatas'), '1' => lang('handpoint'), '2' => lang('activecatas'), '3' => lang('nearofactive'));
    sourcemodule(lang('catalog_attr') . "&nbsp;&nbsp;&nbsp;<input class=\"checkbox\" type=\"checkbox\" name=\"mtagnew[setting][caidson]\" value=\"1\"" . (empty($mtag['setting']['caidson']) ? "" : " checked") . ">" . lang('include_son'), 'mtagnew[setting][casource]', $sourcearr, empty($mtag['setting']['casource']) ? '0' : $mtag['setting']['casource'], '1', 'mtagnew[setting][caids][]', caidsarr($catalogs), empty($mtag['setting']['caids']) ? array() : explode(',', $mtag['setting']['caids']));
    foreach ($cotypes as $k => $cotype) {
        sourcemodule("{$cotype['cname']}" . lang('attr') . "&nbsp;&nbsp;&nbsp;<input class=\"checkbox\" type=\"checkbox\" name=\"mtagnew[setting][ccidson{$k}]\" value=\"1\"" . (empty($mtag['setting']['ccidson' . $k]) ? "" : " checked") . ">" . lang('include_son'), "mtagnew[setting][cosource{$k}]", $sourcearr, empty($mtag['setting']['cosource' . $k]) ? '0' : $mtag['setting']['cosource' . $k], '1', "mtagnew[setting][ccids{$k}][]", ccidsarr($k), empty($mtag['setting']['ccids' . $k]) ? array() : explode(',', $mtag['setting']['ccids' . $k]));
    }
    $chsourcearr = array('0' => lang('nolimitchannel'), '1' => lang('handpoint'));
    sourcemodule(lang('chid_attr'), 'mtagnew[setting][chsource]', $chsourcearr, empty($mtag['setting']['chsource']) ? '' : $mtag['setting']['chsource'], '1', 'mtagnew[setting][chids][]', chidsarr(1), !empty($mtag['setting']['chids']) ? explode(',', $mtag['setting']['chids']) : array());
    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('only_valid_period'), 'mtagnew[setting][validperiod]', empty($mtag['setting']['validperiod']) ? 0 : $mtag['setting']['validperiod'], 'radio');
    trbasic(lang('view_ch_field'), 'mtagnew[setting][detail]', empty($mtag['setting']['detail']) ? 0 : $mtag['setting']['detail'], 'radio', lang('agtagdetail_yes'));
    trbasic(lang('view_plus_stat'), 'mtagnew[setting][rec]', empty($mtag['setting']['rec']) ? 0 : $mtag['setting']['rec'], 'radio', lang('agtagrec'));
    trbasic(lang('nocp'), 'mtagnew[setting][nocp]', empty($mtag['setting']['nocp']) ? 0 : $mtag['setting']['nocp'], 'radio', lang('agnocp'));
    trbasic(lang('tagjspick'), 'mtagnew[setting][js]', empty($mtag['setting']['js']) ? 0 : $mtag['setting']['js'], 'radio');
    trbasic(lang('clicks_gt'), 'mtagnew[setting][clicks]', !isset($mtag['setting']['clicks']) ? '' : $mtag['setting']['clicks']);
    trbasic(lang('comments_gt'), 'mtagnew[setting][comments]', !isset($mtag['setting']['comments']) ? '' : $mtag['setting']['comments']);
    trbasic(lang('indays'), 'mtagnew[setting][indays]', !isset($mtag['setting']['indays']) ? '' : $mtag['setting']['indays']);
    trbasic(lang('outdays'), 'mtagnew[setting][outdays]', !isset($mtag['setting']['outdays']) ? '' : $mtag['setting']['outdays']);
    trbasic(lang('favorite_pics_gt'), 'mtagnew[setting][favorites]', !isset($mtag['setting']['favorites']) ? '' : $mtag['setting']['favorites']);
    trbasic(lang('praise_pics_gt'), 'mtagnew[setting][praises]', !isset($mtag['setting']['praises']) ? '' : $mtag['setting']['praises']);
    trbasic(lang('debase_pics_gt'), 'mtagnew[setting][debases]', !isset($mtag['setting']['debases']) ? '' : $mtag['setting']['debases']);
    trbasic(lang('goods_orders_amount_gt'), 'mtagnew[setting][orders]', !isset($mtag['setting']['orders']) ? '' : $mtag['setting']['orders']);
Example #5
0
 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'));
 trbasic(lang('list_result'), 'mtagnew[setting][limits]', empty($mtag['setting']['limits']) ? 10 : $mtag['setting']['limits']);
 tabfooter();
 tabheader(lang('filter0_set'));
 $nsidsarr = array('0' => lang('current_subsite'), '-2' => lang('nolimitsubsite'), '-1' => lang('msite')) + sidsarr(1);
 //为免与现有模板冲突,0为当前子站
 trbasic(lang('subsite_attr'), 'mtagnew[setting][nsid]', makeoption($nsidsarr, empty($mtag['setting']['nsid']) ? 0 : $mtag['setting']['nsid']), 'select');
 $sourcearr = array('0' => lang('nolimitcatas'), '1' => lang('handpoint'), '2' => lang('activecatas'), '3' => lang('nearofactive'));
 sourcemodule(lang('caid_attr') . "&nbsp;&nbsp;&nbsp;<input class=\"checkbox\" type=\"checkbox\" name=\"mtagnew[setting][caidson]\" value=\"1\"" . (empty($mtag['setting']['caidson']) ? "" : " checked") . ">" . lang('include_son'), 'mtagnew[setting][casource]', $sourcearr, empty($mtag['setting']['casource']) ? '0' : $mtag['setting']['casource'], '1', 'mtagnew[setting][caids][]', caidsarr($catalogs), empty($mtag['setting']['caids']) ? array() : explode(',', $mtag['setting']['caids']));
 foreach ($cotypes as $k => $cotype) {
     sourcemodule(lang('colasslimit') . "-{$cotype['cname']}" . "&nbsp;&nbsp;&nbsp;<input class=\"checkbox\" type=\"checkbox\" name=\"mtagnew[setting][ccidson{$k}]\" value=\"1\"" . (empty($mtag['setting']['ccidson' . $k]) ? "" : " checked") . ">" . lang('include_son'), "mtagnew[setting][cosource{$k}]", $sourcearr, empty($mtag['setting']['cosource' . $k]) ? '0' : $mtag['setting']['cosource' . $k], '1', "mtagnew[setting][ccids{$k}][]", ccidsarr($k), empty($mtag['setting']['ccids' . $k]) ? array() : explode(',', $mtag['setting']['ccids' . $k]));
 }
 $chsourcearr = array('0' => lang('nolimitchannel'), '1' => lang('active_channel'), '2' => lang('handpoint'));
 sourcemodule(lang('chid_attr'), 'mtagnew[setting][chsource]', $chsourcearr, empty($mtag['setting']['chsource']) ? '' : $mtag['setting']['chsource'], '2', 'mtagnew[setting][chids][]', chidsarr(1), !empty($mtag['setting']['chids']) ? explode(',', $mtag['setting']['chids']) : array());
 trbasic(lang('no_chid_attr'), '', multiselect('mtagnew[setting][nochids][]', chidsarr(1), !empty($mtag['setting']['nochids']) ? explode(',', $mtag['setting']['nochids']) : array()), '');
 tabfooter();
 tabheader(lang('member_related') . "&nbsp;&nbsp;&nbsp;&nbsp;<input class=\"checkbox\" type=\"checkbox\" name=\"viewdetail\" value=\"1\" onclick=\"alterview('mcrelated')\">" . lang('view'));
 $sourcearr = array('0' => lang('nolimit_coclass'), '1' => lang('active_coclass'));
 echo "<tbody id=\"mcrelated\" style=\"display: none;\">";
 trbasic(lang('individual_list'), 'mtagnew[setting][space]', empty($mtag['setting']['space']) ? 0 : $mtag['setting']['space'], 'radio');
 trbasic(lang('active_uclass'), '', makeradio('mtagnew[setting][ucsource]', $sourcearr, empty($mtag['setting']['ucsource']) ? 0 : $mtag['setting']['ucsource']), '');
 echo "</tbody>";
 tabfooter();
 $orderbyarr = array('' => lang('nosetting'), 'createdate_desc' => lang('createdate_desc'), 'createdate_asc' => lang('createdate_asc'), 'clicks_desc' => lang('clicks_desc1'), 'comments_desc' => lang('comments_desc1'), 'scores_desc' => lang('average_score_desc1'), 'favorites_desc' => lang('favorite_pics_desc1'), 'praises_desc' => lang('praise_pics_desc1'), 'debases_desc' => lang('debase_pics_desc1'), 'orders_desc' => lang('orders_amount_desc1'), 'downs_desc' => lang('download_pics_desc1'), 'plays_desc' => lang('play_pics_desc1'), 'currency_desc' => lang('answer_reward_desc1'));
 $orderbyarr1 = array('' => lang('nosetting'), 'mclicks_desc' => lang('month_clicks_desc1'), 'wclicks_desc' => lang('week_clicks_desc1'), 'mcomments_desc' => lang('month_comments_desc1'), 'wcomments_desc' => lang('week_comments_desc1'), 'mfavorites_desc' => lang('m_fav_pics_desc1'), 'wfavorites_desc' => lang('w_fav_pics_desc1'), 'mpraises_desc' => lang('m_praise_pics_desc1'), 'wpraises_desc' => lang('w_praise_pics_desc1'), 'mdebases_desc' => lang('m_debase_pics_desc1'), 'wdebases_desc' => lang('w_debase_pics_desc1'), 'morders_desc' => lang('m_orders_amount_desc1'), 'worders_desc' => lang('w_orders_amount_desc1'), 'mdowns_desc' => lang('m_download_pics_desc1'), 'wdowns_desc' => lang('w_download_pics_desc1'), 'mplays_desc' => lang('m_play_pics_desc1'), 'wplays_desc' => lang('w_play_pics_desc1'));
 tabheader(lang('list_order') . "&nbsp;&nbsp;&nbsp;&nbsp;<input class=\"checkbox\" type=\"checkbox\" name=\"viewdetail\" value=\"1\" onclick=\"alterview('ordersetting')\">" . lang('view'));
 trbasic(lang('first_order'), 'mtagnew[setting][orderby]', makeoption($orderbyarr, empty($mtag['setting']['orderby']) ? '' : $mtag['setting']['orderby']), 'select');
 echo "<tbody id=\"ordersetting\" style=\"display: none;\">";
 trbasic(lang('second0_order'), 'mtagnew[setting][orderby1]', makeoption($orderbyarr1, empty($mtag['setting']['orderby1']) ? '' : $mtag['setting']['orderby1']), 'select');
 $createurl = "&nbsp; >><a href=\"?entry=liststr&tclass=archives\" target=\"_blank\">" . lang('create_str') . "</a>";
Example #6
0
            }
        }
        if (!empty($gmodelsnew)) {
            foreach ($gmodelsnew as $k => $v) {
                $v['cname'] = empty($v['cname']) ? addslashes($gmodels[$k]['cname']) : $v['cname'];
                $db->query("UPDATE {$tblprefix}gmodels SET cname='{$v['cname']}' WHERE gmid={$k}");
            }
        }
        updatecache('gmodels', '', $sid);
        adminlog(lang('edit_gat_model_mlist'));
        amessage('gatmodmodfin', axaction(6, "?entry=gmodels&action=gmodeledit{$param_suffix}"));
    }
} elseif ($action == 'gmodeladd') {
    cache_merge($channels, 'channels', $sid);
    if (!submitcheck('bgmodeladd')) {
        $chidsarr = array(0 => lang('noset')) + chidsarr(0);
        tabheader(lang('add_gather_model'), 'gmodeladd', "?entry=gmodels&action=gmodeladd{$param_suffix}");
        trbasic(lang('gather_model_name'), 'gmodeladd[cname]');
        trbasic(lang('arc_model_choose'), 'gmodeladd[chid]', makeoption($chidsarr), 'select');
        tabfooter('bgmodeladd', lang('add'));
    } else {
        $gmodeladd['cname'] = trim(strip_tags($gmodeladd['cname']));
        if (!$gmodeladd['cname']) {
            amessage('inpgatmodnam', M_REFERER);
        }
        if (!$gmodeladd['chid']) {
            amessage('chorcchanalt', M_REFERER);
        }
        $db->query("INSERT INTO {$tblprefix}gmodels SET cname='{$gmodeladd['cname']}',chid='{$gmodeladd['chid']}',sid='{$sid}'");
        updatecache('gmodels', '', $sid);
        adminlog(lang('add_gather_model'));
Example #7
0
            $db->query("UPDATE {$tblprefix}sitemaps SET available='{$sitemap['available']}' WHERE ename='{$ename}'");
        }
        updatecache('sitemaps');
        amessage('sitmodfin', "?entry=sitemaps&action=sitemapsedit");
    }
} elseif ($action == 'sitemapdetail' && $ename) {
    $sitemap = fetch_one($ename);
    empty($sitemap) && amessage('choosesite', '?entry=sitemaps&action=sitemapsedit');
    if ($ename == 'baidu') {
        $chids = array();
        foreach ($channels as $chid => $channel) {
            $channel['baidu'] && ($chids[$chid] = $channel['cname']);
        }
        empty($chids) && amessage('nobaidunews', '?entry=sitemaps&action=sitemapsedit');
    } else {
        $chids = chidsarr();
    }
    if (!submitcheck('bsitemapdetail')) {
        tabheader(lang('sitemapsetting'), 'sitemapdetail', '?entry=sitemaps&action=sitemapdetail&ename=' . $ename);
        trbasic(lang('sitemapcname'), '', $sitemap['cname'], '');
        trbasic(lang('dynapickurl'), '', $cms_abs . $sitemap['d_url'], '');
        trbasic(lang('xmlpickurl'), '', $cms_abs . $sitemap['xml_url'], '');
        trbasic(lang('isenable'), 'sitemapnew[available]', isset($sitemap['available']) ? $sitemap['available'] : 0, 'radio');
        trbasic(lang('upperiodhours'), 'sitemapnew[setting][life]', empty($sitemap['setting']['life']) ? '' : $sitemap['setting']['life']);
        trbasic(lang('limitdayarchive'), 'sitemapnew[setting][indays]', empty($sitemap['setting']['indays']) ? '' : $sitemap['setting']['indays']);
        $sourcearr = array('0' => lang('nolimitcatas'), '1' => lang('handpoint'));
        sourcemodule(lang('cataloglimi'), 'sitemapnew[setting][casource]', $sourcearr, empty($sitemap['setting']['casource']) ? '0' : $sitemap['setting']['casource'], '1', 'sitemapnew[setting][caids][]', caidsarr($catalogs), empty($sitemap['setting']['caids']) ? array() : $sitemap['setting']['caids']);
        foreach ($cotypes as $k => $cotype) {
            sourcemodule("{$cotype['cname']}" . lang('limited'), "sitemapnew[setting][cosource{$k}]", $sourcearr, empty($sitemap['setting']['cosource' . $k]) ? '0' : $sitemap['setting']['cosource' . $k], '1', "sitemapnew[setting][ccids{$k}][]", ccidsarr($k), empty($sitemap['setting']['ccids' . $k]) ? array() : $sitemap['setting']['ccids' . $k]);
        }
        $chsourcearr = array('0' => lang('nolimitchannel'), '1' => lang('handpoint'));
Example #8
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'));
    $nextarr = array('0' => lang('pre'), '1' => lang('next'));
    trbasic(lang('context_choose'), '', makeradio('mtagnew[setting][next]', $nextarr, isset($mtag['setting']['next']) ? $mtag['setting']['next'] : '0'), '');
    trbasic(lang('parent_altype'), 'mtagnew[setting][chid]', makeoption(chidsarr(1), empty($mtag['setting']['chid']) ? '0' : $mtag['setting']['chid']), 'select');
    $chsourcearr = array('0' => lang('all_archive')) + chidsarr(1);
    trbasic(lang('chid_attr'), 'mtagnew[setting][chsource]', makeoption($chsourcearr, empty($mtag['setting']['chsource']) ? '0' : $mtag['setting']['chsource']), 'select');
    trbasic(lang('tagjspick'), 'mtagnew[setting][js]', empty($mtag['setting']['js']) ? 0 : $mtag['setting']['js'], 'radio');
    tabfooter();
} else {
    if (empty($mtagnew['template'])) {
        if (!submitcheck('bmtagcode')) {
            amessage('input_tag_tpl', M_REFERER);
        } else {
            $errormsg = lang('input_tag_tpl');
        }
        //生成代码出错的提示信息
    }
    if (empty($mtagnew['setting']['chid'])) {
        if (!submitcheck('bmtagcode')) {
            amessage('point_altype', M_REFERER);
        } else {
            $errormsg = lang('point_altype');
        }
        //生成代码出错的提示信息
    }
}
Example #9
0
            }
        }
        updatecache('coclasses', $coid);
        amessage('cocledifin', '?entry=coclass&action=coclassedit&coid=' . $coid);
    }
} elseif ($action == 'coclassdetail' && $ccid) {
    $coclass = read_cache('coclass', $coid, $ccid);
    if (!submitcheck('bcoclassdetail')) {
        $ccidsarr = array('0' => lang('noset'));
        $submitstr = '';
        tabheader(lang('coclass') . "&nbsp;[{$coclass['title']}]&nbsp;" . lang('base_setting'), 'coclassdetail', "?entry=coclass&action=coclassdetail&coid={$coid}&ccid={$ccid}", 2, 1, 1);
        trbasic(lang('coclass_ename'), 'coclassnew[dirname]', $coclass['dirname'], 'text', lang('agdirname'));
        trbasic(lang('parent_coclass'), 'coclassnew[pid]', makeoption(array('0' => lang('topiccoclass')) + ccidsarr($coid), $coclass['pid']), 'select');
        trbasic(lang('isframe_coclass_i'), 'coclassnew[isframe]', $coclass['isframe'], 'radio');
        if (empty($cotype['self_reg'])) {
            trbasic(lang('allow_channel_archive'), '', makecheckbox('coclassnew[chids][]', chidsarr(1), !empty($coclass['chids']) ? explode(',', $coclass['chids']) : array(), 5), '');
            if ($cotype['permission']) {
                trbasic(lang('add_pmid'), 'coclassnew[apmid]', makeoption(pmidsarr('aadd'), $coclass['apmid']), 'select');
                trbasic(lang('read_pmid'), 'coclassnew[rpmid]', makeoption(pmidsarr('aread'), $coclass['rpmid']), 'select');
                trbasic(lang('cread_pmid'), 'coclassnew[crpmid]', makeoption(pmidsarr('cread'), $coclass['crpmid']), 'select');
                trbasic(lang('down_pmid'), 'coclassnew[dpmid]', makeoption(pmidsarr('down'), $coclass['dpmid']), 'select');
            }
            $cotype['awardcp'] && trbasic(lang('issue_arc_currency'), 'coclassnew[awardcp]', makeoption(array('' => lang('noaward')) + $vcps['award'], $coclass['awardcp']), 'select');
            $cotype['taxcp'] && trbasic(lang('arc_deduct_currency'), 'coclassnew[taxcp]', makeoption(array('' => lang('freesale')) + $vcps['tax'], $coclass['taxcp']), 'select');
            $cotype['ftaxcp'] && trbasic(lang('att_deduct_currency'), 'coclassnew[ftaxcp]', makeoption(array('' => lang('freesale')) + $vcps['ftax'], $coclass['ftaxcp']), 'select');
            $cotype['sale'] && trbasic(lang('allow_sale_arc'), 'coclassnew[allowsale]', $coclass['allowsale'], 'radio');
            $cotype['fsale'] && trbasic(lang('allow_sale_att'), 'coclassnew[allowfsale]', $coclass['allowfsale'], 'radio');
        }
        tabfooter();
        if (!empty($cotype['self_reg'])) {
            tabheader(lang('coclass') . "&nbsp;[{$coclass['title']}]&nbsp;" . lang('arc_acondition_set') . "&nbsp;&nbsp;&nbsp;&nbsp;<input class=\"checkbox\" type=\"checkbox\" name=\"viewdetail\" value=\"1\" onclick=\"alterview('morefilter')\">" . lang('viewdetail'));
Example #10
0
        amessage('undosuc', '?entry=subsetup&action=commus');
    }
} elseif ($action == 'channels') {
    include_once M_ROOT . "./include/commu.fun.php";
    load_cache('channels');
    $ochannels = oread_cache('channels', '', '', 'cache');
    $n_operated = isset($stepeds['channels']);
    $do_enable = $n_operated || !isset($stepeds['commus']) ? false : true;
    //如果上一步没有完成,这一步不能开始
    $undo_enable = !$n_operated || isset($stepeds['altypes']) ? false : true;
    //如果上一步没有撤消,这一步不能撤消
    if (!submitcheck('bdo') && !submitcheck('bundo')) {
        tabheader(lang('arcchatrans') . '&nbsp; -&nbsp; ' . ($n_operated ? '&nbsp; Y' : '&nbsp; N'), 'channels', '?entry=subsetup&action=channels', '3');
        trcategory(array(lang('souarcchaid'), lang('souarcchaname'), lang('tranurrentsys')));
        foreach ($ochannels as $k => $v) {
            echo "<tr align=\"center\"><td class=\"item1\">{$k}</td>\n" . "<td class=\"txtL\">{$v['cname']}</td>\n" . "<td class=\"txtL\"><select style=\"vertical-align: middle;\" name=\"transtonew[{$k}]\">" . makeoption(array(0 => lang('add')) + chidsarr(1), empty($idsmap['chids'][$k]) ? 0 : $idsmap['chids'][$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')) {
        if (!$do_enable) {
            amessage('invoperate');
        }
        if (!empty($transtonew)) {
            //处理文档模型
            load_cache('initfields');
            $s_channels = array();
            //新建子站的模型有关的设置
            foreach ($ochannels as $k => $v) {
Example #11
0
        $channelnew['coidscp'] = empty($channelnew['coidscp']) ? '' : implode(',', $channelnew['coidscp']);
        $channelnew['cpkeeps'] = empty($channelnew['cpkeeps']) ? '' : implode(',', $channelnew['cpkeeps']);
        $db->query("UPDATE {$tblprefix}channels SET \n\t\t\tuserforbidadd='{$channelnew['userforbidadd']}', \n\t\t\tapmid='{$channelnew['apmid']}',\n\t\t\tchpmid='{$channelnew['chpmid']}',\n\t\t\tchklv='{$channelnew['chklv']}',\n\t\t\tautocheck='{$channelnew['autocheck']}', \n\t\t\tautostatic='{$channelnew['autostatic']}', \n\t\t\taddnum='{$channelnew['addnum']}',\n\t\t\tacoids='{$channelnew['acoids']}',\n\t\t\tccoids='{$channelnew['ccoids']}',\n\t\t\taitems='{$channelnew['aitems']}',\n\t\t\tcitems='{$channelnew['citems']}',\n\t\t\tadditems='{$channelnew['additems']}',\n\t\t\tuseredits='{$channelnew['useredits']}',\n\t\t\tcoidscp='{$channelnew['coidscp']}',\n\t\t\tcpkeeps='{$channelnew['cpkeeps']}'\n\t\t\tWHERE chid='{$chid}'");
        updatecache('channels');
        adminlog(lang('detail_marc_channel'));
        amessage('channelmodifyfinish', "?entry=channels&action=channeldetail&chid={$chid}{$param_suffix}");
    }
} elseif ($action == 'channelalbum' && $chid) {
    $channel = read_cache('channel', $chid);
    if (!submitcheck('bchanneldetail')) {
        $url_type = 'channeldetail';
        include 'urlsarr.inc.php';
        url_nav($channel['cname'] . '-' . lang('achannel'), $urlsarr, 'album');
        tabheader(lang('abfunc'), 'channeldetail', "?entry=channels&action=channelalbum&chid={$chid}{$param_suffix}");
        trbasic(lang('enablealbum'), 'channelnew[isalbum]', $channel['isalbum'], 'radio', lang('agisalbum'));
        trbasic(lang('inalbum_add_archive'), '', makecheckbox('channelnew[inchids][]', chidsarr(0), empty($channel['inchids']) ? array() : explode(',', $channel['inchids']), 5), '');
        $coidsarr = array('caid' => lang('catalog'));
        foreach ($cotypes as $k => $v) {
            if (!$v['self_reg']) {
                $coidsarr[$k] = $v['cname'];
            }
        }
        trbasic(lang('inalbum_add_coids'), '', makecheckbox('channelnew[incoids][]', $coidsarr, empty($channel['incoids']) ? array() : explode(',', $channel['incoids']), 5), '');
        trbasic(lang('setalbum_auto_check'), 'channelnew[inautocheck]', $channel['inautocheck'], 'radio');
        trbasic(lang('albumoneuser'), 'channelnew[oneuser]', $channel['oneuser'], 'radio');
        trbasic(lang('albumonlyone'), 'channelnew[onlyone]', $channel['onlyone'], 'radio');
        trbasic(lang('isonlyloadalbum'), 'channelnew[onlyload]', $channel['onlyload'], 'radio', lang('agonlyload'));
        trbasic(lang('enableinalbumcount'), 'channelnew[statsum]', $channel['statsum'], 'radio');
        trbasic(lang('inalbummaxlimit'), 'channelnew[maxnums]', $channel['maxnums']);
        tabfooter();
        tabheader(lang('commu_sett'));