本文整理汇总了PHP中templatebox函数的典型用法代码示例。如果您正苦于以下问题:PHP templatebox函数的具体用法?PHP templatebox怎么用?PHP templatebox使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了templatebox函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: cache2file
}
}
}
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]');
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:mtpls.inc.php
示例2: exit
<?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');
}
//生成代码出错的提示信息
}
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:29,代码来源:context.php
示例3: adminlog
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);
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:sptpls.inc.php
注:本文中的templatebox函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论