@@ -46,7 +46,7 @@ | |||||
<input type="hidden" name="isnull" value="1"> | <input type="hidden" name="isnull" value="1"> | ||||
<label><input type="radio" name="spage" value="split"> 是</label> | <label><input type="radio" name="spage" value="split"> 是</label> | ||||
<label><input type="radio" name="spage" value="no" checked="1"> 否</label> | <label><input type="radio" name="spage" value="no" checked="1"> 否</label> | ||||
<span>(如果文档需要分页符,不论何种文档,都可以用#P#副标题#e#作为分页符号实现文档分页,但一个模型里仅允许一个这样的字段)</span> | |||||
<span>(如果文档需要分页符,不论何种文档,都可以用#p#副标题#e#作为分页符号实现文档分页,但一个模型里仅允许一个这样的字段)</span> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -99,7 +99,7 @@ | |||||
</table> | </table> | ||||
</form> | </form> | ||||
<script> | <script> | ||||
var notAllow = " <?php echo $f;?> "; | |||||
var notAllow = "<?php echo $f;?>"; | |||||
function GetFields() | function GetFields() | ||||
{ | { | ||||
var theform = document.form1; | var theform = document.form1; | ||||
@@ -71,7 +71,7 @@ | |||||
<input type="hidden" name="isnull" value="1"> | <input type="hidden" name="isnull" value="1"> | ||||
<label><input type="radio" name="spage" value="split" <?php if ($ctag->GetAtt('page')=='split') echo "checked='1'";?>> 是</label> | <label><input type="radio" name="spage" value="split" <?php if ($ctag->GetAtt('page')=='split') echo "checked='1'";?>> 是</label> | ||||
<label><input type="radio" name="spage" value="no" <?php if ($ctag->GetAtt('page')=='no'||$ctag->GetAtt('page')=='') echo "checked='1'";?>> 否</label> | <label><input type="radio" name="spage" value="no" <?php if ($ctag->GetAtt('page')=='no'||$ctag->GetAtt('page')=='') echo "checked='1'";?>> 否</label> | ||||
<span>(如果文档需要分页符,不论何种文档,都可以用#P#副标题#e#作为分页符号实现文档分页,但一个模型里仅允许一个这样的字段)</span> | |||||
<span>(如果文档需要分页符,不论何种文档,都可以用#p#副标题#e#作为分页符号实现文档分页,但一个模型里仅允许一个这样的字段)</span> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -60,7 +60,7 @@ | |||||
<input type="hidden" name="isnull" value="1"> | <input type="hidden" name="isnull" value="1"> | ||||
<label><input type="radio" name="spage" value="split"> 是</label> | <label><input type="radio" name="spage" value="split"> 是</label> | ||||
<label><input type="radio" name="spage" value="no" checked="1"> 否</label> | <label><input type="radio" name="spage" value="no" checked="1"> 否</label> | ||||
<span>(如果文档需要分页符,不论何种文档,都可以用#P#副标题#e#作为分页符号实现文档分页,但一个模型里仅允许一个这样的字段)</span> | |||||
<span>(如果文档需要分页符,不论何种文档,都可以用#p#副标题#e#作为分页符号实现文档分页,但一个模型里仅允许一个这样的字段)</span> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -137,7 +137,7 @@ | |||||
</table> | </table> | ||||
</form> | </form> | ||||
<script> | <script> | ||||
var notAllow = " <?php echo $f;?> "; | |||||
var notAllow = "<?php echo $f;?>"; | |||||
function GetFields() | function GetFields() | ||||
{ | { | ||||
var theform = document.form1; | var theform = document.form1; | ||||
@@ -117,7 +117,7 @@ | |||||
<input name="isnull" type="hidden" value="1"> | <input name="isnull" type="hidden" value="1"> | ||||
<label><input type="radio" name="spage" value="split" <?php if ($ctag->GetAtt('page')=='split') echo "checked='1'";?>> 是</label> | <label><input type="radio" name="spage" value="split" <?php if ($ctag->GetAtt('page')=='split') echo "checked='1'";?>> 是</label> | ||||
<label><input type="radio" name="spage" value="no" <?php if ($ctag->GetAtt('page')=='no'||$ctag->GetAtt('page')=='') echo "checked='1'";?>> 否</label> | <label><input type="radio" name="spage" value="no" <?php if ($ctag->GetAtt('page')=='no'||$ctag->GetAtt('page')=='') echo "checked='1'";?>> 否</label> | ||||
<span>(如果文档需要分页符,不论何种文档,都可以用#P#副标题#e#作为分页符号实现文档分页,但一个模型里仅允许一个这样的字段)</span> | |||||
<span>(如果文档需要分页符,不论何种文档,都可以用#p#副标题#e#作为分页符号实现文档分页,但一个模型里仅允许一个这样的字段)</span> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -14,7 +14,7 @@ | |||||
<td colspan="4" bgcolor="#f5f5f5"> | <td colspan="4" bgcolor="#f5f5f5"> | ||||
<?php | <?php | ||||
if ($acdir=='plus') echo '插件模板'; | if ($acdir=='plus') echo '插件模板'; | ||||
else if ($acdir=='system') echo '底层模板'; | |||||
else if ($acdir=='system') echo '系统模板'; | |||||
else echo '模板管理 > '.$acdir; | else echo '模板管理 > '.$acdir; | ||||
?> | ?> | ||||
</td> | </td> | ||||
@@ -56,12 +56,8 @@ | |||||
</table> | </table> | ||||
<script> | <script> | ||||
function DelTpl(filename) { | function DelTpl(filename) { | ||||
DedeConfirm("您确实要删除这个模板吗").then((v)=>{ | |||||
location = 'tpl.php?action=del&acdir=<?php echo $acdir;?>&filename=' + | |||||
filename; | |||||
}).catch((e)=>{ | |||||
console.log(e) | |||||
}); | |||||
if (window.confirm('您确实要删除这个模板吗')) location = 'tpl.php?action=del&acdir=<?php echo $acdir; ?>&filename=' + filename; | |||||
else return false; | |||||
} | } | ||||
</script> | </script> | ||||
</body> | </body> |
@@ -27,7 +27,7 @@ if (preg_match("#\.#", $acdir)) { | |||||
//修改模板 | //修改模板 | ||||
if ($action == 'edit' || $action == 'newfile') { | if ($action == 'edit' || $action == 'newfile') { | ||||
if ($filename == '' && $action == 'edit') { | if ($filename == '' && $action == 'edit') { | ||||
ShowMsg('未指定要修改的文件', '-1'); | |||||
ShowMsg('未指定要修改的模板', '-1'); | |||||
exit(); | exit(); | ||||
} | } | ||||
if (!file_exists($templetdird.'/'.$filename) && $action == 'edit') { | if (!file_exists($templetdird.'/'.$filename) && $action == 'edit') { | ||||
@@ -89,17 +89,17 @@ else if ($action == 'saveedit') { | |||||
$fp = fopen($truefile, 'w'); | $fp = fopen($truefile, 'w'); | ||||
fwrite($fp, $content); | fwrite($fp, $content); | ||||
fclose($fp); | fclose($fp); | ||||
ShowMsg('成功修改或新建文件', 'templets_main.php?acdir='.$acdir); | |||||
ShowMsg('修改或新建模板成功', 'templets_main.php?acdir='.$acdir); | |||||
exit(); | exit(); | ||||
} | } | ||||
//删除模板 | //删除模板 | ||||
else if ($action == 'del') { | else if ($action == 'del') { | ||||
$truefile = $templetdird.'/'.$filename; | $truefile = $templetdird.'/'.$filename; | ||||
if (unlink($truefile)) { | if (unlink($truefile)) { | ||||
ShowMsg('删除文件成功', 'templets_main.php?acdir='.$acdir); | |||||
ShowMsg('删除模板成功', 'templets_main.php?acdir='.$acdir); | |||||
exit(); | exit(); | ||||
} else { | } else { | ||||
ShowMsg('删除文件失败', '-1'); | |||||
ShowMsg('删除模板失败', '-1'); | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
@@ -133,7 +133,7 @@ else if ($action == 'upload') { | |||||
else if ($action == 'uploadok') { | else if ($action == 'uploadok') { | ||||
CheckCSRF(); | CheckCSRF(); | ||||
if (!is_uploaded_file($upfile)) { | if (!is_uploaded_file($upfile)) { | ||||
ShowMsg("貌似您什么都没有上传哦", "javascript:;"); | |||||
ShowMsg("请选择上传的模板文件", "javascript:;"); | |||||
exit(); | exit(); | ||||
} else { | } else { | ||||
if (!preg_match("#\.(htm|html)$#", $upfile_name)) { | if (!preg_match("#\.(htm|html)$#", $upfile_name)) { | ||||
@@ -158,11 +158,11 @@ else if ($action == 'edittag' || $action == 'addnewtag') { | |||||
if (!defined('DEDEINC')) { | if (!defined('DEDEINC')) { | ||||
exit(\"Request Error!\"); | exit(\"Request Error!\"); | ||||
} | } | ||||
function lib_demotag(&\$ctag,&\$refObj) | |||||
function lib_demotag(\$ctag, \$refObj) | |||||
{ | { | ||||
global \$dsql,\$envs; | |||||
global \$dsql, \$envs; | |||||
//属性处理 | //属性处理 | ||||
\$attlist=\"row|12,titlelen|24\"; | |||||
\$attlist = \"row|12,titlelen|30\"; | |||||
FillAttsDefault(\$ctag->CAttribute->Items,\$attlist); | FillAttsDefault(\$ctag->CAttribute->Items,\$attlist); | ||||
extract(\$ctag->CAttribute->Items, EXTR_SKIP); | extract(\$ctag->CAttribute->Items, EXTR_SKIP); | ||||
\$revalue = ''; | \$revalue = ''; | ||||
@@ -202,9 +202,9 @@ else if ($action == 'savetagfile') { | |||||
fwrite($fp, $content); | fwrite($fp, $content); | ||||
fclose($fp); | fclose($fp); | ||||
$msg = "<form name='form1' action='tag_test_action.php' target='blank' method='post'> | $msg = "<form name='form1' action='tag_test_action.php' target='blank' method='post'> | ||||
<label><input type='hidden' name='dopost' value='make'> 标签测试(环境变量标签不支持测试)</label><br> | |||||
<textarea name='partcode' cols='150' rows='6' style='width:90%'>{dede:{$tagname}}{/dede:{$tagname}}</textarea><br> | |||||
<button type='submit' name='B1' class='btn btn-success btn-sm'>确定</button> | |||||
<div class='mb-3'><label><input type='hidden' name='dopost' value='make'> 标签测试(环境变量标签不支持测试)</label></div> | |||||
<div class='mb-3'><textarea name='partcode' cols='150' rows='6' class='admin-textarea-xl'>{dede:{$tagname}}{/dede:{$tagname}}</textarea></div> | |||||
<div class='text-center'><button type='submit' name='B1' class='btn btn-success btn-sm'>确定</button></div> | |||||
</form>"; | </form>"; | ||||
$wintitle = "成功操作文件"; | $wintitle = "成功操作文件"; | ||||
$wecome_info = "<a href='templets_tagsource.php'>标签源码管理</a> > 新建修改标签"; | $wecome_info = "<a href='templets_tagsource.php'>标签源码管理</a> > 新建修改标签"; | ||||
@@ -23,8 +23,7 @@ | |||||
border-radius:.5rem | border-radius:.5rem | ||||
} | } | ||||
* { | * { | ||||
font-size:12px; | |||||
font-family:Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif | |||||
font-size:12px | |||||
} | } | ||||
body { | body { | ||||
margin:0; | margin:0; | ||||
@@ -253,7 +252,7 @@ body.hidemenu .body-right { | |||||
} | } | ||||
.btn-version { | .btn-version { | ||||
float:left; | float:left; | ||||
margin-top:16px; | |||||
margin-top:18px; | |||||
margin-left:5px | margin-left:5px | ||||
} | } | ||||
.top-item ul li { | .top-item ul li { | ||||
@@ -282,12 +281,7 @@ body.hidemenu .body-right { | |||||
border:0 | border:0 | ||||
} | } | ||||
.search-input { | .search-input { | ||||
width:160px; | |||||
height:28px; | |||||
line-height:28px; | |||||
font-size:12px; | |||||
background:#fff; | |||||
border:0 | |||||
width:160px | |||||
} | } | ||||
.top-admin { | .top-admin { | ||||
float:right; | float:right; | ||||
@@ -12,7 +12,7 @@ if (!defined('DEDEINC')) exit ('dedebiz'); | |||||
function lib_feedback(&$ctag, &$refObj) | function lib_feedback(&$ctag, &$refObj) | ||||
{ | { | ||||
global $dsql; | global $dsql; | ||||
$attlist = "row|12,titlelen|24,infolen|100,orderby|"; | |||||
$attlist = "row|12,titlelen|30,infolen|100,orderby|"; | |||||
FillAttsDefault($ctag->CAttribute->Items, $attlist); | FillAttsDefault($ctag->CAttribute->Items, $attlist); | ||||
extract($ctag->CAttribute->Items, EXTR_SKIP); | extract($ctag->CAttribute->Items, EXTR_SKIP); | ||||
$innertext = trim($ctag->GetInnerText()); | $innertext = trim($ctag->GetInnerText()); | ||||
@@ -12,9 +12,8 @@ if (!defined('DEDEINC')) exit ('dedebiz'); | |||||
helper('cache'); | helper('cache'); | ||||
function lib_flink(&$ctag, &$refObj) | function lib_flink(&$ctag, &$refObj) | ||||
{ | { | ||||
global $dsql, $cfg_soft_lang; | global $dsql, $cfg_soft_lang; | ||||
$attlist = "type|textall,row|24,titlelen|24,linktype|1,typeid|0"; | |||||
$attlist = "type|textall,row|30,titlelen|30,linktype|1,typeid|0"; | |||||
FillAttsDefault($ctag->CAttribute->Items, $attlist); | FillAttsDefault($ctag->CAttribute->Items, $attlist); | ||||
extract($ctag->CAttribute->Items, EXTR_SKIP); | extract($ctag->CAttribute->Items, EXTR_SKIP); | ||||
$totalrow = $row; | $totalrow = $row; | ||||
@@ -13,7 +13,7 @@ require_once(DEDEINC."/taglib/flink.lib.php"); | |||||
function lib_flinktype(&$ctag, &$refObj) | function lib_flinktype(&$ctag, &$refObj) | ||||
{ | { | ||||
global $dsql; | global $dsql; | ||||
$attlist = "row|24,titlelen|24"; | |||||
$attlist = "row|30,titlelen|30"; | |||||
FillAttsDefault($ctag->CAttribute->Items, $attlist); | FillAttsDefault($ctag->CAttribute->Items, $attlist); | ||||
extract($ctag->CAttribute->Items, EXTR_SKIP); | extract($ctag->CAttribute->Items, EXTR_SKIP); | ||||
$totalrow = $row; | $totalrow = $row; | ||||
@@ -13,7 +13,7 @@ function lib_infoguide(&$ctag, &$refObj) | |||||
{ | { | ||||
global $dsql, $nativeplace, $infotype, $hasSetEnumJs, $cfg_cmspath, $cfg_mainsite; | global $dsql, $nativeplace, $infotype, $hasSetEnumJs, $cfg_cmspath, $cfg_mainsite; | ||||
//属性处理 | //属性处理 | ||||
//$attlist="row|12,titlelen|24"; | |||||
//$attlist="row|12,titlelen|30"; | |||||
//FillAttsDefault($ctag->CAttribute->Items,$attlist); | //FillAttsDefault($ctag->CAttribute->Items,$attlist); | ||||
//extract($ctag->CAttribute->Items, EXTR_SKIP); | //extract($ctag->CAttribute->Items, EXTR_SKIP); | ||||
$cmspath = ((empty($cfg_cmspath) || preg_match('#[/$]#', $cfg_cmspath)) ? $cfg_cmspath.'/' : $cfg_cmspath); | $cmspath = ((empty($cfg_cmspath) || preg_match('#[/$]#', $cfg_cmspath)) ? $cfg_cmspath.'/' : $cfg_cmspath); | ||||
@@ -27,7 +27,7 @@ function lib_infolink(&$ctag, &$refObj) | |||||
{ | { | ||||
global $dsql, $nativeplace, $infotype, $hasSetEnumJs, $cfg_cmspath, $cfg_mainsite, $em_nativeplaces, $em_infotypes; | global $dsql, $nativeplace, $infotype, $hasSetEnumJs, $cfg_cmspath, $cfg_mainsite, $em_nativeplaces, $em_infotypes; | ||||
//属性处理 | //属性处理 | ||||
//$attlist="row|12,titlelen|24"; | |||||
//$attlist="row|12,titlelen|30"; | |||||
//FillAttsDefault($ctag->CAttribute->Items,$attlist); | //FillAttsDefault($ctag->CAttribute->Items,$attlist); | ||||
//extract($ctag->CAttribute->Items, EXTR_SKIP); | //extract($ctag->CAttribute->Items, EXTR_SKIP); | ||||
$cmspath = ((empty($cfg_cmspath) || !preg_match("#\/$#", $cfg_cmspath)) ? $cfg_cmspath.'/' : $cfg_cmspath); | $cmspath = ((empty($cfg_cmspath) || !preg_match("#\/$#", $cfg_cmspath)) ? $cfg_cmspath.'/' : $cfg_cmspath); | ||||
@@ -12,7 +12,7 @@ if (!defined('DEDEINC')) exit ('dedebiz'); | |||||
function lib_softmsg(&$ctag, &$refObj) | function lib_softmsg(&$ctag, &$refObj) | ||||
{ | { | ||||
global $dsql; | global $dsql; | ||||
//$attlist="type|textall,row|24,titlelen|24,linktype|1"; | |||||
//$attlist="type|textall,row|30,titlelen|30,linktype|1"; | |||||
//FillAttsDefault($ctag->CAttribute->Items,$attlist); | //FillAttsDefault($ctag->CAttribute->Items,$attlist); | ||||
//extract($ctag->CAttribute->Items, EXTR_SKIP); | //extract($ctag->CAttribute->Items, EXTR_SKIP); | ||||
$revalue = ''; | $revalue = ''; | ||||
@@ -13,7 +13,7 @@ require_once(DEDEINC.'/dedevote.class.php'); | |||||
function lib_vote(&$ctag, &$refObj) | function lib_vote(&$ctag, &$refObj) | ||||
{ | { | ||||
global $dsql; | global $dsql; | ||||
$attlist = "id|0,lineheight|24,tablewidth|100%,titlebgcolor|#EDEDE2,titlebackgroup|,tablebg|#ffffff"; | |||||
$attlist = "id|0,lineheight|30,tablewidth|100%,titlebgcolor|#EDEDE2,titlebackgroup|,tablebg|#ffffff"; | |||||
FillAttsDefault($ctag->CAttribute->Items, $attlist); | FillAttsDefault($ctag->CAttribute->Items, $attlist); | ||||
extract($ctag->CAttribute->Items, EXTR_SKIP); | extract($ctag->CAttribute->Items, EXTR_SKIP); | ||||
@@ -14,7 +14,6 @@ | |||||
<script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | ||||
<script src="{dede:global.cfg_cmsurl/}/static/web/js/bootstrap.min.js"></script> | <script src="{dede:global.cfg_cmsurl/}/static/web/js/bootstrap.min.js"></script> | ||||
</head> | </head> | ||||
<body> | |||||
<body class="body-bg"> | <body class="body-bg"> | ||||
{dede:include filename='top.htm'/} | {dede:include filename='top.htm'/} | ||||
{dede:include filename='head.htm'/} | {dede:include filename='head.htm'/} | ||||