function m_sites($urlpre = '', $num = 5) { global $sid, $infloat, $handlekey; $sidsarr = array(0 => lang('msite')) + sidsarr(1); $i = 0; tabheader(lang('selectsite'), '', '', $num); foreach ($sidsarr as $k => $v) { if (!($i % $num)) { echo "<tr>"; } echo "<td class=\"item2\" width=\"" . intval(100 / $num) . "%\">>>" . ($sid == $k ? "<b>{$v}</b>" : "<a href=\"{$urlpre}" . ($k ? "&sid={$k}" : '') . "\"" . ($infloat ? " onclick=\"floatwin('open_{$handlekey}',this)\"" : '') . ">{$v}</a>") . "</td>\n"; $i++; if (!($i % $num)) { echo "</tr>\n"; } } if ($i % $num) { while ($i % $num) { echo "<td class=\"item2\" width=\"" . intval(100 / $num) . "%\"></td>\n"; $i++; } echo "</tr>\n"; } tabfooter(); }
<?php (!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission'); if (empty($submitmode)) { tabfooter(); tabheader(lang('arangeset')); 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($inurl['setting']['chids']) ? array() : explode(',', $inurl['setting']['chids']), 5), '', lang('agnoselect')); trbasic(lang('arange') . lang('subsite') . "<br><input class=\"checkbox\" type=\"checkbox\" name=\"chkallsids\" onclick=\"checkall(this.form,'sidsnew','chkallsids')\">" . lang('selectall'), '', makecheckbox('sidsnew[]', array('m' => lang('msite')) + sidsarr(), empty($inurl['setting']['sids']) ? array() : explode(',', $inurl['setting']['sids']), 5), '', lang('agnoselect')); tabfooter(); tabheader(lang('pageresult')); $tnstr = "<input type=\"text\" size=\"25\" id=\"inurlnew[tplname]\" name=\"inurlnew[tplname]\" value=\"{$inurl['tplname']}\"> \n\t\t\t<input class=\"checkbox\" type=\"checkbox\" name=\"inurlnew[onlyview]\" id=\"inurlnew[onlyview]\" value=\"1\"" . (empty($inurl['onlyview']) ? '' : ' checked') . ">" . lang('onlyview'); trbasic(lang('customapage'), '', $tnstr, '', lang('agcustomapage')); $filtersarr = array('channel' => lang('channel'), 'subsite' => lang('subsite'), 'catalog' => lang('catalog')); trbasic(lang('view_filters') . "<br><input class=\"checkbox\" type=\"checkbox\" name=\"chkallfilters\" onclick=\"checkall(this.form,'filtersnew','chkallfilters')\">" . lang('selectall'), '', makecheckbox('filtersnew[]', $filtersarr, empty($inurl['setting']['filters']) ? array() : explode(',', $inurl['setting']['filters']), 5), '', lang('agnoselect1')); $listsarr = array('mname' => lang('member'), 'catalog' => lang('catalog'), 'channel' => lang('arctype'), 'subsite' => lang('subsite'), 'view' => lang('view_info')); trbasic(lang('view_lists') . "<br><input class=\"checkbox\" type=\"checkbox\" name=\"chkalllists\" onclick=\"checkall(this.form,'listsnew','chkalllists')\">" . lang('selectall'), '', makecheckbox('listsnew[]', $listsarr, empty($inurl['setting']['lists']) ? array() : explode(',', $inurl['setting']['lists']), 5), '', lang('agnoselect1')); } else { foreach (array('chids', 'sids', 'filters', 'lists') as $var) { $inurlnew['setting'][$var] = empty(${$var . 'new'}) ? '' : implode(',', ${$var . 'new'}); } $inurlnew['url'] = "?entry=inarchive&action=loadold&niuid={$iuid}&aid="; }
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') . " <input class=\"text\" name=\"keyword\" type=\"text\" value=\"{$keyword}\" size=\"8\" style=\"vertical-align: middle;\"> "; //模型搜索 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> "; } //所在子站搜索 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> "; } //栏目搜索 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> "; } echo "<input class=\"btn\" type=\"submit\" name=\"bfilter\" id=\"bfilter\" value=\"" . lang('filter0') . "\">"; echo "</td></tr>"; //某些固定页面参数 trhidden('niuid', $niuid); tabfooter(); //列表区 tabheader(lang('content_load_list') . ' - ' . $aedit->archive['subject'], '', '', 9); $cy_arr = array("<input class=\"checkbox\" type=\"checkbox\" name=\"chkall\" onclick=\"checkall(this.form, 'selectid', 'chkall')\">", lang('title'));
<?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')); trbasic(lang('list_result'), 'mtagnew[setting][limits]', empty($mtag['setting']['limits']) ? 10 : $mtag['setting']['limits']); trbasic(lang('direct_aid'), 'mtagnew[setting][aid]', empty($mtag['setting']['aid']) ? '' : $mtag['setting']['aid']); 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('catalog_attr') . " <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') . " <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()); 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')); tabheader(lang('list_order') . " <input class=\"checkbox\" type=\"checkbox\" name=\"viewdetail\" value=\"1\" onclick=\"alterview('ordersetting')\">" . lang('viewdetail')); trbasic(lang('first_order'), 'mtagnew[setting][orderby]', makeoption($orderbyarr, empty($mtag['setting']['orderby']) ? '' : $mtag['setting']['orderby']), 'select'); echo "<tbody id=\"ordersetting\" style=\"display: none;\">"; $createurl = " >><a href=\"?entry=liststr&tclass=albums\" target=\"_blank\">" . lang('create_str') . "</a>"; trbasic(lang('order_str') . $createurl, 'mtagnew[setting][orderstr]', empty($mtag['setting']['orderstr']) ? '' : stripslashes($mtag['setting']['orderstr']), 'textarea'); echo "</tbody>"; trbasic(lang('startno'), 'mtagnew[setting][startno]', empty($mtag['setting']['startno']) ? '' : $mtag['setting']['startno'], 'text', lang('agstartno')); tabfooter(); tabheader(lang('adv_options') . " <input class=\"checkbox\" type=\"checkbox\" name=\"viewdetail\" value=\"1\" onclick=\"alterview('advancedfilter')\">" . lang('view'));
updatecache('usualurls'); amessage('usuedifin', "?entry=usualurls&action=usualurlsedit{$mc_suffix}"); } } elseif ($action == 'usualurldetail' && $uid) { if (!($usualurl = $db->fetch_one("SELECT * FROM {$tblprefix}usualurls WHERE uid='{$uid}'"))) { amessage('chooseusu'); } if (!submitcheck('busualurldetail')) { tabheader(lang('edit') . $mc_str . lang('usualurl'), 'usualurldetail', "?entry=usualurls&action=usualurldetail&uid={$uid}{$mc_suffix}"); trbasic(lang('usuatitle'), 'usualurlnew[title]', $usualurl['title'], 'text'); trbasic(lang('usualurl'), 'usualurlnew[url]', $usualurl['url'], 'btext'); trbasic(lang('usuorder'), 'usualurlnew[vieworder]', $usualurl['vieworder'], 'text'); trspecial(lang('urlimage'), 'usualurlnew[logo]', $usualurl['logo'], 'image'); trbasic(lang('newwin'), 'usualurlnew[newwin]', $usualurl['newwin'], 'radio'); if (!$ismc) { $sidsarr = array('m' => lang('msite')) + sidsarr(1); trbasic(lang('belsitforuse'), '', makecheckbox('sidsnew[]', $sidsarr, $usualurl['sids'] === '' ? array() : explode(',', $usualurl['sids']), 5), ''); trbasic(lang('inhitatt'), 'usualurlnew[actsid]', $usualurl['actsid'], 'radio'); } else { trbasic(lang('onclick'), 'usualurlnew[onclick]', $usualurl['onclick'], 'btext'); } trbasic(lang('u_permission_set'), 'usualurlnew[pmid]', makeoption(pmidsarr('menu'), $usualurl['pmid']), 'select'); tabfooter('busualurldetail'); a_guide('usualurldetail'); } else { $usualurlnew['title'] = trim(strip_tags($usualurlnew['title'])); $usualurlnew['url'] = trim(strip_tags($usualurlnew['url'])); $usualurlnew['vieworder'] = max(0, intval($usualurlnew['vieworder'])); $usualurlnew['title'] = empty($usualurlnew['title']) ? $usualurl['title'] : $usualurlnew['title']; $usualurlnew['url'] = empty($usualurlnew['url']) ? $usualurl['url'] : $usualurlnew['url']; $c_upload = new cls_upload();
<?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')); trbasic(lang('list_result'), 'mtagnew[setting][limits]', empty($mtag['setting']['limits']) ? 10 : $mtag['setting']['limits']); trbasic(lang('tagjspick'), 'mtagnew[setting][js]', empty($mtag['setting']['js']) ? 0 : $mtag['setting']['js'], 'radio'); $sourcearr = array('0' => lang('all_site'), '1' => lang('all_subsite'), '2' => lang('handpoint')); $sidsarr = array('0' => lang('msite')) + sidsarr(); sourcemodule(lang('list_channel'), 'mtagnew[setting][source]', $sourcearr, empty($mtag['setting']['source']) ? '' : $mtag['setting']['source'], '2', 'mtagnew[setting][sids][]', $sidsarr, !empty($mtag['setting']['sids']) ? explode(',', $mtag['setting']['sids']) : array()); tabfooter(); } else { if (empty($mtagnew['template'])) { if (!submitcheck('bmtagcode')) { amessage('input_tag_tpl', M_REFERER); } else { $errormsg = lang('input_tag_tpl'); } //生成代码出错的提示信息 } $mtagnew['setting']['limits'] = empty($mtagnew['setting']['limits']) ? 10 : max(0, intval($mtagnew['setting']['limits'])); $idvars = array('sids'); foreach ($idvars as $k) { if (empty($mtagnew['setting'][$k])) { unset($mtagnew['setting'][$k]); } else { $mtagnew['setting'][$k] = implode(',', $mtagnew['setting'][$k]); } } }
echo '</script>'; tabfooter(); tabheader(lang('operate_item') . viewcheck('viewdetail', 0, $actionid . 'tbodyfilter')); echo "<tbody id=\"{$actionid}tbodyfilter\" style=\"display:none\">"; trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[pid]\" value=\"1\"> " . lang('reset_parent_catalog'), 'arcpid', makeoption(array('0' => lang('topic_catalog')) + caidsarr($catalogs)), 'select'); trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[chids]\" value=\"1\"> " . lang('allow_channel_archive'), '', makecheckbox('arcchids[]', chidsarr(0), array(), 5), ''); trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[apmid]\" value=\"1\"> " . lang('add_pmid'), 'arcapmid', makeoption(pmidsarr('aadd')), 'select'); trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[rpmid]\" value=\"1\"> " . lang('read_pmid'), 'arcrpmid', makeoption(pmidsarr('aread')), 'select'); trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[crpmid]\" value=\"1\"> " . lang('cread_pmid'), 'arccrpmid', makeoption(pmidsarr('cread')), 'select'); trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[dpmid]\" value=\"1\"> " . lang('down_pmid'), 'arcdpmid', makeoption(pmidsarr('cread')), 'select'); trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[awardcp]\" value=\"1\"> " . lang('issue_arc_currency'), 'arcawardcp', makeoption(array('' => lang('noaward')) + $vcps['award']), 'select'); trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[taxcp]\" value=\"1\"> " . lang('arc_deduct_currency'), 'arctaxcp', makeoption(array('' => lang('freesale')) + $vcps['tax']), 'select'); trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[ftaxcp]\" value=\"1\"> " . lang('att_deduct_currency'), 'arcftaxcp', makeoption(array('' => lang('freesale')) + $vcps['ftax']), 'select'); trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[allowsale]\" value=\"1\"> " . lang('allow_sale_archive'), 'arcallowsale', '', 'radio'); trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[allowfsale]\" value=\"1\"> " . lang('allow_sale_attachment'), 'arcallowfsale', '', 'radio'); trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[trantosid]\" value=\"1\"> " . lang('to_other_subsite'), 'arctrantosid', makeoption(array(0 => lang('msite')) + sidsarr(1)), 'select'); echo "</tbody>"; tabfooter('bcatalogedit'); a_guide('catalogedit'); } else { if (isset($catalogsnew)) { foreach ($catalogsnew as $caid => $catalognew) { $catalognew['title'] = trim(strip_tags($catalognew['title'])); $catalognew['title'] = $catalognew['title'] ? $catalognew['title'] : $catalogs[$caid]['title']; $catalognew['vieworder'] = max(0, intval($catalognew['vieworder'])); if ($catalognew['title'] != $catalogs[$caid]['title'] || $catalognew['vieworder'] != $catalogs[$caid]['vieworder']) { $db->query("UPDATE {$tblprefix}catalogs SET \n\t\t\t\t\t\t\t\ttitle='{$catalognew['title']}', \n\t\t\t\t\t\t\t\tvieworder='{$catalognew['vieworder']}' \n\t\t\t\t\t\t\t\tWHERE caid='{$caid}'\n\t\t\t\t\t\t\t\t"); } } } if (!empty($selectid) && !empty($arcdeal)) {