} } } cache2file($mtpls, 'mtpls', 'mtpls', $sid); adminlog(lang('edinortemmanli')); amessage('tplmodfin', "?entry=mtpls&action=mtplsedit{$param_suffix}&ftpclass={$ftpclass}"); } } elseif ($action == 'mtpldetail' && $tplname) { $mtpl = $mtpls[$tplname]; $forward = empty($forward) ? M_REFERER : $forward; $forwardstr = '&forward=' . rawurlencode($forward); if (!submitcheck('bmtpldetail')) { $template = load_tpl($tplname, 0); tabheader("{$mtpl['cname']}" . lang('setting') . '-' . $mtpl['cname'], 'mtpldetail', "?entry=mtpls&action=mtpldetail&tplname={$tplname}{$param_suffix}{$forwardstr}"); trbasic(lang('templateclass'), 'mtplnew[tpclass]', makeoption($tpclasses, $mtpl['tpclass']), 'select'); templatebox(lang('page_template'), 'templatenew', $template, 30, 110); tabfooter('bmtpldetail'); a_guide('mtpldetail'); } else { @str2file(stripslashes($templatenew), $true_tpldir . '/' . $tplname); $mtpls[$tplname]['tpclass'] = $mtpl['tpclass'] = $mtplnew['tpclass']; cache2file($mtpls, 'mtpls', 'mtpls', $sid); adminlog(lang('detamodnormtem')); amessage('tplmodfin', axaction(6, $forward)); } } elseif ($action == 'mtplcopy' && $tplname) { $mtpl = $mtpls[$tplname]; if (!submitcheck('bmtplcopy')) { !is_file($true_tpldir . '/' . $tplname) && amessage('poisotemfino'); tabheader(lang('copnormapagetemp'), 'mtplcopy', "?entry=mtpls&action=mtplcopy{$param_suffix}&tplname={$tplname}"); trbasic(lang('templatecname'), 'mtpladd[cname]');
<?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('limitin_current_channel'), 'mtagnew[setting][chid]', empty($mtag['setting']['chid']) ? '0' : $mtag['setting']['chid'], 'radio'); trbasic(lang('limitin_current_catalog'), 'mtagnew[setting][caid]', empty($mtag['setting']['caid']) ? '0' : $mtag['setting']['caid'], 'radio'); foreach ($cotypes as $k => $cotype) { if ($cotype['sortable']) { trbasic(lang('limitin_current_coclass') . " [{$cotype['cname']}]", 'mtagnew[setting][ccid' . $k . ']', empty($mtag['setting']['ccid' . $k]) ? '0' : $mtag['setting']['ccid' . $k], 'radio'); } } trbasic(lang('limitin_active_member'), 'mtagnew[setting][mid]', empty($mtag['setting']['mid']) ? '0' : $mtag['setting']['mid'], 'radio'); 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'); tabfooter(); } else { if (empty($mtagnew['template'])) { if (!submitcheck('bmtagcode')) { amessage('input_tag_tpl', M_REFERER); } else { $errormsg = lang('input_tag_tpl'); } //生成代码出错的提示信息 } }
adminlog(lang('edsptemmanli')); amessage('pagemodfin', "?entry=sptpls&action=sptplsedit{$param_suffix}"); } } elseif ($action == 'sptpldetail' && $spid) { $dbtpl = $dbtpls[$spid]; $tplname = empty($sptpls[$spid]) ? '' : $sptpls[$spid]; if (!submitcheck('bsptpldetail')) { if (empty($tplname) || !is_file($true_tpldir . '/' . $tplname)) { if (@(!touch($true_tpldir . '/' . $tplname))) { amessage('sptplnoexist', axaction(2, M_REFERER)); } } $template = load_tpl($tplname, 0); tabheader(lang('sptemset') . '-' . $dbtpl['cname'], 'sptpldetail', "?entry=sptpls&action=sptpldetail&spid={$spid}{$param_suffix}"); trbasic(lang('templatecontent'), '', $tplname, ''); templatebox(lang('templatecontent'), 'templatenew', $template, 30, 110); tabfooter('bsptpldetail', lang('modify')); a_guide('sptpldetail'); } else { empty($templatenew) && amessage('temconnot', "?entry=sptpls&action=sptplsedit{$param_suffix}"); !str2file(stripslashes($templatenew), $true_tpldir . '/' . $tplname) && amessage('tplerrsave', "?entry=sptpls&action=sptplsedit{$param_suffix}"); adminlog(lang('detmosptemp')); amessage('tplmodfin', axaction(6, "?entry=sptpls&action=sptplsedit{$param_suffix}")); } } elseif ($action == 'sptplmap' && $spid) { $dbtpl = $dbtpls[$spid]; $tplname = empty($sptpls[$spid]) ? '' : $sptpls[$spid]; if (empty($tplname) || !is_file($true_tpldir . '/' . $tplname)) { if (@(!touch($true_tpldir . '/' . $tplname))) { amessage('sptplnoexist', M_REFERER); }