@@ -90,7 +90,8 @@ | |||
echo "<option value='0' selected>投放在没有同名标识的所有栏目</option>"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
?>(如果在所选栏目找不到指定标识的广告文档,系统会自动搜索父栏目) | |||
?> | |||
<span>(如果在所选栏目找不到指定标识的广告文档,系统会自动搜索父栏目)</span> | |||
</td> | |||
</tr> | |||
<tr> | |||
@@ -74,7 +74,8 @@ | |||
echo "<option value='0' selected>投放在没有同名标识的所有栏目</option>"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
?>(如果在所选栏目找不到指定标识的广告文档,系统会自动搜索父栏目) | |||
?> | |||
<span>(如果在所选栏目找不到指定标识的广告文档,系统会自动搜索父栏目)</span> | |||
</td> | |||
</tr> | |||
<tr> | |||
@@ -15,23 +15,36 @@ | |||
<td bgcolor="#f5f5f5" colspan="2">自动摘要分页</td> | |||
</tr> | |||
<tr> | |||
<td width="360">栏目id:<input type="text" name="channel" id="channel" value="1" class="admin-input-xs">(可在“<a href="mychannel_main.php">栏目模型管理</a>”处获得)</td> | |||
<td>摘要大小:<input type="text" name="dsize" id="dsize" value="<?php echo $cfg_auot_description?>" class="admin-input-xs">(最大250字节)</td> | |||
<td width="360"> | |||
<label>栏目id:<input type="text" name="channel" id="channel" value="1" class="admin-input-xs"></label> | |||
<span>(可在“<a href="mychannel_main.php">栏目模型管理</a>”处获得)</span> | |||
</td> | |||
<td> | |||
<label>摘要大小:<input type="text" name="dsize" id="dsize" value="<?php echo $cfg_auot_description?>" class="admin-input-xs"></label> | |||
<span>(最大250字节)</span> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>数据表:<input type="text" name="table" id="table2" value="<?php echo $cfg_dbprefix?>addonarticle" class="admin-input-sm"></td> | |||
<td>分析字段:<input type="text" name="field" id="field2" value="body" class="admin-input-sm"></td> | |||
<td><label>数据表:<input type="text" name="table" id="table2" value="<?php echo $cfg_dbprefix?>addonarticle" class="admin-input-sm"></label></td> | |||
<td><label>分析字段:<input type="text" name="field" id="field2" value="body" class="admin-input-sm"></label></td> | |||
</tr> | |||
<tr> | |||
<td>最小值:<input type="text" name="msize" id="msize2" value="512" class="admin-input-xs">(字节,文档大于该值才分析)</td> | |||
<td>每页更新:<input type="text" name="pagesize" id="pagesize" value="100" class="admin-input-xs">(网页)</td> | |||
<td> | |||
<label>最小值:<input type="text" name="msize" id="msize2" value="512" class="admin-input-xs"></label> | |||
<span>(字节,文档大于该值才分析)</span> | |||
</td> | |||
<td> | |||
<label>每页更新:<input type="text" name="pagesize" id="pagesize" value="100" class="admin-input-xs"></label> | |||
<span>(网页)</span> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>开始id:<input type="text" name="sid" id="sid" class="admin-input-xs"></td> | |||
<td>结束id:<input type="text" name="eid" id="eid" class="admin-input-xs"></td> | |||
<td><label>开始id:<input type="text" name="sid" id="sid" class="admin-input-xs"></label></td> | |||
<td><label>结束id:<input type="text" name="eid" id="eid" class="admin-input-xs"></label></td> | |||
</tr> | |||
<tr> | |||
<td>操作: | |||
<td> | |||
<span>操作:</span> | |||
<label><input type="radio" name="dojob" value="des" checked> 自动摘要</label> | |||
<label><input type="radio" name="dojob" value="page"> 自动分页</label> | |||
</td> | |||
@@ -111,7 +111,8 @@ | |||
<select name="reid" onchange="showSeltype(this)" class="admin-input-sm"> | |||
<option value="0">选择所属栏目</option> | |||
<?php echo $typeOptions;?> | |||
</select>(默认为顶级栏目) | |||
</select> | |||
<span>(默认为顶级栏目)</span> | |||
</td> | |||
<td>文档模型:</td> | |||
<td> | |||
@@ -1,65 +0,0 @@ | |||
<!DOCTYPE html> | |||
<html> | |||
<head> | |||
<meta charset="utf-8"> | |||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> | |||
<title>模块开发指南</title> | |||
<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | |||
<link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | |||
<link rel="stylesheet" href="../static/web/css/admin.css"> | |||
<script src="../static/web/js/webajax.js"></script> | |||
<script> | |||
function LoadHashCode() { | |||
var tgobj = document.getElementById('modulcode'); | |||
var email = document.form1.email.value; | |||
var modulname = document.form1.modulname.value; | |||
const formData = new FormData() | |||
formData.append('action', 'gethash'); | |||
formData.append('email', email); | |||
formData.append('modulname', modulname); | |||
fetch('module_make.php', { | |||
method: 'POST', | |||
body: formData | |||
}) | |||
.then(r => r.text()) | |||
.then(d => { | |||
tgobj.innerHTML = d; | |||
}) | |||
} | |||
</script> | |||
</head> | |||
<body> | |||
<table cellpadding="1" cellspacing="1" align="center" class="table maintable my-3"> | |||
<tr> | |||
<td bgcolor="#f5f5f5"><a href="plus_main.php">模块管理</a> > 模块开发指南</td> | |||
</tr> | |||
<tr> | |||
<td>目录</td> | |||
</tr> | |||
<tr> | |||
<td><a href="#1">1、模块开发介绍</a></td> | |||
</tr> | |||
<tr> | |||
<td><a href="#2">2、如何对我开发的模块进行打包</a></td> | |||
</tr> | |||
<tr> | |||
<td><a href="#3">3、开发模块程序安装和卸载的注意事项</a></td> | |||
</tr> | |||
<tr> | |||
<td><a href="#4">4、后台管理程序的开发注意事项</a></td> | |||
</tr> | |||
<tr> | |||
<td>1、模块开发介绍<a name="1" id="1"></a></td> | |||
</tr> | |||
<tr> | |||
<td>2、如何对我开发的模块进行打包<a name="2" id="2"></a></td> | |||
</tr> | |||
<tr> | |||
<td>3、开发模块程序安装和卸载程序的注意事项<a name="3" id="3"></a></td> | |||
</tr> | |||
<tr> | |||
<td>4、后台管理程序的开发注意事项<a name="4" id="4"></a></td> | |||
</tr> | |||
</table> | |||
</body> | |||
</html> |
@@ -1,44 +0,0 @@ | |||
<!DOCTYPE html> | |||
<html> | |||
<head> | |||
<meta charset="utf-8"> | |||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> | |||
<title>模块打包</title> | |||
<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | |||
<link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | |||
<link rel="stylesheet" href="../static/web/css/admin.css"> | |||
</head> | |||
<body> | |||
<table cellpadding="1" cellspacing="1" align="center" class="table maintable my-3"> | |||
<form name="form1" action="plus_add.php" method="post"> | |||
<input type="hidden" name="dopost" value="save"> | |||
<tr> | |||
<td colspan="2"><a href="plus_main.php">模块管理</a> > 模块打包</td> | |||
</tr> | |||
<tr> | |||
<td width="260">插件名称</td> | |||
<td><input type="text" name="plusname" id="plusname"> </td> | |||
</tr> | |||
<tr> | |||
<td>作者</td> | |||
<td><input type="text" name="writer" id="writer"></td> | |||
</tr> | |||
<tr> | |||
<td>主程序文件</td> | |||
<td><input type="text" name="link" id="link" size="30"></td> | |||
</tr> | |||
<tr> | |||
<td>目标框架</td> | |||
<td><input type="text" name="target" id="target" value="main"></td> | |||
</tr> | |||
<tr> | |||
<td>文件列表</td> | |||
<td><textarea name="filelist" id="filelist" class="admin-textarea-xl"></textarea></td> | |||
</tr> | |||
<tr> | |||
<td bgcolor="#f5f5f5" colspan="2" align="center"><button type="submit" class="btn btn-success btn-sm">确定</button></td> | |||
</tr> | |||
</form> | |||
</table> | |||
</body> | |||
</html> |
@@ -63,7 +63,7 @@ | |||
<td> | |||
<input type="text" name="nid" id="nid" class="admin-input-sm" value="ch<?php echo $newid;?>"> | |||
<span>(与文档的模板相关连,建议由英文、数字或下划线组成,因为部份Unix系统无法识别中文文件,栏目默认文档模板是“default/article_名字标识.htm”,列表模板、封面模板类推)</span> | |||
</td> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>模型名称:</td> | |||
@@ -41,15 +41,24 @@ | |||
<input type="hidden" name="dopost" value="add"> | |||
<tr> | |||
<td width="260">会员名:</td> | |||
<td><input type="text" name="userid" id="userid" class="admin-input-sm">(只能用[0-9a-zA-Z_@!.-]以内范围的字符)</td> | |||
<td> | |||
<input type="text" name="userid" id="userid" class="admin-input-sm"> | |||
<span>(只能用[0-9a-zA-Z_@!.-]以内范围的字符)</span> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>昵称:</td> | |||
<td><input type="text" name="uname" id="uname" class="admin-input-sm">(发布文档后显示作者的名字)</td> | |||
<td> | |||
<input type="text" name="uname" id="uname" class="admin-input-sm"> | |||
<span>(发布文档后显示作者的名字)</span> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>密码:</td> | |||
<td><input type="text" name="pwd" id="pwd" class="admin-input-sm">(只能用[0-9a-zA-Z_@!.-]以内范围的字符)</td> | |||
<td> | |||
<input type="text" name="pwd" id="pwd" class="admin-input-sm"> | |||
<span>(只能用[0-9a-zA-Z_@!.-]以内范围的字符)</span> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>会员组:</td> | |||
@@ -24,11 +24,17 @@ | |||
</tr> | |||
<tr> | |||
<td>昵称:</td> | |||
<td><input type="text" name="uname" id="uname" value="<?php echo $row['uname']?>" class="admin-input-sm">(发布文档后显示作者的名字)</td> | |||
<td> | |||
<input type="text" name="uname" id="uname" value="<?php echo $row['uname']?>" class="admin-input-sm"> | |||
<span>(发布文档后显示作者的名字)</span> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>密码:</td> | |||
<td><input type="text" name="pwd" id="pwd" class="admin-input-sm">(留空则不修改,只能用[0-9a-zA-Z_@!.-]以内范围的字符)</td> | |||
<td> | |||
<input type="text" name="pwd" id="pwd" class="admin-input-sm"> | |||
<span>(留空则不修改,只能用[0-9a-zA-Z_@!.-]以内范围的字符)</span> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>类型:</td> | |||
@@ -80,7 +80,10 @@ | |||
<td id="fields"></td> | |||
</tr> | |||
<tr> | |||
<td><input type="text" name="rpfield" id="rpfield" class="admin-input-sm">(选择替换字段)</td> | |||
<td> | |||
<input type="text" name="rpfield" id="rpfield" class="admin-input-sm"> | |||
<span>(选择替换字段)</span> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -104,7 +107,10 @@ | |||
</tr> | |||
<tr> | |||
<td>替换条件:</td> | |||
<td><input type="text" name="condition" id="condition" class="admin-input-sm">(空完全替换)</td> | |||
<td> | |||
<input type="text" name="condition" id="condition" class="admin-input-sm"> | |||
<span>(空完全替换)</span> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>安全确认码:</td> | |||
@@ -21,7 +21,10 @@ | |||
</tr> | |||
<tr> | |||
<td>级别值:</td> | |||
<td><input type="text" name="rankid" id="rankid" class="admin-input-sm">(系统已占用的级别值:<?php $dsql->SetQuery("Select `rank` From `#@__admintype`");$dsql->Execute();while($row = $dsql->GetObject()) echo '<span class="text-primary">'.$row->rank.'</span>';?>,级别值必须小于10,超过或等于10所有权限设置无效)</td> | |||
<td> | |||
<input type="text" name="rankid" id="rankid" class="admin-input-sm"> | |||
<span>(系统已占用的级别值:<?php $dsql->SetQuery("Select `rank` From `#@__admintype`");$dsql->Execute();while($row = $dsql->GetObject()) echo '<span class="text-primary">'.$row->rank.'</span>';?>,级别值必须小于10,超过或等于10所有权限设置无效)</span> | |||
</td> | |||
</tr> | |||
<?php | |||
$start = 0; | |||
@@ -48,15 +48,24 @@ | |||
</tr> | |||
<tr> | |||
<td>水印图片文件名:</td> | |||
<td><img src="../data/mark/<?php echo $photo_markimg;?>">(如果不存在,则使用文字水印)</td> | |||
<td> | |||
<img src="../data/mark/<?php echo $photo_markimg;?>"> | |||
<span>(如果不存在,则使用文字水印)</span> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>上传新图片:</td> | |||
<td><input name="newimg" type="file" id="newimg" class="admin-input-lg">(支持gif和png图片格式)</td> | |||
<td> | |||
<input name="newimg" type="file" id="newimg" class="admin-input-lg"> | |||
<span>(支持gif和png图片格式)</span> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>水印图片文字:</td> | |||
<td><input type="text" name="get_photo_watertext" value="<?php echo $photo_watertext?>" class="admin-input-sm">(查看/data/mark/simhei.ttf字体库是否存在)</td> | |||
<td> | |||
<input type="text" name="get_photo_watertext" value="<?php echo $photo_watertext?>" class="admin-input-sm"> | |||
<span>(查看/data/mark/simhei.ttf字体库是否存在)</span> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>水印图片文字字体大小:</td> | |||
@@ -68,11 +77,17 @@ | |||
</tr> | |||
<tr> | |||
<td>JPEG图附件添加水印后质量</td> | |||
<td><input type="text" name="get_photo_marktrans" id="get_photo_marktrans" value="<?php echo $photo_marktrans?>" class="admin-input-sm">(范围为0~100的整数,数值越大结果图片效果越好,但尺寸也越大)</td> | |||
<td> | |||
<input type="text" name="get_photo_marktrans" id="get_photo_marktrans" value="<?php echo $photo_marktrans?>" class="admin-input-sm"> | |||
<span>(范围为0~100的整数,数值越大结果图片效果越好,但尺寸也越大)</span> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>GIF水印图片与原始图片透明度</td> | |||
<td><input name="get_photo_diaphaneity" type=text id="get_photo_diaphaneity" value="<?php echo $photo_diaphaneity?>" class="admin-input-sm">(0—100,值越小越透明)</td> | |||
<td> | |||
<input name="get_photo_diaphaneity" type=text id="get_photo_diaphaneity" value="<?php echo $photo_diaphaneity?>" class="admin-input-sm"> | |||
<span>(0—100,值越小越透明)</span> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>水印位置:</td> | |||
@@ -44,7 +44,10 @@ | |||
</tr> | |||
<tr> | |||
<td width="260">文件名称</td> | |||
<td><input name="filename" value="<?php echo $filename;?>" class="admin-input-lg">(不可以用“..”符号表示路径)</td> | |||
<td> | |||
<input name="filename" value="<?php echo $filename;?>" class="admin-input-lg"> | |||
<span>(不可以用“..”符号表示路径)</span> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td colspan="2" class="p-0"><textarea id="content" name="content" class="admin-textarea-xl"><?php echo $democode;?></textarea></td> | |||
@@ -21,7 +21,10 @@ | |||
<input type="hidden" name="action" value="savenewfile"> | |||
<tr> | |||
<td width="260">工作目录:</td> | |||
<td><input name="path" value="<?php echo $path;?>" class="admin-input-lg">(空白表示根目录,不允许用“..” 形式的路径)</td> | |||
<td> | |||
<input name="path" value="<?php echo $path;?>" class="admin-input-lg"> | |||
<span>(空白表示根目录,不允许用“..” 形式的路径)</span> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>文件名称:</td> | |||
@@ -105,7 +105,10 @@ | |||
</tr> | |||
<tr> | |||
<td>投票时间间隔:</td> | |||
<td><input type="text" name="spec" value="" class="admin-input-lg">(N天后可再次投票,0表示此ip地址只能投一次)</td> | |||
<td> | |||
<input type="text" name="spec" value="" class="admin-input-lg"> | |||
<span>(N天后可再次投票,0表示此ip地址只能投一次)</span> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>是否多选:</td> | |||
@@ -85,7 +85,10 @@ | |||
</tr> | |||
<tr> | |||
<td>投票时间间隔:</td> | |||
<td><input type="text" name="spec" value="<?php echo $row['spec'] ?>">(N天后可再次投票,0表示此ip地址只能投一次)</td> | |||
<td> | |||
<input type="text" name="spec" value="<?php echo $row['spec'] ?>"> | |||
<span>(N天后可再次投票,0表示此ip地址只能投一次)</span> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>是否多选:</td> | |||