@@ -30,7 +30,7 @@ | |||
function ShowHide(objname) { | |||
var obj = document.getElementById(objname); | |||
if (obj.style.display != "none") | |||
obj.style.display = "none"; | |||
obj.style.display = "none"; | |||
else { | |||
if (Nav() == 'IE') obj.style.display = "block"; | |||
else obj.style.display = "table-row"; | |||
@@ -111,24 +111,23 @@ | |||
</script> | |||
</head> | |||
<body> | |||
<table width="98%" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||
<table width="98%" cellpadding="0" cellspacing="0" align="center" class="mt-3"> | |||
<tr> | |||
<form name="form1" action="catalog_add.php" method="post" onSubmit="return checkSubmit()"> | |||
<input type="hidden" name="dopost" value="save"> | |||
<input type="hidden" name="reid" id="reid" value="<?php echo $id;?>"> | |||
<input type="hidden" name="topid" id="topid" value="<?php echo $topid;?>"> | |||
<?php | |||
if ($id>0) | |||
{ | |||
echo " <input type='hidden' name='moresite' value='{$myrow['moresite']}'>"; | |||
echo " <input type='hidden' name='siteurl' value='{$myrow['siteurl']}'>"; | |||
echo " <input type='hidden' name='sitepath' value='{$myrow['sitepath']}'>"; | |||
} | |||
?> | |||
<td align="center" bgcolor="#fff"> | |||
<table width="100%" cellspacing="0" id="head1" cellpadding="0"> | |||
<td> | |||
<form name="form1" action="catalog_add.php" method="post" onSubmit="return checkSubmit()"> | |||
<input type="hidden" name="dopost" value="save"> | |||
<input type="hidden" name="reid" id="reid" value="<?php echo $id;?>"> | |||
<input type="hidden" name="topid" id="topid" value="<?php echo $topid;?>"> | |||
<?php | |||
if ($id>0) { | |||
echo " <input type='hidden' name='moresite' value='{$myrow['moresite']}'>"; | |||
echo " <input type='hidden' name='siteurl' value='{$myrow['siteurl']}'>"; | |||
echo " <input type='hidden' name='sitepath' value='{$myrow['sitepath']}'>"; | |||
} | |||
?> | |||
<table width="100%" cellspacing="0" cellpadding="0" id="head1"> | |||
<tr> | |||
<td colspan="2" bgcolor="#fff" align="left"> | |||
<td> | |||
<table cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="80" align="center" class="admin-itemnote1">常规选项</td> | |||
@@ -139,9 +138,9 @@ | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="100%" cellspacing="0" id="head2" cellpadding="0" style="display:none"> | |||
<table width="100%" cellspacing="0" cellpadding="0" id="head2" style="display:none"> | |||
<tr> | |||
<td colspan="2" bgcolor="#fff"> | |||
<td> | |||
<table cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="80" align="center" class="admin-itemnote2"><a href="javascript:;" onClick="ShowItem1()">常规选项</a></td> | |||
@@ -152,9 +151,9 @@ | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="100%" cellspacing="0" id="head3" cellpadding="0" style="display:none"> | |||
<table width="100%" cellspacing="0" cellpadding="0" id="head3" style="display:none"> | |||
<tr> | |||
<td colspan="2" bgcolor="#fff"> | |||
<td> | |||
<table cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="80" align="center" class="admin-itemnote2"><a href="javascript:;" onClick="ShowItem1()">常规选项</a></td> | |||
@@ -165,24 +164,24 @@ | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="100%" id="needset" cellspacing="0" cellpadding="0" class="table admin-border"> | |||
<table width="100%" cellspacing="0" cellpadding="0" id="needset" class="table admin-border"> | |||
<tr> | |||
<td width="260" class="admin-td">是否支持投稿:</td> | |||
<td class="admin-td"> | |||
<td width="260">是否支持投稿:</td> | |||
<td> | |||
<label><input type="radio" name="issend" value="1" <?php if ($issend==1) echo " checked='checked' ";?>> 支持</label> | |||
<label><input type="radio" name="issend" value="0" <?php if ($issend==0) echo " checked='checked' ";?>> 不支持</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td width="260" class="admin-td">是否隐藏栏目:</td> | |||
<td class="admin-td"> | |||
<td width="260">是否隐藏栏目:</td> | |||
<td> | |||
<label><input type="radio" name="ishidden" value="0" checked="checked"> 显示</label> | |||
<label><input type="radio" name="ishidden" value="1"> 隐藏</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">文档模型:</td> | |||
<td class="admin-td"> | |||
<td>文档模型:</td> | |||
<td> | |||
<select name="channeltype" id="channeltype" onChange="ParTemplet(this)" class="admin-input-sm"> | |||
<?php | |||
foreach($channelArray as $k=>$arr) | |||
@@ -199,43 +198,42 @@ | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">中文名称:</td> | |||
<td class="admin-td"><input type="text" name="typename" class="admin-input-md"></td> | |||
<td>中文名称:</td> | |||
<td><input type="text" name="typename" class="admin-input-md"></td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">中文概述:</td> | |||
<td class="admin-td"><input type="text" name="cnoverview" class="admin-input-md"></td> | |||
<td>中文概述:</td> | |||
<td><input type="text" name="cnoverview" class="admin-input-md"></td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">英文名称:</td> | |||
<td class="admin-td"><input type="text" name="enname" class="admin-input-md"></td> | |||
<td>英文名称:</td> | |||
<td><input type="text" name="enname" class="admin-input-md"></td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">英文概述:</td> | |||
<td class="admin-td"><input type="text" name="enoverview" class="admin-input-md"></td> | |||
<td>英文概述:</td> | |||
<td><input type="text" name="enoverview" class="admin-input-md"></td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">栏目大图:</td> | |||
<td>栏目大图:</td> | |||
<td> | |||
<input type="text" name="bigpic" class="admin-input-md"> | |||
<input type="button" class="btn btn-success btn-sm" value="浏览" onClick="SelectImage('form1.bigpic');"> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">栏目小图:</td> | |||
<td>栏目小图:</td> | |||
<td> | |||
<input type="text" name="litimg" class="admin-input-md"> | |||
<input type="button" class="btn btn-success btn-sm" value="浏览" onClick="SelectImage('form1.litimg');"> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">排列顺序:</td> | |||
<td class="admin-td"><input type="text" name="sortrank" class="admin-input-sm">(由低 > 高) | |||
</td> | |||
<td>排列顺序:</td> | |||
<td><input type="text" name="sortrank" class="admin-input-sm">(由低 > 高)</td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">浏览权限:</td> | |||
<td class="admin-td"> | |||
<td>浏览权限:</td> | |||
<td> | |||
<select name="corank" id="corank" class="admin-input-sm"> | |||
<?php | |||
$dsql->SetQuery("SELECT * FROM `#@__arcrank` where `rank` >= 0"); | |||
@@ -253,8 +251,8 @@ | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">上级目录:</td> | |||
<td class="admin-td"> | |||
<td>上级目录:</td> | |||
<td> | |||
<?php | |||
$pardir = '{cmspath}'.$cfg_arcdir; | |||
if (!empty($typedir)) $pardir = $typedir.'/'; | |||
@@ -269,16 +267,15 @@ | |||
<td class="p-0"> | |||
<table cellspacing="1" cellpadding="1" class="table-borderless"> | |||
<tr> | |||
<td><input type="text" name="typedir" id="typedir" class="admin-input-md"> | |||
</td> | |||
<td><input type="text" name="typedir" id="typedir" class="admin-input-md"></td> | |||
<td><label for="upinyin"><input type="checkbox" name="upinyin" id="upinyin" value="1" onClick="CheckTypeDir()"> 拼音</label></td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">目录相对位置:</td> | |||
<td class="admin-td"> | |||
<td>目录相对位置:</td> | |||
<td> | |||
<label><input type="radio" name="referpath" value="parent" checked="chekced"> 上级目录</label> | |||
<?php if ($moresite==0) {?> | |||
<label><input type="radio" name="referpath" value="cmspath"> 系统根目录</label> | |||
@@ -295,12 +292,12 @@ | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">默认页的名称:</td> | |||
<td class="admin-td"><input type="text" name="defaultname" value="index.html" class="admin-input-md"></td> | |||
<td>默认页的名称:</td> | |||
<td><input type="text" name="defaultname" value="index.html" class="admin-input-md"></td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">栏目属性:</td> | |||
<td class="admin-td"> | |||
<td>栏目属性:</td> | |||
<td> | |||
<label><input type="radio" name="ispart" value="0" checked="checked"> 列表栏目(允许在本栏目发布文档,并生成文档列表)</label><br> | |||
<label><input type="radio" name="ispart" value="1"> 封面栏目(栏目本身不允许发布文档)</label> <br> | |||
<label><input type="radio" name="ispart" id="ispart2" value="2"> 外部栏目(在"文件保存目录"处填写网址)</label> | |||
@@ -311,8 +308,7 @@ | |||
<td> | |||
<label><input type="radio" name="cross" id="cross0" value="0" onClick="CheckCross()" checked="1"> 不交叉</label> | |||
<label><input type="radio" name="cross" id="cross1" value="1" onClick="CheckCross()"> 自动获取同名栏目文档</label> | |||
<label><input type="radio" name="cross" id="cross2" value="2" onClick="CheckCross()"> 手工指定交叉栏目id(用英文逗号)</label> | |||
<br> | |||
<label><input type="radio" name="cross" id="cross2" value="2" onClick="CheckCross()"> 手工指定交叉栏目id(用英文逗号)</label><br> | |||
<textarea name="crossid" id="crossid" style="display:none"></textarea> | |||
</td> | |||
</tr> | |||
@@ -321,8 +317,8 @@ | |||
<td bgcolor="#f5f5f5">交叉栏目是指一个大栏目与另一个非下级的子栏目出现交叉的情况,相当于系统原来的副栏目功能,不过现在改在栏目里预先设置好<br>注:会自动索引交叉栏目的文档,但不会索引交叉栏目下级栏目的文档,这种应用也适用于按地区划分资讯的站点</td> | |||
</tr> | |||
<tr id="smclass" style="<?php echo ($channelid<0 ? '' : 'display:none');?>"> | |||
<td class="admin-td">绑定小分类:仅适用分类模型</td> | |||
<td class="admin-td"> | |||
<td>绑定小分类:仅适用分类模型</td> | |||
<td> | |||
<select name="smalltype[]" multiple="yes" style="width:160px;height:100px"> | |||
<?php | |||
$sql = "SELECT * FROM `#@__sys_enum` WHERE egroup LIKE 'infotype' ORDER BY disorder ASC, id DESC "; | |||
@@ -347,15 +343,15 @@ | |||
<table width="100%" cellspacing="0" cellpadding="0" id="adset" class="table admin-border" style="display:none"> | |||
<?php if ($id==0) {?> | |||
<tr> | |||
<td width="260" class="admin-td">多站点支持:</td> | |||
<td class="admin-td"> | |||
<td width="260">多站点支持:</td> | |||
<td> | |||
<label><input type="radio" name="moresite" value="1"> 启用</label> | |||
<label><input type="radio" name="moresite" value="0" checked="checked"> 不启用</label>(如果需要绑定二级域名,必须在“系统参数”中设定“支持多站点”) | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">绑定域名:</td> | |||
<td class="admin-td"><input type="text" name="siteurl" id="siteurl" onChange="CheckPathSet();" class="admin-input-md">(需要加http开头的链接)</td> | |||
<td>绑定域名:</td> | |||
<td><input type="text" name="siteurl" id="siteurl" onChange="CheckPathSet();" class="admin-input-md">(需要加http开头的链接)</td> | |||
</tr> | |||
<?php }?> | |||
<tr> | |||
@@ -405,13 +401,13 @@ | |||
<tr id="helpvar2" style="display:none"> | |||
<td bgcolor="#f5f5f5">支持变量:</td> | |||
<td bgcolor="#f5f5f5"> | |||
{Y}、{M}、{D} 年月日<br> | |||
{Y}{M}{D} 年月日<br> | |||
{timestamp} INT类型的UNIX时间戳<br> | |||
{aid} 文档id<br> | |||
{pinyin} 拼音+文档id<br> | |||
{py} 拼音部首+文档id<br> | |||
{typedir} 栏目目录<br> | |||
{cc} 日期+ID混编后用转换为适合的字母<br> | |||
{cc} 日期+id混编后用转换为适合的字母<br> | |||
Nginx伪静态默认规则<br> | |||
rewrite ^/([0-9]+).html$ /apps/view.php?arcID=$1;<br> | |||
rewrite ^/([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2; | |||
@@ -464,8 +460,8 @@ | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</form> | |||
</form> | |||
</td> | |||
</tr> | |||
</table> | |||
</body> |
@@ -50,14 +50,14 @@ | |||
<script> | |||
function ShowHide(objname) { | |||
var obj = document.getElementById(objname); | |||
if (obj.style.display == "") | |||
if (obj.style.display == "table-row") | |||
obj.style.display = "none"; | |||
else | |||
obj.style.display = ""; | |||
else | |||
obj.style.display = "table-row"; | |||
} | |||
function ShowObj(objname) { | |||
var obj = document.getElementById(objname); | |||
obj.style.display = ""; | |||
obj.style.display = "block"; | |||
} | |||
function HideObj(objname) { | |||
var obj = document.getElementById(objname); | |||
@@ -79,15 +79,15 @@ | |||
</script> | |||
</head> | |||
<body> | |||
<form name="form1" action="catalog_add.php" method="post"> | |||
<input type="hidden" name="dopost" value="savequick"> | |||
<input type="hidden" name="savetype" value="" id="savetype"> | |||
<table width="98%" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||
<tr> | |||
<td align="left"> | |||
<table width="100%" cellspacing="0" id="head1" cellpadding="0"> | |||
<table width="98%" cellpadding="0" cellspacing="0" align="center" class="mt-3"> | |||
<tr> | |||
<td> | |||
<form name="form1" action="catalog_add.php" method="post"> | |||
<input type="hidden" name="dopost" value="savequick"> | |||
<input type="hidden" name="savetype" value="" id="savetype"> | |||
<table width="100%" cellspacing="0" cellpadding="0" id="head1"> | |||
<tr> | |||
<td colspan="2"> | |||
<td> | |||
<table width="80" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="80" align="center" class="admin-itemnote1">常规选项</td> | |||
@@ -96,17 +96,17 @@ | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="100%" id="needset" cellspacing="0" cellpadding="0" class="table admin-border"> | |||
<table width="100%" cellspacing="0" cellpadding="0" id="needset" class="table admin-border"> | |||
<tr> | |||
<td width="260" class="admin-td">是否支持投稿:</td> | |||
<td class="admin-td"> | |||
<td width="260">是否支持投稿:</td> | |||
<td> | |||
<label><input type="radio" name="issend" value="1" checked="1"> 支持</label> | |||
<label><input type="radio" name="issend" value="0"> 不支持</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">目录保存位置:</td> | |||
<td class="admin-td"> | |||
<td>目录保存位置:</td> | |||
<td> | |||
<label><input type="radio" name="referpath" value="parent" checked="1"> 默认网页目录( | |||
<?php | |||
$pardir = '{cmspath}'.$cfg_arcdir; | |||
@@ -120,17 +120,18 @@ | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">所属栏目:</td> | |||
<td class="admin-td"> | |||
<td>所属栏目:</td> | |||
<td> | |||
<select name="reid" onchange="showSeltype(this)" class="admin-input-sm"> | |||
<option value="0">选择所属目录</option> | |||
<option value="0">选择所属栏目</option> | |||
<?php echo $typeOptions;?> | |||
</select>(默认为顶级栏目) | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">文档模型:</td> | |||
<td class="admin-td"><select name="channeltype" id="channeltype" onChange="ParTemplet(this)" class="admin-input-sm"> | |||
<td>文档模型:</td> | |||
<td> | |||
<select name="channeltype" id="channeltype" onChange="ParTemplet(this)" class="admin-input-sm"> | |||
<?php | |||
foreach($channelArray as $k=>$arr) | |||
{ | |||
@@ -142,34 +143,34 @@ | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">栏目列表选项:</td> | |||
<td class="admin-td"> | |||
<td>栏目列表选项:</td> | |||
<td> | |||
<label><input type="radio" name="isdefault" value="1" checked="1"> 链接到默认页</label> | |||
<label><input type="radio" name="isdefault" value="0"> 链接到列表第一页</label> | |||
<label><input type="radio" name="isdefault" value="-1"> 使用动态页</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">默认页的名称:</td> | |||
<td class="admin-td"><input type="text" name="defaultname" value="index.html" class="admin-input-md"></td> | |||
<td>默认页的名称:</td> | |||
<td><input type="text" name="defaultname" value="index.html" class="admin-input-md"></td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">文档命名规则:</td> | |||
<td class="admin-td"> | |||
<td>文档命名规则:</td> | |||
<td> | |||
<input type="text" name="namerule" id="namerule" value="{typedir}/{aid}.html" class="admin-input-md"> | |||
<i class="fa fa-question-circle" title="帮助" onClick="ShowHide('helpvar2')"></i> | |||
<i onClick="ShowHide('helpvar2')" class="fa fa-question-circle" title="帮助"></i> | |||
</td> | |||
</tr> | |||
<tr id="helpvar2" style="display:none"> | |||
<td bgcolor="#f5f5f5">支持变量:</td> | |||
<td bgcolor="#f5f5f5"> | |||
{Y}、{M}、{D} 年月日<br> | |||
{Y}{M}{D} 年月日<br> | |||
{timestamp} INT类型的UNIX时间戳<br> | |||
{aid} 文档id<br> | |||
{pinyin} 拼音+文档id<br> | |||
{py} 拼音部首+文档id<br> | |||
{typedir} 栏目目录<br> | |||
{cc} 日期+ID混编后用转换为适合的字母<br> | |||
{cc} 日期+id混编后用转换为适合的字母<br> | |||
Nginx伪静态默认规则<br> | |||
rewrite ^/([0-9]+).html$ /apps/view.php?arcID=$1;<br> | |||
rewrite ^/([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2; | |||
@@ -179,7 +180,7 @@ | |||
<td>列表命名规则:</td> | |||
<td> | |||
<input type="text" name="namerule2" id="namerule2" value="{typedir}/{tid}-{page}.html" class="admin-input-md"> | |||
<i class="fa fa-question-circle" title="帮助" onClick="ShowHide('helpvar3')"></i> | |||
<i onClick="ShowHide('helpvar3')" class="fa fa-question-circle" title="帮助"></i> | |||
</td> | |||
</tr> | |||
<tr id="helpvar3" style="display:none"> | |||
@@ -193,58 +194,58 @@ | |||
</tr> | |||
<tr> | |||
<td colspan="2"> | |||
<table id="addQuick" width="98%" cellpadding="3" cellspacing="1"> | |||
<table width="100%" cellpadding="3" cellspacing="1" id="addQuick"> | |||
<tbody> | |||
<tr bgcolor="#e9ecef"> | |||
<td width="60">排序</td> | |||
<td width="260">顶级栏目名称</td> | |||
<td>子栏目(用"目录名称1,目录名称2"这样表示多个栏目)</td> | |||
<td width="60" align="center"><button type="button" id="add" class="btn btn-success btn-sm">添加</button></td> | |||
<tr bgcolor="#e9ecef" align="center"> | |||
<td width="6%">排序</td> | |||
<td width="20%">顶级栏目名称</td> | |||
<td width="60%">子类栏目(填写格式:目录名称1,目录名称2)</td> | |||
<td align="center"><button type="button" id="add" class="btn btn-success btn-sm">添加</button></td> | |||
</tr> | |||
<tr> | |||
<tr align="center"> | |||
<td class="rank"> | |||
<input type="hidden" name="posttype" value=""> | |||
<input type="text" name="rank" id="rank" value="1" class="admin-input-sm"> | |||
<input type="hidden" name="posttype" value="" class="pubinputs"> | |||
<input type="text" name="rank" id="rank" value="1" class="pubinputs admin-input-xs"> | |||
</td> | |||
<td><input type="text" name="toptype" id="toptype" class="admin-input-sm"></td> | |||
<td><input type="text" name="sontype" id="sontype" class="w-100"></td> | |||
<td align="center"><button type="button" id="add" class="btn btn-danger btn-sm del">删除</button></td> | |||
<td><input type="text" name="toptype" id="toptype" class="pubinputs admin-input-sm"></td> | |||
<td><input type="text" name="sontype" id="sontype" class="pubinputs w-100"></td> | |||
<td align="center"><button name="" type="button" id="add" class="btn btn-danger btn-sm del">删除</button></td> | |||
</tr> | |||
<?php for ($i=2;$i<=10;$i++) {?> | |||
<tr class="repeat"> | |||
<?php for($i=2;$i<=10;$i++) {?> | |||
<tr align="center" class="repeat"> | |||
<td class="rank"> | |||
<input type="hidden" name="posttype<?php echo $i;?>" value="<?php echo $i;?>"> | |||
<input type="text" name="rank<?php echo $i;?>" id="rank<?php echo $i;?>" value="<?php echo $i;?>" class="admin-input-sm"> | |||
<input type="text" name="rank<?php echo $i;?>" id="rank<?php echo $i;?>" value="<?php echo $i;?>" class="pubinputs admin-input-xs"> | |||
</td> | |||
<td><input type="text" name="toptype<?php echo $i;?>" id="toptype<?php echo $i;?>" class="admin-input-sm"></td> | |||
<td><input type="text" name="sontype<?php echo $i;?>" id="sontype<?php echo $i;?>" class="w-100"></td> | |||
<td align="center"><button type="button" id="add" class="btn btn-danger btn-sm del">删除</button></td> | |||
<td><input type="text" name="toptype<?php echo $i;?>" id="toptype<?php echo $i;?>" class="pubinputs admin-input-sm"></td> | |||
<td><input type="text" name="sontype<?php echo $i;?>" id="sontype<?php echo $i;?>" class="pubinputs w-100"></td> | |||
<td align="center"><button name="" type="button" id="add" class="btn btn-danger btn-sm del">删除</button></td> | |||
</tr> | |||
<?php }?> | |||
</tbody> | |||
</table> | |||
<table id="addQuickRel" width="360" cellpadding="3" cellspacing="1" style="display:none"> | |||
<table width="100%" cellpadding="3" cellspacing="1" id="addQuickRel" style="display:none"> | |||
<tbody> | |||
<tr bgcolor="#e9ecef" align="center"> | |||
<td width="60">排序</td> | |||
<td width="170">栏目名称</td> | |||
<td width="6%">排序</td> | |||
<td width="20%">栏目名称</td> | |||
<td align="center"><button type="button" id="addrel" class="btn btn-success btn-sm">添加</button></td> | |||
</tr> | |||
<tr> | |||
<tr align="center"> | |||
<td class="rank"> | |||
<input type="hidden" name="posttype" value=""> | |||
<input type="text" name="rank" id="rank" value="1" class="admin-input-sm"> | |||
<input type="hidden" name="posttype" value="" class="pubinputs"> | |||
<input type="text" name="rank" id="rank" value="1" class="pubinputs admin-input-xs"> | |||
</td> | |||
<td><input type="text" name="reltype" id="reltype" class="admin-input-sm"></td> | |||
<td align="center"><button type="button" id="add" class="btn btn-danger btn-sm del">删除</button></td> | |||
<td align="center"><input type="text" name="reltype" id="reltype" class="pubinputs admin-input-sm"></td> | |||
<td align="center"><button name="" type="button" id="add" class="btn btn-danger btn-sm del">删除</button></td> | |||
</tr> | |||
<?php for ($i=2;$i<=10;$i++) {?> | |||
<tr class="repeat"> | |||
<?php for($i=2;$i<=10;$i++) {?> | |||
<tr align="center" class="repeat"> | |||
<td class="rank"> | |||
<input type="hidden" name="posttype<?php echo $i;?>" value="<?php echo $i;?>"> | |||
<input type="text" name="rank<?php echo $i;?>" id="rank<?php echo $i;?>" value="<?php echo $i;?>" class="admin-input-sm"> | |||
<input type="text" name="rank<?php echo $i;?>" id="rank<?php echo $i;?>" value="<?php echo $i;?>" class="pubinputs admin-input-xs"> | |||
</td> | |||
<td><input type="text" name="reltype<?php echo $i;?>" id="reltype<?php echo $i;?>" class="admin-input-sm"></td> | |||
<td align="center"><input type="text" name="reltype<?php echo $i;?>" id="reltype<?php echo $i;?>" class="pubinputs admin-input-sm"></td> | |||
<td align="center"><button type="button" id="add" class="btn btn-danger btn-sm del">删除</button></td> | |||
</tr> | |||
<?php }?> | |||
@@ -261,9 +262,9 @@ | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
</form> | |||
</form> | |||
</td> | |||
</tr> | |||
</table> | |||
</body> | |||
</html> |
@@ -13,7 +13,8 @@ | |||
var channelArray = new Array(); | |||
<?php | |||
$i = 0; | |||
foreach($channelArray as $k=> $arr){ | |||
foreach($channelArray as $k=> $arr) | |||
{ | |||
echo "channelArray[$k] = \"{$arr['nid']}\";"; | |||
} | |||
?> | |||
@@ -29,7 +30,7 @@ | |||
function ShowHide(objname) { | |||
var obj = document.getElementById(objname); | |||
if (obj.style.display != "none") | |||
obj.style.display = "none"; | |||
obj.style.display = "none"; | |||
else { | |||
if (Nav() == 'IE') obj.style.display = "block"; | |||
else obj.style.display = "table-row"; | |||
@@ -100,16 +101,16 @@ | |||
</script> | |||
</head> | |||
<body> | |||
<table width="98%" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||
<table width="98%" cellpadding="0" cellspacing="0" align="center" class="mt-3"> | |||
<tr> | |||
<form name="form1" action="catalog_edit.php" method="post" onSubmit="return checkSubmit()"> | |||
<input type="hidden" name="dopost" value="save"> | |||
<input type="hidden" name="id" value="<?php echo $id;?>"> | |||
<input type="hidden" name="topid" value="<?php echo $myrow['topid'];?>"> | |||
<td align="center" bgcolor="#fff"> | |||
<table width="100%" cellspacing="0" id="head1" cellpadding="0"> | |||
<tr> | |||
<td colspan="2" bgcolor="#fff" align="left"> | |||
<td> | |||
<form name="form1" action="catalog_edit.php" method="post" onSubmit="return checkSubmit()"> | |||
<input type="hidden" name="dopost" value="save"> | |||
<input type="hidden" name="id" value="<?php echo $id;?>"> | |||
<input type="hidden" name="topid" value="<?php echo $myrow['topid'];?>"> | |||
<table width="100%" cellspacing="0" cellpadding="0" id="head1"> | |||
<tr> | |||
<td> | |||
<table cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="80" align="center" class="admin-itemnote1">常规选项</td> | |||
@@ -120,9 +121,9 @@ | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="100%" cellspacing="0" id="head2" cellpadding="0" style="display:none"> | |||
<table width="100%" cellspacing="0"cellpadding="0" id="head2" style="display:none"> | |||
<tr> | |||
<td colspan="2" bgcolor="#fff"> | |||
<td> | |||
<table cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="80" align="center" class="admin-itemnote2"><a href="javascript:;" onClick="ShowItem1()">常规选项</a></td> | |||
@@ -133,9 +134,9 @@ | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="100%" cellspacing="0" id="head3" cellpadding="0" style="display:none"> | |||
<table width="100%" cellspacing="0" cellpadding="0" id="head3" style="display:none"> | |||
<tr> | |||
<td colspan="2" bgcolor="#fff"> | |||
<td> | |||
<table cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="80" align="center" class="admin-itemnote2"><a href="javascript:;" onClick="ShowItem1()">常规选项</a></td> | |||
@@ -146,26 +147,25 @@ | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="100%" id="needset" cellspacing="0" cellpadding="0" class="table admin-border"> | |||
<table width="100%" cellspacing="0" cellpadding="0" id="needset" class="table admin-border"> | |||
<tr> | |||
<td width="260" class="admin-td">是否支持投稿:</td> | |||
<td class="admin-td"> | |||
<td width="260">是否支持投稿:</td> | |||
<td> | |||
<label><input type="radio" name="issend" value="1" <?php if ($myrow['issend']=="1") echo "checked='1'";?>> 支持</label> | |||
<label><input type="radio" name="issend" value="0" <?php if ($myrow['issend']=="0") echo "checked='1'";?>> 不支持</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td width="260" class="admin-td">是否隐藏栏目:</td> | |||
<td class="admin-td"> | |||
<td width="260">是否隐藏栏目:</td> | |||
<td> | |||
<label><input type="radio" name="ishidden" value="0" <?php if ($myrow['ishidden']=="0") echo "checked='1'";?>> 显示</label> | |||
<label><input type="radio" name="ishidden" value="1" <?php if ($myrow['ishidden']=="1") echo "checked='1'";?>> 隐藏</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">文档模型:</td> | |||
<td class="admin-td"> | |||
<select name="channeltype" id="channeltype" onChange="ParTemplet(this)" | |||
class="admin-input-sm"> | |||
<td>文档模型:</td> | |||
<td> | |||
<select name="channeltype" id="channeltype" onChange="ParTemplet(this)" class="admin-input-sm"> | |||
<?php | |||
foreach($channelArray as $k=>$arr) | |||
{ | |||
@@ -177,42 +177,42 @@ | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">中文名称:</td> | |||
<td class="admin-td"><input type="text" name="typename" value="<?php echo $myrow['typename']?>" class="admin-input-md"></td> | |||
<td>中文名称:</td> | |||
<td><input type="text" name="typename" value="<?php echo $myrow['typename']?>" class="admin-input-md"></td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">中文概述:</td> | |||
<td class="admin-td"><input type="text" name="cnoverview" value="<?php echo $myrow['cnoverview']?>" class="admin-input-md"></td> | |||
<td>中文概述:</td> | |||
<td><input type="text" name="cnoverview" value="<?php echo $myrow['cnoverview']?>" class="admin-input-md"></td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">英文名称:</td> | |||
<td class="admin-td"><input type="text" name="enname" value="<?php echo $myrow['enname']?>" class="admin-input-md"></td> | |||
<td>英文名称:</td> | |||
<td><input type="text" name="enname" value="<?php echo $myrow['enname']?>" class="admin-input-md"></td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">英文概述:</td> | |||
<td class="admin-td"><input type="text" name="enoverview" value="<?php echo $myrow['enoverview']?>" class="admin-input-md"></td> | |||
<td>英文概述:</td> | |||
<td><input type="text" name="enoverview" value="<?php echo $myrow['enoverview']?>" class="admin-input-md"></td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">栏目大图:</td> | |||
<td>栏目大图:</td> | |||
<td> | |||
<input type="text" name="bigpic" value="<?php echo $myrow['bigpic']?>" class="admin-input-md"> | |||
<input type="button" class="btn btn-success btn-sm" value="浏览" onClick="SelectImage('form1.bigpic');"> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">栏目小图:</td> | |||
<td>栏目小图:</td> | |||
<td> | |||
<input type="text" name="litimg" value="<?php echo $myrow['litimg']?>" class="admin-input-md"> | |||
<input type="button" class="btn btn-success btn-sm" value="浏览" onClick="SelectImage('form1.litimg');"> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">排列顺序:</td> | |||
<td class="admin-td"><input type="text" name="sortrank" value="<?php echo $myrow['sortrank']?>" class="admin-input-sm">(由低 > 高)</td> | |||
<td>排列顺序:</td> | |||
<td><input type="text" name="sortrank" value="<?php echo $myrow['sortrank']?>" class="admin-input-sm">(由低 > 高)</td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">浏览权限:</td> | |||
<td class="admin-td"> | |||
<td>浏览权限:</td> | |||
<td> | |||
<select name="corank" id="corank" class="admin-input-sm"> | |||
<?php | |||
$dsql->SetQuery("SELECT * FROM `#@__arcrank` where `rank` >= 0"); | |||
@@ -229,8 +229,8 @@ | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">文件保存目录:</td> | |||
<td class="admin-td"><input type="text" name="typedir" id="typedir" value="<?php echo $myrow['typedir']?>" class="admin-input-md">(标签“{cmspath}”必填,请勿删除)</td> | |||
<td>文件保存目录:</td> | |||
<td><input type="text" name="typedir" id="typedir" value="<?php echo $myrow['typedir']?>" class="admin-input-md">(标签“{cmspath}”必填,请勿删除)</td> | |||
</tr> | |||
<tr> | |||
<td>栏目列表选项:</td> | |||
@@ -241,12 +241,12 @@ | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">默认页的名称:</td> | |||
<td class="admin-td"><input type="text" name="defaultname" value="<?php echo $myrow['defaultname']?>" class="admin-input-md"></td> | |||
<td>默认页的名称:</td> | |||
<td><input type="text" name="defaultname" value="<?php echo $myrow['defaultname']?>" class="admin-input-md"></td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">栏目属性:</td> | |||
<td class="admin-td"> | |||
<td>栏目属性:</td> | |||
<td> | |||
<label><input type="radio" name="ispart" value="0" <?php if ($myrow['ispart']==0) echo "checked='1'";?>> 列表栏目(允许在本栏目发布文档,并生成文档列表)</label><br> | |||
<label><input type="radio" name="ispart" value="1" <?php if ($myrow['ispart']==1) echo "checked='1'";?>> 封面栏目(栏目本身不允许发布文档)</label><br> | |||
<label><input type="radio" name="ispart" value="2" <?php if ($myrow['ispart']==2) echo "checked='1'";?>> 外部栏目(在"文件保存目录"处填写网址)</label> | |||
@@ -254,7 +254,7 @@ | |||
</tr> | |||
<tr> | |||
<td>栏目交叉:<i onClick="ShowHide('helpvarco')" class="fa fa-question-circle" title="帮助"></i> 仅适用列表栏目</td> | |||
<td class="admin-td"> | |||
<td> | |||
<label><input type="radio" name="cross" onClick="CheckCross()" value="0" <?php if ($myrow['cross']==0) echo "checked='1'";?>> 不交叉</label> | |||
<label><input type="radio" name="cross" onClick="CheckCross()" value="1" <?php if ($myrow['cross']==1) echo "checked='1'";?>> 自动获取同名栏目文档</label> | |||
<label><input type="radio" name="cross" onClick="CheckCross()" value="2" <?php if ($myrow['cross']==2) echo "checked='1'";?>> 手工指定交叉栏目id(用英文逗号)</label> | |||
@@ -267,8 +267,8 @@ | |||
<td bgcolor="#f5f5f5">交叉栏目是指一个大栏目与另一个非下级的子栏目出现交叉的情况,相当于系统原来的副栏目功能,不过现在改在栏目里预先设置好<br>注:会自动索引交叉栏目的文档,但不会索引交叉栏目下级栏目的文档,这种应用也适用于按地区划分资讯的站点</td> | |||
</tr> | |||
<tr id="smclass" style="<?php echo ($channelid<0 ? '' : 'display:none');?>"> | |||
<td class="admin-td">绑定小分类:仅适用分类模型</td> | |||
<td class="admin-td"> | |||
<td>绑定小分类:仅适用分类模型</td> | |||
<td> | |||
<select name="smalltype[]" multiple="yes" style="width:160px;height:100px"> | |||
<?php | |||
$smtypes = explode(',',trim($myrow['smalltypes'])); | |||
@@ -292,21 +292,21 @@ | |||
} | |||
} | |||
?> | |||
</select>(按Ctrl多选,不选系统调用全部分类,在<a href='stepselect_main.php'>“联动类别管理”</a>中管理) | |||
</select>(按Ctrl多选,不选系统调用全部分类,在<a href="stepselect_main.php">“联动类别管理”</a>中管理) | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="100%" cellspacing="0" cellpadding="0" id="adset" class="table admin-border" style="display:none"> | |||
<tr> | |||
<td width="260" class="admin-td">多站点支持:</td> | |||
<td class="admin-td"> | |||
<td width="260">多站点支持:</td> | |||
<td> | |||
<label><input type="radio" name="moresite" value="1" <?php if ($myrow['moresite']==1) echo "checked='1'";?>> 启用</label> | |||
<label><input type="radio" name="moresite" value="0" <?php if ($myrow['moresite']==0) echo "checked='1'";?>> 不启用</label>(绑名绑定仅需要在顶级栏目设定,子级栏目修改无效) | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">绑定域名:</td> | |||
<td class="admin-td"><input type="text" name="siteurl" id="siteurl" value="<?php echo $myrow['siteurl']?>" class="admin-input-md">(需要加http开头的链接)</td> | |||
<td>绑定域名:</td> | |||
<td><input type="text" name="siteurl" id="siteurl" value="<?php echo $myrow['siteurl']?>" class="admin-input-md">(需要加http开头的链接)</td> | |||
</tr> | |||
<tr> | |||
<td>封面模板:</td> | |||
@@ -355,13 +355,13 @@ | |||
<tr id="helpvar2" style="display:none"> | |||
<td bgcolor="#f5f5f5">支持变量:</td> | |||
<td bgcolor="#f5f5f5"> | |||
{Y}、{M}、{D} 年月日<br> | |||
{Y}{M}{D} 年月日<br> | |||
{timestamp} INT类型的UNIX时间戳<br> | |||
{aid} 文档id<br> | |||
{pinyin} 拼音+文档id<br> | |||
{py} 拼音部首+文档id<br> | |||
{typedir} 栏目目录<br> | |||
{cc} 日期+ID混编后用转换为适合的字母<br> | |||
{cc} 日期+id混编后用转换为适合的字母<br> | |||
Nginx伪静态默认规则<br> | |||
rewrite ^/([0-9]+).html$ /apps/view.php?arcID=$1;<br> | |||
rewrite ^/([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2; | |||
@@ -389,19 +389,15 @@ | |||
</tr> | |||
<tr> | |||
<td>关键词:</td> | |||
<td><textarea name="keywords" cid="keywords" class="admin-textarea-sm"><?php echo $myrow['keywords']?></textarea>(标签“{dede:field.keywords/}”标签调用) | |||
</td> | |||
<td><textarea name="keywords" cid="keywords" class="admin-textarea-sm"><?php echo $myrow['keywords']?></textarea>(标签“{dede:field.keywords/}”标签调用)</td> | |||
</tr> | |||
<tr> | |||
<td>栏目描述:</td> | |||
<td><textarea name="description" id="description" class="admin-textarea-sm"><?php echo $myrow['description']?></textarea>(标签“{dede:field.description/}”标签调用) | |||
</td> | |||
<td><textarea name="description" id="description" class="admin-textarea-sm"><?php echo $myrow['description']?></textarea>(标签“{dede:field.description/}”标签调用)</td> | |||
</tr> | |||
<tr> | |||
<td>继承选项:</td> | |||
<td> | |||
<label><input type="checkbox" name="upnext" id="upnext" value="1"> 同时继承下级栏目浏览权限、文档类型、模板风格、命名规则等通用属性</label> | |||
</td> | |||
<td><label><input type="checkbox" name="upnext" id="upnext" value="1"> 同时继承下级栏目浏览权限、文档类型、模板风格、命名规则等通用属性</label></td> | |||
</tr> | |||
</table> | |||
<table width="100%" cellspacing="0" cellpadding="0" id="ctset" class="table admin-border" style="display:none"> | |||
@@ -422,8 +418,8 @@ | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</form> | |||
</form> | |||
</td> | |||
</tr> | |||
</table> | |||
</body> |
@@ -34,10 +34,6 @@ form,h1,h2,h3,ul,ol,div { | |||
body,th,td { | |||
line-height:1.5 | |||
} | |||
th,td,div { | |||
white-space:normal; | |||
word-break:break-all | |||
} | |||
li,dd { | |||
margin:0; | |||
padding:0; | |||
@@ -35,10 +35,6 @@ | |||
.user-meter i { | |||
font-size:24px !important | |||
} | |||
.pannel-main-container { | |||
padding:1rem; | |||
background:#fff | |||
} | |||
.list-group-item.active a { | |||
color:#fff | |||
} | |||
@@ -58,6 +54,14 @@ | |||
border-left:.3em solid transparent; | |||
vertical-align:.25rem | |||
} | |||
.pannel-main-container { | |||
padding:1rem; | |||
background:#fff | |||
} | |||
.thumbnail-md { | |||
max-width:200px; | |||
max-height:120px | |||
} | |||
.form-control { | |||
height:36px; | |||
line-height:36px | |||
@@ -42,7 +42,7 @@ function MakeUpload(mnum) | |||
fhtml = ''; | |||
fhtml += "<div><label><input type='checkbox' name='isokcheck"+startNum+"' id='isokcheck"+startNum+"' value='1' "+dsel+" onClick='CheckSelTable("+startNum+")'> 显示图片"+startNum+"上传框</label></div>"; | |||
fhtml += "<div id=\"seltb"+startNum+"\" style=\""+dplay+"\">"; | |||
fhtml += "<p>图片"+startNum+":<input type='text' name='imgfile"+startNum+"' class='form-control' placeholder='请输入网址'></p>"; | |||
fhtml += "<p>图片"+startNum+":<input type='text' name='imgfile"+startNum+"' class='form-control d-inline-block w-50 mr-2' placeholder='请输入网址'><span class='btn btn-success btn-sm'>选择</span></p>"; | |||
fhtml += "<p>图片简介:<textarea name='imgmsg"+startNum+"' class='form-control'></textarea></p>"; | |||
fhtml += "</div>"; | |||
upfield.innerHTML += fhtml; | |||
@@ -121,11 +121,11 @@ class TypeUnit | |||
echo "</td><td align='right'>"; | |||
echo "<a href='{$GLOBALS['cfg_phpurl']}/list.php?tid={$id}' target='_blank' title='预览'><i class='btn btn-sm fa fa-eye'></i></a>"; | |||
echo "<a href='catalog_do.php?cid={$id}&dopost=listArchives' title='文档'><i class='btn btn-sm fa fa-bars'></i></a>"; | |||
echo "<a href='catalog_add.php?id={$id}' title='增加子类'><i class='btn btn-sm fa fa-plus-circle'></i></a>"; | |||
echo "<a href='catalog_add.php?id={$id}' title='增加'><i class='btn btn-sm fa fa-plus-circle'></i></a>"; | |||
echo "<a href='catalog_edit.php?id={$id}' title='修改'><i class='btn btn-sm fa fa-pencil-square-o'></i></a>"; | |||
echo "<a href='catalog_do.php?dopost=moveCatalog&typeid={$id}' title='移动'><i class='btn btn-sm fa fa-share-square'></i></a>"; | |||
echo "<a href='catalog_del.php?id={$id}&typeoldname=".urlencode($typeName)."' title='删除'><i class='btn btn-sm fa fa-trash'></i></a>"; | |||
echo "<input type='text' name='sortrank{$id}' value='{$rank}' style='width:30px;text-align:center'></td></tr></table></td></tr>"; | |||
echo "<input type='text' name='sortrank{$id}' value='{$rank}' style='width:36px;text-align:center'></td></tr></table></td></tr>"; | |||
} | |||
//带封面的栏目 | |||
else if ($ispart == 1) { | |||
@@ -134,11 +134,11 @@ class TypeUnit | |||
echo "</td><td align='right'>"; | |||
echo "<a href='{$GLOBALS['cfg_phpurl']}/list.php?tid={$id}' target='_blank' title='预览'><i class='btn btn-sm fa fa-eye'></i></a>"; | |||
echo "<a href='catalog_do.php?cid={$id}&dopost=listArchives' title='文档'><i class='btn btn-sm fa fa-bars'></i></a>"; | |||
echo "<a href='catalog_add.php?id={$id}' title='增加子类'><i class='btn btn-sm fa fa-plus-circle'></i></a>"; | |||
echo "<a href='catalog_add.php?id={$id}' title='增加'><i class='btn btn-sm fa fa-plus-circle'></i></a>"; | |||
echo "<a href='catalog_edit.php?id={$id}' title='修改'><i class='btn btn-sm fa fa-pencil-square-o'></i></a>"; | |||
echo "<a href='catalog_do.php?dopost=moveCatalog&typeid={$id}' title='移动'><i class='btn btn-sm fa fa-share-square'></i></a>"; | |||
echo "<a href='catalog_del.php?id={$id}&typeoldname=".urlencode($typeName)."' title='删除'><i class='btn btn-sm fa fa-trash'></i></a>"; | |||
echo "<input type='text' name='sortrank{$id}' value='{$rank}' style='width:30px;text-align:center'></td></tr></table></td></tr>"; | |||
echo "<input type='text' name='sortrank{$id}' value='{$rank}' style='width:36px;text-align:center'></td></tr></table></td></tr>"; | |||
} | |||
//独立页面 | |||
else if ($ispart == 2) { | |||
@@ -149,7 +149,7 @@ class TypeUnit | |||
echo "<a href='catalog_edit.php?id={$id}' title='修改'><i class='btn btn-sm fa fa-pencil-square-o'></i></a>"; | |||
echo "<a href='catalog_do.php?dopost=moveCatalog&typeid={$id}' title='移动'><i class='btn btn-sm fa fa-share-square'></i></a>"; | |||
echo "<a href='catalog_del.php?id={$id}&typeoldname=".urlencode($typeName)."' title='删除'><i class='btn btn-sm fa fa-trash'></i></a>"; | |||
echo "<input type='text' name='sortrank{$id}' value='{$rank}' style='width:30px;text-align:center'></td></tr></table></td></tr>"; | |||
echo "<input type='text' name='sortrank{$id}' value='{$rank}' style='width:36px;text-align:center'></td></tr></table></td></tr>"; | |||
} | |||
echo "<tr><td colspan='2' id='suns".$id."' class='p-0'>"; | |||
$lastid = GetCookie('lastCid'); | |||
@@ -204,11 +204,11 @@ class TypeUnit | |||
echo "</td><td align='right'>"; | |||
echo "<a href='{$GLOBALS['cfg_phpurl']}/list.php?tid={$id}' target='_blank' title='预览'><i class='btn btn-sm fa fa-eye'></i></a>"; | |||
echo "<a href='catalog_do.php?cid={$id}&dopost=listArchives' title='文档'><i class='btn btn-sm fa fa-bars'></i></a>"; | |||
echo "<a href='catalog_add.php?id={$id}' title='增加子类'><i class='btn btn-sm fa fa-plus-circle'></i></a>"; | |||
echo "<a href='catalog_add.php?id={$id}' title='增加'><i class='btn btn-sm fa fa-plus-circle'></i></a>"; | |||
echo "<a href='catalog_edit.php?id={$id}' title='修改'><i class='btn btn-sm fa fa-pencil-square-o'></i></a>"; | |||
echo "<a href='catalog_do.php?dopost=moveCatalog&typeid={$id}' title='移动'><i class='btn btn-sm fa fa-share-square'></i></a>"; | |||
echo "<a href='catalog_del.php?id={$id}&typeoldname=".urlencode($typeName)."' title='删除'><i class='btn btn-sm fa fa-trash'></i></a>"; | |||
echo "<input type='text' name='sortrank{$id}' value='{$rank}' style='width:30px;text-align:center'></td></tr></table></td></tr>"; | |||
echo "<input type='text' name='sortrank{$id}' value='{$rank}' style='width:36px;text-align:center'></td></tr></table></td></tr>"; | |||
} | |||
//封面栏目 | |||
else if ($ispart == 1) { | |||
@@ -218,11 +218,11 @@ class TypeUnit | |||
echo "</td><td align='right'>"; | |||
echo "<a href='{$GLOBALS['cfg_phpurl']}/list.php?tid={$id}' target='_blank' title='预览'><i class='btn btn-sm fa fa-eye'></i></a>"; | |||
echo "<a href='catalog_do.php?cid={$id}&dopost=listArchives' title='文档'><i class='btn btn-sm fa fa-bars'></i></a>"; | |||
echo "<a href='catalog_add.php?id={$id}' title='增加子类'><i class='btn btn-sm fa fa-plus-circle'></i></a>"; | |||
echo "<a href='catalog_add.php?id={$id}' title='增加'><i class='btn btn-sm fa fa-plus-circle'></i></a>"; | |||
echo "<a href='catalog_edit.php?id={$id}' title='修改'><i class='btn btn-sm fa fa-pencil-square-o'></i></a>"; | |||
echo "<a href='catalog_do.php?dopost=moveCatalog&typeid={$id}' title='移动'><i class='btn btn-sm fa fa-share-square'></i></a>"; | |||
echo "<a href='catalog_del.php?id={$id}&typeoldname=".urlencode($typeName)."' title='删除'><i class='btn btn-sm fa fa-trash'></i></a>"; | |||
echo "<input type='text' name='sortrank{$id}' value='{$rank}' style='width:30px;text-align:center'></td></tr></table></td></tr>"; | |||
echo "<input type='text' name='sortrank{$id}' value='{$rank}' style='width:36px;text-align:center'></td></tr></table></td></tr>"; | |||
} | |||
//独立页面 | |||
else if ($ispart == 2) { | |||
@@ -234,7 +234,7 @@ class TypeUnit | |||
echo "<a href='catalog_edit.php?id={$id}' title='修改'><i class='btn btn-sm fa fa-pencil-square-o'></i></a>"; | |||
echo "<a href='catalog_do.php?dopost=moveCatalog&typeid={$id}' title='移动'><i class='btn btn-sm fa fa-share-square'></i></a>"; | |||
echo "<a href='catalog_del.php?id={$id}&typeoldname=".urlencode($typeName)."' title='删除'><i class='btn btn-sm fa fa-trash'></i></a>"; | |||
echo "<input type='text' name='sortrank{$id}' value='{$rank}' style='width:30px;text-align:center'></td></tr></table></td></tr>"; | |||
echo "<input type='text' name='sortrank{$id}' value='{$rank}' style='width:36px;text-align:center'></td></tr></table></td></tr>"; | |||
} | |||
echo "<tr><td id='suns".$id."' style='".($GLOBALS['exallct']? "" : "display:none")."'><table width='100%' cellspacing='0' cellpadding='0'>"; | |||
$this->LogicListAllSunType($id, $step." "); | |||
@@ -36,6 +36,10 @@ | |||
<label class="col-sm-2 col-form-label">标签</label> | |||
<div class="col-sm-10"><input type="text" name="tags" id="tags" class="form-control"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">缩略图</label> | |||
<div class="col-sm-10"><input type="file" name="upfile1" class="w-100"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">作者</label> | |||
<div class="col-sm-10"><input type="text" name="writer" id="writer" class="form-control" value="<?php echo $cfg_ml->M_UserName?>"></div> | |||
@@ -56,7 +60,11 @@ | |||
<label class="col-sm-2 col-form-label">描述</label> | |||
<div class="col-sm-10"><textarea name="description" id="description" class="form-control"></textarea></div> | |||
</div> | |||
<?php PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']),'autofield');?> | |||
<?php PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']),'autofield');?> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">正文</label> | |||
<div class="col-sm-10"><?php GetEditor("body","",400,"Member");?></div> | |||
</div> | |||
<input name="maxwidth" type="hidden" id="maxwidth" value="<?php echo $cfg_album_width;?>"> | |||
<input name="prow" type="hidden" value="<?php echo $cfg_album_row;?>"> | |||
<input name="pcol" type="hidden" value="<?php echo $cfg_album_col;?>"> | |||
@@ -66,10 +74,9 @@ | |||
<label><input type="radio" name="pagestyle" id="pagestyle1" onclick="checkMuList()" value="1" <?php if ($cfg_album_style==1) echo " checked='checked'";?>> 多页多图显示(适用于表情等)</label> | |||
<label><input type="radio" name="pagestyle" id="pagestyle2" onclick="checkMuList()" value="2" <?php if ($cfg_album_style==2) echo " checked='checked'";?>> 多页单图显示(幻灯)</label> | |||
<label><input type="radio" name="pagestyle" id="pagestyle3" onclick="checkMuList()" value="3" <?php if ($cfg_album_style==3) echo " checked='checked'";?>> 多行多列显示(缩略图)</label> | |||
<div id="spagelist" style="display:none">每页图片数:<input name="pagpicnum" id="pagpicnum" size="10" value="<?php echo $cfg_album_pagesize;?>"></div> | |||
<div id="spagelist" style="display:none">每页图片数:<input name="pagpicnum" id="pagpicnum" class="form-control d-inline-block w-25" value="<?php echo $cfg_album_pagesize;?>"></div> | |||
</div> | |||
<div class="form-group"> | |||
<label>手工上传</label> | |||
<span>图片数目:<input type="text" name="picnum" value="5" id="picnum" class="form-control d-inline-block w-25"></span> | |||
<button type="button" name="kkkup" id="kkkup2" class="btn btn-success btn-sm" onclick="MakeUpload(0);">增加</button>(最大60幅) | |||
</div> | |||
@@ -40,6 +40,13 @@ | |||
<label class="col-sm-2 col-form-label">标签</label> | |||
<div class="col-sm-10"><input type="text" name="tags" id="tags" class="form-control" value="<?php echo GetTags($row['id']);?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">缩略图</label> | |||
<div class="col-sm-10"> | |||
<img src="/static/web/img/thumbnail.jpg" class="thumbnail-md"> | |||
<button class="btn btn-success btn-sm">更换</button> | |||
</div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">作者</label> | |||
<div class="col-sm-10"><input type="text" name="writer" id="writer" class="form-control" value="<?php echo $cfg_ml->M_UserName?>"></div> | |||
@@ -59,10 +66,11 @@ | |||
<label class="col-sm-2 col-form-label">描述</label> | |||
<div class="col-sm-10"><textarea name="description" id="description" class="form-control"><?php echo $row["description"];?></textarea></div> | |||
</div> | |||
<?php | |||
//自定义字段 | |||
PrintAutoFieldsEdit($row['fieldset'],$addRow,'autofield'); | |||
?> | |||
<?php PrintAutoFieldsEdit($row['fieldset'],$addRow,'autofield');?> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">正文</label> | |||
<div class="col-sm-10"><?php GetEditor("body",$addRow['body'],400,"Member");?></div> | |||
</div> | |||
<input name="maxwidth" type="hidden" id="maxwidth" value="<?php echo $abinfo->GetAtt('maxwidth');?>"> | |||
<input name="prow" type="hidden" value="<?php echo $abinfo->GetAtt('row');?>"> | |||
<input name="pcol" type="hidden" value="<?php echo $abinfo->GetAtt('col');?>"> | |||
@@ -72,11 +80,10 @@ | |||
<label><input type="radio" name="pagestyle" id="pagestyle1" onclick="checkMuList()" value="1" <?php if ($cfg_album_style==1) echo " checked='checked'";?>> 多页多图显示(适用于表情等)</label> | |||
<label><input type="radio" name="pagestyle" id="pagestyle2" onclick="checkMuList()" value="2" <?php if ($cfg_album_style==2) echo " checked='checked'";?>> 多页单图显示(幻灯)</label> | |||
<label><input type="radio" name="pagestyle" id="pagestyle3" onclick="checkMuList()" value="3" <?php if ($cfg_album_style==3) echo " checked='checked'";?>> 多行多列显示(缩略图)</label> | |||
<div id="spagelist" style="<?php if ($abinfo->GetAtt('value')!=2) echo 'display:none';?>">每页图片数:<input name="pagpicnum" id="pagpicnum" value="<?php echo $abinfo->GetAtt('pagpicnum');?>"></div> | |||
<div id="spagelist" style="<?php if ($abinfo->GetAtt('value')!=2) echo 'display:none';?>">每页图片数:<input name="pagpicnum" id="pagpicnum" class="form-control d-inline-block w-25" value="<?php echo $abinfo->GetAtt('pagpicnum');?>"></div> | |||
</div> | |||
<div class="form-group"> | |||
<label>手工上传</label> | |||
<span>图片数目:<input type="text" name="picnum" value="5" id="picnum" class="form-control d-inline-block w-25"></span> | |||
<span>图片数目:<input type="text" name="picnum" value="5" id="picnum" class="form-control d-inline-block w-25 mr-2"></span> | |||
<button type="button" name="kkkup" id="kkkup2" class="btn btn-success btn-sm" onclick="MakeUpload(0);">增加</button>(最大60幅) | |||
</div> | |||
<div id="uploadfield"></div> | |||
@@ -89,7 +96,7 @@ | |||
?> | |||
<div><label><input type="checkbox" name="isokcheck<?php echo $j;?>" id="isokcheck<?php echo $j;?>" value="1" onclick="CheckSelTable(<?php echo $j;?>)" checked="1"> 显示隐藏图片<?php echo $j;?>选框</label></div> | |||
<div id="seltb<?php echo $j;?>"> | |||
<p>本地上传:<input type="text" name="imgfile<?php echo $j;?>" class="form-control"></p> | |||
<p>本地上传:<input type="text" name="imgfile<?php echo $j;?>" class="form-control d-inline-block w-50 mr-2" placeholder="请输入网址"><span class="btn btn-success btn-sm">选择</span></p> | |||
<p> | |||
<div id="divpicview<?php echo $j;?>" class="divpre"></div> | |||
<img src="<?php echo trim($ctag->GetInnerText());?>" id="picview<?php echo $j;?>" name="picview<?php echo $j;?>"> | |||
@@ -35,6 +35,10 @@ | |||
<label class="col-sm-2 col-form-label">标签</label> | |||
<div class="col-sm-10"><input type="text" name="tags" id="tags" class="form-control"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">缩略图</label> | |||
<div class="col-sm-10"><input type="file" name="upfile1" class="w-100"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">作者</label> | |||
<div class="col-sm-10"><input type="text" name="writer" id="writer" class="form-control" value="<?php echo $cfg_ml->M_UserName?>"></div> | |||
@@ -35,6 +35,13 @@ | |||
<label class="col-sm-2 col-form-label">标签</label> | |||
<div class="col-sm-10"><input type="text" name="tags" id="tags" class="form-control" value="<?php echo $row['keywords'];?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">缩略图</label> | |||
<div class="col-sm-10"> | |||
<img src="/static/web/img/thumbnail.jpg" class="thumbnail-md"> | |||
<button class="btn btn-success btn-sm">更换</button> | |||
</div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">作者</label> | |||
<div class="col-sm-10"><input type="text" name="writer" id="writer" class="form-control" value="<?php echo $cfg_ml->M_UserName?>"></div> | |||
@@ -54,10 +61,7 @@ | |||
<label class="col-sm-2 col-form-label">描述</label> | |||
<div class="col-sm-10"><textarea name="description" id="description" class="form-control"><?php echo $row["description"];?></textarea></div> | |||
</div> | |||
<?php | |||
//自定义字段 | |||
PrintAutoFieldsEdit(stripslashes($cInfos['fieldset']), $addRow, 'autofield'); | |||
?> | |||
<?php PrintAutoFieldsEdit(stripslashes($cInfos['fieldset']), $addRow, 'autofield');?> | |||
<div class="text-center"> | |||
<button type="submit" class="btn btn-success btn-sm">提交</button> | |||
<button type="reset" class="btn btn-outline-success btn-sm" onclick="location.reload();">重置</button> | |||
@@ -35,6 +35,10 @@ | |||
<label class="col-sm-2 col-form-label">标签</label> | |||
<div class="col-sm-10"><input type="text" name="tags" id="tags" class="form-control"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">缩略图</label> | |||
<div class="col-sm-10"><input type="file" name="upfile1" class="w-100"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">作者</label> | |||
<div class="col-sm-10"><input type="text" name="writer" id="writer" class="form-control" value="<?php echo $cfg_ml->M_UserName?>"></div> | |||
@@ -31,6 +31,17 @@ | |||
<label class="col-sm-2 col-form-label"><?php echo $cInfos['titlename'];?></label> | |||
<div class="col-sm-10"><input type="text" name="title" id="title" class="form-control" value="<?php echo $addRow['title']?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">标签</label> | |||
<div class="col-sm-10"><input type="text" name="tags" id="tags" class="form-control" value="<?php echo GetTags($row['id']);?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">缩略图</label> | |||
<div class="col-sm-10"> | |||
<img src="/static/web/img/thumbnail.jpg" class="thumbnail-md"> | |||
<button class="btn btn-success btn-sm">更换</button> | |||
</div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">作者</label> | |||
<div class="col-sm-10"><input type="text" name="writer" id="writer" class="form-control" value="<?php echo $cfg_ml->M_UserName?>"></div> | |||
@@ -50,10 +61,7 @@ | |||
<label class="col-sm-2 col-form-label">描述</label> | |||
<div class="col-sm-10"><textarea name="description" id="description" class="form-control"><?php echo $row["description"];?></textarea></div> | |||
</div> | |||
<?php | |||
//自定义字段 | |||
PrintAutoFieldsEdit(stripslashes($cInfos['fieldset']), $addRow, 'autofield'); | |||
?> | |||
<?php PrintAutoFieldsEdit(stripslashes($cInfos['fieldset']), $addRow, 'autofield');?> | |||
<div class="text-center"> | |||
<button type="submit" class="btn btn-success btn-sm">提交</button> | |||
<button type="reset" class="btn btn-outline-success btn-sm" onclick="location.reload();">重置</button> | |||
@@ -35,6 +35,10 @@ | |||
<label class="col-sm-2 col-form-label">标签</label> | |||
<div class="col-sm-10"><input type="text" name="tags" id="tags" class="form-control"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">缩略图</label> | |||
<div class="col-sm-10"><input type="file" name="upfile1" class="w-100"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">作者</label> | |||
<div class="col-sm-10"><input type="text" name="writer" id="writer" class="form-control" value="<?php echo $cfg_ml->M_UserName?>"></div> | |||
@@ -37,7 +37,14 @@ | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">标签</label> | |||
<div class="col-sm-10"><input type="text" name="tags" id="tags" class="form-control" value="<?php echo $row['keywords'];?>"></div> | |||
<div class="col-sm-10"><input type="text" name="tags" id="tags" class="form-control" value="<?php echo GetTags($row['id']);?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">缩略图</label> | |||
<div class="col-sm-10"> | |||
<img src="/static/web/img/thumbnail.jpg" class="thumbnail-md"> | |||
<button class="btn btn-success btn-sm">更换</button> | |||
</div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">作者</label> | |||
@@ -58,10 +65,7 @@ | |||
<label class="col-sm-2 col-form-label">信息摘要</label> | |||
<div class="col-sm-10"><textarea name="description" id="description" class="form-control"><?php echo $row["description"];?></textarea></div> | |||
</div> | |||
<?php | |||
//自定义字段 | |||
PrintAutoFieldsEdit($row['fieldset'],$addRow,'autofield'); | |||
?> | |||
<?php PrintAutoFieldsEdit($row['fieldset'],$addRow,'autofield');?> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">正文</label> | |||
<div class="col-sm-10"><?php GetEditor("body",$addRow['body'],400,"Member");?></div> | |||
@@ -14,7 +14,8 @@ | |||
<?php pasterTempletDiy('top.htm');?> | |||
<div class="container py-3"> | |||
<div class="row"> | |||
<div class="col-md-12"> | |||
<?php include(DEDEMEMBER."/templets/menu.htm");?> | |||
<div class="col-md-9"> | |||
<div class="pannel-main-container shadow-sm rounded"> | |||
<nav class="navbar navbar-expand-lg mb-3 p-0"> | |||
<ol class="breadcrumb mr-auto"> | |||
@@ -14,7 +14,8 @@ | |||
<?php pasterTempletDiy('top.htm');?> | |||
<div class="container py-3"> | |||
<div class="row"> | |||
<div class="col-md-12"> | |||
<?php include(DEDEMEMBER."/templets/menu.htm");?> | |||
<div class="col-md-9"> | |||
<div class="pannel-main-container shadow-sm rounded"> | |||
<nav class="navbar navbar-expand-lg mb-3 p-0"> | |||
<ol class="breadcrumb mr-auto"> | |||
@@ -18,7 +18,7 @@ | |||
morelinkobj.style.display = "block"; | |||
if (endNum > 12) endNum = 12; | |||
for (startNum; startNum <= endNum; startNum++) { | |||
upfield.innerHTML += "<p>软件地址" + startNum + ":<input type='text' name='softurl" + startNum + "' value='http://' class='form-control'></p>"; | |||
upfield.innerHTML += "<p>软件地址" + startNum + ":<input type='text' name='softurl" + startNum + "' value='http://' class='form-control d-inline-block w-50 mr-2'><span class='btn btn-success btn-sm'>选择</span></p>"; | |||
upfield.innerHTML += "<p>服务器名称:<input type='text' name='servermsg" + startNum + "' class='form-control'></p>"; | |||
} | |||
} | |||
@@ -52,6 +52,10 @@ | |||
<label class="col-sm-2 col-form-label">标签</label> | |||
<div class="col-sm-10"><input type="text" name="tags" id="tags" class="form-control"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">缩略图</label> | |||
<div class="col-sm-10"><input type="file" name="upfile1" class="w-100"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">作者</label> | |||
<div class="col-sm-10"><input type="text" name="writer" id="writer" class="form-control" value="<?php echo $cfg_ml->M_UserName?>"></div> | |||
@@ -114,7 +118,7 @@ | |||
<div class="form-row"> | |||
<div class="form-group col-md-6"> | |||
<label for="os">运行环境</label> | |||
<input type="text" id="os" name="os" value="Win2003,WinXP,Win2000,Win9X" maxlength="100" class="form-control"> | |||
<input type="text" id="os" name="os" value="Win2003,WinXP,Win2000,Win9X" class="form-control"> | |||
</div> | |||
<div class="form-group col-md-6"> | |||
<label for="softrank">软件等级</label> | |||
@@ -130,18 +134,18 @@ | |||
<div class="form-row"> | |||
<div class="form-group col-md-6"> | |||
<label for="officialDemo">官方网址</label> | |||
<input type="text" name="officialDemo" id="officialDemo" maxlength="100" class="form-control"> | |||
<input type="text" name="officialDemo" id="officialDemo" class="form-control"> | |||
</div> | |||
<div class="form-group col-md-6"> | |||
<label for="officialUrl">程序演示</label> | |||
<input type="text" name="officialUrl" id="officialUrl" value="http://" maxlength="100" class="form-control"> | |||
<input type="text" name="officialUrl" id="officialUrl" value="http://" class="form-control"> | |||
</div> | |||
</div> | |||
<div class="form-row"> | |||
<div class="form-group col-md-6"> | |||
<label for="softsize">软件大小</label> | |||
<div class="input-group "> | |||
<input type="text" name="softsize" id="softsize" maxlength="100" class="form-control"> | |||
<input type="text" name="softsize" id="softsize" class="form-control"> | |||
<div class="input-group-append"> | |||
<select name="unit" id="unit" class="form-control"> | |||
<option value="MB" selected="selected">MB</option> | |||
@@ -153,7 +157,7 @@ | |||
</div> | |||
<div class="form-group col-md-6"> | |||
<label for="source">软件来源</label> | |||
<input type="text" name="source" id="source" maxlength="100" class="form-control"> | |||
<input type="text" name="source" id="source" class="form-control"> | |||
</div> | |||
</div> | |||
<?php PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']),'autofield');?> | |||
@@ -162,13 +166,12 @@ | |||
<div class="col-sm-10"><?php GetEditor("body","",400,"Member");?></div> | |||
</div> | |||
<div class="form-group"> | |||
<label>下载地址:</label> | |||
<input type="text" name="softurl1" id="softurl1" class="form-control"> | |||
服务器名称:<input type="text" name="servermsg1" id="servermsg1" class="form-control" value="下载"> | |||
<p>下载地址:<input type="text" name="softurl1" id="softurl1" class="form-control d-inline-block w-50 mr-2"><span class="btn btn-success btn-sm">选择</span></p> | |||
<p>服务器名称:<input type="text" name="servermsg1" id="servermsg1" class="form-control" value="下载"></p> | |||
</div> | |||
<div class="form-group"> | |||
<label>其它地址:</label> | |||
<input type="text" name="picnum" id="picnum" value="5" class="form-control d-inline-block w-25"> | |||
<input type="text" name="picnum" id="picnum" value="5" class="form-control d-inline-block w-25 mr-2"> | |||
<button type="button" name="kkkup" id="kkkup2" onclick="MakeUpload();" class="btn btn-success btn-sm">增加地址</button> | |||
<button type="button" name="Submit3" id="btsh3" onclick="ShowHideAddr();" class="btn btn-success btn-sm">隐藏地址</button>(最多为12个链接) | |||
</div> | |||
@@ -18,7 +18,7 @@ | |||
morelinkobj.style.display = "block"; | |||
if (endNum > 12) endNum = 12; | |||
for (startNum; startNum <= endNum; startNum++) { | |||
upfield.innerHTML += "<p>软件地址" + startNum + ":<input type='text' name='softurl" + startNum + "' value='http://' maxlength='100' class='form-control'></p>"; | |||
upfield.innerHTML += "<p>软件地址" + startNum + ":<input type='text' name='softurl" + startNum + "' value='http://' class='form-control d-inline-block w-50 mr-2'><span class='btn btn-success btn-sm'>选择</span>></p>"; | |||
upfield.innerHTML += "<p>服务器名称:<input type='text' name='servermsg" + startNum + "' class='form-control'></p>"; | |||
} | |||
} | |||
@@ -55,6 +55,13 @@ | |||
<label class="col-sm-2 col-form-label">标签</label> | |||
<div class="col-sm-10"><input type="text" name="tags" id="tags" class="form-control" value="<?php echo GetTags($row['id']);?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">缩略图</label> | |||
<div class="col-sm-10"> | |||
<img src="/static/web/img/thumbnail.jpg" class="thumbnail-md"> | |||
<button class="btn btn-success btn-sm">更换</button> | |||
</div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">作者</label> | |||
<div class="col-sm-10"><input type="text" name="writer" id="writer" class="form-control" value="<?php echo $cfg_ml->M_UserName?>"></div> | |||
@@ -74,9 +81,7 @@ | |||
<div class="form-group col-md-6"> | |||
<label for="filetype">文件类型</label> | |||
<select name="filetype" id="filetype" class="form-control"> | |||
<?php | |||
if ($addRow["filetype"]!="") echo "<option value=\"".$addRow["filetype"]."\" selected>".$addRow["filetype"]."</option>"; | |||
?> | |||
<?php if ($addRow["filetype"]!="") echo "<option value=\"".$addRow["filetype"]."\" selected>".$addRow["filetype"]."</option>";?> | |||
<option value=".exe">.exe</option> | |||
<option value=".zip">.zip</option> | |||
<option value=".rar">.rar</option> | |||
@@ -88,9 +93,7 @@ | |||
<div class="form-group col-md-6"> | |||
<label for="language">界面语言</label> | |||
<select name="language" id="language" class="form-control"> | |||
<?php | |||
if ($addRow["language"]!="") echo "<option value=\"".$addRow["language"]."\" selected>".$addRow["language"]."</option>"; | |||
?> | |||
<?php if ($addRow["language"]!="") echo "<option value=\"".$addRow["language"]."\" selected>".$addRow["language"]."</option>";?> | |||
<option value="简体中文">简体中文</option> | |||
<option value="英文软件">英文软件</option> | |||
<option value="繁体中文">繁体中文</option> | |||
@@ -102,9 +105,7 @@ | |||
<div class="form-group col-md-6"> | |||
<label for="softtype">软件类型</label> | |||
<select name="softtype" id="softtype" class="form-control"> | |||
<?php | |||
if ($addRow["softtype"]!="") echo "<option value=\"".$addRow["softtype"]."\" selected>".$addRow["softtype"]."</option>"; | |||
?> | |||
<?php if ($addRow["softtype"]!="") echo "<option value=\"".$addRow["softtype"]."\" selected>".$addRow["softtype"]."</option>";?> | |||
<option value="国产软件" selected="selected">国产软件</option> | |||
<option value="国外软件">国外软件</option> | |||
<option value="汉化补丁">汉化补丁</option> | |||
@@ -113,9 +114,7 @@ | |||
<div class="form-group col-md-6"> | |||
<label for="accredit">授权方式</label> | |||
<select name="accredit" id="accredit" class="form-control"> | |||
<?php | |||
if ($addRow["accredit"]!="") echo "<option value=\"".$addRow["accredit"]."\" selected>".$addRow["accredit"]."</option>"; | |||
?> | |||
<?php if ($addRow["accredit"]!="") echo "<option value=\"".$addRow["accredit"]."\" selected>".$addRow["accredit"]."</option>";?> | |||
<option value="共享软件">共享软件</option> | |||
<option value="免费软件">免费软件</option> | |||
<option value="开源软件">开源软件</option> | |||
@@ -128,14 +127,12 @@ | |||
<div class="form-row"> | |||
<div class="form-group col-md-6"> | |||
<label for="os">运行环境</label> | |||
<input type="text" id="os" name="os" value="<?php echo isset($addRow['os'])? $addRow['os'] : '';?>" maxlength="100" class='form-control'> | |||
<input type="text" id="os" name="os" value="<?php echo isset($addRow['os'])? $addRow['os'] : '';?>" class="form-control"> | |||
</div> | |||
<div class="form-group col-md-6"> | |||
<label for="softrank">软件等级</label> | |||
<select name="softrank" id="softrank" class="form-control"> | |||
<?php | |||
if ($addRow["softrank"]!="") echo "<option value=\"".$addRow["softrank"]."\" selected>".$addRow["softrank"]."星</option>"; | |||
?> | |||
<?php if ($addRow["softrank"]!="") echo "<option value=\"".$addRow["softrank"]."\" selected>".$addRow["softrank"]."星</option>";?> | |||
<option value="1">一星</option> | |||
<option value="2">二星</option> | |||
<option value="3">三星 </option> | |||
@@ -147,27 +144,24 @@ | |||
<div class="form-row"> | |||
<div class="form-group col-md-6"> | |||
<label for="officialDemo">官方网址</label> | |||
<input type="text" name="officialDemo" value="<?php echo isset($addRow['officialUrl'])? $addRow['officialUrl'] : '';?>" id="officialDemo" maxlength="100" class="form-control"> | |||
<input type="text" name="officialDemo" value="<?php echo isset($addRow['officialUrl'])? $addRow['officialUrl'] : '';?>" id="officialDemo" class="form-control"> | |||
</div> | |||
<div class="form-group col-md-6"> | |||
<label for="officialUrl">程序演示</label> | |||
<input type="text" value="<?php echo isset($addRow['officialDemo'])? $addRow['officialDemo'] : '';?>" name="officialUrl" id="officialUrl" value="http://" maxlength="100" class="form-control"> | |||
<input type="text" value="<?php echo isset($addRow['officialDemo'])? $addRow['officialDemo'] : '';?>" name="officialUrl" id="officialUrl" value="http://" class="form-control"> | |||
</div> | |||
</div> | |||
<div class="form-row"> | |||
<div class="form-group col-md-6"> | |||
<label for="softsize">软件大小</label> | |||
<div class="input-group "><input type="text" name="softsize" id="softsize" value="<?php echo isset($addRow['softsize'])? $addRow['softsize'] : '';?>" maxlength="100" class="form-control"></div> | |||
<div class="input-group "><input type="text" name="softsize" id="softsize" value="<?php echo isset($addRow['softsize'])? $addRow['softsize'] : '';?>" class="form-control"></div> | |||
</div> | |||
<div class="form-group col-md-6"> | |||
<label for="source">软件来源</label> | |||
<input type="text" name="source" id="source" value="<?php echo $row['source'] ?>" maxlength="100" class="form-control"> | |||
<input type="text" name="source" id="source" value="<?php echo $row['source'] ?>" class="form-control"> | |||
</div> | |||
</div> | |||
<?php | |||
//自定义字段 | |||
PrintAutoFieldsEdit(stripslashes($cInfos['fieldset']),$addRow,'autofield'); | |||
?> | |||
<?php PrintAutoFieldsEdit(stripslashes($cInfos['fieldset']),$addRow,'autofield');?> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">正文</label> | |||
<div class="col-sm-10"> | |||
@@ -178,9 +172,8 @@ | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label>下载地址:</label> | |||
<input type="text" name="softurl1" id="softurl1" class="form-control"> | |||
服务器名称:<input type="text" name="servermsg1" id="servermsg1" class="form-control" value="下载"> | |||
<p>下载地址:<input type="text" name="softurl1" id="softurl1" class="form-control d-inline-block w-50 mr-2"><span class="btn btn-success btn-sm">选择</span></p> | |||
<p>服务器名称:<input type="text" name="servermsg1" id="servermsg1" class="form-control" value="下载"></p> | |||
</div> | |||
<div class="form-group"> | |||
<label>其它地址:</label> | |||