Browse Source

优化滚动条,优化后台让更加简单

develop
叙述、别离 5 months ago
parent
commit
61d9a35f7f
100 changed files with 9415 additions and 9220 deletions
  1. +24
    -22
      src/admin/templets/action_search.htm
  2. +110
    -108
      src/admin/templets/ad_add.htm
  3. +80
    -78
      src/admin/templets/ad_edit.htm
  4. +55
    -53
      src/admin/templets/ad_main.htm
  5. +51
    -49
      src/admin/templets/adtype_main.htm
  6. +220
    -218
      src/admin/templets/album_add.htm
  7. +256
    -254
      src/admin/templets/album_edit.htm
  8. +196
    -194
      src/admin/templets/archives_add.htm
  9. +189
    -187
      src/admin/templets/archives_edit.htm
  10. +92
    -90
      src/admin/templets/archives_sg_add.htm
  11. +94
    -92
      src/admin/templets/archives_sg_edit.htm
  12. +197
    -195
      src/admin/templets/article_add.htm
  13. +63
    -61
      src/admin/templets/article_description_main.htm
  14. +192
    -190
      src/admin/templets/article_edit.htm
  15. +60
    -58
      src/admin/templets/article_keywords_main.htm
  16. +27
    -25
      src/admin/templets/article_keywords_select.htm
  17. +49
    -47
      src/admin/templets/article_result_same.htm
  18. +51
    -49
      src/admin/templets/article_test_same.htm
  19. +59
    -57
      src/admin/templets/cards_make.htm
  20. +55
    -54
      src/admin/templets/cards_manmage.htm
  21. +56
    -54
      src/admin/templets/cards_type.htm
  22. +269
    -267
      src/admin/templets/catalog_add.htm
  23. +176
    -174
      src/admin/templets/catalog_add_quick.htm
  24. +257
    -255
      src/admin/templets/catalog_edit.htm
  25. +37
    -35
      src/admin/templets/catalog_main.htm
  26. +48
    -46
      src/admin/templets/content_att.htm
  27. +70
    -68
      src/admin/templets/content_batch_up.htm
  28. +105
    -103
      src/admin/templets/content_i_list.htm
  29. +103
    -101
      src/admin/templets/content_list.htm
  30. +78
    -76
      src/admin/templets/content_s_list.htm
  31. +59
    -57
      src/admin/templets/content_select_list.htm
  32. +89
    -87
      src/admin/templets/content_sg_list.htm
  33. +60
    -58
      src/admin/templets/diy_add.htm
  34. +121
    -119
      src/admin/templets/diy_edit.htm
  35. +40
    -38
      src/admin/templets/diy_edit_content.htm
  36. +80
    -78
      src/admin/templets/diy_field_add.htm
  37. +93
    -91
      src/admin/templets/diy_field_edit.htm
  38. +74
    -72
      src/admin/templets/diy_list.htm
  39. +40
    -38
      src/admin/templets/diy_main.htm
  40. +31
    -29
      src/admin/templets/diy_post.htm
  41. +49
    -47
      src/admin/templets/erradd.htm
  42. +56
    -54
      src/admin/templets/feedback_edit.htm
  43. +70
    -68
      src/admin/templets/feedback_main.htm
  44. +38
    -36
      src/admin/templets/file_edit.htm
  45. +259
    -257
      src/admin/templets/file_manage_main.htm
  46. +36
    -34
      src/admin/templets/file_upload.htm
  47. +153
    -151
      src/admin/templets/freelist_add.htm
  48. +169
    -167
      src/admin/templets/freelist_edit.htm
  49. +21
    -19
      src/admin/templets/freelist_main.htm
  50. +75
    -73
      src/admin/templets/friendlink_add.htm
  51. +77
    -75
      src/admin/templets/friendlink_edit.htm
  52. +76
    -74
      src/admin/templets/friendlink_main.htm
  53. +51
    -49
      src/admin/templets/friendlink_type.htm
  54. +2
    -2
      src/admin/templets/index.htm
  55. +147
    -145
      src/admin/templets/index_body.htm
  56. +65
    -63
      src/admin/templets/log_list.htm
  57. +2
    -2
      src/admin/templets/login.htm
  58. +42
    -40
      src/admin/templets/makehtml_all.htm
  59. +51
    -49
      src/admin/templets/makehtml_archives.htm
  60. +37
    -35
      src/admin/templets/makehtml_freelist.htm
  61. +95
    -93
      src/admin/templets/makehtml_homepage.htm
  62. +50
    -48
      src/admin/templets/makehtml_list.htm
  63. +27
    -25
      src/admin/templets/makehtml_spec.htm
  64. +52
    -50
      src/admin/templets/makehtml_tag_list.htm
  65. +66
    -64
      src/admin/templets/media_add.htm
  66. +74
    -72
      src/admin/templets/media_edit.htm
  67. +70
    -68
      src/admin/templets/media_main.htm
  68. +156
    -154
      src/admin/templets/member_edit.htm
  69. +94
    -92
      src/admin/templets/member_main.htm
  70. +61
    -59
      src/admin/templets/member_operations.htm
  71. +52
    -50
      src/admin/templets/member_pm.htm
  72. +47
    -45
      src/admin/templets/member_pmall.htm
  73. +51
    -49
      src/admin/templets/member_pmone.htm
  74. +62
    -60
      src/admin/templets/member_rank.htm
  75. +61
    -59
      src/admin/templets/member_scores.htm
  76. +83
    -81
      src/admin/templets/member_toadmin.htm
  77. +92
    -90
      src/admin/templets/member_type.htm
  78. +130
    -128
      src/admin/templets/module_edit.htm
  79. +70
    -68
      src/admin/templets/module_main.htm
  80. +120
    -118
      src/admin/templets/module_make.htm
  81. +150
    -148
      src/admin/templets/mychannel_add.htm
  82. +230
    -228
      src/admin/templets/mychannel_edit.htm
  83. +121
    -119
      src/admin/templets/mychannel_field_add.htm
  84. +132
    -130
      src/admin/templets/mychannel_field_edit.htm
  85. +49
    -47
      src/admin/templets/mychannel_main.htm
  86. +56
    -54
      src/admin/templets/mychannel_modifysearch.htm
  87. +67
    -65
      src/admin/templets/mytag_add.htm
  88. +67
    -65
      src/admin/templets/mytag_edit.htm
  89. +44
    -42
      src/admin/templets/mytag_main.htm
  90. +132
    -130
      src/admin/templets/mytag_tag_guide.htm
  91. +42
    -40
      src/admin/templets/plus_edit.htm
  92. +34
    -32
      src/admin/templets/plus_main.htm
  93. +51
    -49
      src/admin/templets/recycling.htm
  94. +12
    -10
      src/admin/templets/search_keywords_main.htm
  95. +321
    -319
      src/admin/templets/soft_add.htm
  96. +106
    -104
      src/admin/templets/soft_config.htm
  97. +281
    -279
      src/admin/templets/soft_edit.htm
  98. +205
    -203
      src/admin/templets/spec_add.htm
  99. +265
    -263
      src/admin/templets/spec_edit.htm
  100. +55
    -53
      src/admin/templets/statistics_list.htm

+ 24
- 22
src/admin/templets/action_search.htm View File

@@ -9,28 +9,30 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active"><?php echo $keyword;?>搜索结果</li>
</ol>
<div class="card shadow-sm">
<div class="card-header"><?php echo $keyword;?>搜索结果</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<?php foreach ($asresult as $row) {?>
<tr>
<td><?php echo $row['title'] ?></td>
</tr>
<?php foreach ($row['soniterm'] as $rows) {?>
<tr>
<td><a href="<?php echo $rows['linkurl'] ?>" target="main"><?php echo $rows['title'] ?></a></td>
</tr>
<?php }?>
<?php }?>
</tbody>
</table>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active"><?php echo $keyword;?>搜索结果</li>
</ol>
<div class="card shadow-sm">
<div class="card-header"><?php echo $keyword;?>搜索结果</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<?php foreach ($asresult as $row) {?>
<tr>
<td><?php echo $row['title'] ?></td>
</tr>
<?php foreach ($row['soniterm'] as $rows) {?>
<tr>
<td><a href="<?php echo $rows['linkurl'] ?>" target="main"><?php echo $rows['title'] ?></a></td>
</tr>
<?php }?>
<?php }?>
</tbody>
</table>
</div>
</div>
</div>
</div>


+ 110
- 108
src/admin/templets/ad_add.htm View File

@@ -13,114 +13,116 @@
<script src="/static/web/js/daterangepicker.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="ad_main.php">广告管理</a></li>
<li class="breadcrumb-item active">添加广告</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">添加广告</div>
<div class="card-body">
<div class="alert alert-info">标签{dede:myad name='广告标记'/}调用</div>
<form name="form1" action="ad_add.php" method="post">
<input type="hidden" name="normbody[style]" value="code" id="adstyle">
<input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">广告名称</td>
<td><input type="text" name="adname" id="adname" class="admin-input-lg" required></td>
</tr>
<tr>
<td>广告标记</td>
<td><input type="text" name="tagname" id="tagname" class="admin-input-lg" required>(使用英文或数字表示标识)</td>
</tr>
<tr>
<td>广告分类</td>
<td>
<select name="clsid" id="clsid" class="admin-input-sm">
<option value="0">默认分类</option>
<?php echo $option;?>
</select>
</td>
</tr>
<tr>
<td>投放范围</td>
<td>
<?php
$tl = new TypeLink(0);
$typeOptions = $tl->GetOptionArray(0,0,0);
echo "<select name='typeid' class='admin-input-sm'>";
echo "<option value='0' selected>没有同名标记所有栏目</option>";
echo $typeOptions;
echo "</select>";
?>
<span>(栏目找不到指定广告标记,则自动搜索父栏目)</span>
</td>
</tr>
<tr>
<td>时间限制</td>
<td>
<label><input type="radio" name="timeset" value="0" checked> 不限时间</label>
<label><input type="radio" name="timeset" value="1"> 限制时间</label>
</td>
</tr>
<tr>
<td>投放时间</td>
<td>
<label>从:<input type="text" name="starttime" id="starttime" value="<?php echo $startDay?>" class="datepicker admin-input-sm"></label>
<label>到:<input type="text" name="endtime" id="endtime" value="<?php echo $endDay?>" class="datepicker admin-input-sm"></label>
</td>
</tr>
<tr>
<td>广告内容</td>
<td>
<ul id="adTab" class="adtab">
<li id="t_code" class="active">代码</li>
<li id="t_txt">文字</li>
<li id="t_img">图片</li>
<li id="t_flash">Flash</li>
</ul>
<div id="advert"></div>
</td>
</tr>
<tr>
<td>过期内容</td>
<td><textarea name="expbody" id="expbody" class="admin-textarea-xl"></textarea></td>
</tr>
<tr>
<td colspan="3" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div id="formtxt" style="display:none">
<div id="code" class="content">
<textarea name="normbody[htmlcode]" class="admin-textarea-xl" placeholder="请输入广告,支持网页代码"></textarea>
</div>
<div id="txt" class="content">
<p><input type="text" name="normbody[title]" class="admin-input-lg" placeholder="请输入文字标题"></p>
<p><input type="text" name="normbody[link]" class="admin-input-lg" placeholder="请输入文字链接"></p>
<p><input type="text" name="normbody[color]" class="admin-input-lg" placeholder="请输入文字颜色"></p>
<input type="text" name="normbody[size]" class="admin-input-lg" placeholder="请输入文字大小">
</div>
<div id="img" class="content">
<p><input type="text" name="normbody[url]" class="admin-input-lg" placeholder="请输入图片地址"></p>
<p><input type="text" name="normbody[link]" class="admin-input-lg" placeholder="请输入图片链接"></p>
<p><input type="text" name="normbody[width]" class="admin-input-lg" placeholder="请输入图片宽度"></p>
<p><input type="text" name="normbody[height]" class="admin-input-lg" placeholder="请输入图片高度"></p>
<input type="text" name="normbody[descrip]" class="admin-input-lg" placeholder="请输入图片描述">
</div>
<div id="flash" class="content">
<p><input type="text" name="normbody[link]" class="admin-input-lg" placeholder="请输入flash链接"></p>
<p><input type="text" name="normbody[width]" class="admin-input-lg" placeholder="请输入flash宽度"></p>
<input type="text" name="normbody[height]" class="admin-input-lg" placeholder="请输入flash高度">
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="ad_main.php">广告管理</a></li>
<li class="breadcrumb-item active">添加广告</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">添加广告</div>
<div class="card-body">
<div class="alert alert-info">标签{dede:myad name='广告标记'/}调用</div>
<form name="form1" action="ad_add.php" method="post">
<input type="hidden" name="normbody[style]" value="code" id="adstyle">
<input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">广告名称</td>
<td><input type="text" name="adname" id="adname" class="admin-input-lg" required></td>
</tr>
<tr>
<td>广告标记</td>
<td><input type="text" name="tagname" id="tagname" class="admin-input-lg" required>(使用英文或数字表示标识)</td>
</tr>
<tr>
<td>广告分类</td>
<td>
<select name="clsid" id="clsid" class="admin-input-sm">
<option value="0">默认分类</option>
<?php echo $option;?>
</select>
</td>
</tr>
<tr>
<td>投放范围</td>
<td>
<?php
$tl = new TypeLink(0);
$typeOptions = $tl->GetOptionArray(0,0,0);
echo "<select name='typeid' class='admin-input-sm'>";
echo "<option value='0' selected>没有同名标记所有栏目</option>";
echo $typeOptions;
echo "</select>";
?>
<span>(栏目找不到指定广告标记,则自动搜索父栏目)</span>
</td>
</tr>
<tr>
<td>时间限制</td>
<td>
<label><input type="radio" name="timeset" value="0" checked> 不限时间</label>
<label><input type="radio" name="timeset" value="1"> 限制时间</label>
</td>
</tr>
<tr>
<td>投放时间</td>
<td>
<label>从:<input type="text" name="starttime" id="starttime" value="<?php echo $startDay?>" class="datepicker admin-input-sm"></label>
<label>到:<input type="text" name="endtime" id="endtime" value="<?php echo $endDay?>" class="datepicker admin-input-sm"></label>
</td>
</tr>
<tr>
<td>广告内容</td>
<td>
<ul id="adTab" class="adtab">
<li id="t_code" class="active">代码</li>
<li id="t_txt">文字</li>
<li id="t_img">图片</li>
<li id="t_flash">Flash</li>
</ul>
<div id="advert"></div>
</td>
</tr>
<tr>
<td>过期内容</td>
<td><textarea name="expbody" id="expbody" class="admin-textarea-xl"></textarea></td>
</tr>
<tr>
<td colspan="3" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div id="formtxt" style="display:none">
<div id="code" class="content">
<textarea name="normbody[htmlcode]" class="admin-textarea-xl" placeholder="请输入广告,支持网页代码"></textarea>
</div>
<div id="txt" class="content">
<p><input type="text" name="normbody[title]" class="admin-input-lg" placeholder="请输入文字标题"></p>
<p><input type="text" name="normbody[link]" class="admin-input-lg" placeholder="请输入文字链接"></p>
<p><input type="text" name="normbody[color]" class="admin-input-lg" placeholder="请输入文字颜色"></p>
<input type="text" name="normbody[size]" class="admin-input-lg" placeholder="请输入文字大小">
</div>
<div id="img" class="content">
<p><input type="text" name="normbody[url]" class="admin-input-lg" placeholder="请输入图片地址"></p>
<p><input type="text" name="normbody[link]" class="admin-input-lg" placeholder="请输入图片链接"></p>
<p><input type="text" name="normbody[width]" class="admin-input-lg" placeholder="请输入图片宽度"></p>
<p><input type="text" name="normbody[height]" class="admin-input-lg" placeholder="请输入图片高度"></p>
<input type="text" name="normbody[descrip]" class="admin-input-lg" placeholder="请输入图片描述">
</div>
<div id="flash" class="content">
<p><input type="text" name="normbody[link]" class="admin-input-lg" placeholder="请输入flash链接"></p>
<p><input type="text" name="normbody[width]" class="admin-input-lg" placeholder="请输入flash宽度"></p>
<input type="text" name="normbody[height]" class="admin-input-lg" placeholder="请输入flash高度">
</div>
</div>
</div>
</div>


+ 80
- 78
src/admin/templets/ad_edit.htm View File

@@ -13,84 +13,86 @@
<script src="/static/web/js/daterangepicker.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="ad_main.php">广告管理</a></li>
<li class="breadcrumb-item active">修改广告</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改广告</div>
<div class="card-body">
<form name="form1" action="ad_edit.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="aid" value="<?php echo $aid?>">
<input type="hidden" name="dopost" value="saveedit">
<input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">广告名称</td>
<td><input type="text" name="adname" id="adname" value="<?php echo $row['adname']?>" class="admin-input-lg" required></td>
</tr>
<tr>
<td>广告标记</td>
<td><?php echo $row['tagname'];?></td>
</tr>
<tr>
<td>广告分类</td>
<td>
<select name="clsid" id="clsid" class="admin-input-sm">
<option value="0">默认分类</option>
<?php echo $option;?>
</select>
</td>
</tr>
<tr>
<td>投放范围</td>
<td>
<?php
$tl = new TypeLink(0);
$typeOptions = $tl->GetOptionArray($row['typeid'],0,0);
echo "<select name='typeid' class='admin-input-sm'>";
echo "<option value='0' selected>没有同名标记所有栏目</option>";
echo $typeOptions;
echo "</select>";
?>
<span>(栏目找不到指定广告标记,则自动搜索父栏目)</span>
</td>
</tr>
<tr>
<td>时间限制</td>
<td>
<label><input type="radio" name="timeset" value="0" <?php if ($row['timeset']==0) echo 'checked';?>> 不限时间</label>
<label><input type="radio" name="timeset" value="1" <?php if ($row['timeset']==1) echo 'checked';?>> 限制时间</label>
</td>
</tr>
<tr>
<td>投放时间</td>
<td>
<label>从:<input type="text" name="starttime" id="starttime" value="<?php echo GetDateTimeMk($row['starttime'])?>" class="datepicker admin-input-sm"></label>
<label>到:<input type="text" name="endtime" id="endtime" value="<?php echo GetDateTimeMk($row['endtime'])?>" class="datepicker admin-input-sm"></label>
</td>
</tr>
<tr>
<td>广告内容</td>
<td><textarea name="normbody" id="normbody" class="admin-textarea-xl"><?php echo dede_htmlspecialchars(stripslashes($row['normbody']))?></textarea></td>
</tr>
<tr>
<td>过期内容</td>
<td><textarea name="expbody" id="expbody" class="admin-textarea-xl"><?php echo dede_htmlspecialchars($row['expbody'])?></textarea></td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="ad_main.php">广告管理</a></li>
<li class="breadcrumb-item active">修改广告</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改广告</div>
<div class="card-body">
<form name="form1" action="ad_edit.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="aid" value="<?php echo $aid?>">
<input type="hidden" name="dopost" value="saveedit">
<input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">广告名称</td>
<td><input type="text" name="adname" id="adname" value="<?php echo $row['adname']?>" class="admin-input-lg" required></td>
</tr>
<tr>
<td>广告标记</td>
<td><?php echo $row['tagname'];?></td>
</tr>
<tr>
<td>广告分类</td>
<td>
<select name="clsid" id="clsid" class="admin-input-sm">
<option value="0">默认分类</option>
<?php echo $option;?>
</select>
</td>
</tr>
<tr>
<td>投放范围</td>
<td>
<?php
$tl = new TypeLink(0);
$typeOptions = $tl->GetOptionArray($row['typeid'],0,0);
echo "<select name='typeid' class='admin-input-sm'>";
echo "<option value='0' selected>没有同名标记所有栏目</option>";
echo $typeOptions;
echo "</select>";
?>
<span>(栏目找不到指定广告标记,则自动搜索父栏目)</span>
</td>
</tr>
<tr>
<td>时间限制</td>
<td>
<label><input type="radio" name="timeset" value="0" <?php if ($row['timeset']==0) echo 'checked';?>> 不限时间</label>
<label><input type="radio" name="timeset" value="1" <?php if ($row['timeset']==1) echo 'checked';?>> 限制时间</label>
</td>
</tr>
<tr>
<td>投放时间</td>
<td>
<label>从:<input type="text" name="starttime" id="starttime" value="<?php echo GetDateTimeMk($row['starttime'])?>" class="datepicker admin-input-sm"></label>
<label>到:<input type="text" name="endtime" id="endtime" value="<?php echo GetDateTimeMk($row['endtime'])?>" class="datepicker admin-input-sm"></label>
</td>
</tr>
<tr>
<td>广告内容</td>
<td><textarea name="normbody" id="normbody" class="admin-textarea-xl"><?php echo dede_htmlspecialchars(stripslashes($row['normbody']))?></textarea></td>
</tr>
<tr>
<td>过期内容</td>
<td><textarea name="expbody" id="expbody" class="admin-textarea-xl"><?php echo dede_htmlspecialchars($row['expbody'])?></textarea></td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>


+ 55
- 53
src/admin/templets/ad_main.htm View File

@@ -10,61 +10,63 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">广告管理</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form name="form3" action="ad_main.php" method="get">
<input type="hidden" name="dopost" value="listArchives">
<input type="text" name="keyword" placeholder="请输入关键词" class="admin-input-lg mr-2">
<select name="clsid" id="clsid" class="admin-input-sm">
<option value="0">默认分类</option>
<?php echo $option;?>
</select>
<button type="submit"class="btn btn-success btn-sm">搜索</button>
<a href="ad_add.php" class="btn btn-success btn-sm">添加广告</a>
<a href="adtype_main.php" class="btn btn-success btn-sm">广告分类管理</a>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">广告管理</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form name="form3" action="ad_main.php" method="get">
<input type="hidden" name="dopost" value="listArchives">
<input type="text" name="keyword" placeholder="请输入关键词" class="admin-input-lg mr-2">
<select name="clsid" id="clsid" class="admin-input-sm">
<option value="0">默认分类</option>
<?php echo $option;?>
</select>
<button type="submit"class="btn btn-success btn-sm">搜索</button>
<a href="ad_add.php" class="btn btn-success btn-sm">添加广告</a>
<a href="adtype_main.php" class="btn btn-success btn-sm">广告分类管理</a>
</form>
</div>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">广告管理</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">id</td>
<td scope="col">分类</td>
<td scope="col">广告名称</td>
<td scope="col">投放范围</td>
<td scope="col">是否限时</td>
<td scope="col">结束时间</td>
<td scope="col">操作</td>
</tr>
<thead>
<tbody>
{dede:datalist}
<tr>
<td>{dede:field.aid/}</td>
<td>{dede:field.clsname function='TestType(@me,1)'/}</td>
<td>{dede:field.adname/}</td>
<td>{dede:field.typename function='TestType(@me)'/}</td>
<td>{dede:field.timeset function='TimeSetValue(@me)'/}</td>
<td>{dede:field.endtime function='GetDateMk(@me)'/}</td>
<td>
<a href="ad_edit.php?aid={dede:field.aid/}&dopost=edit" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="修改"></i></a>
<a href="ad_edit.php?aid={dede:field.aid/}&dopost=gettag" class="btn btn-light btn-sm"><i class="fa fa-code" title="代码"></i></a>
<a href="ad_edit.php?aid={dede:field.aid/}&dopost=delete" class="btn btn-danger btn-sm"><i class="fa fa-trash" title="删除"></i></a>
</td>
</tr>
{/dede:datalist}
</tbody>
</table>
<div class="card shadow-sm">
<div class="card-header">广告管理</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">id</td>
<td scope="col">分类</td>
<td scope="col">广告名称</td>
<td scope="col">投放范围</td>
<td scope="col">是否限时</td>
<td scope="col">结束时间</td>
<td scope="col">操作</td>
</tr>
<thead>
<tbody>
{dede:datalist}
<tr>
<td>{dede:field.aid/}</td>
<td>{dede:field.clsname function='TestType(@me,1)'/}</td>
<td>{dede:field.adname/}</td>
<td>{dede:field.typename function='TestType(@me)'/}</td>
<td>{dede:field.timeset function='TimeSetValue(@me)'/}</td>
<td>{dede:field.endtime function='GetDateMk(@me)'/}</td>
<td>
<a href="ad_edit.php?aid={dede:field.aid/}&dopost=edit" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="修改"></i></a>
<a href="ad_edit.php?aid={dede:field.aid/}&dopost=gettag" class="btn btn-light btn-sm"><i class="fa fa-code" title="代码"></i></a>
<a href="ad_edit.php?aid={dede:field.aid/}&dopost=delete" class="btn btn-danger btn-sm"><i class="fa fa-trash" title="删除"></i></a>
</td>
</tr>
{/dede:datalist}
</tbody>
</table>
</div>
{dede:pagelist listsize='6'/}
</div>
{dede:pagelist listsize='6'/}
</div>
</div>
</body>

+ 51
- 49
src/admin/templets/adtype_main.htm View File

@@ -9,55 +9,57 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="ad_main.php">广告管理</a></li>
<li class="breadcrumb-item active">广告分类管理</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">广告分类管理</div>
<div class="card-body">
<form name="form1" action="adtype_main.php" method="post">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<thead>
<tr>
<td scope="col">id</td>
<td scope="col">广告分类</td>
<td scope="col">状态</td>
</tr>
</thead>
<tbody>
<?php
$dsql->SetQuery("SELECT * FROM `#@__myadtype`");
$dsql->Execute();
$k=0;
while($row = $dsql->GetObject())
{
$k++;
?>
<tr>
<td><input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->id?>"><?php echo $row->id;?></td>
<td><input type="text" name="pname_<?php echo $k?>" value="<?php echo $row->typename?>" id="pname_<?php echo $k?>" class="w-100"></td>
<td><label><input type="checkbox" name="check_<?php echo $k?>" id="check_<?php echo $k?>" value="1" checked> 保留</label></td>
</tr>
<?php }?>
<tr>
<td><input type="hidden" name="idend" value="<?php echo $k?>"></td>
<td><input type="text" name="pname_new" id="pname_new" class="w-100"></td>
<td><label><input type="checkbox" name="check_new" id="check_new" value="1" checked> 新增</label></td>
</tr>
<tr>
<td colspan="3" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="ad_main.php">广告管理</a></li>
<li class="breadcrumb-item active">广告分类管理</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">广告分类管理</div>
<div class="card-body">
<form name="form1" action="adtype_main.php" method="post">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<thead>
<tr>
<td scope="col">id</td>
<td scope="col">广告分类</td>
<td scope="col">状态</td>
</tr>
</thead>
<tbody>
<?php
$dsql->SetQuery("SELECT * FROM `#@__myadtype`");
$dsql->Execute();
$k=0;
while($row = $dsql->GetObject())
{
$k++;
?>
<tr>
<td><input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->id?>"><?php echo $row->id;?></td>
<td><input type="text" name="pname_<?php echo $k?>" value="<?php echo $row->typename?>" id="pname_<?php echo $k?>" class="w-100"></td>
<td><label><input type="checkbox" name="check_<?php echo $k?>" id="check_<?php echo $k?>" value="1" checked> 保留</label></td>
</tr>
<?php }?>
<tr>
<td><input type="hidden" name="idend" value="<?php echo $k?>"></td>
<td><input type="text" name="pname_new" id="pname_new" class="w-100"></td>
<td><label><input type="checkbox" name="check_new" id="check_new" value="1" checked> 新增</label></td>
</tr>
<tr>
<td colspan="3" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 220
- 218
src/admin/templets/album_add.htm View File

@@ -20,229 +20,231 @@
<script src="/static/web/js/admin.album.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">图片列表</a></li>
<li class="breadcrumb-item active">发布图片文档</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">发布图片文档</div>
<div class="card-body">
<form name="form1" action="album_add.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmitAlb();">
<input type="hidden" name="channelid" value="<?php echo $channelid?>">
<input type="hidden" name="cid" value="<?php echo $cid;?>">
<input type="hidden" name="imagebody">
<input type="hidden" name="dopost" value="save">
<input type="hidden" name="maxwidth" id="maxwidth" value="<?php echo $cfg_album_width;?>">
<input type="hidden" id="albums" name="albums">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="160">图片标题</td>
<td width="650"><input type="text" name="title" id="title" class="admin-input-lg" required></td>
<td width="160">简略标题</td>
<td><input type="text" name="shorttitle" id="shorttitle" class="admin-input-sm"></td>
</tr>
<tr>
<td>自定义属性</td>
<td colspan="3">
<?php
$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
if ($trow->att=='j')
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'> {$trow->attname}[{$trow->att}]</label> ";
else
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> ";
}
?>
</td>
</tr>
<tr id="redirecturltr" style="display:none">
<td>跳转网址</td>
<td colspan="3"><input type="text" name="redirecturl" id="redirecturl" class="admin-input-lg"></td>
</tr>
<tr>
<td>标签</td>
<td><input type="text" name="tags" id="tags" onChange="$Obj('keywords').value=this.value;" class="admin-input-lg">(英文逗号隔开,如:DedeBIZ,得德)</td>
<td>权重</td>
<td><input type="text" name="weight" id="weight" value="<?php echo $maxWright['cc'];?>" class="admin-input-sm">(越小越靠前)</td>
</tr>
<tr id="pictable">
<td>缩略图</td>
<td colspan="3">
<input type="text" name="picname" id="picname" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-sm btn-success delete">清空</button>
<img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md ml-3">
</td>
</tr>
<tr>
<td>来源</td>
<td>
<input type="text" name="source" id="source" class="admin-input-sm">
<button type="button" name="selsource" id="selsource" class="btn btn-success btn-sm">选择</button>
</td>
<td>编辑</td>
<td>
<input type="text" name="writer" id="writer" class="admin-input-sm">
<button type="button" name="selwriter" id="selwriter" class="btn btn-success btn-sm">选择</button>
</td>
</tr>
<tr>
<td>发布栏目</td>
<td>
<span id="typeidct">
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">图片列表</a></li>
<li class="breadcrumb-item active">发布图片文档</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">发布图片文档</div>
<div class="card-body">
<form name="form1" action="album_add.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmitAlb();">
<input type="hidden" name="channelid" value="<?php echo $channelid?>">
<input type="hidden" name="cid" value="<?php echo $cid;?>">
<input type="hidden" name="imagebody">
<input type="hidden" name="dopost" value="save">
<input type="hidden" name="maxwidth" id="maxwidth" value="<?php echo $cfg_album_width;?>">
<input type="hidden" id="albums" name="albums">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="160">图片标题</td>
<td width="650"><input type="text" name="title" id="title" class="admin-input-lg" required></td>
<td width="160">简略标题</td>
<td><input type="text" name="shorttitle" id="shorttitle" class="admin-input-sm"></td>
</tr>
<tr>
<td>自定义属性</td>
<td colspan="3">
<?php
$typeOptions = GetOptionList($cid,$cuserLogin->getUserChannel(),$channelid);
echo "<select name='typeid' id='typeid' class='admin-input-sm'>";
echo "<option value='0'>请选择文档栏目</option>";
echo $typeOptions;
echo "</select>";
?>
</span>
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid');" class="btn btn-success btn-sm">选择</a>
<?php if ($cfg_need_typeid2=='Y') {echo "<a href='javascript:AddTypeid2();' class='btn btn-success btn-sm'>副栏目</a>";}?>
</td>
<td>金币</td>
<td><input type="text" name="money" id="money" value="0" class="admin-input-sm"></td>
</tr>
<tr id="typeid2tr" style="display:none">
<td>副栏目</td>
<td colspan="3">
<span id="typeid2ct"></span>
<input type="text" name="typeid2" id="typeid2" class="admin-input-sm">
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid2');" class="btn btn-success btn-sm">选择</a>
</td>
</tr>
<tr>
<td>关键词</td>
<td colspan="3">
<input type="text" name="keywords" id="keywords" class="admin-input-lg">
<label><input type="checkbox" name="autokey" onclick="ShowHide('keywords');" id="autokey" value="1" <?php if ($cfg_arc_autokeyword=='Y') echo 'checked';?>> 自动获取</label>
<button type="button" onclick="SelectKeywords('form1.keywords');" class="btn btn-success btn-sm">选择</button>
</td>
</tr>
<tr>
<td>描述</td>
<td colspan="3"><textarea name="description" id="description" class="admin-textarea-sm"></textarea></td>
</tr>
<tr>
<td>附加选项</td>
<td colspan="3">
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo 'checked';?>> 下载远程图片和资源</label>
<label><input type="checkbox" name="dellink" id="dellink" value="1" <?php if ($cfg_arc_dellink=='Y') echo 'checked';?>> 删除非站内链接</label>
<a href="javascript:OpenMyWin('article_allowurl_edit.php');">[配置]</a>
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo 'checked';?>> 提取第一个图片为缩略图</label>
</td>
</tr>
<tr>
<td>表现方式</td>
<td colspan="3">
<label><input type="radio" name="pagestyle" id="pagestyle1" onclick="checkMuList();" value="1" <?php if ($cfg_album_style==1) echo 'checked';?>> <img src="/static/web/img/alb2.jpg" title="单页多图样式"></label>
<label><input type="radio" name="pagestyle" id="pagestyle2" onclick="checkMuList();" value="2" <?php if ($cfg_album_style==2) echo 'checked';?>> <img src="/static/web/img/alb1.jpg" title="幻灯片样式"></label>
<label><input type="radio" name="pagestyle" id="pagestyle3" onclick="checkMuList();" value="3" <?php if ($cfg_album_style==3) echo 'checked';?>> <img src="/static/web/img/alb3.jpg" title="多缩略图样式"></label>
</td>
</tr>
<tr id="cfgmulist" style="display:none">
<td>多列式参数</td>
<td colspan="3">
<label>行:<input type="text" name="row" id="row" value="<?php echo $cfg_album_row;?>" class="admin-input-sm"></label>
<label>列:<input type="text" name="col" id="col" value="<?php echo $cfg_album_col;?>" class="admin-input-sm"></label>
<label>缩略图宽度限制:<input type="text" name="ddmaxwidth" id="ddmaxwidth" value="<?php echo $cfg_album_ddwidth;?>" class="admin-input-sm"> 像素</label>
<span>(每页输出行x列张图片,实现需自行控制样式表)</span>
</td>
</tr>
<tr id="spagelist" style="display:none">
<td>每页图片数</td>
<td colspan="3"><input type="text" name="pagepicnum" id="pagpicnum" class="admin-input-sm" value="<?php echo $cfg_album_pagesize;?>">(单页多图显示需要设置此参数,这种模式下系统不会为每张图单独生成缩略图)</td>
</tr>
<tr>
<td>本地上传</td>
<td colspan="3"><span class="btn btn-success btn-sm opt-button">上传多图<input type="file" name="files[]" id="iptAlbumImages" multiple></span></td>
</tr>
<tr id="handfield">
<td colspan="4"><div id="gallery"></div></td>
</tr>
<?php PrintAutoFieldsAdd($cInfos['fieldset'],'autofield');?>
<tr>
<td colspan="4"><?php GetEditor('body','',350,'Diy');?></td>
</tr>
<tr>
<td>评论选项</td>
<td>
<label><input type="radio" name="notpost" value="0" <?php if ($cfg_feedback_forbid=='N') echo 'checked';?>> 允许评论</label>
<label><input type="radio" name="notpost" value="1" <?php if ($cfg_feedback_forbid=='Y') echo 'checked';?>> 禁止评论</label>
</td>
<td>发布选项</td>
<td>
<label><input type="radio" name="ishtml" value="1" checked> 静态浏览</label>
<label><input type="radio" name="ishtml" value="0"> 动态浏览</label>
</td>
</tr>
<tr>
<td>图片排序</td>
<td>
<select name="sortup" id="sortup" class="admin-input-sm">
<option value="0" selected>默认排序</option>
<option value="7">置顶一周</option>
<option value="30">置顶一个月</option>
<option value="90">置顶三个月</option>
<option value="180">置顶半年</option>
<option value="360">置顶一年</option>
</select>
</td>
<td>标题颜色</td>
<td>
<input type="text" name="color" id="color" class="admin-input-sm">
<button type="button" name="modcolor" id="modcolor" class="btn btn-success btn-sm" onclick="ShowColor(event,this)">选择</button>
</td>
</tr>
<tr>
<td>浏览权限</td>
<td>
<select name="arcrank" id="arcrank" class="admin-input-sm">
<?php
$urank = $cuserLogin->getUserRank();
$dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank' ORDER BY `rank` ASC");
$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
$dsql->Execute();
while($row = $dsql->GetObject())
while($trow = $dsql->GetObject())
{
$selected = $row->rank == 0 ? ' selected' : '';
echo "<option value='".$row->rank."'{$selected}>".$row->membername."</option>";
if ($trow->att=='j')
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'> {$trow->attname}[{$trow->att}]</label> ";
else
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> ";
}
?>
</select>
<span>(暂不支持静态)</span>
</td>
<td>文件名称</td>
<td><input type="text" name="filename" id="filename" class="admin-input-sm">(不包括文件扩展名)</td>
</tr>
<tr>
<td>发布时间</td>
<td>
<?php
$nowtime = GetDateTimeMk(time());
echo "<input type='text' name='pubdate' value='$nowtime' id='pubdate' class='datepicker admin-input-sm'>";
?>
</td>
<td>浏览次数</td>
<td><input type="text" name="click" value="<?php echo ($cfg_arc_click=='-1' ? mt_rand(1000, 6000):$cfg_arc_click);?>" class="admin-input-sm"></td>
</tr>
<tr>
<td align="center" colspan="4">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</td>
</tr>
<tr id="redirecturltr" style="display:none">
<td>跳转网址</td>
<td colspan="3"><input type="text" name="redirecturl" id="redirecturl" class="admin-input-lg"></td>
</tr>
<tr>
<td>标签</td>
<td><input type="text" name="tags" id="tags" onChange="$Obj('keywords').value=this.value;" class="admin-input-lg">(英文逗号隔开,如:DedeBIZ,得德)</td>
<td>权重</td>
<td><input type="text" name="weight" id="weight" value="<?php echo $maxWright['cc'];?>" class="admin-input-sm">(越小越靠前)</td>
</tr>
<tr id="pictable">
<td>缩略图</td>
<td colspan="3">
<input type="text" name="picname" id="picname" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-sm btn-success delete">清空</button>
<img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md ml-3">
</td>
</tr>
<tr>
<td>来源</td>
<td>
<input type="text" name="source" id="source" class="admin-input-sm">
<button type="button" name="selsource" id="selsource" class="btn btn-success btn-sm">选择</button>
</td>
<td>编辑</td>
<td>
<input type="text" name="writer" id="writer" class="admin-input-sm">
<button type="button" name="selwriter" id="selwriter" class="btn btn-success btn-sm">选择</button>
</td>
</tr>
<tr>
<td>发布栏目</td>
<td>
<span id="typeidct">
<?php
$typeOptions = GetOptionList($cid,$cuserLogin->getUserChannel(),$channelid);
echo "<select name='typeid' id='typeid' class='admin-input-sm'>";
echo "<option value='0'>请选择文档栏目</option>";
echo $typeOptions;
echo "</select>";
?>
</span>
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid');" class="btn btn-success btn-sm">选择</a>
<?php if ($cfg_need_typeid2=='Y') {echo "<a href='javascript:AddTypeid2();' class='btn btn-success btn-sm'>副栏目</a>";}?>
</td>
<td>金币</td>
<td><input type="text" name="money" id="money" value="0" class="admin-input-sm"></td>
</tr>
<tr id="typeid2tr" style="display:none">
<td>副栏目</td>
<td colspan="3">
<span id="typeid2ct"></span>
<input type="text" name="typeid2" id="typeid2" class="admin-input-sm">
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid2');" class="btn btn-success btn-sm">选择</a>
</td>
</tr>
<tr>
<td>关键词</td>
<td colspan="3">
<input type="text" name="keywords" id="keywords" class="admin-input-lg">
<label><input type="checkbox" name="autokey" onclick="ShowHide('keywords');" id="autokey" value="1" <?php if ($cfg_arc_autokeyword=='Y') echo 'checked';?>> 自动获取</label>
<button type="button" onclick="SelectKeywords('form1.keywords');" class="btn btn-success btn-sm">选择</button>
</td>
</tr>
<tr>
<td>描述</td>
<td colspan="3"><textarea name="description" id="description" class="admin-textarea-sm"></textarea></td>
</tr>
<tr>
<td>附加选项</td>
<td colspan="3">
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo 'checked';?>> 下载远程图片和资源</label>
<label><input type="checkbox" name="dellink" id="dellink" value="1" <?php if ($cfg_arc_dellink=='Y') echo 'checked';?>> 删除非站内链接</label>
<a href="javascript:OpenMyWin('article_allowurl_edit.php');">[配置]</a>
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo 'checked';?>> 提取第一个图片为缩略图</label>
</td>
</tr>
<tr>
<td>表现方式</td>
<td colspan="3">
<label><input type="radio" name="pagestyle" id="pagestyle1" onclick="checkMuList();" value="1" <?php if ($cfg_album_style==1) echo 'checked';?>> <img src="/static/web/img/alb2.jpg" title="单页多图样式"></label>
<label><input type="radio" name="pagestyle" id="pagestyle2" onclick="checkMuList();" value="2" <?php if ($cfg_album_style==2) echo 'checked';?>> <img src="/static/web/img/alb1.jpg" title="幻灯片样式"></label>
<label><input type="radio" name="pagestyle" id="pagestyle3" onclick="checkMuList();" value="3" <?php if ($cfg_album_style==3) echo 'checked';?>> <img src="/static/web/img/alb3.jpg" title="多缩略图样式"></label>
</td>
</tr>
<tr id="cfgmulist" style="display:none">
<td>多列式参数</td>
<td colspan="3">
<label>行:<input type="text" name="row" id="row" value="<?php echo $cfg_album_row;?>" class="admin-input-sm"></label>
<label>列:<input type="text" name="col" id="col" value="<?php echo $cfg_album_col;?>" class="admin-input-sm"></label>
<label>缩略图宽度限制:<input type="text" name="ddmaxwidth" id="ddmaxwidth" value="<?php echo $cfg_album_ddwidth;?>" class="admin-input-sm"> 像素</label>
<span>(每页输出行x列张图片,实现需自行控制样式表)</span>
</td>
</tr>
<tr id="spagelist" style="display:none">
<td>每页图片数</td>
<td colspan="3"><input type="text" name="pagepicnum" id="pagpicnum" class="admin-input-sm" value="<?php echo $cfg_album_pagesize;?>">(单页多图显示需要设置此参数,这种模式下系统不会为每张图单独生成缩略图)</td>
</tr>
<tr>
<td>本地上传</td>
<td colspan="3"><span class="btn btn-success btn-sm opt-button">上传多图<input type="file" name="files[]" id="iptAlbumImages" multiple></span></td>
</tr>
<tr id="handfield">
<td colspan="4"><div id="gallery"></div></td>
</tr>
<?php PrintAutoFieldsAdd($cInfos['fieldset'],'autofield');?>
<tr>
<td colspan="4"><?php GetEditor('body','',350,'Diy');?></td>
</tr>
<tr>
<td>评论选项</td>
<td>
<label><input type="radio" name="notpost" value="0" <?php if ($cfg_feedback_forbid=='N') echo 'checked';?>> 允许评论</label>
<label><input type="radio" name="notpost" value="1" <?php if ($cfg_feedback_forbid=='Y') echo 'checked';?>> 禁止评论</label>
</td>
<td>发布选项</td>
<td>
<label><input type="radio" name="ishtml" value="1" checked> 静态浏览</label>
<label><input type="radio" name="ishtml" value="0"> 动态浏览</label>
</td>
</tr>
<tr>
<td>图片排序</td>
<td>
<select name="sortup" id="sortup" class="admin-input-sm">
<option value="0" selected>默认排序</option>
<option value="7">置顶一周</option>
<option value="30">置顶一个月</option>
<option value="90">置顶三个月</option>
<option value="180">置顶半年</option>
<option value="360">置顶一年</option>
</select>
</td>
<td>标题颜色</td>
<td>
<input type="text" name="color" id="color" class="admin-input-sm">
<button type="button" name="modcolor" id="modcolor" class="btn btn-success btn-sm" onclick="ShowColor(event,this)">选择</button>
</td>
</tr>
<tr>
<td>浏览权限</td>
<td>
<select name="arcrank" id="arcrank" class="admin-input-sm">
<?php
$urank = $cuserLogin->getUserRank();
$dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank' ORDER BY `rank` ASC");
$dsql->Execute();
while($row = $dsql->GetObject())
{
$selected = $row->rank == 0 ? ' selected' : '';
echo "<option value='".$row->rank."'{$selected}>".$row->membername."</option>";
}
?>
</select>
<span>(暂不支持静态)</span>
</td>
<td>文件名称</td>
<td><input type="text" name="filename" id="filename" class="admin-input-sm">(不包括文件扩展名)</td>
</tr>
<tr>
<td>发布时间</td>
<td>
<?php
$nowtime = GetDateTimeMk(time());
echo "<input type='text' name='pubdate' value='$nowtime' id='pubdate' class='datepicker admin-input-sm'>";
?>
</td>
<td>浏览次数</td>
<td><input type="text" name="click" value="<?php echo ($cfg_arc_click=='-1' ? mt_rand(1000, 6000):$cfg_arc_click);?>" class="admin-input-sm"></td>
</tr>
<tr>
<td align="center" colspan="4">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>


+ 256
- 254
src/admin/templets/album_edit.htm View File

@@ -20,267 +20,269 @@
<script src="/static/web/js/admin.album.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">图片列表</a></li>
<li class="breadcrumb-item active">修改图片文档</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改<?php echo $arcRow['title'];?>文档</div>
<div class="card-body">
<form name="form1" action="album_edit.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmitAlb();">
<input type="hidden" name="channelid" value="<?php echo $channelid?>">
<input type="hidden" name="id" value="<?php echo $aid?>">
<input type="hidden" name="imagebody">
<input type="hidden" name="dopost" value="save">
<input type="hidden" id="albums" name="albums">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="160">图片标题</td>
<td width="650"><input type="text" name="title" id="title" value="<?php echo $arcRow['title'];?>" class="admin-input-lg" required></td>
<td width="160">简略标题</td>
<td><input type="text" name="shorttitle" id="shorttitle" value="<?php echo $arcRow['shorttitle'];?>" class="admin-input-sm"></td>
</tr>
<tr>
<td>自定义属性</td>
<td colspan="3">
<?php
$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
if ($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'";
else $jumpclick = '';
if (preg_match("#".$trow->att."#", $arcRow['flag']))
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked> {$trow->attname}[{$trow->att}]</label> ";
else
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick}> {$trow->attname}[{$trow->att}]</label> ";
}
?>
</td>
</tr>
<tr id="redirecturltr" style="display:<?php echo (empty($addRow['redirecturl']) ? 'none' : 'table-row');?>">
<td>跳转网址</td>
<td colspan="3"><input type="text" name="redirecturl" id="redirecturl" value="<?php echo $addRow['redirecturl']?>" class="admin-input-lg"></td>
</tr>
<tr>
<td>标签</td>
<td><input type="text" name="tags" id="tags" value="<?php echo $tags;?>" class="admin-input-lg">(英文逗号隔开,如:DedeBIZ,得德)</td>
<td>权重</td>
<td><input type="text" name="weight" id="weight" value="<?php echo $arcRow['weight'];?>" class="admin-input-sm">(越小越靠前)</td>
</tr>
<tr id="pictable">
<td>缩略图</td>
<td colspan="3">
<input type="text" name="picname" id="picname" value="<?php echo $arcRow['litpic']?>" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
<img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '/static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md ml-3">
</td>
</tr>
<tr>
<td>来源</td>
<td>
<input type="text" name="source" id="source" value="<?php echo $arcRow['source']?>" class="admin-input-sm">
<button type="button" name="selsource" id="selsource" class="btn btn-success btn-sm">选择</button>
</td>
<td>编辑</td>
<td>
<input type="text" name="writer" id="writer" value="<?php echo $arcRow['writer']?>" class="admin-input-sm">
<button type="button" name="selwriter" id="selwriter" class="btn btn-success btn-sm">选择</button>
</td>
</tr>
<tr>
<td>发布栏目</td>
<td>
<?php
$typeOptions = GetOptionList($arcRow['typeid'],$cuserLogin->getUserChannel(),$channelid);
echo "<select name='typeid' id='typeid' class='admin-input-sm'>";
if ($arcRow['typeid']=='0') echo "<option value='0' selected>请选择主分类</option>";
echo $typeOptions;
echo '</select>';
?>
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid','<?php echo $arcRow['typeid'];?>');" class="btn btn-success btn-sm">选择</a>
</td>
<td>金币</td>
<td><input type="text" name="money" id="money" value="<?php echo $arcRow['money']?>" class="admin-input-sm"></td>
</tr>
<?php if ($cfg_need_typeid2=='Y') {?>
<tr>
<td>副栏目</td>
<td colspan="3">
<span id="typeid2ct"></span>
<input type="text" name="typeid2" id="typeid2" value="<?php echo ($arcRow['typeid2']=='0' ? '' : $arcRow['typeid2']);?>" class="admin-input-sm">
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid2','<?php echo $arcRow['typeid2'];?>');" class="btn btn-success btn-sm">选择</a>
</td>
</tr>
<?php }?>
<tr>
<td>关键词</td>
<td colspan="3"><input type="text" name="keywords" id="keywords" value="<?php echo $arcRow['keywords']?>" class="admin-input-lg"></td>
</tr>
<tr>
<td>描述</td>
<td colspan="3"><textarea name="description" id="description" class="admin-textarea-sm"><?php echo $arcRow['description']?></textarea></td>
</tr>
<tr>
<td>附加选项</td>
<td colspan="3">
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo 'checked';?>> 下载远程图片和资源</label>
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo 'checked';?>> 提取第一个图片为缩略图</label>
</td>
</tr>
<tr>
<td>表现方式</td>
<td colspan="3">
<label><input type="radio" name="pagestyle" id="pagestyle1" onclick="checkMuList();" value="1" <?php if ($pagestyle==1) echo 'checked';?>> <img src="/static/web/img/alb2.jpg" title="单页多图样式"></label>
<label><input type="radio" name="pagestyle" id="pagestyle2" onclick="checkMuList();" value="2" <?php if ($pagestyle==2) echo 'checked';?>> <img src="/static/web/img/alb1.jpg" title="幻灯片样式"></label>
<label><input type="radio" name="pagestyle" id="pagestyle3" onclick="checkMuList();" value="3" <?php if ($pagestyle==3) echo 'checked';?>> <img src="/static/web/img/alb3.jpg" title="多缩略图样式"></label>
</td>
</tr>
<tr id="cfgmulist" style="<?php if ($pagestyle!=3) echo 'display:none';?>">
<td>多列式参数</td>
<td colspan="3">
<label>行:<input type="text" name="row" id="row" value="<?php echo $irow;?>" class="admin-input-sm"></label>
<label>列:<input type="text" name="col" id="col" value="<?php echo $icol;?>" class="admin-input-sm"></label>
<label>缩略图宽度限制:<input type="text" name="ddmaxwidth" id="ddmaxwidth" value="<?php echo $ddmaxwidth;?>" class="admin-input-sm"> 像素</label>
<span>(每页输出行x列张图片,实现需自行控制样式表)</span>
</td>
</tr>
<tr id="spagelist" style="<?php if ($pagestyle!=1) echo 'display:none';?>">
<td>每页图片数</td>
<td><input name="pagepicnum" id="pagpicnum" class="admin-input-sm" value="<?php echo $pagepicnum;?>">(单页多图显示需要设置此参数,这种模式下系统不会为每张图单独生成缩略图)</td>
<td>限制宽度</td>
<td><input type="text" name="maxwidth" id="maxwidth" class="admin-input-sm" value="<?php echo $maxwidth?>">(防止图片太宽在模板页中溢出)</td>
</tr>
<tr>
<td colspan="4">
<div id="galleryedit">
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">图片列表</a></li>
<li class="breadcrumb-item active">修改图片文档</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改<?php echo $arcRow['title'];?>文档</div>
<div class="card-body">
<form name="form1" action="album_edit.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmitAlb();">
<input type="hidden" name="channelid" value="<?php echo $channelid?>">
<input type="hidden" name="id" value="<?php echo $aid?>">
<input type="hidden" name="imagebody">
<input type="hidden" name="dopost" value="save">
<input type="hidden" id="albums" name="albums">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="160">图片标题</td>
<td width="650"><input type="text" name="title" id="title" value="<?php echo $arcRow['title'];?>" class="admin-input-lg" required></td>
<td width="160">简略标题</td>
<td><input type="text" name="shorttitle" id="shorttitle" value="<?php echo $arcRow['shorttitle'];?>" class="admin-input-sm"></td>
</tr>
<tr>
<td>自定义属性</td>
<td colspan="3">
<?php
$j = 1;
if ($imgurls!=""){
$dtp = new DedeTagParse();
$dtp->LoadSource($imgurls);
if (is_array($dtp->CTags)) {
foreach($dtp->CTags as $ctag)
{
if ($ctag->GetName()=="img") {
$bigimg = trim($ctag->GetInnerText());
if ($ctag->GetAtt('ddimg') != $bigimg && $ctag->GetAtt('ddimg')!='') {
$litimg = $ctag->GetAtt('ddimg');
} else {
if (preg_match("#^(http|https):\/\/#i", $bigimg)) $litimg = $bigimg;
else $litimg = 'swfupload.php?dopost=ddimg&img='.$bigimg;
}
$fhtml = '';
$fhtml .= "<div class='atlas' id='albold{$j}'>";
$fhtml .= "<input type='hidden' name='imgurl{$j}' value='{$bigimg}'>";
$fhtml .= "<input type='hidden' name='imgddurl{$j}' value='{$litimg}'>";
$fhtml .= "<div class='atlas-head'><img src='{$litimg}' id='lit{$j}'></div>";
$fhtml .= "<div class='atlas-body'><input type='text' name='imgmsg{$j}' value='".$ctag->GetAtt('text')."' class='atlas-input' placeholder='请输入图片注释'></div>";
$fhtml .= "<div class='atlas-foot'><span class='btn btn-success btn-sm opt-button'>更换<input type='file' name='imgfile{$j}' for='item{$j}' class='atlasedit'></span><a href=\"javascript:delAlbPicOld('$bigimg',$j)\" class=\"btn btn-danger btn-sm\">删除</a></div>";
$fhtml .= "</div>";
echo $fhtml;
$j++;
}
}
}
$dtp->Clear();
$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
if ($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'";
else $jumpclick = '';
if (preg_match("#".$trow->att."#", $arcRow['flag']))
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked> {$trow->attname}[{$trow->att}]</label> ";
else
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick}> {$trow->attname}[{$trow->att}]</label> ";
}
?>
</div>
</td>
</tr>
<tr>
<td>本地上传</td>
<td colspan="3"><span class="btn btn-success btn-sm opt-button">上传多图<input type="file" name="files[]" id="iptAlbumImages" multiple></span></td>
</tr>
<tr>
<td colspan="4">
<div id="gallery"></div>
</td>
</tr>
<?php PrintAutoFieldsEdit($cInfos['fieldset'],$addRow,'autofield');?>
<tr>
<td colspan="4"><?php GetEditor('body',$body,350,'Diy');?></td>
</tr>
<tr>
<td>评论选项</td>
<td>
<label><input type="radio" name="notpost" value="0" <?php if ($arcRow['notpost']==0) echo 'checked';?>> 允许评论</label>
<label><input type="radio" name="notpost" value="1" <?php if ($arcRow['notpost']==1) echo 'checked';?>> 禁止评论</label>
</td>
<td>发布选项</td>
<td>
<label><input type="radio" name="ishtml" value="1" <?php if ($arcRow["ismake"]!=-1) echo 'checked';?>> 静态浏览</label>
<label><input type="radio" name="ishtml" value="0" <?php if ($arcRow["ismake"]==-1) echo 'checked';?>> 动态浏览</label>
</td>
</tr>
<tr>
<td>文档排序</td>
<td>
<select name="sortup" id="sortup" class="admin-input-sm">
</td>
</tr>
<tr id="redirecturltr" style="display:<?php echo (empty($addRow['redirecturl']) ? 'none' : 'table-row');?>">
<td>跳转网址</td>
<td colspan="3"><input type="text" name="redirecturl" id="redirecturl" value="<?php echo $addRow['redirecturl']?>" class="admin-input-lg"></td>
</tr>
<tr>
<td>标签</td>
<td><input type="text" name="tags" id="tags" value="<?php echo $tags;?>" class="admin-input-lg">(英文逗号隔开,如:DedeBIZ,得德)</td>
<td>权重</td>
<td><input type="text" name="weight" id="weight" value="<?php echo $arcRow['weight'];?>" class="admin-input-sm">(越小越靠前)</td>
</tr>
<tr id="pictable">
<td>缩略图</td>
<td colspan="3">
<input type="text" name="picname" id="picname" value="<?php echo $arcRow['litpic']?>" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
<img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '/static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md ml-3">
</td>
</tr>
<tr>
<td>来源</td>
<td>
<input type="text" name="source" id="source" value="<?php echo $arcRow['source']?>" class="admin-input-sm">
<button type="button" name="selsource" id="selsource" class="btn btn-success btn-sm">选择</button>
</td>
<td>编辑</td>
<td>
<input type="text" name="writer" id="writer" value="<?php echo $arcRow['writer']?>" class="admin-input-sm">
<button type="button" name="selwriter" id="selwriter" class="btn btn-success btn-sm">选择</button>
</td>
</tr>
<tr>
<td>发布栏目</td>
<td>
<?php
$subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]);
echo "<option value='0'>正常排序</option>";
if ($subday>0) echo "<option value='$subday' selected>置顶".$subday."天</option>";
$typeOptions = GetOptionList($arcRow['typeid'],$cuserLogin->getUserChannel(),$channelid);
echo "<select name='typeid' id='typeid' class='admin-input-sm'>";
if ($arcRow['typeid']=='0') echo "<option value='0' selected>请选择主分类</option>";
echo $typeOptions;
echo '</select>';
?>
<option value="7">置顶一周</option>
<option value="30">置顶一个月</option>
<option value="90">置顶三个月</option>
<option value="180">置顶半年</option>
<option value="360">置顶一年</option>
</select>
</td>
<td>标题颜色</td>
<td>
<input type="text" name="color" id="color" value="<?php echo $arcRow['color']?>" class="admin-input-sm">
<button type="button" name="modcolor" id="modcolor" class="btn btn-success btn-sm" onclick="ShowColor(event,this)">选择</button>
</td>
</tr>
<tr>
<td>浏览权限</td>
<td>
<select name="arcrank" id="arcrank" class="admin-input-sm">
<option value="<?php echo $arcRow['arcrank']?>"><?php echo $arcRow["rankname"]?></option>
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid','<?php echo $arcRow['typeid'];?>');" class="btn btn-success btn-sm">选择</a>
</td>
<td>金币</td>
<td><input type="text" name="money" id="money" value="<?php echo $arcRow['money']?>" class="admin-input-sm"></td>
</tr>
<?php if ($cfg_need_typeid2=='Y') {?>
<tr>
<td>副栏目</td>
<td colspan="3">
<span id="typeid2ct"></span>
<input type="text" name="typeid2" id="typeid2" value="<?php echo ($arcRow['typeid2']=='0' ? '' : $arcRow['typeid2']);?>" class="admin-input-sm">
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid2','<?php echo $arcRow['typeid2'];?>');" class="btn btn-success btn-sm">选择</a>
</td>
</tr>
<?php }?>
<tr>
<td>关键词</td>
<td colspan="3"><input type="text" name="keywords" id="keywords" value="<?php echo $arcRow['keywords']?>" class="admin-input-lg"></td>
</tr>
<tr>
<td>描述</td>
<td colspan="3"><textarea name="description" id="description" class="admin-textarea-sm"><?php echo $arcRow['description']?></textarea></td>
</tr>
<tr>
<td>附加选项</td>
<td colspan="3">
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo 'checked';?>> 下载远程图片和资源</label>
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo 'checked';?>> 提取第一个图片为缩略图</label>
</td>
</tr>
<tr>
<td>表现方式</td>
<td colspan="3">
<label><input type="radio" name="pagestyle" id="pagestyle1" onclick="checkMuList();" value="1" <?php if ($pagestyle==1) echo 'checked';?>> <img src="/static/web/img/alb2.jpg" title="单页多图样式"></label>
<label><input type="radio" name="pagestyle" id="pagestyle2" onclick="checkMuList();" value="2" <?php if ($pagestyle==2) echo 'checked';?>> <img src="/static/web/img/alb1.jpg" title="幻灯片样式"></label>
<label><input type="radio" name="pagestyle" id="pagestyle3" onclick="checkMuList();" value="3" <?php if ($pagestyle==3) echo 'checked';?>> <img src="/static/web/img/alb3.jpg" title="多缩略图样式"></label>
</td>
</tr>
<tr id="cfgmulist" style="<?php if ($pagestyle!=3) echo 'display:none';?>">
<td>多列式参数</td>
<td colspan="3">
<label>行:<input type="text" name="row" id="row" value="<?php echo $irow;?>" class="admin-input-sm"></label>
<label>列:<input type="text" name="col" id="col" value="<?php echo $icol;?>" class="admin-input-sm"></label>
<label>缩略图宽度限制:<input type="text" name="ddmaxwidth" id="ddmaxwidth" value="<?php echo $ddmaxwidth;?>" class="admin-input-sm"> 像素</label>
<span>(每页输出行x列张图片,实现需自行控制样式表)</span>
</td>
</tr>
<tr id="spagelist" style="<?php if ($pagestyle!=1) echo 'display:none';?>">
<td>每页图片数</td>
<td><input name="pagepicnum" id="pagpicnum" class="admin-input-sm" value="<?php echo $pagepicnum;?>">(单页多图显示需要设置此参数,这种模式下系统不会为每张图单独生成缩略图)</td>
<td>限制宽度</td>
<td><input type="text" name="maxwidth" id="maxwidth" class="admin-input-sm" value="<?php echo $maxwidth?>">(防止图片太宽在模板页中溢出)</td>
</tr>
<tr>
<td colspan="4">
<div id="galleryedit">
<?php
$j = 1;
if ($imgurls!=""){
$dtp = new DedeTagParse();
$dtp->LoadSource($imgurls);
if (is_array($dtp->CTags)) {
foreach($dtp->CTags as $ctag)
{
if ($ctag->GetName()=="img") {
$bigimg = trim($ctag->GetInnerText());
if ($ctag->GetAtt('ddimg') != $bigimg && $ctag->GetAtt('ddimg')!='') {
$litimg = $ctag->GetAtt('ddimg');
} else {
if (preg_match("#^(http|https):\/\/#i", $bigimg)) $litimg = $bigimg;
else $litimg = 'swfupload.php?dopost=ddimg&img='.$bigimg;
}
$fhtml = '';
$fhtml .= "<div class='atlas' id='albold{$j}'>";
$fhtml .= "<input type='hidden' name='imgurl{$j}' value='{$bigimg}'>";
$fhtml .= "<input type='hidden' name='imgddurl{$j}' value='{$litimg}'>";
$fhtml .= "<div class='atlas-head'><img src='{$litimg}' id='lit{$j}'></div>";
$fhtml .= "<div class='atlas-body'><input type='text' name='imgmsg{$j}' value='".$ctag->GetAtt('text')."' class='atlas-input' placeholder='请输入图片注释'></div>";
$fhtml .= "<div class='atlas-foot'><span class='btn btn-success btn-sm opt-button'>更换<input type='file' name='imgfile{$j}' for='item{$j}' class='atlasedit'></span><a href=\"javascript:delAlbPicOld('$bigimg',$j)\" class=\"btn btn-danger btn-sm\">删除</a></div>";
$fhtml .= "</div>";
echo $fhtml;
$j++;
}
}
}
$dtp->Clear();
}
?>
</div>
</td>
</tr>
<tr>
<td>本地上传</td>
<td colspan="3"><span class="btn btn-success btn-sm opt-button">上传多图<input type="file" name="files[]" id="iptAlbumImages" multiple></span></td>
</tr>
<tr>
<td colspan="4">
<div id="gallery"></div>
</td>
</tr>
<?php PrintAutoFieldsEdit($cInfos['fieldset'],$addRow,'autofield');?>
<tr>
<td colspan="4"><?php GetEditor('body',$body,350,'Diy');?></td>
</tr>
<tr>
<td>评论选项</td>
<td>
<label><input type="radio" name="notpost" value="0" <?php if ($arcRow['notpost']==0) echo 'checked';?>> 允许评论</label>
<label><input type="radio" name="notpost" value="1" <?php if ($arcRow['notpost']==1) echo 'checked';?>> 禁止评论</label>
</td>
<td>发布选项</td>
<td>
<label><input type="radio" name="ishtml" value="1" <?php if ($arcRow["ismake"]!=-1) echo 'checked';?>> 静态浏览</label>
<label><input type="radio" name="ishtml" value="0" <?php if ($arcRow["ismake"]==-1) echo 'checked';?>> 动态浏览</label>
</td>
</tr>
<tr>
<td>文档排序</td>
<td>
<select name="sortup" id="sortup" class="admin-input-sm">
<?php
$subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]);
echo "<option value='0'>正常排序</option>";
if ($subday>0) echo "<option value='$subday' selected>置顶".$subday."天</option>";
?>
<option value="7">置顶一周</option>
<option value="30">置顶一个月</option>
<option value="90">置顶三个月</option>
<option value="180">置顶半年</option>
<option value="360">置顶一年</option>
</select>
</td>
<td>标题颜色</td>
<td>
<input type="text" name="color" id="color" value="<?php echo $arcRow['color']?>" class="admin-input-sm">
<button type="button" name="modcolor" id="modcolor" class="btn btn-success btn-sm" onclick="ShowColor(event,this)">选择</button>
</td>
</tr>
<tr>
<td>浏览权限</td>
<td>
<select name="arcrank" id="arcrank" class="admin-input-sm">
<option value="<?php echo $arcRow['arcrank']?>"><?php echo $arcRow["rankname"]?></option>
<?php
$urank = $cuserLogin->getUserRank();
$dsql->SetQuery("SELECT * FROM #@__arcrank where adminrank<='$urank' ORDER BY `rank` ASC");
$dsql->Execute();
while($row = $dsql->GetObject()){
echo "<option value='".$row->rank."'>".$row->membername."</option>";
}
?>
</select>
<span>(暂不支持静态)</span>
</td>
<td>文件名称</td>
<td><input type="text" name="filename" id="filename" value="<?php echo $arcRow['filename']?>" class="admin-input-sm">(不包括文件扩展名)</td>
</tr>
<tr>
<td>发布时间</td>
<td>
<?php
$urank = $cuserLogin->getUserRank();
$dsql->SetQuery("SELECT * FROM #@__arcrank where adminrank<='$urank' ORDER BY `rank` ASC");
$dsql->Execute();
while($row = $dsql->GetObject()){
echo "<option value='".$row->rank."'>".$row->membername."</option>";
}
$nowtime = GetDateTimeMk(time());
echo "<input type='text' name='pubdate' value='$nowtime' id='pubdate' class='datepicker admin-input-sm'>";
?>
</select>
<span>(暂不支持静态)</span>
</td>
<td>文件名称</td>
<td><input type="text" name="filename" id="filename" value="<?php echo $arcRow['filename']?>" class="admin-input-sm">(不包括文件扩展名)</td>
</tr>
<tr>
<td>发布时间</td>
<td>
<?php
$nowtime = GetDateTimeMk(time());
echo "<input type='text' name='pubdate' value='$nowtime' id='pubdate' class='datepicker admin-input-sm'>";
?>
</td>
<td>浏览次数</td>
<td><input type="text" name="click" value="<?php echo $arcRow['click'];?>" class="admin-input-sm"></td>
</tr>
<tr>
<td align="center" colspan="4">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tbody>
</table>
</div>
</form>
</td>
<td>浏览次数</td>
<td><input type="text" name="click" value="<?php echo $arcRow['click'];?>" class="admin-input-sm"></td>
</tr>
<tr>
<td align="center" colspan="4">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>


+ 196
- 194
src/admin/templets/archives_add.htm View File

@@ -19,202 +19,204 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">文档列表</a></li>
<li class="breadcrumb-item active">发布文档</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">发布文档</div>
<div class="card-body">
<form name="form1" action="archives_add.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="channelid" value="<?php echo $channelid?>">
<input type="hidden" name="cid" value="<?php echo $cid?>">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="160"><?php echo $cInfos['titlename'];?></td>
<td width="650"><input type="text" name="title" id="title" class="admin-input-lg" required></td>
<td width="160">简略标题</td>
<td><input type="text" name="shorttitle" id="shorttitle" class="admin-input-sm"></td>
</tr>
<tr>
<td>自定义属性</td>
<td colspan="3">
<?php
$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
if ($trow->att=='j')
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'> {$trow->attname}[{$trow->att}]</label> ";
else
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> ";
}
?>
</td>
</tr>
<tr id="redirecturltr" style="display:none">
<td>跳转网址</td>
<td colspan="3"><input type="text" name="redirecturl" id="redirecturl" class="admin-input-lg"></td>
</tr>
<tr>
<td>标签</td>
<td><input type="text" name="tags" id="tags" onChange="$Obj('keywords').value=this.value;" class="admin-input-lg">(英文逗号隔开,如:DedeBIZ,得德)</td>
<td>权重</td>
<td><input type="text" name="weight" id="weight" value="<?php echo $maxWright['cc'];?>" class="admin-input-sm">(越小越靠前)</td>
</tr>
<tr id="pictable" style='<?php if ($cInfos['needpic']==0) echo 'display:none';?>'>
<td>缩略图</td>
<td colspan="3">
<input type="text" name="picname" id="picname" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-success delete">清空</button>
<img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md ml-3">
</td>
</tr>
<tr>
<td>来源</td>
<td>
<input type="text" name="source" id="source" class="admin-input-sm">
<button type="button" name="selsource" id="selsource" class="btn btn-success btn-sm">选择</button>
</td>
<td>编辑</td>
<td>
<input type="text" name="writer" id="writer" class="admin-input-sm">
<button type="button" name="selwriter" id="selwriter" class="btn btn-success btn-sm">选择</button>
</td>
</tr>
<?php
if ($cInfos['dfcid'] > 0) {
echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}'>";
echo "<input type='hidden' name='typeid2' value='0'>";
} else {
?>
<tr>
<td>发布栏目</td>
<td>
<span id="typeidct">
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">文档列表</a></li>
<li class="breadcrumb-item active">发布文档</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">发布文档</div>
<div class="card-body">
<form name="form1" action="archives_add.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="channelid" value="<?php echo $channelid?>">
<input type="hidden" name="cid" value="<?php echo $cid?>">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="160"><?php echo $cInfos['titlename'];?></td>
<td width="650"><input type="text" name="title" id="title" class="admin-input-lg" required></td>
<td width="160">简略标题</td>
<td><input type="text" name="shorttitle" id="shorttitle" class="admin-input-sm"></td>
</tr>
<tr>
<td>自定义属性</td>
<td colspan="3">
<?php
$typeOptions = GetOptionList($cid,$cuserLogin->getUserChannel(),$channelid);
echo "<select name='typeid' id='typeid' class='admin-input-sm'>";
echo "<option value='0'>请选择文档栏目</option>";
echo $typeOptions;
echo "</select>";
$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
if ($trow->att=='j')
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'> {$trow->attname}[{$trow->att}]</label> ";
else
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> ";
}
?>
</span>
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid');" class="btn btn-success btn-sm">选择</a>
<?php if ($cfg_need_typeid2=='Y') {echo "<a href='javascript:AddTypeid2();' class='btn btn-success btn-sm'>副栏目</a>";}?>
</td>
<td>金币</td>
<td><input type="text" name="money" id="money" value="0" class="admin-input-sm"></td>
</tr>
<tr id="typeid2tr" style="display:none">
<td>副栏目</td>
<td colspan="3">
<span id="typeid2ct"></span>
<input type="text" name="typeid2" id="typeid2" class="admin-input-sm">
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid2');" class="btn btn-success btn-sm">选择</a>
</td>
</tr>
<?php }?>
<tr>
<td>关键词</td>
<td colspan="3">
<input type="text" name="keywords" id="keywords" class="admin-input-lg">
<label><input type="checkbox" name="autokey" onclick="ShowHide('keywords');" id="autokey" value="1" <?php if ($cfg_arc_autokeyword=='Y') echo 'checked';?>> 自动获取</label>
<button type="button" class="btn btn-success btn-sm" onclick="SelectKeywords('form1.keywords');">选择</button>
</td>
</tr>
<tr>
<td>描述</td>
<td colspan="3"><textarea name="description" id="description" class="admin-textarea-sm"></textarea></td>
</tr>
<tr>
<td>附加选项</td>
<td colspan="3">
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo 'checked';?>> 下载远程图片和资源</label>
<label><input type="checkbox" name="dellink" id="dellink" value="1" <?php if ($cfg_arc_dellink=='Y') echo 'checked';?>> 删除非站内链接</label>
<a href="javascript:OpenMyWin('article_allowurl_edit.php');">[配置]</a>
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo 'checked';?>> 提取第一个图片为缩略图</label>
</td>
</tr>
<?php PrintAutoFieldsAdd($cInfos['fieldset']); ?>
<tr>
<td>评论选项</td>
<td>
<label><input type="radio" name="notpost" value="0" <?php if ($cfg_feedback_forbid=='N') echo 'checked';?>> 允许评论</label>
<label><input type="radio" name="notpost" value="1" <?php if ($cfg_feedback_forbid=='Y') echo 'checked';?>> 禁止评论</label>
</td>
<td>发布选项</td>
<td>
<label><input type="radio" name="ishtml" value="1" checked> 静态浏览</label>
<label><input type="radio" name="ishtml" value="0"> 动态浏览</label>
</td>
</tr>
<tr>
<td>文档排序</td>
<td>
<select name="sortup" id="sortup" class="admin-input-sm">
<option value="0" selected>默认排序</option>
<option value="7">置顶一周</option>
<option value="30">置顶一个月</option>
<option value="90">置顶三个月</option>
<option value="180">置顶半年</option>
<option value="360">置顶一年</option>
</select>
</td>
<td>标题颜色</td>
<td>
<input type="text" name="color" id="color" class="admin-input-sm">
<button type="button" name="modcolor" id="modcolor" onclick="ShowColor(event,this);" class="btn btn-success btn-sm">选择</button>
</td>
</tr>
<tr>
<td>浏览权限</td>
<td>
<select name="arcrank" id="arcrank" class="admin-input-sm">
<?php
$urank = $cuserLogin->getUserRank();
$dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank' ORDER BY `rank` ASC");
$dsql->Execute();
while($row = $dsql->GetObject())
{
$selected = $row->rank == 0 ? ' selected' : '';
echo "<option value='".$row->rank."'{$selected}>".$row->membername."</option>";
}
?>
</select>
<span>(暂不支持静态)</span>
</td>
<td>文件名称</td>
<td><input type="text" name="filename" id="filename" class="admin-input-sm">(不包括文件扩展名)</td>
</tr>
<tr>
<td>发布时间</td>
<td>
<?php
$nowtime = GetDateTimeMk(time());
echo "<input type='text' name='pubdate' value='$nowtime' id='pubdate' class='datepicker admin-input-sm'>";
?>
</td>
<td>浏览次数</td>
<td><input type="text" name="click" value="<?php echo ($cfg_arc_click=='-1' ? mt_rand(1000, 6000):$cfg_arc_click);?>" class="admin-input-sm"></td>
</tr>
<tr>
<td align="center" colspan="4">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</td>
</tr>
<tr id="redirecturltr" style="display:none">
<td>跳转网址</td>
<td colspan="3"><input type="text" name="redirecturl" id="redirecturl" class="admin-input-lg"></td>
</tr>
<tr>
<td>标签</td>
<td><input type="text" name="tags" id="tags" onChange="$Obj('keywords').value=this.value;" class="admin-input-lg">(英文逗号隔开,如:DedeBIZ,得德)</td>
<td>权重</td>
<td><input type="text" name="weight" id="weight" value="<?php echo $maxWright['cc'];?>" class="admin-input-sm">(越小越靠前)</td>
</tr>
<tr id="pictable" style='<?php if ($cInfos['needpic']==0) echo 'display:none';?>'>
<td>缩略图</td>
<td colspan="3">
<input type="text" name="picname" id="picname" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-success delete">清空</button>
<img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md ml-3">
</td>
</tr>
<tr>
<td>来源</td>
<td>
<input type="text" name="source" id="source" class="admin-input-sm">
<button type="button" name="selsource" id="selsource" class="btn btn-success btn-sm">选择</button>
</td>
<td>编辑</td>
<td>
<input type="text" name="writer" id="writer" class="admin-input-sm">
<button type="button" name="selwriter" id="selwriter" class="btn btn-success btn-sm">选择</button>
</td>
</tr>
<?php
if ($cInfos['dfcid'] > 0) {
echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}'>";
echo "<input type='hidden' name='typeid2' value='0'>";
} else {
?>
<tr>
<td>发布栏目</td>
<td>
<span id="typeidct">
<?php
$typeOptions = GetOptionList($cid,$cuserLogin->getUserChannel(),$channelid);
echo "<select name='typeid' id='typeid' class='admin-input-sm'>";
echo "<option value='0'>请选择文档栏目</option>";
echo $typeOptions;
echo "</select>";
?>
</span>
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid');" class="btn btn-success btn-sm">选择</a>
<?php if ($cfg_need_typeid2=='Y') {echo "<a href='javascript:AddTypeid2();' class='btn btn-success btn-sm'>副栏目</a>";}?>
</td>
<td>金币</td>
<td><input type="text" name="money" id="money" value="0" class="admin-input-sm"></td>
</tr>
<tr id="typeid2tr" style="display:none">
<td>副栏目</td>
<td colspan="3">
<span id="typeid2ct"></span>
<input type="text" name="typeid2" id="typeid2" class="admin-input-sm">
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid2');" class="btn btn-success btn-sm">选择</a>
</td>
</tr>
<?php }?>
<tr>
<td>关键词</td>
<td colspan="3">
<input type="text" name="keywords" id="keywords" class="admin-input-lg">
<label><input type="checkbox" name="autokey" onclick="ShowHide('keywords');" id="autokey" value="1" <?php if ($cfg_arc_autokeyword=='Y') echo 'checked';?>> 自动获取</label>
<button type="button" class="btn btn-success btn-sm" onclick="SelectKeywords('form1.keywords');">选择</button>
</td>
</tr>
<tr>
<td>描述</td>
<td colspan="3"><textarea name="description" id="description" class="admin-textarea-sm"></textarea></td>
</tr>
<tr>
<td>附加选项</td>
<td colspan="3">
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo 'checked';?>> 下载远程图片和资源</label>
<label><input type="checkbox" name="dellink" id="dellink" value="1" <?php if ($cfg_arc_dellink=='Y') echo 'checked';?>> 删除非站内链接</label>
<a href="javascript:OpenMyWin('article_allowurl_edit.php');">[配置]</a>
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo 'checked';?>> 提取第一个图片为缩略图</label>
</td>
</tr>
<?php PrintAutoFieldsAdd($cInfos['fieldset']); ?>
<tr>
<td>评论选项</td>
<td>
<label><input type="radio" name="notpost" value="0" <?php if ($cfg_feedback_forbid=='N') echo 'checked';?>> 允许评论</label>
<label><input type="radio" name="notpost" value="1" <?php if ($cfg_feedback_forbid=='Y') echo 'checked';?>> 禁止评论</label>
</td>
<td>发布选项</td>
<td>
<label><input type="radio" name="ishtml" value="1" checked> 静态浏览</label>
<label><input type="radio" name="ishtml" value="0"> 动态浏览</label>
</td>
</tr>
<tr>
<td>文档排序</td>
<td>
<select name="sortup" id="sortup" class="admin-input-sm">
<option value="0" selected>默认排序</option>
<option value="7">置顶一周</option>
<option value="30">置顶一个月</option>
<option value="90">置顶三个月</option>
<option value="180">置顶半年</option>
<option value="360">置顶一年</option>
</select>
</td>
<td>标题颜色</td>
<td>
<input type="text" name="color" id="color" class="admin-input-sm">
<button type="button" name="modcolor" id="modcolor" onclick="ShowColor(event,this);" class="btn btn-success btn-sm">选择</button>
</td>
</tr>
<tr>
<td>浏览权限</td>
<td>
<select name="arcrank" id="arcrank" class="admin-input-sm">
<?php
$urank = $cuserLogin->getUserRank();
$dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank' ORDER BY `rank` ASC");
$dsql->Execute();
while($row = $dsql->GetObject())
{
$selected = $row->rank == 0 ? ' selected' : '';
echo "<option value='".$row->rank."'{$selected}>".$row->membername."</option>";
}
?>
</select>
<span>(暂不支持静态)</span>
</td>
<td>文件名称</td>
<td><input type="text" name="filename" id="filename" class="admin-input-sm">(不包括文件扩展名)</td>
</tr>
<tr>
<td>发布时间</td>
<td>
<?php
$nowtime = GetDateTimeMk(time());
echo "<input type='text' name='pubdate' value='$nowtime' id='pubdate' class='datepicker admin-input-sm'>";
?>
</td>
<td>浏览次数</td>
<td><input type="text" name="click" value="<?php echo ($cfg_arc_click=='-1' ? mt_rand(1000, 6000):$cfg_arc_click);?>" class="admin-input-sm"></td>
</tr>
<tr>
<td align="center" colspan="4">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>InitPage();</script>


+ 189
- 187
src/admin/templets/archives_edit.htm View File

@@ -19,197 +19,199 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">文档列表</a></li>
<li class="breadcrumb-item active">修改文档</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改<?php echo $arcRow['title'];?>文档</div>
<div class="card-body">
<form name="form1" action="archives_edit.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="channelid" value="<?php echo $channelid?>">
<input type="hidden" name="id" value="<?php echo $aid?>">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="160"><?php echo $cInfos['titlename'];?></td>
<td width="650"><input name="title" type="text" id="title" value="<?php echo $arcRow['title'];?>" class="admin-input-lg" required></td>
<td width="160">简略标题</td>
<td><input name="shorttitle" type="text" id="shorttitle" value="<?php echo $arcRow['shorttitle'];?>" class="admin-input-sm"></td>
</tr>
<tr>
<td>自定义属性</td>
<td>
<?php
$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
if ($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'";
else $jumpclick = '';
if (preg_match("#".$trow->att."#", $arcRow['flag']))
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked> {$trow->attname}[{$trow->att}]</label> ";
else
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick}> {$trow->attname}[{$trow->att}]</label> ";
}
?>
</td>
</tr>
<tr id="redirecturltr" style="display:<?php echo (empty($addRow['redirecturl']) ? 'none' : 'table-row');?>">
<td>跳转网址</td>
<td colspan="3"><input name="redirecturl" type="text" id="redirecturl" value="<?php echo $addRow['redirecturl'];?>" class="admin-input-lg"></td>
<tr>
<td>标签</td>
<td><input type="text" name="tags" id="tags" value="<?php echo $tags;?>" class="admin-input-lg">(英文逗号隔开,如:DedeBIZ,得德)</td>
<td>权重</td>
<td><input type="text" name="weight" id="weight" value="<?php echo $arcRow['weight'];?>" class="admin-input-sm">(越小越靠前)</td>
</tr>
<tr id="pictable" style="<?php if ($cInfos['needpic']==0) echo 'display:none';?>">
<td>缩略图</td>
<td colspan="3">
<input name="picname" type="text" id="picname" value="<?php echo $arcRow['litpic']?>" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button id="btnClearAll" type="button" class="btn btn-success btn-sm">清空</button>
<img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '/static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md ml-3">
</td>
</tr>
<tr>
<td>来源</td>
<td>
<input type="text" name="source" id="source" value="<?php echo $arcRow['source']?>" class="admin-input-sm">
<button type="button" name="selsource" id="selsource" class="btn btn-success btn-sm">选择</button>
</td>
<td>编辑</td>
<td>
<input type="text" name="writer" id="writer" value="<?php echo $arcRow['writer']?>" class="admin-input-sm">
<button type="button" class="btn btn-success btn-sm" name="selwriter" id="selwriter">选择</button>
</td>
</tr>
<?php
if ($cInfos['dfcid'] > 0) {
echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}'>";
echo "<input type='hidden' name='typeid2'>";
} else {
?>
<tr>
<td>发布栏目</td>
<td>
<?php
$typeOptions = GetOptionList($arcRow['typeid'],$cuserLogin->getUserChannel(),$channelid);
echo "<select name='typeid' id='typeid' class='admin-input-sm'>";
if ($arcRow["typeid"]=="0") echo "<option value='0' selected>请选择文档栏目</option>";
echo $typeOptions;
echo "</select>";
?>
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid');" class="btn btn-success btn-sm">选择</a>
</td>
<td>金币</td>
<td><input type="text" name="money" id="money" value="<?php echo $arcRow['money']?>" class="admin-input-sm"></td>
</tr>
<?php if ($cfg_need_typeid2=='Y') {?>
<tr>
<td>副栏目</td>
<td colspan="3">
<span id="typeid2ct"></span>
<input type="text" name="typeid2" id="typeid2" value="<?php echo ($arcRow['typeid2']=='0' ? '' : $arcRow['typeid2']);?>" class="admin-input-sm">
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid2','<?php echo $arcRow['typeid2'];?>');" class="btn btn-success btn-sm">选择</a>
</td>
</tr>
<?php }}?>
<tr>
<td>关键词</td>
<td colspan="3"><input type="text" name="keywords" id="keywords" value="<?php echo $arcRow['keywords']?>" class="admin-input-lg"></td>
</tr>
<tr>
<td>描述</td>
<td colspan="3"><textarea name="description" id="description" class="admin-textarea-sm"><?php echo $arcRow['description']?></textarea></td>
</tr>
<tr>
<td>附加选项</td>
<td colspan="3">
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo 'checked';?>> 下载远程图片和资源</label>
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo 'checked';?>> 提取第一个图片为缩略图</label>
</td>
</tr>
<?php PrintAutoFieldsEdit($cInfos['fieldset'],$addRow);?>
<tr>
<td>评论选项</td>
<td>
<label><input type='radio' name='notpost' value='0' <?php if ($arcRow['notpost']==0) echo " checked ";?>> 允许评论</label>
<label><input type='radio' name='notpost' value='1' <?php if ($arcRow['notpost']==1) echo " checked ";?>> 禁止评论</label>
</td>
<td>发布选项</td>
<td>
<label><input name="ishtml" type="radio" value="1" <?php if ($arcRow["ismake"]!=-1) echo 'checked';?>> 静态浏览</label>
<label><input type="radio" name="ishtml" value="0" <?php if ($arcRow["ismake"]==-1) echo 'checked';?>> 动态浏览</label>
</td>
</tr>
<tr>
<td>文档排序</td>
<td><select name="sortup" id="sortup" class="admin-input-sm">
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">文档列表</a></li>
<li class="breadcrumb-item active">修改文档</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改<?php echo $arcRow['title'];?>文档</div>
<div class="card-body">
<form name="form1" action="archives_edit.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="channelid" value="<?php echo $channelid?>">
<input type="hidden" name="id" value="<?php echo $aid?>">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="160"><?php echo $cInfos['titlename'];?></td>
<td width="650"><input name="title" type="text" id="title" value="<?php echo $arcRow['title'];?>" class="admin-input-lg" required></td>
<td width="160">简略标题</td>
<td><input name="shorttitle" type="text" id="shorttitle" value="<?php echo $arcRow['shorttitle'];?>" class="admin-input-sm"></td>
</tr>
<tr>
<td>自定义属性</td>
<td>
<?php
$subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]);
echo "<option value='0'>正常排序</option>";
if ($subday>0) echo "<option value='$subday' selected>置顶".$subday."天</option>";
?>
<option value="7">置顶一周</option>
<option value="30">置顶一个月</option>
<option value="90">置顶三个月</option>
<option value="180">置顶半年</option>
<option value="360">置顶一年</option>
</select>
</td>
<td>标题颜色</td>
<td>
<input name="color" type="text" id="color" value="<?php echo $arcRow['color']?>" class="admin-input-sm">
<button name="modcolor" type="button" id="modcolor" class="btn btn-success btn-sm" onclick="ShowColor(event,this)">选择</button>
</td>
</tr>
<tr>
<td>浏览权限</td>
<td>
<select name="arcrank" id="arcrank" class="admin-input-sm">
<option value='<?php echo $arcRow["arcrank"]?>'><?php echo $arcRow["rankname"]?></option>
<?php
$urank = $cuserLogin->getUserRank();
$dsql->SetQuery("SELECT * FROM #@__arcrank where adminrank<='$urank' ORDER BY `rank` ASC");
$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
$dsql->Execute();
while($row = $dsql->GetObject()){
echo "<option value='".$row->rank."'>".$row->membername."</option>";
while($trow = $dsql->GetObject())
{
if ($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'";
else $jumpclick = '';
if (preg_match("#".$trow->att."#", $arcRow['flag']))
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked> {$trow->attname}[{$trow->att}]</label> ";
else
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick}> {$trow->attname}[{$trow->att}]</label> ";
}
?>
</select>
<span>(暂不支持静态)</span>
</td>
<td>文件名称</td>
<td><input type="text" name="filename" id="filename" value="<?php echo $arcRow['filename']?>" class="admin-input-sm">(不包括文件扩展名)</td>
</tr>
<tr>
<td>更新时间</td>
<td>
<?php
$nowtime = GetDateTimeMk(time());
echo "<input name='pubdate' value='$nowtime' type='text' id='pubdate' class='datepicker admin-input-sm'>";
?>
</td>
<td>浏览次数</td>
<td><input type="text" name="click" value="<?php echo $arcRow['click'];?>" class="admin-input-sm"></td>
</tr>
<tr>
<td align="center" colspan="4">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</td>
</tr>
<tr id="redirecturltr" style="display:<?php echo (empty($addRow['redirecturl']) ? 'none' : 'table-row');?>">
<td>跳转网址</td>
<td colspan="3"><input name="redirecturl" type="text" id="redirecturl" value="<?php echo $addRow['redirecturl'];?>" class="admin-input-lg"></td>
<tr>
<td>标签</td>
<td><input type="text" name="tags" id="tags" value="<?php echo $tags;?>" class="admin-input-lg">(英文逗号隔开,如:DedeBIZ,得德)</td>
<td>权重</td>
<td><input type="text" name="weight" id="weight" value="<?php echo $arcRow['weight'];?>" class="admin-input-sm">(越小越靠前)</td>
</tr>
<tr id="pictable" style="<?php if ($cInfos['needpic']==0) echo 'display:none';?>">
<td>缩略图</td>
<td colspan="3">
<input name="picname" type="text" id="picname" value="<?php echo $arcRow['litpic']?>" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button id="btnClearAll" type="button" class="btn btn-success btn-sm">清空</button>
<img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '/static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md ml-3">
</td>
</tr>
<tr>
<td>来源</td>
<td>
<input type="text" name="source" id="source" value="<?php echo $arcRow['source']?>" class="admin-input-sm">
<button type="button" name="selsource" id="selsource" class="btn btn-success btn-sm">选择</button>
</td>
<td>编辑</td>
<td>
<input type="text" name="writer" id="writer" value="<?php echo $arcRow['writer']?>" class="admin-input-sm">
<button type="button" class="btn btn-success btn-sm" name="selwriter" id="selwriter">选择</button>
</td>
</tr>
<?php
if ($cInfos['dfcid'] > 0) {
echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}'>";
echo "<input type='hidden' name='typeid2'>";
} else {
?>
<tr>
<td>发布栏目</td>
<td>
<?php
$typeOptions = GetOptionList($arcRow['typeid'],$cuserLogin->getUserChannel(),$channelid);
echo "<select name='typeid' id='typeid' class='admin-input-sm'>";
if ($arcRow["typeid"]=="0") echo "<option value='0' selected>请选择文档栏目</option>";
echo $typeOptions;
echo "</select>";
?>
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid');" class="btn btn-success btn-sm">选择</a>
</td>
<td>金币</td>
<td><input type="text" name="money" id="money" value="<?php echo $arcRow['money']?>" class="admin-input-sm"></td>
</tr>
<?php if ($cfg_need_typeid2=='Y') {?>
<tr>
<td>副栏目</td>
<td colspan="3">
<span id="typeid2ct"></span>
<input type="text" name="typeid2" id="typeid2" value="<?php echo ($arcRow['typeid2']=='0' ? '' : $arcRow['typeid2']);?>" class="admin-input-sm">
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid2','<?php echo $arcRow['typeid2'];?>');" class="btn btn-success btn-sm">选择</a>
</td>
</tr>
<?php }}?>
<tr>
<td>关键词</td>
<td colspan="3"><input type="text" name="keywords" id="keywords" value="<?php echo $arcRow['keywords']?>" class="admin-input-lg"></td>
</tr>
<tr>
<td>描述</td>
<td colspan="3"><textarea name="description" id="description" class="admin-textarea-sm"><?php echo $arcRow['description']?></textarea></td>
</tr>
<tr>
<td>附加选项</td>
<td colspan="3">
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo 'checked';?>> 下载远程图片和资源</label>
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo 'checked';?>> 提取第一个图片为缩略图</label>
</td>
</tr>
<?php PrintAutoFieldsEdit($cInfos['fieldset'],$addRow);?>
<tr>
<td>评论选项</td>
<td>
<label><input type='radio' name='notpost' value='0' <?php if ($arcRow['notpost']==0) echo " checked ";?>> 允许评论</label>
<label><input type='radio' name='notpost' value='1' <?php if ($arcRow['notpost']==1) echo " checked ";?>> 禁止评论</label>
</td>
<td>发布选项</td>
<td>
<label><input name="ishtml" type="radio" value="1" <?php if ($arcRow["ismake"]!=-1) echo 'checked';?>> 静态浏览</label>
<label><input type="radio" name="ishtml" value="0" <?php if ($arcRow["ismake"]==-1) echo 'checked';?>> 动态浏览</label>
</td>
</tr>
<tr>
<td>文档排序</td>
<td><select name="sortup" id="sortup" class="admin-input-sm">
<?php
$subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]);
echo "<option value='0'>正常排序</option>";
if ($subday>0) echo "<option value='$subday' selected>置顶".$subday."天</option>";
?>
<option value="7">置顶一周</option>
<option value="30">置顶一个月</option>
<option value="90">置顶三个月</option>
<option value="180">置顶半年</option>
<option value="360">置顶一年</option>
</select>
</td>
<td>标题颜色</td>
<td>
<input name="color" type="text" id="color" value="<?php echo $arcRow['color']?>" class="admin-input-sm">
<button name="modcolor" type="button" id="modcolor" class="btn btn-success btn-sm" onclick="ShowColor(event,this)">选择</button>
</td>
</tr>
<tr>
<td>浏览权限</td>
<td>
<select name="arcrank" id="arcrank" class="admin-input-sm">
<option value='<?php echo $arcRow["arcrank"]?>'><?php echo $arcRow["rankname"]?></option>
<?php
$urank = $cuserLogin->getUserRank();
$dsql->SetQuery("SELECT * FROM #@__arcrank where adminrank<='$urank' ORDER BY `rank` ASC");
$dsql->Execute();
while($row = $dsql->GetObject()){
echo "<option value='".$row->rank."'>".$row->membername."</option>";
}
?>
</select>
<span>(暂不支持静态)</span>
</td>
<td>文件名称</td>
<td><input type="text" name="filename" id="filename" value="<?php echo $arcRow['filename']?>" class="admin-input-sm">(不包括文件扩展名)</td>
</tr>
<tr>
<td>更新时间</td>
<td>
<?php
$nowtime = GetDateTimeMk(time());
echo "<input name='pubdate' value='$nowtime' type='text' id='pubdate' class='datepicker admin-input-sm'>";
?>
</td>
<td>浏览次数</td>
<td><input type="text" name="click" value="<?php echo $arcRow['click'];?>" class="admin-input-sm"></td>
</tr>
<tr>
<td align="center" colspan="4">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>InitPage();</script>


+ 92
- 90
src/admin/templets/archives_sg_add.htm View File

@@ -19,101 +19,103 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="content_sg_list.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">文档列表</a></li>
<li class="breadcrumb-item active">发布文档</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">发布文档</div>
<div class="card-body">
<form name="form1" action="archives_sg_add.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="channelid" value="<?php echo $channelid?>">
<input type="hidden" name="cid" value="<?php echo $cid?>">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="160"><?php echo $cInfos['titlename'];?></td>
<td width="650"><input type="text" name="title" id="title" class="admin-input-lg" required></td>
<td width="160"></td>
<td></td>
</tr>
<tr>
<td>自定义属性</td>
<td colspan="3">
<?php
$dsql->SetQuery("SELECT * FROM `#@__arcatt` WHERE att<>'j' And att<>'p' ORDER BY sortid ASC");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> ";
}
?>
</td>
</tr>
<tr id="pictable" style="<?php if ($cInfos['needpic']==0) echo 'display:none';?>">
<td>缩略图</td>
<td colspan="3">
<input type="text" name="picname" id="picname" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
<img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md ml-3">
</td>
</tr>
<?php
if ($cInfos['dfcid'] > 0) {
echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}'>";
} else {
?>
<tr>
<td>发布栏目</td>
<td colspan="3">
<span id="typeidct">
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="content_sg_list.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">文档列表</a></li>
<li class="breadcrumb-item active">发布文档</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">发布文档</div>
<div class="card-body">
<form name="form1" action="archives_sg_add.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="channelid" value="<?php echo $channelid?>">
<input type="hidden" name="cid" value="<?php echo $cid?>">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="160"><?php echo $cInfos['titlename'];?></td>
<td width="650"><input type="text" name="title" id="title" class="admin-input-lg" required></td>
<td width="160"></td>
<td></td>
</tr>
<tr>
<td>自定义属性</td>
<td colspan="3">
<?php
$typeOptions = GetOptionList($cid,$cuserLogin->getUserChannel(),$channelid);
echo "<select name='typeid' id='typeid' class='admin-input-sm'>";
echo "<option value='0'>请选择文档栏目</option>";
echo $typeOptions;
echo "</select>";
?>
</span>
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid');" class="btn btn-success btn-sm">选择</a>
</td>
</tr>
<?php }?>
<?php PrintAutoFieldsAdd($cInfos['fieldset'],'autofield');?>
<tr>
<td>浏览权限</td>
<td colspan="3">
<select name="arcrank" id="arcrank" class="admin-input-sm">
<?php
$urank = $cuserLogin->getUserRank();
$dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank'");
$dsql->SetQuery("SELECT * FROM `#@__arcatt` WHERE att<>'j' And att<>'p' ORDER BY sortid ASC");
$dsql->Execute();
while($row = $dsql->GetObject())
while($trow = $dsql->GetObject())
{
$selected = $row->rank == 0 ? ' selected' : '';
echo "<option value='".$row->rank."'{$selected}>".$row->membername."</option>";
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> ";
}
?>
</select>
<span>(暂不支持静态)</span>
</td>
</tr>
<tr>
<td align="center" colspan="4">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</td>
</tr>
<tr id="pictable" style="<?php if ($cInfos['needpic']==0) echo 'display:none';?>">
<td>缩略图</td>
<td colspan="3">
<input type="text" name="picname" id="picname" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
<img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md ml-3">
</td>
</tr>
<?php
if ($cInfos['dfcid'] > 0) {
echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}'>";
} else {
?>
<tr>
<td>发布栏目</td>
<td colspan="3">
<span id="typeidct">
<?php
$typeOptions = GetOptionList($cid,$cuserLogin->getUserChannel(),$channelid);
echo "<select name='typeid' id='typeid' class='admin-input-sm'>";
echo "<option value='0'>请选择文档栏目</option>";
echo $typeOptions;
echo "</select>";
?>
</span>
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid');" class="btn btn-success btn-sm">选择</a>
</td>
</tr>
<?php }?>
<?php PrintAutoFieldsAdd($cInfos['fieldset'],'autofield');?>
<tr>
<td>浏览权限</td>
<td colspan="3">
<select name="arcrank" id="arcrank" class="admin-input-sm">
<?php
$urank = $cuserLogin->getUserRank();
$dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank'");
$dsql->Execute();
while($row = $dsql->GetObject())
{
$selected = $row->rank == 0 ? ' selected' : '';
echo "<option value='".$row->rank."'{$selected}>".$row->membername."</option>";
}
?>
</select>
<span>(暂不支持静态)</span>
</td>
</tr>
<tr>
<td align="center" colspan="4">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 94
- 92
src/admin/templets/archives_sg_edit.htm View File

@@ -19,102 +19,104 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="content_sg_list.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">文档列表</a></li>
<li class="breadcrumb-item active">修改文档</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改<?php echo $addRow['title'];?>文档</div>
<div class="card-body">
<form name="form1" action="archives_sg_edit.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="channelid" value="<?php echo $channelid;?>">
<input type="hidden" name="id" value="<?php echo $aid;?>">
<input type="hidden" name="sortrank" value="<?php echo $addRow['senddate'];?>">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="160"><?php echo $cInfos['titlename'];?></td>
<td width="650"><input type="text" name="title" id="title" value="<?php echo $addRow['title'];?>" class="admin-input-lg" required></td>
<td width="160"></td>
<td></td>
</tr>
<tr>
<td>自定义属性</td>
<td colspan="3">
<?php
$dsql->SetQuery("SELECT * FROM `#@__arcatt` WHERE att<>'j' AND att<>'p' ORDER BY sortid ASC");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
if (preg_match("#".$trow->att."#", $addRow['flag']))
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' checked> {$trow->attname}[{$trow->att}]</label> ";
else
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> ";
}
?>
</td>
</tr>
<tr id="pictable" style="<?php if ($cInfos['needpic']==0) echo 'display:none';?>">
<td>缩略图</td>
<td colspan="3">
<input type="text" name="picname" id="picname" class="admin-input-lg" value="<?php echo $addRow['litpic']?>">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
<img src="<?php if ($addRow['litpic']!='') echo $addRow['litpic']; else echo '/static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md ml-3">
</td>
</tr>
<?php
if ($cInfos['dfcid'] > 0) {
echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}'>";
} else {
?>
<tr>
<td>发布栏目</td>
<td colspan="3">
<?php
$typeOptions = GetOptionList($addRow['typeid'],$cuserLogin->getUserChannel(),$channelid);
echo "<select name='typeid' id='typeid' class='admin-input-sm'>";
if ($addRow["typeid"]=="0") echo "<option value='0' selected>请选择文档栏目</option>";
echo $typeOptions;
echo "</select>";
?>
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid','<?php echo $addRow['typeid'];?>');" class="btn btn-success btn-sm">选择</a>
</td>
</tr>
<?php }?>
<?php PrintAutoFieldsEdit($cInfos['fieldset'],$addRow,'autofield');?>
<tr>
<td>浏览权限</td>
<td colspan="3">
<select name="arcrank" id="arcrank" class="admin-input-sm">
<option value='<?php echo $addRow["arcrank"];?>'><?php echo $addRow["rankname"];?></option>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="content_sg_list.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">文档列表</a></li>
<li class="breadcrumb-item active">修改文档</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改<?php echo $addRow['title'];?>文档</div>
<div class="card-body">
<form name="form1" action="archives_sg_edit.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="channelid" value="<?php echo $channelid;?>">
<input type="hidden" name="id" value="<?php echo $aid;?>">
<input type="hidden" name="sortrank" value="<?php echo $addRow['senddate'];?>">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="160"><?php echo $cInfos['titlename'];?></td>
<td width="650"><input type="text" name="title" id="title" value="<?php echo $addRow['title'];?>" class="admin-input-lg" required></td>
<td width="160"></td>
<td></td>
</tr>
<tr>
<td>自定义属性</td>
<td colspan="3">
<?php
$urank = $cuserLogin->getUserRank();
$dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank' And `rank`<>'{$addRow["arcrank"]}' ");
$dsql->SetQuery("SELECT * FROM `#@__arcatt` WHERE att<>'j' AND att<>'p' ORDER BY sortid ASC");
$dsql->Execute();
while($row = $dsql->GetObject()) {
echo "<option value='".$row->rank."'>".$row->membername."</option>";
while($trow = $dsql->GetObject())
{
if (preg_match("#".$trow->att."#", $addRow['flag']))
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' checked> {$trow->attname}[{$trow->att}]</label> ";
else
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> ";
}
?>
</select>
<span>(暂不支持静态)</span>
</td>
</tr>
<tr>
<td align="center" colspan="4">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</td>
</tr>
<tr id="pictable" style="<?php if ($cInfos['needpic']==0) echo 'display:none';?>">
<td>缩略图</td>
<td colspan="3">
<input type="text" name="picname" id="picname" class="admin-input-lg" value="<?php echo $addRow['litpic']?>">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
<img src="<?php if ($addRow['litpic']!='') echo $addRow['litpic']; else echo '/static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md ml-3">
</td>
</tr>
<?php
if ($cInfos['dfcid'] > 0) {
echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}'>";
} else {
?>
<tr>
<td>发布栏目</td>
<td colspan="3">
<?php
$typeOptions = GetOptionList($addRow['typeid'],$cuserLogin->getUserChannel(),$channelid);
echo "<select name='typeid' id='typeid' class='admin-input-sm'>";
if ($addRow["typeid"]=="0") echo "<option value='0' selected>请选择文档栏目</option>";
echo $typeOptions;
echo "</select>";
?>
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid','<?php echo $addRow['typeid'];?>');" class="btn btn-success btn-sm">选择</a>
</td>
</tr>
<?php }?>
<?php PrintAutoFieldsEdit($cInfos['fieldset'],$addRow,'autofield');?>
<tr>
<td>浏览权限</td>
<td colspan="3">
<select name="arcrank" id="arcrank" class="admin-input-sm">
<option value='<?php echo $addRow["arcrank"];?>'><?php echo $addRow["rankname"];?></option>
<?php
$urank = $cuserLogin->getUserRank();
$dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank' And `rank`<>'{$addRow["arcrank"]}' ");
$dsql->Execute();
while($row = $dsql->GetObject()) {
echo "<option value='".$row->rank."'>".$row->membername."</option>";
}
?>
</select>
<span>(暂不支持静态)</span>
</td>
</tr>
<tr>
<td align="center" colspan="4">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 197
- 195
src/admin/templets/article_add.htm View File

@@ -19,206 +19,208 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">文档列表</a></li>
<li class="breadcrumb-item active">发布文档</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">发布文档</div>
<div class="card-body">
<form name="form1" action="article_add.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="channelid" value="<?php echo $channelid?>">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="160">文档标题</td>
<td width="650"><input type="text" name="title" id="title" value="<?php echo $title;?>" class="admin-input-lg" required></td>
<td width="160">简略标题</td>
<td><input type="text" name="shorttitle" id="shorttitle" class="admin-input-sm"></td>
</tr>
<tr>
<td>自定义属性</td>
<td colspan="3">
<?php
$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
if ($trow->att=='j')
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'> {$trow->attname}[{$trow->att}]</label> ";
else
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> ";
}
?>
</td>
</tr>
<tr id="redirecturltr" style="display:none">
<td>跳转网址</td>
<td colspan="3"><input type="text" name="redirecturl" id="redirecturl" class="admin-input-lg"></td>
</tr>
<tr>
<td>标签</td>
<td><input type="text" name="tags" id="tags" onChange="$Obj('keywords').value=this.value;" class="admin-input-lg">(英文逗号隔开,如:DedeBIZ,得德)</td>
<td>权重</td>
<td><input type="text" name="weight" id="weight" value="<?php echo $maxWright['cc'];?>" class="admin-input-sm">(越小越靠前)</td>
</tr>
<tr id="pictable">
<td>缩略图</td>
<td colspan="3">
<input type="text" name="picname" id="picname" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
<img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md ml-3">
</td>
</tr>
<tr>
<td>来源</td>
<td>
<input type="text" name="source" id="source" value="<?php echo $source;?>" class="admin-input-sm">
<button type="button" name="selsource" id="selsource" class="btn btn-success btn-sm">选择</button>
</td>
<td>编辑</td>
<td>
<input type="text" name="writer" id="writer" value="<?php echo $writer;?>" class="admin-input-sm">
<button type="button" name="selwriter" id="selwriter" class="btn btn-success btn-sm">选择</button>
</td>
</tr>
<tr>
<td>发布栏目</td>
<td>
<span id="typeidct">
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">文档列表</a></li>
<li class="breadcrumb-item active">发布文档</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">发布文档</div>
<div class="card-body">
<form name="form1" action="article_add.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="channelid" value="<?php echo $channelid?>">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="160">文档标题</td>
<td width="650"><input type="text" name="title" id="title" value="<?php echo $title;?>" class="admin-input-lg" required></td>
<td width="160">简略标题</td>
<td><input type="text" name="shorttitle" id="shorttitle" class="admin-input-sm"></td>
</tr>
<tr>
<td>自定义属性</td>
<td colspan="3">
<?php
$typeOptions = GetOptionList($cid,$cuserLogin->getUserChannel(),$channelid);
echo "<select name='typeid' id='typeid' class='admin-input-sm'>";
echo "<option value='0'>请选择文档栏目</option>";
echo $typeOptions;
echo "</select>";
?>
</span>
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid');" class="btn btn-success btn-sm">选择</a>
<?php if ($cfg_need_typeid2=='Y') {echo "<a href='javascript:AddTypeid2();' class='btn btn-success btn-sm'>副栏目</a>";}?>
</td>
<td>金币</td>
<td><input type="text" name="money" id="money" value="0" class="admin-input-sm"></td>
</tr>
<tr id="typeid2tr" style="display:none">
<td>副栏目</td>
<td colspan="3">
<span id="typeid2ct"></span>
<input type="text" name="typeid2" id="typeid2" class="admin-input-sm">
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid2');" class="btn btn-success btn-sm">选择</a>
</td>
</tr>
<tr>
<td>关键词</td>
<td colspan="3">
<input type="text" name="keywords" id="keywords" value="<?php echo $keywords;?>" class="admin-input-lg">
<label><input type="checkbox" name="autokey" onclick="ShowHide('keywords');" id="autokey" value="1" <?php if ($cfg_arc_autokeyword=='Y') echo 'checked';?>> 自动获取</label>
<button type="button" onclick="SelectKeywords('form1.keywords');" class="btn btn-success btn-sm">选择</button>
</td>
</tr>
<tr>
<td>描述</td>
<td colspan="3"><textarea name="description" id="description" class="admin-textarea-sm"><?php echo $description;?></textarea></td>
</tr>
<tr>
<td>附加选项</td>
<td colspan="3">
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo 'checked';?>> 下载远程图片和资源</label>
<label><input type="checkbox" name="dellink" id="dellink" value="1" <?php if ($cfg_arc_dellink=='Y') echo 'checked';?>> 删除非站内链接</label>
<a href="javascript:OpenMyWin('article_allowurl_edit.php');">[配置]</a>
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo 'checked';?>> 提取第一个图片为缩略图</label>
</td>
</tr>
<tr>
<td>分页方式</td>
<td colspan="3">
<label><input type="radio" name="sptype" value="hand" <?php if ($cfg_arcautosp=='N') echo 'checked'?>> 手动</label>
<label><input type="radio" name="sptype" value="auto" <?php if ($cfg_arcautosp=='Y') echo 'checked'?>> 自动</label>
<label>大小:<input name="spsize" type="text" id="spsize" value="<?php echo $cfg_arcautosp_size?>" class="admin-input-sm"> K(分页符为:#p#分页标题#e#)</label>
</td>
</tr>
<?php PrintAutoFieldsAdd($cInfos['fieldset'],'autofield'); ?>
<tr>
<td colspan="4"><?php GetEditor('body',$body,350);?></td>
</tr>
<tr>
<td>评论选项</td>
<td>
<label><input type="radio" name="notpost" value="0" <?php if ($cfg_feedback_forbid=='N') echo 'checked';?>> 允许评论</label>
<label><input type="radio" name="notpost" value="1" <?php if ($cfg_feedback_forbid=='Y') echo 'checked';?>> 禁止评论</label>
</td>
<td>发布选项</td>
<td>
<label><input type="radio" name="ishtml" value="1" checked> 静态浏览</label>
<label><input type="radio" name="ishtml" value="0"> 动态浏览</label>
</td>
</tr>
<tr>
<td>文档排序</td>
<td>
<select name="sortup" id="sortup" class="admin-input-sm">
<option value="0" selected>默认排序</option>
<option value="7">置顶一周</option>
<option value="30">置顶一个月</option>
<option value="90">置顶三个月</option>
<option value="180">置顶半年</option>
<option value="360">置顶一年</option>
</select>
</td>
<td>标题颜色</td>
<td>
<input type="text" name="color" id="color" class="admin-input-sm">
<button type="button" name="modcolor" id="modcolor" class="btn btn-success btn-sm" onclick="ShowColor(event, this)">选择</button>
</td>
</tr>
<tr>
<td>浏览权限</td>
<td>
<select name="arcrank" id="arcrank" class="admin-input-sm">
<?php
$urank = $cuserLogin->getUserRank();
$dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank' ORDER BY `rank` ASC");
$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
$dsql->Execute();
while($row = $dsql->GetObject())
while($trow = $dsql->GetObject())
{
$selected = $row->rank == 0 ? ' selected' : '';
echo "<option value='".$row->rank."'{$selected}>".$row->membername."</option>";
if ($trow->att=='j')
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'> {$trow->attname}[{$trow->att}]</label> ";
else
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> ";
}
?>
</select>
<span>(暂不支持静态)</span>
</td>
<td>文件名称</td>
<td><input type="text" name="filename" id="filename" class="admin-input-sm">(不包括文件扩展名)</td>
<td><?php echo "<input type='hidden' name='templet'>";?></td>
</tr>
<tr>
<td>发布时间</td>
<td>
<?php
$nowtime = GetDateTimeMk(time());
echo "<input type='text' name='pubdate' value='$nowtime'id='pubdate' class='datepicker admin-input-sm'>";
?>
</td>
<td>浏览次数</td>
<td><input type="text" name="click" value="<?php echo ($cfg_arc_click=='-1' ? mt_rand(1000, 6000) : $cfg_arc_click);?>" class="admin-input-sm"></td>
</tr>
<tr>
<td align="center" colspan="4">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</td>
</tr>
<tr id="redirecturltr" style="display:none">
<td>跳转网址</td>
<td colspan="3"><input type="text" name="redirecturl" id="redirecturl" class="admin-input-lg"></td>
</tr>
<tr>
<td>标签</td>
<td><input type="text" name="tags" id="tags" onChange="$Obj('keywords').value=this.value;" class="admin-input-lg">(英文逗号隔开,如:DedeBIZ,得德)</td>
<td>权重</td>
<td><input type="text" name="weight" id="weight" value="<?php echo $maxWright['cc'];?>" class="admin-input-sm">(越小越靠前)</td>
</tr>
<tr id="pictable">
<td>缩略图</td>
<td colspan="3">
<input type="text" name="picname" id="picname" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
<img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md ml-3">
</td>
</tr>
<tr>
<td>来源</td>
<td>
<input type="text" name="source" id="source" value="<?php echo $source;?>" class="admin-input-sm">
<button type="button" name="selsource" id="selsource" class="btn btn-success btn-sm">选择</button>
</td>
<td>编辑</td>
<td>
<input type="text" name="writer" id="writer" value="<?php echo $writer;?>" class="admin-input-sm">
<button type="button" name="selwriter" id="selwriter" class="btn btn-success btn-sm">选择</button>
</td>
</tr>
<tr>
<td>发布栏目</td>
<td>
<span id="typeidct">
<?php
$typeOptions = GetOptionList($cid,$cuserLogin->getUserChannel(),$channelid);
echo "<select name='typeid' id='typeid' class='admin-input-sm'>";
echo "<option value='0'>请选择文档栏目</option>";
echo $typeOptions;
echo "</select>";
?>
</span>
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid');" class="btn btn-success btn-sm">选择</a>
<?php if ($cfg_need_typeid2=='Y') {echo "<a href='javascript:AddTypeid2();' class='btn btn-success btn-sm'>副栏目</a>";}?>
</td>
<td>金币</td>
<td><input type="text" name="money" id="money" value="0" class="admin-input-sm"></td>
</tr>
<tr id="typeid2tr" style="display:none">
<td>副栏目</td>
<td colspan="3">
<span id="typeid2ct"></span>
<input type="text" name="typeid2" id="typeid2" class="admin-input-sm">
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid2');" class="btn btn-success btn-sm">选择</a>
</td>
</tr>
<tr>
<td>关键词</td>
<td colspan="3">
<input type="text" name="keywords" id="keywords" value="<?php echo $keywords;?>" class="admin-input-lg">
<label><input type="checkbox" name="autokey" onclick="ShowHide('keywords');" id="autokey" value="1" <?php if ($cfg_arc_autokeyword=='Y') echo 'checked';?>> 自动获取</label>
<button type="button" onclick="SelectKeywords('form1.keywords');" class="btn btn-success btn-sm">选择</button>
</td>
</tr>
<tr>
<td>描述</td>
<td colspan="3"><textarea name="description" id="description" class="admin-textarea-sm"><?php echo $description;?></textarea></td>
</tr>
<tr>
<td>附加选项</td>
<td colspan="3">
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo 'checked';?>> 下载远程图片和资源</label>
<label><input type="checkbox" name="dellink" id="dellink" value="1" <?php if ($cfg_arc_dellink=='Y') echo 'checked';?>> 删除非站内链接</label>
<a href="javascript:OpenMyWin('article_allowurl_edit.php');">[配置]</a>
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo 'checked';?>> 提取第一个图片为缩略图</label>
</td>
</tr>
<tr>
<td>分页方式</td>
<td colspan="3">
<label><input type="radio" name="sptype" value="hand" <?php if ($cfg_arcautosp=='N') echo 'checked'?>> 手动</label>
<label><input type="radio" name="sptype" value="auto" <?php if ($cfg_arcautosp=='Y') echo 'checked'?>> 自动</label>
<label>大小:<input name="spsize" type="text" id="spsize" value="<?php echo $cfg_arcautosp_size?>" class="admin-input-sm"> K(分页符为:#p#分页标题#e#)</label>
</td>
</tr>
<?php PrintAutoFieldsAdd($cInfos['fieldset'],'autofield'); ?>
<tr>
<td colspan="4"><?php GetEditor('body',$body,350);?></td>
</tr>
<tr>
<td>评论选项</td>
<td>
<label><input type="radio" name="notpost" value="0" <?php if ($cfg_feedback_forbid=='N') echo 'checked';?>> 允许评论</label>
<label><input type="radio" name="notpost" value="1" <?php if ($cfg_feedback_forbid=='Y') echo 'checked';?>> 禁止评论</label>
</td>
<td>发布选项</td>
<td>
<label><input type="radio" name="ishtml" value="1" checked> 静态浏览</label>
<label><input type="radio" name="ishtml" value="0"> 动态浏览</label>
</td>
</tr>
<tr>
<td>文档排序</td>
<td>
<select name="sortup" id="sortup" class="admin-input-sm">
<option value="0" selected>默认排序</option>
<option value="7">置顶一周</option>
<option value="30">置顶一个月</option>
<option value="90">置顶三个月</option>
<option value="180">置顶半年</option>
<option value="360">置顶一年</option>
</select>
</td>
<td>标题颜色</td>
<td>
<input type="text" name="color" id="color" class="admin-input-sm">
<button type="button" name="modcolor" id="modcolor" class="btn btn-success btn-sm" onclick="ShowColor(event, this)">选择</button>
</td>
</tr>
<tr>
<td>浏览权限</td>
<td>
<select name="arcrank" id="arcrank" class="admin-input-sm">
<?php
$urank = $cuserLogin->getUserRank();
$dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank' ORDER BY `rank` ASC");
$dsql->Execute();
while($row = $dsql->GetObject())
{
$selected = $row->rank == 0 ? ' selected' : '';
echo "<option value='".$row->rank."'{$selected}>".$row->membername."</option>";
}
?>
</select>
<span>(暂不支持静态)</span>
</td>
<td>文件名称</td>
<td><input type="text" name="filename" id="filename" class="admin-input-sm">(不包括文件扩展名)</td>
<td><?php echo "<input type='hidden' name='templet'>";?></td>
</tr>
<tr>
<td>发布时间</td>
<td>
<?php
$nowtime = GetDateTimeMk(time());
echo "<input type='text' name='pubdate' value='$nowtime'id='pubdate' class='datepicker admin-input-sm'>";
?>
</td>
<td>浏览次数</td>
<td><input type="text" name="click" value="<?php echo ($cfg_arc_click=='-1' ? mt_rand(1000, 6000) : $cfg_arc_click);?>" class="admin-input-sm"></td>
</tr>
<tr>
<td align="center" colspan="4">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>InitPage();</script>


+ 63
- 61
src/admin/templets/article_description_main.htm View File

@@ -9,67 +9,69 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">自动摘要分页</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">自动摘要分页</div>
<div class="card-body">
<form name="form1" action="article_description_main.php" method="post" target="stafrm">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">文档模型id</td>
<td><input type="text" name="channel" id="channel" value="1" class="admin-input-sm"></td>
</tr>
<tr>
<td>摘要字节</td>
<td><input type="text" name="dsize" id="dsize" class="admin-input-sm" value="<?php echo $cfg_auot_description?>">(最大255字节,自动分页<?php echo $cfg_arcautosp_size?>K)</td>
</tr>
<tr>
<td>数据表</td>
<td><input type="text" name="table" id="table2" value="<?php echo $cfg_dbprefix?>addonarticle" class="admin-input-sm"></td>
</tr>
<tr>
<td>处理字段</td>
<td><input type="text" name="field" id="field2" value="body" class="admin-input-sm"></td>
</tr>
<tr>
<td>最小值</td>
<td><input type="text" name="msize" id="msize2" value="512" class="admin-input-sm">(字节)</td>
</tr>
<tr>
<td>每页更新</td>
<td><input type="text" name="pagesize" id="pagesize" value="100" class="admin-input-sm">(网页)</td>
</tr>
<tr>
<td>文档id</td>
<td>
<label>开始:<input type="text" name="sid" id="sid" class="admin-input-sm"></label>
<label>结束:<input type="text" name="eid" id="eid" class="admin-input-sm"></label>
</td>
</tr>
<tr>
<td>文档操作</td>
<td>
<label><input type="radio" name="dojob" value="des" checked> 自动摘要</label>
<label><input type="radio" name="dojob" value="page"> 自动分页</label>
</td>
</tr>
<tr>
<td colspan="2" align="center"><button type="submit"class="btn btn-success btn-sm">开始执行</button></td>
</tr>
<tr>
<td colspan="2">
<div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">自动摘要分页</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">自动摘要分页</div>
<div class="card-body">
<form name="form1" action="article_description_main.php" method="post" target="stafrm">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">文档模型id</td>
<td><input type="text" name="channel" id="channel" value="1" class="admin-input-sm"></td>
</tr>
<tr>
<td>摘要字节</td>
<td><input type="text" name="dsize" id="dsize" class="admin-input-sm" value="<?php echo $cfg_auot_description?>">(最大255字节,自动分页<?php echo $cfg_arcautosp_size?>K)</td>
</tr>
<tr>
<td>数据表</td>
<td><input type="text" name="table" id="table2" value="<?php echo $cfg_dbprefix?>addonarticle" class="admin-input-sm"></td>
</tr>
<tr>
<td>处理字段</td>
<td><input type="text" name="field" id="field2" value="body" class="admin-input-sm"></td>
</tr>
<tr>
<td>最小值</td>
<td><input type="text" name="msize" id="msize2" value="512" class="admin-input-sm">(字节)</td>
</tr>
<tr>
<td>每页更新</td>
<td><input type="text" name="pagesize" id="pagesize" value="100" class="admin-input-sm">(网页)</td>
</tr>
<tr>
<td>文档id</td>
<td>
<label>开始:<input type="text" name="sid" id="sid" class="admin-input-sm"></label>
<label>结束:<input type="text" name="eid" id="eid" class="admin-input-sm"></label>
</td>
</tr>
<tr>
<td>文档操作</td>
<td>
<label><input type="radio" name="dojob" value="des" checked> 自动摘要</label>
<label><input type="radio" name="dojob" value="page"> 自动分页</label>
</td>
</tr>
<tr>
<td colspan="2" align="center"><button type="submit"class="btn btn-success btn-sm">开始执行</button></td>
</tr>
<tr>
<td colspan="2">
<div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 192
- 190
src/admin/templets/article_edit.htm View File

@@ -19,201 +19,203 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">文档列表</a></li>
<li class="breadcrumb-item active">修改文档</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改<?php echo $arcRow['title'];?>文档</div>
<div class="card-body">
<form name="form1" action="article_edit.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="dopost" value="save">
<input type="hidden" name="channelid" value="<?php echo $channelid?>">
<input type="hidden" name="id" value="<?php echo $aid?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="160">文档标题</td>
<td width="650"><input type="text" name="title" id="title" value="<?php echo $arcRow['title'];?>" class="admin-input-lg" required></td>
<td width="160">简略标题</td>
<td><input type="text" name="shorttitle" id="shorttitle" value="<?php echo $arcRow['shorttitle'];?>" class="admin-input-sm"></td>
</tr>
<tr>
<td>自定义属性</td>
<td colspan="3">
<?php
$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
if ($trow->att=='j') {
$jumpclick = " onclick='ShowUrlTr()'";
} else {
$jumpclick = '';
}
if (preg_match("#".$trow->att."#", $arcRow['flag'])) {
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked> {$trow->attname}[{$trow->att}]</label> ";
} else {
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick}> {$trow->attname}[{$trow->att}]</label> ";
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">文档列表</a></li>
<li class="breadcrumb-item active">修改文档</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改<?php echo $arcRow['title'];?>文档</div>
<div class="card-body">
<form name="form1" action="article_edit.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="dopost" value="save">
<input type="hidden" name="channelid" value="<?php echo $channelid?>">
<input type="hidden" name="id" value="<?php echo $aid?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="160">文档标题</td>
<td width="650"><input type="text" name="title" id="title" value="<?php echo $arcRow['title'];?>" class="admin-input-lg" required></td>
<td width="160">简略标题</td>
<td><input type="text" name="shorttitle" id="shorttitle" value="<?php echo $arcRow['shorttitle'];?>" class="admin-input-sm"></td>
</tr>
<tr>
<td>自定义属性</td>
<td colspan="3">
<?php
$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
if ($trow->att=='j') {
$jumpclick = " onclick='ShowUrlTr()'";
} else {
$jumpclick = '';
}
if (preg_match("#".$trow->att."#", $arcRow['flag'])) {
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked> {$trow->attname}[{$trow->att}]</label> ";
} else {
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick}> {$trow->attname}[{$trow->att}]</label> ";
}
}
}
?>
</td>
</tr>
<tr id="redirecturltr" style="display:<?php echo (empty($addRow['redirecturl']) ? 'none' : 'table-row');?>">
<td>跳转网址</td>
<td colspan="3"><input type="text" name="redirecturl" id="redirecturl" value="<?php echo $addRow['redirecturl']?>" class="admin-input-lg"></td>
</tr>
<tr>
<td>标签</td>
<td><input type="text" name="tags" id="tags" value="<?php echo $tags;?>" class="admin-input-lg">(英文逗号隔开,如:DedeBIZ,得德)</td>
<td>权重</td>
<td><input type="text" name="weight" id="weight" value="<?php echo $arcRow['weight'];?>" class="admin-input-sm">(越小越靠前)</td>
</tr>
<tr id="pictable">
<td>缩略图</td>
<td colspan="3">
<input type="text" name="picname" id="picname" value="<?php echo $arcRow['litpic']?>" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button id="btnClearAll" type="button" class="btn btn-success btn-sm">清空</button>
<img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '/static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md ml-3">
</td>
</tr>
<tr>
<td>来源</td>
<td>
<input type="text" name="source" id="source" value="<?php echo $arcRow['source']?>" class="admin-input-sm">
<button type="button" name="selsource" id="selsource" class="btn btn-success btn-sm">选择</button>
</td>
<td>编辑</td>
<td>
<input type="text" name="writer" id="writer" value="<?php echo $arcRow['writer']?>" class="admin-input-sm">
<button type="button" name="selwriter" id="selwriter" class="btn btn-success btn-sm">选择</button>
</td>
</tr>
<tr>
<td>发布栏目</td>
<td>
<?php
$typeOptions = GetOptionList($arcRow['typeid'],$cuserLogin->getUserChannel(),$channelid);
echo "<select name='typeid' id='typeid' class='admin-input-sm'>";
if ($arcRow["typeid"]=="0") echo "<option value='0' selected>请选择文档栏目</option>";
echo $typeOptions;
echo "</select>";
?>
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid','<?php echo $arcRow['typeid'];?>');" class="btn btn-success btn-sm">选择</a>
</td>
<td>金币</td>
<td><input type="text" name="money" id="money" value="<?php echo $arcRow['money']?>" class="admin-input-sm"></td>
</tr>
<?php if ($cfg_need_typeid2=='Y') {?>
<tr>
<td>副栏目</td>
<td colspan="3">
<span id="typeid2ct"></span>
<input type="text" name="typeid2" id="typeid2" value="<?php echo ($arcRow['typeid2']=='0'?'':$arcRow['typeid2']);?>" class="admin-input-sm">
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid2','<?php echo $arcRow['typeid2'];?>');" class="btn btn-success btn-sm">选择</a>
</td>
</tr>
<?php }?>
<tr>
<td>关键词</td>
<td colspan="3"><input type="text" name="keywords" id="keywords" value="<?php echo $arcRow['keywords']?>" class="admin-input-lg"></td>
</tr>
<tr>
<td>描述</td>
<td colspan="3"><textarea name="description" id="description" class="admin-textarea-sm"><?php echo $arcRow['description']?></textarea></td>
</tr>
<tr>
<td>附加选项</td>
<td colspan="3">
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo 'checked';?>> 下载远程图片和资源</label>
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo 'checked';?>> 提取第一个图片为缩略图</label>
</td>
</tr>
<?php PrintAutoFieldsEdit($cInfos['fieldset'],$addRow,'autofield');?>
<tr>
<td colspan="4"><?php GetEditor('body',stripcslashes($addRow['body']),350);?></td>
</tr>
<tr>
<td>评论选项</td>
<td>
<label><input type="radio" name="notpost" value="0" <?php if ($arcRow['notpost']==0) echo 'checked';?>> 允许评论</label>
<label><input type="radio" name="notpost" value="1" <?php if ($arcRow['notpost']==1) echo 'checked';?>> 禁止评论</label>
</td>
<td>发布选项</td>
<td>
<label><input name="ishtml" type="radio" value="1" <?php if ($arcRow["ismake"]!=-1) echo 'checked';?>> 静态浏览</label>
<label><input type="radio" name="ishtml" value="0" <?php if ($arcRow["ismake"]==-1) echo 'checked';?>> 动态浏览</label>
</td>
</tr>
<tr>
<td>文档排序</td>
<td>
<select name="sortup" id="sortup" class="admin-input-sm">
?>
</td>
</tr>
<tr id="redirecturltr" style="display:<?php echo (empty($addRow['redirecturl']) ? 'none' : 'table-row');?>">
<td>跳转网址</td>
<td colspan="3"><input type="text" name="redirecturl" id="redirecturl" value="<?php echo $addRow['redirecturl']?>" class="admin-input-lg"></td>
</tr>
<tr>
<td>标签</td>
<td><input type="text" name="tags" id="tags" value="<?php echo $tags;?>" class="admin-input-lg">(英文逗号隔开,如:DedeBIZ,得德)</td>
<td>权重</td>
<td><input type="text" name="weight" id="weight" value="<?php echo $arcRow['weight'];?>" class="admin-input-sm">(越小越靠前)</td>
</tr>
<tr id="pictable">
<td>缩略图</td>
<td colspan="3">
<input type="text" name="picname" id="picname" value="<?php echo $arcRow['litpic']?>" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button id="btnClearAll" type="button" class="btn btn-success btn-sm">清空</button>
<img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '/static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md ml-3">
</td>
</tr>
<tr>
<td>来源</td>
<td>
<input type="text" name="source" id="source" value="<?php echo $arcRow['source']?>" class="admin-input-sm">
<button type="button" name="selsource" id="selsource" class="btn btn-success btn-sm">选择</button>
</td>
<td>编辑</td>
<td>
<input type="text" name="writer" id="writer" value="<?php echo $arcRow['writer']?>" class="admin-input-sm">
<button type="button" name="selwriter" id="selwriter" class="btn btn-success btn-sm">选择</button>
</td>
</tr>
<tr>
<td>发布栏目</td>
<td>
<?php
$subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]);
echo "<option value='0'>正常排序</option>";
if ($subday>0) echo "<option value='$subday' selected>置顶".$subday."天</option>";
$typeOptions = GetOptionList($arcRow['typeid'],$cuserLogin->getUserChannel(),$channelid);
echo "<select name='typeid' id='typeid' class='admin-input-sm'>";
if ($arcRow["typeid"]=="0") echo "<option value='0' selected>请选择文档栏目</option>";
echo $typeOptions;
echo "</select>";
?>
<option value="7">置顶一周</option>
<option value="30">置顶一个月</option>
<option value="90">置顶三个月</option>
<option value="180">置顶半年</option>
<option value="360">置顶一年</option>
</select>
</td>
<td>标题颜色</td>
<td>
<input type="text" name="color" id="color" value="<?php echo $arcRow['color']?>" class="admin-input-sm">
<button type="button" name="modcolor" id="modcolor" onclick="ShowColor(event,this);" class="btn btn-success btn-sm">选择</button>
</td>
</tr>
<tr>
<td>浏览权限</td>
<td>
<select name="arcrank" id="arcrank" class="admin-input-sm">
<option value='<?php echo $arcRow["arcrank"]?>'><?php echo $arcRow["rankname"]?> </option>
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid','<?php echo $arcRow['typeid'];?>');" class="btn btn-success btn-sm">选择</a>
</td>
<td>金币</td>
<td><input type="text" name="money" id="money" value="<?php echo $arcRow['money']?>" class="admin-input-sm"></td>
</tr>
<?php if ($cfg_need_typeid2=='Y') {?>
<tr>
<td>副栏目</td>
<td colspan="3">
<span id="typeid2ct"></span>
<input type="text" name="typeid2" id="typeid2" value="<?php echo ($arcRow['typeid2']=='0'?'':$arcRow['typeid2']);?>" class="admin-input-sm">
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid2','<?php echo $arcRow['typeid2'];?>');" class="btn btn-success btn-sm">选择</a>
</td>
</tr>
<?php }?>
<tr>
<td>关键词</td>
<td colspan="3"><input type="text" name="keywords" id="keywords" value="<?php echo $arcRow['keywords']?>" class="admin-input-lg"></td>
</tr>
<tr>
<td>描述</td>
<td colspan="3"><textarea name="description" id="description" class="admin-textarea-sm"><?php echo $arcRow['description']?></textarea></td>
</tr>
<tr>
<td>附加选项</td>
<td colspan="3">
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo 'checked';?>> 下载远程图片和资源</label>
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo 'checked';?>> 提取第一个图片为缩略图</label>
</td>
</tr>
<?php PrintAutoFieldsEdit($cInfos['fieldset'],$addRow,'autofield');?>
<tr>
<td colspan="4"><?php GetEditor('body',stripcslashes($addRow['body']),350);?></td>
</tr>
<tr>
<td>评论选项</td>
<td>
<label><input type="radio" name="notpost" value="0" <?php if ($arcRow['notpost']==0) echo 'checked';?>> 允许评论</label>
<label><input type="radio" name="notpost" value="1" <?php if ($arcRow['notpost']==1) echo 'checked';?>> 禁止评论</label>
</td>
<td>发布选项</td>
<td>
<label><input name="ishtml" type="radio" value="1" <?php if ($arcRow["ismake"]!=-1) echo 'checked';?>> 静态浏览</label>
<label><input type="radio" name="ishtml" value="0" <?php if ($arcRow["ismake"]==-1) echo 'checked';?>> 动态浏览</label>
</td>
</tr>
<tr>
<td>文档排序</td>
<td>
<select name="sortup" id="sortup" class="admin-input-sm">
<?php
$subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]);
echo "<option value='0'>正常排序</option>";
if ($subday>0) echo "<option value='$subday' selected>置顶".$subday."天</option>";
?>
<option value="7">置顶一周</option>
<option value="30">置顶一个月</option>
<option value="90">置顶三个月</option>
<option value="180">置顶半年</option>
<option value="360">置顶一年</option>
</select>
</td>
<td>标题颜色</td>
<td>
<input type="text" name="color" id="color" value="<?php echo $arcRow['color']?>" class="admin-input-sm">
<button type="button" name="modcolor" id="modcolor" onclick="ShowColor(event,this);" class="btn btn-success btn-sm">选择</button>
</td>
</tr>
<tr>
<td>浏览权限</td>
<td>
<select name="arcrank" id="arcrank" class="admin-input-sm">
<option value='<?php echo $arcRow["arcrank"]?>'><?php echo $arcRow["rankname"]?> </option>
<?php
$urank = $cuserLogin->getUserRank();
$dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank' ORDER BY `rank` ASC");
$dsql->Execute();
while($row = $dsql->GetObject()){
echo "<option value='".$row->rank."'>".$row->membername."</option>";
}
?>
</select>
<span>(暂不支持静态)</span>
</td>
<td>文件名称</td>
<td><input type="text" name="filename" id="filename" value="<?php echo $arcRow['filename']?>" class="admin-input-sm">(不包括文件扩展名)</td>
<td><?php echo "<input type='hidden' name='templet' value='{$addRow['templet']}'>";?></td>
</tr>
<tr>
<td>更新时间</td>
<td>
<?php
$urank = $cuserLogin->getUserRank();
$dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank' ORDER BY `rank` ASC");
$dsql->Execute();
while($row = $dsql->GetObject()){
echo "<option value='".$row->rank."'>".$row->membername."</option>";
}
$nowtime = GetDateTimeMk(time());
echo "<input type='text' name='pubdate' value='$nowtime' id='pubdate' class='datepicker admin-input-sm'>";
?>
</select>
<span>(暂不支持静态)</span>
</td>
<td>文件名称</td>
<td><input type="text" name="filename" id="filename" value="<?php echo $arcRow['filename']?>" class="admin-input-sm">(不包括文件扩展名)</td>
<td><?php echo "<input type='hidden' name='templet' value='{$addRow['templet']}'>";?></td>
</tr>
<tr>
<td>更新时间</td>
<td>
<?php
$nowtime = GetDateTimeMk(time());
echo "<input type='text' name='pubdate' value='$nowtime' id='pubdate' class='datepicker admin-input-sm'>";
?>
</td>
<td>浏览次数</td>
<td><input type="text" name="click" value="<?php echo $arcRow['click'];?>" class="admin-input-sm"></td>
</tr>
<tr>
<td align="center" colspan="4">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</td>
<td>浏览次数</td>
<td><input type="text" name="click" value="<?php echo $arcRow['click'];?>" class="admin-input-sm"></td>
</tr>
<tr>
<td align="center" colspan="4">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>InitPage();</script>


+ 60
- 58
src/admin/templets/article_keywords_main.htm View File

@@ -9,65 +9,67 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">文档关键词维护</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form name="form2" action="article_keywords_main.php">
<input type="hidden" name="dopost" value="add">
<input type="text" name="keyword" id="keyword" placeholder="请输入关键词" class="admin-input-lg mr-2">
<input type="text" name="rpurl" id="rpurl" placeholder="请输入链接" class="admin-input-lg mr-2">
<input type="text" name="rank" id="rank" value="30" class="admin-input-sm">
<button type="submit"class="btn btn-success btn-sm">添加</button>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">文档关键词维护</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form name="form2" action="article_keywords_main.php">
<input type="hidden" name="dopost" value="add">
<input type="text" name="keyword" id="keyword" placeholder="请输入关键词" class="admin-input-lg mr-2">
<input type="text" name="rpurl" id="rpurl" placeholder="请输入链接" class="admin-input-lg mr-2">
<input type="text" name="rank" id="rank" value="30" class="admin-input-sm">
<button type="submit"class="btn btn-success btn-sm">添加</button>
</form>
</div>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">文档关键词维护</div>
<div class="card-body">
<form name="form3" action="article_keywords_main.php" method="post">
<input type="hidden" name="dopost" value="saveall">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">关键词</td>
<td scope="col">链接网址</td>
<td scope="col">频率</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td><input type="checkbox" name="aids[]" value="{dede:field.aid/}" checked></td>
<td><input type="hidden" name="keyword_{dede:field.aid/}" value="{dede:field.keyword/}">{dede:field.keyword/}</td>
<td>
<input type="hidden" name="rpurlold_{dede:field.aid/}" value="{dede:field.rpurl/}">
<input type="text" name="rpurl_{dede:field.aid/}" class="w-100" value="{dede:field.rpurl/}">
</td>
<td><input type="text" name="rank_{dede:field.aid/}" class="admin-input-sm" value="{dede:field.rank/}"></td>
<td>
<input type="hidden" name="staold_{dede:field.aid/}" value="{dede:field.sta/}">
<label><input type="checkbox" name="isnouse_{dede:field.aid/}" value="1" {dede:field.sta function="GetSta(@me)"/}> 禁用</label>
<label><input type="checkbox" name="isdel_{dede:field.aid/}" value="1"> 删除</label>
</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="5">
<a href="javascript:selAll();" class="btn btn-success btn-sm">反选</a>
<button type="submit" class="btn btn-success btn-sm">保存</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
<div class="card shadow-sm">
<div class="card-header">文档关键词维护</div>
<div class="card-body">
<form name="form3" action="article_keywords_main.php" method="post">
<input type="hidden" name="dopost" value="saveall">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">关键词</td>
<td scope="col">链接网址</td>
<td scope="col">频率</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td><input type="checkbox" name="aids[]" value="{dede:field.aid/}" checked></td>
<td><input type="hidden" name="keyword_{dede:field.aid/}" value="{dede:field.keyword/}">{dede:field.keyword/}</td>
<td>
<input type="hidden" name="rpurlold_{dede:field.aid/}" value="{dede:field.rpurl/}">
<input type="text" name="rpurl_{dede:field.aid/}" class="w-100" value="{dede:field.rpurl/}">
</td>
<td><input type="text" name="rank_{dede:field.aid/}" class="admin-input-sm" value="{dede:field.rank/}"></td>
<td>
<input type="hidden" name="staold_{dede:field.aid/}" value="{dede:field.sta/}">
<label><input type="checkbox" name="isnouse_{dede:field.aid/}" value="1" {dede:field.sta function="GetSta(@me)"/}> 禁用</label>
<label><input type="checkbox" name="isdel_{dede:field.aid/}" value="1"> 删除</label>
</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="5">
<a href="javascript:selAll();" class="btn btn-success btn-sm">反选</a>
<button type="submit" class="btn btn-success btn-sm">保存</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
</div>
</div>
</div>
<script>


+ 27
- 25
src/admin/templets/article_keywords_select.htm View File

@@ -9,32 +9,34 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<div class="card shadow-sm mb-3">
<div class="card-body">
<input type="text" name="keywords" id="keywords" value="<?php echo $keywords?>" class="admin-input-lg mr-2">
<button type="button" onclick="ReturnValue();" class="btn btn-success btn-sm">选用</button>
<button type="button" onclick="location='article_keywords_main.php';" class="btn btn-success btn-sm">关键词管理</button>
<div class="container-fluid">
<div class="card shadow-sm mb-3">
<div class="card-body">
<input type="text" name="keywords" id="keywords" value="<?php echo $keywords?>" class="admin-input-lg mr-2">
<button type="button" onclick="ReturnValue();" class="btn btn-success btn-sm">选用</button>
<button type="button" onclick="location='article_keywords_main.php';" class="btn btn-success btn-sm">关键词管理</button>
</div>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">文档关键词选择</div>
<div class="card-body">
<form name="form2">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<tbody>
<tr>
<td colspan="2">
{dede:datalist}
<a href="javascript:SelKw('{dede:field.keyword/}')">{dede:field.keyword/}</a>
{/dede:datalist}
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
<div class="card shadow-sm">
<div class="card-header">文档关键词选择</div>
<div class="card-body">
<form name="form2">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<tbody>
<tr>
<td colspan="2">
{dede:datalist}
<a href="javascript:SelKw('{dede:field.keyword/}')">{dede:field.keyword/}</a>
{/dede:datalist}
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
</div>
</div>
</div>
<script>


+ 49
- 47
src/admin/templets/article_result_same.htm View File

@@ -9,53 +9,55 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<div class="card shadow-sm">
<div class="card-header">文档重复检测记录</div>
<div class="card-body">
<form name="form2" method="POST" action="article_test_same.php">
<input type="hidden" name="deltype" value="<?php echo $deltype;?>">
<input type="hidden" name="dopost" value="delsel">
<input type="hidden" name="pagesize" value="<?php echo $pagesize;?>">
<input type="hidden" name="channelid" value="<?php echo $channelid;?>">
<input type="hidden" name="maintable" value="<?php echo $maintable;?>">
<input type="hidden" name="titles">
<div class="table-responsive">
<table class="table table-borderless">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">重复数量</td>
<td scope="col">文档标题</td>
</tr>
</thead>
<tbody>
<?php
while($row = $dsql->GetArray())
{
if ($row['dd']==1 ) break;
?>
<tr>
<td><input type="checkbox" name="arcTitles" id="arcTitle" value="<?php echo urlencode($row['title'])?>"></td>
<td>
<?php
$allarc += $row['dd'];
echo $row['dd'];
?>
</td>
<td><?php echo $row['title'];?></td>
</tr>
<?php }?>
<tr>
<td colspan="3">
<a href="javascript:selAll();" class="btn btn-success btn-sm">全选</a>
<a href="javascript:noSelAll();" class="btn btn-success btn-sm">反选</a>
<a href="javascript:delArc();" class="btn btn-danger btn-sm">删除</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<div class="card shadow-sm">
<div class="card-header">文档重复检测记录</div>
<div class="card-body">
<form name="form2" method="POST" action="article_test_same.php">
<input type="hidden" name="deltype" value="<?php echo $deltype;?>">
<input type="hidden" name="dopost" value="delsel">
<input type="hidden" name="pagesize" value="<?php echo $pagesize;?>">
<input type="hidden" name="channelid" value="<?php echo $channelid;?>">
<input type="hidden" name="maintable" value="<?php echo $maintable;?>">
<input type="hidden" name="titles">
<div class="table-responsive">
<table class="table table-borderless">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">重复数量</td>
<td scope="col">文档标题</td>
</tr>
</thead>
<tbody>
<?php
while($row = $dsql->GetArray())
{
if ($row['dd']==1 ) break;
?>
<tr>
<td><input type="checkbox" name="arcTitles" id="arcTitle" value="<?php echo urlencode($row['title'])?>"></td>
<td>
<?php
$allarc += $row['dd'];
echo $row['dd'];
?>
</td>
<td><?php echo $row['title'];?></td>
</tr>
<?php }?>
<tr>
<td colspan="3">
<a href="javascript:selAll();" class="btn btn-success btn-sm">全选</a>
<a href="javascript:noSelAll();" class="btn btn-success btn-sm">反选</a>
<a href="javascript:delArc();" class="btn btn-danger btn-sm">删除</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>


+ 51
- 49
src/admin/templets/article_test_same.htm View File

@@ -9,56 +9,58 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">文档重复检测</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">文档重复检测</div>
<div class="card-body">
<form name="form1" action="article_test_same.php" target="stafrm">
<input type="hidden" name="dopost" value="analyse">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">模型类型</td>
<td>
<select name="channelid" class="admin-input-sm">
<?php
if (!empty($channelinfos)) {
foreach($channelinfos as $rs)
{
echo "<option value=".$rs['id'].">".$rs['typename']."</option>";
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">文档重复检测</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">文档重复检测</div>
<div class="card-body">
<form name="form1" action="article_test_same.php" target="stafrm">
<input type="hidden" name="dopost" value="analyse">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">模型类型</td>
<td>
<select name="channelid" class="admin-input-sm">
<?php
if (!empty($channelinfos)) {
foreach($channelinfos as $rs)
{
echo "<option value=".$rs['id'].">".$rs['typename']."</option>";
}
}
}
?>
</select>
</td>
</tr>
<tr>
<td>每排列出记录</td>
<td><input type="text" name="pagesize" id="pagesize" value="100" class="admin-input-sm">(文档)</td>
</tr>
<tr>
<td>删除选项</td>
<td>
<label><input type="radio" name="deltype" value="delnew" checked> 保留最旧的一条</label>
<label><input type="radio" name="deltype" value="delold"> 保留最新的一条</label>
</td>
</tr>
<tr>
<td colspan="2" align="center"><button type="submit"class="btn btn-success btn-sm">开始执行</button></td>
</tr>
<tr>
<td colspan="2">
<div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
</td>
</tr>
</tbody>
</table>
</div>
</form>
?>
</select>
</td>
</tr>
<tr>
<td>每排列出记录</td>
<td><input type="text" name="pagesize" id="pagesize" value="100" class="admin-input-sm">(文档)</td>
</tr>
<tr>
<td>删除选项</td>
<td>
<label><input type="radio" name="deltype" value="delnew" checked> 保留最旧的一条</label>
<label><input type="radio" name="deltype" value="delold"> 保留最新的一条</label>
</td>
</tr>
<tr>
<td colspan="2" align="center"><button type="submit"class="btn btn-success btn-sm">开始执行</button></td>
</tr>
<tr>
<td colspan="2">
<div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 59
- 57
src/admin/templets/cards_make.htm View File

@@ -9,63 +9,65 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="cards_manage.php">积分产品管理</a></li>
<li class="breadcrumb-item active">生成积分</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">生成积分</div>
<div class="card-body">
<form name="form1" action="cards_make.php" target="stafrm">
<input type="hidden" name="dopost" value="make">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">积分类型</td>
<td>
<select name="cardtype" class="admin-input-sm">
<?php
$dsql->SetQuery("SELECT * FROM `#@__moneycard_type`");
$dsql->Execute();
while($row=$dsql->GetArray()){
echo " <option value='{$row['tid']}'>{$row['pname']}</option>";
}
$dsql->Close();
?>
</select>
</td>
<td width="160">生成数量</td>
<td><input name="mnum" type="text" id="mnum" class="admin-input-sm" value="100"></td>
</tr>
<tr>
<td>积分前缀</td>
<td><input name="snprefix" type="text" id="snprefix" class="admin-input-sm" value="TY"></td>
<td>密码长度</td>
<td><input name="pwdlen" type="text" id="pwdlen" class="admin-input-sm" value="4"></td>
</tr>
<tr>
<td>密码类型</td>
<td>
<label><input type="radio" name="ctype" value="1"> 纯数字</label>
<label><input type="radio" name="ctype" value="2" checked> 大写字母</label>
</td>
<td>密码组数</td>
<td><input name="pwdgr" type="text" id="pwdgr" class="admin-input-sm" value="3"></td>
</tr>
<tr>
<td colspan="4" align="center" align="py-2"><button type="submit"class="btn btn-success btn-sm">开始执行</button></td>
</tr>
<tr>
<td colspan="4">
<div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="cards_manage.php">积分产品管理</a></li>
<li class="breadcrumb-item active">生成积分</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">生成积分</div>
<div class="card-body">
<form name="form1" action="cards_make.php" target="stafrm">
<input type="hidden" name="dopost" value="make">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">积分类型</td>
<td>
<select name="cardtype" class="admin-input-sm">
<?php
$dsql->SetQuery("SELECT * FROM `#@__moneycard_type`");
$dsql->Execute();
while($row=$dsql->GetArray()){
echo " <option value='{$row['tid']}'>{$row['pname']}</option>";
}
$dsql->Close();
?>
</select>
</td>
<td width="160">生成数量</td>
<td><input name="mnum" type="text" id="mnum" class="admin-input-sm" value="100"></td>
</tr>
<tr>
<td>积分前缀</td>
<td><input name="snprefix" type="text" id="snprefix" class="admin-input-sm" value="TY"></td>
<td>密码长度</td>
<td><input name="pwdlen" type="text" id="pwdlen" class="admin-input-sm" value="4"></td>
</tr>
<tr>
<td>密码类型</td>
<td>
<label><input type="radio" name="ctype" value="1"> 纯数字</label>
<label><input type="radio" name="ctype" value="2" checked> 大写字母</label>
</td>
<td>密码组数</td>
<td><input name="pwdgr" type="text" id="pwdgr" class="admin-input-sm" value="3"></td>
</tr>
<tr>
<td colspan="4" align="center" align="py-2"><button type="submit"class="btn btn-success btn-sm">开始执行</button></td>
</tr>
<tr>
<td colspan="4">
<div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 55
- 54
src/admin/templets/cards_manmage.htm View File

@@ -9,61 +9,62 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">积分产品管理</li>
</ol>

<div class="card shadow-sm mb-3">
<div class="card-body">
<a href="cards_manage.php" class="btn btn-success btn-sm">全部</a>
<a href="cards_manage.php?isexp=0" class="btn btn-success btn-sm">未使用</a>
<a href="cards_manage.php?isexp=1" class="btn btn-success btn-sm">已售出</a>
<a href="cards_manage.php?isexp=-1" class="btn btn-success btn-sm">已使用</a>
<a href="cards_make.php" class="btn btn-success btn-sm">生成积分</a>
<a href="cards_type.php" class="btn btn-success btn-sm">积分产品分类</a>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">积分产品管理</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<a href="cards_manage.php" class="btn btn-success btn-sm">全部</a>
<a href="cards_manage.php?isexp=0" class="btn btn-success btn-sm">未使用</a>
<a href="cards_manage.php?isexp=1" class="btn btn-success btn-sm">已售出</a>
<a href="cards_manage.php?isexp=-1" class="btn btn-success btn-sm">已使用</a>
<a href="cards_make.php" class="btn btn-success btn-sm">生成积分</a>
<a href="cards_type.php" class="btn btn-success btn-sm">积分产品分类</a>
</div>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">积分产品管理</div>
<div class="card-body">
<form name="form1">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">卡号</td>
<td scope="col">积分类型</td>
<td scope="col">生成日期</td>
<td scope="col">使用日期</td>
<td scope="col">状态</td>
<td scope="col">使用会员</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td><input type="checkbox" name="aids" value="{dede:field.aid/}"></td>
<td>{dede:field.cardid/}</td>
<td><?php echo $TypeNames[$fields['ctid']]?></td>
<td>{dede:field.mtime function='GetDateMk(@me)'/}</td>
<td>{dede:field.utime function='GetUseDate(@me)'/}</td>
<td>{dede:field.isexp function='GetSta(@me)'/}</td>
<td>{dede:field.uid function='GetMemberID(@me)'/}</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="7">
<a href="javascript:ReSel();" class="btn btn-success btn-sm">反选</a>
<a href="javascript:DelSel();" class="btn btn-danger btn-sm">删除</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
<div class="card shadow-sm">
<div class="card-header">积分产品管理</div>
<div class="card-body">
<form name="form1">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">卡号</td>
<td scope="col">积分类型</td>
<td scope="col">生成日期</td>
<td scope="col">使用日期</td>
<td scope="col">状态</td>
<td scope="col">使用会员</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td><input type="checkbox" name="aids" value="{dede:field.aid/}"></td>
<td>{dede:field.cardid/}</td>
<td><?php echo $TypeNames[$fields['ctid']]?></td>
<td>{dede:field.mtime function='GetDateMk(@me)'/}</td>
<td>{dede:field.utime function='GetUseDate(@me)'/}</td>
<td>{dede:field.isexp function='GetSta(@me)'/}</td>
<td>{dede:field.uid function='GetMemberID(@me)'/}</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="7">
<a href="javascript:ReSel();" class="btn btn-success btn-sm">反选</a>
<a href="javascript:DelSel();" class="btn btn-danger btn-sm">删除</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
</div>
</div>
</div>
<script>


+ 56
- 54
src/admin/templets/cards_type.htm View File

@@ -9,60 +9,62 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="cards_manage.php">积分产品管理</a></li>
<li class="breadcrumb-item active">积分产品分类</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">积分产品管理</div>
<div class="card-body">
<form name="form1" action="cards_type.php" method="post">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<thead>
<tr>
<td scope="col">产品名称</td>
<td scope="col">金币点数</td>
<td scope="col">价格</td>
<td scope="col">状态</td>
</tr>
</thead>
<tbody>
<?php
$dsql->SetQuery("SELECT * FROM `#@__moneycard_type`");
$dsql->Execute();
$k=0;
while($row = $dsql->GetObject())
{
$k++;
?>
<input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->tid?>">
<tr>
<td><input type="text" name="pname_<?php echo $k?>" value="<?php echo $row->pname?>" class="w-100" id="pname_<?php echo $k?>"></td>
<td><input type="text" name="num_<?php echo $k?>" value="<?php echo $row->num?>" class="w-100" id="num_<?php echo $k?>"></td>
<td><input type="text" name="money_<?php echo $k?>" value="<?php echo $row->money?>" class="w-75" id="money_<?php echo $k?>">(元)</td>
<td><input type="checkbox" name="check_<?php echo $k?>" id="check_<?php echo $k?>" value="1" checked> 保留</td>
</tr>
<?php }?>
<input type="hidden" name="idend" value="<?php echo $k?>">
<tr>
<td><input type="text" name="pname_new" class="w-100" id="pname_new"></td>
<td><input type="text" name="num_new" class="w-100" id="num_new" value="100"></td>
<td><input type="text" name="money_new" class="w-75" id="money_new" value="30">(元)</td>
<td align="center"><input type="checkbox" name="check_new" id="check_new" value="1" checked> 新增</td>
</tr>
<tr>
<td colspan="4" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<a href="cards_manage.php" class="btn btn-outline-success btn-sm">返回</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="cards_manage.php">积分产品管理</a></li>
<li class="breadcrumb-item active">积分产品分类</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">积分产品管理</div>
<div class="card-body">
<form name="form1" action="cards_type.php" method="post">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<thead>
<tr>
<td scope="col">产品名称</td>
<td scope="col">金币点数</td>
<td scope="col">价格</td>
<td scope="col">状态</td>
</tr>
</thead>
<tbody>
<?php
$dsql->SetQuery("SELECT * FROM `#@__moneycard_type`");
$dsql->Execute();
$k=0;
while($row = $dsql->GetObject())
{
$k++;
?>
<input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->tid?>">
<tr>
<td><input type="text" name="pname_<?php echo $k?>" value="<?php echo $row->pname?>" class="w-100" id="pname_<?php echo $k?>"></td>
<td><input type="text" name="num_<?php echo $k?>" value="<?php echo $row->num?>" class="w-100" id="num_<?php echo $k?>"></td>
<td><input type="text" name="money_<?php echo $k?>" value="<?php echo $row->money?>" class="w-75" id="money_<?php echo $k?>">(元)</td>
<td><input type="checkbox" name="check_<?php echo $k?>" id="check_<?php echo $k?>" value="1" checked> 保留</td>
</tr>
<?php }?>
<input type="hidden" name="idend" value="<?php echo $k?>">
<tr>
<td><input type="text" name="pname_new" class="w-100" id="pname_new"></td>
<td><input type="text" name="num_new" class="w-100" id="num_new" value="100"></td>
<td><input type="text" name="money_new" class="w-75" id="money_new" value="30">(元)</td>
<td align="center"><input type="checkbox" name="check_new" id="check_new" value="1" checked> 新增</td>
</tr>
<tr>
<td colspan="4" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<a href="cards_manage.php" class="btn btn-outline-success btn-sm">返回</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 269
- 267
src/admin/templets/catalog_add.htm View File

@@ -12,283 +12,285 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="catalog_main.php">网站栏目管理</a></li>
<li class="breadcrumb-item active">添加栏目</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">添加栏目</div>
<div class="card-body">
<form name="form1" action="catalog_add.php" method="post">
<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']}'>";
}
?>
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="10%">是否支持投稿</td>
<td width="40%">
<label><input type="radio" name="issend" value="1" <?php if ($issend==1) echo " checked ";?>> 支持</label>
<label><input type="radio" name="issend" value="0" <?php if ($issend==0) echo " checked ";?>> 不支持</label>
</td>
<td width="10%">是否隐藏栏目</td>
<td width="40%">
<label><input type="radio" name="ishidden" value="0" checked> 显示</label>
<label><input type="radio" name="ishidden" value="1"> 隐藏</label>
</td>
</tr>
<tr>
<td>文档模型</td>
<td>
<input type="hidden" value="{style}" name="dfstyle">
<select name="channeltype" id="channeltype" onChange="ParTemplet(this);" class="admin-input-sm">
<?php
foreach($channelArray as $k=>$arr)
{
if ($k==$channelid) {
$nid = $arr['nid'];
echo " <option value='{$k}' selected>{$arr['typename']} {$arr['nid']}</option>";
} else {
echo " <option value='{$k}'>{$arr['typename']} {$arr['nid']}</option>";
}
}
?>
</select>
<div id="smclass" class="mt-2" style="<?php echo ($channelid<0 ? '' : 'display:none');?>">
<select name="smalltype[]" multiple="yes" class="admin-input-lg">
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="catalog_main.php">网站栏目管理</a></li>
<li class="breadcrumb-item active">添加栏目</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">添加栏目</div>
<div class="card-body">
<form name="form1" action="catalog_add.php" method="post">
<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']}'>";
}
?>
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="10%">是否支持投稿</td>
<td width="40%">
<label><input type="radio" name="issend" value="1" <?php if ($issend==1) echo " checked ";?>> 支持</label>
<label><input type="radio" name="issend" value="0" <?php if ($issend==0) echo " checked ";?>> 不支持</label>
</td>
<td width="10%">是否隐藏栏目</td>
<td width="40%">
<label><input type="radio" name="ishidden" value="0" checked> 显示</label>
<label><input type="radio" name="ishidden" value="1"> 隐藏</label>
</td>
</tr>
<tr>
<td>文档模型</td>
<td>
<input type="hidden" value="{style}" name="dfstyle">
<select name="channeltype" id="channeltype" onChange="ParTemplet(this);" class="admin-input-sm">
<?php
$sql = "SELECT * FROM `#@__sys_enum` WHERE egroup LIKE 'infotype' ORDER BY disorder ASC,evalue ASC ";
$dsql->Execute('s',$sql);
while($arr = $dsql->GetArray('s'))
foreach($channelArray as $k=>$arr)
{
if ($arr['evalue']%500==0) {
echo "<option value='{$arr['evalue']}'>{$arr['ename']}</option>";
} else if (preg_match("#\.#", $arr['evalue'])) {
echo "<option value='{$arr['evalue']}'>└── {$arr['ename']}</option>";
if ($k==$channelid) {
$nid = $arr['nid'];
echo " <option value='{$k}' selected>{$arr['typename']} {$arr['nid']}</option>";
} else {
echo "<option value='{$arr['evalue']}'>└─ {$arr['ename']}</option>";
echo " <option value='{$k}'>{$arr['typename']} {$arr['nid']}</option>";
}
}
?>
</select>
<span>(请选栏目的信息联动类型支持多选)</span>
</div>
</td>
<td>上级目录</td>
<td>
<?php
$pardir = '{cmspath}'.$cfg_arcdir;
if (!empty($typedir)) $pardir = $typedir.'/';
$pardir = preg_replace("#\/{1,}#", '/', $pardir);
echo $pardir;
?>
<input type="hidden" name="nextdir" id="nextdir" value="<?php echo $pardir?>">
</td>
</tr>
<tr>
<td>中文名称</td>
<td><input type="text" name="typename" class="admin-input-lg" required></td>
<td>中文概述</td>
<td><input type="text" name="cnoverview" class="admin-input-lg"></td>
</tr>
<tr>
<td>英文名称</td>
<td><input type="text" name="enname" class="admin-input-lg"></td>
<td>英文概述</td>
<td><input type="text" name="enoverview" class="admin-input-lg"></td>
</tr>
<tr>
<td>栏目大图</td>
<td>
<input type="text" name="bigpic" class="admin-input-lg">
<button type="button" class="btn btn-success btn-sm" onclick="SelectImage('form1.bigpic');">选择</button>
</td>
<td>栏目小图</td>
<td>
<input type="text" name="litimg" class="admin-input-lg">
<button type="button" class="btn btn-success btn-sm" onclick="SelectImage('form1.litimg');">选择</button>
</td>
</tr>
<tr>
<td>排列顺序</td>
<td><input type="text" name="sortrank" class="admin-input-sm">(由低到高)</td>
<td>浏览权限</td>
<td>
<select name="corank" id="corank" class="admin-input-sm">
<div id="smclass" class="mt-2" style="<?php echo ($channelid<0 ? '' : 'display:none');?>">
<select name="smalltype[]" multiple="yes" class="admin-input-lg">
<?php
$sql = "SELECT * FROM `#@__sys_enum` WHERE egroup LIKE 'infotype' ORDER BY disorder ASC,evalue ASC ";
$dsql->Execute('s',$sql);
while($arr = $dsql->GetArray('s'))
{
if ($arr['evalue']%500==0) {
echo "<option value='{$arr['evalue']}'>{$arr['ename']}</option>";
} else if (preg_match("#\.#", $arr['evalue'])) {
echo "<option value='{$arr['evalue']}'>└── {$arr['ename']}</option>";
} else {
echo "<option value='{$arr['evalue']}'>└─ {$arr['ename']}</option>";
}
}
?>
</select>
<span>(请选栏目的信息联动类型支持多选)</span>
</div>
</td>
<td>上级目录</td>
<td>
<?php
$dsql->SetQuery("SELECT * FROM `#@__arcrank` WHERE `rank` >= 0 ORDER BY `rank` ASC");
$dsql->Execute('cc');
while($row = $dsql->GetObject('cc')) {
if ($corank==$row->rank) echo "<option value='".$row->rank."' selected>".$row->membername."</option>";
else {
if ($corank==0){
echo "<option value='".$row->rank."'>".$row->membername."</option>";
$pardir = '{cmspath}'.$cfg_arcdir;
if (!empty($typedir)) $pardir = $typedir.'/';
$pardir = preg_replace("#\/{1,}#", '/', $pardir);
echo $pardir;
?>
<input type="hidden" name="nextdir" id="nextdir" value="<?php echo $pardir?>">
</td>
</tr>
<tr>
<td>中文名称</td>
<td><input type="text" name="typename" class="admin-input-lg" required></td>
<td>中文概述</td>
<td><input type="text" name="cnoverview" class="admin-input-lg"></td>
</tr>
<tr>
<td>英文名称</td>
<td><input type="text" name="enname" class="admin-input-lg"></td>
<td>英文概述</td>
<td><input type="text" name="enoverview" class="admin-input-lg"></td>
</tr>
<tr>
<td>栏目大图</td>
<td>
<input type="text" name="bigpic" class="admin-input-lg">
<button type="button" class="btn btn-success btn-sm" onclick="SelectImage('form1.bigpic');">选择</button>
</td>
<td>栏目小图</td>
<td>
<input type="text" name="litimg" class="admin-input-lg">
<button type="button" class="btn btn-success btn-sm" onclick="SelectImage('form1.litimg');">选择</button>
</td>
</tr>
<tr>
<td>排列顺序</td>
<td><input type="text" name="sortrank" class="admin-input-sm">(由低到高)</td>
<td>浏览权限</td>
<td>
<select name="corank" id="corank" class="admin-input-sm">
<?php
$dsql->SetQuery("SELECT * FROM `#@__arcrank` WHERE `rank` >= 0 ORDER BY `rank` ASC");
$dsql->Execute('cc');
while($row = $dsql->GetObject('cc')) {
if ($corank==$row->rank) echo "<option value='".$row->rank."' selected>".$row->membername."</option>";
else {
if ($corank==0){
echo "<option value='".$row->rank."'>".$row->membername."</option>";
}
}
}
}
?>
</select>
<span>(暂不支持静态)</span>
</td>
</tr>
<tr>
<td>栏目生成目录</td>
<td>
<input type="text" name="typedir" id="typedir" class="admin-input-lg">
<label for="upinyin"><input type="checkbox" name="upinyin" id="upinyin" value="1" onclick="CheckTypeDir();"> 拼音</label>
</td>
<td>目录相对位置</td>
<td>
<label><input type="radio" name="referpath" value="parent" checked> 上级目录</label>
<?php if ($moresite==0) {?>
<label><input type="radio" name="referpath" value="cmspath"> 系统根目录</label>
<label><input type="radio" name="referpath" value="basepath"> 站点根目录</label>
<?php }?>
</td>
</tr>
<tr>
<td>栏目列表选项</td>
<td>
<label><input type="radio" name="isdefault" value="1" checked> 静态浏览</label>
<label><input type="radio" name="isdefault" value="-1"> 动态浏览</label>
<label><input type="radio" name="isdefault" value="0"> 列表第一页浏览</label>
</td>
<td>默认页的名称</td>
<td><input type="text" name="defaultname" value="index.html" class="admin-input-lg"></td>
</tr>
<tr>
<td>栏目属性</td>
<td>
<label><input type="radio" name="ispart" value="0" checked> 列表栏目(允许发布)</label>
<label><input type="radio" name="ispart" value="1"> 封面栏目(不允许发布)</label>
<label><input type="radio" name="ispart" id="ispart2" value="2"> 外部栏目(栏目生成目录填写链接)</label>
</td>
<td>栏目交叉</td>
<td>
<label><input type="radio" name="cross" id="cross0" value="0" onclick="CheckCross();" checked> 不交叉</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>
<a href="javascript:ShowHide('helpvarco');" class="btn btn-success btn-sm">说明</a>
<div id="crossid" style="display:none"><textarea name="crossid" class="admin-textarea-sm"></textarea></div>
<div id="helpvarco" class="alert alert-secondary my-2" style="display:none">交叉栏目该栏目与另一个非子栏目交叉的情况,相当于副栏目功能</div>
</td>
</tr>
<?php if ($id==0) {?>
<tr>
<td>多站点支持</td>
<td>
<label><input type="radio" name="moresite" value="1"> 启用</label>
<label><input type="radio" name="moresite" value="0" checked> 不启用</label>
<span>(需要绑定二级域名,系统变量中开启支持多站点)</span>
</td>
<td>绑定域名</td>
<td><input type="text" name="siteurl" id="siteurl" onChange="CheckPathSet();" class="admin-input-lg">(请输入绑定域名http开头)</td>
</tr>
<?php }?>
<tr>
<td>列表模板</td>
<td>
<input type="text" name="templist" value="{style}/list_<?php echo $nid?>.htm" class="admin-input-lg">
<button type="button" class="btn btn-success btn-sm" onclick="SelectTemplets('form1.templist')">选择</button>
</td>
<td>封面模板</td>
<td>
<input type="text" name="tempindex" value="{style}/index_<?php echo $nid?>.htm" class="admin-input-lg">
<button type="button" class="btn btn-success btn-sm" onclick="SelectTemplets('form1.tempindex')">选择</button>
<a href="javascript:ShowHide('helpvar1');" class="btn btn-success btn-sm">说明</a>
<div id="helpvar1" class="alert alert-secondary my-2" style="display:none">
<p>{tid} 栏目id</p>
<span>{cid} 栏目模型名字id</span>
</div>
</td>
</tr>
<tr>
<td>文档模板</td>
<td>
<input type="text" name="temparticle" value="{style}/article_<?php echo $nid?>.htm" class="admin-input-lg">
<button type="button" class="btn btn-success btn-sm" onclick="SelectTemplets('form1.temparticle')">选择</button>
</td>
<td>列表命名规则</td>
<td>
<input type="text" name="namerule2" id="namerule2" value="{typedir}/{tid}-{page}.html" class="admin-input-lg">
<a href="javascript:ShowHide('helpvar2');" class="btn btn-success btn-sm">说明</a>
<div id="helpvar2" class="alert alert-secondary my-2" style="display:none">
<p>静态规则</p>
<p>{tid} 栏目id</p>
<p>{page} 栏目页码数</p>
<p>伪静态规则(Nginx)</p>
<p>rewrite ^/list-([0-9]+)$ /apps/list.php?tid=$1;</p>
<span>rewrite ^/list-([0-9]+)-([0-9]+)$ /apps/list.php?tid=$1&PageNo=$2;</span>
</div>
</td>
</tr>
<tr>
<td>文档命名规则</td>
<td>
<input type="text" name="namerule" tid="namerule" value="<?php echo $cfg_df_namerule;?>" class="admin-input-lg">
<a href="javascript:ShowHide('helpvar3');" class="btn btn-success btn-sm">说明</a>
<div id="helpvar3" class="alert alert-secondary my-2" style="display:none">
<p>静态规则</p>
<p>{Y}{M}{D} 年月日</p>
<p>{timestamp} INT类型的UNIX时间戳</p>
<p>{aid} 文档id</p>
<p>{pinyin} 拼音加文档id</p>
<p>{py} 拼音部首加文档id</p>
<p>{typedir} 栏目保存目录</p>
<p>{cc} 日期加混编id后用转换为适合字母</p>
<p>伪静态规则(Nginx)</p>
<p>rewrite ^/doc-([0-9]+).html$ /apps/view.php?arcID=$1;</p>
<span>rewrite ^/doc-([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2;</span>
</div>
</td>
<td>SEO标题</td>
<td><input type="text" name="seotitle" id="seotitle" class="admin-input-lg">(标签{dede:field.seotitle/}调用)</td>
</tr>
<tr>
<td>关键词</td>
<td>
<textarea name="keywords" id="keywords" class="admin-textarea-sm"></textarea>
<span>(标签{dede:field.keywords/}调用)</span>
</td>
<td>描述</td>
<td>
<textarea name="description" id="description" class="admin-textarea-sm"></textarea>
<span>(标签{dede:field.description/}调用)</span>
</td>
</tr>
<tr>
<td>栏目文档</td>
<td>(标签{dede:field.content/}调用)</td>
<td>是否支持跨站调用</td>
<td>
<input type="text" name="apikey" id="apikey" class="admin-input-lg" placeholder="请输入跨站调用秘钥">
<label><input type="radio" name="apienabled" value="1"> 支持</label>
<label><input type="radio" name="apienabled" value="0" checked> 不支持</label>
<a href="javascript:makeAPIKey();" class="btn btn-success btn-sm">更新</i></a>
</td>
</tr>
<tr>
<td colspan="4"><?php GetEditor("content","","400","Default","print","false");?></td>
</tr>
<tr>
<td colspan="4" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<a href="catalog_main.php" class="btn btn-outline-success btn-sm">返回</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
?>
</select>
<span>(暂不支持静态)</span>
</td>
</tr>
<tr>
<td>栏目生成目录</td>
<td>
<input type="text" name="typedir" id="typedir" class="admin-input-lg">
<label for="upinyin"><input type="checkbox" name="upinyin" id="upinyin" value="1" onclick="CheckTypeDir();"> 拼音</label>
</td>
<td>目录相对位置</td>
<td>
<label><input type="radio" name="referpath" value="parent" checked> 上级目录</label>
<?php if ($moresite==0) {?>
<label><input type="radio" name="referpath" value="cmspath"> 系统根目录</label>
<label><input type="radio" name="referpath" value="basepath"> 站点根目录</label>
<?php }?>
</td>
</tr>
<tr>
<td>栏目列表选项</td>
<td>
<label><input type="radio" name="isdefault" value="1" checked> 静态浏览</label>
<label><input type="radio" name="isdefault" value="-1"> 动态浏览</label>
<label><input type="radio" name="isdefault" value="0"> 列表第一页浏览</label>
</td>
<td>默认页的名称</td>
<td><input type="text" name="defaultname" value="index.html" class="admin-input-lg"></td>
</tr>
<tr>
<td>栏目属性</td>
<td>
<label><input type="radio" name="ispart" value="0" checked> 列表栏目(允许发布)</label>
<label><input type="radio" name="ispart" value="1"> 封面栏目(不允许发布)</label>
<label><input type="radio" name="ispart" id="ispart2" value="2"> 外部栏目(栏目生成目录填写链接)</label>
</td>
<td>栏目交叉</td>
<td>
<label><input type="radio" name="cross" id="cross0" value="0" onclick="CheckCross();" checked> 不交叉</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>
<a href="javascript:ShowHide('helpvarco');" class="btn btn-success btn-sm">说明</a>
<div id="crossid" style="display:none"><textarea name="crossid" class="admin-textarea-sm"></textarea></div>
<div id="helpvarco" class="alert alert-secondary my-2" style="display:none">交叉栏目该栏目与另一个非子栏目交叉的情况,相当于副栏目功能</div>
</td>
</tr>
<?php if ($id==0) {?>
<tr>
<td>多站点支持</td>
<td>
<label><input type="radio" name="moresite" value="1"> 启用</label>
<label><input type="radio" name="moresite" value="0" checked> 不启用</label>
<span>(需要绑定二级域名,系统变量中开启支持多站点)</span>
</td>
<td>绑定域名</td>
<td><input type="text" name="siteurl" id="siteurl" onChange="CheckPathSet();" class="admin-input-lg">(请输入绑定域名http开头)</td>
</tr>
<?php }?>
<tr>
<td>列表模板</td>
<td>
<input type="text" name="templist" value="{style}/list_<?php echo $nid?>.htm" class="admin-input-lg">
<button type="button" class="btn btn-success btn-sm" onclick="SelectTemplets('form1.templist')">选择</button>
</td>
<td>封面模板</td>
<td>
<input type="text" name="tempindex" value="{style}/index_<?php echo $nid?>.htm" class="admin-input-lg">
<button type="button" class="btn btn-success btn-sm" onclick="SelectTemplets('form1.tempindex')">选择</button>
<a href="javascript:ShowHide('helpvar1');" class="btn btn-success btn-sm">说明</a>
<div id="helpvar1" class="alert alert-secondary my-2" style="display:none">
<p>{tid} 栏目id</p>
<span>{cid} 栏目模型名字id</span>
</div>
</td>
</tr>
<tr>
<td>文档模板</td>
<td>
<input type="text" name="temparticle" value="{style}/article_<?php echo $nid?>.htm" class="admin-input-lg">
<button type="button" class="btn btn-success btn-sm" onclick="SelectTemplets('form1.temparticle')">选择</button>
</td>
<td>列表命名规则</td>
<td>
<input type="text" name="namerule2" id="namerule2" value="{typedir}/{tid}-{page}.html" class="admin-input-lg">
<a href="javascript:ShowHide('helpvar2');" class="btn btn-success btn-sm">说明</a>
<div id="helpvar2" class="alert alert-secondary my-2" style="display:none">
<p>静态规则</p>
<p>{tid} 栏目id</p>
<p>{page} 栏目页码数</p>
<p>伪静态规则(Nginx)</p>
<p>rewrite ^/list-([0-9]+)$ /apps/list.php?tid=$1;</p>
<span>rewrite ^/list-([0-9]+)-([0-9]+)$ /apps/list.php?tid=$1&PageNo=$2;</span>
</div>
</td>
</tr>
<tr>
<td>文档命名规则</td>
<td>
<input type="text" name="namerule" tid="namerule" value="<?php echo $cfg_df_namerule;?>" class="admin-input-lg">
<a href="javascript:ShowHide('helpvar3');" class="btn btn-success btn-sm">说明</a>
<div id="helpvar3" class="alert alert-secondary my-2" style="display:none">
<p>静态规则</p>
<p>{Y}{M}{D} 年月日</p>
<p>{timestamp} INT类型的UNIX时间戳</p>
<p>{aid} 文档id</p>
<p>{pinyin} 拼音加文档id</p>
<p>{py} 拼音部首加文档id</p>
<p>{typedir} 栏目保存目录</p>
<p>{cc} 日期加混编id后用转换为适合字母</p>
<p>伪静态规则(Nginx)</p>
<p>rewrite ^/doc-([0-9]+).html$ /apps/view.php?arcID=$1;</p>
<span>rewrite ^/doc-([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2;</span>
</div>
</td>
<td>SEO标题</td>
<td><input type="text" name="seotitle" id="seotitle" class="admin-input-lg">(标签{dede:field.seotitle/}调用)</td>
</tr>
<tr>
<td>关键词</td>
<td>
<textarea name="keywords" id="keywords" class="admin-textarea-sm"></textarea>
<span>(标签{dede:field.keywords/}调用)</span>
</td>
<td>描述</td>
<td>
<textarea name="description" id="description" class="admin-textarea-sm"></textarea>
<span>(标签{dede:field.description/}调用)</span>
</td>
</tr>
<tr>
<td>栏目文档</td>
<td>(标签{dede:field.content/}调用)</td>
<td>是否支持跨站调用</td>
<td>
<input type="text" name="apikey" id="apikey" class="admin-input-lg" placeholder="请输入跨站调用秘钥">
<label><input type="radio" name="apienabled" value="1"> 支持</label>
<label><input type="radio" name="apienabled" value="0" checked> 不支持</label>
<a href="javascript:makeAPIKey();" class="btn btn-success btn-sm">更新</i></a>
</td>
</tr>
<tr>
<td colspan="4"><?php GetEditor("content","","400","Default","print","false");?></td>
</tr>
<tr>
<td colspan="4" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<a href="catalog_main.php" class="btn btn-outline-success btn-sm">返回</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>


+ 176
- 174
src/admin/templets/catalog_add_quick.htm View File

@@ -12,180 +12,182 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="catalog_main.php">网站栏目管理</a></li>
<li class="breadcrumb-item active">批量添加栏目</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">批量添加栏目</div>
<div class="card-body">
<form name="form1" action="catalog_add.php" method="post">
<input type="hidden" name="dopost" value="savequick">
<input type="hidden" name="savetype" id="savetype">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="10%">是否支持投稿</td>
<td width="40%">
<label><input type="radio" name="issend" value="1" checked> 支持</label>
<label><input type="radio" name="issend" value="0"> 不支持</label>
</td>
<td width="10%">目录保存位置</td>
<td width="40%">
<label><input type="radio" name="referpath" value="parent" checked> 默认网页目录(
<?php
$pardir = '{cmspath}'.$cfg_arcdir;
if (!empty($typedir)) $pardir = $typedir.'/';
$pardir = preg_replace("#\/{1,}#", '/', $pardir);
echo $pardir;
?>)</label>
<label><input type="radio" name="referpath" value="cmspath"> 系统根目录</label>
<input type="hidden" name="nextdir" id="nextdir" value="<?php echo $pardir;?>">
<span id="pathtype" style="display:none"><input type="radio" name="referpath" id="truepath3" value="typepath">所属栏目所属目录</span>
</td>
</tr>
<tr>
<td>所属栏目</td>
<td>
<select name="reid" onchange="showSeltype(this);" class="admin-input-sm">
<option value="0">选择所属栏目</option>
<?php echo $typeOptions;?>
</select>
<span>(默认为顶级栏目)</span>
</td>
<td>文档模型</td>
<td>
<select name="channeltype" id="channeltype" onChange="ParTemplet(this);" class="admin-input-sm">
<?php
foreach($channelArray as $k=>$arr)
{
if ($k==$channelid) echo "<option value='{$k}' selected>{$arr['typename']} {$arr['nid']}</option>";
else echo "<option value='{$k}'>{$arr['typename']} {$arr['nid']}</option>";
}
?>
</select>
</td>
</tr>
<tr>
<td>栏目列表选项</td>
<td>
<label><input type="radio" name="isdefault" value="1" checked> 静态浏览</label>
<label><input type="radio" name="isdefault" value="-1"> 动态浏览</label>
<label><input type="radio" name="isdefault" value="0"> 列表第一页浏览</label>
</td>
<td>列表命名规则</td>
<td>
<input type="text" name="namerule2" id="namerule2" value="{typedir}/{tid}-{page}.html" class="admin-input-lg">
<a href="javascript:ShowHide('helpvar1');" class="btn btn-success btn-sm">说明</a>
<div id="helpvar1" class="alert alert-secondary my-2" style="display:none">
<p>静态规则</p>
<p>{tid} 栏目id</p>
<p>{page} 栏目页码数</p>
<p>伪静态规则(Nginx)</p>
<p>rewrite ^/list-([0-9]+)$ /apps/list.php?tid=$1;</p>
<span>rewrite ^/list-([0-9]+)-([0-9]+)$ /apps/list.php?tid=$1&PageNo=$2;</span>
</div>
</td>
</tr>
<tr>
<td>文档命名规则</td>
<td>
<input type="text" name="namerule" id="namerule" value="{typedir}/{aid}.html" class="admin-input-lg">
<a href="javascript:ShowHide('helpvar2');" class="btn btn-success btn-sm">说明</a>
<div id="helpvar2" class="alert alert-secondary my-2" style="display:none">
<p>静态规则</p>
<p>{Y}{M}{D} 年月日</p>
<p>{timestamp} INT类型的UNIX时间戳</p>
<p>{aid} 文档id</p>
<p>{pinyin} 拼音加文档id</p>
<p>{py} 拼音部首加文档id</p>
<p>{typedir} 栏目保存目录</p>
<p>{cc} 日期加混编id后用转换为适合字母</p>
<p>伪静态规则(Nginx)</p>
<p>rewrite ^/doc-([0-9]+).html$ /apps/view.php?arcID=$1;</p>
<span>rewrite ^/doc-([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2;</span>
</div>
</td>
<td>默认页的名称</td>
<td><input type="text" name="defaultname" value="index.html" class="admin-input-lg"></td>
</tr>
<tr>
<td colspan="4">
<table id="addQuick" class="table">
<thead>
<tr>
<td scope="col">排序</td>
<td scope="col">顶级栏目名称</td>
<td scope="col">子栏目名称(英文逗号隔开,如:栏目一,栏目二)</td>
<td scope="col"><button type="button" class="btn btn-success btn-sm add">添加</button></td>
</tr>
</thead>
<tbody>
<tr>
<td class="rank">
<input type="hidden" name="posttype" class="pubinputs">
<input type="text" name="rank" value="1" class="pubinputs admin-input-sm">
</td>
<td><input type="text" name="toptype" class="pubinputs admin-input-lg"></td>
<td><input type="text" name="sontype" class="pubinputs w-100"></td>
<td><button name="" type="button" class="btn btn-danger btn-sm del">删除</button></td>
</tr>
<?php for($i=2;$i<=10;$i++) {?>
<tr 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;?>" value="<?php echo $i;?>" class="pubinputs admin-input-sm">
</td>
<td><input type="text" name="toptype<?php echo $i;?>" class="pubinputs admin-input-lg"></td>
<td><input type="text" name="sontype<?php echo $i;?>" class="pubinputs w-100"></td>
<td><button name="" type="button" class="btn btn-danger btn-sm del">删除</button></td>
</tr>
<?php }?>
</tbody>
</table>
<table id="addQuickRel" class="table" style="display:none">
</thead>
<tr>
<td scope="col">排序</td>
<td scope="col">栏目名称</td>
<td scope="col"><button type="button" class="btn btn-success btn-sm addrel">添加</button></td>
</tr>
</thead>
<tbody>
<tr>
<td class="rank">
<input type="hidden" name="posttype" class="pubinputs">
<input type="text" name="rank" value="1" class="pubinputs admin-input-sm">
</td>
<td><input type="text" name="reltype" class="pubinputs admin-input-lg"></td>
<td><button name="" type="button" class="btn btn-danger btn-sm del">删除</button></td>
</tr>
<?php for($i=2;$i<=10;$i++) {?>
<tr 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;?>" value="<?php echo $i;?>" class="pubinputs admin-input-sm">
</td>
<td><input type="text" name="reltype<?php echo $i;?>" class="pubinputs admin-input-lg"></td>
<td><button type="button" class="btn btn-danger btn-sm del">删除</button></td>
</tr>
<?php }?>
</tbody>
</table>
</td>
</tr>
<tr>
<td colspan="4" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<a href="catalog_main.php" class="btn btn-outline-success btn-sm">返回</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="catalog_main.php">网站栏目管理</a></li>
<li class="breadcrumb-item active">批量添加栏目</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">批量添加栏目</div>
<div class="card-body">
<form name="form1" action="catalog_add.php" method="post">
<input type="hidden" name="dopost" value="savequick">
<input type="hidden" name="savetype" id="savetype">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="10%">是否支持投稿</td>
<td width="40%">
<label><input type="radio" name="issend" value="1" checked> 支持</label>
<label><input type="radio" name="issend" value="0"> 不支持</label>
</td>
<td width="10%">目录保存位置</td>
<td width="40%">
<label><input type="radio" name="referpath" value="parent" checked> 默认网页目录(
<?php
$pardir = '{cmspath}'.$cfg_arcdir;
if (!empty($typedir)) $pardir = $typedir.'/';
$pardir = preg_replace("#\/{1,}#", '/', $pardir);
echo $pardir;
?>)</label>
<label><input type="radio" name="referpath" value="cmspath"> 系统根目录</label>
<input type="hidden" name="nextdir" id="nextdir" value="<?php echo $pardir;?>">
<span id="pathtype" style="display:none"><input type="radio" name="referpath" id="truepath3" value="typepath">所属栏目所属目录</span>
</td>
</tr>
<tr>
<td>所属栏目</td>
<td>
<select name="reid" onchange="showSeltype(this);" class="admin-input-sm">
<option value="0">选择所属栏目</option>
<?php echo $typeOptions;?>
</select>
<span>(默认为顶级栏目)</span>
</td>
<td>文档模型</td>
<td>
<select name="channeltype" id="channeltype" onChange="ParTemplet(this);" class="admin-input-sm">
<?php
foreach($channelArray as $k=>$arr)
{
if ($k==$channelid) echo "<option value='{$k}' selected>{$arr['typename']} {$arr['nid']}</option>";
else echo "<option value='{$k}'>{$arr['typename']} {$arr['nid']}</option>";
}
?>
</select>
</td>
</tr>
<tr>
<td>栏目列表选项</td>
<td>
<label><input type="radio" name="isdefault" value="1" checked> 静态浏览</label>
<label><input type="radio" name="isdefault" value="-1"> 动态浏览</label>
<label><input type="radio" name="isdefault" value="0"> 列表第一页浏览</label>
</td>
<td>列表命名规则</td>
<td>
<input type="text" name="namerule2" id="namerule2" value="{typedir}/{tid}-{page}.html" class="admin-input-lg">
<a href="javascript:ShowHide('helpvar1');" class="btn btn-success btn-sm">说明</a>
<div id="helpvar1" class="alert alert-secondary my-2" style="display:none">
<p>静态规则</p>
<p>{tid} 栏目id</p>
<p>{page} 栏目页码数</p>
<p>伪静态规则(Nginx)</p>
<p>rewrite ^/list-([0-9]+)$ /apps/list.php?tid=$1;</p>
<span>rewrite ^/list-([0-9]+)-([0-9]+)$ /apps/list.php?tid=$1&PageNo=$2;</span>
</div>
</td>
</tr>
<tr>
<td>文档命名规则</td>
<td>
<input type="text" name="namerule" id="namerule" value="{typedir}/{aid}.html" class="admin-input-lg">
<a href="javascript:ShowHide('helpvar2');" class="btn btn-success btn-sm">说明</a>
<div id="helpvar2" class="alert alert-secondary my-2" style="display:none">
<p>静态规则</p>
<p>{Y}{M}{D} 年月日</p>
<p>{timestamp} INT类型的UNIX时间戳</p>
<p>{aid} 文档id</p>
<p>{pinyin} 拼音加文档id</p>
<p>{py} 拼音部首加文档id</p>
<p>{typedir} 栏目保存目录</p>
<p>{cc} 日期加混编id后用转换为适合字母</p>
<p>伪静态规则(Nginx)</p>
<p>rewrite ^/doc-([0-9]+).html$ /apps/view.php?arcID=$1;</p>
<span>rewrite ^/doc-([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2;</span>
</div>
</td>
<td>默认页的名称</td>
<td><input type="text" name="defaultname" value="index.html" class="admin-input-lg"></td>
</tr>
<tr>
<td colspan="4">
<table id="addQuick" class="table">
<thead>
<tr>
<td scope="col">排序</td>
<td scope="col">顶级栏目名称</td>
<td scope="col">子栏目名称(英文逗号隔开,如:栏目一,栏目二)</td>
<td scope="col"><button type="button" class="btn btn-success btn-sm add">添加</button></td>
</tr>
</thead>
<tbody>
<tr>
<td class="rank">
<input type="hidden" name="posttype" class="pubinputs">
<input type="text" name="rank" value="1" class="pubinputs admin-input-sm">
</td>
<td><input type="text" name="toptype" class="pubinputs admin-input-lg"></td>
<td><input type="text" name="sontype" class="pubinputs w-100"></td>
<td><button name="" type="button" class="btn btn-danger btn-sm del">删除</button></td>
</tr>
<?php for($i=2;$i<=10;$i++) {?>
<tr 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;?>" value="<?php echo $i;?>" class="pubinputs admin-input-sm">
</td>
<td><input type="text" name="toptype<?php echo $i;?>" class="pubinputs admin-input-lg"></td>
<td><input type="text" name="sontype<?php echo $i;?>" class="pubinputs w-100"></td>
<td><button name="" type="button" class="btn btn-danger btn-sm del">删除</button></td>
</tr>
<?php }?>
</tbody>
</table>
<table id="addQuickRel" class="table" style="display:none">
</thead>
<tr>
<td scope="col">排序</td>
<td scope="col">栏目名称</td>
<td scope="col"><button type="button" class="btn btn-success btn-sm addrel">添加</button></td>
</tr>
</thead>
<tbody>
<tr>
<td class="rank">
<input type="hidden" name="posttype" class="pubinputs">
<input type="text" name="rank" value="1" class="pubinputs admin-input-sm">
</td>
<td><input type="text" name="reltype" class="pubinputs admin-input-lg"></td>
<td><button name="" type="button" class="btn btn-danger btn-sm del">删除</button></td>
</tr>
<?php for($i=2;$i<=10;$i++) {?>
<tr 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;?>" value="<?php echo $i;?>" class="pubinputs admin-input-sm">
</td>
<td><input type="text" name="reltype<?php echo $i;?>" class="pubinputs admin-input-lg"></td>
<td><button type="button" class="btn btn-danger btn-sm del">删除</button></td>
</tr>
<?php }?>
</tbody>
</table>
</td>
</tr>
<tr>
<td colspan="4" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<a href="catalog_main.php" class="btn btn-outline-success btn-sm">返回</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>


+ 257
- 255
src/admin/templets/catalog_edit.htm View File

@@ -12,267 +12,269 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="catalog_main.php">网站栏目管理</a></li>
<li class="breadcrumb-item active">修改栏目</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改栏目</div>
<div class="card-body">
<form name="form1" action="catalog_edit.php" method="post">
<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'];?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="10%">是否支持投稿</td>
<td width="40%">
<label><input type="radio" name="issend" value="1" <?php if ($myrow['issend']=="1") echo 'checked';?>> 支持</label>
<label><input type="radio" name="issend" value="0" <?php if ($myrow['issend']=="0") echo 'checked';?>> 不支持</label>
</td>
<td width="10%">是否隐藏栏目</td>
<td width="40%">
<label><input type="radio" name="ishidden" value="0" <?php if ($myrow['ishidden']=="0") echo 'checked';?>> 显示</label>
<label><input type="radio" name="ishidden" value="1" <?php if ($myrow['ishidden']=="1") echo 'checked';?>> 隐藏</label>
</td>
</tr>
<tr>
<td>文档模型</td>
<td>
<input type="hidden" value="{style}" name="dfstyle">
<select name="channeltype" id="channeltype" onChange="ParTemplet(this);" class="admin-input-sm">
<?php
foreach($channelArray as $k=>$arr)
{
if ($k==$channelid) echo " <option value='{$k}' selected>{$arr['typename']} {$arr['nid']}</option>";
else echo " <option value='{$k}'>{$arr['typename']} {$arr['nid']}</option>";
}
?>
</select>
<div id="smclass" class="mt-2" style="<?php echo ($channelid<0 ? '' : 'display:none');?>">
<select name="smalltype[]" multiple="yes" class="admin-input-lg">
<?php
$smtypes = explode(',',trim($myrow['smalltypes']));
$sql = "SELECT * FROM `#@__sys_enum` WHERE egroup LIKE 'infotype' ORDER BY disorder ASC,evalue ASC ";
$dsql->Execute('s',$sql);
while($arr = $dsql->GetArray('s'))
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="catalog_main.php">网站栏目管理</a></li>
<li class="breadcrumb-item active">修改栏目</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改栏目</div>
<div class="card-body">
<form name="form1" action="catalog_edit.php" method="post">
<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'];?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="10%">是否支持投稿</td>
<td width="40%">
<label><input type="radio" name="issend" value="1" <?php if ($myrow['issend']=="1") echo 'checked';?>> 支持</label>
<label><input type="radio" name="issend" value="0" <?php if ($myrow['issend']=="0") echo 'checked';?>> 不支持</label>
</td>
<td width="10%">是否隐藏栏目</td>
<td width="40%">
<label><input type="radio" name="ishidden" value="0" <?php if ($myrow['ishidden']=="0") echo 'checked';?>> 显示</label>
<label><input type="radio" name="ishidden" value="1" <?php if ($myrow['ishidden']=="1") echo 'checked';?>> 隐藏</label>
</td>
</tr>
<tr>
<td>文档模型</td>
<td>
<input type="hidden" value="{style}" name="dfstyle">
<select name="channeltype" id="channeltype" onChange="ParTemplet(this);" class="admin-input-sm">
<?php
foreach($channelArray as $k=>$arr)
{
if (in_array($arr['evalue'],$smtypes)) {
$selstr = " selected='1' ";
} else {
$selstr = '';
}
if ($arr['evalue']%500==0) {
echo "<option value='{$arr['evalue']}'{$selstr}>{$arr['ename']}</option>";
} else if (preg_match("#\.#", $arr['evalue'])) {
echo "<option value='{$arr['evalue']}'{$selstr}>└── {$arr['ename']}</option>";
} else {
echo "<option value='{$arr['evalue']}'{$selstr}>└─ {$arr['ename']}</option>";
}
if ($k==$channelid) echo " <option value='{$k}' selected>{$arr['typename']} {$arr['nid']}</option>";
else echo " <option value='{$k}'>{$arr['typename']} {$arr['nid']}</option>";
}
?>
</select>
<span>(请选栏目的信息联动类型支持多选)</span>
</div>
</td>
<td>上级目录</td>
<td>
<?php
$pardir = '{cmspath}'.$cfg_arcdir;
if (!empty($typedir)) $pardir = $typedir.'/';
$pardir = preg_replace("#\/{1,}#", '/', $pardir);
echo $pardir;
?>
<input type="hidden" name="nextdir" id="nextdir" value="<?php echo $pardir?>">
</td>
</tr>
<tr>
<td>中文名称</td>
<td><input type="text" name="typename" value="<?php echo $myrow['typename']?>" class="admin-input-lg" required></td>
<td>中文概述</td>
<td><input type="text" name="cnoverview" value="<?php echo $myrow['cnoverview']?>" class="admin-input-lg"></td>
</tr>
<tr>
<td>英文名称</td>
<td><input type="text" name="enname" value="<?php echo $myrow['enname']?>" class="admin-input-lg"></td>
<td>英文概述</td>
<td><input type="text" name="enoverview" value="<?php echo $myrow['enoverview']?>" class="admin-input-lg"></td>
</tr>
<tr>
<td>栏目大图</td>
<td>
<input type="text" name="bigpic" value="<?php echo $myrow['bigpic']?>" class="admin-input-lg">
<button type="button" class="btn btn-success btn-sm" onclick="SelectImage('form1.bigpic');">选择</button>
</td>
<td>栏目小图</td>
<td>
<input type="text" name="litimg" value="<?php echo $myrow['litimg']?>" class="admin-input-lg">
<button type="button" class="btn btn-success btn-sm" onclick="SelectImage('form1.litimg');">选择</button>
</td>
</tr>
<tr>
<td>排列顺序</td>
<td><input type="text" name="sortrank" value="<?php echo $myrow['sortrank']?>" class="admin-input-sm">(由低到高)</td>
<td>浏览权限</td>
<td>
<select name="corank" id="corank" class="admin-input-sm">
<div id="smclass" class="mt-2" style="<?php echo ($channelid<0 ? '' : 'display:none');?>">
<select name="smalltype[]" multiple="yes" class="admin-input-lg">
<?php
$smtypes = explode(',',trim($myrow['smalltypes']));
$sql = "SELECT * FROM `#@__sys_enum` WHERE egroup LIKE 'infotype' ORDER BY disorder ASC,evalue ASC ";
$dsql->Execute('s',$sql);
while($arr = $dsql->GetArray('s'))
{
if (in_array($arr['evalue'],$smtypes)) {
$selstr = " selected='1' ";
} else {
$selstr = '';
}
if ($arr['evalue']%500==0) {
echo "<option value='{$arr['evalue']}'{$selstr}>{$arr['ename']}</option>";
} else if (preg_match("#\.#", $arr['evalue'])) {
echo "<option value='{$arr['evalue']}'{$selstr}>└── {$arr['ename']}</option>";
} else {
echo "<option value='{$arr['evalue']}'{$selstr}>└─ {$arr['ename']}</option>";
}
}
?>
</select>
<span>(请选栏目的信息联动类型支持多选)</span>
</div>
</td>
<td>上级目录</td>
<td>
<?php
$dsql->SetQuery("SELECT * FROM `#@__arcrank` WHERE `rank` >= 0 ORDER BY `rank` ASC");
$dsql->Execute('cc');
while($row = $dsql->GetObject('cc'))
{
if ($myrow['corank']==$row->rank)
echo "<option value='".$row->rank."' selected>".$row->membername."</option>";
else
echo "<option value='".$row->rank."'>".$row->membername."</option>";
}
$pardir = '{cmspath}'.$cfg_arcdir;
if (!empty($typedir)) $pardir = $typedir.'/';
$pardir = preg_replace("#\/{1,}#", '/', $pardir);
echo $pardir;
?>
</select>
<span>(暂不支持静态)</span>
</td>
</tr>
<tr>
<td>栏目生成目录</td>
<td><input type="text" name="typedir" id="typedir" value="<?php echo $myrow['typedir']?>" class="admin-input-lg">(标签{cmspath}必填)</td>
<td>是否继承选项</td>
<td><label><input type="checkbox" name="upnext" id="upnext" value="1"> 子类栏目继承顶级栏目的浏览权限、文档类型、模板风格等属性</label></td>
</tr>
<tr>
<td>栏目列表选项</td>
<td>
<label><input type="radio" name="isdefault" value="1" <?php if ($myrow['isdefault']==1) echo 'checked';?>> 静态浏览</label>
<label><input type="radio" name="isdefault" value="-1" <?php if ($myrow['isdefault']==-1) echo 'checked';?>> 动态浏览</label>
<label><input type="radio" name="isdefault" value="0" <?php if ($myrow['isdefault']==0) echo 'checked';?>> 列表第一页浏览</label>
</td>
<td>默认页的名称</td>
<td><input type="text" name="defaultname" value="<?php echo $myrow['defaultname']?>" class="admin-input-lg"></td>
</tr>
<tr>
<td>栏目属性</td>
<td>
<label><input type="radio" name="ispart" value="0" <?php if ($myrow['ispart']==0) echo 'checked';?>> 列表栏目(允许发布)</label>
<label><input type="radio" name="ispart" value="1" <?php if ($myrow['ispart']==1) echo 'checked';?>> 封面栏目(不允许发布)</label>
<label><input type="radio" name="ispart" value="2" <?php if ($myrow['ispart']==2) echo 'checked';?>> 外部栏目(栏目生成目录填写链接)</label>
</td>
<td>栏目交叉</td>
<td>
<label><input type="radio" name="cross" id="cross0" value="0" onclick="CheckCross();" <?php if ($myrow['cross']==0) echo 'checked';?>> 不交叉</label>
<label><input type="radio" name="cross" id="cross1" value="1" onclick="CheckCross();" <?php if ($myrow['cross']==1) echo 'checked';?>> 自动获取同名栏目</label>
<label><input type="radio" name="cross" id="cross2" value="2" onclick="CheckCross();" <?php if ($myrow['cross']==2) echo 'checked';?>> 指定交叉栏目id(英文逗号隔开)</label>
<a href="javascript:ShowHide('helpvarco');" class="btn btn-success btn-sm">说明</a>
<div id="crossid" style="<?php if ($myrow['cross']!=2) echo'display:none';?>"><textarea name="crossid" class="admin-textarea-sm"><?php echo $myrow['crossid'];?></textarea></div>
<div id="helpvarco" class="alert alert-secondary my-2" style="display:none">交叉栏目该栏目与另一个非子栏目交叉的情况,相当于副栏目功能</div>
</td>
</tr>
<tr>
<td width="260">多站点支持</td>
<td>
<label><input type="radio" name="moresite" value="1" <?php if ($myrow['moresite']==1) echo 'checked';?>> 启用</label>
<label><input type="radio" name="moresite" value="0" <?php if ($myrow['moresite']==0) echo 'checked';?>> 不启用</label>
<span>(仅顶级栏目启用,子类栏目无效)</span>
</td>
<td>绑定域名</td>
<td><input type="text" name="siteurl" id="siteurl" value="<?php echo $myrow['siteurl']?>" class="admin-input-lg">(请输入绑定域名http开头)</td>
</tr>
<tr>
<td>列表模板</td>
<td>
<input type="text" name="templist" value="<?php echo $myrow['templist']?>" class="admin-input-lg">
<button type="button" class="btn btn-success btn-sm" onclick="SelectTemplets('form1.templist')">选择</button>
</td>
<td>封面模板</td>
<td>
<input type="text" name="tempindex" value="<?php echo $myrow['tempindex']?>" class="admin-input-lg">
<button type="button" class="btn btn-success btn-sm" onclick="SelectTemplets('form1.tempindex')">选择</button>
<a href="javascript:ShowHide('helpvar1');" class="btn btn-success btn-sm">说明</a>
<div id="helpvar1" class="alert alert-secondary my-2" style="display:none">
<p>{tid} 栏目id</p>
<span>{cid} 栏目模型名字id</span>
</div>
</td>
</tr>
<tr>
<td>文档模板</td>
<td>
<input type="text" name="temparticle" value="<?php echo $myrow['temparticle']?>" class="admin-input-lg">
<button type="button" class="btn btn-success btn-sm" onclick="SelectTemplets('form1.temparticle')">选择</button>
</td>
<td>列表命名规则</td>
<td>
<input type="text" name="namerule2" id="namerule2" value="<?php echo $myrow['namerule2']?>" class="admin-input-lg">
<a href="javascript:ShowHide('helpvar2');" class="btn btn-success btn-sm">说明</a>
<div id="helpvar2" class="alert alert-secondary my-2" style="display:none">
<p>静态规则</p>
<p>{tid} 栏目id</p>
<p>{page} 栏目页码数</p>
<p>伪静态规则(Nginx)</p>
<p>rewrite ^/list-([0-9]+)$ /apps/list.php?tid=$1;</p>
<span>rewrite ^/list-([0-9]+)-([0-9]+)$ /apps/list.php?tid=$1&PageNo=$2;</span>
</div>
</td>
</tr>
<tr>
<td>文档命名规则</td>
<td>
<input type="text" name="namerule" id="namerule" value="<?php echo $myrow['namerule']?>" class="admin-input-lg">
<a href="javascript:ShowHide('helpvar3');" class="btn btn-success btn-sm">说明</a>
<div id="helpvar3" class="alert alert-secondary my-2" style="display:none">
<p>静态规则</p>
<p>{Y}{M}{D} 年月日</p>
<p>{timestamp} INT类型的UNIX时间戳</p>
<p>{aid} 文档id</p>
<p>{pinyin} 拼音加文档id</p>
<p>{py} 拼音部首加文档id</p>
<p>{typedir} 栏目保存目录</p>
<p>{cc} 日期加混编id后用转换为适合字母</p>
<p>伪静态规则(Nginx)</p>
<p>rewrite ^/doc-([0-9]+).html$ /apps/view.php?arcID=$1;</p>
<span>rewrite ^/doc-([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2;</span>
</div>
</td>
<td>SEO标题</td>
<td><input type="text" name="seotitle" id="seotitle" value="<?php echo $myrow['seotitle']?>" class="admin-input-lg">(标签{dede:field.seotitle/}调用)</td>
</tr>
<tr>
<td>关键词</td>
<td>
<textarea name="keywords" cid="keywords" class="admin-textarea-sm"><?php echo $myrow['keywords']?></textarea>
<span>(标签{dede:field.keywords/}调用)</span>
</td>
<td>描述</td>
<td>
<textarea name="description" id="description" class="admin-textarea-sm"><?php echo $myrow['description']?></textarea>
<span>(标签{dede:field.description/}调用)</span>
</td>
</tr>
<tr>
<td>栏目文档</td>
<td>(标签{dede:field.content/}调用)</td>
<td>是否支持跨站调用</td>
<td>
<input value="<?php echo $myrow['apikey']?>" type="text" name="apikey" id="apikey" class="admin-input-lg" placeholder="请输入跨站调用秘钥">
<label><input type="radio" name="apienabled" value="1" <?php if ($myrow['apienabled']=="1") echo 'checked';?>> 支持</label>
<label><input type="radio" name="apienabled" value="0" <?php if ($myrow['apienabled']=="0") echo 'checked';?>> 不支持</label>
<a href="javascript:makeAPIKey();" class="btn btn-success btn-sm">更新</i></a>
<a href="javascript:showAPI(<?php echo $id;?>);" class="btn btn-success btn-sm">说明</a>
</td>
</tr>
<tr>
<td colspan="4"><?php GetEditor("content",$myrow['content'],"400","Default","print","false");?></td>
</tr>
<tr>
<td align="center" colspan="4">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<a href="catalog_main.php" class="btn btn-outline-success btn-sm">返回</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<input type="hidden" name="nextdir" id="nextdir" value="<?php echo $pardir?>">
</td>
</tr>
<tr>
<td>中文名称</td>
<td><input type="text" name="typename" value="<?php echo $myrow['typename']?>" class="admin-input-lg" required></td>
<td>中文概述</td>
<td><input type="text" name="cnoverview" value="<?php echo $myrow['cnoverview']?>" class="admin-input-lg"></td>
</tr>
<tr>
<td>英文名称</td>
<td><input type="text" name="enname" value="<?php echo $myrow['enname']?>" class="admin-input-lg"></td>
<td>英文概述</td>
<td><input type="text" name="enoverview" value="<?php echo $myrow['enoverview']?>" class="admin-input-lg"></td>
</tr>
<tr>
<td>栏目大图</td>
<td>
<input type="text" name="bigpic" value="<?php echo $myrow['bigpic']?>" class="admin-input-lg">
<button type="button" class="btn btn-success btn-sm" onclick="SelectImage('form1.bigpic');">选择</button>
</td>
<td>栏目小图</td>
<td>
<input type="text" name="litimg" value="<?php echo $myrow['litimg']?>" class="admin-input-lg">
<button type="button" class="btn btn-success btn-sm" onclick="SelectImage('form1.litimg');">选择</button>
</td>
</tr>
<tr>
<td>排列顺序</td>
<td><input type="text" name="sortrank" value="<?php echo $myrow['sortrank']?>" class="admin-input-sm">(由低到高)</td>
<td>浏览权限</td>
<td>
<select name="corank" id="corank" class="admin-input-sm">
<?php
$dsql->SetQuery("SELECT * FROM `#@__arcrank` WHERE `rank` >= 0 ORDER BY `rank` ASC");
$dsql->Execute('cc');
while($row = $dsql->GetObject('cc'))
{
if ($myrow['corank']==$row->rank)
echo "<option value='".$row->rank."' selected>".$row->membername."</option>";
else
echo "<option value='".$row->rank."'>".$row->membername."</option>";
}
?>
</select>
<span>(暂不支持静态)</span>
</td>
</tr>
<tr>
<td>栏目生成目录</td>
<td><input type="text" name="typedir" id="typedir" value="<?php echo $myrow['typedir']?>" class="admin-input-lg">(标签{cmspath}必填)</td>
<td>是否继承选项</td>
<td><label><input type="checkbox" name="upnext" id="upnext" value="1"> 子类栏目继承顶级栏目的浏览权限、文档类型、模板风格等属性</label></td>
</tr>
<tr>
<td>栏目列表选项</td>
<td>
<label><input type="radio" name="isdefault" value="1" <?php if ($myrow['isdefault']==1) echo 'checked';?>> 静态浏览</label>
<label><input type="radio" name="isdefault" value="-1" <?php if ($myrow['isdefault']==-1) echo 'checked';?>> 动态浏览</label>
<label><input type="radio" name="isdefault" value="0" <?php if ($myrow['isdefault']==0) echo 'checked';?>> 列表第一页浏览</label>
</td>
<td>默认页的名称</td>
<td><input type="text" name="defaultname" value="<?php echo $myrow['defaultname']?>" class="admin-input-lg"></td>
</tr>
<tr>
<td>栏目属性</td>
<td>
<label><input type="radio" name="ispart" value="0" <?php if ($myrow['ispart']==0) echo 'checked';?>> 列表栏目(允许发布)</label>
<label><input type="radio" name="ispart" value="1" <?php if ($myrow['ispart']==1) echo 'checked';?>> 封面栏目(不允许发布)</label>
<label><input type="radio" name="ispart" value="2" <?php if ($myrow['ispart']==2) echo 'checked';?>> 外部栏目(栏目生成目录填写链接)</label>
</td>
<td>栏目交叉</td>
<td>
<label><input type="radio" name="cross" id="cross0" value="0" onclick="CheckCross();" <?php if ($myrow['cross']==0) echo 'checked';?>> 不交叉</label>
<label><input type="radio" name="cross" id="cross1" value="1" onclick="CheckCross();" <?php if ($myrow['cross']==1) echo 'checked';?>> 自动获取同名栏目</label>
<label><input type="radio" name="cross" id="cross2" value="2" onclick="CheckCross();" <?php if ($myrow['cross']==2) echo 'checked';?>> 指定交叉栏目id(英文逗号隔开)</label>
<a href="javascript:ShowHide('helpvarco');" class="btn btn-success btn-sm">说明</a>
<div id="crossid" style="<?php if ($myrow['cross']!=2) echo'display:none';?>"><textarea name="crossid" class="admin-textarea-sm"><?php echo $myrow['crossid'];?></textarea></div>
<div id="helpvarco" class="alert alert-secondary my-2" style="display:none">交叉栏目该栏目与另一个非子栏目交叉的情况,相当于副栏目功能</div>
</td>
</tr>
<tr>
<td width="260">多站点支持</td>
<td>
<label><input type="radio" name="moresite" value="1" <?php if ($myrow['moresite']==1) echo 'checked';?>> 启用</label>
<label><input type="radio" name="moresite" value="0" <?php if ($myrow['moresite']==0) echo 'checked';?>> 不启用</label>
<span>(仅顶级栏目启用,子类栏目无效)</span>
</td>
<td>绑定域名</td>
<td><input type="text" name="siteurl" id="siteurl" value="<?php echo $myrow['siteurl']?>" class="admin-input-lg">(请输入绑定域名http开头)</td>
</tr>
<tr>
<td>列表模板</td>
<td>
<input type="text" name="templist" value="<?php echo $myrow['templist']?>" class="admin-input-lg">
<button type="button" class="btn btn-success btn-sm" onclick="SelectTemplets('form1.templist')">选择</button>
</td>
<td>封面模板</td>
<td>
<input type="text" name="tempindex" value="<?php echo $myrow['tempindex']?>" class="admin-input-lg">
<button type="button" class="btn btn-success btn-sm" onclick="SelectTemplets('form1.tempindex')">选择</button>
<a href="javascript:ShowHide('helpvar1');" class="btn btn-success btn-sm">说明</a>
<div id="helpvar1" class="alert alert-secondary my-2" style="display:none">
<p>{tid} 栏目id</p>
<span>{cid} 栏目模型名字id</span>
</div>
</td>
</tr>
<tr>
<td>文档模板</td>
<td>
<input type="text" name="temparticle" value="<?php echo $myrow['temparticle']?>" class="admin-input-lg">
<button type="button" class="btn btn-success btn-sm" onclick="SelectTemplets('form1.temparticle')">选择</button>
</td>
<td>列表命名规则</td>
<td>
<input type="text" name="namerule2" id="namerule2" value="<?php echo $myrow['namerule2']?>" class="admin-input-lg">
<a href="javascript:ShowHide('helpvar2');" class="btn btn-success btn-sm">说明</a>
<div id="helpvar2" class="alert alert-secondary my-2" style="display:none">
<p>静态规则</p>
<p>{tid} 栏目id</p>
<p>{page} 栏目页码数</p>
<p>伪静态规则(Nginx)</p>
<p>rewrite ^/list-([0-9]+)$ /apps/list.php?tid=$1;</p>
<span>rewrite ^/list-([0-9]+)-([0-9]+)$ /apps/list.php?tid=$1&PageNo=$2;</span>
</div>
</td>
</tr>
<tr>
<td>文档命名规则</td>
<td>
<input type="text" name="namerule" id="namerule" value="<?php echo $myrow['namerule']?>" class="admin-input-lg">
<a href="javascript:ShowHide('helpvar3');" class="btn btn-success btn-sm">说明</a>
<div id="helpvar3" class="alert alert-secondary my-2" style="display:none">
<p>静态规则</p>
<p>{Y}{M}{D} 年月日</p>
<p>{timestamp} INT类型的UNIX时间戳</p>
<p>{aid} 文档id</p>
<p>{pinyin} 拼音加文档id</p>
<p>{py} 拼音部首加文档id</p>
<p>{typedir} 栏目保存目录</p>
<p>{cc} 日期加混编id后用转换为适合字母</p>
<p>伪静态规则(Nginx)</p>
<p>rewrite ^/doc-([0-9]+).html$ /apps/view.php?arcID=$1;</p>
<span>rewrite ^/doc-([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2;</span>
</div>
</td>
<td>SEO标题</td>
<td><input type="text" name="seotitle" id="seotitle" value="<?php echo $myrow['seotitle']?>" class="admin-input-lg">(标签{dede:field.seotitle/}调用)</td>
</tr>
<tr>
<td>关键词</td>
<td>
<textarea name="keywords" cid="keywords" class="admin-textarea-sm"><?php echo $myrow['keywords']?></textarea>
<span>(标签{dede:field.keywords/}调用)</span>
</td>
<td>描述</td>
<td>
<textarea name="description" id="description" class="admin-textarea-sm"><?php echo $myrow['description']?></textarea>
<span>(标签{dede:field.description/}调用)</span>
</td>
</tr>
<tr>
<td>栏目文档</td>
<td>(标签{dede:field.content/}调用)</td>
<td>是否支持跨站调用</td>
<td>
<input value="<?php echo $myrow['apikey']?>" type="text" name="apikey" id="apikey" class="admin-input-lg" placeholder="请输入跨站调用秘钥">
<label><input type="radio" name="apienabled" value="1" <?php if ($myrow['apienabled']=="1") echo 'checked';?>> 支持</label>
<label><input type="radio" name="apienabled" value="0" <?php if ($myrow['apienabled']=="0") echo 'checked';?>> 不支持</label>
<a href="javascript:makeAPIKey();" class="btn btn-success btn-sm">更新</i></a>
<a href="javascript:showAPI(<?php echo $id;?>);" class="btn btn-success btn-sm">说明</a>
</td>
</tr>
<tr>
<td colspan="4"><?php GetEditor("content",$myrow['content'],"400","Default","print","false");?></td>
</tr>
<tr>
<td align="center" colspan="4">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<a href="catalog_main.php" class="btn btn-outline-success btn-sm">返回</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<div id="mdlViewAPI" class="modal fade" tabindex="-1" aria-hidden="true">


+ 37
- 35
src/admin/templets/catalog_main.htm View File

@@ -12,42 +12,44 @@
<script src="/static/web/js/admin.catalog.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">网站栏目管理</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<?php if (!isset($exallct)) {?>
<a href="catalog_main.php?exallct=all" class="btn btn-success btn-sm">展开栏目</a>
<?php } else {?>
<a href="catalog_main.php" class="btn btn-success btn-sm">收缩栏目</a>
<?php }?>
<a href="catalog_add.php?listtype=all" class="btn btn-success btn-sm">添加栏目</a>
<a href="catalog_add.php?dopost=quick" class="btn btn-success btn-sm">批量添加</a>
<a href="catalog_do.php?dopost=upcatcache" class="btn btn-success btn-sm">更新缓存</a>
<button type="button" class="btn btn-success btn-sm" onclick="document.form1.submit();">更新排序</button>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">网站栏目管理</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<?php if (!isset($exallct)) {?>
<a href="catalog_main.php?exallct=all" class="btn btn-success btn-sm">展开栏目</a>
<?php } else {?>
<a href="catalog_main.php" class="btn btn-success btn-sm">收缩栏目</a>
<?php }?>
<a href="catalog_add.php?listtype=all" class="btn btn-success btn-sm">添加栏目</a>
<a href="catalog_add.php?dopost=quick" class="btn btn-success btn-sm">批量添加</a>
<a href="catalog_do.php?dopost=upcatcache" class="btn btn-success btn-sm">更新缓存</a>
<button type="button" class="btn btn-success btn-sm" onclick="document.form1.submit();">更新排序</button>
</div>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">网站栏目管理</div>
<div class="card-body">
<form name="form1" method="post" action="catalog_do.php?dopost=upRankAll">
<div class="table-responsive">
<table class="table table-borderless">
<tr>
<td>
<?php
if (empty($opendir)) $opendir=-1;
if ($userChannel > 0) $opendir=$userChannel;
$tu = new TypeUnit();
$tu->ListAllType($userChannel,$opendir);
?>
</td>
</tr>
</table>
</div>
</form>
<div class="card shadow-sm">
<div class="card-header">网站栏目管理</div>
<div class="card-body">
<form name="form1" method="post" action="catalog_do.php?dopost=upRankAll">
<div class="table-responsive">
<table class="table table-borderless">
<tr>
<td>
<?php
if (empty($opendir)) $opendir=-1;
if ($userChannel > 0) $opendir=$userChannel;
$tu = new TypeUnit();
$tu->ListAllType($userChannel,$opendir);
?>
</td>
</tr>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 48
- 46
src/admin/templets/content_att.htm View File

@@ -9,52 +9,54 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">文档自定义属性</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">文档自定义属性</div>
<div class="card-body">
<div class="alert alert-info shadow-sm">文档发布时选择属性后arclist标签加上flag='自定义属性',例如:{dede:arclist flag='h,c'}h,c表示组合属性头条和推荐</div>
<form name="form1" action="content_att.php" method="post">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<thead>
<tr>
<td scope="col">id</td>
<td scope="col">排序</td>
<td scope="col">属性</td>
</tr>
</thead>
<tbody>
<?php
$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
$dsql->Execute();
$k=0;
while($row = $dsql->GetObject())
{
$k++;
?>
<input type="hidden" name="att_<?php echo $k?>" value="<?php echo $row->att?>">
<tr>
<td><?php echo $row->att;?></td>
<td><input type="text" name="sortid_<?php echo $k?>" value="<?php echo $row->sortid;?>" id="sortid_<?php echo $k?>" class="admin-input-sm"></td>
<td align="left"><input type="text" name="attname_<?php echo $k?>" value="<?php echo $row->attname;?>" id="attname_<?php echo $k?>" class="admin-input-lg"></td>
</tr>
<?php }?>
<input type="hidden" name="idend" value="<?php echo $k?>">
<tr>
<td colspan="3" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">文档自定义属性</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">文档自定义属性</div>
<div class="card-body">
<div class="alert alert-info shadow-sm">文档发布时选择属性后arclist标签加上flag='自定义属性',例如:{dede:arclist flag='h,c'}h,c表示组合属性头条和推荐</div>
<form name="form1" action="content_att.php" method="post">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<thead>
<tr>
<td scope="col">id</td>
<td scope="col">排序</td>
<td scope="col">属性</td>
</tr>
</thead>
<tbody>
<?php
$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
$dsql->Execute();
$k=0;
while($row = $dsql->GetObject())
{
$k++;
?>
<input type="hidden" name="att_<?php echo $k?>" value="<?php echo $row->att?>">
<tr>
<td><?php echo $row->att;?></td>
<td><input type="text" name="sortid_<?php echo $k?>" value="<?php echo $row->sortid;?>" id="sortid_<?php echo $k?>" class="admin-input-sm"></td>
<td align="left"><input type="text" name="attname_<?php echo $k?>" value="<?php echo $row->attname;?>" id="attname_<?php echo $k?>" class="admin-input-lg"></td>
</tr>
<?php }?>
<input type="hidden" name="idend" value="<?php echo $k?>">
<tr>
<td colspan="3" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 70
- 68
src/admin/templets/content_batch_up.htm View File

@@ -13,74 +13,76 @@
<script src="/static/web/js/daterangepicker.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">文档批量维护</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">文档批量维护</div>
<div class="card-body">
<form name="form1" action="content_batchup_action.php" method="post" target="stafrm">
<input type="hidden" name="dopost" value="go">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">选定栏目</td>
<td>
<?php
$tl = new TypeLink(0);
$typeOptions = $tl->GetOptionArray(0,$admin_catalogs,0,1);
echo "<select name='typeid' class='admin-input-sm'>";
echo "<option value='0' selected>不限栏目</option>";
echo $typeOptions;
echo "</select>";
?>
</td>
</tr>
<tr>
<td>会员登录id</td>
<td><input name="userid" type="text" id="userid" class="admin-input-sm">(网址uid=后面跟的id)</td>
</tr>
<tr>
<td>文档id</td>
<td>
<label>开始:<input name="startid" type="text" id="startid" class="admin-input-sm"></label>
<label>结束:<input name="endid" type="text" id="endid" class="admin-input-sm"></label>
</td>
</tr>
<tr>
<td>文档发布时间</td>
<td>
<label>开始<?php $nowtime = GetDateTimeMk(time()-(24*3600*30));?>:<input type="text" name="starttime" id="starttime" class="datepicker admin-input-sm" value="<?php echo $nowtime;?>"></label>
<label>结束<?php $nowtime = GetDateTimeMk(time());?>:<input type="text" name="endtime" id="endtime" class="datepicker admin-input-sm" value="<?php echo $nowtime;?>"></label>
<label><input type="checkbox" name="seltime" id="seltime" value="1"> 启用时间筛选(移动或删除文档可用该选项)</label>
</td>
</tr>
<tr>
<td>文档操作</td>
<td>
<label><input type="radio" name="action" value="check" checked> 审核文档</label>
<label><input type="radio" name="action" value="makehtml"> 更新网页</label>
<label><input type="radio" name="action" value="move"> 移动文档</label>
<label><input type="radio" name="action" value="del"> 删除文档</label>
<label><input type="radio" name="action" value="delnulltitle"> 删除空标题文档</label>
<label><input type="radio" name="action" value="delnullbody"> 删除空内容文档</label>
<label><input type="radio" name="action" value="modddpic"> 更正缩图错误</label>
</td>
</tr>
<tr>
<td colspan="2" align="center"><button type="submit" class="btn btn-success btn-sm">开始执行</button></td>
</tr>
<tr>
<td colspan="2">
<div class="admin-win-iframe"><iframe name="stafrm" id="stafrm" frameborder="0" width="100%" height="100%"></iframe></div>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">文档批量维护</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">文档批量维护</div>
<div class="card-body">
<form name="form1" action="content_batchup_action.php" method="post" target="stafrm">
<input type="hidden" name="dopost" value="go">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">选定栏目</td>
<td>
<?php
$tl = new TypeLink(0);
$typeOptions = $tl->GetOptionArray(0,$admin_catalogs,0,1);
echo "<select name='typeid' class='admin-input-sm'>";
echo "<option value='0' selected>不限栏目</option>";
echo $typeOptions;
echo "</select>";
?>
</td>
</tr>
<tr>
<td>会员登录id</td>
<td><input name="userid" type="text" id="userid" class="admin-input-sm">(网址uid=后面跟的id)</td>
</tr>
<tr>
<td>文档id</td>
<td>
<label>开始:<input name="startid" type="text" id="startid" class="admin-input-sm"></label>
<label>结束:<input name="endid" type="text" id="endid" class="admin-input-sm"></label>
</td>
</tr>
<tr>
<td>文档发布时间</td>
<td>
<label>开始<?php $nowtime = GetDateTimeMk(time()-(24*3600*30));?>:<input type="text" name="starttime" id="starttime" class="datepicker admin-input-sm" value="<?php echo $nowtime;?>"></label>
<label>结束<?php $nowtime = GetDateTimeMk(time());?>:<input type="text" name="endtime" id="endtime" class="datepicker admin-input-sm" value="<?php echo $nowtime;?>"></label>
<label><input type="checkbox" name="seltime" id="seltime" value="1"> 启用时间筛选(移动或删除文档可用该选项)</label>
</td>
</tr>
<tr>
<td>文档操作</td>
<td>
<label><input type="radio" name="action" value="check" checked> 审核文档</label>
<label><input type="radio" name="action" value="makehtml"> 更新网页</label>
<label><input type="radio" name="action" value="move"> 移动文档</label>
<label><input type="radio" name="action" value="del"> 删除文档</label>
<label><input type="radio" name="action" value="delnulltitle"> 删除空标题文档</label>
<label><input type="radio" name="action" value="delnullbody"> 删除空内容文档</label>
<label><input type="radio" name="action" value="modddpic"> 更正缩图错误</label>
</td>
</tr>
<tr>
<td colspan="2" align="center"><button type="submit" class="btn btn-success btn-sm">开始执行</button></td>
</tr>
<tr>
<td colspan="2">
<div class="admin-win-iframe"><iframe name="stafrm" id="stafrm" frameborder="0" width="100%" height="100%"></iframe></div>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>


+ 105
- 103
src/admin/templets/content_i_list.htm View File

@@ -17,111 +17,113 @@
<script src="/static/web/js/admin.list.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">文档列表</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<a class="btn btn-success btn-sm" href="catalog_do.php?channelid={dede:global.channelid/}&cid={dede:global.cid/}&dopost=addArchives">添加文档</a>
{dede:if $adminid==$mid}
<a class="btn btn-success btn-sm" href="content_i_list.php?cid={dede:global.cid/}&mid=0">全部文档</a>
{else}
<a class="btn btn-success btn-sm" href="content_i_list.php?cid={dede:global.cid/}&mid=<?php echo $cuserLogin->getUserID();?>">我的文档</a>
{/dede:if}
{dede:global.CheckUserSend/}
<a class="btn btn-success btn-sm" href="catalog_main.php">栏目管理</a>
<a class="btn btn-success btn-sm" href="makehtml_list.php?cid={dede:global.cid/}">更新列表</a>
<a class="btn btn-success btn-sm" href="makehtml_archives.php?cid={dede:global.cid/}">更新文档</a>
<a class="btn btn-success btn-sm" href="recycling.php?cid={dede:global.cid/}">文档回收站</a>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">文档列表</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<a class="btn btn-success btn-sm" href="catalog_do.php?channelid={dede:global.channelid/}&cid={dede:global.cid/}&dopost=addArchives">添加文档</a>
{dede:if $adminid==$mid}
<a class="btn btn-success btn-sm" href="content_i_list.php?cid={dede:global.cid/}&mid=0">全部文档</a>
{else}
<a class="btn btn-success btn-sm" href="content_i_list.php?cid={dede:global.cid/}&mid=<?php echo $cuserLogin->getUserID();?>">我的文档</a>
{/dede:if}
{dede:global.CheckUserSend/}
<a class="btn btn-success btn-sm" href="catalog_main.php">栏目管理</a>
<a class="btn btn-success btn-sm" href="makehtml_list.php?cid={dede:global.cid/}">更新列表</a>
<a class="btn btn-success btn-sm" href="makehtml_archives.php?cid={dede:global.cid/}">更新文档</a>
<a class="btn btn-success btn-sm" href="recycling.php?cid={dede:global.cid/}">文档回收站</a>
</div>
</div>
</div>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form name="form3" action="content_i_list.php" method="get">
<input type="hidden" name="dopost" value="listArchives">
<input type="hidden" name="channelid" value="<?php echo $channelid;?>">
<input type="text" name="keyword" class="admin-input-lg mr-2" value="{dede:global.keyword/}" placeholder="请输入文档标题或文档id">
<select name="cid" class="admin-input-sm mr-2">
<option value="0">选择栏目</option>
{dede:global.optionarr/}
</select>
<select name="orderby" class="admin-input-sm mr-2">
<option value="id">排序</option>
<option value="pubdate">更新时间</option>
<option value="sortrank">置顶权值</option>
<option value="click">点击量</option>
<option value="scores">评论积分</option>
<option value="lastpost">最后评论</option>
</select>
<input type="text" name="timerange" autocomplete="off" id="timerange" class="admin-input-md" value="<?php echo $strTimerange;?>" placeholder="请选择日期">
<button type="submit" class="btn btn-success btn-sm">搜索</button>
</form>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form name="form3" action="content_i_list.php" method="get">
<input type="hidden" name="dopost" value="listArchives">
<input type="hidden" name="channelid" value="<?php echo $channelid;?>">
<input type="text" name="keyword" class="admin-input-lg mr-2" value="{dede:global.keyword/}" placeholder="请输入文档标题或文档id">
<select name="cid" class="admin-input-sm mr-2">
<option value="0">选择栏目</option>
{dede:global.optionarr/}
</select>
<select name="orderby" class="admin-input-sm mr-2">
<option value="id">排序</option>
<option value="pubdate">更新时间</option>
<option value="sortrank">置顶权值</option>
<option value="click">点击量</option>
<option value="scores">评论积分</option>
<option value="lastpost">最后评论</option>
</select>
<input type="text" name="timerange" autocomplete="off" id="timerange" class="admin-input-md" value="<?php echo $strTimerange;?>" placeholder="请选择日期">
<button type="submit" class="btn btn-success btn-sm">搜索</button>
</form>
</div>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">{dede:global.positionname/}文档列表</div>
<div class="card-body">
<form name="form2">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">id</td>
<td width="30%">文档标题</td>
<td scope="col">栏目</td>
<td scope="col">网页</td>
<td scope="col">权限</td>
<td scope="col">编辑</td>
<td scope="col">更新时间</td>
<td scope="col">点击</td>
<td>操作</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td><input type="checkbox" name="arcID" value="{dede:field.id/}"></td>
<td>{dede:field.id/}</td>
<td>
<a href="archives_do.php?aid={dede:field.id/}&dopost=editArchives">
<img src="{dede:field.litpic function='CheckPic(@me)'/}" class="thumbnail-sm">
<span>{dede:field.title/}</span>
</a>
{dede:field.flag function='IsCommendArchives(@me)'/}
</td>
<td>{dede:field.typeid function='GetTypename(@me)'/}</td>
<td>{dede:field.ismake function='IsHtmlArchives(@me)'/}</td>
<td>{dede:field.arcrank function='GetRankName(@me)'/}</td>
<td>{dede:field.mid function='GetMemberName(@me)'/}</td>
<td>{dede:field.senddate function='GetDateTimeMk(@me)'/}</td>
<td>{dede:field.click/}</td>
<td>
<a href="javascript:QuickEdit('{dede:field.id/}',event,this);" class="btn btn-light btn-sm"><i class="fa fa-sliders" title="修改"></i></a>
<a href="javascript:editArc({dede:field.id/});" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="编辑"></i></a>
<a href="javascript:viewArc({dede:field.id/});" class="btn btn-light btn-sm"><i class="fa fa-eye" title="预览"></i></a>
</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="10">
<a href="javascript:selAll();" class="btn btn-success btn-sm">全选</a>
<a href="javascript:noSelAll();" class="btn btn-success btn-sm">取消</a>
<a href="javascript:updateArc(0);" class="btn btn-success btn-sm">更新</a>
<a href="javascript:checkArc(0);" class="btn btn-success btn-sm">审核</a>
<a href="javascript:adArc(0);" class="btn btn-success btn-sm">推荐</a>
<a href="javascript:moveArc(event,this,<?php echo (empty($channelid) ? 0 : $channelid);?>);" class="btn btn-success btn-sm">移动</a>
<a href="javascript:delArc(0);" class="btn btn-danger btn-sm">删除</a>
<a href="javascript:cAtts('attsAdd',event,this);" class="btn btn-success btn-sm">添加属性</a>
<a href="javascript:cAtts('attsDel',event,this);" class="btn btn-danger btn-sm">删除属性</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
<div class="card shadow-sm">
<div class="card-header">{dede:global.positionname/}文档列表</div>
<div class="card-body">
<form name="form2">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">id</td>
<td width="30%">文档标题</td>
<td scope="col">栏目</td>
<td scope="col">网页</td>
<td scope="col">权限</td>
<td scope="col">编辑</td>
<td scope="col">更新时间</td>
<td scope="col">点击</td>
<td>操作</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td><input type="checkbox" name="arcID" value="{dede:field.id/}"></td>
<td>{dede:field.id/}</td>
<td>
<a href="archives_do.php?aid={dede:field.id/}&dopost=editArchives">
<img src="{dede:field.litpic function='CheckPic(@me)'/}" class="thumbnail-sm">
<span>{dede:field.title/}</span>
</a>
{dede:field.flag function='IsCommendArchives(@me)'/}
</td>
<td>{dede:field.typeid function='GetTypename(@me)'/}</td>
<td>{dede:field.ismake function='IsHtmlArchives(@me)'/}</td>
<td>{dede:field.arcrank function='GetRankName(@me)'/}</td>
<td>{dede:field.mid function='GetMemberName(@me)'/}</td>
<td>{dede:field.senddate function='GetDateTimeMk(@me)'/}</td>
<td>{dede:field.click/}</td>
<td>
<a href="javascript:QuickEdit('{dede:field.id/}',event,this);" class="btn btn-light btn-sm"><i class="fa fa-sliders" title="修改"></i></a>
<a href="javascript:editArc({dede:field.id/});" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="编辑"></i></a>
<a href="javascript:viewArc({dede:field.id/});" class="btn btn-light btn-sm"><i class="fa fa-eye" title="预览"></i></a>
</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="10">
<a href="javascript:selAll();" class="btn btn-success btn-sm">全选</a>
<a href="javascript:noSelAll();" class="btn btn-success btn-sm">取消</a>
<a href="javascript:updateArc(0);" class="btn btn-success btn-sm">更新</a>
<a href="javascript:checkArc(0);" class="btn btn-success btn-sm">审核</a>
<a href="javascript:adArc(0);" class="btn btn-success btn-sm">推荐</a>
<a href="javascript:moveArc(event,this,<?php echo (empty($channelid) ? 0 : $channelid);?>);" class="btn btn-success btn-sm">移动</a>
<a href="javascript:delArc(0);" class="btn btn-danger btn-sm">删除</a>
<a href="javascript:cAtts('attsAdd',event,this);" class="btn btn-success btn-sm">添加属性</a>
<a href="javascript:cAtts('attsDel',event,this);" class="btn btn-danger btn-sm">删除属性</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
</div>
</div>
</div>
<script>


+ 103
- 101
src/admin/templets/content_list.htm View File

@@ -17,109 +17,111 @@
<script src="/static/web/js/admin.list.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">所有文档列表</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<a class="btn btn-success btn-sm" href="catalog_do.php?channelid={dede:global.channelid/}&cid={dede:global.cid/}&dopost=addArchives">添加文档</a>
{dede:if $adminid==$mid}
<a class="btn btn-success btn-sm" href="content_list.php?cid={dede:global.cid/}&mid=0">全部文档</a>
{else}
<a class="btn btn-success btn-sm" href="content_list.php?cid={dede:global.cid/}&mid=<?php echo $cuserLogin->getUserID();?>">我的文档</a>
{/dede:if}
{dede:global.CheckUserSend/}
<a class="btn btn-success btn-sm" href="catalog_main.php">栏目管理</a>
<a class="btn btn-success btn-sm" href="makehtml_list.php?cid={dede:global.cid/}">更新列表</a>
<a class="btn btn-success btn-sm" href="makehtml_archives.php?cid={dede:global.cid/}">更新文档</a>
<a class="btn btn-success btn-sm" href="recycling.php?cid={dede:global.cid/}">文档回收站</a>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">所有文档列表</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<a class="btn btn-success btn-sm" href="catalog_do.php?channelid={dede:global.channelid/}&cid={dede:global.cid/}&dopost=addArchives">添加文档</a>
{dede:if $adminid==$mid}
<a class="btn btn-success btn-sm" href="content_list.php?cid={dede:global.cid/}&mid=0">全部文档</a>
{else}
<a class="btn btn-success btn-sm" href="content_list.php?cid={dede:global.cid/}&mid=<?php echo $cuserLogin->getUserID();?>">我的文档</a>
{/dede:if}
{dede:global.CheckUserSend/}
<a class="btn btn-success btn-sm" href="catalog_main.php">栏目管理</a>
<a class="btn btn-success btn-sm" href="makehtml_list.php?cid={dede:global.cid/}">更新列表</a>
<a class="btn btn-success btn-sm" href="makehtml_archives.php?cid={dede:global.cid/}">更新文档</a>
<a class="btn btn-success btn-sm" href="recycling.php?cid={dede:global.cid/}">文档回收站</a>
</div>
</div>
</div>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form name="form3" action="content_list.php" method="get">
<input type="hidden" name="dopost" value="listArchives">
<input type="text" name="keyword" class="admin-input-lg mr-2" value="{dede:global.keyword/}" placeholder="请输入文档标题或文档id">
<select name="cid" class="admin-input-sm mr-2">
<option value="0">选择栏目</option>
{dede:global.optionarr/}
</select>
<select name="orderby" class="admin-input-sm mr-2">
<option value="id">选择排序</option>
<option value="pubdate">更新时间</option>
<option value="sortrank">置顶权值</option>
<option value="click">点击量</option>
<option value="scores">评论积分</option>
<option value="lastpost">最后评论</option>
</select>
<select name="flag" class="admin-input-sm mr-2">
<option value="">选择属性</option>
{dede:global.flagsArr/}
</select>
<input type="text" name="timerange" autocomplete="off" id="timerange" class="admin-input-md" value="<?php echo $strTimerange;?>" placeholder="请选择日期">
<button type="submit" class="btn btn-success btn-sm">搜索</button>
</form>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form name="form3" action="content_list.php" method="get">
<input type="hidden" name="dopost" value="listArchives">
<input type="text" name="keyword" class="admin-input-lg mr-2" value="{dede:global.keyword/}" placeholder="请输入文档标题或文档id">
<select name="cid" class="admin-input-sm mr-2">
<option value="0">选择栏目</option>
{dede:global.optionarr/}
</select>
<select name="orderby" class="admin-input-sm mr-2">
<option value="id">选择排序</option>
<option value="pubdate">更新时间</option>
<option value="sortrank">置顶权值</option>
<option value="click">点击量</option>
<option value="scores">评论积分</option>
<option value="lastpost">最后评论</option>
</select>
<select name="flag" class="admin-input-sm mr-2">
<option value="">选择属性</option>
{dede:global.flagsArr/}
</select>
<input type="text" name="timerange" autocomplete="off" id="timerange" class="admin-input-md" value="<?php echo $strTimerange;?>" placeholder="请选择日期">
<button type="submit" class="btn btn-success btn-sm">搜索</button>
</form>
</div>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">{dede:global.positionname/}所有文档列表</div>
<div class="card-body">
<form name="form2">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">id</td>
<td width="30%">文档标题</td>
<td scope="col">栏目</td>
<td scope="col">网页</td>
<td scope="col">权限</td>
<td scope="col">编辑</td>
<td scope="col">更新时间</td>
<td scope="col">点击</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td><input type="checkbox" name="arcID" value="{dede:field.id/}"></td>
<td>{dede:field.id/}</td>
<td><a href="archives_do.php?aid={dede:field.id/}&dopost=editArchives">{dede:field.title/}</a>{dede:field.flag function='IsCommendArchives(@me)'/}</td>
<td><a href="content_list.php?cid={dede:field.typeid/}">{dede:field.typeid function='GetTypename(@me)'/}</a></td>
<td>{dede:field.ismake function='IsHtmlArchives(@me)'/}</td>
<td>{dede:field.arcrank function='GetRankName(@me)'/}</td>
<td>{dede:field.mid function='GetMemberName(@me)'/}</td>
<td>{dede:field.senddate function='GetDateMk(@me)'/}</td>
<td>{dede:field.click/}</td>
<td>
<a href="javascript:QuickEdit('{dede:field.id/}',event,this);" class="btn btn-light btn-sm"><i class="fa fa-sliders" title="修改"></i></a>
<a href="javascript:editArc({dede:field.id/});" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="编辑"></i></a>
<a href="javascript:viewArc({dede:field.id/});" class="btn btn-light btn-sm"><i class="fa fa-eye" title="预览"></i></a>
</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="10">
<a href="javascript:selAll();" class="btn btn-success btn-sm">全选</a>
<a href="javascript:noSelAll();" class="btn btn-success btn-sm">取消</a>
<a href="javascript:updateArc(0);" class="btn btn-success btn-sm">更新</a>
<a href="javascript:checkArc(0);" class="btn btn-success btn-sm">审核</a>
<a href="javascript:adArc(0);" class="btn btn-success btn-sm">推荐</a>
<a href="javascript:moveArc(event,this,<?php echo (empty($channelid)?0:$channelid);?>);" class="btn btn-success btn-sm">移动</a>
<a href="javascript:delArc(0);" class="btn btn-danger btn-sm">删除</a>
<?php if ($channelid==1) echo "<a href='javascript:kwArc(0)' class='btn btn-success btn-sm'>自动关键词</a>";?>
<a href="javascript:cAtts('attsAdd',event,this);" class="btn btn-success btn-sm">添加属性</a>
<a href="javascript:cAtts('attsDel',event,this);" class="btn btn-danger btn-sm">删除属性</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
<div class="card shadow-sm">
<div class="card-header">{dede:global.positionname/}所有文档列表</div>
<div class="card-body">
<form name="form2">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">id</td>
<td width="30%">文档标题</td>
<td scope="col">栏目</td>
<td scope="col">网页</td>
<td scope="col">权限</td>
<td scope="col">编辑</td>
<td scope="col">更新时间</td>
<td scope="col">点击</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td><input type="checkbox" name="arcID" value="{dede:field.id/}"></td>
<td>{dede:field.id/}</td>
<td><a href="archives_do.php?aid={dede:field.id/}&dopost=editArchives">{dede:field.title/}</a>{dede:field.flag function='IsCommendArchives(@me)'/}</td>
<td><a href="content_list.php?cid={dede:field.typeid/}">{dede:field.typeid function='GetTypename(@me)'/}</a></td>
<td>{dede:field.ismake function='IsHtmlArchives(@me)'/}</td>
<td>{dede:field.arcrank function='GetRankName(@me)'/}</td>
<td>{dede:field.mid function='GetMemberName(@me)'/}</td>
<td>{dede:field.senddate function='GetDateMk(@me)'/}</td>
<td>{dede:field.click/}</td>
<td>
<a href="javascript:QuickEdit('{dede:field.id/}',event,this);" class="btn btn-light btn-sm"><i class="fa fa-sliders" title="修改"></i></a>
<a href="javascript:editArc({dede:field.id/});" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="编辑"></i></a>
<a href="javascript:viewArc({dede:field.id/});" class="btn btn-light btn-sm"><i class="fa fa-eye" title="预览"></i></a>
</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="10">
<a href="javascript:selAll();" class="btn btn-success btn-sm">全选</a>
<a href="javascript:noSelAll();" class="btn btn-success btn-sm">取消</a>
<a href="javascript:updateArc(0);" class="btn btn-success btn-sm">更新</a>
<a href="javascript:checkArc(0);" class="btn btn-success btn-sm">审核</a>
<a href="javascript:adArc(0);" class="btn btn-success btn-sm">推荐</a>
<a href="javascript:moveArc(event,this,<?php echo (empty($channelid)?0:$channelid);?>);" class="btn btn-success btn-sm">移动</a>
<a href="javascript:delArc(0);" class="btn btn-danger btn-sm">删除</a>
<?php if ($channelid==1) echo "<a href='javascript:kwArc(0)' class='btn btn-success btn-sm'>自动关键词</a>";?>
<a href="javascript:cAtts('attsAdd',event,this);" class="btn btn-success btn-sm">添加属性</a>
<a href="javascript:cAtts('attsDel',event,this);" class="btn btn-danger btn-sm">删除属性</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
</div>
</div>
</div>
<script>


+ 78
- 76
src/admin/templets/content_s_list.htm View File

@@ -14,84 +14,86 @@
<script src="/static/web/js/admin.list.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">专题列表</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<a class="btn btn-success btn-sm" href="spec_add.php">添加专题</a>
<?php echo $CheckUserSend?>
<a class="btn btn-success btn-sm" href="catalog_main.php">栏目管理</a>
<a class="btn btn-success btn-sm" href="makehtml_spec.php">更新专题</a>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">专题列表</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<a class="btn btn-success btn-sm" href="spec_add.php">添加专题</a>
<?php echo $CheckUserSend?>
<a class="btn btn-success btn-sm" href="catalog_main.php">栏目管理</a>
<a class="btn btn-success btn-sm" href="makehtml_spec.php">更新专题</a>
</div>
</div>
</div>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form name="form3" action="content_s_list.php" method="get">
<input type="hidden" name="dopost" value="listArchives">
<input type="hidden" name="channelid" value="3">
<input type="text" name="keyword" class="admin-input-lg mr-2" value="<?php echo $keyword?>" placeholder="请输入文档标题或文档id">
<select name="cid" class="admin-input-sm mr-2">
<option value="0">选择分类</option>
<?php echo $optionarr?>
</select>
<input type="text" name="timerange" autocomplete="off" id="timerange" class="admin-input-md" value="<?php echo $strTimerange;?>" placeholder="请选择日期">
<button type="submit"class="btn btn-success btn-sm">搜索</button>
</form>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form name="form3" action="content_s_list.php" method="get">
<input type="hidden" name="dopost" value="listArchives">
<input type="hidden" name="channelid" value="3">
<input type="text" name="keyword" class="admin-input-lg mr-2" value="<?php echo $keyword?>" placeholder="请输入文档标题或文档id">
<select name="cid" class="admin-input-sm mr-2">
<option value="0">选择分类</option>
<?php echo $optionarr?>
</select>
<input type="text" name="timerange" autocomplete="off" id="timerange" class="admin-input-md" value="<?php echo $strTimerange;?>" placeholder="请选择日期">
<button type="submit"class="btn btn-success btn-sm">搜索</button>
</form>
</div>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">专题列表</div>
<div class="card-body">
<form name="form2">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">id</td>
<td width="30%">文档标题</td>
<td scope="col">栏目</td>
<td scope="col">网页</td>
<td scope="col">权限</td>
<td scope="col">更新时间</td>
<td scope="col">点击</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td><input type="checkbox" name="arcID" value="{dede:field.id/}"></td>
<td>{dede:field.id/}</td>
<td><a href="archives_do.php?aid={dede:field.id/}&dopost=editArchives">{dede:field.title/}</a></td>
<td>{dede:field.typeid function='GetTypename(@me)'/}</td>
<td><?php echo IsHtmlArchives($fields['ismake'])?></td>
<td><?php echo GetRankName($fields['arcrank'])?></td>
<td><?php echo MyDate("Y-m-d H:i:s",$fields['senddate'])?></td>
<td>{dede:field.click/}</td>
<td>
<a href="javascript:editArc({dede:field.id/});" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="编辑"></i></a>
<a href="javascript:viewArc({dede:field.id/});" class="btn btn-light btn-sm"><i class="fa fa-eye" title="预览"></i></a>
</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="9">
<a href="javascript:selAll();" class="btn btn-success btn-sm">全选</a>
<a href="javascript:noSelAll();" class="btn btn-success btn-sm">取消</a>
<a href="javascript:updateArc(0);" class="btn btn-success btn-sm">更新</a>
<a href="javascript:checkArc(0);" class="btn btn-success btn-sm">审核</a>
<a href="javascript:adArc(0);" class="btn btn-success btn-sm">推荐</a>
<a href="javascript:delArc(0);" class="btn btn-danger btn-sm">删除</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
<div class="card shadow-sm">
<div class="card-header">专题列表</div>
<div class="card-body">
<form name="form2">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">id</td>
<td width="30%">文档标题</td>
<td scope="col">栏目</td>
<td scope="col">网页</td>
<td scope="col">权限</td>
<td scope="col">更新时间</td>
<td scope="col">点击</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td><input type="checkbox" name="arcID" value="{dede:field.id/}"></td>
<td>{dede:field.id/}</td>
<td><a href="archives_do.php?aid={dede:field.id/}&dopost=editArchives">{dede:field.title/}</a></td>
<td>{dede:field.typeid function='GetTypename(@me)'/}</td>
<td><?php echo IsHtmlArchives($fields['ismake'])?></td>
<td><?php echo GetRankName($fields['arcrank'])?></td>
<td><?php echo MyDate("Y-m-d H:i:s",$fields['senddate'])?></td>
<td>{dede:field.click/}</td>
<td>
<a href="javascript:editArc({dede:field.id/});" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="编辑"></i></a>
<a href="javascript:viewArc({dede:field.id/});" class="btn btn-light btn-sm"><i class="fa fa-eye" title="预览"></i></a>
</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="9">
<a href="javascript:selAll();" class="btn btn-success btn-sm">全选</a>
<a href="javascript:noSelAll();" class="btn btn-success btn-sm">取消</a>
<a href="javascript:updateArc(0);" class="btn btn-success btn-sm">更新</a>
<a href="javascript:checkArc(0);" class="btn btn-success btn-sm">审核</a>
<a href="javascript:adArc(0);" class="btn btn-success btn-sm">推荐</a>
<a href="javascript:delArc(0);" class="btn btn-danger btn-sm">删除</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
</div>
</div>
</div>
<script>


+ 59
- 57
src/admin/templets/content_select_list.htm View File

@@ -9,64 +9,66 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form name="form3" action="content_select_list.php" method="get">
<input type="hidden" name="f" value="<?php echo $f?>">
<input type="text" name="keyword" class="admin-input-lg mr-2" value="<?php echo $keyword?>" placeholder="请输入文档标题或文档id">
<select name="cid" class="admin-input-sm">
<option value="0">选择分类</option>
<?php echo $optionarr?>
</select>
<button type="submit"class="btn btn-success btn-sm">搜索</button>
</form>
<div class="container-fluid">
<div class="card shadow-sm mb-3">
<div class="card-body">
<form name="form3" action="content_select_list.php" method="get">
<input type="hidden" name="f" value="<?php echo $f?>">
<input type="text" name="keyword" class="admin-input-lg mr-2" value="<?php echo $keyword?>" placeholder="请输入文档标题或文档id">
<select name="cid" class="admin-input-sm">
<option value="0">选择分类</option>
<?php echo $optionarr?>
</select>
<button type="submit"class="btn btn-success btn-sm">搜索</button>
</form>
</div>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">选择文档</div>
<div class="card-body">
<form name="form2">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">id</td>
<td width="30%">文档标题</td>
<td scope="col">栏目</td>
<td scope="col">网页</td>
<td scope="col">权限</td>
<td scope="col">更新时间</td>
<td scope="col">点击</td>
<td scope="col">属性</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td><input type="checkbox" name="arcID" value="{dede:field.id/}"></td>
<td>{dede:field.id/}</td>
<td><a href="archives_do.php?aid={dede:field.id/}&dopost=editArchives">{dede:field.title/}</a></td>
<td>{dede:field.typeid function='GetTypename(@me)'/}</td>
<td>{dede:field.ismake function='IsHtmlArchives(@me)'/}</td>
<td>{dede:field.arcrank function='GetRankName(@me)'/}</td>
<td>{dede:field.senddate function='GetDateMk(@me)'/}</td>
<td>{dede:field.click/}</td>
<td>{dede:field.flag function='IsCommendArchives(@me)'/}</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="9">
<a href="javascript:selAll();" class="btn btn-success btn-sm">全选</a>
<a href="javascript:noSelAll();" class="btn btn-success btn-sm">取消</a>
<a href="javascript:ReturnValue();" class="btn btn-success btn-sm">选定值</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
<div class="card shadow-sm">
<div class="card-header">选择文档</div>
<div class="card-body">
<form name="form2">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">id</td>
<td width="30%">文档标题</td>
<td scope="col">栏目</td>
<td scope="col">网页</td>
<td scope="col">权限</td>
<td scope="col">更新时间</td>
<td scope="col">点击</td>
<td scope="col">属性</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td><input type="checkbox" name="arcID" value="{dede:field.id/}"></td>
<td>{dede:field.id/}</td>
<td><a href="archives_do.php?aid={dede:field.id/}&dopost=editArchives">{dede:field.title/}</a></td>
<td>{dede:field.typeid function='GetTypename(@me)'/}</td>
<td>{dede:field.ismake function='IsHtmlArchives(@me)'/}</td>
<td>{dede:field.arcrank function='GetRankName(@me)'/}</td>
<td>{dede:field.senddate function='GetDateMk(@me)'/}</td>
<td>{dede:field.click/}</td>
<td>{dede:field.flag function='IsCommendArchives(@me)'/}</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="9">
<a href="javascript:selAll();" class="btn btn-success btn-sm">全选</a>
<a href="javascript:noSelAll();" class="btn btn-success btn-sm">取消</a>
<a href="javascript:ReturnValue();" class="btn btn-success btn-sm">选定值</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
</div>
</div>
</div>
<script>


+ 89
- 87
src/admin/templets/content_sg_list.htm View File

@@ -17,95 +17,97 @@
<script src="/static/web/js/admin.list.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">文档列表</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<a class="btn btn-success btn-sm" href="catalog_do.php?channelid={dede:global.channelid/}&cid={dede:global.cid/}&dopost=addArchives">添加文档</a>
{dede:if $adminid==$mid}
<a class="btn btn-success btn-sm" href="content_list.php?cid={dede:global.cid/}&mid=0">全部文档</a>
{else}
<a class="btn btn-success btn-sm" href="content_list.php?cid={dede:global.cid/}&mid=<?php echo $cuserLogin->getUserID();?>">我的文档</a>
{/dede:if}
<a class="btn btn-success btn-sm" href="catalog_main.php">栏目管理</a>
<a class="btn btn-success btn-sm" href="makehtml_list.php?cid={dede:global.cid/}">更新列表</a>
<a class="btn btn-success btn-sm" href="makehtml_archives.php?cid={dede:global.cid/}">更新文档</a>
<?php echo $CheckUserSend;?>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">文档列表</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<a class="btn btn-success btn-sm" href="catalog_do.php?channelid={dede:global.channelid/}&cid={dede:global.cid/}&dopost=addArchives">添加文档</a>
{dede:if $adminid==$mid}
<a class="btn btn-success btn-sm" href="content_list.php?cid={dede:global.cid/}&mid=0">全部文档</a>
{else}
<a class="btn btn-success btn-sm" href="content_list.php?cid={dede:global.cid/}&mid=<?php echo $cuserLogin->getUserID();?>">我的文档</a>
{/dede:if}
<a class="btn btn-success btn-sm" href="catalog_main.php">栏目管理</a>
<a class="btn btn-success btn-sm" href="makehtml_list.php?cid={dede:global.cid/}">更新列表</a>
<a class="btn btn-success btn-sm" href="makehtml_archives.php?cid={dede:global.cid/}">更新文档</a>
<?php echo $CheckUserSend;?>
</div>
</div>
</div>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form name="form3" action="content_sg_list.php" method="get">
<input type="hidden" name="dopost" value="listArchives">
<input type="hidden" name="channelid" value="{dede:global.channelid/}">
<input type="text" name="keyword" class="admin-input-lg mr-2" value="{dede:global.keyword/}" placeholder="请输入文档标题或文档id">
<select name="cid" class="admin-input-sm mr-2">
<option value="0">选择分类</option>
{dede:global.optionarr/}
</select>
<input type="text" name="timerange" autocomplete="off" id="timerange" class="admin-input-md" value="<?php echo $strTimerange;?>" placeholder="请选择日期">
<button type="submit"class="btn btn-success btn-sm">搜索</button>
</form>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form name="form3" action="content_sg_list.php" method="get">
<input type="hidden" name="dopost" value="listArchives">
<input type="hidden" name="channelid" value="{dede:global.channelid/}">
<input type="text" name="keyword" class="admin-input-lg mr-2" value="{dede:global.keyword/}" placeholder="请输入文档标题或文档id">
<select name="cid" class="admin-input-sm mr-2">
<option value="0">选择分类</option>
{dede:global.optionarr/}
</select>
<input type="text" name="timerange" autocomplete="off" id="timerange" class="admin-input-md" value="<?php echo $strTimerange;?>" placeholder="请选择日期">
<button type="submit"class="btn btn-success btn-sm">搜索</button>
</form>
</div>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">{dede:global.positionname/}文档列表</div>
<div class="card-body">
<form name="form2">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">id</td>
<td width="30%">文档标题</td>
<td scope="col">栏目</td>
<td scope="col">权限</td>
<td scope="col">编辑</td>
<td scope="col">更新时间</td>
<td scope="col">点击</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td><input type="checkbox" name="arcID" value="{dede:field.aid/}"></td>
<td>{dede:field.id/}</td>
<td><a href="archives_do.php?aid={dede:field.aid/}&dopost=editArchives">{dede:field.title/}{dede:field.flag function='IsCommendArchives(@me)'/}</a></td>
<td>{dede:field.typename/}</td>
<td>{dede:field.arcrank function='GetRankName(@me)'/}</td>
<td>{dede:field.mid function='GetMemberName(@me)'/}</td>
<td>{dede:field.senddate function='GetDateMk(@me)'/}</td>
<td>{dede:field.click/}</td>
<td>
<a href="javascript:QuickEdit('{dede:field.id/}',event,this);" class="btn btn-light btn-sm"><i class="fa fa-sliders" title="修改"></i></a>
<a href="javascript:editArc({dede:field.id/});" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="编辑"></i></a>
<a href="javascript:viewArc({dede:field.id/});" class="btn btn-light btn-sm"><i class="fa fa-eye" title="预览"></i></a>
</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="9">
<a href="javascript:selAll();" class="btn btn-success btn-sm">全选</a>
<a href="javascript:noSelAll();" class="btn btn-success btn-sm">取消</a>
<a href="javascript:updateArc(0);" class="btn btn-success btn-sm">更新</a>
<a href="javascript:checkArc(0);" class="btn btn-success btn-sm">审核</a>
<a href="javascript:adArc(0);" class="btn btn-success btn-sm">推荐</a>
<a href="javascript:moveArc(event,this,<?php echo (empty($channelid) ? 0 : $channelid);?>);" class="btn btn-success btn-sm">移动</a>
<a href="javascript:delArc(0);" class="btn btn-danger btn-sm">删除</a>
<?php if (!empty($f)) {?>
<a href="javascript:ReturnValue();" class="btn btn-success btn-sm">选定值</a>
<?php }?>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
<div class="card shadow-sm">
<div class="card-header">{dede:global.positionname/}文档列表</div>
<div class="card-body">
<form name="form2">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">id</td>
<td width="30%">文档标题</td>
<td scope="col">栏目</td>
<td scope="col">权限</td>
<td scope="col">编辑</td>
<td scope="col">更新时间</td>
<td scope="col">点击</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td><input type="checkbox" name="arcID" value="{dede:field.aid/}"></td>
<td>{dede:field.id/}</td>
<td><a href="archives_do.php?aid={dede:field.aid/}&dopost=editArchives">{dede:field.title/}{dede:field.flag function='IsCommendArchives(@me)'/}</a></td>
<td>{dede:field.typename/}</td>
<td>{dede:field.arcrank function='GetRankName(@me)'/}</td>
<td>{dede:field.mid function='GetMemberName(@me)'/}</td>
<td>{dede:field.senddate function='GetDateMk(@me)'/}</td>
<td>{dede:field.click/}</td>
<td>
<a href="javascript:QuickEdit('{dede:field.id/}',event,this);" class="btn btn-light btn-sm"><i class="fa fa-sliders" title="修改"></i></a>
<a href="javascript:editArc({dede:field.id/});" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="编辑"></i></a>
<a href="javascript:viewArc({dede:field.id/});" class="btn btn-light btn-sm"><i class="fa fa-eye" title="预览"></i></a>
</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="9">
<a href="javascript:selAll();" class="btn btn-success btn-sm">全选</a>
<a href="javascript:noSelAll();" class="btn btn-success btn-sm">取消</a>
<a href="javascript:updateArc(0);" class="btn btn-success btn-sm">更新</a>
<a href="javascript:checkArc(0);" class="btn btn-success btn-sm">审核</a>
<a href="javascript:adArc(0);" class="btn btn-success btn-sm">推荐</a>
<a href="javascript:moveArc(event,this,<?php echo (empty($channelid) ? 0 : $channelid);?>);" class="btn btn-success btn-sm">移动</a>
<a href="javascript:delArc(0);" class="btn btn-danger btn-sm">删除</a>
<?php if (!empty($f)) {?>
<a href="javascript:ReturnValue();" class="btn btn-success btn-sm">选定值</a>
<?php }?>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
</div>
</div>
</div>
<script>


+ 60
- 58
src/admin/templets/diy_add.htm View File

@@ -12,64 +12,66 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="diy_main.php">自定义表单管理</a></li>
<li class="breadcrumb-item active">添加自定义表单</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">添加自定义表单</div>
<div class="card-body">
<form name="form1" action="diy_add.php?action=add" method="post">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">表单id</td>
<td><input type="text" name="diyid" id="diyid" class="admin-input-sm" value="<?php echo $newdiyid?>">(创建后不可修改,具有唯一性)</td>
</tr>
<tr>
<td>表单名称</td>
<td><input type="text" name="name" id="name" class="admin-input-sm" value="自定义表单<?php echo $newdiyid;?>" required>(前后台显示表单的名称)</td>
</tr>
<tr>
<td>数据表名</td>
<td><input type="text" name="table" id="table" class="admin-input-sm" value="<?php echo $cfg_dbprefix;?>diyform<?php echo $newdiyid;?>">(储存自定义表单数据,不能重复已有表名,创建后不可修改表名)</span></td>
</tr>
<tr>
<td>字段配置</td>
<td>创建完后,请添加字段配置</td>
</tr>
<tr>
<td>列表模板</td>
<td><input type="text" name="listtemplate" id="listtemplate" class="admin-input-sm" value="list_diyform<?php echo $newdiyid;?>.htm"></td>
</tr>
<tr>
<td>文档模板</td>
<td><input type="text" name="viewtemplate" id="viewtemplate" class="admin-input-sm" value="view_diyform<?php echo $newdiyid;?>.htm"></td>
</tr>
<tr>
<td>发布模板</td>
<td><input type="text" name="posttemplate" id="posttemplate" class="admin-input-sm" value="post_diyform<?php echo $newdiyid;?>.htm"></td>
</tr>
<tr>
<td>前台列表和文档页公开</td>
<td>
<label><input type="radio" name="public" value="2"> 完全公开</label>
<label><input type="radio" name="public" value="1" checked> 审核公开</label>
<label><input type="radio" name="public" value="0"> 不公开</label>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="diy_main.php">自定义表单管理</a></li>
<li class="breadcrumb-item active">添加自定义表单</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">添加自定义表单</div>
<div class="card-body">
<form name="form1" action="diy_add.php?action=add" method="post">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">表单id</td>
<td><input type="text" name="diyid" id="diyid" class="admin-input-sm" value="<?php echo $newdiyid?>">(创建后不可修改,具有唯一性)</td>
</tr>
<tr>
<td>表单名称</td>
<td><input type="text" name="name" id="name" class="admin-input-sm" value="自定义表单<?php echo $newdiyid;?>" required>(前后台显示表单的名称)</td>
</tr>
<tr>
<td>数据表名</td>
<td><input type="text" name="table" id="table" class="admin-input-sm" value="<?php echo $cfg_dbprefix;?>diyform<?php echo $newdiyid;?>">(储存自定义表单数据,不能重复已有表名,创建后不可修改表名)</span></td>
</tr>
<tr>
<td>字段配置</td>
<td>创建完后,请添加字段配置</td>
</tr>
<tr>
<td>列表模板</td>
<td><input type="text" name="listtemplate" id="listtemplate" class="admin-input-sm" value="list_diyform<?php echo $newdiyid;?>.htm"></td>
</tr>
<tr>
<td>文档模板</td>
<td><input type="text" name="viewtemplate" id="viewtemplate" class="admin-input-sm" value="view_diyform<?php echo $newdiyid;?>.htm"></td>
</tr>
<tr>
<td>发布模板</td>
<td><input type="text" name="posttemplate" id="posttemplate" class="admin-input-sm" value="post_diyform<?php echo $newdiyid;?>.htm"></td>
</tr>
<tr>
<td>前台列表和文档页公开</td>
<td>
<label><input type="radio" name="public" value="2"> 完全公开</label>
<label><input type="radio" name="public" value="1" checked> 审核公开</label>
<label><input type="radio" name="public" value="0"> 不公开</label>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 121
- 119
src/admin/templets/diy_edit.htm View File

@@ -12,125 +12,127 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="diy_main.php">自定义表单管理</a></li>
<li class="breadcrumb-item active">修改自定义表单</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改自定义表单</div>
<div class="card-body">
<form name="form1" action="diy_edit.php" method="post">
<input type="hidden" name="diyid" value="<?php echo $diyid;?>">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">表单id</td>
<td><?php echo $diyid;?>(创建后不可修改,具有唯一性)</td>
</tr>
<tr>
<td>表单名称</td>
<td><input type="text" name="name" id="name" class="admin-input-sm" value="<?php echo $row['name']?>" required>(前后台显示表单的名称)</td>
</tr>
<tr>
<td>数据表名</td>
<td><input type="text" name="table" id="table" class="admin-input-sm" value="<?php echo $row['table'];?>" disabled="1">(储存自定义表单数据,不能重复已有表名,创建后不可修改表名)</td>
</tr>
<tr>
<td>列表模板</td>
<td><input type="text" name="listtemplate" id="listtemplate" class="admin-input-sm" value="<?php echo $row['listtemplate'];?>"></td>
</tr>
<tr>
<td>文档模板</td>
<td><input type="text" name="viewtemplate" id="viewtemplate" class="admin-input-sm" value="<?php echo $row['viewtemplate'];?>"></td>
</tr>
<tr>
<td>发布模板</td>
<td><input type="text" name="posttemplate" id="posttemplate" class="admin-input-sm" value="<?php echo $row['posttemplate'];?>"></td>
</tr>
<tr>
<td>前台列表和文档页公开</td>
<td>
<label><input type="radio" name="public" value="2" <?php echo $row['public'] == 2 ? 'checked' : '';?>> 完全公开</label>
<label><input type="radio" name="public" value="1" <?php echo $row['public'] == 1 ? 'checked' : '';?>> 审核公开</label>
<label><input type="radio" name="public" value="0" <?php echo $row['public'] == 0 ? 'checked' : '';?>> 不公开</label>
</td>
</tr>
<tr>
<td colspan="2">
<table class="table">
<thead>
<tr>
<td scope="col">字段名称</td>
<td scope="col">字段标识</td>
<td scope="col">数据类型</td>
<td scope="col">字段类型</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
<?php
$ds = file(DedeInclude('/inc/fieldtype.txt'));
foreach($ds as $d){
$dds = explode(',',trim($d));
$fieldtypes[$dds[0]] = $dds[1];
}
$fieldset = stripslashes($row['info']);
$dtp = new DedeTagParse();
$dtp->SetNameSpace("field","<",">");
$dtp->LoadSource($fieldset);
if (is_array($dtp->CTags)){
foreach($dtp->CTags as $ctag)
{
?>
<tr>
<td>
<?php
$itname = $ctag->GetAtt('itemname');
if ($itname=='') echo "没指定";
else echo $itname;
?>
</td>
<td><?php echo $ctag->GetTagName()?></td>
<td>
<?php
$ft = $ctag->GetAtt('type');
if (isset($fieldtypes[$ft])) echo $fieldtypes[$ft];
else echo "系统专用类型";
?>
</td>
<td>
<?php
$ft = $ctag->GetAtt('autofield');
if ($ft==''||$ft==0) echo "固化字段";
else echo "自动字段";
?>
</td>
<td>
<a href="diy_field_edit.php?diyid=<?php echo $diyid;?>&fname=<?php echo $ctag->GetTagName()?>" class="btn btn-success btn-sm"><i class="fa fa-pencil-square" title="修改"></i></a>
<a href="diy_field_edit.php?diyid=<?php echo $diyid;?>&action=delete&fname=<?php echo $ctag->GetTagName()?>" class="btn btn-danger btn-sm"><i class="fa fa-trash" title="删除"></i></a>
</td>
</tr>
<?php }}?>
</tbody>
</table>
</td>
</tr>
<tr>
<td colspan="2"><a class="btn btn-success btn-sm" href="diy_field_add.php?diyid=<?php echo $diyid;?>">添加新字段</button></td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="diy_main.php">自定义表单管理</a></li>
<li class="breadcrumb-item active">修改自定义表单</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改自定义表单</div>
<div class="card-body">
<form name="form1" action="diy_edit.php" method="post">
<input type="hidden" name="diyid" value="<?php echo $diyid;?>">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">表单id</td>
<td><?php echo $diyid;?>(创建后不可修改,具有唯一性)</td>
</tr>
<tr>
<td>表单名称</td>
<td><input type="text" name="name" id="name" class="admin-input-sm" value="<?php echo $row['name']?>" required>(前后台显示表单的名称)</td>
</tr>
<tr>
<td>数据表名</td>
<td><input type="text" name="table" id="table" class="admin-input-sm" value="<?php echo $row['table'];?>" disabled="1">(储存自定义表单数据,不能重复已有表名,创建后不可修改表名)</td>
</tr>
<tr>
<td>列表模板</td>
<td><input type="text" name="listtemplate" id="listtemplate" class="admin-input-sm" value="<?php echo $row['listtemplate'];?>"></td>
</tr>
<tr>
<td>文档模板</td>
<td><input type="text" name="viewtemplate" id="viewtemplate" class="admin-input-sm" value="<?php echo $row['viewtemplate'];?>"></td>
</tr>
<tr>
<td>发布模板</td>
<td><input type="text" name="posttemplate" id="posttemplate" class="admin-input-sm" value="<?php echo $row['posttemplate'];?>"></td>
</tr>
<tr>
<td>前台列表和文档页公开</td>
<td>
<label><input type="radio" name="public" value="2" <?php echo $row['public'] == 2 ? 'checked' : '';?>> 完全公开</label>
<label><input type="radio" name="public" value="1" <?php echo $row['public'] == 1 ? 'checked' : '';?>> 审核公开</label>
<label><input type="radio" name="public" value="0" <?php echo $row['public'] == 0 ? 'checked' : '';?>> 不公开</label>
</td>
</tr>
<tr>
<td colspan="2">
<table class="table">
<thead>
<tr>
<td scope="col">字段名称</td>
<td scope="col">字段标识</td>
<td scope="col">数据类型</td>
<td scope="col">字段类型</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
<?php
$ds = file(DedeInclude('/inc/fieldtype.txt'));
foreach($ds as $d){
$dds = explode(',',trim($d));
$fieldtypes[$dds[0]] = $dds[1];
}
$fieldset = stripslashes($row['info']);
$dtp = new DedeTagParse();
$dtp->SetNameSpace("field","<",">");
$dtp->LoadSource($fieldset);
if (is_array($dtp->CTags)){
foreach($dtp->CTags as $ctag)
{
?>
<tr>
<td>
<?php
$itname = $ctag->GetAtt('itemname');
if ($itname=='') echo "没指定";
else echo $itname;
?>
</td>
<td><?php echo $ctag->GetTagName()?></td>
<td>
<?php
$ft = $ctag->GetAtt('type');
if (isset($fieldtypes[$ft])) echo $fieldtypes[$ft];
else echo "系统专用类型";
?>
</td>
<td>
<?php
$ft = $ctag->GetAtt('autofield');
if ($ft==''||$ft==0) echo "固化字段";
else echo "自动字段";
?>
</td>
<td>
<a href="diy_field_edit.php?diyid=<?php echo $diyid;?>&fname=<?php echo $ctag->GetTagName()?>" class="btn btn-success btn-sm"><i class="fa fa-pencil-square" title="修改"></i></a>
<a href="diy_field_edit.php?diyid=<?php echo $diyid;?>&action=delete&fname=<?php echo $ctag->GetTagName()?>" class="btn btn-danger btn-sm"><i class="fa fa-trash" title="删除"></i></a>
</td>
</tr>
<?php }}?>
</tbody>
</table>
</td>
</tr>
<tr>
<td colspan="2"><a class="btn btn-success btn-sm" href="diy_field_add.php?diyid=<?php echo $diyid;?>">添加新字段</button></td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 40
- 38
src/admin/templets/diy_edit_content.htm View File

@@ -9,45 +9,47 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="diy_main.php">自定义表单管理</a></li>
<li class="breadcrumb-item active">修改<?php echo $diy->name;?></li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改<?php echo $diy->name;?></div>
<div class="card-body">
<form name="form1" method="post" enctype="multipart/form-data" action="diy_list.php?action=edit&diyid=<?php echo $diy->diyid ?>&id=<?php echo $row['id'] ?>&do=2">
<input type="hidden" name="dopost" value="edit">
<input type="hidden" name="id" value="<?php echo $row['id'];?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<?php
$formfields = '';
foreach($fieldlist as $field=>$fielddata)
{
$allowhtml = array('htmltext');
if ($row[$field]=='') continue;
if (!in_array($fielddata[1],$allowhtml)) {
$row[$field] = dede_htmlspecialchars($row[$field]);
$row[$field] = "<textarea name='".$field."' class='admin-textarea-xl'>$row[$field]</textarea>";
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="diy_main.php">自定义表单管理</a></li>
<li class="breadcrumb-item active">修改<?php echo $diy->name;?></li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改<?php echo $diy->name;?></div>
<div class="card-body">
<form name="form1" method="post" enctype="multipart/form-data" action="diy_list.php?action=edit&diyid=<?php echo $diy->diyid ?>&id=<?php echo $row['id'] ?>&do=2">
<input type="hidden" name="dopost" value="edit">
<input type="hidden" name="id" value="<?php echo $row['id'];?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<?php
$formfields = '';
foreach($fieldlist as $field=>$fielddata)
{
$allowhtml = array('htmltext');
if ($row[$field]=='') continue;
if (!in_array($fielddata[1],$allowhtml)) {
$row[$field] = dede_htmlspecialchars($row[$field]);
$row[$field] = "<textarea name='".$field."' class='admin-textarea-xl'>$row[$field]</textarea>";
}
echo '<tr><td width="260">'.$fielddata[0].':'.'</td><td>'.$row[$field].'</td></tr>';
$formfields .= $formfields == ''? $field.','.$fielddata[1] : ';'.$field.','.$fielddata[1];
}
echo '<tr><td width="260">'.$fielddata[0].':'.'</td><td>'.$row[$field].'</td></tr>';
$formfields .= $formfields == ''? $field.','.$fielddata[1] : ';'.$field.','.$fielddata[1];
}
echo "<input type='hidden' name='dede_fields' value='".$formfields."'>";
?>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
echo "<input type='hidden' name='dede_fields' value='".$formfields."'>";
?>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 80
- 78
src/admin/templets/diy_field_add.htm View File

@@ -12,84 +12,86 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="diy_main.php">自定义表单管理</a></li>
<li class="breadcrumb-item active">添加自定义表单字段</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">添加自定义表单字段</div>
<div class="card-body">
<div class="alert alert-warning">不支持字段输入单引号和双引号</div>
<form name="form1" action="diy_field_add.php" method="post" onSubmit="return GetFields();">
<input type="hidden" name="action" value="save">
<input type="hidden" name="diyid" value="<?php echo $diyid?>">
<input type="hidden" name="fieldstring">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">字段名称</td>
<td><input type="text" name="itemname" id="itemname" class="admin-input-sm" required>(前后台显示字段的名称)</td>
</tr>
<tr>
<td>字段标识</td>
<td><input type="text" name="fieldname" id="fieldname" class="admin-input-sm" required>(只能用英文字母或数字,如果数据类型是联动类型,请填写联动类型组名称)</td>
</tr>
<tr>
<td>是否使用分页符</td>
<td>
<input type="hidden" name="isnull" value="1">
<label><input type="radio" name="spage" value="split"> 是</label>
<label><input type="radio" name="spage" value="no" checked> 否</label>
<span>(如果文档使用分页符,文档用#p#副标题#e#作为分页符实现文档分页,但仅允许一个字段)</span>
</td>
</tr>
<tr>
<td>数据类型</td>
<td>
<div class="nw"><label><input type="radio" name="dtype" id="dtype1" value="text" checked> 单行文本(varchar)</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype2" value="textchar"> 单行文本(char)</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype3" value="multitext"> 多行文本</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype4" value="htmltext"> 网页文本</label></div>
<br class="cls">
<div class="nw"><label><input type="radio" name="dtype" id="dtype6" value="int"> 整数类型</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype7" value="float"> 小数类型</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype8" value="datetime"> 时间类型</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype13" value="select"> option下拉框</label></div>
<br class="cls">
<div class="nw"><label><input type="radio" name="dtype" id="dtype14" value="radio"> radio选项卡</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype15" value="checkbox"> checkbox多选框</label></div>
</td>
</tr>
<tr>
<td>默认值</td>
<td>
<p>(自定义字段数据类型为select、radio、checkbox时,下面填写数据,英文逗号隔开,如:DedeBIZ,得德)</p>
<textarea name="vdefault" id="vdefault" class="admin-textarea-xl"></textarea>
</td>
</tr>
<tr>
<td>自定义网页表单</td>
<td>
<p>(自定义网页表单用~name~表示提示文字,~form~表示表单元素)</p>
<textarea name="vinnertext" id="vinnertext" class="admin-textarea-xl"></textarea>
</td>
</tr>
<tr>
<td>最大长度</td>
<td><input type="text" name="maxlength" id="maxlength" value="255" class="admin-input-sm">(文本数据必须填写,大于255为text类型)</td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="diy_main.php">自定义表单管理</a></li>
<li class="breadcrumb-item active">添加自定义表单字段</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">添加自定义表单字段</div>
<div class="card-body">
<div class="alert alert-warning">不支持字段输入单引号和双引号</div>
<form name="form1" action="diy_field_add.php" method="post" onSubmit="return GetFields();">
<input type="hidden" name="action" value="save">
<input type="hidden" name="diyid" value="<?php echo $diyid?>">
<input type="hidden" name="fieldstring">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">字段名称</td>
<td><input type="text" name="itemname" id="itemname" class="admin-input-sm" required>(前后台显示字段的名称)</td>
</tr>
<tr>
<td>字段标识</td>
<td><input type="text" name="fieldname" id="fieldname" class="admin-input-sm" required>(只能用英文字母或数字,如果数据类型是联动类型,请填写联动类型组名称)</td>
</tr>
<tr>
<td>是否使用分页符</td>
<td>
<input type="hidden" name="isnull" value="1">
<label><input type="radio" name="spage" value="split"> 是</label>
<label><input type="radio" name="spage" value="no" checked> 否</label>
<span>(如果文档使用分页符,文档用#p#副标题#e#作为分页符实现文档分页,但仅允许一个字段)</span>
</td>
</tr>
<tr>
<td>数据类型</td>
<td>
<div class="nw"><label><input type="radio" name="dtype" id="dtype1" value="text" checked> 单行文本(varchar)</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype2" value="textchar"> 单行文本(char)</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype3" value="multitext"> 多行文本</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype4" value="htmltext"> 网页文本</label></div>
<br class="cls">
<div class="nw"><label><input type="radio" name="dtype" id="dtype6" value="int"> 整数类型</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype7" value="float"> 小数类型</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype8" value="datetime"> 时间类型</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype13" value="select"> option下拉框</label></div>
<br class="cls">
<div class="nw"><label><input type="radio" name="dtype" id="dtype14" value="radio"> radio选项卡</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype15" value="checkbox"> checkbox多选框</label></div>
</td>
</tr>
<tr>
<td>默认值</td>
<td>
<p>(自定义字段数据类型为select、radio、checkbox时,下面填写数据,英文逗号隔开,如:DedeBIZ,得德)</p>
<textarea name="vdefault" id="vdefault" class="admin-textarea-xl"></textarea>
</td>
</tr>
<tr>
<td>自定义网页表单</td>
<td>
<p>(自定义网页表单用~name~表示提示文字,~form~表示表单元素)</p>
<textarea name="vinnertext" id="vinnertext" class="admin-textarea-xl"></textarea>
</td>
</tr>
<tr>
<td>最大长度</td>
<td><input type="text" name="maxlength" id="maxlength" value="255" class="admin-input-sm">(文本数据必须填写,大于255为text类型)</td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>


+ 93
- 91
src/admin/templets/diy_field_edit.htm View File

@@ -12,97 +12,99 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="diy_main.php">自定义表单管理</a></li>
<li class="breadcrumb-item active">修改自定义表单字段</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改自定义表单字段</div>
<div class="card-body">
<form name="form1" action="diy_field_edit.php" method="post" onSubmit="return GetFields();">
<input type="hidden" name="action" value="save">
<input type="hidden" name="diyid" value="<?php echo $diyid?>">
<input type="hidden" name="fname" value="<?php echo $fname?>">
<input type="hidden" name="issystem" value="<?php echo $issystem?>">
<input type="hidden" name="fieldstring">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td>字段名称</td>
<td><input type="text" name="itemname" id="itemname" class="admin-input-sm" value="<?php echo $ctag->GetAtt('itemname')?>" required>(前后台显示字段的名称)</td>
</tr>
<tr>
<td width="260">字段标识</td>
<td><?php echo $fname?>(只能用英文字母或数字,如果数据类型是联动类型,请填写联动类型组名称)</td>
</tr>
<tr>
<td>是否使用分页符</td>
<td>
<input type="hidden" name="isnull" value="1">
<label><input type="radio" name="spage" value="split" <?php if ($ctag->GetAtt('page')=='split') echo 'checked';?>> 是</label>
<label><input type="radio" name="spage" value="no" <?php if ($ctag->GetAtt('page')=='no'||$ctag->GetAtt('page')=='') echo 'checked';?>> 否</label>
<span>(如果文档使用分页符,文档用#p#副标题#e#作为分页符实现文档分页,但仅允许一个字段)</span>
</td>
</tr>
<tr>
<td>数据类型</td>
<td>
<select name="dtype" id="type" class="admin-input-sm">
<?php
$dtype = $ctag->GetAtt('type');
if ($dtype!='' && isset($fieldtypes[$dtype])) {
echo "<option value='{$dtype}'>{$fieldtypes[$dtype]}</option>";
$canchange = true;
} else {
echo "<option value='{$dtype}'>系统专用类型</option>";
$canchange = false;
}
if ($canchange) {
?>
<option value="text">单行文本(varchar)</option>
<option value="textchar">单行文本(char)</option>
<option value="multitext">多行文本</option>
<option value="htmltext">网页文本</option>
<option value="int">整数类型</option>
<option value="float">小数类型</option>
<option value="datetime">时间类型</option>
<option value="select">option下拉框</option>
<option value="radio">radio选项卡</option>
<option value="checkbox">checkbox多选框</option>
<?php }?>
</select>
</td>
</tr>
<tr>
<td>默认值</td>
<td>
<p>(自定义字段数据类型为select、radio、checkbox时,下面填写数据,英文逗号隔开,如:DedeBIZ,得德)</p>
<textarea name="vdefault" id="vdefault" class="admin-textarea-xl"><?php echo $ctag->GetAtt('default');?></textarea>
</td>
</tr>
<tr>
<td>自定义网页表单</td>
<td>
<p>(自定义网页表单用~name~表示提示文字,~form~表示表单元素)</p>
<textarea name="vinnertext" id="vinnertext" class="admin-textarea-xl"><?php echo $ctag->GetInnerText();?></textarea>
</td>
</tr>
<tr>
<td>最大长度</td>
<td><input type="text" name="maxlength" id="maxlength" class="admin-input-sm" value="<?php echo $ctag->GetAtt('maxlength')?>">(文本数据必须填写,大于255为text类型)</td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="diy_main.php">自定义表单管理</a></li>
<li class="breadcrumb-item active">修改自定义表单字段</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改自定义表单字段</div>
<div class="card-body">
<form name="form1" action="diy_field_edit.php" method="post" onSubmit="return GetFields();">
<input type="hidden" name="action" value="save">
<input type="hidden" name="diyid" value="<?php echo $diyid?>">
<input type="hidden" name="fname" value="<?php echo $fname?>">
<input type="hidden" name="issystem" value="<?php echo $issystem?>">
<input type="hidden" name="fieldstring">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td>字段名称</td>
<td><input type="text" name="itemname" id="itemname" class="admin-input-sm" value="<?php echo $ctag->GetAtt('itemname')?>" required>(前后台显示字段的名称)</td>
</tr>
<tr>
<td width="260">字段标识</td>
<td><?php echo $fname?>(只能用英文字母或数字,如果数据类型是联动类型,请填写联动类型组名称)</td>
</tr>
<tr>
<td>是否使用分页符</td>
<td>
<input type="hidden" name="isnull" value="1">
<label><input type="radio" name="spage" value="split" <?php if ($ctag->GetAtt('page')=='split') echo 'checked';?>> 是</label>
<label><input type="radio" name="spage" value="no" <?php if ($ctag->GetAtt('page')=='no'||$ctag->GetAtt('page')=='') echo 'checked';?>> 否</label>
<span>(如果文档使用分页符,文档用#p#副标题#e#作为分页符实现文档分页,但仅允许一个字段)</span>
</td>
</tr>
<tr>
<td>数据类型</td>
<td>
<select name="dtype" id="type" class="admin-input-sm">
<?php
$dtype = $ctag->GetAtt('type');
if ($dtype!='' && isset($fieldtypes[$dtype])) {
echo "<option value='{$dtype}'>{$fieldtypes[$dtype]}</option>";
$canchange = true;
} else {
echo "<option value='{$dtype}'>系统专用类型</option>";
$canchange = false;
}
if ($canchange) {
?>
<option value="text">单行文本(varchar)</option>
<option value="textchar">单行文本(char)</option>
<option value="multitext">多行文本</option>
<option value="htmltext">网页文本</option>
<option value="int">整数类型</option>
<option value="float">小数类型</option>
<option value="datetime">时间类型</option>
<option value="select">option下拉框</option>
<option value="radio">radio选项卡</option>
<option value="checkbox">checkbox多选框</option>
<?php }?>
</select>
</td>
</tr>
<tr>
<td>默认值</td>
<td>
<p>(自定义字段数据类型为select、radio、checkbox时,下面填写数据,英文逗号隔开,如:DedeBIZ,得德)</p>
<textarea name="vdefault" id="vdefault" class="admin-textarea-xl"><?php echo $ctag->GetAtt('default');?></textarea>
</td>
</tr>
<tr>
<td>自定义网页表单</td>
<td>
<p>(自定义网页表单用~name~表示提示文字,~form~表示表单元素)</p>
<textarea name="vinnertext" id="vinnertext" class="admin-textarea-xl"><?php echo $ctag->GetInnerText();?></textarea>
</td>
</tr>
<tr>
<td>最大长度</td>
<td><input type="text" name="maxlength" id="maxlength" class="admin-input-sm" value="<?php echo $ctag->GetAtt('maxlength')?>">(文本数据必须填写,大于255为text类型)</td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>


+ 74
- 72
src/admin/templets/diy_list.htm View File

@@ -9,82 +9,84 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="diy_main.php">自定义表单管理</a></li>
<li class="breadcrumb-item active"><?php echo $diy->name;?>列表</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form name="form1" action="diy_list.php">
<input type="hidden" name="action" value="list">
<input type="hidden" name="diyid" value="<?php echo $diy->diyid; ?>">
<input type="text" name="keyword" class="admin-input-lg mr-2" value="<?php echo $keyword; ?>" placeholder="请输入关键词">
<select name="field" class="admin-input-sm">
<?php
foreach($fieldlist as $k=>$fielddata)
{
if ($k==$field) {
echo "<option value='{$k}' selected>{$fielddata[0]}</option>\r\n";
} else {
echo "<option value='{$k}'>{$fielddata[0]}</option>\r\n";
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="diy_main.php">自定义表单管理</a></li>
<li class="breadcrumb-item active"><?php echo $diy->name;?>列表</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form name="form1" action="diy_list.php">
<input type="hidden" name="action" value="list">
<input type="hidden" name="diyid" value="<?php echo $diy->diyid; ?>">
<input type="text" name="keyword" class="admin-input-lg mr-2" value="<?php echo $keyword; ?>" placeholder="请输入关键词">
<select name="field" class="admin-input-sm">
<?php
foreach($fieldlist as $k=>$fielddata)
{
if ($k==$field) {
echo "<option value='{$k}' selected>{$fielddata[0]}</option>\r\n";
} else {
echo "<option value='{$k}'>{$fielddata[0]}</option>\r\n";
}
}
}
?>
</select>
<button type="submit" class="btn btn-success btn-sm">搜索</button>
</form>
?>
</select>
<button type="submit" class="btn btn-success btn-sm">搜索</button>
</form>
</div>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header"><?php echo $diy->name;?>列表</div>
<div class="card-body">
<form action="diy_list.php" method="post">
<input type="hidden" name="diyid" value="<?php echo $diyid;?>">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<tbody>
{dede:datalist}
<?php
if (!empty($fields)) {
$allowhtml = array('htmltext');
$fields['sta'] = $fields['ifcheck']==1 ? '已审核' : '待审核';
echo '<tr>
<td width="16%">
<label><input type="checkbox" name="id[]" value="'.$fields['id'].'"> '.$fields['id'].'表单'.$fields['sta'].'</label>
</td>
<td align="right">
<a href="diy_list.php?action=edit&diyid='.$diy->diyid.'&id='.$fields['id'].'" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="修改"></i></a>
</td>
</tr>';
foreach($fieldlist as $field => $fielddata)
{
if ($fields[$field] == '') continue;
if (!in_array($fielddata[1], $allowhtml)) {
$fields[$field] = dede_htmlspecialchars($fields[$field]);
<div class="card shadow-sm">
<div class="card-header"><?php echo $diy->name;?>列表</div>
<div class="card-body">
<form action="diy_list.php" method="post">
<input type="hidden" name="diyid" value="<?php echo $diyid;?>">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<tbody>
{dede:datalist}
<?php
if (!empty($fields)) {
$allowhtml = array('htmltext');
$fields['sta'] = $fields['ifcheck']==1 ? '已审核' : '待审核';
echo '<tr>
<td width="16%">
<label><input type="checkbox" name="id[]" value="'.$fields['id'].'"> '.$fields['id'].'表单'.$fields['sta'].'</label>
</td>
<td align="right">
<a href="diy_list.php?action=edit&diyid='.$diy->diyid.'&id='.$fields['id'].'" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="修改"></i></a>
</td>
</tr>';
foreach($fieldlist as $field => $fielddata)
{
if ($fields[$field] == '') continue;
if (!in_array($fielddata[1], $allowhtml)) {
$fields[$field] = dede_htmlspecialchars($fields[$field]);
}
echo '<tr><td>'.$fielddata[0].'</td><td>'.$fields[$field].'</td></tr>';
}
echo '<tr><td>'.$fielddata[0].'</td><td>'.$fields[$field].'</td></tr>';
} else {
echo '<tr><td>暂无记录</td></tr>';
}
} else {
echo '<tr><td>暂无记录</td></tr>';
}
?>
{/dede:datalist}
<tr>
<td colspan="2">
<label><input type="radio" name="action" value="check"> 审核</label>
<label><input type="radio" name="action" value="delete"> 删除</label>
<button type="button" onclick="selAll();" class="btn btn-success btn-sm">全选</button>
<button type="button" onclick="noSelAll();" class="btn btn-success btn-sm">取消</button>
<button type="submit"class="btn btn-success btn-sm">提交</button>
<a href="<?php echo $cfg_phpurl;?>/diy.php?action=list&diyid=<?php echo $diy->diyid;?>" target="_blank" class="btn btn-success btn-sm">预览</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
?>
{/dede:datalist}
<tr>
<td colspan="2">
<label><input type="radio" name="action" value="check"> 审核</label>
<label><input type="radio" name="action" value="delete"> 删除</label>
<button type="button" onclick="selAll();" class="btn btn-success btn-sm">全选</button>
<button type="button" onclick="noSelAll();" class="btn btn-success btn-sm">取消</button>
<button type="submit"class="btn btn-success btn-sm">提交</button>
<a href="<?php echo $cfg_phpurl;?>/diy.php?action=list&diyid=<?php echo $diy->diyid;?>" target="_blank" class="btn btn-success btn-sm">预览</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
</div>
</div>
</div>
<script>


+ 40
- 38
src/admin/templets/diy_main.htm View File

@@ -10,45 +10,47 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">自定义表单管理</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">自定义表单管理</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">id</td>
<td scope="col">表单名称</td>
<td scope="col">数据表名</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td>{dede:field.diyid/}</td>
<td><a href="diy_list.php?action=list&diyid={dede:field.diyid/}">{dede:field.name/}</a></td>
<td>{dede:field.table/}</td>
<td>
<a href="diy_edit.php?diyid={dede:field.diyid/}&dopost=edit" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="修改"></i></a>
<a href="diy_list.php?action=list&diyid={dede:field.diyid/}" class="btn btn-light btn-sm"><i class="fa fa-file-text" title="列表"></i></a>
<a href="diy_list.php?action=excel&diyid={dede:field.diyid/}" target="_blank" class="btn btn-light btn-sm"><i class="fa fa-share-square" title="导出"></i></a>
<a href="{dede:global.cfg_phpurl/}/diy.php?action=list&diyid={dede:field.diyid/}" class="btn btn-light btn-sm" target="_blank"><i class="fa fa-eye" title="预览"></i></a>
<a href="diy_edit.php?diyid={dede:field.diyid/}&dopost=delete" class="btn btn-danger btn-sm"><i class="fa fa-trash" title="删除"></i></a>
</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="4"><a href="diy_add.php" class="btn btn-success btn-sm">添加自定义表单</a></td>
</tr>
</tbody>
</table>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">自定义表单管理</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">自定义表单管理</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">id</td>
<td scope="col">表单名称</td>
<td scope="col">数据表名</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td>{dede:field.diyid/}</td>
<td><a href="diy_list.php?action=list&diyid={dede:field.diyid/}">{dede:field.name/}</a></td>
<td>{dede:field.table/}</td>
<td>
<a href="diy_edit.php?diyid={dede:field.diyid/}&dopost=edit" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="修改"></i></a>
<a href="diy_list.php?action=list&diyid={dede:field.diyid/}" class="btn btn-light btn-sm"><i class="fa fa-file-text" title="列表"></i></a>
<a href="diy_list.php?action=excel&diyid={dede:field.diyid/}" target="_blank" class="btn btn-light btn-sm"><i class="fa fa-share-square" title="导出"></i></a>
<a href="{dede:global.cfg_phpurl/}/diy.php?action=list&diyid={dede:field.diyid/}" class="btn btn-light btn-sm" target="_blank"><i class="fa fa-eye" title="预览"></i></a>
<a href="diy_edit.php?diyid={dede:field.diyid/}&dopost=delete" class="btn btn-danger btn-sm"><i class="fa fa-trash" title="删除"></i></a>
</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="4"><a href="diy_add.php" class="btn btn-success btn-sm">添加自定义表单</a></td>
</tr>
</tbody>
</table>
</div>
{dede:pagelist listsize='6'/}
</div>
{dede:pagelist listsize='6'/}
</div>
</div>
</body>

+ 31
- 29
src/admin/templets/diy_post.htm View File

@@ -9,38 +9,40 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="diy_main.php">自定义表单管理</a></li>
<li class="breadcrumb-item active"><?php echo $diy->name;?></li>
</ol>
<div class="card shadow-sm">
<div class="card-header"><?php echo $diy->name;?></div>
<div class="card-body">
<form name="form1" action="diy_list.php" method="post">
<input type="hidden" name="action" value="post">
<input type="hidden" name="diyid" value="<?php echo $diyid;?>">
<input type="hidden" name="do" value="2">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td><?phpecho $postform;?></td>
</tr>
<tr>
<td align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="diy_main.php">自定义表单管理</a></li>
<li class="breadcrumb-item active"><?php echo $diy->name;?></li>
</ol>
<div class="card shadow-sm">
<div class="card-header"><?php echo $diy->name;?></div>
<div class="card-body">
<form name="form1" action="diy_list.php" method="post">
<input type="hidden" name="action" value="post">
<input type="hidden" name="diyid" value="<?php echo $diyid;?>">
<input type="hidden" name="do" value="2">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td><?phpecho $postform;?></td>
</tr>
<tr>
<td align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>
function SelectTemplets(fname){
function SelectTemplets(fname) {
var pos = GetWinPos(800,600);
window.open("dialog/select_templets.php?f="+fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left="+pos.left+", top="+pos.top);
}


+ 49
- 47
src/admin/templets/erradd.htm View File

@@ -10,53 +10,55 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">挑错管理</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">挑错管理</div>
<div class="card-body">
<form name="form2">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">id</td>
<td scope="col">挑错人</td>
<td scope="col">文档名称</td>
<td scope="col">出错类型</td>
<td scope="col">挑错时间</td>
<td scope="col">错误文档</td>
<td scope="col">修改建议</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td><input type="checkbox" name="id" id="id" value="{dede:field.id/}"></td>
<td>{dede:field.id/}</td>
<td>{dede:field.mid function='username(@me)'/}</td>
<td><a href='archives_do.php?dopost=editArchives&aid={dede:field.aid/}'>{dede:field.title/}</a></td>
<td>{dede:field.type function='typename(@me)'/}</td>
<td>{dede:field.sendtime function='GetDateMk(@me)'/}</td>
<td>{dede:field.errtxt/}</td>
<td>{dede:field.oktxt/}</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="8">
<a href="javascript:selAll();" class="btn btn-success btn-sm">全选</a>
<a href="javascript:noSelAll();" class="btn btn-success btn-sm">取消</a>
<a href="javascript:delArc(0);" class="btn btn-danger btn-sm">删除</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">挑错管理</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">挑错管理</div>
<div class="card-body">
<form name="form2">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">id</td>
<td scope="col">挑错人</td>
<td scope="col">文档名称</td>
<td scope="col">出错类型</td>
<td scope="col">挑错时间</td>
<td scope="col">错误文档</td>
<td scope="col">修改建议</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td><input type="checkbox" name="id" id="id" value="{dede:field.id/}"></td>
<td>{dede:field.id/}</td>
<td>{dede:field.mid function='username(@me)'/}</td>
<td><a href='archives_do.php?dopost=editArchives&aid={dede:field.aid/}'>{dede:field.title/}</a></td>
<td>{dede:field.type function='typename(@me)'/}</td>
<td>{dede:field.sendtime function='GetDateMk(@me)'/}</td>
<td>{dede:field.errtxt/}</td>
<td>{dede:field.oktxt/}</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="8">
<a href="javascript:selAll();" class="btn btn-success btn-sm">全选</a>
<a href="javascript:noSelAll();" class="btn btn-success btn-sm">取消</a>
<a href="javascript:delArc(0);" class="btn btn-danger btn-sm">删除</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
</div>
</div>
</div>
<script>


+ 56
- 54
src/admin/templets/feedback_edit.htm View File

@@ -9,60 +9,62 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="<?php echo $ENV_GOBACK_URL;?>">评论管理</a></li>
<li class="breadcrumb-item active">修改评论</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改评论</div>
<div class="card-body">
<form name="form1" method="post" action="feedback_edit.php">
<input type="hidden" name="dopost" value="edit">
<input type="hidden" name="id" value="<?php echo $row['id'];?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">评论所属文档</td>
<td><?php echo RemoveXSS($row['arctitle']);?></td>
</tr>
<tr>
<td>评论人</td>
<td><input type="text" name="username" id="username" class="admin-input-md" value="<?php echo $row['username'];?>"></td>
</tr>
<tr>
<td>评论发布时间</td>
<td><?php echo GetDateTimeMK($row['dtime']);?></td>
</tr>
<tr>
<td>ip地址</td>
<td><?php echo $row['ip'];?></td>
</tr>
<tr>
<td>评论文档</td>
<td>
<p>(修改的评论文档网页代码不会被屏蔽,可用语法修改)</p>
<textarea name="msg" id="msg" class="form-control"><?php echo cn_substr(Text2Html($row['msg']), 255);?></textarea>
</td>
</tr>
<tr>
<td>管理员回复</td>
<td>
<p>(回复文档的网页代码会被屏蔽)</p>
<textarea name="adminmsg" id="adminmsg" class="admin-textarea-xl"></textarea>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="<?php echo $ENV_GOBACK_URL;?>">评论管理</a></li>
<li class="breadcrumb-item active">修改评论</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改评论</div>
<div class="card-body">
<form name="form1" method="post" action="feedback_edit.php">
<input type="hidden" name="dopost" value="edit">
<input type="hidden" name="id" value="<?php echo $row['id'];?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">评论所属文档</td>
<td><?php echo RemoveXSS($row['arctitle']);?></td>
</tr>
<tr>
<td>评论人</td>
<td><input type="text" name="username" id="username" class="admin-input-md" value="<?php echo $row['username'];?>"></td>
</tr>
<tr>
<td>评论发布时间</td>
<td><?php echo GetDateTimeMK($row['dtime']);?></td>
</tr>
<tr>
<td>ip地址</td>
<td><?php echo $row['ip'];?></td>
</tr>
<tr>
<td>评论文档</td>
<td>
<p>(修改的评论文档网页代码不会被屏蔽,可用语法修改)</p>
<textarea name="msg" id="msg" class="form-control"><?php echo cn_substr(Text2Html($row['msg']), 255);?></textarea>
</td>
</tr>
<tr>
<td>管理员回复</td>
<td>
<p>(回复文档的网页代码会被屏蔽)</p>
<textarea name="adminmsg" id="adminmsg" class="admin-textarea-xl"></textarea>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 70
- 68
src/admin/templets/feedback_main.htm View File

@@ -12,75 +12,77 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">评论管理</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-header">修改评论</div>
<div class="card-body">
<form name="form1">
<input type="text" name="keyword" placeholder="请输入关键词" class="admin-input-lg mr-2">
<select name="typeid" class="admin-input-sm">
<option value="0">请选择</option>
{dede:global.openarray/}
</select>
<button type="submit"class="btn btn-success btn-sm">搜索</button>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">评论管理</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-header">修改评论</div>
<div class="card-body">
<form name="form1">
<input type="text" name="keyword" placeholder="请输入关键词" class="admin-input-lg mr-2">
<select name="typeid" class="admin-input-sm">
<option value="0">请选择</option>
{dede:global.openarray/}
</select>
<button type="submit"class="btn btn-success btn-sm">搜索</button>
</form>
</div>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">评论列表</div>
<div class="card-body">
<form name="feedback">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">名称</td>
<td scope="col">文档</td>
<td scope="col">评论</td>
<td scope="col">地址</td>
<td scope="col">时间</td>
<td scope="col">状态</td>
<td scope="col">操作</td>
</tr>
<tbody>
{dede:datalist}
<tr>
<td><input type="checkbox" name="fid" id="fid" value="{dede:field.id/}"></td>
<td>{dede:field.username/}</td>
<td>{dede:field.arctitle function="RemoveXSS(@me)"/}</td>
<td>
<span>{dede:field.msg function='cn_substr(Text2Html(@me),280)'/}</span>
<?php if ($fields['replycount'] > 0) {?><a href='feedback_main.php?fid={dede:field.id/}' class='btn btn-light btn-sm'>{dede:field.replycount/}条回复</a><?php }?>
</td>
<td><a href="feedback_main.php?ip={dede:field.ip/}">{dede:field.ip/}</a></td>
<td>{dede:field.dtime function="GetDateTimeMK(@me)"/}</td>
<td>{dede:field.ischeck function="IsCheck(@me)"/}</td>
<td>
<a href="feedback_edit.php?id={dede:field.id/}" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="修改"></i></a>
<a href="feedback_edit.php?id={dede:field.id/}&dopost=makehtml" class="btn btn-light btn-sm"><i class="fa fa-repeat" title="更新"></i></a>
<a href="archives_do.php?aid={dede:field.aid/}&dopost=viewArchives" target="_blank" class="btn btn-light btn-sm"><i class="fa fa-eye" title="浏览"></i></a>
</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="8">
<a href="javascript:selAll();" class="btn btn-success btn-sm">全选</a>
<a href="javascript:selNone();" class="btn btn-success btn-sm">取消</a>
<a href="javascript:selNor();" class="btn btn-success btn-sm">反选</a>
<a href="javascript:checkFeedback();" class="btn btn-success btn-sm">审核</a>
<a href="javascript:delFeedback();" class="btn btn-danger btn-sm">删除</a>
<a href="javascript:delFeedbackIP();" class="btn btn-danger btn-sm">删除相同地址评论</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
<div class="card shadow-sm">
<div class="card-header">评论列表</div>
<div class="card-body">
<form name="feedback">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">名称</td>
<td scope="col">文档</td>
<td scope="col">评论</td>
<td scope="col">地址</td>
<td scope="col">时间</td>
<td scope="col">状态</td>
<td scope="col">操作</td>
</tr>
<tbody>
{dede:datalist}
<tr>
<td><input type="checkbox" name="fid" id="fid" value="{dede:field.id/}"></td>
<td>{dede:field.username/}</td>
<td>{dede:field.arctitle function="RemoveXSS(@me)"/}</td>
<td>
<span>{dede:field.msg function='cn_substr(Text2Html(@me),280)'/}</span>
<?php if ($fields['replycount'] > 0) {?><a href='feedback_main.php?fid={dede:field.id/}' class='btn btn-light btn-sm'>{dede:field.replycount/}条回复</a><?php }?>
</td>
<td><a href="feedback_main.php?ip={dede:field.ip/}">{dede:field.ip/}</a></td>
<td>{dede:field.dtime function="GetDateTimeMK(@me)"/}</td>
<td>{dede:field.ischeck function="IsCheck(@me)"/}</td>
<td>
<a href="feedback_edit.php?id={dede:field.id/}" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="修改"></i></a>
<a href="feedback_edit.php?id={dede:field.id/}&dopost=makehtml" class="btn btn-light btn-sm"><i class="fa fa-repeat" title="更新"></i></a>
<a href="archives_do.php?aid={dede:field.aid/}&dopost=viewArchives" target="_blank" class="btn btn-light btn-sm"><i class="fa fa-eye" title="浏览"></i></a>
</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="8">
<a href="javascript:selAll();" class="btn btn-success btn-sm">全选</a>
<a href="javascript:selNone();" class="btn btn-success btn-sm">取消</a>
<a href="javascript:selNor();" class="btn btn-success btn-sm">反选</a>
<a href="javascript:checkFeedback();" class="btn btn-success btn-sm">审核</a>
<a href="javascript:delFeedback();" class="btn btn-danger btn-sm">删除</a>
<a href="javascript:delFeedbackIP();" class="btn btn-danger btn-sm">删除相同地址评论</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
</div>
</div>
</div>
<script>


+ 38
- 36
src/admin/templets/file_edit.htm View File

@@ -20,42 +20,44 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="file_manage_main.php">文件管理器</a></li>
<li class="breadcrumb-item active">新建/修改文件</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">新建/修改文件</div>
<div class="card-body">
<form name="form1" action="file_manage_control.php" method="post">
<input type="hidden" name="fmdo" value="edit">
<input type="hidden" name="backurl" value="{dede:global name='backurl' function='urlencode(@me)'/}">
<input type="hidden" name="_csrf_token" value="{dede:global name='csrf_token'/}">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">文件目录</td>
<td><input name="activepath" value="{dede:global name='activepath'/}" class="admin-input-lg" required>(空白表示根目录,不可以用小数点..表示路径)</td>
</tr>
<tr>
<td>文件名称</td>
<td><input name="filename" value="{dede:global name='filename'/}" class="admin-input-lg">(不可以用小数点..表示路径)</td>
</tr>
<tr>
<td colspan="2">{dede:global name='contentView'/}</td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="file_manage_main.php">文件管理器</a></li>
<li class="breadcrumb-item active">新建/修改文件</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">新建/修改文件</div>
<div class="card-body">
<form name="form1" action="file_manage_control.php" method="post">
<input type="hidden" name="fmdo" value="edit">
<input type="hidden" name="backurl" value="{dede:global name='backurl' function='urlencode(@me)'/}">
<input type="hidden" name="_csrf_token" value="{dede:global name='csrf_token'/}">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">文件目录</td>
<td><input name="activepath" value="{dede:global name='activepath'/}" class="admin-input-lg" required>(空白表示根目录,不可以用小数点..表示路径)</td>
</tr>
<tr>
<td>文件名称</td>
<td><input name="filename" value="{dede:global name='filename'/}" class="admin-input-lg">(不可以用小数点..表示路径)</td>
</tr>
<tr>
<td colspan="2">{dede:global name='contentView'/}</td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>


+ 259
- 257
src/admin/templets/file_manage_main.htm View File

@@ -9,268 +9,270 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">文件管理器</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">文件管理器</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">文件名称</td>
<td scope="col">文件大小</td>
<td scope="col">修改时间</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
<?php
$dh = scandir($inpath);
$ty1 = '';
$ty2 = '';
$files = $dirs = array();
foreach ($dh as $file) {
if ($file!="." && $file!=".." && !is_dir("$inpath/$file")) {
@$filesize = filesize("$inpath/$file");
@$filesize = $filesize/1024;
@$filetime = filemtime("$inpath/$file");
@$filetime = MyDate("Y-m-d H:i:s",$filetime);
if ($filesize<0.1) {
@list($ty1,$ty2)=explode(".",$filesize);
$filesize=$ty1.".".substr($ty2,0,2);
} else {
@list($ty1,$ty2)=explode(".",$filesize);
$filesize=$ty1.".".substr($ty2,0,1);
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">文件管理器</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">文件管理器</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">文件名称</td>
<td scope="col">文件大小</td>
<td scope="col">修改时间</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
<?php
$dh = scandir($inpath);
$ty1 = '';
$ty2 = '';
$files = $dirs = array();
foreach ($dh as $file) {
if ($file!="." && $file!=".." && !is_dir("$inpath/$file")) {
@$filesize = filesize("$inpath/$file");
@$filesize = $filesize/1024;
@$filetime = filemtime("$inpath/$file");
@$filetime = MyDate("Y-m-d H:i:s",$filetime);
if ($filesize<0.1) {
@list($ty1,$ty2)=explode(".",$filesize);
$filesize=$ty1.".".substr($ty2,0,2);
} else {
@list($ty1,$ty2)=explode(".",$filesize);
$filesize=$ty1.".".substr($ty2,0,1);
}
}
if ($file == ".") {
continue;
}
else if ($file == "..")
{
if ($activepath == "") {
continue;
}
$tmp = preg_replace("#[\/][^\/]*$#i","",$activepath);
$line = "\n<tr>
<td><a href='file_manage_main.php?activepath=".urlencode($tmp)."'><img src='/static/web/img/icon_dir2.png'> 返回上级</a></td>
<td colspan='3'>当前目录:$activepath</td>
</tr>";
$dirs[] = $line;
} else if (is_dir("$inpath/$file")) {
if (preg_match("#^_(.*)$#i",$file)) continue;
if (preg_match("#^\.(.*)$#i",$file)) continue;
$line = "\n<tr>
<td><a href='file_manage_main.php?activepath=".urlencode("$activepath/$file")."'><img src='/static/web/img/icon_dir.png'> $file</a></td>
<td></td>
<td></td>
<td align='left'>
<a href='file_manage_view.php?filename=".urlencode($file)."&activepath=".urlencode($activepath)."&fmdo=rename' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='file_manage_view.php?filename=".urlencode($file)."&activepath=".urlencode($activepath)."&type=dir&fmdo=del' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$dirs[] = $line;
} else if (preg_match("#\.(gif|png)#i",$file)) {
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='$activeurl/$file' style='width:20px'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square' title='移动'></i></a>
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$files[] = $line;
} else if (preg_match("#\.(jpg)#i",$file)) {
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='$activeurl/$file' style='width:20px'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square' title='移动'></i></a>
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$files[] = $line;
} else if (preg_match("#\.(swf|fla|fly)#i",$file)) {
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_flash.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square' title='移动'></i></a>
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$files[] = $line;
} else if (preg_match("#\.(zip|rar|tar.gz)#i",$file)) {
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_zip.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square' title='移动'></i></a>
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$files[] = $line;
} else if (preg_match("#\.(exe)#i",$file)) {
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_exe.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square' title='移动'></i></a>
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$files[] = $line;
} else if (preg_match("#\.(mp3|wma)#i",$file)) {
$line = "\n<tr >
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_music.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square' title='移动'></i></a>
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$files[] = $line;
} else if (preg_match("#\.(wmv|api)#i",$file)) {
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_video.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square' title='移动'></i></a>
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$files[] = $line;
} else if (preg_match("#\.(rm|rmvb)#i",$file)) {
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_rm.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square' title='移动'></i></a>
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$files[] = $line;
} else if (preg_match("#\.(txt|inc|pl|cgi|asp|xml|xsl|aspx|cfm)#",$file)) {
$edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath);
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_text.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square' title='移动'></i></a>
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='$edurl' class='btn btn-light btn-sm'><i class='fa fa-pencil-square' title='修改'></i></a>
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$files[] = $line;
} else if (preg_match("#\.(htm|html)#i",$file)) {
$edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath);
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_htm.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square' title='移动'></i></a>
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='$edurl' class='btn btn-light btn-sm'><i class='fa fa-pencil-square' title='修改'></i></a>
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$files[] = $line;
} else if (preg_match("#\.(php)#i",$file)) {
$edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath);
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_php.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square' title='移动'></i></a>
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='$edurl' class='btn btn-light btn-sm'><i class='fa fa-pencil-square' title='修改'></i></a>
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$files[] = $line;
} else if (preg_match("#\.(js)#i",$file)) {
$edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath);
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_js.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square' title='移动'></i></a>
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='$edurl' class='btn btn-light btn-sm'><i class='fa fa-pencil-square' title='修改'></i></a>
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$files[] = $line;
} else if (preg_match("#\.(css)#i",$file)) {
$edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath);
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_css.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square' title='移动'></i></a>
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='$edurl' class='btn btn-light btn-sm'><i class='fa fa-pencil-square' title='修改'></i></a>
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$files[] = $line;
} else {
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'> $file</td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square' title='移动'></i></a>
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$files[] = $line;
}
}
if ($file == ".") {
continue;
foreach ($dirs as $dir) {
echo $dir;
}
else if ($file == "..")
{
if ($activepath == "") {
continue;
foreach ($files as $file) {
echo $file;
}
$tmp = preg_replace("#[\/][^\/]*$#i","",$activepath);
$line = "\n<tr>
<td><a href='file_manage_main.php?activepath=".urlencode($tmp)."'><img src='/static/web/img/icon_dir2.png'> 返回上级</a></td>
<td colspan='3'>当前目录:$activepath</td>
</tr>";
$dirs[] = $line;
} else if (is_dir("$inpath/$file")) {
if (preg_match("#^_(.*)$#i",$file)) continue;
if (preg_match("#^\.(.*)$#i",$file)) continue;
$line = "\n<tr>
<td><a href='file_manage_main.php?activepath=".urlencode("$activepath/$file")."'><img src='/static/web/img/icon_dir.png'> $file</a></td>
<td></td>
<td></td>
<td align='left'>
<a href='file_manage_view.php?filename=".urlencode($file)."&activepath=".urlencode($activepath)."&fmdo=rename' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='file_manage_view.php?filename=".urlencode($file)."&activepath=".urlencode($activepath)."&type=dir&fmdo=del' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$dirs[] = $line;
} else if (preg_match("#\.(gif|png)#i",$file)) {
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='$activeurl/$file' style='width:20px'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square' title='移动'></i></a>
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$files[] = $line;
} else if (preg_match("#\.(jpg)#i",$file)) {
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='$activeurl/$file' style='width:20px'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square' title='移动'></i></a>
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$files[] = $line;
} else if (preg_match("#\.(swf|fla|fly)#i",$file)) {
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_flash.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square' title='移动'></i></a>
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$files[] = $line;
} else if (preg_match("#\.(zip|rar|tar.gz)#i",$file)) {
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_zip.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square' title='移动'></i></a>
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$files[] = $line;
} else if (preg_match("#\.(exe)#i",$file)) {
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_exe.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square' title='移动'></i></a>
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$files[] = $line;
} else if (preg_match("#\.(mp3|wma)#i",$file)) {
$line = "\n<tr >
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_music.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square' title='移动'></i></a>
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
?>
<tr>
<td colspan="4" align="center">
<?php if (!DEDEBIZ_SAFE_MODE) {?><a href="file_manage_main.php" class="btn btn-success btn-sm">根目录</a><?php }?>
<a href="file_manage_view.php?fmdo=newfile&activepath=<?php echo urlencode($activepath)?>" class="btn btn-success btn-sm">新建文件</a>
<a href="file_manage_view.php?fmdo=newdir&activepath=<?php echo urlencode($activepath)?>" class="btn btn-success btn-sm">新建目录</a>
<a href="file_manage_view.php?fmdo=upload&activepath=<?php echo urlencode($activepath)?>" class="btn btn-success btn-sm">文件上传</a>
<a href="file_manage_control.php?fmdo=space&activepath=<?php echo urlencode($activepath)?>" class="btn btn-success btn-sm">空间检查</a>
</td>
</tr>";
$files[] = $line;
} else if (preg_match("#\.(wmv|api)#i",$file)) {
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_video.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square' title='移动'></i></a>
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$files[] = $line;
} else if (preg_match("#\.(rm|rmvb)#i",$file)) {
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_rm.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square' title='移动'></i></a>
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$files[] = $line;
} else if (preg_match("#\.(txt|inc|pl|cgi|asp|xml|xsl|aspx|cfm)#",$file)) {
$edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath);
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_text.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square' title='移动'></i></a>
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='$edurl' class='btn btn-light btn-sm'><i class='fa fa-pencil-square' title='修改'></i></a>
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$files[] = $line;
} else if (preg_match("#\.(htm|html)#i",$file)) {
$edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath);
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_htm.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square' title='移动'></i></a>
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='$edurl' class='btn btn-light btn-sm'><i class='fa fa-pencil-square' title='修改'></i></a>
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$files[] = $line;
} else if (preg_match("#\.(php)#i",$file)) {
$edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath);
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_php.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square' title='移动'></i></a>
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='$edurl' class='btn btn-light btn-sm'><i class='fa fa-pencil-square' title='修改'></i></a>
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$files[] = $line;
} else if (preg_match("#\.(js)#i",$file)) {
$edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath);
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_js.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square' title='移动'></i></a>
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='$edurl' class='btn btn-light btn-sm'><i class='fa fa-pencil-square' title='修改'></i></a>
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$files[] = $line;
} else if (preg_match("#\.(css)#i",$file)) {
$edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath);
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_css.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square' title='移动'></i></a>
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='$edurl' class='btn btn-light btn-sm'><i class='fa fa-pencil-square' title='修改'></i></a>
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$files[] = $line;
} else {
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'> $file</td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
<a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square' title='移动'></i></a>
<a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder' title='改名'></i></a>
<a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash' title='删除'></i></a>
</td>
</tr>";
$files[] = $line;
}
}
foreach ($dirs as $dir) {
echo $dir;
}
foreach ($files as $file) {
echo $file;
}
?>
<tr>
<td colspan="4" align="center">
<?php if (!DEDEBIZ_SAFE_MODE) {?><a href="file_manage_main.php" class="btn btn-success btn-sm">根目录</a><?php }?>
<a href="file_manage_view.php?fmdo=newfile&activepath=<?php echo urlencode($activepath)?>" class="btn btn-success btn-sm">新建文件</a>
<a href="file_manage_view.php?fmdo=newdir&activepath=<?php echo urlencode($activepath)?>" class="btn btn-success btn-sm">新建目录</a>
<a href="file_manage_view.php?fmdo=upload&activepath=<?php echo urlencode($activepath)?>" class="btn btn-success btn-sm">文件上传</a>
<a href="file_manage_control.php?fmdo=space&activepath=<?php echo urlencode($activepath)?>" class="btn btn-success btn-sm">空间检查</a>
</td>
</tr>
</tbody>
</table>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>


+ 36
- 34
src/admin/templets/file_upload.htm View File

@@ -9,40 +9,42 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="file_manage_main.php">文件管理器</a></li>
<li class="breadcrumb-item active">文件上传</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">文件上传</div>
<div class="card-body">
<form method="POST" enctype="multipart/form-data" action="file_manage_control.php" name="form1">
<input type="hidden" name="activepath" value="{dede:global name='activepath'/}">
<input type="hidden" name="fmdo" value="upload">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">当前目录</td>
<td>{dede:global name='activepath'/}</td>
</tr>
<tr>
<td colspan="2" id="upfield">
<p><label>文件1:<input type="file" name="upfile1" class="admin-input-lg"></label></p>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<a class="btn btn-success btn-sm" href="javascript:make_upload();">添加上传</a>
<button type="submit" class="btn btn-success btn-sm">确定上传</button>
<a class="btn btn-success btn-sm" href="javascript:reset_upload();">重新上传</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="file_manage_main.php">文件管理器</a></li>
<li class="breadcrumb-item active">文件上传</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">文件上传</div>
<div class="card-body">
<form method="POST" enctype="multipart/form-data" action="file_manage_control.php" name="form1">
<input type="hidden" name="activepath" value="{dede:global name='activepath'/}">
<input type="hidden" name="fmdo" value="upload">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">当前目录</td>
<td>{dede:global name='activepath'/}</td>
</tr>
<tr>
<td colspan="2" id="upfield">
<p><label>文件1:<input type="file" name="upfile1" class="admin-input-lg"></label></p>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<a class="btn btn-success btn-sm" href="javascript:make_upload();">添加上传</a>
<button type="submit" class="btn btn-success btn-sm">确定上传</button>
<a class="btn btn-success btn-sm" href="javascript:reset_upload();">重新上传</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>


+ 153
- 151
src/admin/templets/freelist_add.htm View File

@@ -18,162 +18,164 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="freelist_main.php">自由列表管理</a></li>
<li class="breadcrumb-item active">添加自由列表</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">添加自由列表</div>
<div class="card-body">
<div class="alert alert-info">freelist标签基本等同于arclist标签,区别是freelist标签支持分页,按自定义排序规则的文档列表,且自由列是独立编译的,轻松的实现统一化管理</div>
<div id="list1" style="display:none"><p><a href="[field:arcurl/]">[field:title/]</a></p></div>
<div id="list2" style="display:none"><p>[field:typelink/] - <a href="[field:arcurl/]">[field:title/]</a></p></div>
<div id="list3" style="display:none"><p>[field:imglink/]</p><p>[field:textlink/]</p></div>
<div id="list4" style="display:none"><p><a href="[field:arcurl/]">[field:title/]</a></p><p><a href="[field:arcurl/]">[field:description/]</a></p><p><span>日期:[field:pubdate function="MyDate('Y-m-d', @me)"/]</span><span>浏览:[field:click/]</span><span>好评:[field:scores/]</span></p></div>
<form name="form1" action="freelist_add.php" method="post">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td colspan="4">
<label><input type="radio" name="liststyle" onclick="ChangeListStyle();" value="1" checked><img src="/static/web/img/g_t2.jpg"></label>
<label><input type="radio" name="liststyle" onclick="ChangeListStyle();" value="2"><img src="/static/web/img/g_t1.jpg"></label>
<label><input type="radio" name="liststyle" onclick="ChangeListStyle();" value="3"><img src="/static/web/img/g_t3.jpg"></label>
<label><input type="radio" name="liststyle" onclick="ChangeListStyle();" value="4"><img src="/static/web/img/g_t4.jpg"></label>
</td>
</tr>
<tr>
<td width="160">自由列表标题</td>
<td width="550"><input type="text" name="title" id="title" class="admin-input-lg" required></td>
<td width="160">列表生成目录</td>
<td><input type="text" name="listdir" id="listdir" value="{cmspath}/a/freelist/" class="admin-input-lg"></td>
</tr>
<tr>
<td>默认页名称</td>
<td>
<input type="text" name="defaultpage" id="defaultpage" value="index.html" class="admin-input-lg">
<label><input type="checkbox" name="nodefault" id="nodefault" value="1"> 不使用默认首页</label>
</td>
<td>命名规则</td>
<td><input type="text" name="namerule" id="namerule" value="{listdir}/index_{listid}_{page}.html" class="admin-input-lg">({listdir}列表存放目录)</td>
</tr>
<tr>
<td>列表模板</td>
<td>
<input type="text" name="templet" id="templet" value="{style}/list_free.htm" class="admin-input-lg">
<button type="button" onclick="SelectTemplets('form1.templet');" class="btn btn-success btn-sm">选择</button>
</td>
<td>最大列出页数</td>
<td><input type="text" name="maxpage" id="maxpage" value="100" class="admin-input-sm"></td>
</tr>
<tr>
<td>列表关键词</td>
<td><input type="text" name="keywords" id="keywords" class="admin-input-lg"></td>
<td>列表描述</td>
<td><textarea name="description" id="description" class="admin-textarea-sm"></textarea></td>
</tr>
<tr>
<td>调用栏目</td>
<td>
<?php
echo "<select name='typeid' class='admin-input-sm'>";
echo "<option value='0'>不限栏目</option>";
$dsql->SetQuery("SELECT id,typename, channeltype FROM `#@__arctype`");
$dsql->Execute();
while($lrow = $dsql->GetObject()){
$disable = '';
if ($lrow->channeltype < -1) {
$disable = 'disabled';
}
echo "<option value='{$lrow->ID}' $disable>{$lrow->typename}</option>";
}
echo "</select>";
?>
</td>
<td>限定模型</td>
<td>
<?php
echo "<select name='channel' class='admin-input-sm'>";
echo "<option value='0' selected>不限模型</option>";
$dsql->SetQuery("SELECT id,typename FROM `#@__channeltype` WHERE id > 0");
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="freelist_main.php">自由列表管理</a></li>
<li class="breadcrumb-item active">添加自由列表</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">添加自由列表</div>
<div class="card-body">
<div class="alert alert-info">freelist标签基本等同于arclist标签,区别是freelist标签支持分页,按自定义排序规则的文档列表,且自由列是独立编译的,轻松的实现统一化管理</div>
<div id="list1" style="display:none"><p><a href="[field:arcurl/]">[field:title/]</a></p></div>
<div id="list2" style="display:none"><p>[field:typelink/] - <a href="[field:arcurl/]">[field:title/]</a></p></div>
<div id="list3" style="display:none"><p>[field:imglink/]</p><p>[field:textlink/]</p></div>
<div id="list4" style="display:none"><p><a href="[field:arcurl/]">[field:title/]</a></p><p><a href="[field:arcurl/]">[field:description/]</a></p><p><span>日期:[field:pubdate function="MyDate('Y-m-d', @me)"/]</span><span>浏览:[field:click/]</span><span>好评:[field:scores/]</span></p></div>
<form name="form1" action="freelist_add.php" method="post">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td colspan="4">
<label><input type="radio" name="liststyle" onclick="ChangeListStyle();" value="1" checked><img src="/static/web/img/g_t2.jpg"></label>
<label><input type="radio" name="liststyle" onclick="ChangeListStyle();" value="2"><img src="/static/web/img/g_t1.jpg"></label>
<label><input type="radio" name="liststyle" onclick="ChangeListStyle();" value="3"><img src="/static/web/img/g_t3.jpg"></label>
<label><input type="radio" name="liststyle" onclick="ChangeListStyle();" value="4"><img src="/static/web/img/g_t4.jpg"></label>
</td>
</tr>
<tr>
<td width="160">自由列表标题</td>
<td width="550"><input type="text" name="title" id="title" class="admin-input-lg" required></td>
<td width="160">列表生成目录</td>
<td><input type="text" name="listdir" id="listdir" value="{cmspath}/a/freelist/" class="admin-input-lg"></td>
</tr>
<tr>
<td>默认页名称</td>
<td>
<input type="text" name="defaultpage" id="defaultpage" value="index.html" class="admin-input-lg">
<label><input type="checkbox" name="nodefault" id="nodefault" value="1"> 不使用默认首页</label>
</td>
<td>命名规则</td>
<td><input type="text" name="namerule" id="namerule" value="{listdir}/index_{listid}_{page}.html" class="admin-input-lg">({listdir}列表存放目录)</td>
</tr>
<tr>
<td>列表模板</td>
<td>
<input type="text" name="templet" id="templet" value="{style}/list_free.htm" class="admin-input-lg">
<button type="button" onclick="SelectTemplets('form1.templet');" class="btn btn-success btn-sm">选择</button>
</td>
<td>最大列出页数</td>
<td><input type="text" name="maxpage" id="maxpage" value="100" class="admin-input-sm"></td>
</tr>
<tr>
<td>列表关键词</td>
<td><input type="text" name="keywords" id="keywords" class="admin-input-lg"></td>
<td>列表描述</td>
<td><textarea name="description" id="description" class="admin-textarea-sm"></textarea></td>
</tr>
<tr>
<td>调用栏目</td>
<td>
<?php
echo "<select name='typeid' class='admin-input-sm'>";
echo "<option value='0'>不限栏目</option>";
$dsql->SetQuery("SELECT id,typename, channeltype FROM `#@__arctype`");
$dsql->Execute();
while($lrow = $dsql->GetObject()){
$disable = '';
if ($lrow->channeltype < -1) {
$disable = 'disabled';
}
echo "<option value='{$lrow->ID}' $disable>{$lrow->typename}</option>";
}
echo "</select>";
?>
</td>
<td>限定模型</td>
<td>
<?php
echo "<select name='channel' class='admin-input-sm'>";
echo "<option value='0' selected>不限模型</option>";
$dsql->SetQuery("SELECT id,typename FROM `#@__channeltype` WHERE id > 0");
$dsql->Execute();
while($row = $dsql->GetObject())
{
echo "<option value='{$row->ID}'>{$row->typename}</option>";
}
echo "</select>";
?>
</td>
</tr>
<tr>
<td>附加属性</td>
<td>
<?php
echo "<select name='att' class='admin-input-sm'>";
echo "<option value='0' selected>不限</option>";
$dsql->SetQuery("SELECT * FROM `#@__arcatt`");
$dsql->Execute();
while($row = $dsql->GetObject())
{
echo "<option value='{$row->ID}'>{$row->typename}</option>";
echo "<option value='{$row->att}'>{$row->attname}</option>";
}
echo "</select>";
?>
</td>
</tr>
<tr>
<td>附加属性</td>
<td>
<?php
echo "<select name='att' class='admin-input-sm'>";
echo "<option value='0' selected>不限</option>";
$dsql->SetQuery("SELECT * FROM `#@__arcatt`");
$dsql->Execute();
while($row = $dsql->GetObject())
{
echo "<option value='{$row->att}'>{$row->attname}</option>";
}
echo "</select>";
?>
</td>
<td>发布天数</td>
<td><input type="text" name="subday" id="subday2" value="0" class="admin-input-sm">(0表示不限)</td>
</tr>
<tr>
<td>每页记录数</td>
<td><input type="text" name="pagesize" id="pagesize" value="30" class="admin-input-sm"></td>
<td>显示列数</td>
<td><input type="text" name="col" id="col3" value="1" class="admin-input-sm"></td>
</tr>
<tr>
<td>标题长度</td>
<td><input type="text" name="titlelen" id="titlelen" value="60" class="admin-input-sm">(1字节=0.5个中文字)</td>
<td>高级筛选</td>
<td>
<label><input type="checkbox" name="types[]" id="type1" value="image"> 带缩略图</label>
<label><input type="checkbox" name="types[]" id="type2" value="commend"> 推荐</label>
<label><input type="checkbox" name="types[]" id="type3" value="spec"> 专题</label>
</td>
</tr>
<tr>
<td>关键词</td>
<td><input type="text" name="keywordarc" id="keywordarc">(英文逗号隔开)</td>
<td>排列顺序</td>
<td>
<select name="orderby" id="orderby" class="admin-input-sm">
<option value="sortrank">置顶权限值</option>
<option value="pubdate" selected>发布时间</option>
<option value="senddate">录入时间</option>
<option value="click">点击量</option>
<option value="id">文档id</option>
<option value="lastpost">最后评论时间</option>
<option value="postnum">评论总数</option>
</select>
<label><input type="radio" name="order" value="desc" checked> 由高到低</label>
<label><input type="radio" name="order" value="asc"> 由低到高</label>
</td>
</tr>
<tr>
<td colspan="4">
<textarea name="innertext" id="myinnertext" class="admin-textarea-xl"></textarea>
</td>
</tr>
<tr>
<td colspan="4" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
?>
</td>
<td>发布天数</td>
<td><input type="text" name="subday" id="subday2" value="0" class="admin-input-sm">(0表示不限)</td>
</tr>
<tr>
<td>每页记录数</td>
<td><input type="text" name="pagesize" id="pagesize" value="30" class="admin-input-sm"></td>
<td>显示列数</td>
<td><input type="text" name="col" id="col3" value="1" class="admin-input-sm"></td>
</tr>
<tr>
<td>标题长度</td>
<td><input type="text" name="titlelen" id="titlelen" value="60" class="admin-input-sm">(1字节=0.5个中文字)</td>
<td>高级筛选</td>
<td>
<label><input type="checkbox" name="types[]" id="type1" value="image"> 带缩略图</label>
<label><input type="checkbox" name="types[]" id="type2" value="commend"> 推荐</label>
<label><input type="checkbox" name="types[]" id="type3" value="spec"> 专题</label>
</td>
</tr>
<tr>
<td>关键词</td>
<td><input type="text" name="keywordarc" id="keywordarc">(英文逗号隔开)</td>
<td>排列顺序</td>
<td>
<select name="orderby" id="orderby" class="admin-input-sm">
<option value="sortrank">置顶权限值</option>
<option value="pubdate" selected>发布时间</option>
<option value="senddate">录入时间</option>
<option value="click">点击量</option>
<option value="id">文档id</option>
<option value="lastpost">最后评论时间</option>
<option value="postnum">评论总数</option>
</select>
<label><input type="radio" name="order" value="desc" checked> 由高到低</label>
<label><input type="radio" name="order" value="asc"> 由低到高</label>
</td>
</tr>
<tr>
<td colspan="4">
<textarea name="innertext" id="myinnertext" class="admin-textarea-xl"></textarea>
</td>
</tr>
<tr>
<td colspan="4" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>


+ 169
- 167
src/admin/templets/freelist_edit.htm View File

@@ -18,179 +18,181 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="freelist_main.php">自由列表管理</a></li>
<li class="breadcrumb-item active">修改自由列表</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改自由列表</div>
<div class="card-body">
<form name="form1" action="freelist_edit.php" method="post">
<input type="hidden" name="dopost" value="save">
<input type="hidden" name="aid" value="<?php echo $row['aid']?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="160">自由列表标题</td>
<td width="550"><input type="text" name="title" id="title" value="<?php echo $row['title']?>" class="admin-input-lg"></td>
<td width="160">列表生成目录</td>
<td><input type="text" name="listdir" id="listdir" value="<?php echo $row['listdir']?>" class="admin-input-lg"></td>
</tr>
<tr>
<td>默认页名称</td>
<td>
<input type="text" name="defaultpage" id="defaultpage" value="<?php echo $row['defaultpage']?>" class="admin-input-lg">
<label><input type="checkbox" name="nodefault" id="nodefault" value="1" <?php if ($row['nodefault']==1) echo 'checked';?>> 不使用默认首页</label>
</td>
<td>命名规则</td>
<td><input type="text" name="namerule" id="namerule" value="<?php echo $row['namerule']?>" class="admin-input-lg">({listdir}列表存放目录)</td>
</tr>
<tr>
<td>列表模板</td>
<td>
<input type="text" name="templet" id="templet" value="<?php echo $row['templet']?>" class="admin-input-lg">
<button type="button" onclick="SelectTemplets('form1.templet');" class="btn btn-success btn-sm">选择</button>
</td>
<td>最大列出页数</td>
<td><input type="text" name="maxpage" id="maxpage" value="<?php echo $row['maxpage'];?>" class="admin-input-sm"></td>
</tr>
<tr>
<td>列表关键词</td>
<td><input type="text" name="keywords" id="keywords" value="<?php echo $row['keywords'];?>" class="admin-input-lg"></td>
<td>列表描述</td>
<td><textarea name="description" id="description" class="admin-textarea-sm"><?php echo $row['description']?></textarea></td>
</tr>
<tr>
<td>调用栏目</td>
<td>
<?php
$typeid = $ctag->GetAtt('typeid');
echo "<select name='typeid' class='admin-input-sm'>";
echo "<option value='0'>不限栏目</option>";
$dsql->SetQuery("SELECT id,typename, channeltype FROM `#@__arctype`");
$dsql->Execute();
while($lrow = $dsql->GetObject()){
$disable = '';
if ($lrow->channeltype < -1)
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="freelist_main.php">自由列表管理</a></li>
<li class="breadcrumb-item active">修改自由列表</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改自由列表</div>
<div class="card-body">
<form name="form1" action="freelist_edit.php" method="post">
<input type="hidden" name="dopost" value="save">
<input type="hidden" name="aid" value="<?php echo $row['aid']?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="160">自由列表标题</td>
<td width="550"><input type="text" name="title" id="title" value="<?php echo $row['title']?>" class="admin-input-lg"></td>
<td width="160">列表生成目录</td>
<td><input type="text" name="listdir" id="listdir" value="<?php echo $row['listdir']?>" class="admin-input-lg"></td>
</tr>
<tr>
<td>默认页名称</td>
<td>
<input type="text" name="defaultpage" id="defaultpage" value="<?php echo $row['defaultpage']?>" class="admin-input-lg">
<label><input type="checkbox" name="nodefault" id="nodefault" value="1" <?php if ($row['nodefault']==1) echo 'checked';?>> 不使用默认首页</label>
</td>
<td>命名规则</td>
<td><input type="text" name="namerule" id="namerule" value="<?php echo $row['namerule']?>" class="admin-input-lg">({listdir}列表存放目录)</td>
</tr>
<tr>
<td>列表模板</td>
<td>
<input type="text" name="templet" id="templet" value="<?php echo $row['templet']?>" class="admin-input-lg">
<button type="button" onclick="SelectTemplets('form1.templet');" class="btn btn-success btn-sm">选择</button>
</td>
<td>最大列出页数</td>
<td><input type="text" name="maxpage" id="maxpage" value="<?php echo $row['maxpage'];?>" class="admin-input-sm"></td>
</tr>
<tr>
<td>列表关键词</td>
<td><input type="text" name="keywords" id="keywords" value="<?php echo $row['keywords'];?>" class="admin-input-lg"></td>
<td>列表描述</td>
<td><textarea name="description" id="description" class="admin-textarea-sm"><?php echo $row['description']?></textarea></td>
</tr>
<tr>
<td>调用栏目</td>
<td>
<?php
$typeid = $ctag->GetAtt('typeid');
echo "<select name='typeid' class='admin-input-sm'>";
echo "<option value='0'>不限栏目</option>";
$dsql->SetQuery("SELECT id,typename, channeltype FROM `#@__arctype`");
$dsql->Execute();
while($lrow = $dsql->GetObject()){
$disable = '';
if ($lrow->channeltype < -1)
{
$disable = 'disabled';
}
if ($lrow->id==$typeid) echo "<option value='{$lrow->id}' selected $disable>{$lrow->typename}</option>";
else echo "<option value='{$lrow->id}' $disable>{$lrow->typename}</option>";
}
echo "</select>";
?>
</td>
<td>限定模型</td>
<td>
<?php
$channel = $ctag->GetAtt('channel');
echo "<select name='channel' class='admin-input-sm'><option value='0'>不限模型</option>";
$dsql->SetQuery("SELECT id,typename FROM `#@__channeltype` WHERE id > 0");
$dsql->Execute();
while($nrow = $dsql->GetObject())
{
$disable = 'disabled';
if ($nrow->id==$channel) echo "<option value='{$nrow->id}' selected>{$nrow->typename}</option>";
else echo "<option value='{$nrow->id}'>{$nrow->typename}</option>";
}
if ($lrow->id==$typeid) echo "<option value='{$lrow->id}' selected $disable>{$lrow->typename}</option>";
else echo "<option value='{$lrow->id}' $disable>{$lrow->typename}</option>";
}
echo "</select>";
?>
</td>
<td>限定模型</td>
<td>
<?php
$channel = $ctag->GetAtt('channel');
echo "<select name='channel' class='admin-input-sm'><option value='0'>不限模型</option>";
$dsql->SetQuery("SELECT id,typename FROM `#@__channeltype` WHERE id > 0");
$dsql->Execute();
while($nrow = $dsql->GetObject())
{
if ($nrow->id==$channel) echo "<option value='{$nrow->id}' selected>{$nrow->typename}</option>";
else echo "<option value='{$nrow->id}'>{$nrow->typename}</option>";
}
echo "</select>";
?>
</td>
</tr>
<tr>
<td>附加属性</td>
<td>
<?php
$att = $ctag->GetAtt('att');
echo "<select name='att' class='admin-input-sm'>";
echo "<option value='0'>不限</option>";
$dsql->SetQuery("SELECT * FROM `#@__arcatt`");
$dsql->Execute();
while($nrow = $dsql->GetObject())
{
if ($att==$nrow->att)
echo "</select>";
?>
</td>
</tr>
<tr>
<td>附加属性</td>
<td>
<?php
$att = $ctag->GetAtt('att');
echo "<select name='att' class='admin-input-sm'>";
echo "<option value='0'>不限</option>";
$dsql->SetQuery("SELECT * FROM `#@__arcatt`");
$dsql->Execute();
while($nrow = $dsql->GetObject())
{
echo "<option value='{$nrow->att}' selected>{$nrow->attname}</option>";
} else {
echo "<option value='{$nrow->att}'>{$nrow->attname}</option>";
if ($att==$nrow->att)
{
echo "<option value='{$nrow->att}' selected>{$nrow->attname}</option>";
} else {
echo "<option value='{$nrow->att}'>{$nrow->attname}</option>";
}
}
}
echo "</select>";
?>
</td>
<td>发布天数</td>
<td><input type="text" name="subday" id="subday" class="admin-input-sm" value="<?php echo $ctag->GetAtt('subday')?>">(0表示不限)</td>
echo "</select>";
?>
</td>
<td>发布天数</td>
<td><input type="text" name="subday" id="subday" class="admin-input-sm" value="<?php echo $ctag->GetAtt('subday')?>">(0表示不限)</td>

</tr>
<tr>
<td>每页记录数</td>
<td><input type="text" name="pagesize" id="pagesize" value="<?php echo $ctag->GetAtt('pagesize')?>" class="admin-input-sm"></td>
<td>显示列数</td>
<td><input type="text" name="col" id="col" value="<?php $col = $ctag->GetAtt('col'); $v = ( empty($col) ? '1' : $col ); echo $v;?>" class="admin-input-sm"></td>
</tr>
<tr>
<td>每页记录数</td>
<td><input type="text" name="pagesize" id="pagesize" value="<?php echo $ctag->GetAtt('pagesize')?>" class="admin-input-sm"></td>
<td>显示列数</td>
<td><input type="text" name="col" id="col" value="<?php $col = $ctag->GetAtt('col'); $v = ( empty($col) ? '1' : $col ); echo $v;?>" class="admin-input-sm"></td>

</tr>
<tr>
<td>标题长度</td>
<td><input type="text" name="titlelen" id="titlelen" value="<?php echo $ctag->GetAtt('titlelen')?>" class="admin-input-sm">(1字节=0.5个中文字)</td>
<td>
<?php
$setype = $ctag->GetAtt('type');
if ($setype=='') $setype = 'X';
?>
高级筛选
</td>
<td>
<label><input type="checkbox" name="types[]" id="type1" value="image" <?php if (preg_match("#image#i",$setype)) echo 'checked';?>> 带缩略图</label>
<label><input type="checkbox" name="types[]" id="type2" value="commend" <?php if (preg_match("#commend#i", $setype)) echo 'checked';?>> 推荐</label>
<label><input type="checkbox" name="types[]" id="type3" value="spec" <?php if (preg_match("#spec#i", $setype)) echo 'checked';?>> 专题</label>
</td>
</tr>
<tr>
<td>关键词</td>
<td><input type="text" name="keywordarc" id="keywordarc" value="<?php echo $ctag->GetAtt('keyword')?>">(英文逗号隔开)</td>
<td>排列顺序</td>
<td>
<?php
$orderby = $ctag->GetAtt('orderby');
$sorta = "sortrank,置顶权限值;pubdate,发布时间;senddate,录入时间;click,点击量;id,文档id,lastpost,最后评论时间;postnum,评论总数;rand,随机获取";
$sortas = explode(';',$sorta);
foreach($sortas as $v)
{
$vs = explode(',',$v);
$vs[0] = trim($vs[0]);
$sortarrs[$vs[0]] = $vs[1];
}
?>
<select name="orderby" id="orderby" class="admin-input-sm">
<?php echo "<option value=\"$orderby\" selected>{$sortarrs[$orderby]}</option>";?>
<option value="sortrank">置顶权限值</option>
<option value="pubdate">发布时间</option>
<option value="senddate">录入时间</option>
<option value="click">点击量</option>
<option value="id">文档id</option>
<option value="lastpost">最后评论时间</option>
<option value="postnum">评论总数</option>
</select>
<label><input type="radio" name="order" value="desc" <?php if ($ctag->GetAtt('orderway')=='desc') echo 'checked';?>> 由高到低</label>
<label><input type="radio" name="order" value="asc" <?php if ($ctag->GetAtt('orderway')=='asc') echo 'checked';?>> 由低到高</label>
</td>
</tr>
<tr>
<td colspan="4"><textarea name="innertext" id="myinnertext" class="admin-textarea-xl"><?php echo $ctag->GetInnerText()?></textarea></td>
</tr>
<tr>
<td colspan="4" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</tr>
<tr>
<td>标题长度</td>
<td><input type="text" name="titlelen" id="titlelen" value="<?php echo $ctag->GetAtt('titlelen')?>" class="admin-input-sm">(1字节=0.5个中文字)</td>
<td>
<?php
$setype = $ctag->GetAtt('type');
if ($setype=='') $setype = 'X';
?>
高级筛选
</td>
<td>
<label><input type="checkbox" name="types[]" id="type1" value="image" <?php if (preg_match("#image#i",$setype)) echo 'checked';?>> 带缩略图</label>
<label><input type="checkbox" name="types[]" id="type2" value="commend" <?php if (preg_match("#commend#i", $setype)) echo 'checked';?>> 推荐</label>
<label><input type="checkbox" name="types[]" id="type3" value="spec" <?php if (preg_match("#spec#i", $setype)) echo 'checked';?>> 专题</label>
</td>
</tr>
<tr>
<td>关键词</td>
<td><input type="text" name="keywordarc" id="keywordarc" value="<?php echo $ctag->GetAtt('keyword')?>">(英文逗号隔开)</td>
<td>排列顺序</td>
<td>
<?php
$orderby = $ctag->GetAtt('orderby');
$sorta = "sortrank,置顶权限值;pubdate,发布时间;senddate,录入时间;click,点击量;id,文档id,lastpost,最后评论时间;postnum,评论总数;rand,随机获取";
$sortas = explode(';',$sorta);
foreach($sortas as $v)
{
$vs = explode(',',$v);
$vs[0] = trim($vs[0]);
$sortarrs[$vs[0]] = $vs[1];
}
?>
<select name="orderby" id="orderby" class="admin-input-sm">
<?php echo "<option value=\"$orderby\" selected>{$sortarrs[$orderby]}</option>";?>
<option value="sortrank">置顶权限值</option>
<option value="pubdate">发布时间</option>
<option value="senddate">录入时间</option>
<option value="click">点击量</option>
<option value="id">文档id</option>
<option value="lastpost">最后评论时间</option>
<option value="postnum">评论总数</option>
</select>
<label><input type="radio" name="order" value="desc" <?php if ($ctag->GetAtt('orderway')=='desc') echo 'checked';?>> 由高到低</label>
<label><input type="radio" name="order" value="asc" <?php if ($ctag->GetAtt('orderway')=='asc') echo 'checked';?>> 由低到高</label>
</td>
</tr>
<tr>
<td colspan="4"><textarea name="innertext" id="myinnertext" class="admin-textarea-xl"><?php echo $ctag->GetInnerText()?></textarea></td>
</tr>
<tr>
<td colspan="4" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>


+ 21
- 19
src/admin/templets/freelist_main.htm View File

@@ -102,26 +102,28 @@
</script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">自由列表管理</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form action="freelist_main.php" name="form1" id="form1">
<input type="text" name="keyword" id="keyword" value="<?php echo $keyword?>" class="admin-input-lg" placeholder="请输入关键词">
<button type="submit" class="btn btn-success btn-sm">搜索</button>
<a href="freelist_add.php" class="btn btn-success btn-sm">添加自由列表</a>
<a href="makehtml_freelist.php" class="btn btn-success btn-sm">更新所有列表</a>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">自由列表管理</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form action="freelist_main.php" name="form1" id="form1">
<input type="text" name="keyword" id="keyword" value="<?php echo $keyword?>" class="admin-input-lg" placeholder="请输入关键词">
<button type="submit" class="btn btn-success btn-sm">搜索</button>
<a href="freelist_add.php" class="btn btn-success btn-sm">添加自由列表</a>
<a href="makehtml_freelist.php" class="btn btn-success btn-sm">更新所有列表</a>
</form>
</div>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">自由列表管理</div>
<div id="rslist" class="card-body">
<?php GetTagList($dsql,$pageno,$pagesize,$orderby);?>
<div id="pagelist">
<script>ReloadPageNum(1);</script>
<div class="card shadow-sm">
<div class="card-header">自由列表管理</div>
<div id="rslist" class="card-body">
<?php GetTagList($dsql,$pageno,$pagesize,$orderby);?>
<div id="pagelist">
<script>ReloadPageNum(1);</script>
</div>
</div>
</div>
</div>


+ 75
- 73
src/admin/templets/friendlink_add.htm View File

@@ -12,79 +12,81 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="friendlink_main.php">友情链接管理</a></li>
<li class="breadcrumb-item active">添加友情链接</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">添加友情链接</div>
<div class="card-body">
<form name="form1" action="friendlink_add.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="dopost" value="add">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">网址</td>
<td><input type="text" name="url" id="url" value="http://" class="admin-input-lg" required></td>
</tr>
<tr>
<td>网站名称</td>
<td><input type="text" name="webname" id="webname" class="admin-input-lg" required></td>
</tr>
<tr>
<td>排列位置</td>
<td><input type="text" name="sortrank" id="sortrank" value="1" class="admin-input-sm">(由小到大排列)</td>
</tr>
<tr>
<td>网站Logo</td>
<td><input type="text" name="logo" id="logo" class="admin-input-lg"></td>
</tr>
<tr>
<td>上传Logo</td>
<td><input type="file" name="logoimg" id="logoimg" class="admin-input-lg"></td>
</tr>
<tr>
<td>网站简况</td>
<td><textarea name="msg" id="msg" class="admin-textarea-sm"></textarea></td>
</tr>
<tr>
<td>邮箱</td>
<td><input type="text" name="email" id="email" autocomplete="off" class="admin-input-lg"></td>
</tr>
<tr>
<td>网站类型</td>
<td>
<select name="typeid" id="typeid" class="admin-input-sm">
<?php
$dsql->SetQuery("SELECT * FROM `#@__flinktype`");
$dsql->Execute();
while($row=$dsql->GetObject())
{
echo " <option value='".$row->id."'>".$row->typename."</option>";
}
?>
</select>
</td>
</tr>
<tr>
<td>链接位置</td>
<td>
<label><input type="radio" name="ischeck" value="1" checked> 内页</label>
<label><input type="radio" name="ischeck" value="2"> 首页</label>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="friendlink_main.php">友情链接管理</a></li>
<li class="breadcrumb-item active">添加友情链接</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">添加友情链接</div>
<div class="card-body">
<form name="form1" action="friendlink_add.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="dopost" value="add">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">网址</td>
<td><input type="text" name="url" id="url" value="http://" class="admin-input-lg" required></td>
</tr>
<tr>
<td>网站名称</td>
<td><input type="text" name="webname" id="webname" class="admin-input-lg" required></td>
</tr>
<tr>
<td>排列位置</td>
<td><input type="text" name="sortrank" id="sortrank" value="1" class="admin-input-sm">(由小到大排列)</td>
</tr>
<tr>
<td>网站Logo</td>
<td><input type="text" name="logo" id="logo" class="admin-input-lg"></td>
</tr>
<tr>
<td>上传Logo</td>
<td><input type="file" name="logoimg" id="logoimg" class="admin-input-lg"></td>
</tr>
<tr>
<td>网站简况</td>
<td><textarea name="msg" id="msg" class="admin-textarea-sm"></textarea></td>
</tr>
<tr>
<td>邮箱</td>
<td><input type="text" name="email" id="email" autocomplete="off" class="admin-input-lg"></td>
</tr>
<tr>
<td>网站类型</td>
<td>
<select name="typeid" id="typeid" class="admin-input-sm">
<?php
$dsql->SetQuery("SELECT * FROM `#@__flinktype`");
$dsql->Execute();
while($row=$dsql->GetObject())
{
echo " <option value='".$row->id."'>".$row->typename."</option>";
}
?>
</select>
</td>
</tr>
<tr>
<td>链接位置</td>
<td>
<label><input type="radio" name="ischeck" value="1" checked> 内页</label>
<label><input type="radio" name="ischeck" value="2"> 首页</label>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 77
- 75
src/admin/templets/friendlink_edit.htm View File

@@ -9,81 +9,83 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="friendlink_main.php">友情链接管理</a></li>
<li class="breadcrumb-item active">修改友情链接</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改友情链接</div>
<div class="card-body">
<form action="friendlink_edit.php" method="post" enctype="multipart/form-data" name="form1">
<input type="hidden" name="id" value="<?php echo $myLink['id']?>">
<input type="hidden" name="dopost" value="saveedit">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">网址</td>
<td><input type="text" name="url" id="url" value="<?php echo $myLink['url']?>" class="admin-input-lg" required></td>
</tr>
<tr>
<td>网站名称</td>
<td><input type="text" name="webname" id="webname" value="<?php echo $myLink['webname']?>" class="admin-input-lg" required></td>
</tr>
<tr>
<td width="260">排列位置</td>
<td><input type="text" name="sortrank" id="sortrank" value="<?php echo $myLink['sortrank']?>" class="admin-input-sm">(由小到大排列)</td>
</tr>
<tr>
<td>网站Logo</td>
<td><input type="text" name="logo" id="logo" value="<?php echo $myLink['logo']?>" class="admin-input-lg">(88*31 gif或jpg)</td>
</tr>
<tr>
<td>上传Logo</td>
<td><input type="file" name="logoimg" id="logoimg" class="admin-input-lg"></td>
</tr>
<tr>
<td>网站简况</td>
<td><textarea name="msg" id="msg" class="admin-textarea-sm"><?php echo dede_htmlspecialchars($myLink['msg'])?></textarea></td>
</tr>
<tr>
<td>邮箱</td>
<td><input type="text" name="email" id="email" autocomplete="off" value="<?php echo $myLink['email']?>" class="admin-input-lg"></td>
</tr>
<tr>
<td>链接位置</td>
<td>
<label><input type="radio" name="ischeck" value="0" <?php if ($myLink['ischeck']==0) echo 'checked'?>> 待审核</label>
<label><input type="radio" name="ischeck" value="1" <?php if ($myLink['ischeck']==1) echo 'checked'?>> 内页</label>
<label><input type="radio" name="ischeck" value="2" <?php if ($myLink['ischeck']==2) echo 'checked'?>> 首页</label>
</td>
</tr>
<tr>
<td>网站类型</td>
<td>
<select name="typeid" id="typeid" class="admin-input-sm">
<?php
echo " <option value='".$myLink['typeid']."'>".$myLink['typename']."</option>";
$dsql->SetQuery("SELECT * FROM `#@__flinktype` where id<>'".$myLink['typeid']."'");
$dsql->Execute();
while($row=$dsql->GetObject()){
echo " <option value='".$row->id."'>".$row->typename."</option>";
}
?>
</select>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="friendlink_main.php">友情链接管理</a></li>
<li class="breadcrumb-item active">修改友情链接</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改友情链接</div>
<div class="card-body">
<form action="friendlink_edit.php" method="post" enctype="multipart/form-data" name="form1">
<input type="hidden" name="id" value="<?php echo $myLink['id']?>">
<input type="hidden" name="dopost" value="saveedit">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">网址</td>
<td><input type="text" name="url" id="url" value="<?php echo $myLink['url']?>" class="admin-input-lg" required></td>
</tr>
<tr>
<td>网站名称</td>
<td><input type="text" name="webname" id="webname" value="<?php echo $myLink['webname']?>" class="admin-input-lg" required></td>
</tr>
<tr>
<td width="260">排列位置</td>
<td><input type="text" name="sortrank" id="sortrank" value="<?php echo $myLink['sortrank']?>" class="admin-input-sm">(由小到大排列)</td>
</tr>
<tr>
<td>网站Logo</td>
<td><input type="text" name="logo" id="logo" value="<?php echo $myLink['logo']?>" class="admin-input-lg">(88*31 gif或jpg)</td>
</tr>
<tr>
<td>上传Logo</td>
<td><input type="file" name="logoimg" id="logoimg" class="admin-input-lg"></td>
</tr>
<tr>
<td>网站简况</td>
<td><textarea name="msg" id="msg" class="admin-textarea-sm"><?php echo dede_htmlspecialchars($myLink['msg'])?></textarea></td>
</tr>
<tr>
<td>邮箱</td>
<td><input type="text" name="email" id="email" autocomplete="off" value="<?php echo $myLink['email']?>" class="admin-input-lg"></td>
</tr>
<tr>
<td>链接位置</td>
<td>
<label><input type="radio" name="ischeck" value="0" <?php if ($myLink['ischeck']==0) echo 'checked'?>> 待审核</label>
<label><input type="radio" name="ischeck" value="1" <?php if ($myLink['ischeck']==1) echo 'checked'?>> 内页</label>
<label><input type="radio" name="ischeck" value="2" <?php if ($myLink['ischeck']==2) echo 'checked'?>> 首页</label>
</td>
</tr>
<tr>
<td>网站类型</td>
<td>
<select name="typeid" id="typeid" class="admin-input-sm">
<?php
echo " <option value='".$myLink['typeid']."'>".$myLink['typename']."</option>";
$dsql->SetQuery("SELECT * FROM `#@__flinktype` where id<>'".$myLink['typeid']."'");
$dsql->Execute();
while($row=$dsql->GetObject()){
echo " <option value='".$row->id."'>".$row->typename."</option>";
}
?>
</select>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 76
- 74
src/admin/templets/friendlink_main.htm View File

@@ -13,81 +13,83 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">友情链接管理</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form action="friendlink_main.php" name="form1" method="get">
<input type="text" name="keyword" id="keyword" placeholder="请输入关键词" value="<?php echo $keyword;?>" class="admin-input-lg mr-2">
<select name="ischeck" id="ischeck" class="admin-input-sm">
<?php
foreach($selCheckArr as $k=>$v)
{
if ($k==$ischeck) echo "<option value='$k' selected>$v</option>";
else echo "<option value='$k'>$v</option>";
}
?>
</select>
<button type="submit"class="btn btn-success btn-sm">搜索</button>
<a href="friendlink_add.php" class="btn btn-success btn-sm">添加链接</a>
<a href="friendlink_type.php" class="btn btn-success btn-sm">网站类型管理</a>
<a href="<?php echo $cfg_phpurl;?>/flink.php?dopost=add" target="_blank" class="btn btn-success btn-sm">申请链接</a>
<a href="{dede:global name=' cfg_phpurl'/}/flink.php" target="_blank" class="btn btn-success btn-sm">链接预览</a>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">友情链接管理</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form action="friendlink_main.php" name="form1" method="get">
<input type="text" name="keyword" id="keyword" placeholder="请输入关键词" value="<?php echo $keyword;?>" class="admin-input-lg mr-2">
<select name="ischeck" id="ischeck" class="admin-input-sm">
<?php
foreach($selCheckArr as $k=>$v)
{
if ($k==$ischeck) echo "<option value='$k' selected>$v</option>";
else echo "<option value='$k'>$v</option>";
}
?>
</select>
<button type="submit"class="btn btn-success btn-sm">搜索</button>
<a href="friendlink_add.php" class="btn btn-success btn-sm">添加链接</a>
<a href="friendlink_type.php" class="btn btn-success btn-sm">网站类型管理</a>
<a href="<?php echo $cfg_phpurl;?>/flink.php?dopost=add" target="_blank" class="btn btn-success btn-sm">申请链接</a>
<a href="{dede:global name=' cfg_phpurl'/}/flink.php" target="_blank" class="btn btn-success btn-sm">链接预览</a>
</form>
</div>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">友情链接管理</div>
<div class="card-body">
<form name="form1" method="post" action="friendlink_edit.php">
<input type="hidden" name="dopost" value="delall">
<input type="hidden" name="allid">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">名称</td>
<td scope="col">地址</td>
<td scope="col">图标</td>
<td scope="col">邮箱</td>
<td scope="col">时间</td>
<td scope="col">状态</td>
<td scope="col">顺序</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td><input type='checkbox' name='aids' value='{dede:field.id/}'></td>
<td>{dede:field.webname function='dede_htmlspecialchars(@me)'/}</td>
<td>{dede:field.url/}</td>
<td>{dede:field.logo function="GetPic(@me)"/}</td>
<td>{dede:field.email/}</td>
<td>{dede:field.dtime function="MyDate('Y-m-d',@me)"/}</td>
<td>{dede:field.ischeck function="GetSta(@me)"/}</td>
<td>{dede:field.sortrank/}</td>
<td>
<a href="friendlink_edit.php?id={dede:field.id/}&dopost=getedit" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="修改"></i></a>
<a href="friendlink_edit.php?id={dede:field.id/}&dopost=delete" class="btn btn-danger btn-sm"><i class="fa fa-trash" title="删除"></i></a>
</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="9">
<a href="javascript:Sel('all');" class="btn btn-success btn-sm">全选</a>
<a href="javascript:Sel('none');" class="btn btn-success btn-sm">取消</a>
<a href="javascript:checkSubmit();" class="btn btn-success btn-sm">批量删除</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
<div class="card shadow-sm">
<div class="card-header">友情链接管理</div>
<div class="card-body">
<form name="form1" method="post" action="friendlink_edit.php">
<input type="hidden" name="dopost" value="delall">
<input type="hidden" name="allid">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">名称</td>
<td scope="col">地址</td>
<td scope="col">图标</td>
<td scope="col">邮箱</td>
<td scope="col">时间</td>
<td scope="col">状态</td>
<td scope="col">顺序</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td><input type='checkbox' name='aids' value='{dede:field.id/}'></td>
<td>{dede:field.webname function='dede_htmlspecialchars(@me)'/}</td>
<td>{dede:field.url/}</td>
<td>{dede:field.logo function="GetPic(@me)"/}</td>
<td>{dede:field.email/}</td>
<td>{dede:field.dtime function="MyDate('Y-m-d',@me)"/}</td>
<td>{dede:field.ischeck function="GetSta(@me)"/}</td>
<td>{dede:field.sortrank/}</td>
<td>
<a href="friendlink_edit.php?id={dede:field.id/}&dopost=getedit" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="修改"></i></a>
<a href="friendlink_edit.php?id={dede:field.id/}&dopost=delete" class="btn btn-danger btn-sm"><i class="fa fa-trash" title="删除"></i></a>
</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="9">
<a href="javascript:Sel('all');" class="btn btn-success btn-sm">全选</a>
<a href="javascript:Sel('none');" class="btn btn-success btn-sm">取消</a>
<a href="javascript:checkSubmit();" class="btn btn-success btn-sm">批量删除</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
</div>
</div>
</div>
<script>


+ 51
- 49
src/admin/templets/friendlink_type.htm View File

@@ -9,55 +9,57 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="friendlink_main.php">友情链接管理</a></li>
<li class="breadcrumb-item active">网站类型管理</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">网站类型管理</div>
<div class="card-body">
<form name="form1" action="friendlink_type.php" method="post">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<thead>
<tr>
<td scope="col">id</td>
<td scope="col">网站名称</td>
<td scope="col">状态</td>
</tr>
</thead>
<tbody>
<?php
$dsql->SetQuery("SELECT * FROM `#@__flinktype`");
$dsql->Execute();
$k=0;
while($row = $dsql->GetObject())
{
$k++;
?>
<tr>
<td><input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->id?>"><?php echo $row->id;?></td>
<td><input type="text" name="pname_<?php echo $k?>" value="<?php echo $row->typename?>" id="pname_<?php echo $k?>" style="width:90%"></td>
<td align="center"><label><input type="checkbox" name="check_<?php echo $k?>" id="check_<?php echo $k?>" value="1" checked> 保留</label></td>
</tr>
<?php }?>
<tr>
<td><input type="hidden" name="idend" value="<?php echo $k?>"></td>
<td><input type="text" name="pname_new" id="pname_new" class="w-100"></td>
<td align="center"><label><input type="checkbox" name="check_new" id="check_new" value="1" checked> 新增</label></td>
</tr>
<tr>
<td colspan="3" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="friendlink_main.php">友情链接管理</a></li>
<li class="breadcrumb-item active">网站类型管理</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">网站类型管理</div>
<div class="card-body">
<form name="form1" action="friendlink_type.php" method="post">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<thead>
<tr>
<td scope="col">id</td>
<td scope="col">网站名称</td>
<td scope="col">状态</td>
</tr>
</thead>
<tbody>
<?php
$dsql->SetQuery("SELECT * FROM `#@__flinktype`");
$dsql->Execute();
$k=0;
while($row = $dsql->GetObject())
{
$k++;
?>
<tr>
<td><input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->id?>"><?php echo $row->id;?></td>
<td><input type="text" name="pname_<?php echo $k?>" value="<?php echo $row->typename?>" id="pname_<?php echo $k?>" style="width:90%"></td>
<td align="center"><label><input type="checkbox" name="check_<?php echo $k?>" id="check_<?php echo $k?>" value="1" checked> 保留</label></td>
</tr>
<?php }?>
<tr>
<td><input type="hidden" name="idend" value="<?php echo $k?>"></td>
<td><input type="text" name="pname_new" id="pname_new" class="w-100"></td>
<td align="center"><label><input type="checkbox" name="check_new" id="check_new" value="1" checked> 新增</label></td>
</tr>
<tr>
<td colspan="3" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 2
- 2
src/admin/templets/index.htm View File

@@ -55,7 +55,7 @@
</div>
</nav>
</header>
<aside class="menu-left">
<aside class="admin-aside">
<div class="side-menu">
<?php
$openitem = 100;
@@ -63,7 +63,7 @@
?>
</div>
</aside>
<main class="body-right">
<main class="admin-content">
<iframe src="index_body.php" name="main" id="main" frameborder="0"></iframe>
</main>
</body>

+ 147
- 145
src/admin/templets/index_body.htm View File

@@ -17,166 +17,168 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<div class="body-row">
<div id="body-tips" class="w-100"></div>
<div class="w-100 pb-3">
<div class="card shadow-sm">
<div class="card-header d-flex justify-content-between">
<span><i class="fa fa-bar-chart"></i> 流量统计表</span>
<a href="statistics_list.php" target="main">查看列表</a>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col"></td>
<td scope="col">浏览次数(PV)</td>
<td scope="col">独立访客(UV)</td>
<td scope="col">独立地址(IP)</td>
<td scope="col">访问次数(VV)</td>
</tr>
</thead>
<tbody>
<tr>
<td>今日记录</td>
<td id="today_pv">0</td>
<td id="today_uv">0</td>
<td id="today_ip">0</td>
<td id="today_vv">0</td>
</tr>
<tr>
<td>昨日记录</td>
<td id="yestoday_pv">0</td>
<td id="yestoday_uv">0</td>
<td id="yestoday_ip">0</td>
<td id="yestoday_vv">0</td>
</tr>
<tr>
<td>历史峰值</td>
<td id="total_pv">0</td>
<td id="total_uv">0</td>
<td id="total_ip">0</td>
<td id="total_vv">0</td>
</tr>
</tbody>
</table>
<div class="container-fluid">
<div class="body-row">
<div id="body-tips" class="w-100"></div>
<div class="w-100 pb-3">
<div class="card shadow-sm">
<div class="card-header d-flex justify-content-between">
<span><i class="fa fa-bar-chart"></i> 流量统计表</span>
<a href="statistics_list.php" target="main">查看列表</a>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col"></td>
<td scope="col">浏览次数(PV)</td>
<td scope="col">独立访客(UV)</td>
<td scope="col">独立地址(IP)</td>
<td scope="col">访问次数(VV)</td>
</tr>
</thead>
<tbody>
<tr>
<td>今日记录</td>
<td id="today_pv">0</td>
<td id="today_uv">0</td>
<td id="today_ip">0</td>
<td id="today_vv">0</td>
</tr>
<tr>
<td>昨日记录</td>
<td id="yestoday_pv">0</td>
<td id="yestoday_uv">0</td>
<td id="yestoday_ip">0</td>
<td id="yestoday_vv">0</td>
</tr>
<tr>
<td>历史峰值</td>
<td id="total_pv">0</td>
<td id="total_uv">0</td>
<td id="total_ip">0</td>
<td id="total_vv">0</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="w-65 pr-md-3 pb-3">
<div class="card shadow-sm">
<div class="card-header"><i class="fa fa-cogs"></i> 软件信息</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="16%">
<p>操作系统</p>
<span><?php echo PHP_OS;?></span>
</td>
<td width="16%">
<p>WEB服务器</p>
<span><?php echo GetSimpleServerSoftware();?></span>
</td>
<td width="16%">
<p>IP地址</p>
<span><?php echo gethostbyname($_SERVER['SERVER_NAME']);?></span>
</td>
<td width="16%">
<p>PHP版本</p>
<span><?php echo @phpversion();?></span>
</td>
<td width="16%">
<p>数据库版本</p>
<span><?php echo $dsql->GetVersion();?></span>
</td>
<td width="16%">
<p>上传限制</p>
<span><?php echo ini_get("post_max_size")?></span>
</td>
</tr>
</tbody>
</table>
<div class="w-65 pr-md-3 pb-3">
<div class="card shadow-sm">
<div class="card-header"><i class="fa fa-cogs"></i> 软件信息</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="16%">
<p>操作系统</p>
<span><?php echo PHP_OS;?></span>
</td>
<td width="16%">
<p>WEB服务器</p>
<span><?php echo GetSimpleServerSoftware();?></span>
</td>
<td width="16%">
<p>IP地址</p>
<span><?php echo gethostbyname($_SERVER['SERVER_NAME']);?></span>
</td>
<td width="16%">
<p>PHP版本</p>
<span><?php echo @phpversion();?></span>
</td>
<td width="16%">
<p>数据库版本</p>
<span><?php echo $dsql->GetVersion();?></span>
</td>
<td width="16%">
<p>上传限制</p>
<span><?php echo ini_get("post_max_size")?></span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="w-35 pb-3">
<div class="card shadow-sm">
<div class="card-header d-flex justify-content-between">
<span><i class="fa fa-copyright"></i> 版本授权</span>
<a href="javascript:;" id="systemUpdate">软件更新<span class="updates-dot"></span></a>
<div class="w-35 pb-3">
<div class="card shadow-sm">
<div class="card-header d-flex justify-content-between">
<span><i class="fa fa-copyright"></i> 版本授权</span>
<a href="javascript:;" id="systemUpdate">软件更新<span class="updates-dot"></span></a>
</div>
<div class="card-body" id="system-info">正在加载</div>
</div>
<div class="card-body" id="system-info">正在加载</div>
</div>
</div>
<div class="w-65 pr-md-3 pb-3">
<div class="card shadow-sm">
<div class="card-header"><i class="fa fa-line-chart"></i> 流量统计图</div>
<div class="card-body p-3">
<canvas id="statChart"></canvas>
<div class="w-65 pr-md-3 pb-3">
<div class="card shadow-sm">
<div class="card-header"><i class="fa fa-line-chart"></i> 流量统计图</div>
<div class="card-body p-3">
<canvas id="statChart"></canvas>
</div>
</div>
</div>
</div>
<div class="w-35">
<div class="card shadow-sm">
<div class="card-header"><i class="fa fa-list"></i> 最新文档</div>
<div class="card-body" id="system-word">正在加载</div>
<div class="w-35">
<div class="card shadow-sm">
<div class="card-header"><i class="fa fa-list"></i> 最新文档</div>
<div class="card-body" id="system-word">正在加载</div>
</div>
</div>
</div>
</div>
<div id="mdlUpdate" class="modal fade" tabindex="-1" aria-hidden="true">
<div class="modal-dialog modal-xl">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">软件更新</h5>
<button type="button" class="update-close" data-dismiss="modal" aria-label="Close"><i class="fa fa-times"></i></button>
</div>
<div class="modal-body">
<div id="stepArea0" class="stepArea">
<span>获取服务器版本资源失败,无法正常升级,请联系DedeBIZ官方团队</span>
</div>
<div id="stepArea1" class="stepArea">
<span class="spinner-border text-success" role="status"></span>
<span id="step1Msg">对比版本更改的文件</span>
</div>
<div id="stepArea2" class="stepArea">
<p>本更新提供了重要的安全性更新,建议所有会员升级,软件更新覆盖以下文件,请做好备份</p>
<div id="_fileList">正在加载</div>
</div>
<div id="stepArea3" class="stepArea">
<p>发下以下版本的更新文件</p>
<div id="_verList">正在加载</div>
<div id="mdlUpdate" class="modal fade" tabindex="-1" aria-hidden="true">
<div class="modal-dialog modal-xl">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">软件更新</h5>
<button type="button" class="update-close" data-dismiss="modal" aria-label="Close"><i class="fa fa-times"></i></button>
</div>
<div id="stepArea4" class="stepArea">
<p>
<div class="modal-body">
<div id="stepArea0" class="stepArea">
<span>获取服务器版本资源失败,无法正常升级,请联系DedeBIZ官方团队</span>
</div>
<div id="stepArea1" class="stepArea">
<span class="spinner-border text-success" role="status"></span>
<span>正在进行以下操作,耐心等待...</span>
</p>
<div id="_updateMsg">正在加载</div>
</div>
<div id="stepArea5" class="stepArea">已是最新软件版本</div>
<div id="_msgInfo" class="mt-2"></div>
</div>
<div class="modal-footer">
<div id="btnStep0" class="btnStep">
<button id="btnCancel" type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">知道了</button>
</div>
<div id="btnStep1" class="btnStep"></div>
<div id="btnStep2" class="btnStep">
<button id="btnCancel" type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">取消</button>
<button id="btnBackup" type="button" class="btn btn-outline-success btn-sm">备份</button>
<button id="btnGoStep3" type="button" class="btn btn-success btn-sm">下一步</button>
</div>
<div id="btnStep3" class="btnStep">
<button id="btnCancel" type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">取消</button>
<button id="btnGoStep4" type="button" class="btn btn-success btn-sm">下载</button>
<span id="step1Msg">对比版本更改的文件</span>
</div>
<div id="stepArea2" class="stepArea">
<p>本更新提供了重要的安全性更新,建议所有会员升级,软件更新覆盖以下文件,请做好备份</p>
<div id="_fileList">正在加载</div>
</div>
<div id="stepArea3" class="stepArea">
<p>发下以下版本的更新文件</p>
<div id="_verList">正在加载</div>
</div>
<div id="stepArea4" class="stepArea">
<p>
<span class="spinner-border text-success" role="status"></span>
<span>正在进行以下操作,耐心等待...</span>
</p>
<div id="_updateMsg">正在加载</div>
</div>
<div id="stepArea5" class="stepArea">已是最新软件版本</div>
<div id="_msgInfo" class="mt-2"></div>
</div>
<div id="btnStep5" class="btnStep">
<button id="btnOK" type="button" class="btn btn-success btn-sm" data-dismiss="modal">完成</button>
<div class="modal-footer">
<div id="btnStep0" class="btnStep">
<button id="btnCancel" type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">知道了</button>
</div>
<div id="btnStep1" class="btnStep"></div>
<div id="btnStep2" class="btnStep">
<button id="btnCancel" type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">取消</button>
<button id="btnBackup" type="button" class="btn btn-outline-success btn-sm">备份</button>
<button id="btnGoStep3" type="button" class="btn btn-success btn-sm">下一步</button>
</div>
<div id="btnStep3" class="btnStep">
<button id="btnCancel" type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">取消</button>
<button id="btnGoStep4" type="button" class="btn btn-success btn-sm">下载</button>
</div>
<div id="btnStep5" class="btnStep">
<button id="btnOK" type="button" class="btn btn-success btn-sm" data-dismiss="modal">完成</button>
</div>
</div>
</div>
</div>


+ 65
- 63
src/admin/templets/log_list.htm View File

@@ -9,70 +9,72 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">系统日志列表</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form name="formsearch">
<input type="text" name="cip" id="cip" placeholder="请输入ip地址" class="admin-input-lg mr-2">
<select name="adminid" id="adminid" class="admin-input-sm mr-2">
<option value="0" selected>全部</option>
<?php echo $adminlist?>
</select>
<select name="dtime" id="dtime" class="admin-input-sm">
<option value="0" selected>全部</option>
<option value="7">一周内</option>
<option value="15">15天内</option>
<option value="30">30天以内</option>
<option value="60">60天以内</option>
</select>
<button type="submit"class="btn btn-success btn-sm">搜索</button>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">系统日志列表</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form name="formsearch">
<input type="text" name="cip" id="cip" placeholder="请输入ip地址" class="admin-input-lg mr-2">
<select name="adminid" id="adminid" class="admin-input-sm mr-2">
<option value="0" selected>全部</option>
<?php echo $adminlist?>
</select>
<select name="dtime" id="dtime" class="admin-input-sm">
<option value="0" selected>全部</option>
<option value="7">一周内</option>
<option value="15">15天内</option>
<option value="30">30天以内</option>
<option value="60">60天以内</option>
</select>
<button type="submit"class="btn btn-success btn-sm">搜索</button>
</form>
</div>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">系统日志列表</div>
<div class="card-body">
<form name="form1">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">管理员</td>
<td scope="col">浏览文件</td>
<td scope="col">访问方式</td>
<td scope="col">地址</td>
<td scope="col">时间</td>
<td scope="col">参数</td>
</tr>
<thead>
<tbody>
{dede:datalist}
<tr>
<td><input type="checkbox" name="logs" id="logs" value="{dede:field.lid/}"></td>
<td>{dede:field.userid/}</td>
<td><input type="text" name="t0" value="{dede:field.filename/}" class="admin-input-lg"></td>
<td>{dede:field.method/}</td>
<td>{dede:field.cip/}</td>
<td>{dede:field.dtime function="MyDate('y/m/d H:i:s',@me)"/}</td>
<td><input type="text" name="t1" value="{dede:field.query/}" class="admin-input-lg"></td>
</tr>
{/dede:datalist}
<tr>
<td colspan="7">
<a href="javascript:ReSel();" class="btn btn-success btn-sm">反选</a>
<a href="javascript:DelSel();" class="btn btn-danger btn-sm">删除</a>
<a href="javascript:ClearLog();" class="btn btn-danger btn-sm">清空</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
<div class="card shadow-sm">
<div class="card-header">系统日志列表</div>
<div class="card-body">
<form name="form1">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">管理员</td>
<td scope="col">浏览文件</td>
<td scope="col">访问方式</td>
<td scope="col">地址</td>
<td scope="col">时间</td>
<td scope="col">参数</td>
</tr>
<thead>
<tbody>
{dede:datalist}
<tr>
<td><input type="checkbox" name="logs" id="logs" value="{dede:field.lid/}"></td>
<td>{dede:field.userid/}</td>
<td><input type="text" name="t0" value="{dede:field.filename/}" class="admin-input-lg"></td>
<td>{dede:field.method/}</td>
<td>{dede:field.cip/}</td>
<td>{dede:field.dtime function="MyDate('y/m/d H:i:s',@me)"/}</td>
<td><input type="text" name="t1" value="{dede:field.query/}" class="admin-input-lg"></td>
</tr>
{/dede:datalist}
<tr>
<td colspan="7">
<a href="javascript:ReSel();" class="btn btn-success btn-sm">反选</a>
<a href="javascript:DelSel();" class="btn btn-danger btn-sm">删除</a>
<a href="javascript:ClearLog();" class="btn btn-danger btn-sm">清空</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
</div>
</div>
</div>
<script>


+ 2
- 2
src/admin/templets/login.htm View File

@@ -12,7 +12,7 @@
<script src="/static/web/js/login.js"></script>
</head>
<body>
<section class="login-step">
<div class="login-step">
<div class="row h-100">
<div class="col-lg-8 d-none d-lg-block">
<div class="login-bg"></div>
@@ -63,6 +63,6 @@
</div>
</div>
</div>
</section>
</div>
</body>
</html>

+ 42
- 40
src/admin/templets/makehtml_all.htm View File

@@ -13,46 +13,48 @@
<script src="/static/web/js/daterangepicker.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">更新整站</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">更新整站</div>
<div class="card-body">
<form name="form1" action="makehtml_all.php" method="post" target="stafrm">
<input type="hidden" name="action" value="make">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">更新选项</td>
<td>
<label><input type="radio" name="uptype" id="uptype1" onclick="SelUp();" value="time" checked> 指定时间的所有更新</label>
<label><input type="radio" name="uptype" id="uptype2" onclick="SelUp();" value="id"> 指定文档的所有更新</label>
<label><input type="radio" name="uptype" id="uptype3" onclick="SelUp();" value="mkall"> 更新所有</label>
</td>
</tr>
<tr id="seltime">
<td>起始时间</td>
<td><input type="text" name="starttime" id="starttime" value="<?php echo GetDateMk(time());?>" class="datepicker admin-input-sm"></td>
</tr>
<tr id="selid" style="display:none">
<td>起始id</td>
<td><input type="text" name="startid" id="startid" value="0" class="admin-input-sm"></td>
</tr>
<tr>
<td colspan="2" align="center"><button type="submit" class="btn btn-success btn-sm">开始执行</button></td>
</tr>
<tr>
<td colspan="2">
<div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">更新整站</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">更新整站</div>
<div class="card-body">
<form name="form1" action="makehtml_all.php" method="post" target="stafrm">
<input type="hidden" name="action" value="make">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">更新选项</td>
<td>
<label><input type="radio" name="uptype" id="uptype1" onclick="SelUp();" value="time" checked> 指定时间的所有更新</label>
<label><input type="radio" name="uptype" id="uptype2" onclick="SelUp();" value="id"> 指定文档的所有更新</label>
<label><input type="radio" name="uptype" id="uptype3" onclick="SelUp();" value="mkall"> 更新所有</label>
</td>
</tr>
<tr id="seltime">
<td>起始时间</td>
<td><input type="text" name="starttime" id="starttime" value="<?php echo GetDateMk(time());?>" class="datepicker admin-input-sm"></td>
</tr>
<tr id="selid" style="display:none">
<td>起始id</td>
<td><input type="text" name="startid" id="startid" value="0" class="admin-input-sm"></td>
</tr>
<tr>
<td colspan="2" align="center"><button type="submit" class="btn btn-success btn-sm">开始执行</button></td>
</tr>
<tr>
<td colspan="2">
<div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>


+ 51
- 49
src/admin/templets/makehtml_archives.htm View File

@@ -9,55 +9,57 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">更新文档</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">更新文档</div>
<div class="card-body">
<form name="form1" action="makehtml_archives_action.php" method="get" target="stafrm">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">选择栏目</td>
<td>
<?php
if (empty($cid)) $cid="0";
$tl = new TypeLink($cid);
$typeOptions = $tl->GetOptionArray($cid,$admin_catalogs,0);
echo "<select name='typeid' class='admin-input-sm'>";
if ($cid=="0") echo "<option value='0' selected>更新所有文档</option>";
echo $typeOptions;
echo "</select>";
?>
</td>
</tr>
<tr>
<td>起始id</td>
<td><input type="text" name="startid" id="startid" class="admin-input-sm">(空或0表示从头开始)</td>
</tr>
<tr>
<td>结束id</td>
<td><input type="text" name="endid" id="endid" class="admin-input-sm">(空或0表示直到结束id)</td>
</tr>
<tr>
<td>每页更新</td>
<td><input type="text" name="pagesize" id="pagesize" value="20" class="admin-input-sm">(网页)</td>
</tr>
<tr>
<td colspan="2" align="center"><button type="submit" class="btn btn-success btn-sm">开始执行</button></td>
</tr>
<tr>
<td colspan="2">
<div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">更新文档</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">更新文档</div>
<div class="card-body">
<form name="form1" action="makehtml_archives_action.php" method="get" target="stafrm">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">选择栏目</td>
<td>
<?php
if (empty($cid)) $cid="0";
$tl = new TypeLink($cid);
$typeOptions = $tl->GetOptionArray($cid,$admin_catalogs,0);
echo "<select name='typeid' class='admin-input-sm'>";
if ($cid=="0") echo "<option value='0' selected>更新所有文档</option>";
echo $typeOptions;
echo "</select>";
?>
</td>
</tr>
<tr>
<td>起始id</td>
<td><input type="text" name="startid" id="startid" class="admin-input-sm">(空或0表示从头开始)</td>
</tr>
<tr>
<td>结束id</td>
<td><input type="text" name="endid" id="endid" class="admin-input-sm">(空或0表示直到结束id)</td>
</tr>
<tr>
<td>每页更新</td>
<td><input type="text" name="pagesize" id="pagesize" value="20" class="admin-input-sm">(网页)</td>
</tr>
<tr>
<td colspan="2" align="center"><button type="submit" class="btn btn-success btn-sm">开始执行</button></td>
</tr>
<tr>
<td colspan="2">
<div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 37
- 35
src/admin/templets/makehtml_freelist.htm View File

@@ -9,41 +9,43 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">更新自由列表</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">更新自由列表</div>
<div class="card-body">
<form name="form1" action="makehtml_freelist_action.php" method="get" target="stafrm">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td>起始id</td>
<td><input type="text" name="startid" id="startid" class="admin-input-sm" <?php if (!empty($aid)) echo " value='$aid'";?>>(空或0表示从头开始)</td>
</tr>
<tr>
<td>结束id</td>
<td><input type="text" name="endid" id="endid" class="admin-input-sm" <?php if (!empty($aid)) echo " value='$aid'";?>>(空或0表示直到结束id)</td>
</tr>
<tr>
<td>每页更新</td>
<td><input type="text" name="pagesize" id="pagesize" value="100" class="admin-input-sm">(网页)</td>
</tr>
<tr>
<td colspan="2" align="center"><button type="submit" class="btn btn-success btn-sm">开始执行</button></td>
</tr>
<tr>
<td colspan="2">
<div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">更新自由列表</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">更新自由列表</div>
<div class="card-body">
<form name="form1" action="makehtml_freelist_action.php" method="get" target="stafrm">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td>起始id</td>
<td><input type="text" name="startid" id="startid" class="admin-input-sm" <?php if (!empty($aid)) echo " value='$aid'";?>>(空或0表示从头开始)</td>
</tr>
<tr>
<td>结束id</td>
<td><input type="text" name="endid" id="endid" class="admin-input-sm" <?php if (!empty($aid)) echo " value='$aid'";?>>(空或0表示直到结束id)</td>
</tr>
<tr>
<td>每页更新</td>
<td><input type="text" name="pagesize" id="pagesize" value="100" class="admin-input-sm">(网页)</td>
</tr>
<tr>
<td colspan="2" align="center"><button type="submit" class="btn btn-success btn-sm">开始执行</button></td>
</tr>
<tr>
<td colspan="2">
<div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 95
- 93
src/admin/templets/makehtml_homepage.htm View File

@@ -11,99 +11,101 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">更新首页</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">更新首页</div>
<div class="card-body">
<form name="form1" action="makehtml_homepage.php" method="post" target="stafrm">
<input type="hidden" name="dopost" value="make">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<?php
if (!empty($cfg_bizcore_appid) && !empty($cfg_bizcore_key)) {
$client = new DedeBizClient();
$data = $client->AdminPWDExists();
if ($data->code == -1) {
?>
<tr>
<td colspan="2">
<div class="alert alert-info mb-0">启动商业组件失败,立即<a href="https://www.dedebiz.com/start?code=-1008" target="_blank">启动组件</a></div>
</td>
</tr>
<?php
} else {
$data = json_decode($data->data);
$rs = (array)($data->result);
if ($rs["admin_pwd_exists"] == "false") {
?>
<tr>
<td>设置密码</td>
<td><input type="password" name="dedebiz_admin" autocomplete="off" id="dedebiz_admin" class="admin-input-sm"></td>
</tr>
<tr>
<td>重复密码</td>
<td><input type="password" name="re_dedebiz_admin" autocomplete="off" id="re_dedebiz_admin" class="admin-input-sm"></td>
</tr>
<?php } else {?>
<tr>
<td>输入密码</td>
<td><input type="password" name="dedebiz_admin" autocomplete="off" id="dedebiz_admin" class="admin-input-sm"></td>
</tr>
<tr>
<td>首页状态</td>
<td>
<label><input type="radio" name="lockindex" value="unlock" <?php echo ($rs['index_lock_state']==true)? "checked" : "";?>> 解锁</label>
<label><input type="radio" name="lockindex" value="lock" <?php echo ($row['index_lock_state']==false)? "checked" : "";?>> 锁定</label>
</td>
</tr>
<?php }}} else {?>
<tr>
<td colspan="2">
<div class="alert alert-info mb-0">启动商业组件失败,立即<a href="https://www.dedebiz.com/start?code=-1008" target="_blank">启动组件</a></div>
</td>
</tr>
<?php }?>
<tr>
<td width="260">选择首页模板</td>
<td>
<input type="text" name="templet" id="templet" value="<?php echo $row['templet']?>" class="admin-input-sm">
<button type="button" class="btn btn-success btn-sm" onclick="SelectTemplets('form1.templet');">选择</button>
</td>
</tr>
<tr>
<td>首页位置</td>
<td><input type="text" name="position" id="position" value="<?php echo $row['position']?>" class="admin-input-sm"></td>
</tr>
<tr>
<td>相关选项</td>
<td>
<label><input type="radio" name="saveset" value="0"> 不保存当前选项</label>
<label><input type="radio" name="saveset" value="1" checked> 保存当前选项</label>
</td>
</tr>
<tr>
<td>首页模式:</td>
<td>
<label><input type="radio" name="showmod" value="0" <?php echo ($row['showmod']==0)? "checked" : "";?>> 动态浏览</label>
<label><input type="radio" name="showmod" value="1" <?php echo ($row['showmod']==1)? "checked" : "";?>> 生成静态</label>
</td>
</tr>
<tr>
<td colspan="2" align="center"><button type="submit" class="btn btn-success btn-sm">开始执行</button></td>
</tr>
<tr>
<td colspan="2">
<div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">更新首页</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">更新首页</div>
<div class="card-body">
<form name="form1" action="makehtml_homepage.php" method="post" target="stafrm">
<input type="hidden" name="dopost" value="make">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<?php
if (!empty($cfg_bizcore_appid) && !empty($cfg_bizcore_key)) {
$client = new DedeBizClient();
$data = $client->AdminPWDExists();
if ($data->code == -1) {
?>
<tr>
<td colspan="2">
<div class="alert alert-info mb-0">启动商业组件失败,立即<a href="https://www.dedebiz.com/start?code=-1008" target="_blank">启动组件</a></div>
</td>
</tr>
<?php
} else {
$data = json_decode($data->data);
$rs = (array)($data->result);
if ($rs["admin_pwd_exists"] == "false") {
?>
<tr>
<td>设置密码</td>
<td><input type="password" name="dedebiz_admin" autocomplete="off" id="dedebiz_admin" class="admin-input-sm"></td>
</tr>
<tr>
<td>重复密码</td>
<td><input type="password" name="re_dedebiz_admin" autocomplete="off" id="re_dedebiz_admin" class="admin-input-sm"></td>
</tr>
<?php } else {?>
<tr>
<td>输入密码</td>
<td><input type="password" name="dedebiz_admin" autocomplete="off" id="dedebiz_admin" class="admin-input-sm"></td>
</tr>
<tr>
<td>首页状态</td>
<td>
<label><input type="radio" name="lockindex" value="unlock" <?php echo ($rs['index_lock_state']==true)? "checked" : "";?>> 解锁</label>
<label><input type="radio" name="lockindex" value="lock" <?php echo ($row['index_lock_state']==false)? "checked" : "";?>> 锁定</label>
</td>
</tr>
<?php }}} else {?>
<tr>
<td colspan="2">
<div class="alert alert-info mb-0">启动商业组件失败,立即<a href="https://www.dedebiz.com/start?code=-1008" target="_blank">启动组件</a></div>
</td>
</tr>
<?php }?>
<tr>
<td width="260">选择首页模板</td>
<td>
<input type="text" name="templet" id="templet" value="<?php echo $row['templet']?>" class="admin-input-sm">
<button type="button" class="btn btn-success btn-sm" onclick="SelectTemplets('form1.templet');">选择</button>
</td>
</tr>
<tr>
<td>首页位置</td>
<td><input type="text" name="position" id="position" value="<?php echo $row['position']?>" class="admin-input-sm"></td>
</tr>
<tr>
<td>相关选项</td>
<td>
<label><input type="radio" name="saveset" value="0"> 不保存当前选项</label>
<label><input type="radio" name="saveset" value="1" checked> 保存当前选项</label>
</td>
</tr>
<tr>
<td>首页模式:</td>
<td>
<label><input type="radio" name="showmod" value="0" <?php echo ($row['showmod']==0)? "checked" : "";?>> 动态浏览</label>
<label><input type="radio" name="showmod" value="1" <?php echo ($row['showmod']==1)? "checked" : "";?>> 生成静态</label>
</td>
</tr>
<tr>
<td colspan="2" align="center"><button type="submit" class="btn btn-success btn-sm">开始执行</button></td>
</tr>
<tr>
<td colspan="2">
<div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>


+ 50
- 48
src/admin/templets/makehtml_list.htm View File

@@ -9,54 +9,56 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">更新栏目</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">更新栏目</div>
<div class="card-body">
<form name="form1" action="makehtml_list_action.php" method="get" target="stafrm">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">选择栏目</td>
<td>
<?php
if (empty($cid)) $cid=0;
$tl = new TypeLink($cid);
$typeOptions = $tl->GetOptionArray($cid,$admin_catalogs,0,1);
echo "<select name='typeid' class='admin-input-sm'>";
if ($cid=='0') echo "<option value='0' selected='1'>更新所有栏目</option>";
echo $typeOptions;
echo "</select>";
?>
</td>
</tr>
<tr>
<td>每页更新</td>
<td><input name="maxpagesize" type="text" id="maxpagesize" value="50" class="admin-input-sm">(网页)</td>
</tr>
<tr>
<td>是否更新子栏目</td>
<td>
<label><input type="radio" name="upnext" value="1" checked> 更新子类栏目</label>
<label><input type="radio" name="upnext" value="0"> 仅更新所选栏目</label>
</td>
</tr>
<tr>
<td colspan="2" align="center"><button type="submit" class="btn btn-success btn-sm">开始执行</button></td>
</tr>
<tr>
<td colspan="2">
<div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">更新栏目</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">更新栏目</div>
<div class="card-body">
<form name="form1" action="makehtml_list_action.php" method="get" target="stafrm">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">选择栏目</td>
<td>
<?php
if (empty($cid)) $cid=0;
$tl = new TypeLink($cid);
$typeOptions = $tl->GetOptionArray($cid,$admin_catalogs,0,1);
echo "<select name='typeid' class='admin-input-sm'>";
if ($cid=='0') echo "<option value='0' selected='1'>更新所有栏目</option>";
echo $typeOptions;
echo "</select>";
?>
</td>
</tr>
<tr>
<td>每页更新</td>
<td><input name="maxpagesize" type="text" id="maxpagesize" value="50" class="admin-input-sm">(网页)</td>
</tr>
<tr>
<td>是否更新子栏目</td>
<td>
<label><input type="radio" name="upnext" value="1" checked> 更新子类栏目</label>
<label><input type="radio" name="upnext" value="0"> 仅更新所选栏目</label>
</td>
</tr>
<tr>
<td colspan="2" align="center"><button type="submit" class="btn btn-success btn-sm">开始执行</button></td>
</tr>
<tr>
<td colspan="2">
<div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 27
- 25
src/admin/templets/makehtml_spec.htm View File

@@ -9,31 +9,33 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">更新专题</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">更新专题</div>
<div class="card-body">
<div class="alert alert-info">发布专题后需要手动更新,存放目录:<?php echo $cfg_cmspath.$cfg_special."/index.html"?></div>
<form name="form1" action="makehtml_spec.php" method="get" target="stafrm">
<input type="hidden" name="dopost" value="ok">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td align="center"><button type="submit" class="btn btn-success btn-sm">开始执行</button></td>
</tr>
<tr>
<td>
<div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">更新专题</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">更新专题</div>
<div class="card-body">
<div class="alert alert-info">发布专题后需要手动更新,存放目录:<?php echo $cfg_cmspath.$cfg_special."/index.html"?></div>
<form name="form1" action="makehtml_spec.php" method="get" target="stafrm">
<input type="hidden" name="dopost" value="ok">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td align="center"><button type="submit" class="btn btn-success btn-sm">开始执行</button></td>
</tr>
<tr>
<td>
<div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 52
- 50
src/admin/templets/makehtml_tag_list.htm View File

@@ -9,56 +9,58 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">更新专题</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">更新专题</div>
<div class="card-body">
<div class="alert alert-info">更新静态文件后浏览动态链接会自动跳转至静态链接,需要动态浏览则删除对应静态文件。标签首页模板:<?php echo $cfg_templets_dir;?>/<?php echo $cfg_df_style?>/tag.htm,标签文档列表模板:<?php echo $cfg_templets_dir;?>/<?php echo $cfg_df_style?>/tag_list.htm</div>
<form name="form1" action="makehtml_tag_action_list.php" method="get" target="stafrm">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<?php if ($tagid > 0) {$row = $dsql->GetOne("SELECT tag FROM `#@__tagindex` WHERE id = '$tagid' ");?>
<tr>
<td width="260">输入标签</td>
<td>
<input type="hidden" name="tagid" value="<?php echo $tagid;?>"><?php echo $row['tag'];?>
<a href="makehtml_taglist.php" class="btn btn-success btn-sm">重新选择</a>
</td>
</tr>
<?php } else {?>
<tr>
<td width="260">起始id</td>
<td><input type="text" name="startid" id="startid" class="admin-input-sm">(空或0表示从头开始)</td>
</tr>
<tr>
<td>结束id</td>
<td><input type="text" name="endid" id="endid" class="admin-input-sm">(空或0表示直到结束id)</td>
</tr>
<?php }?>
<tr>
<td>更新位置</td>
<td><input type="text" name="tagsdir" id="tagsdir" value="<?php echo $cfg_tags_dir;?>" class="admin-input-sm" disabled>(系统设置中其他选项标签生成目录进行调整)</td>
</tr>
<tr>
<td>每页更新</td>
<td><input type="text" name="maxpagesize" id="maxpagesize" value="50" class="admin-input-sm">(网页)</td>
</tr>
<tr>
<td colspan="2" align="center"><button type="button" class="btn btn-success btn-sm" onclick="document.form1.action='makehtml_taglist_action.php';onTagSubmit();">开始执行</button></td>
</tr>
<tr>
<td colspan="2">
<div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">更新专题</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">更新专题</div>
<div class="card-body">
<div class="alert alert-info">更新静态文件后浏览动态链接会自动跳转至静态链接,需要动态浏览则删除对应静态文件。标签首页模板:<?php echo $cfg_templets_dir;?>/<?php echo $cfg_df_style?>/tag.htm,标签文档列表模板:<?php echo $cfg_templets_dir;?>/<?php echo $cfg_df_style?>/tag_list.htm</div>
<form name="form1" action="makehtml_tag_action_list.php" method="get" target="stafrm">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<?php if ($tagid > 0) {$row = $dsql->GetOne("SELECT tag FROM `#@__tagindex` WHERE id = '$tagid' ");?>
<tr>
<td width="260">输入标签</td>
<td>
<input type="hidden" name="tagid" value="<?php echo $tagid;?>"><?php echo $row['tag'];?>
<a href="makehtml_taglist.php" class="btn btn-success btn-sm">重新选择</a>
</td>
</tr>
<?php } else {?>
<tr>
<td width="260">起始id</td>
<td><input type="text" name="startid" id="startid" class="admin-input-sm">(空或0表示从头开始)</td>
</tr>
<tr>
<td>结束id</td>
<td><input type="text" name="endid" id="endid" class="admin-input-sm">(空或0表示直到结束id)</td>
</tr>
<?php }?>
<tr>
<td>更新位置</td>
<td><input type="text" name="tagsdir" id="tagsdir" value="<?php echo $cfg_tags_dir;?>" class="admin-input-sm" disabled>(系统设置中其他选项标签生成目录进行调整)</td>
</tr>
<tr>
<td>每页更新</td>
<td><input type="text" name="maxpagesize" id="maxpagesize" value="50" class="admin-input-sm">(网页)</td>
</tr>
<tr>
<td colspan="2" align="center"><button type="button" class="btn btn-success btn-sm" onclick="document.form1.action='makehtml_taglist_action.php';onTagSubmit();">开始执行</button></td>
</tr>
<tr>
<td colspan="2">
<div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>


+ 66
- 64
src/admin/templets/media_add.htm View File

@@ -12,73 +12,75 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="media_main.php">附件管理</a></li>
<li class="breadcrumb-item active">添加附件</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">添加附件</div>
<div class="card-body">
<form name="form1" action="media_add.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="dopost" value="upload">
<input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">附件类型</td>
<td>
<label><input type="radio" name="mediatype" value="1" checked> 图片</label>
<label><input type="radio" name="mediatype" value="2"> FLASH</label>
<label><input type="radio" name="mediatype" value="3"> 视频音频</label>
<label><input type="radio" name="mediatype" value="4"> 附件其它</label>
</td>
</tr>
<tr>
<td>附件标题</td>
<td><input type="text" name="title" id="title" class="admin-input-lg" required></td>
</tr>
<tr>
<td>附加参数</td>
<td>
<label>宽:<input type="text" name="mediawidth" id="mediawidth" class="admin-input-sm" placeholder="附件像素宽度"></label>
<label>高:<input type="text" name="mediaheight" id="mediaheight" class="admin-input-sm" placeholder="附件像高宽度"></label>
<label>播放时间:<input type="text" name="playtime" id="mediawidth3" class="admin-input-sm" placeholder="附件播放分钟"></label>
</td>
</tr>
<tr>
<td>上传附件</td>
<td>
<label>数量:<input type="text" name="picnum" id="picnum" value="5" class="admin-input-sm"></label>
<a href="javascript:MakeUpload();" class="btn btn-success btn-sm">添加</a>
<a href="javascript:ResetUpload();" class="btn btn-success btn-sm">恢复</a>
</td>
</tr>
<tr>
<td colspan="2">
<p><label>附件1:<input type="file" name="upfile1" id="upfile1" class="admin-input-lg"></label></p>
<p><label>附件2:<input type="file" name="upfile2" id="upfile2" class="admin-input-lg"></label></p>
<p><label>附件3:<input type="file" name="upfile3" id="upfile3" class="admin-input-lg"></label></p>
<p><label>附件4:<input type="file" name="upfile4" id="upfile4" class="admin-input-lg"></label></p>
<p><label>附件5:<input type="file" name="upfile5" id="upfile5" class="admin-input-lg"></label></p>
<div id="uploadfield"></div>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="media_main.php">附件管理</a></li>
<li class="breadcrumb-item active">添加附件</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">添加附件</div>
<div class="card-body">
<form name="form1" action="media_add.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="dopost" value="upload">
<input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">附件类型</td>
<td>
<label><input type="radio" name="mediatype" value="1" checked> 图片</label>
<label><input type="radio" name="mediatype" value="2"> FLASH</label>
<label><input type="radio" name="mediatype" value="3"> 视频音频</label>
<label><input type="radio" name="mediatype" value="4"> 附件其它</label>
</td>
</tr>
<tr>
<td>附件标题</td>
<td><input type="text" name="title" id="title" class="admin-input-lg" required></td>
</tr>
<tr>
<td>附加参数</td>
<td>
<label>宽:<input type="text" name="mediawidth" id="mediawidth" class="admin-input-sm" placeholder="附件像素宽度"></label>
<label>高:<input type="text" name="mediaheight" id="mediaheight" class="admin-input-sm" placeholder="附件像高宽度"></label>
<label>播放时间:<input type="text" name="playtime" id="mediawidth3" class="admin-input-sm" placeholder="附件播放分钟"></label>
</td>
</tr>
<tr>
<td>上传附件</td>
<td>
<label>数量:<input type="text" name="picnum" id="picnum" value="5" class="admin-input-sm"></label>
<a href="javascript:MakeUpload();" class="btn btn-success btn-sm">添加</a>
<a href="javascript:ResetUpload();" class="btn btn-success btn-sm">恢复</a>
</td>
</tr>
<tr>
<td colspan="2">
<p><label>附件1:<input type="file" name="upfile1" id="upfile1" class="admin-input-lg"></label></p>
<p><label>附件2:<input type="file" name="upfile2" id="upfile2" class="admin-input-lg"></label></p>
<p><label>附件3:<input type="file" name="upfile3" id="upfile3" class="admin-input-lg"></label></p>
<p><label>附件4:<input type="file" name="upfile4" id="upfile4" class="admin-input-lg"></label></p>
<p><label>附件5:<input type="file" name="upfile5" id="upfile5" class="admin-input-lg"></label></p>
<div id="uploadfield"></div>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>
var startNum = 6;
var startNum = 5;
function MakeUpload() {
var upfield = document.getElementById("uploadfield");
var endNum = Number(document.form1.picnum.value) + startNum;


+ 74
- 72
src/admin/templets/media_edit.htm View File

@@ -12,78 +12,80 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="media_main.php">附件管理</a></li>
<li class="breadcrumb-item active">修改附件</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改附件</div>
<div class="card-body">
<form name="form1" action="media_edit.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="dopost" value="save">
<input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>">
<input type="hidden" name="aid" value="<?php echo $aid?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">附件类型</td>
<td>
<label><input type="radio" name="mediatype" value="1" <?php if ($myrow['mediatype']==1) echo 'checked';?>> 图片</label>
<label><input type="radio" name="mediatype" value="2" <?php if ($myrow['mediatype']==2) echo 'checked';?>> FLASH</label>
<label><input type="radio" name="mediatype" value="3" <?php if ($myrow['mediatype']==3) echo 'checked';?>> 视频音频</label>
<label><input type="radio" name="mediatype" value="4" <?php if ($myrow['mediatype']==4) echo 'checked';?>> 附件其它</label>
</td>
</tr>
<tr>
<td>附件标题</td>
<td><input type="text" name="title" id="title" value="<?php echo $myrow['title']?>" class="admin-input-lg" required></td>
</tr>
<tr>
<td>附加参数</td>
<td>
<label>宽:<input type="text" name="mediawidth" id="mediawidth" value="<?php echo $myrow['width']?>" class="admin-input-sm" placeholder="附件像素宽度"></label>
<label>高:<input type="text" name="mediaheight" id="mediaheight" value="<?php echo $myrow['height']?>" class="admin-input-sm" placeholder="附件像高宽度"></label>
<label>播放时间:<input type="text" name="playtime" id="playtime" value="<?php echo $myrow['playtime']?>" class="admin-input-sm" placeholder="附件播放分钟"></label>
</td>
</tr>
<tr>
<td>源文件</td>
<td>
<input type="text" name="filename" id="filename" value="<?php echo $myrow['url']?>" class="admin-input-lg">
<a href="<?php echo $myrow['url']?>" target="_blank" class="btn btn-success btn-sm">查看</a>
</td>
</tr>
<?php
if ($myrow['mediatype'] == 1) {
$fullfilename = $cfg_basedir.$myrow['url'];
if (file_exists($fullfilename)) {
$info = '';
$sizes = getimagesize($fullfilename,$info);
if (is_array($sizes)) {
if ($sizes[0]>200) $w=200;
else $w = $sizes[0];
?>
<tr>
<td>预览</td>
<td><a href="<?php echo $myrow['url']?>" target="_blank"><img src="<?php echo $myrow['url'].'?q='.time()?>" width="<?php echo $w?>" id="picview"></a></td>
</tr>
<?php }}}?>
<tr>
<td>修改附件</td>
<td><input type="file" name="upfile" id="upfile" class="admin-input-lg"></td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="media_main.php">附件管理</a></li>
<li class="breadcrumb-item active">修改附件</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改附件</div>
<div class="card-body">
<form name="form1" action="media_edit.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="dopost" value="save">
<input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>">
<input type="hidden" name="aid" value="<?php echo $aid?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">附件类型</td>
<td>
<label><input type="radio" name="mediatype" value="1" <?php if ($myrow['mediatype']==1) echo 'checked';?>> 图片</label>
<label><input type="radio" name="mediatype" value="2" <?php if ($myrow['mediatype']==2) echo 'checked';?>> FLASH</label>
<label><input type="radio" name="mediatype" value="3" <?php if ($myrow['mediatype']==3) echo 'checked';?>> 视频音频</label>
<label><input type="radio" name="mediatype" value="4" <?php if ($myrow['mediatype']==4) echo 'checked';?>> 附件其它</label>
</td>
</tr>
<tr>
<td>附件标题</td>
<td><input type="text" name="title" id="title" value="<?php echo $myrow['title']?>" class="admin-input-lg" required></td>
</tr>
<tr>
<td>附加参数</td>
<td>
<label>宽:<input type="text" name="mediawidth" id="mediawidth" value="<?php echo $myrow['width']?>" class="admin-input-sm" placeholder="附件像素宽度"></label>
<label>高:<input type="text" name="mediaheight" id="mediaheight" value="<?php echo $myrow['height']?>" class="admin-input-sm" placeholder="附件像高宽度"></label>
<label>播放时间:<input type="text" name="playtime" id="playtime" value="<?php echo $myrow['playtime']?>" class="admin-input-sm" placeholder="附件播放分钟"></label>
</td>
</tr>
<tr>
<td>源文件</td>
<td>
<input type="text" name="filename" id="filename" value="<?php echo $myrow['url']?>" class="admin-input-lg">
<a href="<?php echo $myrow['url']?>" target="_blank" class="btn btn-success btn-sm">查看</a>
</td>
</tr>
<?php
if ($myrow['mediatype'] == 1) {
$fullfilename = $cfg_basedir.$myrow['url'];
if (file_exists($fullfilename)) {
$info = '';
$sizes = getimagesize($fullfilename,$info);
if (is_array($sizes)) {
if ($sizes[0]>200) $w=200;
else $w = $sizes[0];
?>
<tr>
<td>预览</td>
<td><a href="<?php echo $myrow['url']?>" target="_blank"><img src="<?php echo $myrow['url'].'?q='.time()?>" width="<?php echo $w?>" id="picview"></a></td>
</tr>
<?php }}}?>
<tr>
<td>修改附件</td>
<td><input type="file" name="upfile" id="upfile" class="admin-input-lg"></td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 70
- 68
src/admin/templets/media_main.htm View File

@@ -9,75 +9,77 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">附件管理</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form name="forms" action="media_main.php" method="post">
<input type="text" name="keyword" id="keyword" placeholder="请输入关键词" value="<?php echo $keyword?>" class="admin-input-lg mr-2">
<select name="mediatype" class="admin-input-sm mr-2">
<option value="0">文件类型</option>
<option value="1" <?php if ($mediatype==1) echo "selected"?>>图片</option>
<option value="2" <?php if ($mediatype==2) echo "selected"?>>FLASH</option>
<option value="3" <?php if ($mediatype==3) echo "selected"?>>视频音频</option>
<option value="4" <?php if ($mediatype==4) echo "selected"?>>其它附件</option>
</select>
<select name="membertype" class="admin-input-sm">
<option value="0">会员组</option>
<option value="1" <?php if ($membertype==1) echo "selected"?>>管理员</option>
<option value="2" <?php if ($membertype==2) echo "selected"?>>外部会员</option>
</select>
<button type="submit"class="btn btn-success btn-sm">搜索</button>
<a href="media_add.php" class="btn btn-success btn-sm">添加附件</a>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">附件管理</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form name="forms" action="media_main.php" method="post">
<input type="text" name="keyword" id="keyword" placeholder="请输入关键词" value="<?php echo $keyword?>" class="admin-input-lg mr-2">
<select name="mediatype" class="admin-input-sm mr-2">
<option value="0">文件类型</option>
<option value="1" <?php if ($mediatype==1) echo "selected"?>>图片</option>
<option value="2" <?php if ($mediatype==2) echo "selected"?>>FLASH</option>
<option value="3" <?php if ($mediatype==3) echo "selected"?>>视频音频</option>
<option value="4" <?php if ($mediatype==4) echo "selected"?>>其它附件</option>
</select>
<select name="membertype" class="admin-input-sm">
<option value="0">会员组</option>
<option value="1" <?php if ($membertype==1) echo "selected"?>>管理员</option>
<option value="2" <?php if ($membertype==2) echo "selected"?>>外部会员</option>
</select>
<button type="submit"class="btn btn-success btn-sm">搜索</button>
<a href="media_add.php" class="btn btn-success btn-sm">添加附件</a>
</form>
</div>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">附件管理</div>
<div class="card-body">
<form name="form1">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">文件标题</td>
<td scope="col">文件大小</td>
<td scope="col">上传会员</td>
<td scope="col">上传时间</td>
<td scope="col">文件类型</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td><input type="checkbox" name="aids" id="aids{dede:field.aid/}" value="{dede:field.aid/}"></td>
<td><a href="{dede:field.url/}" title="{dede:field.url/}" target="_blank">{dede:field.title/}</a></td>
<td>{dede:field.filesize function='GetFileSize(@me)'/}</td>
<td>{dede:field.adminname function="UploadAdmin(@me,$fields['membername'])"/}</td>
<td>{dede:field.uptime function="MyDate('Y-m-d H:i:s',@me)"/}</td>
<td>{dede:field.mediatype function="MediaType(@me,$fields['url'])"/}</td>
<td>
<a href="media_edit.php?aid={dede:field.aid/}&dopost=edit" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="修改"></i></a>
<a href="media_edit.php?aid={dede:field.aid/}&dopost=del" class="btn btn-danger btn-sm"><i class="fa fa-trash" title="删除"></i></a>
</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="7">
<a href="javascript:AllSel();" class="btn btn-success btn-sm">全选</a>
<a href="javascript:NoneSel();" class="btn btn-success btn-sm">取消</a>
<a href="javascript:DelSel();" class="btn btn-danger btn-sm">删除</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
<div class="card shadow-sm">
<div class="card-header">附件管理</div>
<div class="card-body">
<form name="form1">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">文件标题</td>
<td scope="col">文件大小</td>
<td scope="col">上传会员</td>
<td scope="col">上传时间</td>
<td scope="col">文件类型</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td><input type="checkbox" name="aids" id="aids{dede:field.aid/}" value="{dede:field.aid/}"></td>
<td><a href="{dede:field.url/}" title="{dede:field.url/}" target="_blank">{dede:field.title/}</a></td>
<td>{dede:field.filesize function='GetFileSize(@me)'/}</td>
<td>{dede:field.adminname function="UploadAdmin(@me,$fields['membername'])"/}</td>
<td>{dede:field.uptime function="MyDate('Y-m-d H:i:s',@me)"/}</td>
<td>{dede:field.mediatype function="MediaType(@me,$fields['url'])"/}</td>
<td>
<a href="media_edit.php?aid={dede:field.aid/}&dopost=edit" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="修改"></i></a>
<a href="media_edit.php?aid={dede:field.aid/}&dopost=del" class="btn btn-danger btn-sm"><i class="fa fa-trash" title="删除"></i></a>
</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="7">
<a href="javascript:AllSel();" class="btn btn-success btn-sm">全选</a>
<a href="javascript:NoneSel();" class="btn btn-success btn-sm">取消</a>
<a href="javascript:DelSel();" class="btn btn-danger btn-sm">删除</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
</div>
</div>
</div>
<script>


+ 156
- 154
src/admin/templets/member_edit.htm View File

@@ -12,164 +12,166 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="<?php echo $ENV_GOBACK_URL;?>">会员管理</a></li>
<li class="breadcrumb-item active">修改会员</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改会员</div>
<div class="card-body">
<?php if ($row['matt']==10) echo '<div class="alert alert-info">该会员关连网站管理员,请谨慎修改</div>';?>
<form name="form2" action="member_do.php" method="post">
<input type="hidden" name="dopost" value="edituser">
<input type="hidden" name="id" value="<?php echo $id?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td colspan="2" align="center">
<?php if ($row['face']!='') {echo "<p><img src='{$row['face']}' class='user-img-md'></p>";};echo "<p>".$row['userid']."</p>";?>
<p class="m-0">
<span class="btn btn-outline-success btn-sm"><?php echo GetMemberTypeName($row['rank']);?></span>
<span class="btn btn-outline-warning btn-sm"><?php echo GetHonor($row['scores']);?></span>
</p>
</td>
</tr>
<tr>
<td width="260">昵称</td>
<td><input type="text" name="uname" id="uname" class="admin-input-sm" value="<?php echo $row['uname']?>" required></td>
</tr>
<tr>
<td>密码</td>
<td><input type="text" name="pwd" id="pwd" class="admin-input-sm">(留空则不修改,请使用数字0-9小写a-z大写A-Z符号_@!.-)</td>
</tr>
<tr>
<td>邮箱</td>
<td><input type="text" name="email" id="email" autocomplete="off" class="admin-input-sm" value="<?php echo $row['email']?>" required></td>
</tr>
<tr>
<td>性别</td>
<td>
<label><input type="radio" name="sex" value="男" <?php if ($row['sex']=='男') echo 'checked';?>> 男</label>
<label><input type="radio" name="sex" value="女" <?php if ($row['sex']=='女') echo 'checked';?>> 女</label>
<label><input type="radio" name="sex" <?php if ($row['sex']=='') echo 'checked';?>> 保密</label>
</td>
</tr>
<tr>
<td>钱包积分</td>
<td>
<label>金币:<input type="text" name="money" id="money" class="admin-input-sm" value="<?php echo $row['money'];?>"></label>
<label>积分:<input type="text" name="scores" id="scores" class="admin-input-sm" value="<?php echo $row['scores'];?>"></label>
<label>余额:<input type="text" name="user_money" id="user_money" class="admin-input-sm" value="<?php echo $row['user_money'];?>"></label>
</td>
</tr>
<tr>
<td>等级</td>
<td>
<?php
$MemberTypes = array();
$dsql->SetQuery("SELECT `rank`,membername FROM `#@__arcrank` WHERE `rank` > 0 ORDER BY `rank` ASC");
$dsql->Execute('n');
$MemberTypes[0] = "限制会员";
while($nrow = $dsql->GetObject('n')){
$MemberTypes[$nrow->rank] = $nrow->membername;
}
$options = "<select name='rank' class='admin-input-sm'>";
foreach($MemberTypes as $k=>$v)
{
if ($k!=$row['rank']) $options .= "<option value='$k'>$v</option>";
else $options .= "<option value='$k' selected>$v</option>";
}
$options .= "</select>";
echo $options;
?>
</td>
</tr>
<tr>
<td>升级时间</td>
<td><input type="text" name="uptime" id="uptime" class="admin-input-sm" value="<?php echo $row['uptime']=($row['uptime']=='0')? GetDateTimeMk(time()) : GetDateTimeMk($row['uptime']);?>">(如果您要升级会员,必须设置此时间为当前时间)</td>
</tr>
<tr>
<td>会员天数</td>
<td><input type="text" name="exptime" id="exptime" class="admin-input-sm" value="<?php echo $row['exptime']?>">(如果您要升级会员,会员天数必须大于0)</td>
</tr>
<?php if ($mhasDay!=0) {$mhasDay=($mhasDay>0)? $mhasDay : '<tr><td colspan="2"><span class="text-danger">会员已经到期</span></td></tr>';?>
<tr>
<td>剩余天数</td>
<td><?php echo $mhasDay;?></td>
</tr>
<?php }?>
<tr>
<td>推荐级别</td>
<td>
<input type="hidden" name="oldmatt" id="oldmatt" class="admin-input-sm" value="<?php echo $row['matt']?>">
<input name="matt" type="text" id="matt" class="admin-input-sm" value="<?php echo $row['matt']?>">
<span>(0普通、1推荐、10管理员)</span>
</td>
</tr>
<tr>
<td>投稿限制</td>
<td><input type="text" name="send_max" class="admin-input-sm" value="<?php echo $row['send_max']?>">(0不能投稿、-1无限次)</td>
</tr>
<tr>
<td>投稿剩余次数</td>
<td><?php echo $rtimes;?>次</td>
</tr>
<tr>
<td>资料状况</td>
<td>
<select name="spacesta" class="admin-input-sm">
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="<?php echo $ENV_GOBACK_URL;?>">会员管理</a></li>
<li class="breadcrumb-item active">修改会员</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改会员</div>
<div class="card-body">
<?php if ($row['matt']==10) echo '<div class="alert alert-info">该会员关连网站管理员,请谨慎修改</div>';?>
<form name="form2" action="member_do.php" method="post">
<input type="hidden" name="dopost" value="edituser">
<input type="hidden" name="id" value="<?php echo $id?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td colspan="2" align="center">
<?php if ($row['face']!='') {echo "<p><img src='{$row['face']}' class='user-img-md'></p>";};echo "<p>".$row['userid']."</p>";?>
<p class="m-0">
<span class="btn btn-outline-success btn-sm"><?php echo GetMemberTypeName($row['rank']);?></span>
<span class="btn btn-outline-warning btn-sm"><?php echo GetHonor($row['scores']);?></span>
</p>
</td>
</tr>
<tr>
<td width="260">昵称</td>
<td><input type="text" name="uname" id="uname" class="admin-input-sm" value="<?php echo $row['uname']?>" required></td>
</tr>
<tr>
<td>密码</td>
<td><input type="text" name="pwd" id="pwd" class="admin-input-sm">(留空则不修改,请使用数字0-9小写a-z大写A-Z符号_@!.-)</td>
</tr>
<tr>
<td>邮箱</td>
<td><input type="text" name="email" id="email" autocomplete="off" class="admin-input-sm" value="<?php echo $row['email']?>" required></td>
</tr>
<tr>
<td>性别</td>
<td>
<label><input type="radio" name="sex" value="男" <?php if ($row['sex']=='男') echo 'checked';?>> 男</label>
<label><input type="radio" name="sex" value="女" <?php if ($row['sex']=='女') echo 'checked';?>> 女</label>
<label><input type="radio" name="sex" <?php if ($row['sex']=='') echo 'checked';?>> 保密</label>
</td>
</tr>
<tr>
<td>钱包积分</td>
<td>
<label>金币:<input type="text" name="money" id="money" class="admin-input-sm" value="<?php echo $row['money'];?>"></label>
<label>积分:<input type="text" name="scores" id="scores" class="admin-input-sm" value="<?php echo $row['scores'];?>"></label>
<label>余额:<input type="text" name="user_money" id="user_money" class="admin-input-sm" value="<?php echo $row['user_money'];?>"></label>
</td>
</tr>
<tr>
<td>等级</td>
<td>
<?php
foreach($staArr as $k=>$v)
$MemberTypes = array();
$dsql->SetQuery("SELECT `rank`,membername FROM `#@__arcrank` WHERE `rank` > 0 ORDER BY `rank` ASC");
$dsql->Execute('n');
$MemberTypes[0] = "限制会员";
while($nrow = $dsql->GetObject('n')){
$MemberTypes[$nrow->rank] = $nrow->membername;
}
$options = "<select name='rank' class='admin-input-sm'>";
foreach($MemberTypes as $k=>$v)
{
if ($row['spacesta']==$k) echo "<option value='$k' selected>$v</option>";
else echo "<option value='$k'>$v</option>";
if ($k!=$row['rank']) $options .= "<option value='$k'>$v</option>";
else $options .= "<option value='$k' selected>$v</option>";
}
$options .= "</select>";
echo $options;
?>
</td>
</tr>
<tr>
<td>升级时间</td>
<td><input type="text" name="uptime" id="uptime" class="admin-input-sm" value="<?php echo $row['uptime']=($row['uptime']=='0')? GetDateTimeMk(time()) : GetDateTimeMk($row['uptime']);?>">(如果您要升级会员,必须设置此时间为当前时间)</td>
</tr>
<tr>
<td>会员天数</td>
<td><input type="text" name="exptime" id="exptime" class="admin-input-sm" value="<?php echo $row['exptime']?>">(如果您要升级会员,会员天数必须大于0)</td>
</tr>
<?php if ($mhasDay!=0) {$mhasDay=($mhasDay>0)? $mhasDay : '<tr><td colspan="2"><span class="text-danger">会员已经到期</span></td></tr>';?>
<tr>
<td>剩余天数</td>
<td><?php echo $mhasDay;?></td>
</tr>
<?php }?>
<tr>
<td>推荐级别</td>
<td>
<input type="hidden" name="oldmatt" id="oldmatt" class="admin-input-sm" value="<?php echo $row['matt']?>">
<input name="matt" type="text" id="matt" class="admin-input-sm" value="<?php echo $row['matt']?>">
<span>(0普通、1推荐、10管理员)</span>
</td>
</tr>
<tr>
<td>投稿限制</td>
<td><input type="text" name="send_max" class="admin-input-sm" value="<?php echo $row['send_max']?>">(0不能投稿、-1无限次)</td>
</tr>
<tr>
<td>投稿剩余次数</td>
<td><?php echo $rtimes;?>次</td>
</tr>
<tr>
<td>资料状况</td>
<td>
<select name="spacesta" class="admin-input-sm">
<?php
foreach($staArr as $k=>$v)
{
if ($row['spacesta']==$k) echo "<option value='$k' selected>$v</option>";
else echo "<option value='$k'>$v</option>";
}
?>
</select>
</td>
</tr>
<tr>
<td>空间信息</td>
<td>
<?php
$nrow = $dsql->GetOne("SELECT * FROM `#@__member_tj` WHERE mid='{$row['mid']}'");
echo "文档:{$nrow['article']} 图片:{$nrow['album']} 收藏:{$nrow['stow']} 浏览:{$nrow['pagecount']}";
?>
</select>
</td>
</tr>
<tr>
<td>空间信息</td>
<td>
<?php
$nrow = $dsql->GetOne("SELECT * FROM `#@__member_tj` WHERE mid='{$row['mid']}'");
echo "文档:{$nrow['article']} 图片:{$nrow['album']} 收藏:{$nrow['stow']} 浏览:{$nrow['pagecount']}";
?>
</td>
</tr>
<tr>
<td>注册时间/地址</td>
<td>
<span><?php echo GetDateTimeMk($row['jointime'])?></span>
<span><?php echo $row['joinip']?></span>
</td>
</tr>
<tr>
<td>最近时间/地址</td>
<td>
<span><?php echo GetDateTimeMk($row['logintime'])?></span>
<span><?php echo $row['loginip']?></span>
</td>
</tr>
<tr>
<td>操作</td>
<td>
<a href="member_do.php?dopost=memberlogin&id=<?php echo $row['mid'];?>&jumpurl=<?php echo $cfg_memberurl;?>/edit_baseinfo.php" target="_blank" class="btn btn-success btn-sm">修改资料</a>
<a href="member_do.php?dopost=memberlogin&id=<?php echo $row['mid'];?>" target="_blank" class="btn btn-success btn-sm">会员面板</a>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</td>
</tr>
<tr>
<td>注册时间/地址</td>
<td>
<span><?php echo GetDateTimeMk($row['jointime'])?></span>
<span><?php echo $row['joinip']?></span>
</td>
</tr>
<tr>
<td>最近时间/地址</td>
<td>
<span><?php echo GetDateTimeMk($row['logintime'])?></span>
<span><?php echo $row['loginip']?></span>
</td>
</tr>
<tr>
<td>操作</td>
<td>
<a href="member_do.php?dopost=memberlogin&id=<?php echo $row['mid'];?>&jumpurl=<?php echo $cfg_memberurl;?>/edit_baseinfo.php" target="_blank" class="btn btn-success btn-sm">修改资料</a>
<a href="member_do.php?dopost=memberlogin&id=<?php echo $row['mid'];?>" target="_blank" class="btn btn-success btn-sm">会员面板</a>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 94
- 92
src/admin/templets/member_main.htm View File

@@ -10,99 +10,101 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">所有会员列表</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form action="member_main.php" name="form1" method="get">
<input type="text" name="keyword" id="keyword" placeholder="请输入关键词" value="{dede:global name='keyword'/}" class="admin-input-lg mr-2">
<select name="sortkey" id="sortkey" class="admin-input-sm mr-2">
{dede:global name='sortform'/}
<option value="mid">mid/注册时间</option>
<option value="logintime">登录时间</option>
<option value="rank">会员等级</option>
<option value="money">会员金币</option>
<option value="scores">会员积分</option>
</select>
<select name="sex" id="sex" class="admin-input-sm mr-2">
{dede:global name='sexform'/}
<option value="男">男</option>
<option value="女">女</option>
<option value="保密">保密</option>
</select>
<select name="spacesta" id="spacesta" class="admin-input-sm">
<option value="-10">会员状态</option>
<?php
foreach($staArr as $k=>$v)
{
if ($spacesta==$k) echo "<option value='$k' selected>$v</option>";
else echo "<option value='$k'>$v</option>";
}
?>
</select>
<button type="submit"class="btn btn-success btn-sm">搜索</button>
<a href="member_main.php" class="btn btn-success btn-sm">所有会员</a>
<a href="member_main.php?spacesta=-2" class="btn btn-success btn-sm">禁言会员</a>
<a href="member_main.php?matt=1" class="btn btn-success btn-sm">推荐会员</a>
<a href="member_main.php?matt=0" class="btn btn-success btn-sm">注册会员</a>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">所有会员列表</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form action="member_main.php" name="form1" method="get">
<input type="text" name="keyword" id="keyword" placeholder="请输入关键词" value="{dede:global name='keyword'/}" class="admin-input-lg mr-2">
<select name="sortkey" id="sortkey" class="admin-input-sm mr-2">
{dede:global name='sortform'/}
<option value="mid">mid/注册时间</option>
<option value="logintime">登录时间</option>
<option value="rank">会员等级</option>
<option value="money">会员金币</option>
<option value="scores">会员积分</option>
</select>
<select name="sex" id="sex" class="admin-input-sm mr-2">
{dede:global name='sexform'/}
<option value="男">男</option>
<option value="女">女</option>
<option value="保密">保密</option>
</select>
<select name="spacesta" id="spacesta" class="admin-input-sm">
<option value="-10">会员状态</option>
<?php
foreach($staArr as $k=>$v)
{
if ($spacesta==$k) echo "<option value='$k' selected>$v</option>";
else echo "<option value='$k'>$v</option>";
}
?>
</select>
<button type="submit"class="btn btn-success btn-sm">搜索</button>
<a href="member_main.php" class="btn btn-success btn-sm">所有会员</a>
<a href="member_main.php?spacesta=-2" class="btn btn-success btn-sm">禁言会员</a>
<a href="member_main.php?matt=1" class="btn btn-success btn-sm">推荐会员</a>
<a href="member_main.php?matt=0" class="btn btn-success btn-sm">注册会员</a>
</form>
</div>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">所有会员列表</div>
<div class="card-body">
<form name="form2">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">mid</td>
<td scope="col">头像/账号</td>
<td scope="col">昵称</td>
<td scope="col">等级</td>
<td scope="col">钱包积分</td>
<td scope="col">地址/时间</td>
<td scope="col">投稿限制</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td><input type="checkbox" name="mid" value="{dede:field.mid/}"></td>
<td>{dede:field.mid/}</td>
<td>
<?php if (!empty($fields['face'])) {echo "<img src='{$fields['face']}' class='user-img-sm'>";};echo ' <span>'.$fields['userid'].'</span>';if ($fields['spacesta']==-2) echo ' <span class="btn btn-danger btn-sm">禁言</span>';if ($fields['spacesta']==-1) echo ' <span class="btn btn-danger btn-sm">待审核</span>';?>
<span>{dede:field.matt function="GetMAtt(@me)"/}</span>
</td>
<td>{dede:field.uname/}</td>
<td>{dede:field.rank function="GetMemberName(@me,'限制会员')"/}</td>
<td>积分:{dede:field.scores/}/金币:{dede:field.money/}/余额:{dede:field.user_money/}</td>
<td>{dede:field.loginip/}/{dede:field.logintime function="MyDate('Y-m-d H:i:s',@me)"/}</td>
<td>{dede:field.send_max/}</td>
<td>
<a href="member_toadmin.php?id={dede:field.mid/}" target="_self" class="btn btn-light btn-sm"><i class="fa fa-user-plus" title="提升"></i></a>
<a href="content_list.php?mid={dede:field.mid/}" target="_self" class="btn btn-light btn-sm"><i class="fa fa-file-text" title="文档"></i></a>
<a href="member_edit.php?id={dede:field.mid/}" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="修改"></i></a>
<a href="member_do.php?id={dede:field.mid/}&dopost=delmember" class="btn btn-danger btn-sm"><i class="fa fa-trash" title="删除"></i></a>
</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="9">
<a href="javascript:selAll();" class="btn btn-success btn-sm">全选</a>
<a href="javascript:noSelAll();" class="btn btn-success btn-sm">取消</a>
<a href="javascript:delArc(0);" class="btn btn-danger btn-sm">删除</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
<div class="card shadow-sm">
<div class="card-header">所有会员列表</div>
<div class="card-body">
<form name="form2">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">mid</td>
<td scope="col">头像/账号</td>
<td scope="col">昵称</td>
<td scope="col">等级</td>
<td scope="col">钱包积分</td>
<td scope="col">地址/时间</td>
<td scope="col">投稿限制</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td><input type="checkbox" name="mid" value="{dede:field.mid/}"></td>
<td>{dede:field.mid/}</td>
<td>
<?php if (!empty($fields['face'])) {echo "<img src='{$fields['face']}' class='user-img-sm'>";};echo ' <span>'.$fields['userid'].'</span>';if ($fields['spacesta']==-2) echo ' <span class="btn btn-danger btn-sm">禁言</span>';if ($fields['spacesta']==-1) echo ' <span class="btn btn-danger btn-sm">待审核</span>';?>
<span>{dede:field.matt function="GetMAtt(@me)"/}</span>
</td>
<td>{dede:field.uname/}</td>
<td>{dede:field.rank function="GetMemberName(@me,'限制会员')"/}</td>
<td>积分:{dede:field.scores/}/金币:{dede:field.money/}/余额:{dede:field.user_money/}</td>
<td>{dede:field.loginip/}/{dede:field.logintime function="MyDate('Y-m-d H:i:s',@me)"/}</td>
<td>{dede:field.send_max/}</td>
<td>
<a href="member_toadmin.php?id={dede:field.mid/}" target="_self" class="btn btn-light btn-sm"><i class="fa fa-user-plus" title="提升"></i></a>
<a href="content_list.php?mid={dede:field.mid/}" target="_self" class="btn btn-light btn-sm"><i class="fa fa-file-text" title="文档"></i></a>
<a href="member_edit.php?id={dede:field.mid/}" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="修改"></i></a>
<a href="member_do.php?id={dede:field.mid/}&dopost=delmember" class="btn btn-danger btn-sm"><i class="fa fa-trash" title="删除"></i></a>
</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="9">
<a href="javascript:selAll();" class="btn btn-success btn-sm">全选</a>
<a href="javascript:noSelAll();" class="btn btn-success btn-sm">取消</a>
<a href="javascript:delArc(0);" class="btn btn-danger btn-sm">删除</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
</div>
</div>
</div>
<script>


+ 61
- 59
src/admin/templets/member_operations.htm View File

@@ -9,66 +9,68 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">会员消费记录</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form name="form2" method="get" action="member_operations.php">
<input type="text" name="buyid" id="buyid" placeholder="请输入订单号" class="admin-input-lg">
<button type="submit"class="btn btn-success btn-sm">搜索</button>
<a href="member_operations.php?sta=0" class="btn btn-success btn-sm">未付款</a>
<a href="member_operations.php?sta=1" class="btn btn-success btn-sm">已付款</a>
<a href="member_operations.php?sta=2" class="btn btn-success btn-sm">已完成</a>
<a href="member_operations.php" class="btn btn-success btn-sm">全部</a>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">会员消费记录</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form name="form2" method="get" action="member_operations.php">
<input type="text" name="buyid" id="buyid" placeholder="请输入订单号" class="admin-input-lg">
<button type="submit"class="btn btn-success btn-sm">搜索</button>
<a href="member_operations.php?sta=0" class="btn btn-success btn-sm">未付款</a>
<a href="member_operations.php?sta=1" class="btn btn-success btn-sm">已付款</a>
<a href="member_operations.php?sta=2" class="btn btn-success btn-sm">已完成</a>
<a href="member_operations.php" class="btn btn-success btn-sm">全部</a>
</form>
</div>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">会员消费记录</div>
<div class="card-body">
<form name="form1">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">订单号</td>
<td scope="col">产品名称</td>
<td scope="col">产品类型</td>
<td scope="col">生成日期</td>
<td scope="col">金额</td>
<td scope="col">状态</td>
<td scope="col">会员</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td><input type="checkbox" name="aids" value="<?php echo $fields['aid']?>"></td>
<td><?php echo $fields['buyid']?></td>
<td><?php echo $fields['pname'].'('.$fields['oldinfo'].')';?></td>
<td><?php echo GetPType($fields['product'])?></td>
<td><?php echo GetDateTimeMk($fields['mtime'])?>({dede:field.mtime function="floorTime(time()-@me,@me)"/})</td>
<td><?php echo $fields['money']?></td>
<td><?php echo GetSta($fields['sta'])?></td>
<td><?php echo GetMemberID($fields['mid'])?></td>
</tr>
{/dede:datalist}
<tr>
<td colspan="8">
<a href="javascript:ReSel();" class="btn btn-success btn-sm">全选</a>
<a href="javascript:UpSel();" class="btn btn-success btn-sm">已付款</a>
<a href="javascript:OkSel();" class="btn btn-success btn-sm">已完成</a>
<a href="javascript:DelSel();" class="btn btn-danger btn-sm">删除</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
<div class="card shadow-sm">
<div class="card-header">会员消费记录</div>
<div class="card-body">
<form name="form1">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">订单号</td>
<td scope="col">产品名称</td>
<td scope="col">产品类型</td>
<td scope="col">生成日期</td>
<td scope="col">金额</td>
<td scope="col">状态</td>
<td scope="col">会员</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td><input type="checkbox" name="aids" value="<?php echo $fields['aid']?>"></td>
<td><?php echo $fields['buyid']?></td>
<td><?php echo $fields['pname'].'('.$fields['oldinfo'].')';?></td>
<td><?php echo GetPType($fields['product'])?></td>
<td><?php echo GetDateTimeMk($fields['mtime'])?>({dede:field.mtime function="floorTime(time()-@me,@me)"/})</td>
<td><?php echo $fields['money']?></td>
<td><?php echo GetSta($fields['sta'])?></td>
<td><?php echo GetMemberID($fields['mid'])?></td>
</tr>
{/dede:datalist}
<tr>
<td colspan="8">
<a href="javascript:ReSel();" class="btn btn-success btn-sm">全选</a>
<a href="javascript:UpSel();" class="btn btn-success btn-sm">已付款</a>
<a href="javascript:OkSel();" class="btn btn-success btn-sm">已完成</a>
<a href="javascript:DelSel();" class="btn btn-danger btn-sm">删除</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
</div>
</div>
</div>
<script>


+ 52
- 50
src/admin/templets/member_pm.htm View File

@@ -10,58 +10,60 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">会员短信管理</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form action="member_pm.php" name="form1" method="get">
<input type="text" name="keyword" id="keyword" value="{dede:global name='keyword'/}" placeholder="请输入关键词" class="admin-input-lg mr-2">
<input type="text" name="username" id="username" value="{dede:global name='username'/}" placeholder="请输入账号" autocomplete="off" class="admin-input-lg mr-2">
<select name="folder" id="folder" class="admin-input-sm">
<option value="inbox">收件箱</option>
<option value="outbox">发件箱</option>
</select>
<button type="submit"class="btn btn-success btn-sm">搜索</button>
<span class="btn btn-success btn-sm">短信列表</span>
<a href="member_pmall.php" class="btn btn-outline-success btn-sm">群发短信</a>
<a href="member_pmone.php" class="btn btn-outline-success btn-sm">单独短信</a>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">会员短信管理</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form action="member_pm.php" name="form1" method="get">
<input type="text" name="keyword" id="keyword" value="{dede:global name='keyword'/}" placeholder="请输入关键词" class="admin-input-lg mr-2">
<input type="text" name="username" id="username" value="{dede:global name='username'/}" placeholder="请输入账号" autocomplete="off" class="admin-input-lg mr-2">
<select name="folder" id="folder" class="admin-input-sm">
<option value="inbox">收件箱</option>
<option value="outbox">发件箱</option>
</select>
<button type="submit"class="btn btn-success btn-sm">搜索</button>
<span class="btn btn-success btn-sm">短信列表</span>
<a href="member_pmall.php" class="btn btn-outline-success btn-sm">群发短信</a>
<a href="member_pmone.php" class="btn btn-outline-success btn-sm">单独短信</a>
</form>
</div>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">会员短信列表</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">发送时间</td>
<td scope="col">标题</td>
<td scope="col">已读</td>
<td scope="col">{dede:global name='postuser'/}</td>
<td scope="col">文档</td>
<td scope="col">文件夹</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td>{dede:field.sendtime function='GetDateMk(@me)'/}</td>
<td>{dede:field.subject function='dede_htmlspecialchars(@me)'/}</td>
<td>{dede:field.hasview function='IsReader(@me)'/}</td>
<td>{dede:field.floginid/}</td>
<td>{dede:field.message function='cn_substr(HtmlReplace(@me),60)'/}</td>
<td>{dede:field.folder function='GetFolders(@me)'/}</td>
<td><a href="member_pm.php?ID={dede:field.id/}&dopost=del" class="btn btn-danger btn-sm"><i class="fa fa-trash" title="删除"></i></a></td>
</tr>
{/dede:datalist}
</tbody>
</table>
<div class="card shadow-sm">
<div class="card-header">会员短信列表</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">发送时间</td>
<td scope="col">标题</td>
<td scope="col">已读</td>
<td scope="col">{dede:global name='postuser'/}</td>
<td scope="col">文档</td>
<td scope="col">文件夹</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td>{dede:field.sendtime function='GetDateMk(@me)'/}</td>
<td>{dede:field.subject function='dede_htmlspecialchars(@me)'/}</td>
<td>{dede:field.hasview function='IsReader(@me)'/}</td>
<td>{dede:field.floginid/}</td>
<td>{dede:field.message function='cn_substr(HtmlReplace(@me),60)'/}</td>
<td>{dede:field.folder function='GetFolders(@me)'/}</td>
<td><a href="member_pm.php?ID={dede:field.id/}&dopost=del" class="btn btn-danger btn-sm"><i class="fa fa-trash" title="删除"></i></a></td>
</tr>
{/dede:datalist}
</tbody>
</table>
</div>
{dede:pagelist listsize='6'/}
</div>
{dede:pagelist listsize='6'/}
</div>
</div>
</body>

+ 47
- 45
src/admin/templets/member_pmall.htm View File

@@ -9,52 +9,54 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">会员群发短信</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form action="member_pm.php" name="form1" method="get">
<input type="text" name="keyword" id="keyword" placeholder="请输入关键词" class="admin-input-lg mr-2">
<input type="text" name="username" id="username" placeholder="请输入账号" autocomplete="off" class="admin-input-lg mr-2">
<select name="folder" id="folder" class="admin-input-sm">
<option value="inbox">收件箱</option>
<option value="outbox">发件箱</option>
</select>
<button type="submit"class="btn btn-success btn-sm">搜索</button>
<a href="member_pm.php" class="btn btn-outline-success btn-sm">短信列表</a>
<span class="btn btn-success btn-sm">群发短信</span>
<a href="member_pmone.php" class="btn btn-outline-success btn-sm">单独短信</a>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">会员群发短信</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form action="member_pm.php" name="form1" method="get">
<input type="text" name="keyword" id="keyword" placeholder="请输入关键词" class="admin-input-lg mr-2">
<input type="text" name="username" id="username" placeholder="请输入账号" autocomplete="off" class="admin-input-lg mr-2">
<select name="folder" id="folder" class="admin-input-sm">
<option value="inbox">收件箱</option>
<option value="outbox">发件箱</option>
</select>
<button type="submit"class="btn btn-success btn-sm">搜索</button>
<a href="member_pm.php" class="btn btn-outline-success btn-sm">短信列表</a>
<span class="btn btn-success btn-sm">群发短信</span>
<a href="member_pmone.php" class="btn btn-outline-success btn-sm">单独短信</a>
</form>
</div>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">会员群发短信</div>
<div class="card-body">
<form id="postall" action="member_pmall.php" method="post">
<input type="hidden" name="action" value="post">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">标题</td>
<td><input type="text" name="subject" id="subject" class="admin-input-lg" placeholder="标题少于70个字符内" required></td>
</tr>
<tr>
<td>内容</td>
<td><textarea name="message" id="message" class="admin-textarea-xl" placeholder="内容少于1000个字符" required></textarea></td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="card shadow-sm">
<div class="card-header">会员群发短信</div>
<div class="card-body">
<form id="postall" action="member_pmall.php" method="post">
<input type="hidden" name="action" value="post">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">标题</td>
<td><input type="text" name="subject" id="subject" class="admin-input-lg" placeholder="标题少于70个字符内" required></td>
</tr>
<tr>
<td>内容</td>
<td><textarea name="message" id="message" class="admin-textarea-xl" placeholder="内容少于1000个字符" required></textarea></td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 51
- 49
src/admin/templets/member_pmone.htm View File

@@ -9,56 +9,58 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">会员单独短信</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form action="member_pm.php" name="form1" method="get">
<input type="text" name="keyword" id="keyword" placeholder="请输入关键词" class="admin-input-lg mr-2">
<input type="text" name="username" id="username" placeholder="请输入账号" autocomplete="off" class="admin-input-lg mr-2">
<select name="folder" id="folder" class="admin-input-sm">
<option value="inbox">收件箱</option>
<option value="outbox">发件箱</option>
</select>
<button type="submit"class="btn btn-success btn-sm">搜索</button>
<a href="member_pm.php" class="btn btn-outline-success btn-sm">短信列表</a>
<a href="member_pmall.php" class="btn btn-outline-success btn-sm">群发短信</a>
<span class="btn btn-success btn-sm">单独短信</span>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">会员单独短信</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form action="member_pm.php" name="form1" method="get">
<input type="text" name="keyword" id="keyword" placeholder="请输入关键词" class="admin-input-lg mr-2">
<input type="text" name="username" id="username" placeholder="请输入账号" autocomplete="off" class="admin-input-lg mr-2">
<select name="folder" id="folder" class="admin-input-sm">
<option value="inbox">收件箱</option>
<option value="outbox">发件箱</option>
</select>
<button type="submit"class="btn btn-success btn-sm">搜索</button>
<a href="member_pm.php" class="btn btn-outline-success btn-sm">短信列表</a>
<a href="member_pmall.php" class="btn btn-outline-success btn-sm">群发短信</a>
<span class="btn btn-success btn-sm">单独短信</span>
</form>
</div>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">会员单独短信</div>
<div class="card-body">
<form id="postall" action="member_pmone.php" method="post">
<input type="hidden" name="action" value="post">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">会员登录id</td>
<td><input type="text" name="msgtoid" value="<?php echo empty($touid)? '' : $touid?>" class="admin-input-sm" required>(网址uid=后面跟的id)</td>
</tr>
<tr>
<td>标题</td>
<td><input type="text" name="subject" id="subject" class="admin-input-lg" placeholder="标题少于70个字符内" required></td>
</tr>
<tr>
<td>内容</td>
<td><textarea name="message" id="message" class="admin-textarea-xl" placeholder="内容少于1000个字符" required></textarea></td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="card shadow-sm">
<div class="card-header">会员单独短信</div>
<div class="card-body">
<form id="postall" action="member_pmone.php" method="post">
<input type="hidden" name="action" value="post">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">会员登录id</td>
<td><input type="text" name="msgtoid" value="<?php echo empty($touid)? '' : $touid?>" class="admin-input-sm" required>(网址uid=后面跟的id)</td>
</tr>
<tr>
<td>标题</td>
<td><input type="text" name="subject" id="subject" class="admin-input-lg" placeholder="标题少于70个字符内" required></td>
</tr>
<tr>
<td>内容</td>
<td><textarea name="message" id="message" class="admin-textarea-xl" placeholder="内容少于1000个字符" required></textarea></td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 62
- 60
src/admin/templets/member_rank.htm View File

@@ -9,66 +9,68 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">会员级别设置</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">会员级别设置</div>
<div class="card-body">
<div class="alert alert-info">注册会员级别不建议删除,否则会影响会员功能无法使用某些功能,会员级别值由低向高升级,因此添加组别时需注意此值,如果您添加会员组的级别值低于10,将自动被视为普通的注册会员</div>
<form name="form1" action="member_rank.php" method="post">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<thead>
<tr>
<td scope="col">级别名称</td>
<td scope="col">级别值(待审为0、注册会员为10)</td>
<td scope="col">默认金币</td>
<td scope="col">默认积分</td>
<td scope="col">类型</td>
<td scope="col">状态</td>
</tr>
</thead>
<tbody>
<?php
$k = 0;
while($row = $dsql->GetObject())
{
$k++;
?>
<tr>
<td>
<input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->id;?>">
<input type="text" name="name_<?php echo $k?>" value="<?php echo $row->membername;?>" id="name_<?php echo $k?>">
</td>
<td><input type="text" name="rank_<?php echo $k?>" value="<?php echo $row->rank;?>" id="rank_<?php echo $k?>"></td>
<td><input type="text" name="money_<?php echo $k?>" value="<?php echo $row->money;?>" id="money_<?php echo $k?>"></td>
<td><input type="text" name="scores_<?php echo $k?>" value="<?php echo $row->scores;?>" id="scores_<?php echo $k?>"></td>
<td><?php if ($row->id<=5) {echo "系统";} else {echo "会员";}?></td>
<td><input type="checkbox" name="check_<?php echo $k?>" id="check_<?php echo $k?>" <?php if ($row->id == 3) echo 'disabled="disabled"';?> value="1" checked> 正在使用</td>
</tr>
<?php }?>
<input type="hidden" name="idend" value="<?php echo $k;?>">
<tr>
<td><input type="text" name="name_new" id="name_new"></td>
<td><input type="text" name="rank_new" id="rank_new" value="20"></td>
<td><input type="text" name="money_new" id="money_new" value="0"></td>
<td><input type="text" name="scores_new" id="scores_new" value="100"></td>
<td></td>
<td><input type="checkbox" name="check_new" id="check_new" value="1" checked> 添加等级</td>
</tr>
<tr>
<td colspan="6" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">会员级别设置</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">会员级别设置</div>
<div class="card-body">
<div class="alert alert-info">注册会员级别不建议删除,否则会影响会员功能无法使用某些功能,会员级别值由低向高升级,因此添加组别时需注意此值,如果您添加会员组的级别值低于10,将自动被视为普通的注册会员</div>
<form name="form1" action="member_rank.php" method="post">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<thead>
<tr>
<td scope="col">级别名称</td>
<td scope="col">级别值(待审为0、注册会员为10)</td>
<td scope="col">默认金币</td>
<td scope="col">默认积分</td>
<td scope="col">类型</td>
<td scope="col">状态</td>
</tr>
</thead>
<tbody>
<?php
$k = 0;
while($row = $dsql->GetObject())
{
$k++;
?>
<tr>
<td>
<input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->id;?>">
<input type="text" name="name_<?php echo $k?>" value="<?php echo $row->membername;?>" id="name_<?php echo $k?>">
</td>
<td><input type="text" name="rank_<?php echo $k?>" value="<?php echo $row->rank;?>" id="rank_<?php echo $k?>"></td>
<td><input type="text" name="money_<?php echo $k?>" value="<?php echo $row->money;?>" id="money_<?php echo $k?>"></td>
<td><input type="text" name="scores_<?php echo $k?>" value="<?php echo $row->scores;?>" id="scores_<?php echo $k?>"></td>
<td><?php if ($row->id<=5) {echo "系统";} else {echo "会员";}?></td>
<td><input type="checkbox" name="check_<?php echo $k?>" id="check_<?php echo $k?>" <?php if ($row->id == 3) echo 'disabled="disabled"';?> value="1" checked> 正在使用</td>
</tr>
<?php }?>
<input type="hidden" name="idend" value="<?php echo $k;?>">
<tr>
<td><input type="text" name="name_new" id="name_new"></td>
<td><input type="text" name="rank_new" id="rank_new" value="20"></td>
<td><input type="text" name="money_new" id="money_new" value="0"></td>
<td><input type="text" name="scores_new" id="scores_new" value="100"></td>
<td></td>
<td><input type="checkbox" name="check_new" id="check_new" value="1" checked> 添加等级</td>
</tr>
<tr>
<td colspan="6" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 61
- 59
src/admin/templets/member_scores.htm View File

@@ -12,65 +12,67 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">积分头衔设置</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">积分头衔设置</div>
<div class="card-body">
<form action="member_scores.php" method="post">
<input name="action" type="hidden" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">积分大于</td>
<td scope="col">星星数</td>
<td scope="col">级别头衔</td>
<td scope="col">是否默认</td>
</tr>
</thead>
<tbody>
<?php foreach($Scores as $v) {?>
<tr>
<td><input type="checkbox" name="Ids-<?php echo $v['id']?>" id="Ids-<?php echo $v['id']?>" value="1"></td>
<td><input type="text" name="integral-<?php echo $v['id']?>" id="integral-<?php echo $v['id']?>" value="<?php echo $v['integral']?>" class="admin-input-sm"></td>
<td><input type="text" name="icon-<?php echo $v['id']?>" id="icon-<?php echo $v['id']?>" value="<?php echo $v['icon']?>" class="admin-input-sm"></td>
<td><input type="text" name="titles-<?php echo $v['id']?>" id="titles-<?php echo $v['id']?>" value="<?php echo $v['titles']?>" class="admin-input-sm">
</td>
<td>
<select name="isdefault-<?php echo $v['id']?>" id="isdefault-<?php echo $v['id']?>">
<option value="1" <?php if ($v['isdefault']) echo " selected='selected'";?>>是</option>
<option value="0" <?php if (!$v['isdefault']) echo " selected='selected'";?>>否</option>
</select>
</td>
</tr>
<?php }?>
<tr>
<td></td>
<td><input type="text" name="add_integral" id="add_integral" class="admin-input-sm"></td>
<td><input type="text" name="add_icon" id="add_icon" class="admin-input-sm"></td>
<td><input type="text" name="add_titles" id="add_titles" class="admin-input-sm"></td>
<td>
<select name="add_isdefault" id="add_isdefault">
<option value="1">是</option>
<option value="0">否</option>
</select>
</td>
</tr>
<tr>
<td colspan="5" align="center">
<a href="javascript:selAll();" class="btn btn-success btn-sm">全选</a>
<a href="javascript:noSelAll();" class="btn btn-success btn-sm">取消</a>
<button type="submit" class="btn btn-success btn-sm">保存</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">积分头衔设置</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">积分头衔设置</div>
<div class="card-body">
<form action="member_scores.php" method="post">
<input name="action" type="hidden" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">积分大于</td>
<td scope="col">星星数</td>
<td scope="col">级别头衔</td>
<td scope="col">是否默认</td>
</tr>
</thead>
<tbody>
<?php foreach($Scores as $v) {?>
<tr>
<td><input type="checkbox" name="Ids-<?php echo $v['id']?>" id="Ids-<?php echo $v['id']?>" value="1"></td>
<td><input type="text" name="integral-<?php echo $v['id']?>" id="integral-<?php echo $v['id']?>" value="<?php echo $v['integral']?>" class="admin-input-sm"></td>
<td><input type="text" name="icon-<?php echo $v['id']?>" id="icon-<?php echo $v['id']?>" value="<?php echo $v['icon']?>" class="admin-input-sm"></td>
<td><input type="text" name="titles-<?php echo $v['id']?>" id="titles-<?php echo $v['id']?>" value="<?php echo $v['titles']?>" class="admin-input-sm">
</td>
<td>
<select name="isdefault-<?php echo $v['id']?>" id="isdefault-<?php echo $v['id']?>">
<option value="1" <?php if ($v['isdefault']) echo " selected='selected'";?>>是</option>
<option value="0" <?php if (!$v['isdefault']) echo " selected='selected'";?>>否</option>
</select>
</td>
</tr>
<?php }?>
<tr>
<td></td>
<td><input type="text" name="add_integral" id="add_integral" class="admin-input-sm"></td>
<td><input type="text" name="add_icon" id="add_icon" class="admin-input-sm"></td>
<td><input type="text" name="add_titles" id="add_titles" class="admin-input-sm"></td>
<td>
<select name="add_isdefault" id="add_isdefault">
<option value="1">是</option>
<option value="0">否</option>
</select>
</td>
</tr>
<tr>
<td colspan="5" align="center">
<a href="javascript:selAll();" class="btn btn-success btn-sm">全选</a>
<a href="javascript:noSelAll();" class="btn btn-success btn-sm">取消</a>
<button type="submit" class="btn btn-success btn-sm">保存</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>


+ 83
- 81
src/admin/templets/member_toadmin.htm View File

@@ -12,87 +12,89 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="<?php echo $ENV_GOBACK_URL;?>">会员管理</a></li>
<li class="breadcrumb-item active">提升会员</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">提升会员</div>
<div class="card-body">
<?php if ($row['matt']==10) {echo '<div class="alert alert-info">您已经是管理员,不要提升了</div>';} else {?>
<form name="form2" action="member_toadmin.php" method="post">
<input type="hidden" name="dopost" value="toadmin">
<input type="hidden" name="userid" value="<?php echo $row['userid']?>">
<input type="hidden" name="id" value="<?php echo $id?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">账号</td>
<td><?php if ($row['face']!='') {echo "<img src='{$row['face']}' class='user-img-sm'>";};echo " <span>".$row['userid']."</span>";?></td>
</tr>
<tr>
<td>昵称</td>
<td><input type="text" name="uname" id="uname" value="<?php echo $row['uname']?>" class="admin-input-sm" required>(发布文档后显示作者的名字)</td>
</tr>
<tr>
<td>密码</td>
<td><input type="text" name="pwd" id="pwd" class="admin-input-sm">(留空则不修改,请使用数字0-9小写a-z大写A-Z符号_@!.-)</td>
</tr>
<tr>
<td>类型</td>
<td>
<select name="usertype" class="admin-input-sm">
<?php
$dsql->SetQuery("SELECT * FROM `#@__admintype` ORDER BY `rank` ASC");
$dsql->Execute("ut");
while($myrow = $dsql->GetObject("ut"))
{
if ($row['usertype']==$myrow->rank) echo "<option value='".$myrow->rank."' selected='1'>".$myrow->typename."</option>";
else echo "<option value='".$myrow->rank."'>".$myrow->typename."</option>";
}
?>
</select>
</td>
</tr>
<tr>
<td>授权栏目</td>
<td>
<select name="typeids[]" id="typeid" multiple="yes" class="admin-input-lg">
<option value="0" class='alltype'>所有栏目</option>
<?php echo $typeOptions?>
</select>
<span>(支持多选)</span>
</td>
</tr>
<tr>
<td>真实姓名</td>
<td><input type="text" name="tname" id="tname" class="admin-input-sm"></td>
</tr>
<tr>
<td>邮箱</td>
<td><input type="text" name="email" id="email" autocomplete="off" class="admin-input-sm" value="<?php echo $row['email']?>" required></td>
</tr>
<tr>
<td>验证安全码</td>
<td>
<input type="text" name="safecode" id="safecode" class="admin-input-sm">
<input type="hidden" name="randcode" value="<?php echo $randcode;?>">
<span>(安全码:<?php echo $safecode;?>)</span>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<?php }?>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="<?php echo $ENV_GOBACK_URL;?>">会员管理</a></li>
<li class="breadcrumb-item active">提升会员</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">提升会员</div>
<div class="card-body">
<?php if ($row['matt']==10) {echo '<div class="alert alert-info">您已经是管理员,不要提升了</div>';} else {?>
<form name="form2" action="member_toadmin.php" method="post">
<input type="hidden" name="dopost" value="toadmin">
<input type="hidden" name="userid" value="<?php echo $row['userid']?>">
<input type="hidden" name="id" value="<?php echo $id?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">账号</td>
<td><?php if ($row['face']!='') {echo "<img src='{$row['face']}' class='user-img-sm'>";};echo " <span>".$row['userid']."</span>";?></td>
</tr>
<tr>
<td>昵称</td>
<td><input type="text" name="uname" id="uname" value="<?php echo $row['uname']?>" class="admin-input-sm" required>(发布文档后显示作者的名字)</td>
</tr>
<tr>
<td>密码</td>
<td><input type="text" name="pwd" id="pwd" class="admin-input-sm">(留空则不修改,请使用数字0-9小写a-z大写A-Z符号_@!.-)</td>
</tr>
<tr>
<td>类型</td>
<td>
<select name="usertype" class="admin-input-sm">
<?php
$dsql->SetQuery("SELECT * FROM `#@__admintype` ORDER BY `rank` ASC");
$dsql->Execute("ut");
while($myrow = $dsql->GetObject("ut"))
{
if ($row['usertype']==$myrow->rank) echo "<option value='".$myrow->rank."' selected='1'>".$myrow->typename."</option>";
else echo "<option value='".$myrow->rank."'>".$myrow->typename."</option>";
}
?>
</select>
</td>
</tr>
<tr>
<td>授权栏目</td>
<td>
<select name="typeids[]" id="typeid" multiple="yes" class="admin-input-lg">
<option value="0" class='alltype'>所有栏目</option>
<?php echo $typeOptions?>
</select>
<span>(支持多选)</span>
</td>
</tr>
<tr>
<td>真实姓名</td>
<td><input type="text" name="tname" id="tname" class="admin-input-sm"></td>
</tr>
<tr>
<td>邮箱</td>
<td><input type="text" name="email" id="email" autocomplete="off" class="admin-input-sm" value="<?php echo $row['email']?>" required></td>
</tr>
<tr>
<td>验证安全码</td>
<td>
<input type="text" name="safecode" id="safecode" class="admin-input-sm">
<input type="hidden" name="randcode" value="<?php echo $randcode;?>">
<span>(安全码:<?php echo $safecode;?>)</span>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<?php }?>
</div>
</div>
</div>
</body>

+ 92
- 90
src/admin/templets/member_type.htm View File

@@ -9,96 +9,98 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">会员等级分类</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">会员等级分类</div>
<div class="card-body">
<form name="form1" action="member_type.php" method="post">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<thead>
<tr>
<td scope="col">产品名称</td>
<td scope="col">会员级别</td>
<td scope="col">产品价格(元)</td>
<td scope="col">会员期限(天)</td>
<td scope="col">状态</td>
</tr>
</thead>
<tbody>
<?php
$dsql->SetQuery("SELECT * FROM `#@__member_type`");
$dsql->Execute();
$k=0;
while($row = $dsql->GetObject())
{
$k++;
?>
<input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->aid?>">
<tr>
<td><input type="text" name="pname_<?php echo $k?>" value="<?php echo $row->pname?>" id="pname_<?php echo $k?>" class="admin-input-lg"></td>
<td>
<select name="rank_<?php echo $k?>" id="rank_<?php echo $k?>" class="admin-input-sm">
<?php
foreach($arcranks as $kkk=>$vvv){
if ($row->rank==$kkk) echo "<option value='{$kkk}' selected>{$vvv}</option>";
else echo "<option value='{$kkk}'>{$vvv}</option>";
}
?>
</select>
</td>
<td><input type="text" name="money_<?php echo $k?>" value="<?php echo $row->money?>" id="money_<?php echo $k?>" class="admin-input-sm"></td>
<td>
<select name="exptime_<?php echo $k?>" id="exptime_<?php echo $k?>" class="admin-input-sm">
<?php
foreach($times as $kkk=>$vvv){
if ($row->exptime==$kkk) echo "<option value='{$kkk}' selected>{$vvv}</option>";
else echo "<option value='{$kkk}'>{$vvv}</option>";
}
?>
</select>
</td>
<td><input type="checkbox" name="check_<?php echo $k?>" id="check_<?php echo $k?>" value="1" checked> 保留</td>
</tr>
<?php }?>
<input type="hidden" name="idend" value="<?php echo $k?>">
<tr>
<td><input type="text" name="pname_new" id="pname_new" class="admin-input-lg"></td>
<td>
<select name="rank_new" id="rank_new" class="admin-input-sm">
<?php
foreach($arcranks as $kkk=>$vvv){
echo "<option value='{$kkk}'>{$vvv}</option>";
}
?>
</select>
</td>
<td><input type="text" name="money_new" id="money_new" class="admin-input-sm" value="100"></td>
<td>
<select name="exptime_new" id="exptime_new" class="admin-input-sm">
<?php
foreach($times as $kkk=>$vvv){
echo "<option value='{$kkk}'>{$vvv}</option>";
}
?>
</select>
</td>
<td><input type="checkbox" name="check_new" id="check_new" value="1" checked> 新增</td>
</tr>
<tr>
<td colspan="5" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">会员等级分类</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">会员等级分类</div>
<div class="card-body">
<form name="form1" action="member_type.php" method="post">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<thead>
<tr>
<td scope="col">产品名称</td>
<td scope="col">会员级别</td>
<td scope="col">产品价格(元)</td>
<td scope="col">会员期限(天)</td>
<td scope="col">状态</td>
</tr>
</thead>
<tbody>
<?php
$dsql->SetQuery("SELECT * FROM `#@__member_type`");
$dsql->Execute();
$k=0;
while($row = $dsql->GetObject())
{
$k++;
?>
<input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->aid?>">
<tr>
<td><input type="text" name="pname_<?php echo $k?>" value="<?php echo $row->pname?>" id="pname_<?php echo $k?>" class="admin-input-lg"></td>
<td>
<select name="rank_<?php echo $k?>" id="rank_<?php echo $k?>" class="admin-input-sm">
<?php
foreach($arcranks as $kkk=>$vvv){
if ($row->rank==$kkk) echo "<option value='{$kkk}' selected>{$vvv}</option>";
else echo "<option value='{$kkk}'>{$vvv}</option>";
}
?>
</select>
</td>
<td><input type="text" name="money_<?php echo $k?>" value="<?php echo $row->money?>" id="money_<?php echo $k?>" class="admin-input-sm"></td>
<td>
<select name="exptime_<?php echo $k?>" id="exptime_<?php echo $k?>" class="admin-input-sm">
<?php
foreach($times as $kkk=>$vvv){
if ($row->exptime==$kkk) echo "<option value='{$kkk}' selected>{$vvv}</option>";
else echo "<option value='{$kkk}'>{$vvv}</option>";
}
?>
</select>
</td>
<td><input type="checkbox" name="check_<?php echo $k?>" id="check_<?php echo $k?>" value="1" checked> 保留</td>
</tr>
<?php }?>
<input type="hidden" name="idend" value="<?php echo $k?>">
<tr>
<td><input type="text" name="pname_new" id="pname_new" class="admin-input-lg"></td>
<td>
<select name="rank_new" id="rank_new" class="admin-input-sm">
<?php
foreach($arcranks as $kkk=>$vvv){
echo "<option value='{$kkk}'>{$vvv}</option>";
}
?>
</select>
</td>
<td><input type="text" name="money_new" id="money_new" class="admin-input-sm" value="100"></td>
<td>
<select name="exptime_new" id="exptime_new" class="admin-input-sm">
<?php
foreach($times as $kkk=>$vvv){
echo "<option value='{$kkk}'>{$vvv}</option>";
}
?>
</select>
</td>
<td><input type="checkbox" name="check_new" id="check_new" value="1" checked> 新增</td>
</tr>
<tr>
<td colspan="5" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 130
- 128
src/admin/templets/module_edit.htm View File

@@ -10,134 +10,136 @@
<script src="/static/web/js/webajax.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="module_main.php">模块管理</a></li>
<li class="breadcrumb-item active">模块修改</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">模块修改</div>
<div class="card-body">
<form name="form1" action="module_make.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="action" value="edit">
<input type="hidden" name="dev_id" value="<?php echo $dev_id;?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">模块名称</td>
<td><input type="text" name="modulname" id="modulname" class="admin-input-sm" value="<?php echo $name;?>" required></td>
</tr>
<tr>
<td>贡献者id</td>
<td>
<input type="text" name="dev_id2" id="dev_id2" class="admin-input-sm" value="<?php echo $dev_id;?>" disabled>
<a href="<?php echo $cfg_biz_dedebizUrl;?>/developer" target="_blank" class="btn btn-success btn-sm">如何获取贡献者id</a>
</td>
</tr>
<tr>
<td>语言编码</td>
<td><?php echo $lang;?></td>
</tr>
<tr>
<td>封装类型</td>
<td>
<label><input type="radio" name="moduletype" id="moduletype1" value="soft" <?php if ($moduletype=='soft') echo 'checked';?>> 模块</label>
<label><input type="radio" name="moduletype" id="moduletype2" value="templets" <?php if ($moduletype=='templets') echo 'checked';?>> 模板</label>
<label><input type="radio" name="moduletype" id="moduletype3" value="plus" <?php if ($moduletype=='plus') echo 'checked';?>> 小插件</label>
<label><input type="radio" name="moduletype" id="moduletype4" value="patch" <?php if ($moduletype=='patch') echo 'checked';?>> 补丁</label>
</td>
</tr>
<tr>
<td>模块识别码</td>
<td>
<input type="hidden" name="hash" value="<?php echo $hash;?>">
<input type="text" name="hashv" value="<?php echo $hash;?>" class="admin-input-lg" disabled>(不可改)
</td>
</tr>
<tr>
<td>发布时间</td>
<td><input type="text" name="mtime" id="mtime" class="admin-input-sm" value="<?php echo $time;?>"></td>
</tr>
<tr>
<td>是否涉及会员系统</td>
<td>
<label><input type="radio" name="ismember" id="ismember1" value="1" onclick="ShowHideMb('ismember0','rboxct')" <?php if ($ismember=='1') echo 'checked';?>> 涉及</label>
<label><input type="radio" name="ismember" id="ismember0" value="0" onclick="ShowHideMb('ismember0','rboxct')" <?php if ($ismember=='0') echo 'checked';?>> 不涉及</label>
<div id="rboxct" style="display:<?php echo ($ismember=='0' ? 'none' : 'block');?>">
<label>导航使用名称:<input type="text" name="indexname" id="indexname" class="admin-input-sm" value="<?php echo $indexname;?>"></label>
<label>导航使用网址:<input type="text" name="indexurl" id="indexurl" class="admin-input-sm" value="<?php echo $indexurl;?>"></label>
<span>(用相对于会员中心的网址,如:/ask)</span>
</div>
</td>
</tr>
<tr>
<td>后台管理菜单</td>
<td>
<p>(普通插件或模板、补丁类不要填写,模块菜单格式请参考inc/inc_menu_module.php)</p>
<textarea name="menustring" id="menustring" class="admin-textarea-xl"><?php echo $menustring;?></textarea>
</td>
</tr>
<tr>
<td>使用说明文件</td>
<td>
<p>(使用协议或说明:如果需要带网页格式,请编译后点击修改时使用网页)</p>
<textarea name="readmetxt" id="readmetxt" class="admin-textarea-xl"><?php echo $readmetxt;?></textarea>
</td>
</tr>
<tr>
<td>程序安装</td>
<td>
<label><input type="checkbox" name="autosetup" id="autosetup" value="1" onclick="ShowHideField('autosetup','autosetupinput','autosetupct')" <?php if (isset($autosetup) && $autosetup==1) echo 'checked';?>> 自动生成</label><br>
<div style="display:<?php if (!isset($autosetup) || $autosetup==0) echo 'block'; else echo 'none';?>" id="autosetupinput"><input type="file" name="setup" id="setup" class="admin-input-lg"></div>
<div style="display:<?php if (isset($autosetup) && $autosetup==1) echo 'block'; else echo 'none';?>" id="autosetupct">
<p>(由系统自动处理安装,请使用MySQL4.0版本格式的SQL语句:MySQL4.1/5.x版本请把创建表语句 ENGINE=MyISAM DEFAULT CHARSET=*,改为TYPE=MyISAM,SQL语句允许换行,但必须用;表示一条SQL语句结束,如果SQL中包含有模块网址的,用 _ROOTURL_ 表示,如:_ROOTURL_/ask/index.php)</p>
<textarea name="setupsql40" id="setupsql40" class="admin-textarea-xl"><?php echo $setupsql40;?></textarea>
</div>
</td>
</tr>
<tr>
<td>删除程序</td>
<td>
<label><input type="checkbox" name="autodel" id="autodel" value="1" onclick="ShowHideField('autodel','autodelinput','autodelct')" <?php if (isset($autodel) && $autodel==1) echo 'checked';?>> 自动生成</label>
<div style="display:<?php if (!isset($autodel) || $autodel==0) echo 'block'; else echo 'none';?>" id="autodelinput"><input type="file" name="uninstall" id="uninstall" class="admin-input-lg"></div>
<div style="display:<?php if (isset($autodel) && $autodel==1) echo 'block'; else echo 'none';?>" id="autodelct">
<p>(由系统自动处理卸载,卸载时执行SQL允许换行,但必须用;表示一条SQL语句结束)</p>
<textarea name="delsql" id="delsql" class="admin-textarea-xl"><?php echo $delsql;?></textarea>
</div>
</td>
</tr>
<tr>
<td>模块文件选项</td>
<td>
<label><input type="radio" name="rebuild" value="yes" checked> 重新编译所有文件</label>
<label><input type="radio" name="rebuild" value="no"> 不对[文件列表]内文件重编译</label>
</td>
</tr>
<tr>
<td>文件列表</td>
<td>
<p>(每行指定一个文件或目录,路径为相对于本目录,本目录的文件则直接用文件名即可,对于整个打包的目录,不需要指定子目录里的文件,如:如果已经指定了/book则不需要再指定目录里的/book/index.php 等文件或目录,系统会自动索引整个目录,对于不需要索引整个目录的,请不要指定这个目录,否则会把不必要的文件也放进模块中)</p>
<textarea name="filelist" id="filelist" class="admin-textarea-xl"><?php echo $filelist;?></textarea>
</td>
</tr>
<tr>
<td>贡献者私钥</td>
<td>
<p>(贡献者认证后获取的私钥)</p>
<textarea name="priv" id="priv" class="admin-textarea-xl"></textarea>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="module_main.php">模块管理</a></li>
<li class="breadcrumb-item active">模块修改</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">模块修改</div>
<div class="card-body">
<form name="form1" action="module_make.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="action" value="edit">
<input type="hidden" name="dev_id" value="<?php echo $dev_id;?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">模块名称</td>
<td><input type="text" name="modulname" id="modulname" class="admin-input-sm" value="<?php echo $name;?>" required></td>
</tr>
<tr>
<td>贡献者id</td>
<td>
<input type="text" name="dev_id2" id="dev_id2" class="admin-input-sm" value="<?php echo $dev_id;?>" disabled>
<a href="<?php echo $cfg_biz_dedebizUrl;?>/developer" target="_blank" class="btn btn-success btn-sm">如何获取贡献者id</a>
</td>
</tr>
<tr>
<td>语言编码</td>
<td><?php echo $lang;?></td>
</tr>
<tr>
<td>封装类型</td>
<td>
<label><input type="radio" name="moduletype" id="moduletype1" value="soft" <?php if ($moduletype=='soft') echo 'checked';?>> 模块</label>
<label><input type="radio" name="moduletype" id="moduletype2" value="templets" <?php if ($moduletype=='templets') echo 'checked';?>> 模板</label>
<label><input type="radio" name="moduletype" id="moduletype3" value="plus" <?php if ($moduletype=='plus') echo 'checked';?>> 小插件</label>
<label><input type="radio" name="moduletype" id="moduletype4" value="patch" <?php if ($moduletype=='patch') echo 'checked';?>> 补丁</label>
</td>
</tr>
<tr>
<td>模块识别码</td>
<td>
<input type="hidden" name="hash" value="<?php echo $hash;?>">
<input type="text" name="hashv" value="<?php echo $hash;?>" class="admin-input-lg" disabled>(不可改)
</td>
</tr>
<tr>
<td>发布时间</td>
<td><input type="text" name="mtime" id="mtime" class="admin-input-sm" value="<?php echo $time;?>"></td>
</tr>
<tr>
<td>是否涉及会员系统</td>
<td>
<label><input type="radio" name="ismember" id="ismember1" value="1" onclick="ShowHideMb('ismember0','rboxct')" <?php if ($ismember=='1') echo 'checked';?>> 涉及</label>
<label><input type="radio" name="ismember" id="ismember0" value="0" onclick="ShowHideMb('ismember0','rboxct')" <?php if ($ismember=='0') echo 'checked';?>> 不涉及</label>
<div id="rboxct" style="display:<?php echo ($ismember=='0' ? 'none' : 'block');?>">
<label>导航使用名称:<input type="text" name="indexname" id="indexname" class="admin-input-sm" value="<?php echo $indexname;?>"></label>
<label>导航使用网址:<input type="text" name="indexurl" id="indexurl" class="admin-input-sm" value="<?php echo $indexurl;?>"></label>
<span>(用相对于会员中心的网址,如:/ask)</span>
</div>
</td>
</tr>
<tr>
<td>后台管理菜单</td>
<td>
<p>(普通插件或模板、补丁类不要填写,模块菜单格式请参考inc/inc_menu_module.php)</p>
<textarea name="menustring" id="menustring" class="admin-textarea-xl"><?php echo $menustring;?></textarea>
</td>
</tr>
<tr>
<td>使用说明文件</td>
<td>
<p>(使用协议或说明:如果需要带网页格式,请编译后点击修改时使用网页)</p>
<textarea name="readmetxt" id="readmetxt" class="admin-textarea-xl"><?php echo $readmetxt;?></textarea>
</td>
</tr>
<tr>
<td>程序安装</td>
<td>
<label><input type="checkbox" name="autosetup" id="autosetup" value="1" onclick="ShowHideField('autosetup','autosetupinput','autosetupct')" <?php if (isset($autosetup) && $autosetup==1) echo 'checked';?>> 自动生成</label><br>
<div style="display:<?php if (!isset($autosetup) || $autosetup==0) echo 'block'; else echo 'none';?>" id="autosetupinput"><input type="file" name="setup" id="setup" class="admin-input-lg"></div>
<div style="display:<?php if (isset($autosetup) && $autosetup==1) echo 'block'; else echo 'none';?>" id="autosetupct">
<p>(由系统自动处理安装,请使用MySQL4.0版本格式的SQL语句:MySQL4.1/5.x版本请把创建表语句 ENGINE=MyISAM DEFAULT CHARSET=*,改为TYPE=MyISAM,SQL语句允许换行,但必须用;表示一条SQL语句结束,如果SQL中包含有模块网址的,用 _ROOTURL_ 表示,如:_ROOTURL_/ask/index.php)</p>
<textarea name="setupsql40" id="setupsql40" class="admin-textarea-xl"><?php echo $setupsql40;?></textarea>
</div>
</td>
</tr>
<tr>
<td>删除程序</td>
<td>
<label><input type="checkbox" name="autodel" id="autodel" value="1" onclick="ShowHideField('autodel','autodelinput','autodelct')" <?php if (isset($autodel) && $autodel==1) echo 'checked';?>> 自动生成</label>
<div style="display:<?php if (!isset($autodel) || $autodel==0) echo 'block'; else echo 'none';?>" id="autodelinput"><input type="file" name="uninstall" id="uninstall" class="admin-input-lg"></div>
<div style="display:<?php if (isset($autodel) && $autodel==1) echo 'block'; else echo 'none';?>" id="autodelct">
<p>(由系统自动处理卸载,卸载时执行SQL允许换行,但必须用;表示一条SQL语句结束)</p>
<textarea name="delsql" id="delsql" class="admin-textarea-xl"><?php echo $delsql;?></textarea>
</div>
</td>
</tr>
<tr>
<td>模块文件选项</td>
<td>
<label><input type="radio" name="rebuild" value="yes" checked> 重新编译所有文件</label>
<label><input type="radio" name="rebuild" value="no"> 不对[文件列表]内文件重编译</label>
</td>
</tr>
<tr>
<td>文件列表</td>
<td>
<p>(每行指定一个文件或目录,路径为相对于本目录,本目录的文件则直接用文件名即可,对于整个打包的目录,不需要指定子目录里的文件,如:如果已经指定了/book则不需要再指定目录里的/book/index.php 等文件或目录,系统会自动索引整个目录,对于不需要索引整个目录的,请不要指定这个目录,否则会把不必要的文件也放进模块中)</p>
<textarea name="filelist" id="filelist" class="admin-textarea-xl"><?php echo $filelist;?></textarea>
</td>
</tr>
<tr>
<td>贡献者私钥</td>
<td>
<p>(贡献者认证后获取的私钥)</p>
<textarea name="priv" id="priv" class="admin-textarea-xl"></textarea>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>


+ 70
- 68
src/admin/templets/module_main.htm View File

@@ -20,77 +20,79 @@
</script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">模块管理</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<a class="btn btn-success btn-sm" href="module_main.php">全部</a>
<a class="btn btn-success btn-sm" href="module_main.php?moduletype=soft">模块</a>
<a class="btn btn-success btn-sm" href="module_main.php?moduletype=templets">模板</a>
<a class="btn btn-success btn-sm" href="module_main.php?moduletype=plus">小插件</a>
<a class="btn btn-success btn-sm" href="module_main.php?moduletype=patch">补丁</a>
<a class="btn btn-success btn-sm" href="module_upload.php">上传</a>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">模块管理</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<a class="btn btn-success btn-sm" href="module_main.php">全部</a>
<a class="btn btn-success btn-sm" href="module_main.php?moduletype=soft">模块</a>
<a class="btn btn-success btn-sm" href="module_main.php?moduletype=templets">模板</a>
<a class="btn btn-success btn-sm" href="module_main.php?moduletype=plus">小插件</a>
<a class="btn btn-success btn-sm" href="module_main.php?moduletype=patch">补丁</a>
<a class="btn btn-success btn-sm" href="module_upload.php">上传</a>
</div>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">模块管理</div>
<div class="card-body">
<form name="form1" action="plus_add.php" method="post">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<thead>
<tr>
<td scope="col">模块名称</td>
<td scope="col">发布时间</td>
<td scope="col">编码</td>
<td scope="col">类型</td>
<td scope="col">模块状态</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
<?php if (count($modules) > 0) foreach($modules as $k => $v) {?>
<tr>
<td><?php echo $v['name'];?></td>
<td><?php echo $v['time'];?></td>
<td>
<?php
if ($cfg_soft_lang != $v['lang']) echo $v['lang'];
else echo $v['lang'];
?>
</td>
<td><?php echo $types[$v['moduletype']];?></td>
<td>
<?php
$file = DEDEDATA."/module/{$v['hash']}.xml";
if (file_exists($file)) {
if (file_exists(DEDEDATA."/module/{$v['hash']}-readme.php")){
echo "<span class='btn btn-success btn-sm'>已安装</span><a href='module_main.php?action=uninstall&hash={$v['hash']}' class='btn btn-outline-danger btn-sm'>卸载</a>";
<div class="card shadow-sm">
<div class="card-header">模块管理</div>
<div class="card-body">
<form name="form1" action="plus_add.php" method="post">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<thead>
<tr>
<td scope="col">模块名称</td>
<td scope="col">发布时间</td>
<td scope="col">编码</td>
<td scope="col">类型</td>
<td scope="col">模块状态</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
<?php if (count($modules) > 0) foreach($modules as $k => $v) {?>
<tr>
<td><?php echo $v['name'];?></td>
<td><?php echo $v['time'];?></td>
<td>
<?php
if ($cfg_soft_lang != $v['lang']) echo $v['lang'];
else echo $v['lang'];
?>
</td>
<td><?php echo $types[$v['moduletype']];?></td>
<td>
<?php
$file = DEDEDATA."/module/{$v['hash']}.xml";
if (file_exists($file)) {
if (file_exists(DEDEDATA."/module/{$v['hash']}-readme.php")){
echo "<span class='btn btn-success btn-sm'>已安装</span><a href='module_main.php?action=uninstall&hash={$v['hash']}' class='btn btn-outline-danger btn-sm'>卸载</a>";
} else {
echo "<span class='btn btn-warning btn-sm'>未安装</span><a href='module_main.php?action=setup&hash={$v['hash']}' class='btn btn-outline-success btn-sm'>安装</a>";
}
} else {
echo "<span class='btn btn-warning btn-sm'>未安装</span><a href='module_main.php?action=setup&hash={$v['hash']}' class='btn btn-outline-success btn-sm'>安装</a>";
echo "<div id=\"status_{$v['hash']}\"><a href=\"javascript:getmodule('download','{$v['hash']}')\" class=\"btn btn-outline-warning btn-sm\">下载</a></div>";
}
} else {
echo "<div id=\"status_{$v['hash']}\"><a href=\"javascript:getmodule('download','{$v['hash']}')\" class=\"btn btn-outline-warning btn-sm\">下载</a></div>";
}
?>
</td>
<td>
<div id="manager_<?php echo $v['hash'];?>" <?php if (!file_exists(DEDEDATA."/module/{$v['hash']}.xml")) echo "style='display:none'"?>>
<a class="btn btn-light btn-sm" href="module_main.php?action=view_developoer&hash=<?php echo $v['hash'];?>"><i class="fa fa-user-circle" title="贡献者"></i></a>
<a class="btn btn-light btn-sm" href="module_main.php?action=view&hash=<?php echo $v['hash'];?>"><i class="fa fa-eye" title="查看"></i></a>
<a class="btn btn-light btn-sm" href="module_main.php?action=edit&hash=<?php echo $v['hash'];?>"><i class="fa fa-pencil-square" title="修改"></i></a>
<a class="btn btn-danger btn-sm" href="module_main.php?action=del&hash=<?php echo $v['hash'];?>"><i class="fa fa-trash" title="删除"></i></a>
</div>
</td>
</tr>
<?php }?>
</tbody>
</table>
</div>
</form>
?>
</td>
<td>
<div id="manager_<?php echo $v['hash'];?>" <?php if (!file_exists(DEDEDATA."/module/{$v['hash']}.xml")) echo "style='display:none'"?>>
<a class="btn btn-light btn-sm" href="module_main.php?action=view_developoer&hash=<?php echo $v['hash'];?>"><i class="fa fa-user-circle" title="贡献者"></i></a>
<a class="btn btn-light btn-sm" href="module_main.php?action=view&hash=<?php echo $v['hash'];?>"><i class="fa fa-eye" title="查看"></i></a>
<a class="btn btn-light btn-sm" href="module_main.php?action=edit&hash=<?php echo $v['hash'];?>"><i class="fa fa-pencil-square" title="修改"></i></a>
<a class="btn btn-danger btn-sm" href="module_main.php?action=del&hash=<?php echo $v['hash'];?>"><i class="fa fa-trash" title="删除"></i></a>
</div>
</td>
</tr>
<?php }?>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 120
- 118
src/admin/templets/module_make.htm View File

@@ -10,124 +10,126 @@
<script src="/static/web/js/webajax.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="module_main.php">模块管理</a></li>
<li class="breadcrumb-item active">模块打包</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">模块打包</div>
<div class="card-body">
<div class="alert alert-info">开发模块插件,请先了解<a href="<?php echo $cfg_biz_dedebizUrl;?>/developer" target="_blank">《DedeBIZ贡献者》</a></div>
<form name="form1" action="module_make.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="action" value="make">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">模块名称</td>
<td><input type="text" name="modulname" id="modulname" class="admin-input-sm" required></td>
</tr>
<tr>
<td>语言编码</td>
<td>utf-8(不同编码模块可以使用,但不能在此打包)<input type="hidden" name="lang" value="utf-8"></td>
</tr>
<tr>
<td>封装类型</td>
<td>
<label><input type="radio" name="moduletype" id="moduletype1" value="soft" checked> 模块</label>
<label><input type="radio" name="moduletype" id="moduletype2" value="templets"> 模板</label>
<label><input type="radio" name="moduletype" id="moduletype3" value="plus"> 小插件</label>
<label><input type="radio" name="moduletype" id="moduletype4" value="patch"> 补丁</label>
</td>
</tr>
<tr>
<td>贡献者id</td>
<td>
<input type="text" name="dev_id" id="dev_id" class="admin-input-sm">
<a href="<?php echo $cfg_biz_dedebizUrl;?>/developer" target="_blank" class="btn btn-success btn-sm">如何获取贡献者id</a>
</td>
</tr>
<tr>
<td>发布时间</td>
<td><input type="text" name="mtime" id="mtime" class="admin-input-sm" value="<?php echo GetDateMk(time());?>"></td>
</tr>
<tr>
<td>是否涉及会员系统</td>
<td>
<label><input type="radio" name="ismember" id="ismember1" value="1" onclick="ShowHideMb('ismember0','rboxct')"> 涉及</label>
<label><input type="radio" name="ismember" id="ismember0" value="0" onclick="ShowHideMb('ismember0','rboxct')" checked> 不涉及</label>
<div id="rboxct" style="display:none">
<label>导航使用名称:<input type="text" name="indexname" id="indexname" class="admin-input-sm"></label><br>
<label>导航使用网址:<input type="text" name="indexurl" id="indexurl" class="admin-input-sm"></label>
<span>(用相对于会员中心的网址,如:/ask)</span>
</div>
</td>
</tr>
<tr>
<td>后台管理菜单</td>
<td>
<p>(普通插件或模板、补丁类不要填写,模块菜单格式请参考inc/inc_menu_module.php)</p>
<textarea name="menustring" id="menustring" class="admin-textarea-xl"></textarea>
</td>
</tr>
<tr>
<td>使用说明文件</td>
<td>
<label><input type="checkbox" name="autoreadme" value="1" id="autoreadme" onclick="ShowHideField('autoreadme','autoreadmeinput','autoreadmect')"> 直接填写</label><br>
<div style="display:block" id="autoreadmeinput"><input type="file" name="readme" id="readme" class="admin-input-lg"></div>
<div style="display:none" id="autoreadmect">
<p>(填写使用协议或说明:如果需要带网页格式,请编译后点击修改时使用网页)</p>
<textarea name="readmetxt" id="readmetxt" class="admin-textarea-xl"></textarea>
</div>
</td>
</tr>
<tr>
<td>程序安装</td>
<td>
<label><input type="checkbox" name="autosetup" value="1" id="autosetup" onclick="ShowHideField('autosetup','autosetupinput','autosetupct')"> 自动生成</label>
<div style="display:block" id="autosetupinput"><input type="file" name="setup" id="setup" class="admin-input-lg"></div>
<div style="display:none" id="autosetupct">
<p>(由系统自动处理安装,请使用MySQL4.0版本格式的SQL语句:MySQL4.1/5.x版本请把创建表语句 ENGINE=MyISAM DEFAULT CHARSET=*,改为TYPE=MyISAM,SQL语句允许换行,但必须用;表示一条SQL语句结束,如果SQL中包含有模块网址的,用 _ROOTURL_ 表示,如:_ROOTURL_/ask/index.php)</p>
<textarea name="setupsql40" id="setupsql40" class="admin-textarea-xl"></textarea>
</div>
</td>
</tr>
<tr>
<td>删除程序</td>
<td>
<label><input type="checkbox" name="autodel" value="1" id="autodel" onclick="ShowHideField('autodel','autodelinput','autodelct')"> 自动生成</label>
<div style="display:block" id="autodelinput"><input type="file" name="uninstall" id="uninstall" class="admin-input-lg"></div>
<div style="display:none" id="autodelct">
<p>(由系统自动处理卸载,卸载时执行SQL允许换行,但必须用;表示一条SQL语句结束)</p>
<textarea name="delsql" id="delsql" class="admin-textarea-xl"></textarea>
</div>
</td>
</tr>
<tr>
<td>文件列表</td>
<td>
<p>(每行指定一个文件或目录,路径为相对于本目录,本目录的文件则直接用文件名即可,对于整个打包的目录,不需要指定子目录里的文件,如:如果已经指定了/book则不需要再指定目录里的/book/index.php 等文件或目录,系统会自动索引整个目录,对于不需要索引整个目录的,请不要指定这个目录,否则会把不必要的文件也放进模块中)</p>
<textarea name="filelist" id="filelist" class="admin-textarea-xl"></textarea>
</td>
</tr>
<tr>
<td>贡献者私钥</td>
<td>
<p>(贡献者认证后获取的私钥)</p>
<textarea name="priv" id="priv" class="admin-textarea-xl"></textarea>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="module_main.php">模块管理</a></li>
<li class="breadcrumb-item active">模块打包</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">模块打包</div>
<div class="card-body">
<div class="alert alert-info">开发模块插件,请先了解<a href="<?php echo $cfg_biz_dedebizUrl;?>/developer" target="_blank">《DedeBIZ贡献者》</a></div>
<form name="form1" action="module_make.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="action" value="make">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">模块名称</td>
<td><input type="text" name="modulname" id="modulname" class="admin-input-sm" required></td>
</tr>
<tr>
<td>语言编码</td>
<td>utf-8(不同编码模块可以使用,但不能在此打包)<input type="hidden" name="lang" value="utf-8"></td>
</tr>
<tr>
<td>封装类型</td>
<td>
<label><input type="radio" name="moduletype" id="moduletype1" value="soft" checked> 模块</label>
<label><input type="radio" name="moduletype" id="moduletype2" value="templets"> 模板</label>
<label><input type="radio" name="moduletype" id="moduletype3" value="plus"> 小插件</label>
<label><input type="radio" name="moduletype" id="moduletype4" value="patch"> 补丁</label>
</td>
</tr>
<tr>
<td>贡献者id</td>
<td>
<input type="text" name="dev_id" id="dev_id" class="admin-input-sm">
<a href="<?php echo $cfg_biz_dedebizUrl;?>/developer" target="_blank" class="btn btn-success btn-sm">如何获取贡献者id</a>
</td>
</tr>
<tr>
<td>发布时间</td>
<td><input type="text" name="mtime" id="mtime" class="admin-input-sm" value="<?php echo GetDateMk(time());?>"></td>
</tr>
<tr>
<td>是否涉及会员系统</td>
<td>
<label><input type="radio" name="ismember" id="ismember1" value="1" onclick="ShowHideMb('ismember0','rboxct')"> 涉及</label>
<label><input type="radio" name="ismember" id="ismember0" value="0" onclick="ShowHideMb('ismember0','rboxct')" checked> 不涉及</label>
<div id="rboxct" style="display:none">
<label>导航使用名称:<input type="text" name="indexname" id="indexname" class="admin-input-sm"></label><br>
<label>导航使用网址:<input type="text" name="indexurl" id="indexurl" class="admin-input-sm"></label>
<span>(用相对于会员中心的网址,如:/ask)</span>
</div>
</td>
</tr>
<tr>
<td>后台管理菜单</td>
<td>
<p>(普通插件或模板、补丁类不要填写,模块菜单格式请参考inc/inc_menu_module.php)</p>
<textarea name="menustring" id="menustring" class="admin-textarea-xl"></textarea>
</td>
</tr>
<tr>
<td>使用说明文件</td>
<td>
<label><input type="checkbox" name="autoreadme" value="1" id="autoreadme" onclick="ShowHideField('autoreadme','autoreadmeinput','autoreadmect')"> 直接填写</label><br>
<div style="display:block" id="autoreadmeinput"><input type="file" name="readme" id="readme" class="admin-input-lg"></div>
<div style="display:none" id="autoreadmect">
<p>(填写使用协议或说明:如果需要带网页格式,请编译后点击修改时使用网页)</p>
<textarea name="readmetxt" id="readmetxt" class="admin-textarea-xl"></textarea>
</div>
</td>
</tr>
<tr>
<td>程序安装</td>
<td>
<label><input type="checkbox" name="autosetup" value="1" id="autosetup" onclick="ShowHideField('autosetup','autosetupinput','autosetupct')"> 自动生成</label>
<div style="display:block" id="autosetupinput"><input type="file" name="setup" id="setup" class="admin-input-lg"></div>
<div style="display:none" id="autosetupct">
<p>(由系统自动处理安装,请使用MySQL4.0版本格式的SQL语句:MySQL4.1/5.x版本请把创建表语句 ENGINE=MyISAM DEFAULT CHARSET=*,改为TYPE=MyISAM,SQL语句允许换行,但必须用;表示一条SQL语句结束,如果SQL中包含有模块网址的,用 _ROOTURL_ 表示,如:_ROOTURL_/ask/index.php)</p>
<textarea name="setupsql40" id="setupsql40" class="admin-textarea-xl"></textarea>
</div>
</td>
</tr>
<tr>
<td>删除程序</td>
<td>
<label><input type="checkbox" name="autodel" value="1" id="autodel" onclick="ShowHideField('autodel','autodelinput','autodelct')"> 自动生成</label>
<div style="display:block" id="autodelinput"><input type="file" name="uninstall" id="uninstall" class="admin-input-lg"></div>
<div style="display:none" id="autodelct">
<p>(由系统自动处理卸载,卸载时执行SQL允许换行,但必须用;表示一条SQL语句结束)</p>
<textarea name="delsql" id="delsql" class="admin-textarea-xl"></textarea>
</div>
</td>
</tr>
<tr>
<td>文件列表</td>
<td>
<p>(每行指定一个文件或目录,路径为相对于本目录,本目录的文件则直接用文件名即可,对于整个打包的目录,不需要指定子目录里的文件,如:如果已经指定了/book则不需要再指定目录里的/book/index.php 等文件或目录,系统会自动索引整个目录,对于不需要索引整个目录的,请不要指定这个目录,否则会把不必要的文件也放进模块中)</p>
<textarea name="filelist" id="filelist" class="admin-textarea-xl"></textarea>
</td>
</tr>
<tr>
<td>贡献者私钥</td>
<td>
<p>(贡献者认证后获取的私钥)</p>
<textarea name="priv" id="priv" class="admin-textarea-xl"></textarea>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>


+ 150
- 148
src/admin/templets/mychannel_add.htm View File

@@ -9,159 +9,161 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="mychannel_main.php">文档模型管理</a></li>
<li class="breadcrumb-item active">新增文档模型</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">新增文档模型</div>
<div class="card-body">
<form name="form1" action="mychannel_add.php" method="post">
<input type="hidden" name="action" value="add">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">模型性质</td>
<td>
<label><input type="radio" name="issystem" id="is1" value="0" onclick="PublicDefault();" checked> 自动模型</label>
<label><input type="radio" name="issystem" id="is2" value="1" onclick="PublicDefault();"> 系统模型</label>
<label><input type="radio" name="issystem" id="is3" value="-1" onclick="PublicDefault();"> 独立模型</label>
<span>(系统模型禁止删除,独立模型具有单独主表,自动创建字段aid、栏目id、文档标题等,文档必须点击栏目进入列表管理)</span>
</td>
</tr>
<tr>
<td>模型id</td>
<td><input type="text" name="id" id="id" class="admin-input-sm" value="<?php echo $newid;?>">(创建后不可修改,具有唯一性)</td>
</tr>
<tr>
<td>模型标识</td>
<td><input type="text" name="nid" id="nid" class="admin-input-sm" value="model<?php echo $newid;?>">(建议由英文、数字或下划线组成,示例article_名字标识.htm,列表和封面模板类推)</td>
</tr>
<tr>
<td>模型名称</td>
<td><input type="text" name="typename" id="typename" class="admin-input-sm" value="模型<?php echo $newid;?>">(前后台显示模型的名称)</td>
</tr>
<tr>
<td>附加表</td>
<td>
<input type="text" name="addtable" id="addtable" class="admin-input-sm" value="<?php echo $cfg_dbprefix,'new',$newid;?>">
<label><input type="checkbox" name="isdel" id="isdel" value="1"> 删除已有表</label>
<span>(#@__表示数据表前缀,文档模型主表外其它数据存放附加表)</span>
</td>
</tr>
<tr>
<td>是否支持会员投稿</td>
<td>
<label><input type="radio" name="issend" value="0" checked> 不支持</label>
<label><input type="radio" name="issend" value="1"> 支持</label>
</td>
</tr>
<tr>
<td>会员投稿级别</td>
<td>
<select name="sendrank" id="sendrank" class="admin-input-sm">
<option value="0">游客</option>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="mychannel_main.php">文档模型管理</a></li>
<li class="breadcrumb-item active">新增文档模型</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">新增文档模型</div>
<div class="card-body">
<form name="form1" action="mychannel_add.php" method="post">
<input type="hidden" name="action" value="add">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">模型性质</td>
<td>
<label><input type="radio" name="issystem" id="is1" value="0" onclick="PublicDefault();" checked> 自动模型</label>
<label><input type="radio" name="issystem" id="is2" value="1" onclick="PublicDefault();"> 系统模型</label>
<label><input type="radio" name="issystem" id="is3" value="-1" onclick="PublicDefault();"> 独立模型</label>
<span>(系统模型禁止删除,独立模型具有单独主表,自动创建字段aid、栏目id、文档标题等,文档必须点击栏目进入列表管理)</span>
</td>
</tr>
<tr>
<td>模型id</td>
<td><input type="text" name="id" id="id" class="admin-input-sm" value="<?php echo $newid;?>">(创建后不可修改,具有唯一性)</td>
</tr>
<tr>
<td>模型标识</td>
<td><input type="text" name="nid" id="nid" class="admin-input-sm" value="model<?php echo $newid;?>">(建议由英文、数字或下划线组成,示例article_名字标识.htm,列表和封面模板类推)</td>
</tr>
<tr>
<td>模型名称</td>
<td><input type="text" name="typename" id="typename" class="admin-input-sm" value="模型<?php echo $newid;?>">(前后台显示模型的名称)</td>
</tr>
<tr>
<td>附加表</td>
<td>
<input type="text" name="addtable" id="addtable" class="admin-input-sm" value="<?php echo $cfg_dbprefix,'new',$newid;?>">
<label><input type="checkbox" name="isdel" id="isdel" value="1"> 删除已有表</label>
<span>(#@__表示数据表前缀,文档模型主表外其它数据存放附加表)</span>
</td>
</tr>
<tr>
<td>是否支持会员投稿</td>
<td>
<label><input type="radio" name="issend" value="0" checked> 不支持</label>
<label><input type="radio" name="issend" value="1"> 支持</label>
</td>
</tr>
<tr>
<td>会员投稿级别</td>
<td>
<select name="sendrank" id="sendrank" class="admin-input-sm">
<option value="0">游客</option>
<?php
$urank = $cuserLogin->getUserRank();
$dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank' And `rank` >= 10");
$dsql->Execute();
while($row2 = $dsql->GetObject())
{
echo "<option value='".$row2->rank."'>".$row2->membername."</option>";
}
?>
</select>
<span>(为了系统安全,游客投稿已禁止,开启游客投稿功能,到会员发布文件删除禁止游客操作)</span>
</td>
</tr>
<tr>
<td>会员投稿组</td>
<td>
<?php
$urank = $cuserLogin->getUserRank();
$dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank' And `rank` >= 10");
$dsql->SetQuery("SELECT * FROM `#@__member_model`");
$dsql->Execute();
while($row2 = $dsql->GetObject())
while($row3 = $dsql->GetObject())
{
echo "<option value='".$row2->rank."'>".$row2->membername."</option>";
echo "<label><input type='radio' name='usertype' value=".$row3->name."> ".$row3->name."</label>";
}
?>
</select>
<span>(为了系统安全,游客投稿已禁止,开启游客投稿功能,到会员发布文件删除禁止游客操作)</span>
</td>
</tr>
<tr>
<td>会员投稿组</td>
<td>
<?php
$dsql->SetQuery("SELECT * FROM `#@__member_model`");
$dsql->Execute();
while($row3 = $dsql->GetObject())
{
echo "<label><input type='radio' name='usertype' value=".$row3->name."> ".$row3->name."</label>";
}
?>
<label><input type="radio" name="usertype" checked> 不限</label>
</td>
</tr>
<tr>
<td>会员投稿默认状态</td>
<td>
<label><input type="radio" name="arcsta" value="-1" checked> 待审核</label>
<label><input type="radio" name="arcsta" value="0"> 已审核(更新静态页)</label>
<label><input type="radio" name="arcsta" value="1"> 已审核(使用动态页)</label>
</td>
</tr>
<tr>
<td>投稿标题使用名称</td>
<td><input type="text" name="titlename" id="titlename" class="admin-input-sm" value="标题"></td>
</tr>
<tr>
<td>投稿是否使用摘要</td>
<td>
<label><input type="radio" name="needdes" value="1" checked> 使用</label>
<label><input type="radio" name="needdes" value="0"> 不使用</label>
</td>
</tr>
<tr>
<td>投稿是否使用缩图</td>
<td>
<label><input type="radio" name="needpic" value="1" checked> 使用</label>
<label><input type="radio" name="needpic" value="0"> 不使用</label>
</td>
</tr>
<tr>
<td>默认栏目id</td>
<td><input type="text" name="dfcid" id="dfcid" class="admin-input-sm" value="0">(与投稿唯一性结合可以用自定义模型)</td>
</tr>
<tr>
<td>投稿具有唯一性</td>
<td>
<label><input type="radio" name="onlyone" value="1"> 是</label>
<label><input type="radio" name="onlyone" value="0" checked> 不是</label>
<span>(与投稿唯一会员只能在该模型对应栏目中发布文档,其作用相当于自定义表单)</span>
</td>
</tr>
<tr>
<td>文档发布程序</td>
<td><input type="text" name="addcon" id="addcon" class="admin-input-sm" value="archives_add.php"></td>
</tr>
<tr>
<td>文档修改程序</td>
<td><input type="text" name="editcon" id="editcon" class="admin-input-sm" value="archives_edit.php"></td>
</tr>
<tr>
<td>文档管理程序</td>
<td><input type="text" name="mancon" id="mancon" class="admin-input-sm" value="content_list.php"></td>
</tr>
<tr>
<td>前台会员发布程序</td>
<td><input type="text" name="useraddcon" id="useraddcon" class="admin-input-sm" value="archives_add.php"></td>
</tr>
<tr>
<td>前台会员修改程序</td>
<td><input type="text" name="usereditcon" id="usereditcon" class="admin-input-sm" value="archives_edit.php"></td>
</tr>
<tr>
<td>前台会员管理程序</td>
<td><input type="text" name="usermancon" id="usermancon" class="admin-input-sm" value="content_list.php"></td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<label><input type="radio" name="usertype" checked> 不限</label>
</td>
</tr>
<tr>
<td>会员投稿默认状态</td>
<td>
<label><input type="radio" name="arcsta" value="-1" checked> 待审核</label>
<label><input type="radio" name="arcsta" value="0"> 已审核(更新静态页)</label>
<label><input type="radio" name="arcsta" value="1"> 已审核(使用动态页)</label>
</td>
</tr>
<tr>
<td>投稿标题使用名称</td>
<td><input type="text" name="titlename" id="titlename" class="admin-input-sm" value="标题"></td>
</tr>
<tr>
<td>投稿是否使用摘要</td>
<td>
<label><input type="radio" name="needdes" value="1" checked> 使用</label>
<label><input type="radio" name="needdes" value="0"> 不使用</label>
</td>
</tr>
<tr>
<td>投稿是否使用缩图</td>
<td>
<label><input type="radio" name="needpic" value="1" checked> 使用</label>
<label><input type="radio" name="needpic" value="0"> 不使用</label>
</td>
</tr>
<tr>
<td>默认栏目id</td>
<td><input type="text" name="dfcid" id="dfcid" class="admin-input-sm" value="0">(与投稿唯一性结合可以用自定义模型)</td>
</tr>
<tr>
<td>投稿具有唯一性</td>
<td>
<label><input type="radio" name="onlyone" value="1"> 是</label>
<label><input type="radio" name="onlyone" value="0" checked> 不是</label>
<span>(与投稿唯一会员只能在该模型对应栏目中发布文档,其作用相当于自定义表单)</span>
</td>
</tr>
<tr>
<td>文档发布程序</td>
<td><input type="text" name="addcon" id="addcon" class="admin-input-sm" value="archives_add.php"></td>
</tr>
<tr>
<td>文档修改程序</td>
<td><input type="text" name="editcon" id="editcon" class="admin-input-sm" value="archives_edit.php"></td>
</tr>
<tr>
<td>文档管理程序</td>
<td><input type="text" name="mancon" id="mancon" class="admin-input-sm" value="content_list.php"></td>
</tr>
<tr>
<td>前台会员发布程序</td>
<td><input type="text" name="useraddcon" id="useraddcon" class="admin-input-sm" value="archives_add.php"></td>
</tr>
<tr>
<td>前台会员修改程序</td>
<td><input type="text" name="usereditcon" id="usereditcon" class="admin-input-sm" value="archives_edit.php"></td>
</tr>
<tr>
<td>前台会员管理程序</td>
<td><input type="text" name="usermancon" id="usermancon" class="admin-input-sm" value="content_list.php"></td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>


+ 230
- 228
src/admin/templets/mychannel_edit.htm View File

@@ -15,239 +15,241 @@
<script src="/static/web/js/mode/htmlmixed/htmlmixed.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="mychannel_main.php">文档模型管理</a></li>
<li class="breadcrumb-item active">新增文档模型</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改文档模型</div>
<div class="card-body">
<?php if ($row['issystem'] == 1) {?><div class="alert alert-warning">默认文档模型字段,请谨慎修改</div><?php }?>
<form name="form1" action="mychannel_edit.php" method="post">
<input type="hidden" name="id" value="<?php echo $id?>">
<input type="hidden" name="dopost" value="save">
<input type="hidden" name="issystem" value="<?php echo $row['issystem'];?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">模型性质</td>
<td><?php if ($row['issystem']==0) echo "自动模型";else if ($row['issystem']==1) echo "系统模型";else if ($row['issystem']==-1) echo "独立模型";?>(系统模型禁止删除,独立模型具有单独主表,自动创建字段aid、栏目id、文档标题等,文档必须点击栏目进入列表管理)</td>
</tr>
<tr>
<td>模型id</td>
<td><?php echo $row['id'];?>(创建后不可修改,具有唯一性)</td>
</tr>
<tr>
<td>模型标识</td>
<td><?php echo $row['nid'];?>(建议由英文、数字或下划线组成,示例article_名字标识.htm,列表和封面模板类推)</td>
</tr>
<tr>
<td>模型名称</td>
<td><input type="text" name="typename" id="typename" class="admin-input-sm" value="<?php echo $row['typename'];?>">(前后台显示模型的名称)</td>
</tr>
<tr>
<td>附加表</td>
<td><input type="text" name="addtable" id="addtable" class="admin-input-sm" value="<?php echo $row['addtable'];?>">(#@__表示数据表前缀,文档模型主表外其它数据存放附加表)</td>
</tr>
<tr>
<td>是否支持会员投稿</td>
<td>
<label><input type="radio" name="issend" value="0" <?php if ($row['issend']==0) echo 'checked';?>> 不支持</label>
<label><input type="radio" name="issend" value="1" <?php if ($row['issend']==1) echo 'checked';?>> 支持</label>
</td>
</tr>
<tr>
<td>会员投稿级别</td>
<td>
<select name="sendrank" id="sendrank" class="admin-input-sm">
<option value="0">游客</option>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="mychannel_main.php">文档模型管理</a></li>
<li class="breadcrumb-item active">新增文档模型</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改文档模型</div>
<div class="card-body">
<?php if ($row['issystem'] == 1) {?><div class="alert alert-warning">默认文档模型字段,请谨慎修改</div><?php }?>
<form name="form1" action="mychannel_edit.php" method="post">
<input type="hidden" name="id" value="<?php echo $id?>">
<input type="hidden" name="dopost" value="save">
<input type="hidden" name="issystem" value="<?php echo $row['issystem'];?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">模型性质</td>
<td><?php if ($row['issystem']==0) echo "自动模型";else if ($row['issystem']==1) echo "系统模型";else if ($row['issystem']==-1) echo "独立模型";?>(系统模型禁止删除,独立模型具有单独主表,自动创建字段aid、栏目id、文档标题等,文档必须点击栏目进入列表管理)</td>
</tr>
<tr>
<td>模型id</td>
<td><?php echo $row['id'];?>(创建后不可修改,具有唯一性)</td>
</tr>
<tr>
<td>模型标识</td>
<td><?php echo $row['nid'];?>(建议由英文、数字或下划线组成,示例article_名字标识.htm,列表和封面模板类推)</td>
</tr>
<tr>
<td>模型名称</td>
<td><input type="text" name="typename" id="typename" class="admin-input-sm" value="<?php echo $row['typename'];?>">(前后台显示模型的名称)</td>
</tr>
<tr>
<td>附加表</td>
<td><input type="text" name="addtable" id="addtable" class="admin-input-sm" value="<?php echo $row['addtable'];?>">(#@__表示数据表前缀,文档模型主表外其它数据存放附加表)</td>
</tr>
<tr>
<td>是否支持会员投稿</td>
<td>
<label><input type="radio" name="issend" value="0" <?php if ($row['issend']==0) echo 'checked';?>> 不支持</label>
<label><input type="radio" name="issend" value="1" <?php if ($row['issend']==1) echo 'checked';?>> 支持</label>
</td>
</tr>
<tr>
<td>会员投稿级别</td>
<td>
<select name="sendrank" id="sendrank" class="admin-input-sm">
<option value="0">游客</option>
<?php
$urank = $cuserLogin->getUserRank();
$dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank' And `rank` >= 10");
$dsql->Execute();
while($row2 = $dsql->GetObject())
{
if ($row2->rank==$row['sendrank']) echo "<option value='".$row2->rank."' selected>".$row2->membername."</option>";
else echo "<option value='".$row2->rank."'>".$row2->membername."</option>";
}
?>
</select>
<span>(为了系统安全,游客投稿已禁止,开启游客投稿功能,到会员发布文件删除禁止游客操作)</span>
</td>
</tr>
<tr>
<td>会员投稿组</td>
<td>
<?php
$urank = $cuserLogin->getUserRank();
$dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank' And `rank` >= 10");
$dsql->SetQuery("SELECT * FROM `#@__member_model`");
$dsql->Execute();
while($row2 = $dsql->GetObject())
while($row3 = $dsql->GetObject())
{
if ($row2->rank==$row['sendrank']) echo "<option value='".$row2->rank."' selected>".$row2->membername."</option>";
else echo "<option value='".$row2->rank."'>".$row2->membername."</option>";
echo "<label><input type='radio' name='usertype' value='".$row3->name."'".($row['usertype']==$row3->name? "checked" : "")."> ".$row3->name."</label> ";
}
?>
</select>
<span>(为了系统安全,游客投稿已禁止,开启游客投稿功能,到会员发布文件删除禁止游客操作)</span>
</td>
</tr>
<tr>
<td>会员投稿组</td>
<td>
<?php
$dsql->SetQuery("SELECT * FROM `#@__member_model`");
$dsql->Execute();
while($row3 = $dsql->GetObject())
{
echo "<label><input type='radio' name='usertype' value='".$row3->name."'".($row['usertype']==$row3->name? "checked" : "")."> ".$row3->name."</label> ";
}
?>
<label><input type="radio" name="usertype" <?php if ($row['usertype']=='') echo 'checked';?>> 不限</label>
</td>
</tr>
<tr>
<td>会员投稿默认状态</td>
<td>
<label><input type="radio" name="arcsta" value="-1" <?php if ($row['arcsta']==-1) echo 'checked';?>> 待审核</label>
<label><input type="radio" name="arcsta" value="0" <?php if ($row['arcsta']==0) echo 'checked';?>> 已审核(更新静态页)</label>
<label><input type="radio" name="arcsta" value="1" <?php if ($row['arcsta']==1) echo 'checked';?>> 已审核(使用动态页)</label>
</td>
</tr>
<tr>
<td>列表附加字段</td>
<td><input type="text" name="listfields" id="listfields" class="admin-input-lg" value="<?php echo $row['listfields'];?>" class="w-50">(用英文逗号隔开,标签{dede:list channelid='模型id' addfields='字段1,字段2'}[field:name/]{/dede:list}调用)</td>
</tr>
<tr>
<td>投稿标题使用名称</td>
<td><input type="text" name="titlename" id="titlename" class="admin-input-sm" value="<?php echo $row['titlename'];?>"></td>
</tr>
<tr>
<td>投稿是否使用摘要</td>
<td>
<label><input type="radio" name="needdes" value="1" <?php if ($row['needdes']==1) echo 'checked';?>> 使用</label>
<label><input type="radio" name="needdes" value="0" <?php if ($row['needdes']==0) echo 'checked';?>> 不使用</label>
</td>
</tr>
<tr>
<td>投稿是否使用缩图</td>
<td>
<label><input type="radio" name="needpic" value="1" <?php if ($row['needpic']==1) echo 'checked';?>> 使用</label>
<label><input type="radio" name="needpic" value="0" <?php if ($row['needpic']==0) echo 'checked';?>> 不使用</label>
</td>
</tr>
<tr>
<td>默认栏目id</td>
<td><input type="text" name="dfcid" id="dfcid" class="admin-input-sm" value="<?php echo $row['dfcid'];?>">(与投稿唯一性结合可以用自定义模型)</td>
</tr>
<tr>
<td>投稿具有唯一性</td>
<td>
<label><input type="radio" name="onlyone" value="1" <?php if ($row['onlyone']==1) echo 'checked';?>> 是</label>
<label><input type="radio" name="onlyone" value="0" <?php if ($row['onlyone']==0) echo 'checked';?>> 不是</label>
<span>(与投稿唯一会员只能在该模型对应栏目中发布文档,其作用相当于自定义表单)</span>
</td>
</tr>
<tr>
<td>文档发布程序</td>
<td><input type="text" name="addcon" id="addcon" class="admin-input-sm" value="<?php echo $row['addcon'];?>"></td>
</tr>
<tr>
<td>文档修改程序</td>
<td><input type="text" name="editcon" id="editcon" class="admin-input-sm" value="<?php echo $row['editcon'];?>"></td>
</tr>
<tr>
<td>文档管理程序</td>
<td><input type="text" name="mancon" id="mancon" class="admin-input-sm" value="<?php echo $row['mancon'];?>"></td>
</tr>
<tr>
<td>前台会员发布程序</td>
<td><input type="text" name="useraddcon" id="useraddcon" class="admin-input-sm" value="<?php echo $row['useraddcon'];?>"></td>
</tr>
<tr>
<td>前台会员修改程序</td>
<td><input type="text" name="usereditcon" id="usereditcon" class="admin-input-sm" value="<?php echo $row['usereditcon'];?>"></td>
</tr>
<tr>
<td>前台会员管理程序</td>
<td><input type="text" name="usermancon" id="usermancon" class="admin-input-sm" value="<?php echo $row['usermancon'];?>"></td>
</tr>
<tr>
<td colspan="2">
<table class="table">
<thead>
<tr>
<td scope="col">字段名称</td>
<td scope="col">字段标识</td>
<td scope="col">数据类型</td>
<td scope="col">字段类型</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
<?php if ($row['issystem']==-1) {?>
<tr>
<td colspan='5'>不列出aid和typeid强制使用字段</td>
</tr>
<?php } else {?>
<?php
}
$ds = file(DEDEADMIN."/inc/fieldtype.txt");
foreach($ds as $d){
$dds = explode(',',trim($d));
$fieldtypes[$dds[0]] = $dds[1];
}
$fieldset = stripslashes($row['fieldset']);
$dtp = new DedeTagParse();
$dtp->SetNameSpace("field","<",">");
$dtp->LoadSource($fieldset);
if (is_array($dtp->CTags)){
foreach($dtp->CTags as $ctag)
{
?>
<tr>
<td>
<?php
$itname = $ctag->GetAtt('itemname');
if ($itname=='') echo "未指定";
else echo $itname;
?>
</td>
<td><?php echo $ctag->GetTagName();?></td>
<td>
<?php
$ft = $ctag->GetAtt('type');
if (isset($fieldtypes[$ft])) echo $fieldtypes[$ft];
else echo "系统类型";
?>
</td>
<td>
<?php
$ft = $ctag->GetAtt('autofield');
if ($ft=='' || $ft==0) {
echo "固化字段";
} else {
echo "自动字段";
}
?>
</td>
<td>
<?php if ($ft==1) {?>
<a href="mychannel_field_edit.php?id=<?php echo $id;?>&fname=<?php echo $ctag->GetTagName();?>&issystem=<?php echo $row['issystem'];?>" class="btn btn-success btn-sm"><i class="fa fa-pencil-square" title="修改"></i></a>
<?php if ($row['issystem']!=1) {?>
<a href="javascript:DelNote('mychannel_field_edit.php?id=<?php echo $id;?>&fname=<?php echo $ctag->GetTagName();?>&action=delete');" class="btn btn-danger btn-sm"><i class="fa fa-trash" title="删除"></i></a>
<?php }?>
<?php } else {echo "<span class='btn btn-danger btn-sm'><i class='fa fa-times' title='禁止'></i></span>";}?>
</td>
</tr>
<?php }}?>
</tbody>
</table>
</td>
<tr>
<tr>
<td colspan="2">模型字段文本模式(调整字段顺序,但不会修改字段属性)</td>
</tr>
<tr>
<td colspan="2"><textarea name="fieldset" id="fieldset" class="admin-textarea-xl"><?php echo stripslashes($row['fieldset']);?></textarea></td>
</tr>
<td colspan="2"><a href="mychannel_field_add.php?id=<?php echo $id;?>" class="btn btn-success btn-sm">添加新字段</button></td>
</tr>
<tr>
<td align="center" colspan="2">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<label><input type="radio" name="usertype" <?php if ($row['usertype']=='') echo 'checked';?>> 不限</label>
</td>
</tr>
<tr>
<td>会员投稿默认状态</td>
<td>
<label><input type="radio" name="arcsta" value="-1" <?php if ($row['arcsta']==-1) echo 'checked';?>> 待审核</label>
<label><input type="radio" name="arcsta" value="0" <?php if ($row['arcsta']==0) echo 'checked';?>> 已审核(更新静态页)</label>
<label><input type="radio" name="arcsta" value="1" <?php if ($row['arcsta']==1) echo 'checked';?>> 已审核(使用动态页)</label>
</td>
</tr>
<tr>
<td>列表附加字段</td>
<td><input type="text" name="listfields" id="listfields" class="admin-input-lg" value="<?php echo $row['listfields'];?>" class="w-50">(用英文逗号隔开,标签{dede:list channelid='模型id' addfields='字段1,字段2'}[field:name/]{/dede:list}调用)</td>
</tr>
<tr>
<td>投稿标题使用名称</td>
<td><input type="text" name="titlename" id="titlename" class="admin-input-sm" value="<?php echo $row['titlename'];?>"></td>
</tr>
<tr>
<td>投稿是否使用摘要</td>
<td>
<label><input type="radio" name="needdes" value="1" <?php if ($row['needdes']==1) echo 'checked';?>> 使用</label>
<label><input type="radio" name="needdes" value="0" <?php if ($row['needdes']==0) echo 'checked';?>> 不使用</label>
</td>
</tr>
<tr>
<td>投稿是否使用缩图</td>
<td>
<label><input type="radio" name="needpic" value="1" <?php if ($row['needpic']==1) echo 'checked';?>> 使用</label>
<label><input type="radio" name="needpic" value="0" <?php if ($row['needpic']==0) echo 'checked';?>> 不使用</label>
</td>
</tr>
<tr>
<td>默认栏目id</td>
<td><input type="text" name="dfcid" id="dfcid" class="admin-input-sm" value="<?php echo $row['dfcid'];?>">(与投稿唯一性结合可以用自定义模型)</td>
</tr>
<tr>
<td>投稿具有唯一性</td>
<td>
<label><input type="radio" name="onlyone" value="1" <?php if ($row['onlyone']==1) echo 'checked';?>> 是</label>
<label><input type="radio" name="onlyone" value="0" <?php if ($row['onlyone']==0) echo 'checked';?>> 不是</label>
<span>(与投稿唯一会员只能在该模型对应栏目中发布文档,其作用相当于自定义表单)</span>
</td>
</tr>
<tr>
<td>文档发布程序</td>
<td><input type="text" name="addcon" id="addcon" class="admin-input-sm" value="<?php echo $row['addcon'];?>"></td>
</tr>
<tr>
<td>文档修改程序</td>
<td><input type="text" name="editcon" id="editcon" class="admin-input-sm" value="<?php echo $row['editcon'];?>"></td>
</tr>
<tr>
<td>文档管理程序</td>
<td><input type="text" name="mancon" id="mancon" class="admin-input-sm" value="<?php echo $row['mancon'];?>"></td>
</tr>
<tr>
<td>前台会员发布程序</td>
<td><input type="text" name="useraddcon" id="useraddcon" class="admin-input-sm" value="<?php echo $row['useraddcon'];?>"></td>
</tr>
<tr>
<td>前台会员修改程序</td>
<td><input type="text" name="usereditcon" id="usereditcon" class="admin-input-sm" value="<?php echo $row['usereditcon'];?>"></td>
</tr>
<tr>
<td>前台会员管理程序</td>
<td><input type="text" name="usermancon" id="usermancon" class="admin-input-sm" value="<?php echo $row['usermancon'];?>"></td>
</tr>
<tr>
<td colspan="2">
<table class="table">
<thead>
<tr>
<td scope="col">字段名称</td>
<td scope="col">字段标识</td>
<td scope="col">数据类型</td>
<td scope="col">字段类型</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
<?php if ($row['issystem']==-1) {?>
<tr>
<td colspan='5'>不列出aid和typeid强制使用字段</td>
</tr>
<?php } else {?>
<?php
}
$ds = file(DEDEADMIN."/inc/fieldtype.txt");
foreach($ds as $d){
$dds = explode(',',trim($d));
$fieldtypes[$dds[0]] = $dds[1];
}
$fieldset = stripslashes($row['fieldset']);
$dtp = new DedeTagParse();
$dtp->SetNameSpace("field","<",">");
$dtp->LoadSource($fieldset);
if (is_array($dtp->CTags)){
foreach($dtp->CTags as $ctag)
{
?>
<tr>
<td>
<?php
$itname = $ctag->GetAtt('itemname');
if ($itname=='') echo "未指定";
else echo $itname;
?>
</td>
<td><?php echo $ctag->GetTagName();?></td>
<td>
<?php
$ft = $ctag->GetAtt('type');
if (isset($fieldtypes[$ft])) echo $fieldtypes[$ft];
else echo "系统类型";
?>
</td>
<td>
<?php
$ft = $ctag->GetAtt('autofield');
if ($ft=='' || $ft==0) {
echo "固化字段";
} else {
echo "自动字段";
}
?>
</td>
<td>
<?php if ($ft==1) {?>
<a href="mychannel_field_edit.php?id=<?php echo $id;?>&fname=<?php echo $ctag->GetTagName();?>&issystem=<?php echo $row['issystem'];?>" class="btn btn-success btn-sm"><i class="fa fa-pencil-square" title="修改"></i></a>
<?php if ($row['issystem']!=1) {?>
<a href="javascript:DelNote('mychannel_field_edit.php?id=<?php echo $id;?>&fname=<?php echo $ctag->GetTagName();?>&action=delete');" class="btn btn-danger btn-sm"><i class="fa fa-trash" title="删除"></i></a>
<?php }?>
<?php } else {echo "<span class='btn btn-danger btn-sm'><i class='fa fa-times' title='禁止'></i></span>";}?>
</td>
</tr>
<?php }}?>
</tbody>
</table>
</td>
<tr>
<tr>
<td colspan="2">模型字段文本模式(调整字段顺序,但不会修改字段属性)</td>
</tr>
<tr>
<td colspan="2"><textarea name="fieldset" id="fieldset" class="admin-textarea-xl"><?php echo stripslashes($row['fieldset']);?></textarea></td>
</tr>
<td colspan="2"><a href="mychannel_field_add.php?id=<?php echo $id;?>" class="btn btn-success btn-sm">添加新字段</button></td>
</tr>
<tr>
<td align="center" colspan="2">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>


+ 121
- 119
src/admin/templets/mychannel_field_add.htm View File

@@ -12,126 +12,128 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="mychannel_main.php">文档模型管理</a></li>
<li class="breadcrumb-item active">添加文档模型字段</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">添加文档模型字段</div>
<div class="card-body">
<div class="alert alert-warning">不支持字段输入单引号和双引号</div>
<form name="form1" action="mychannel_field_add.php" method="post" onSubmit="return GetFields();">
<input type="hidden" name="action" value="save">
<input type="hidden" name="id" value="<?php echo $id?>">
<input type="hidden" name="fieldstring">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">字段名称</td>
<td><input type="text" name="itemname" id="itemname" class="admin-input-sm" required>(前后台显示字段的名称)</td>
</tr>
<tr>
<td>字段标识</td>
<td><input type="text" name="fieldname" id="fieldname" class="admin-input-sm" required>(只能用英文字母或数字,如果数据类型是联动类型,请填写联动类型组名称)</td>
</tr>
<tr>
<td>字段类型</td>
<td>
<label><input type="radio" name="autofield" value="1" checked> 自动字段</label>
<label><input type="radio" name="autofield" value="0"> 固化字段</label>
</td>
</tr>
<tr>
<td>前台参数</td>
<td>
<label><input type="checkbox" name="notsend" id="notsend" value="1"> 投稿和采集禁用字段</label>
<label><input type="checkbox" name="islist" id="islist" value="1"> 添加到列表附加字段</label>
<span>(标签{dede:list channelid='模型id' addfields='字段1,字段2'}[field:name/]{/dede:list}调用)</span>
</td>
</tr>
<tr>
<td>是否使用分页符</td>
<td>
<input type="hidden" name="isnull" value="1">
<label><input type="radio" name="spage" value="split"> 是</label>
<label><input type="radio" name="spage" value="no" checked> 否</label>
<span>(如果文档使用分页符,文档用#p#副标题#e#作为分页符实现文档分页,但仅允许一个字段)</span>
</td>
</tr>
<tr>
<td>数据类型</td>
<td id="dataType">
<div class="nw"><label><input type="radio" name="dtype" id="dtype1" value="text" checked> 单行文本(varchar)</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype2" value="textchar"> 单行文本(char)</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype3" value="multitext"> 多行文本</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype4" value="htmltext"> 网页文本</label></div>
<br class="cls">
<div class="nw"><label><input type="radio" name="dtype" id="dtype5" value="textdata"> 文本保存网页数据</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype6" value="int"> 整数类型</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype7" value="float"> 小数类型</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype8" value="datetime"> 时间类型</label></div>
<br class="cls">
<div class="nw"><label><input type="radio" name="dtype" id="dtype9" value="img"> 图片类型</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype10" value="media"> 多媒体文件</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype11" value="addon"> 附件类型</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype12" value="relation"> 关联文档</label></div>
<br class="cls">
<div class="nw"><label><input type="radio" name="dtype" id="dtype13" value="select"> option下拉框</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype14" value="radio"> radio选项卡</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype15" value="checkbox"> checkbox多选框</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype16" value="stepselect"> 联动类型</label></div>
</td>
</tr>
<tr id="_relation" style="display:none">
<td>文档模型</td>
<td>
<select name="channeltype" id="channeltype" class="admin-input-sm">
<?php
$channelid = 1;
foreach($channelArray as $k=>$arr)
{
if ($k==$channelid) {
$nid = $arr['nid'];
echo "<option value='{$k}' selected>{$arr['typename']} {$arr['nid']}</option>";
} else {
echo "<option value='{$k}'>{$arr['typename']} {$arr['nid']}</option>";
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="mychannel_main.php">文档模型管理</a></li>
<li class="breadcrumb-item active">添加文档模型字段</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">添加文档模型字段</div>
<div class="card-body">
<div class="alert alert-warning">不支持字段输入单引号和双引号</div>
<form name="form1" action="mychannel_field_add.php" method="post" onSubmit="return GetFields();">
<input type="hidden" name="action" value="save">
<input type="hidden" name="id" value="<?php echo $id?>">
<input type="hidden" name="fieldstring">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">字段名称</td>
<td><input type="text" name="itemname" id="itemname" class="admin-input-sm" required>(前后台显示字段的名称)</td>
</tr>
<tr>
<td>字段标识</td>
<td><input type="text" name="fieldname" id="fieldname" class="admin-input-sm" required>(只能用英文字母或数字,如果数据类型是联动类型,请填写联动类型组名称)</td>
</tr>
<tr>
<td>字段类型</td>
<td>
<label><input type="radio" name="autofield" value="1" checked> 自动字段</label>
<label><input type="radio" name="autofield" value="0"> 固化字段</label>
</td>
</tr>
<tr>
<td>前台参数</td>
<td>
<label><input type="checkbox" name="notsend" id="notsend" value="1"> 投稿和采集禁用字段</label>
<label><input type="checkbox" name="islist" id="islist" value="1"> 添加到列表附加字段</label>
<span>(标签{dede:list channelid='模型id' addfields='字段1,字段2'}[field:name/]{/dede:list}调用)</span>
</td>
</tr>
<tr>
<td>是否使用分页符</td>
<td>
<input type="hidden" name="isnull" value="1">
<label><input type="radio" name="spage" value="split"> 是</label>
<label><input type="radio" name="spage" value="no" checked> 否</label>
<span>(如果文档使用分页符,文档用#p#副标题#e#作为分页符实现文档分页,但仅允许一个字段)</span>
</td>
</tr>
<tr>
<td>数据类型</td>
<td id="dataType">
<div class="nw"><label><input type="radio" name="dtype" id="dtype1" value="text" checked> 单行文本(varchar)</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype2" value="textchar"> 单行文本(char)</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype3" value="multitext"> 多行文本</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype4" value="htmltext"> 网页文本</label></div>
<br class="cls">
<div class="nw"><label><input type="radio" name="dtype" id="dtype5" value="textdata"> 文本保存网页数据</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype6" value="int"> 整数类型</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype7" value="float"> 小数类型</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype8" value="datetime"> 时间类型</label></div>
<br class="cls">
<div class="nw"><label><input type="radio" name="dtype" id="dtype9" value="img"> 图片类型</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype10" value="media"> 多媒体文件</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype11" value="addon"> 附件类型</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype12" value="relation"> 关联文档</label></div>
<br class="cls">
<div class="nw"><label><input type="radio" name="dtype" id="dtype13" value="select"> option下拉框</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype14" value="radio"> radio选项卡</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype15" value="checkbox"> checkbox多选框</label></div>
<div class="nw"><label><input type="radio" name="dtype" id="dtype16" value="stepselect"> 联动类型</label></div>
</td>
</tr>
<tr id="_relation" style="display:none">
<td>文档模型</td>
<td>
<select name="channeltype" id="channeltype" class="admin-input-sm">
<?php
$channelid = 1;
foreach($channelArray as $k=>$arr)
{
if ($k==$channelid) {
$nid = $arr['nid'];
echo "<option value='{$k}' selected>{$arr['typename']} {$arr['nid']}</option>";
} else {
echo "<option value='{$k}'>{$arr['typename']} {$arr['nid']}</option>";
}
}
}
?>
</select>
<label><input type="checkbox" name="relation_automake" id="relation_automake" value="1"> 发布时自动更新关联文档</label>
</td>
</tr>
<tr>
<td>默认值</td>
<td>
<p>(自定义字段数据类型为select、radio、checkbox时,下面填写数据,英文逗号隔开,如:DedeBIZ,得德)</p>
<textarea name="vdefault" id="vdefault" class="admin-textarea-xl"></textarea>
</td>
</tr>
<tr>
<td>自定义网页表单</td>
<td>
<p>(自定义网页表单用~name~表示提示文字,~form~表示表单元素)</p>
<textarea name="vinnertext" id="vinnertext" class="admin-textarea-xl"></textarea>
</td>
</tr>
<tr>
<td>最大长度</td>
<td><input type="text" name="maxlength" id="maxlength" class="admin-input-sm" value="255">(文本数据必须填写,大于255为text类型)</td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
?>
</select>
<label><input type="checkbox" name="relation_automake" id="relation_automake" value="1"> 发布时自动更新关联文档</label>
</td>
</tr>
<tr>
<td>默认值</td>
<td>
<p>(自定义字段数据类型为select、radio、checkbox时,下面填写数据,英文逗号隔开,如:DedeBIZ,得德)</p>
<textarea name="vdefault" id="vdefault" class="admin-textarea-xl"></textarea>
</td>
</tr>
<tr>
<td>自定义网页表单</td>
<td>
<p>(自定义网页表单用~name~表示提示文字,~form~表示表单元素)</p>
<textarea name="vinnertext" id="vinnertext" class="admin-textarea-xl"></textarea>
</td>
</tr>
<tr>
<td>最大长度</td>
<td><input type="text" name="maxlength" id="maxlength" class="admin-input-sm" value="255">(文本数据必须填写,大于255为text类型)</td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>


+ 132
- 130
src/admin/templets/mychannel_field_edit.htm View File

@@ -12,138 +12,140 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="mychannel_main.php">文档模型管理</a></li>
<li class="breadcrumb-item active">添加文档模型字段</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">添加文档模型字段</div>
<div class="card-body">
<form name="form1" action="mychannel_field_edit.php" method="post" onSubmit="return GetFields();">
<input type="hidden" name="action" value="save">
<input type="hidden" name="id" value="<?php echo $id?>">
<input type="hidden" name="fname" value="<?php echo $fname?>">
<input type="hidden" name="issystem" value="<?php echo $issystem?>">
<input type="hidden" name="fieldstring">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td>字段名称</td>
<td><input type="text" name="itemname" id="itemname" class="admin-input-sm" value="<?php echo $ctag->GetAtt('itemname')?>" required>(前后台显示字段的名称)</td>
</tr>
<tr>
<td width="260">字段标识</td>
<td><?php echo $fname?>(只能用英文字母或数字,如果数据类型是联动类型,请填写联动类型组名称)</td>
</tr>
<tr>
<td>字段类型</td>
<td>
<label><input type="radio" name="autofield" value="1" checked <?php echo ($ctag->GetAtt('autofield')==1 ? "checked" : "");?>> 自动字段</label>
<label><input type="radio" name="autofield" value="0" <?php echo ( ($ctag->GetAtt('autofield')==''||$ctag->GetAtt('autofield')=='0') ? "checked" : "");?>> 固化字段</label>
</td>
</tr>
<tr>
<td>前台参数</td>
<td>
<label><input type="checkbox" name="notsend" id="notsend" value="1" <?php echo ($ctag->GetAtt('notsend')==1 ? "checked" : "");?>> 投稿和采集禁用字段</label>
<label><input type="checkbox" name="islist" id="islist" value="1" <?php echo ($ctag->GetAtt('islist')==1 ? "checked" : "");?>> 添加到列表附加字段</label>
<span>(标签{dede:list channelid='模型id' addfields='字段1,字段2'}[field:name/]{/dede:list}调用)</span>
</td>
</tr>
<tr>
<td>是否使用分页符</td>
<td>
<input name="isnull" type="hidden" value="1">
<label><input type="radio" name="spage" value="split" <?php if ($ctag->GetAtt('page')=='split') echo 'checked';?>> 是</label>
<label><input type="radio" name="spage" value="no" <?php if ($ctag->GetAtt('page')=='no'||$ctag->GetAtt('page')=='') echo 'checked';?>> 否</label>
<span>(如果文档使用分页符,文档用#p#副标题#e#作为分页符实现文档分页,但仅允许一个字段)</span>
</td>
</tr>
<tr>
<td>数据类型</td>
<td>
<select name="dtype" id="type" class="admin-input-sm">
<?php
$dtype = $ctag->GetAtt('type');
if ($dtype!='' && isset($fieldtypes[$dtype])) {
echo "<option value='{$dtype}'>{$fieldtypes[$dtype]}</option>";
$canchange = true;
} else {
echo "<option value='{$dtype}'>系统专用类型</option>";
$canchange = false;
}
if ($canchange) {
?>
<option value="text">单行文本(varchar)</option>
<option value="textchar">单行文本(char)</option>
<option value="multitext">多行文本</option>
<option value="htmltext">网页文本</option>
<option value="textdata">文本保存网页数据</option>
<option value="int">整数类型</option>
<option value="float">小数类型</option>
<option value="datetime">时间类型</option>
<option value="img">图片类型</option>
<option value="media">多媒体文件</option>
<option value="addon">附件类型</option>
<option value="select">option下拉框</option>
<option value="radio">radio选项卡</option>
<option value="checkbox">checkbox多选框</option>
<option value="stepselect">联动类型</option>
<option value="relation">关联文档</option>
<?php }?>
</select>
</td>
</tr>
<tr id="_relation" <?php echo $dtype=="relation"? '' : 'style="display:none"';?>>
<td>文档模型</td>
<td>
<select name="channeltype" id="channeltype" class="admin-input-sm">
<?php
$channelid = $ctag->GetAtt('channel') == "" ? 1 : $ctag->GetAtt('channel');
foreach($channelArray as $k=>$arr)
{
if ($k==$channelid) {
$nid = $arr['nid'];
echo "<option value='{$k}' selected>{$arr['typename']} {$arr['nid']}</option>";
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="mychannel_main.php">文档模型管理</a></li>
<li class="breadcrumb-item active">添加文档模型字段</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">添加文档模型字段</div>
<div class="card-body">
<form name="form1" action="mychannel_field_edit.php" method="post" onSubmit="return GetFields();">
<input type="hidden" name="action" value="save">
<input type="hidden" name="id" value="<?php echo $id?>">
<input type="hidden" name="fname" value="<?php echo $fname?>">
<input type="hidden" name="issystem" value="<?php echo $issystem?>">
<input type="hidden" name="fieldstring">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td>字段名称</td>
<td><input type="text" name="itemname" id="itemname" class="admin-input-sm" value="<?php echo $ctag->GetAtt('itemname')?>" required>(前后台显示字段的名称)</td>
</tr>
<tr>
<td width="260">字段标识</td>
<td><?php echo $fname?>(只能用英文字母或数字,如果数据类型是联动类型,请填写联动类型组名称)</td>
</tr>
<tr>
<td>字段类型</td>
<td>
<label><input type="radio" name="autofield" value="1" checked <?php echo ($ctag->GetAtt('autofield')==1 ? "checked" : "");?>> 自动字段</label>
<label><input type="radio" name="autofield" value="0" <?php echo ( ($ctag->GetAtt('autofield')==''||$ctag->GetAtt('autofield')=='0') ? "checked" : "");?>> 固化字段</label>
</td>
</tr>
<tr>
<td>前台参数</td>
<td>
<label><input type="checkbox" name="notsend" id="notsend" value="1" <?php echo ($ctag->GetAtt('notsend')==1 ? "checked" : "");?>> 投稿和采集禁用字段</label>
<label><input type="checkbox" name="islist" id="islist" value="1" <?php echo ($ctag->GetAtt('islist')==1 ? "checked" : "");?>> 添加到列表附加字段</label>
<span>(标签{dede:list channelid='模型id' addfields='字段1,字段2'}[field:name/]{/dede:list}调用)</span>
</td>
</tr>
<tr>
<td>是否使用分页符</td>
<td>
<input name="isnull" type="hidden" value="1">
<label><input type="radio" name="spage" value="split" <?php if ($ctag->GetAtt('page')=='split') echo 'checked';?>> 是</label>
<label><input type="radio" name="spage" value="no" <?php if ($ctag->GetAtt('page')=='no'||$ctag->GetAtt('page')=='') echo 'checked';?>> 否</label>
<span>(如果文档使用分页符,文档用#p#副标题#e#作为分页符实现文档分页,但仅允许一个字段)</span>
</td>
</tr>
<tr>
<td>数据类型</td>
<td>
<select name="dtype" id="type" class="admin-input-sm">
<?php
$dtype = $ctag->GetAtt('type');
if ($dtype!='' && isset($fieldtypes[$dtype])) {
echo "<option value='{$dtype}'>{$fieldtypes[$dtype]}</option>";
$canchange = true;
} else {
echo "<option value='{$k}'>{$arr['typename']} {$arr['nid']}</option>";
echo "<option value='{$dtype}'>系统专用类型</option>";
$canchange = false;
}
}
?>
</select>
<label><input type="checkbox" name="relation_automake" id="relation_automake" value="1" <?php echo $ctag->GetAtt('automake')==1 ? "checked" : "";?>> 发布时自动更新关联文档</label>
</td>
</tr>
<tr>
<td>默认值</td>
<td>
<p>(自定义字段数据类型为select、radio、checkbox时,下面填写数据,英文逗号隔开,如:DedeBIZ,得德)</p>
<textarea name="vdefault" id="vdefault" class="admin-textarea-xl"><?php echo $ctag->GetAtt('default');?></textarea>
</td>
</tr>
<tr>
<td>自定义网页表单</td>
<td>
<p>(自定义网页表单用~name~表示提示文字,~form~表示表单元素)</p>
<textarea name="vinnertext" id="vinnertext" class="admin-textarea-xl"><?php echo $ctag->GetInnerText();?></textarea>
</td>
</tr>
<tr>
<td>最大长度</td>
<td><input type="text" name="maxlength" id="maxlength" class="admin-input-sm" value="<?php echo $ctag->GetAtt('maxlength')?>">(文本数据必须填写,大于255为text类型)</td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
if ($canchange) {
?>
<option value="text">单行文本(varchar)</option>
<option value="textchar">单行文本(char)</option>
<option value="multitext">多行文本</option>
<option value="htmltext">网页文本</option>
<option value="textdata">文本保存网页数据</option>
<option value="int">整数类型</option>
<option value="float">小数类型</option>
<option value="datetime">时间类型</option>
<option value="img">图片类型</option>
<option value="media">多媒体文件</option>
<option value="addon">附件类型</option>
<option value="select">option下拉框</option>
<option value="radio">radio选项卡</option>
<option value="checkbox">checkbox多选框</option>
<option value="stepselect">联动类型</option>
<option value="relation">关联文档</option>
<?php }?>
</select>
</td>
</tr>
<tr id="_relation" <?php echo $dtype=="relation"? '' : 'style="display:none"';?>>
<td>文档模型</td>
<td>
<select name="channeltype" id="channeltype" class="admin-input-sm">
<?php
$channelid = $ctag->GetAtt('channel') == "" ? 1 : $ctag->GetAtt('channel');
foreach($channelArray as $k=>$arr)
{
if ($k==$channelid) {
$nid = $arr['nid'];
echo "<option value='{$k}' selected>{$arr['typename']} {$arr['nid']}</option>";
} else {
echo "<option value='{$k}'>{$arr['typename']} {$arr['nid']}</option>";
}
}
?>
</select>
<label><input type="checkbox" name="relation_automake" id="relation_automake" value="1" <?php echo $ctag->GetAtt('automake')==1 ? "checked" : "";?>> 发布时自动更新关联文档</label>
</td>
</tr>
<tr>
<td>默认值</td>
<td>
<p>(自定义字段数据类型为select、radio、checkbox时,下面填写数据,英文逗号隔开,如:DedeBIZ,得德)</p>
<textarea name="vdefault" id="vdefault" class="admin-textarea-xl"><?php echo $ctag->GetAtt('default');?></textarea>
</td>
</tr>
<tr>
<td>自定义网页表单</td>
<td>
<p>(自定义网页表单用~name~表示提示文字,~form~表示表单元素)</p>
<textarea name="vinnertext" id="vinnertext" class="admin-textarea-xl"><?php echo $ctag->GetInnerText();?></textarea>
</td>
</tr>
<tr>
<td>最大长度</td>
<td><input type="text" name="maxlength" id="maxlength" class="admin-input-sm" value="<?php echo $ctag->GetAtt('maxlength')?>">(文本数据必须填写,大于255为text类型)</td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>


+ 49
- 47
src/admin/templets/mychannel_main.htm View File

@@ -10,55 +10,57 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">文档模型管理</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<a href="mychannel_add.php" class="btn btn-success btn-sm">添加新模型</a>
<a href="mychannel_edit.php?dopost=exportin" class="btn btn-success btn-sm">导入文档模型</a>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">文档模型管理</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<a href="mychannel_add.php" class="btn btn-success btn-sm">添加新模型</a>
<a href="mychannel_edit.php?dopost=exportin" class="btn btn-success btn-sm">导入文档模型</a>
</div>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">文档模型管理</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">id</td>
<td scope="col">模型名称</td>
<td scope="col">识别标记</td>
<td scope="col">附加表</td>
<td scope="col">状态</td>
<td scope="col">模型</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td>{dede:field.id/}</td>
<td><a href="mychannel_edit.php?id={dede:field.id/}&dopost=edit">{dede:field.typename/}</a></td>
<td>{dede:field.nid/}</td>
<td>{dede:field.addtable function="str_replace('#@__',$cfg_dbprefix,@me)"/}</td>
<td>{dede:field.isshow function="GetSta(@me,$fields['id'])"/}</td>
<td>{dede:field.issystem function='IsSystem(@me)'/}</td>
<td>
<a href="mychannel_edit.php?id={dede:field.id/}&dopost=gettemplets" class="btn btn-light btn-sm"><i class="fa fa-cube" title="模板"></i></a>
<a href="mychannel_edit.php?id={dede:field.id/}&dopost=copystart" class="btn btn-light btn-sm"><i class="fa fa-clone" title="复制"></i></a>
<a href="mychannel_edit.php?id={dede:field.id/}&dopost=export" class="btn btn-light btn-sm"><i class="fa fa-share-square-o" title="导出"></i></a>
<a href="mychannel_edit.php?mid={dede:field.id/}&dopost=modifysearch" class="btn btn-light btn-sm"><i class="fa fa-search" title="搜索"></i></a>
<a href="mychannel_edit.php?id={dede:field.id/}&dopost=edit" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="修改"></i></a>
<a href="mychannel_edit.php?id={dede:field.id/}&dopost=delete" class="btn btn-danger btn-sm"><i class="fa fa-trash" title="删除"></i></a>
</td>
</tr>
{/dede:datalist}
</tbody>
</table>
<div class="card shadow-sm">
<div class="card-header">文档模型管理</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">id</td>
<td scope="col">模型名称</td>
<td scope="col">识别标记</td>
<td scope="col">附加表</td>
<td scope="col">状态</td>
<td scope="col">模型</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td>{dede:field.id/}</td>
<td><a href="mychannel_edit.php?id={dede:field.id/}&dopost=edit">{dede:field.typename/}</a></td>
<td>{dede:field.nid/}</td>
<td>{dede:field.addtable function="str_replace('#@__',$cfg_dbprefix,@me)"/}</td>
<td>{dede:field.isshow function="GetSta(@me,$fields['id'])"/}</td>
<td>{dede:field.issystem function='IsSystem(@me)'/}</td>
<td>
<a href="mychannel_edit.php?id={dede:field.id/}&dopost=gettemplets" class="btn btn-light btn-sm"><i class="fa fa-cube" title="模板"></i></a>
<a href="mychannel_edit.php?id={dede:field.id/}&dopost=copystart" class="btn btn-light btn-sm"><i class="fa fa-clone" title="复制"></i></a>
<a href="mychannel_edit.php?id={dede:field.id/}&dopost=export" class="btn btn-light btn-sm"><i class="fa fa-share-square-o" title="导出"></i></a>
<a href="mychannel_edit.php?mid={dede:field.id/}&dopost=modifysearch" class="btn btn-light btn-sm"><i class="fa fa-search" title="搜索"></i></a>
<a href="mychannel_edit.php?id={dede:field.id/}&dopost=edit" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="修改"></i></a>
<a href="mychannel_edit.php?id={dede:field.id/}&dopost=delete" class="btn btn-danger btn-sm"><i class="fa fa-trash" title="删除"></i></a>
</td>
</tr>
{/dede:datalist}
</tbody>
</table>
</div>
{dede:pagelist listsize='6'/}
</div>
{dede:pagelist listsize='6'/}
</div>
</div>
</body>

+ 56
- 54
src/admin/templets/mychannel_modifysearch.htm View File

@@ -12,60 +12,62 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="mychannel_main.php">文档模型管理</a></li>
<li class="breadcrumb-item active">自定义搜索管理</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">自定义搜索管理</div>
<div class="card-body">
<form name="form1" action="mychannel_edit.php" method="post" target="stafrm">
<input type="hidden" name="mid" value="<?php echo $mid?>">
<input type="hidden" name="maintable" value="<?php echo $channel['maintable']?>">
<input type="hidden" name="addontable" value="<?php echo $channel['addtable'];?>">
<input type="hidden" name="step" value="<?php echo $step?>">
<input type="hidden" name="dopost" value="modifysearch">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">栏目id</td>
<td><?php echo $mid;?></td>
</tr>
<tr>
<td>栏目名称</td>
<td><?php echo $channel['typename']?></td>
</tr>
<?php if ($channel['issystem'] >= 0) {?>
<tr>
<td>主表可供自定义搜索的字段</td>
<td><?php echo $mainfields;?></td>
</tr>
<?php }?>
<tr>
<td>附件表可供自定义搜索的字段</td>
<td><?php echo $addonfields;?>(字段是程序依据字段类型自动选择生成)</td>
</tr>
<tr>
<td>自定义搜索结果页模板</td>
<td><input type="text" name="template" value="<?php echo $template;?>" class="admin-input-lg">(填写文件名,且文件必须在theme/apps目录)</td>
</tr>
<tr>
<td align="center" colspan="2">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
<tr>
<td colspan="2">
<div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="mychannel_main.php">文档模型管理</a></li>
<li class="breadcrumb-item active">自定义搜索管理</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">自定义搜索管理</div>
<div class="card-body">
<form name="form1" action="mychannel_edit.php" method="post" target="stafrm">
<input type="hidden" name="mid" value="<?php echo $mid?>">
<input type="hidden" name="maintable" value="<?php echo $channel['maintable']?>">
<input type="hidden" name="addontable" value="<?php echo $channel['addtable'];?>">
<input type="hidden" name="step" value="<?php echo $step?>">
<input type="hidden" name="dopost" value="modifysearch">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">栏目id</td>
<td><?php echo $mid;?></td>
</tr>
<tr>
<td>栏目名称</td>
<td><?php echo $channel['typename']?></td>
</tr>
<?php if ($channel['issystem'] >= 0) {?>
<tr>
<td>主表可供自定义搜索的字段</td>
<td><?php echo $mainfields;?></td>
</tr>
<?php }?>
<tr>
<td>附件表可供自定义搜索的字段</td>
<td><?php echo $addonfields;?>(字段是程序依据字段类型自动选择生成)</td>
</tr>
<tr>
<td>自定义搜索结果页模板</td>
<td><input type="text" name="template" value="<?php echo $template;?>" class="admin-input-lg">(填写文件名,且文件必须在theme/apps目录)</td>
</tr>
<tr>
<td align="center" colspan="2">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
<tr>
<td colspan="2">
<div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 67
- 65
src/admin/templets/mytag_add.htm View File

@@ -15,71 +15,73 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="mytag_main.php">自定义宏标记</a></li>
<li class="breadcrumb-item active">添加自定义宏标记</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">添加自定义宏标记</div>
<div class="card-body">
<div class="alert alert-info">标签{dede:mytag name='标记名称' ismake='yes或no' typeid='栏目id'/}调用</div>
<form name="form1" action="mytag_add.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="dopost" value="save">
<input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td>标记名称</td>
<td><input type="text" name="tagname" id="tagname" class="admin-input-md" required>(使用英文或数字表示标识)</td>
</tr>
<tr>
<td width="260">所属栏目</td>
<td>
<?php
$tl = new TypeLink(0);
$typeOptions = $tl->GetOptionArray(0,0,0);
echo "<select name='typeid' class='admin-input-md'>";
echo "<option value='0' selected>没有继承本标记所有栏目</option>";
echo $typeOptions;
echo "</select>";
?>
</td>
</tr>
<tr>
<td>时间限制</td>
<td>
<label><input type="radio" name="timeset" value="0" checked> 不限时间</label>
<label><input type="radio" name="timeset" value="1"> 限制时间</label>
</td>
</tr>
<tr>
<td>开始时间</td>
<td><input type="text" name="starttime" id="starttime" value="<?php echo $startDay?>" class="datepicker admin-input-md"></td>
</tr>
<tr>
<td>结束时间</td>
<td><input type="text" name="endtime" id="endtime" value="<?php echo $endDay?>" class="datepicker admin-input-md"></td>
</tr>
<tr>
<td>标记内容</td>
<td><textarea name="normbody" id="normbody" class="admin-textarea-xl"></textarea></td>
</tr>
<tr>
<td>过期内容</td>
<td><textarea name="expbody" id="expbody" class="admin-textarea-xl"></textarea></td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="mytag_main.php">自定义宏标记</a></li>
<li class="breadcrumb-item active">添加自定义宏标记</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">添加自定义宏标记</div>
<div class="card-body">
<div class="alert alert-info">标签{dede:mytag name='标记名称' ismake='yes或no' typeid='栏目id'/}调用</div>
<form name="form1" action="mytag_add.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="dopost" value="save">
<input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td>标记名称</td>
<td><input type="text" name="tagname" id="tagname" class="admin-input-md" required>(使用英文或数字表示标识)</td>
</tr>
<tr>
<td width="260">所属栏目</td>
<td>
<?php
$tl = new TypeLink(0);
$typeOptions = $tl->GetOptionArray(0,0,0);
echo "<select name='typeid' class='admin-input-md'>";
echo "<option value='0' selected>没有继承本标记所有栏目</option>";
echo $typeOptions;
echo "</select>";
?>
</td>
</tr>
<tr>
<td>时间限制</td>
<td>
<label><input type="radio" name="timeset" value="0" checked> 不限时间</label>
<label><input type="radio" name="timeset" value="1"> 限制时间</label>
</td>
</tr>
<tr>
<td>开始时间</td>
<td><input type="text" name="starttime" id="starttime" value="<?php echo $startDay?>" class="datepicker admin-input-md"></td>
</tr>
<tr>
<td>结束时间</td>
<td><input type="text" name="endtime" id="endtime" value="<?php echo $endDay?>" class="datepicker admin-input-md"></td>
</tr>
<tr>
<td>标记内容</td>
<td><textarea name="normbody" id="normbody" class="admin-textarea-xl"></textarea></td>
</tr>
<tr>
<td>过期内容</td>
<td><textarea name="expbody" id="expbody" class="admin-textarea-xl"></textarea></td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>


+ 67
- 65
src/admin/templets/mytag_edit.htm View File

@@ -9,71 +9,73 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="mytag_main.php">自定义宏标记</a></li>
<li class="breadcrumb-item active">修改自定义宏标记</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改自定义宏标记</div>
<div class="card-body">
<form action="mytag_edit.php" method="post" enctype="multipart/form-data" name="form1">
<input type="hidden" name="aid" value="<?php echo $aid?>">
<input type="hidden" name="dopost" value="saveedit">
<input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td>标记名称</td>
<td><?php echo $row['tagname']?></td>
</tr>
<tr>
<td width="260">所属栏目</td>
<td>
<?php
$tl = new TypeLink(0);
$typeOptions = $tl->GetOptionArray($row['typeid'],0,0);
echo "<select name='typeid' class='admin-input-lg'>";
echo "<option value='0' selected>没有继承本标记所有栏目</option>";
echo $typeOptions;
echo "</select>";
?>
</td>
</tr>
<tr>
<td>时间限制</td>
<td>
<label><input name="timeset" type="radio" value="0" <?php if ($row['timeset']==0) echo 'checked';?>> 不限时间</label>
<label><input type="radio" name="timeset" value="1" <?php if ($row['timeset']==1) echo 'checked';?>> 限制时间</label>
</td>
</tr>
<tr>
<td>开始时间</td>
<td><input type="text" name="starttime" id="starttime" value="<?php echo GetDateTimeMk($row['starttime'])?>" class="admin-input-md"></td>
</tr>
<tr>
<td>结束时间</td>
<td><input type="text" name="endtime" id="endtime" value="<?php echo GetDateTimeMk($row['endtime'])?>" class="admin-input-md"></td>
</tr>
<tr>
<td>标记内容</td>
<td><textarea name="normbody" id="normbody" class="admin-textarea-xl"><?php echo $row['normbody']?></textarea></td>
</tr>
<tr>
<td>过期内容</td>
<td><textarea name="expbody" id="expbody" class="admin-textarea-xl"><?php echo $row['expbody']?></textarea> </td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="mytag_main.php">自定义宏标记</a></li>
<li class="breadcrumb-item active">修改自定义宏标记</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改自定义宏标记</div>
<div class="card-body">
<form action="mytag_edit.php" method="post" enctype="multipart/form-data" name="form1">
<input type="hidden" name="aid" value="<?php echo $aid?>">
<input type="hidden" name="dopost" value="saveedit">
<input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td>标记名称</td>
<td><?php echo $row['tagname']?></td>
</tr>
<tr>
<td width="260">所属栏目</td>
<td>
<?php
$tl = new TypeLink(0);
$typeOptions = $tl->GetOptionArray($row['typeid'],0,0);
echo "<select name='typeid' class='admin-input-lg'>";
echo "<option value='0' selected>没有继承本标记所有栏目</option>";
echo $typeOptions;
echo "</select>";
?>
</td>
</tr>
<tr>
<td>时间限制</td>
<td>
<label><input name="timeset" type="radio" value="0" <?php if ($row['timeset']==0) echo 'checked';?>> 不限时间</label>
<label><input type="radio" name="timeset" value="1" <?php if ($row['timeset']==1) echo 'checked';?>> 限制时间</label>
</td>
</tr>
<tr>
<td>开始时间</td>
<td><input type="text" name="starttime" id="starttime" value="<?php echo GetDateTimeMk($row['starttime'])?>" class="admin-input-md"></td>
</tr>
<tr>
<td>结束时间</td>
<td><input type="text" name="endtime" id="endtime" value="<?php echo GetDateTimeMk($row['endtime'])?>" class="admin-input-md"></td>
</tr>
<tr>
<td>标记内容</td>
<td><textarea name="normbody" id="normbody" class="admin-textarea-xl"><?php echo $row['normbody']?></textarea></td>
</tr>
<tr>
<td>过期内容</td>
<td><textarea name="expbody" id="expbody" class="admin-textarea-xl"><?php echo $row['expbody']?></textarea> </td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 44
- 42
src/admin/templets/mytag_main.htm View File

@@ -10,50 +10,52 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">自定义宏标记</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<a href="mytag_add.php" class="btn btn-success btn-sm">添加自定义宏标记</a>
<a href="mytag_tag_guide.php" class="btn btn-success btn-sm">自定义宏标记向导</a>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">自定义宏标记</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<a href="mytag_add.php" class="btn btn-success btn-sm">添加自定义宏标记</a>
<a href="mytag_tag_guide.php" class="btn btn-success btn-sm">自定义宏标记向导</a>
</div>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">自定义宏标记</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">id</td>
<td scope="col">标记名称</td>
<td scope="col">所属栏目</td>
<td scope="col">时间限制</td>
<td scope="col">结束时间</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td>{dede:field.aid/}</td>
<td>{dede:field.tagname/}</td>
<td>{dede:field.typename function='TestType(@me)'/}</td>
<td>{dede:field.timeset function='TimeSetValue(@me)'/}</td>
<td>{dede:field.endtime function='GetDateMk(@me)'/}</td>
<td>
<a href="mytag_edit.php?aid={dede:field.aid/}&dopost=edit" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="修改"></i></a>
<a href="mytag_edit.php?aid={dede:field.aid/}&dopost=getjs" class="btn btn-light btn-sm"><i class="fa fa-code" title="调用"></i></a>
<a href="mytag_edit.php?aid={dede:field.aid/}&dopost=delete" class="btn btn-danger btn-sm"><i class="fa fa-trash" title="删除"></i></a>
</td>
</tr>
{/dede:datalist}
</tbody>
</table>
<div class="card shadow-sm">
<div class="card-header">自定义宏标记</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">id</td>
<td scope="col">标记名称</td>
<td scope="col">所属栏目</td>
<td scope="col">时间限制</td>
<td scope="col">结束时间</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td>{dede:field.aid/}</td>
<td>{dede:field.tagname/}</td>
<td>{dede:field.typename function='TestType(@me)'/}</td>
<td>{dede:field.timeset function='TimeSetValue(@me)'/}</td>
<td>{dede:field.endtime function='GetDateMk(@me)'/}</td>
<td>
<a href="mytag_edit.php?aid={dede:field.aid/}&dopost=edit" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="修改"></i></a>
<a href="mytag_edit.php?aid={dede:field.aid/}&dopost=getjs" class="btn btn-light btn-sm"><i class="fa fa-code" title="调用"></i></a>
<a href="mytag_edit.php?aid={dede:field.aid/}&dopost=delete" class="btn btn-danger btn-sm"><i class="fa fa-trash" title="删除"></i></a>
</td>
</tr>
{/dede:datalist}
</tbody>
</table>
</div>
{dede:pagelist listsize='6'/}
</div>
{dede:pagelist listsize='6'/}
</div>
</div>
</body>

+ 132
- 130
src/admin/templets/mytag_tag_guide.htm View File

@@ -17,136 +17,138 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="mytag_main.php">自定义宏标记</a></li>
<li class="breadcrumb-item active">自定义宏标记向导</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">自定义宏标记向导</div>
<div class="card-body">
<span id="list1" style="display:none">[field:textlink/]([field:pubdate function=MyDate('m-d',@me)/])</span>
<span id="list2" style="display:none">[field:typelink/] [field:textlink/]</span>
<div id="list3" style="display:none"><p>[field:imglink/]</p><p>[field:textlink/]</p></div>
<div id="list4" style="display:none"><p>[field:imglink/] - <a href="[field:filename/]">[field:title/]</a></p><p>[field:info/]</p></div>
<form name="form1" action="mytag_tag_guide_ok.php" method="post" target="stafrm">
<input type="hidden" name="dopost" value="gettag">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td colspan="4">
<label><input type="radio" name="liststyle" onclick="ChangeListStyle();" value="1" checked><img src="/static/web/img/g_t2.jpg"></label>
<label><input type="radio" name="liststyle" onclick="ChangeListStyle();" value="2"><img src="/static/web/img/g_t1.jpg"></label>
<label><input type="radio" name="liststyle" onclick="ChangeListStyle();" value="3"><img src="/static/web/img/g_t3.jpg"></label>
<label><input type="radio" name="liststyle" onclick="ChangeListStyle();" value="4"><img src="/static/web/img/g_t4.jpg"></label>
</td>
</tr>
<tr>
<td width="160">调用栏目</td>
<td width="550">
<?php
$tl = new TypeLink(0);
$typeOptions = $tl->GetOptionArray(0,$admin_catalogs,0,1);
echo "<select name='typeid' class='admin-input-sm'>";
echo "<option value='0' selected>不限栏目</option>";
echo $typeOptions;
echo "</select>";
?>
</td>
<td width="160">限定模型</td>
<td>
<?php
echo "<select name='channel' class='admin-input-sm'>";
echo "<option value='0' selected>不限模型</option>";
$tl->dsql->SetQuery("SELECT id,typename FROM `#@__channeltype` WHERE id > 0");
$tl->dsql->Execute();
while($row = $tl->dsql->GetObject())
{
echo "<option value='{$row->id}'>{$row->typename}</option>";
}
echo "</select>";
?>
</td>
</tr>
<tr>
<td>附加属性</td>
<td>
<?php
echo "<select name='att' class='admin-input-sm'>";
echo "<option value='0' selected>不限</option>";
$tl->dsql->SetQuery("SELECT * FROM `#@__arcatt`");
$tl->dsql->Execute();
while($row = $tl->dsql->GetObject())
{
echo "<option value='{$row->att}'>{$row->attname}</option>";
}
echo "</select>";
?>
</td>
<td>调用记录条数</td>
<td><input type="text" name="row" id="row" value="10" class="admin-input-sm"></td>
</tr>
<tr>
<td>显示列数</td>
<td><input type="text" name="col" id="col" value="1" class="admin-input-sm"></td>
<td>标题长度</td>
<td><input type="text" name="titlelen" id="titlelen" value="24" class="admin-input-sm">(1字节=0.5个中文字)</td>
</tr>
<tr>
<td>关键词</td>
<td><input type="text" name="keyword" id="keyword" class="admin-input-sm">(英文逗号隔开)</td>
<td>高级筛选</td>
<td>
<label><input type="checkbox" name="types[]" value="image"> 带缩略图</label>
<label><input type="checkbox" name="types[]" value="commend"> 推荐</label>
<label><input type="checkbox" name="types[]" value="spec"> 专题</label>
</td>
</tr>
<tr>
<td>文档发布时间</td>
<td><input type="text" name="subday" value="0" id="subday" class="admin-input-sm">(天以内,0表示不限)</td>
<td>排列顺序</td>
<td>
<select name="orderby" id="orderby" class="admin-input-sm">
<option value="sortrank">置顶权限值</option>
<option value="pubdate" selected>发布时间</option>
<option value="senddate">录入时间</option>
<option value="click">点击量</option>
<option value="id">文档id</option>
<option value="lastpost">最后评论时间</option>
<option value="scores">评论积分</option>
<option value="rand">随机获取</option>
</select>
<label><input type="radio" name="order" value="desc" checked> 由高到低</label>
<label><input type="radio" name="order" value="asc"> 由低到高</label>
</td>
</tr>
<tr>
<td>提取特定文档</td>
<td colspan="3">
<textarea name="arcid" class="admin-textarea-sm"></textarea>
<button type="button" id="selarc" class="btn btn-success btn-sm" onclick="SelectArcList('form1.arcid');">选择节点文档</button>
</td>
</tr>
<tr>
<td colspan="4"><textarea name="innertext" id="myinnertext" class="admin-textarea-xl">[field:textlink/]([field:pubdate function=MyDate('m-d',@me)/])<br></textarea></td>
</tr>
<tr>
<td colspan="4" align="center">
<a href="javascript:DoSubmit('gettag');" class="btn btn-success btn-sm">模板调用标记</a>
<a href="javascript:DoSubmit('savetag');" class="btn btn-success btn-sm">模板调用标签</a>
</td>
</tr>
<tr>
<td colspan="4">
<div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" width="100%" height="100%" id="stafrm"></iframe></div>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="mytag_main.php">自定义宏标记</a></li>
<li class="breadcrumb-item active">自定义宏标记向导</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">自定义宏标记向导</div>
<div class="card-body">
<span id="list1" style="display:none">[field:textlink/]([field:pubdate function=MyDate('m-d',@me)/])</span>
<span id="list2" style="display:none">[field:typelink/] [field:textlink/]</span>
<div id="list3" style="display:none"><p>[field:imglink/]</p><p>[field:textlink/]</p></div>
<div id="list4" style="display:none"><p>[field:imglink/] - <a href="[field:filename/]">[field:title/]</a></p><p>[field:info/]</p></div>
<form name="form1" action="mytag_tag_guide_ok.php" method="post" target="stafrm">
<input type="hidden" name="dopost" value="gettag">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td colspan="4">
<label><input type="radio" name="liststyle" onclick="ChangeListStyle();" value="1" checked><img src="/static/web/img/g_t2.jpg"></label>
<label><input type="radio" name="liststyle" onclick="ChangeListStyle();" value="2"><img src="/static/web/img/g_t1.jpg"></label>
<label><input type="radio" name="liststyle" onclick="ChangeListStyle();" value="3"><img src="/static/web/img/g_t3.jpg"></label>
<label><input type="radio" name="liststyle" onclick="ChangeListStyle();" value="4"><img src="/static/web/img/g_t4.jpg"></label>
</td>
</tr>
<tr>
<td width="160">调用栏目</td>
<td width="550">
<?php
$tl = new TypeLink(0);
$typeOptions = $tl->GetOptionArray(0,$admin_catalogs,0,1);
echo "<select name='typeid' class='admin-input-sm'>";
echo "<option value='0' selected>不限栏目</option>";
echo $typeOptions;
echo "</select>";
?>
</td>
<td width="160">限定模型</td>
<td>
<?php
echo "<select name='channel' class='admin-input-sm'>";
echo "<option value='0' selected>不限模型</option>";
$tl->dsql->SetQuery("SELECT id,typename FROM `#@__channeltype` WHERE id > 0");
$tl->dsql->Execute();
while($row = $tl->dsql->GetObject())
{
echo "<option value='{$row->id}'>{$row->typename}</option>";
}
echo "</select>";
?>
</td>
</tr>
<tr>
<td>附加属性</td>
<td>
<?php
echo "<select name='att' class='admin-input-sm'>";
echo "<option value='0' selected>不限</option>";
$tl->dsql->SetQuery("SELECT * FROM `#@__arcatt`");
$tl->dsql->Execute();
while($row = $tl->dsql->GetObject())
{
echo "<option value='{$row->att}'>{$row->attname}</option>";
}
echo "</select>";
?>
</td>
<td>调用记录条数</td>
<td><input type="text" name="row" id="row" value="10" class="admin-input-sm"></td>
</tr>
<tr>
<td>显示列数</td>
<td><input type="text" name="col" id="col" value="1" class="admin-input-sm"></td>
<td>标题长度</td>
<td><input type="text" name="titlelen" id="titlelen" value="24" class="admin-input-sm">(1字节=0.5个中文字)</td>
</tr>
<tr>
<td>关键词</td>
<td><input type="text" name="keyword" id="keyword" class="admin-input-sm">(英文逗号隔开)</td>
<td>高级筛选</td>
<td>
<label><input type="checkbox" name="types[]" value="image"> 带缩略图</label>
<label><input type="checkbox" name="types[]" value="commend"> 推荐</label>
<label><input type="checkbox" name="types[]" value="spec"> 专题</label>
</td>
</tr>
<tr>
<td>文档发布时间</td>
<td><input type="text" name="subday" value="0" id="subday" class="admin-input-sm">(天以内,0表示不限)</td>
<td>排列顺序</td>
<td>
<select name="orderby" id="orderby" class="admin-input-sm">
<option value="sortrank">置顶权限值</option>
<option value="pubdate" selected>发布时间</option>
<option value="senddate">录入时间</option>
<option value="click">点击量</option>
<option value="id">文档id</option>
<option value="lastpost">最后评论时间</option>
<option value="scores">评论积分</option>
<option value="rand">随机获取</option>
</select>
<label><input type="radio" name="order" value="desc" checked> 由高到低</label>
<label><input type="radio" name="order" value="asc"> 由低到高</label>
</td>
</tr>
<tr>
<td>提取特定文档</td>
<td colspan="3">
<textarea name="arcid" class="admin-textarea-sm"></textarea>
<button type="button" id="selarc" class="btn btn-success btn-sm" onclick="SelectArcList('form1.arcid');">选择节点文档</button>
</td>
</tr>
<tr>
<td colspan="4"><textarea name="innertext" id="myinnertext" class="admin-textarea-xl">[field:textlink/]([field:pubdate function=MyDate('m-d',@me)/])<br></textarea></td>
</tr>
<tr>
<td colspan="4" align="center">
<a href="javascript:DoSubmit('gettag');" class="btn btn-success btn-sm">模板调用标记</a>
<a href="javascript:DoSubmit('savetag');" class="btn btn-success btn-sm">模板调用标签</a>
</td>
</tr>
<tr>
<td colspan="4">
<div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" width="100%" height="100%" id="stafrm"></iframe></div>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>


+ 42
- 40
src/admin/templets/plus_edit.htm View File

@@ -9,46 +9,48 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="plus_main.php">插件管理</a></li>
<li class="breadcrumb-item active">修改插件</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改插件</div>
<div class="card-body">
<form name="form1" action="plus_edit.php" method="post">
<input type="hidden" name="dopost" value="saveedit">
<input type="hidden" name="aid" value="<?php echo $aid?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">插件名称</td>
<td><input type="text" name="plusname" class="admin-input-sm" value="<?php echo $row['plusname']?>" required></td>
</tr>
<tr>
<td>作者</td>
<td><?php echo $row['writer']?></td>
</tr>
<tr>
<td>菜单配置</td>
<td><textarea name="menustring" id="menustring" class="admin-textarea-xl"><?php echo $row['menustring']?></textarea></td>
</tr>
<tr>
<td>文件列表</td>
<td><textarea name="filelist" id="filelist" class="admin-textarea-xl"><?php echo $row['filelist']?></textarea></td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="plus_main.php">插件管理</a></li>
<li class="breadcrumb-item active">修改插件</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改插件</div>
<div class="card-body">
<form name="form1" action="plus_edit.php" method="post">
<input type="hidden" name="dopost" value="saveedit">
<input type="hidden" name="aid" value="<?php echo $aid?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">插件名称</td>
<td><input type="text" name="plusname" class="admin-input-sm" value="<?php echo $row['plusname']?>" required></td>
</tr>
<tr>
<td>作者</td>
<td><?php echo $row['writer']?></td>
</tr>
<tr>
<td>菜单配置</td>
<td><textarea name="menustring" id="menustring" class="admin-textarea-xl"><?php echo $row['menustring']?></textarea></td>
</tr>
<tr>
<td>文件列表</td>
<td><textarea name="filelist" id="filelist" class="admin-textarea-xl"><?php echo $row['filelist']?></textarea></td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</body>

+ 34
- 32
src/admin/templets/plus_main.htm View File

@@ -10,39 +10,41 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">插件列表</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">插件列表</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">id</td>
<td scope="col">插件名称</td>
<td scope="col">插件作者</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td>{dede:field.aid/}</td>
<td>{dede:field.plusname/}</td>
<td>{dede:field.writer/}</td>
<td>{dede:field.isshow function="GetSta(@me,$fields['aid'],$fields['plusname'])"/}</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="4"><a href="module_upload.php" class="btn btn-success btn-sm">上传模块插件</a></td>
</tr>
</tbody>
</table>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">插件列表</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">插件列表</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">id</td>
<td scope="col">插件名称</td>
<td scope="col">插件作者</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td>{dede:field.aid/}</td>
<td>{dede:field.plusname/}</td>
<td>{dede:field.writer/}</td>
<td>{dede:field.isshow function="GetSta(@me,$fields['aid'],$fields['plusname'])"/}</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="4"><a href="module_upload.php" class="btn btn-success btn-sm">上传模块插件</a></td>
</tr>
</tbody>
</table>
</div>
{dede:pagelist listsize='6'/}
</div>
{dede:pagelist listsize='6'/}
</div>
</div>
</body>

+ 51
- 49
src/admin/templets/recycling.htm View File

@@ -9,55 +9,57 @@
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">文档回收站</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">文档回收站</div>
<div class="card-body">
<form name="form2">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">id</td>
<td scope="col">选择</td>
<td scope="col">文档标题</td>
<td scope="col">栏目</td>
<td scope="col">更新时间</td>
<td scope="col">点击</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td>{dede:field.id/}</td>
<td><input type="checkbox" name="arcID" value="{dede:field.id/}"></td>
<td align="left"><a href="archives_do.php?aid={dede:field.id/}&dopost=editArchives">{dede:field.title/}</a></td>
<td>{dede:field.typename/}</td>
<td>{dede:field.senddate function='GetDateMk(@me)'/}</td>
<td>{dede:field.click/}</td>
<td>
<a href="javascript:moveArc({dede:field.id/});" class="btn btn-light btn-sm"><i class="fa fa-repeat" title="还原"></i></a>
<a href="javascript:delArc({dede:field.id/});" class="btn btn-danger btn-sm"><i class="fa fa-trash" title="删除"></i></a>
</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="7">
<a href="javascript:selAll();" class="btn btn-success btn-sm">全选</a>
<a href="javascript:noSelAll();" class="btn btn-success btn-sm">取消</a>
<a href="javascript:moveArc(0);" class="btn btn-success btn-sm">还原</a>
<a href="javascript:delArc(0);" class="btn btn-danger btn-sm">删除</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">文档回收站</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">文档回收站</div>
<div class="card-body">
<form name="form2">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">id</td>
<td scope="col">选择</td>
<td scope="col">文档标题</td>
<td scope="col">栏目</td>
<td scope="col">更新时间</td>
<td scope="col">点击</td>
<td scope="col">操作</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td>{dede:field.id/}</td>
<td><input type="checkbox" name="arcID" value="{dede:field.id/}"></td>
<td align="left"><a href="archives_do.php?aid={dede:field.id/}&dopost=editArchives">{dede:field.title/}</a></td>
<td>{dede:field.typename/}</td>
<td>{dede:field.senddate function='GetDateMk(@me)'/}</td>
<td>{dede:field.click/}</td>
<td>
<a href="javascript:moveArc({dede:field.id/});" class="btn btn-light btn-sm"><i class="fa fa-repeat" title="还原"></i></a>
<a href="javascript:delArc({dede:field.id/});" class="btn btn-danger btn-sm"><i class="fa fa-trash" title="删除"></i></a>
</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="7">
<a href="javascript:selAll();" class="btn btn-success btn-sm">全选</a>
<a href="javascript:noSelAll();" class="btn btn-success btn-sm">取消</a>
<a href="javascript:moveArc(0);" class="btn btn-success btn-sm">还原</a>
<a href="javascript:delArc(0);" class="btn btn-danger btn-sm">删除</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
</div>
</div>
</div>
<script>


+ 12
- 10
src/admin/templets/search_keywords_main.htm View File

@@ -134,16 +134,18 @@
</script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">搜索关键词管理</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">搜索关键词管理</div>
<div id="rslist" class="card-body">
<?php GetKeywordList($dsql,$pageno,$pagesize,$orderby);?>
<div id="pagelist">
<script>ReloadPageNum(1);</script>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">搜索关键词管理</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">搜索关键词管理</div>
<div id="rslist" class="card-body">
<?php GetKeywordList($dsql,$pageno,$pagesize,$orderby);?>
<div id="pagelist">
<script>ReloadPageNum(1);</script>
</div>
</div>
</div>
</div>


+ 321
- 319
src/admin/templets/soft_add.htm View File

@@ -35,331 +35,333 @@
</script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">文档列表</a></li>
<li class="breadcrumb-item active">发布软件文档</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">发布软件文档</div>
<div class="card-body">
<form name="form1" action="soft_add.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="dopost" value="save">
<input type="hidden" name="channelid" value="<?php echo $channelid?>">
<input type="hidden" name="cid" value="<?php echo $cid;?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="160">软件标题</td>
<td width="650"><input type="text" name="title" id="title" class="admin-input-lg" required></td>
<td width="160">简略标题</td>
<td><input type="text" name="shorttitle" id="shorttitle" class="admin-input-sm"></td>
</tr>
<tr>
<td>自定义属性</td>
<td colspan="3">
<?php
$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
if ($trow->att=='j')
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'> {$trow->attname}[{$trow->att}]</label> ";
else
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> ";
}
?>
</td>
</tr>
<tr id="redirecturltr" style="display:none">
<td>跳转网址</td>
<td colspan="3"><input type="text" name="redirecturl" id="redirecturl" class="admin-input-lg"></td>
</tr>
<tr>
<td>标签</td>
<td><input type="text" name="tags" id="tags" onChange="$Obj('keywords').value=this.value;" class="admin-input-lg">(英文逗号隔开,如:DedeBIZ,得德)</td>
<td>权重</td>
<td><input type="text" name="weight" id="weight" value="<?php echo $maxWright['cc'];?>" class="admin-input-sm">(越小越靠前)</td>
</tr>
<tr id="pictable">
<td>缩略图</td>
<td colspan="3">
<input type="text" name="picname" id="picname" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
<img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md ml-3">
</td>
</tr>
<tr>
<td>来源</td>
<td>
<input type="text" name="source" id="source" class="admin-input-sm">
<button type="button" name="selsource" id="selsource" class="btn btn-success btn-sm">选择</button>
</td>
<td>编辑</td>
<td>
<input type="text" name="writer" id="writer" class="admin-input-sm">
<button type="button" name="selwriter" id="selwriter" class="btn btn-success btn-sm">选择</button>
</td>
</tr>
<tr>
<td>发布栏目</td>
<td>
<span id="typeidct">
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">文档列表</a></li>
<li class="breadcrumb-item active">发布软件文档</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">发布软件文档</div>
<div class="card-body">
<form name="form1" action="soft_add.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="dopost" value="save">
<input type="hidden" name="channelid" value="<?php echo $channelid?>">
<input type="hidden" name="cid" value="<?php echo $cid;?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="160">软件标题</td>
<td width="650"><input type="text" name="title" id="title" class="admin-input-lg" required></td>
<td width="160">简略标题</td>
<td><input type="text" name="shorttitle" id="shorttitle" class="admin-input-sm"></td>
</tr>
<tr>
<td>自定义属性</td>
<td colspan="3">
<?php
$typeOptions = GetOptionList($cid,$cuserLogin->getUserChannel(),$channelid);
echo "<select name='typeid' id='typeid' class='admin-input-sm'>";
echo "<option value='0'>请选择文档栏目</option>";
echo $typeOptions;
echo "</select>";
$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
if ($trow->att=='j')
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'> {$trow->attname}[{$trow->att}]</label> ";
else
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> ";
}
?>
</span>
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid');" class="btn btn-success btn-sm">选择</a>
<?php if ($cfg_need_typeid2=='Y') {echo "<a href='javascript:AddTypeid2();' class='btn btn-success btn-sm'>副栏目</a>";}?>
</td>
<td>金币</td>
<td><input type="text" name="needmoney" id="needmoney" value="<?php echo $softconfig['dfywboy'];?>" class="admin-input-sm"></td>
</tr>
<tr id="typeid2tr" style="display:none">
<td>副栏目</td>
<td colspan="3">
<span id="typeid2ct"></span>
<input type="text" name="typeid2" id="typeid2" class="admin-input-sm">
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid2');" class="btn btn-success btn-sm">选择</a>
</td>
</tr>
<tr>
<td>关键词</td>
<td colspan="3">
<input type="text" name="keywords" id="keywords" class="admin-input-lg">
<label><input type="checkbox" name="autokey" onclick="ShowHide('keywords');" id="autokey" value="1" <?php if ($cfg_arc_autokeyword=='Y') echo 'checked';?>> 自动获取</label>
<button type="button" class="btn btn-success btn-sm" onclick="SelectKeywords('form1.keywords');">选择</button>
</td>
</tr>
<tr>
<td>描述</td>
<td colspan="3"><textarea name="description" id="description" class="admin-textarea-sm"></textarea></td>
</tr>
<tr>
<td>附加选项</td>
<td colspan="3">
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo 'checked';?>> 下载远程图片和资源</label>
<label><input type="checkbox" name="dellink" id="dellink" value="1" <?php if ($cfg_arc_dellink=='Y') echo 'checked';?>> 删除非站内链接</label>
<a href="javascript:OpenMyWin('article_allowurl_edit.php');">[配置]</a>
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo 'checked';?>> 提取第一个图片为缩略图</label>
</td>
</tr>
<tr>
<td>运行环境</td>
<td><input type="text" name="os" value="win7,win10,win11" class="admin-input-lg"></td>
<td>文件类型</td>
<td>
<select name="filetype" id="filetype" class="admin-input-sm">
<option value=".exe" selected>.exe</option>
<option value=".zip">.zip</option>
<option value=".rar">.rar</option>
<option value=".iso">.iso</option>
<option value=".gz">.gz</option>
<option value="其它">其它</option>
</select>
</td>
</tr>
<tr>
<td>软件等级</td>
<td>
<select name="softrank" id="softrank" class="admin-input-sm">
<option value="1">一星</option>
<option value="2">二星</option>
<option value="3" selected>三星 </option>
<option value="4">四星</option>
<option value="5">五星</option>
</select>
</td>
<td>软件属性</td>
<td>
<select name="softtype" id="softtype" class="admin-input-sm">
<option value="国产软件" selected>国产软件</option>
<option value="国外软件">国外软件</option>
<option value="汉化补丁">汉化补丁</option>
</select>
</td>
</tr>
<tr>
<td>界面语言</td>
<td>
<select name="language" id="language" class="admin-input-sm">
<option value="简体中文" selected>简体中文</option>
<option value="英文软件">英文软件</option>
<option value="繁体中文">繁体中文</option>
<option value="其它类型">其它类型</option>
</select>
</td>
<td>授权方式</td>
<td>
<select name="accredit" id="accredit" class="admin-input-sm">
<option value="共享软件" selected>共享软件</option>
<option value="免费软件">免费软件</option>
<option value="开源软件">开源软件</option>
<option value="商业软件">商业软件</option>
<option value="破解软件">破解软件</option>
<option value="游戏外挂">游戏外挂</option>
</select>
</td>
</tr>
<tr>
<td>官方网址</td>
<td><input type="text" name="officialUrl" id="officialUrl" class="admin-input-lg" placeholder="请输入演示网址http开头"></td>
<td>演示网址</td>
<td><input type="text" name="officialDemo" id="officialDemo" class="admin-input-lg" placeholder="请填写演示网址"></td>
</tr>
<tr>
<td>软件大小</td>
<td>
<input type="text" name="softsize" id="softsize" class="admin-input-sm">
<select name="unit" id="unit">
<option value="MB" selected>MB</option>
<option value="KB">KB</option>
<option value="GB">GB</option>
</select>
<label><input type="checkbox" name="autosize" id="autosize" value="1" checked> 自动获取</label>
</td>
<td>需会员权限</td>
<td>
<select name="daccess" id="daccess" class="admin-input-sm">
</td>
</tr>
<tr id="redirecturltr" style="display:none">
<td>跳转网址</td>
<td colspan="3"><input type="text" name="redirecturl" id="redirecturl" class="admin-input-lg"></td>
</tr>
<tr>
<td>标签</td>
<td><input type="text" name="tags" id="tags" onChange="$Obj('keywords').value=this.value;" class="admin-input-lg">(英文逗号隔开,如:DedeBIZ,得德)</td>
<td>权重</td>
<td><input type="text" name="weight" id="weight" value="<?php echo $maxWright['cc'];?>" class="admin-input-sm">(越小越靠前)</td>
</tr>
<tr id="pictable">
<td>缩略图</td>
<td colspan="3">
<input type="text" name="picname" id="picname" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
<img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md ml-3">
</td>
</tr>
<tr>
<td>来源</td>
<td>
<input type="text" name="source" id="source" class="admin-input-sm">
<button type="button" name="selsource" id="selsource" class="btn btn-success btn-sm">选择</button>
</td>
<td>编辑</td>
<td>
<input type="text" name="writer" id="writer" class="admin-input-sm">
<button type="button" name="selwriter" id="selwriter" class="btn btn-success btn-sm">选择</button>
</td>
</tr>
<tr>
<td>发布栏目</td>
<td>
<span id="typeidct">
<?php
$typeOptions = GetOptionList($cid,$cuserLogin->getUserChannel(),$channelid);
echo "<select name='typeid' id='typeid' class='admin-input-sm'>";
echo "<option value='0'>请选择文档栏目</option>";
echo $typeOptions;
echo "</select>";
?>
</span>
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid');" class="btn btn-success btn-sm">选择</a>
<?php if ($cfg_need_typeid2=='Y') {echo "<a href='javascript:AddTypeid2();' class='btn btn-success btn-sm'>副栏目</a>";}?>
</td>
<td>金币</td>
<td><input type="text" name="needmoney" id="needmoney" value="<?php echo $softconfig['dfywboy'];?>" class="admin-input-sm"></td>
</tr>
<tr id="typeid2tr" style="display:none">
<td>副栏目</td>
<td colspan="3">
<span id="typeid2ct"></span>
<input type="text" name="typeid2" id="typeid2" class="admin-input-sm">
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid2');" class="btn btn-success btn-sm">选择</a>
</td>
</tr>
<tr>
<td>关键词</td>
<td colspan="3">
<input type="text" name="keywords" id="keywords" class="admin-input-lg">
<label><input type="checkbox" name="autokey" onclick="ShowHide('keywords');" id="autokey" value="1" <?php if ($cfg_arc_autokeyword=='Y') echo 'checked';?>> 自动获取</label>
<button type="button" class="btn btn-success btn-sm" onclick="SelectKeywords('form1.keywords');">选择</button>
</td>
</tr>
<tr>
<td>描述</td>
<td colspan="3"><textarea name="description" id="description" class="admin-textarea-sm"></textarea></td>
</tr>
<tr>
<td>附加选项</td>
<td colspan="3">
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo 'checked';?>> 下载远程图片和资源</label>
<label><input type="checkbox" name="dellink" id="dellink" value="1" <?php if ($cfg_arc_dellink=='Y') echo 'checked';?>> 删除非站内链接</label>
<a href="javascript:OpenMyWin('article_allowurl_edit.php');">[配置]</a>
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo 'checked';?>> 提取第一个图片为缩略图</label>
</td>
</tr>
<tr>
<td>运行环境</td>
<td><input type="text" name="os" value="win7,win10,win11" class="admin-input-lg"></td>
<td>文件类型</td>
<td>
<select name="filetype" id="filetype" class="admin-input-sm">
<option value=".exe" selected>.exe</option>
<option value=".zip">.zip</option>
<option value=".rar">.rar</option>
<option value=".iso">.iso</option>
<option value=".gz">.gz</option>
<option value="其它">其它</option>
</select>
</td>
</tr>
<tr>
<td>软件等级</td>
<td>
<select name="softrank" id="softrank" class="admin-input-sm">
<option value="1">一星</option>
<option value="2">二星</option>
<option value="3" selected>三星 </option>
<option value="4">四星</option>
<option value="5">五星</option>
</select>
</td>
<td>软件属性</td>
<td>
<select name="softtype" id="softtype" class="admin-input-sm">
<option value="国产软件" selected>国产软件</option>
<option value="国外软件">国外软件</option>
<option value="汉化补丁">汉化补丁</option>
</select>
</td>
</tr>
<tr>
<td>界面语言</td>
<td>
<select name="language" id="language" class="admin-input-sm">
<option value="简体中文" selected>简体中文</option>
<option value="英文软件">英文软件</option>
<option value="繁体中文">繁体中文</option>
<option value="其它类型">其它类型</option>
</select>
</td>
<td>授权方式</td>
<td>
<select name="accredit" id="accredit" class="admin-input-sm">
<option value="共享软件" selected>共享软件</option>
<option value="免费软件">免费软件</option>
<option value="开源软件">开源软件</option>
<option value="商业软件">商业软件</option>
<option value="破解软件">破解软件</option>
<option value="游戏外挂">游戏外挂</option>
</select>
</td>
</tr>
<tr>
<td>官方网址</td>
<td><input type="text" name="officialUrl" id="officialUrl" class="admin-input-lg" placeholder="请输入演示网址http开头"></td>
<td>演示网址</td>
<td><input type="text" name="officialDemo" id="officialDemo" class="admin-input-lg" placeholder="请填写演示网址"></td>
</tr>
<tr>
<td>软件大小</td>
<td>
<input type="text" name="softsize" id="softsize" class="admin-input-sm">
<select name="unit" id="unit">
<option value="MB" selected>MB</option>
<option value="KB">KB</option>
<option value="GB">GB</option>
</select>
<label><input type="checkbox" name="autosize" id="autosize" value="1" checked> 自动获取</label>
</td>
<td>需会员权限</td>
<td>
<select name="daccess" id="daccess" class="admin-input-sm">
<?php
$dsql->SetQuery("SELECT * FROM `#@__arcrank` WHERE `rank` >= 0 ");
$dsql->Execute();
while($row = $dsql->GetArray())
{
if ($row['rank']==0) $row['membername'] = "不限会员";
if ($row['rank'] == $softconfig['dfrank']) echo "<option value='{$row['rank']}' selected>{$row['membername']}</option>";
else echo "<option value='{$row['rank']}'>{$row['membername']}</option>";
}
?>
</select>
<a href="soft_config.php" class="btn btn-success btn-sm">软件下载设置</a>
</td>
</tr>
<tr>
<td>本地上传</td>
<td>
<input type="text" name="softurl1" id="softurl1" class="admin-input-lg">
<button type="button" name="sel1" id="sel1" class="btn btn-success btn-sm" onclick="SelectSoft('form1.softurl1')">选择</button>
</td>
<td>下载名称</td>
<td><input type="text" name="servermsg1" id="servermsg1" value="本地下载" class="admin-input-sm"></td>
</tr>
<tr>
<td>链接上传</td>
<td colspan="3">
<input type="text" name="picnum" id="picnum" value="5" class="admin-input-sm">
<button type="button" class="btn btn-success btn-sm" onclick="MakeUpload();">添加网址</button>
<button type="button" class="btn btn-success btn-sm" onclick="ShowHideAddr();">隐藏网址</button>
<div id="morelink" style="display:block">
<div id="uploadfield"></div>
</div>
</td>
</tr>
<?php if ($softconfig['moresitedo'] == 0 && trim($softconfig['sites']) != '') {?>
<tr>
<td>镜像上传</td>
<td colspan="3">
<?php
$dsql->SetQuery("SELECT * FROM `#@__arcrank` WHERE `rank` >= 0 ");
$dsql->Execute();
while($row = $dsql->GetArray())
$sites = explode("\n", $softconfig['sites']);
$startNum = 2;
foreach($sites as $site)
{
if ($row['rank']==0) $row['membername'] = "不限会员";
if ($row['rank'] == $softconfig['dfrank']) echo "<option value='{$row['rank']}' selected>{$row['membername']}</option>";
else echo "<option value='{$row['rank']}'>{$row['membername']}</option>";
$site = trim($site);
if (empty($site)) continue;
list($siteurl, $sitename) = explode('|', $site);
$siteurl = trim($siteurl);
$sitename = trim($sitename);
?>
<div class="my-2">
<input type="hidden" name="forconfig<?php echo $startNum;?>" value="1">
<label>镜像域名:<input type="text" name="softurlfirst<?php echo $startNum;?>" class="admin-input-lg" value="<?php echo $siteurl;?>"></label>
<label>镜像目录:<input type="text" name="softurl<?php echo $startNum;?>" class="admin-input-sm"></label>
<label>镜像名称:<input type="text" name="servermsg<?php echo $startNum;?>" class="admin-input-sm" value="<?php echo $sitename;?>"></label>
<label><input type="checkbox" name="need<?php echo $startNum;?>" value="1"> 启用</label>
</div>
<?php
$startNum++;
}
echo "<script>startNum = $startNum;</script>";
?>
</td>
</tr>
<?php }?>
<?php PrintAutoFieldsAdd($cInfos['fieldset'],'autofield');?>
<tr>
<td colspan="4"><?php GetEditor('body','',350,'Small');?></td>
</tr>
<tr>
<td>评论选项</td>
<td>
<label><input type="radio" name="notpost" value="0" <?php if ($cfg_feedback_forbid=='N') echo 'checked';?>> 允许评论</label>
<label><input type="radio" name="notpost" value="1" <?php if ($cfg_feedback_forbid=='Y') echo 'checked';?>> 禁止评论</label>
</td>
<td>发布选项</td>
<td>
<label><input type="radio" name="ishtml" value="1" checked> 静态浏览</label>
<label><input type="radio" name="ishtml" value="0"> 动态浏览</label>
</td>
</tr>
<tr>
<td>文档排序</td>
<td>
<select name="sortup" id="sortup" class="admin-input-sm">
<option value="0" selected>默认排序</option>
<option value="7">置顶一周</option>
<option value="30">置顶一个月</option>
<option value="90">置顶三个月</option>
<option value="180">置顶半年</option>
<option value="360">置顶一年</option>
</select>
</td>
<td>标题颜色</td>
<td>
<input type="text" name="color" id="color" class="admin-input-sm">
<button type="button" name="modcolor" id="modcolor" class="btn btn-success btn-sm" onclick="ShowColor(event,this)">选择</button>
</td>
</tr>
<tr>
<td>浏览权限</td>
<td>
<select name="arcrank" id="arcrank" class="admin-input-sm">
<option value="0">已审核状态</option>
<option value="-1">待审核状态</option>
</select>
<span>(暂不支持静态)</span>
</td>
<td>文件名称</td>
<td><input type="text" name="filename" id="filename" class="admin-input-sm">(不包括文件扩展名)</td>
</tr>
<tr>
<td>发布时间</td>
<td>
<?php
$nowtime = GetDateTimeMk(time());
echo "<input type='text' name='pubdate' value='$nowtime' id='pubdate' class='datepicker admin-input-sm'>";
?>
</select>
<a href="soft_config.php" class="btn btn-success btn-sm">软件下载设置</a>
</td>
</tr>
<tr>
<td>本地上传</td>
<td>
<input type="text" name="softurl1" id="softurl1" class="admin-input-lg">
<button type="button" name="sel1" id="sel1" class="btn btn-success btn-sm" onclick="SelectSoft('form1.softurl1')">选择</button>
</td>
<td>下载名称</td>
<td><input type="text" name="servermsg1" id="servermsg1" value="本地下载" class="admin-input-sm"></td>
</tr>
<tr>
<td>链接上传</td>
<td colspan="3">
<input type="text" name="picnum" id="picnum" value="5" class="admin-input-sm">
<button type="button" class="btn btn-success btn-sm" onclick="MakeUpload();">添加网址</button>
<button type="button" class="btn btn-success btn-sm" onclick="ShowHideAddr();">隐藏网址</button>
<div id="morelink" style="display:block">
<div id="uploadfield"></div>
</div>
</td>
</tr>
<?php if ($softconfig['moresitedo'] == 0 && trim($softconfig['sites']) != '') {?>
<tr>
<td>镜像上传</td>
<td colspan="3">
<?php
$sites = explode("\n", $softconfig['sites']);
$startNum = 2;
foreach($sites as $site)
{
$site = trim($site);
if (empty($site)) continue;
list($siteurl, $sitename) = explode('|', $site);
$siteurl = trim($siteurl);
$sitename = trim($sitename);
?>
<div class="my-2">
<input type="hidden" name="forconfig<?php echo $startNum;?>" value="1">
<label>镜像域名:<input type="text" name="softurlfirst<?php echo $startNum;?>" class="admin-input-lg" value="<?php echo $siteurl;?>"></label>
<label>镜像目录:<input type="text" name="softurl<?php echo $startNum;?>" class="admin-input-sm"></label>
<label>镜像名称:<input type="text" name="servermsg<?php echo $startNum;?>" class="admin-input-sm" value="<?php echo $sitename;?>"></label>
<label><input type="checkbox" name="need<?php echo $startNum;?>" value="1"> 启用</label>
</div>
<?php
$startNum++;
}
echo "<script>startNum = $startNum;</script>";
?>
</td>
</tr>
<?php }?>
<?php PrintAutoFieldsAdd($cInfos['fieldset'],'autofield');?>
<tr>
<td colspan="4"><?php GetEditor('body','',350,'Small');?></td>
</tr>
<tr>
<td>评论选项</td>
<td>
<label><input type="radio" name="notpost" value="0" <?php if ($cfg_feedback_forbid=='N') echo 'checked';?>> 允许评论</label>
<label><input type="radio" name="notpost" value="1" <?php if ($cfg_feedback_forbid=='Y') echo 'checked';?>> 禁止评论</label>
</td>
<td>发布选项</td>
<td>
<label><input type="radio" name="ishtml" value="1" checked> 静态浏览</label>
<label><input type="radio" name="ishtml" value="0"> 动态浏览</label>
</td>
</tr>
<tr>
<td>文档排序</td>
<td>
<select name="sortup" id="sortup" class="admin-input-sm">
<option value="0" selected>默认排序</option>
<option value="7">置顶一周</option>
<option value="30">置顶一个月</option>
<option value="90">置顶三个月</option>
<option value="180">置顶半年</option>
<option value="360">置顶一年</option>
</select>
</td>
<td>标题颜色</td>
<td>
<input type="text" name="color" id="color" class="admin-input-sm">
<button type="button" name="modcolor" id="modcolor" class="btn btn-success btn-sm" onclick="ShowColor(event,this)">选择</button>
</td>
</tr>
<tr>
<td>浏览权限</td>
<td>
<select name="arcrank" id="arcrank" class="admin-input-sm">
<option value="0">已审核状态</option>
<option value="-1">待审核状态</option>
</select>
<span>(暂不支持静态)</span>
</td>
<td>文件名称</td>
<td><input type="text" name="filename" id="filename" class="admin-input-sm">(不包括文件扩展名)</td>
</tr>
<tr>
<td>发布时间</td>
<td>
<?php
$nowtime = GetDateTimeMk(time());
echo "<input type='text' name='pubdate' value='$nowtime' id='pubdate' class='datepicker admin-input-sm'>";
?>
</td>
<td>浏览次数</td>
<td><input type="text" name="click" value="<?php echo ($cfg_arc_click=='-1' ? mt_rand(1000, 6000):$cfg_arc_click);?>" class="admin-input-sm"></td>
</tr>
<tr>
<td colspan="4" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</td>
<td>浏览次数</td>
<td><input type="text" name="click" value="<?php echo ($cfg_arc_click=='-1' ? mt_rand(1000, 6000):$cfg_arc_click);?>" class="admin-input-sm"></td>
</tr>
<tr>
<td colspan="4" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>InitPage();</script>


+ 106
- 104
src/admin/templets/soft_config.htm View File

@@ -12,110 +12,112 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">软件下载设置</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">软件下载设置</div>
<div class="card-body">
<form name="form1" action="soft_config.php" method="post">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">链接显示方式</td>
<td>
<label><input type="radio" name="gotojump" value="0" <?php if ($row['gotojump']==0) echo " checked ";?>> 真实软件链接地址</label>
<label><input type="radio" name="gotojump" value="1" <?php if ($row['gotojump']==1) echo " checked ";?>> 字符软件链接地址</label>
</td>
</tr>
<tr>
<td>软件下载方式</td>
<td>
<label><input type="radio" name="downtype" value="0" <?php if ($row['downtype']==0) echo " checked ";?>> 当前软件发布页</label>
<label><input type="radio" name="downtype" value="1" <?php if ($row['downtype']==1) echo " checked ";?>> 链接到地址列表页</label>
</td>
</tr>
<tr>
<td>是否启用镜像站点</td>
<td>
<label><input type="radio" name="ismoresite" value="1" <?php if ($row['ismoresite']==1) echo " checked ";?>> 启用</label>
<label><input type="radio" name="ismoresite" value="0" <?php if ($row['ismoresite']==0) echo " checked ";?>> 不启用</label>
</td>
</tr>
<tr>
<td>启用镜像站点后是否保留本地下载</td>
<td>
<label><input type="radio" name="islocal" value="1" <?php if ($row['islocal']==1) echo " checked ";?>> 保留</label>
<label><input type="radio" name="islocal" value="0" <?php if ($row['islocal']==0) echo " checked ";?>> 不保留</label>
</td>
</tr>
<tr>
<td>镜像处理方式</td>
<td>
<label><input type="radio" name="moresitedo" value="1" <?php if ($row['moresitedo']==1) echo " checked ";?>> 本地地址和服务器列表自动生成</label>
<label><input type="radio" name="moresitedo" value="0" <?php if ($row['moresitedo']==0) echo " checked ";?>> 按服务器生成列表由我手工填写</label>
</td>
</tr>
<tr>
<td>下载默认等级</td>
<td>
<select name="dfrank" id="dfrank" class="admin-input-sm">
<?php
$urank = $cuserLogin->getUserRank();
$dsql->SetQuery("SELECT * FROM `#@__arcrank` WHERE `rank` >= 0 ");
$dsql->Execute();
while($nrow = $dsql->GetArray())
{
if ($nrow['rank']==0) $nrow['membername'] = "开放下载";
if ($nrow['rank']==$row['dfrank']) echo "<option value='{$nrow['rank']}' selected>{$nrow['membername']}</option>";
else echo "<option value='{$nrow['rank']}'>{$nrow['membername']}</option>";
}
?>
</select>
</td>
</tr>
<tr>
<td>下载默认金币</td>
<td><input type="text" name="dfywboy" value="<?php echo $row['dfywboy'];?>" class="admin-input-sm"></td>
</tr>
<tr>
<td>参数限制方式</td>
<td>
<label><input type="radio" name="argrange" value="0" <?php if ($row['argrange']==0) echo " checked ";?>> 所有软件重新选择权限</label>
<label><input type="radio" name="argrange" value="1" <?php if ($row['argrange']==1) echo " checked ";?>> 所有软件均使用此权限</label>
</td>
</tr>
<tr>
<td>镜像服务器列表</td>
<td>
<input type="text" name="serverurl" id="serverurl" placeholder="请输入镜像网站">
<input type="text" name="servername" id="servername" placeholder="请输入镜像目录">
<input type="text" name="servertype" id="servertype" value="默认下载地址">
<button type="button" onclick="AddServer();" class="btn btn-success btn-sm">添加一项</button>
</td>
</tr>
<tr>
<td colspan="2"><textarea name="sites" id="sites" class="admin-textarea-xl"><?php echo $row['sites'];?></textarea></td>
</tr>
<tr>
<td colspan="2">下载说明</td>
</tr>
<tr>
<td colspan="2"><?php GetEditor('downmsg',$row['downmsg'],400);?></td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">软件下载设置</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">软件下载设置</div>
<div class="card-body">
<form name="form1" action="soft_config.php" method="post">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="260">链接显示方式</td>
<td>
<label><input type="radio" name="gotojump" value="0" <?php if ($row['gotojump']==0) echo " checked ";?>> 真实软件链接地址</label>
<label><input type="radio" name="gotojump" value="1" <?php if ($row['gotojump']==1) echo " checked ";?>> 字符软件链接地址</label>
</td>
</tr>
<tr>
<td>软件下载方式</td>
<td>
<label><input type="radio" name="downtype" value="0" <?php if ($row['downtype']==0) echo " checked ";?>> 当前软件发布页</label>
<label><input type="radio" name="downtype" value="1" <?php if ($row['downtype']==1) echo " checked ";?>> 链接到地址列表页</label>
</td>
</tr>
<tr>
<td>是否启用镜像站点</td>
<td>
<label><input type="radio" name="ismoresite" value="1" <?php if ($row['ismoresite']==1) echo " checked ";?>> 启用</label>
<label><input type="radio" name="ismoresite" value="0" <?php if ($row['ismoresite']==0) echo " checked ";?>> 不启用</label>
</td>
</tr>
<tr>
<td>启用镜像站点后是否保留本地下载</td>
<td>
<label><input type="radio" name="islocal" value="1" <?php if ($row['islocal']==1) echo " checked ";?>> 保留</label>
<label><input type="radio" name="islocal" value="0" <?php if ($row['islocal']==0) echo " checked ";?>> 不保留</label>
</td>
</tr>
<tr>
<td>镜像处理方式</td>
<td>
<label><input type="radio" name="moresitedo" value="1" <?php if ($row['moresitedo']==1) echo " checked ";?>> 本地地址和服务器列表自动生成</label>
<label><input type="radio" name="moresitedo" value="0" <?php if ($row['moresitedo']==0) echo " checked ";?>> 按服务器生成列表由我手工填写</label>
</td>
</tr>
<tr>
<td>下载默认等级</td>
<td>
<select name="dfrank" id="dfrank" class="admin-input-sm">
<?php
$urank = $cuserLogin->getUserRank();
$dsql->SetQuery("SELECT * FROM `#@__arcrank` WHERE `rank` >= 0 ");
$dsql->Execute();
while($nrow = $dsql->GetArray())
{
if ($nrow['rank']==0) $nrow['membername'] = "开放下载";
if ($nrow['rank']==$row['dfrank']) echo "<option value='{$nrow['rank']}' selected>{$nrow['membername']}</option>";
else echo "<option value='{$nrow['rank']}'>{$nrow['membername']}</option>";
}
?>
</select>
</td>
</tr>
<tr>
<td>下载默认金币</td>
<td><input type="text" name="dfywboy" value="<?php echo $row['dfywboy'];?>" class="admin-input-sm"></td>
</tr>
<tr>
<td>参数限制方式</td>
<td>
<label><input type="radio" name="argrange" value="0" <?php if ($row['argrange']==0) echo " checked ";?>> 所有软件重新选择权限</label>
<label><input type="radio" name="argrange" value="1" <?php if ($row['argrange']==1) echo " checked ";?>> 所有软件均使用此权限</label>
</td>
</tr>
<tr>
<td>镜像服务器列表</td>
<td>
<input type="text" name="serverurl" id="serverurl" placeholder="请输入镜像网站">
<input type="text" name="servername" id="servername" placeholder="请输入镜像目录">
<input type="text" name="servertype" id="servertype" value="默认下载地址">
<button type="button" onclick="AddServer();" class="btn btn-success btn-sm">添加一项</button>
</td>
</tr>
<tr>
<td colspan="2"><textarea name="sites" id="sites" class="admin-textarea-xl"><?php echo $row['sites'];?></textarea></td>
</tr>
<tr>
<td colspan="2">下载说明</td>
</tr>
<tr>
<td colspan="2"><?php GetEditor('downmsg',$row['downmsg'],400);?></td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>


+ 281
- 279
src/admin/templets/soft_edit.htm View File

@@ -34,292 +34,294 @@
</script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">文档列表</a></li>
<li class="breadcrumb-item active">修改软件文档</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改<?php echo $arcRow['title'];?>文档</div>
<div class="card-body">
<form name="form1" action="soft_edit.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="dopost" value="save">
<input type="hidden" name="channelid" value="<?php echo $channelid?>">
<input type="hidden" name="id" value="<?php echo $aid?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="160">软件标题</td>
<td width="650"><input type="text" name="title" id="title" value="<?php echo $arcRow['title'];?>" class="admin-input-lg"></td>
<td width="160">简略标题</td>
<td><input type="text" name="shorttitle" id="shorttitle" value="<?php echo $arcRow['shorttitle'];?>" class="admin-input-sm"></td>
</tr>
<tr>
<td>自定义属性</td>
<td colspan="3">
<?php
$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
if ($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'";
else $jumpclick = '';
if (preg_match("#".$trow->att."#",$arcRow['flag']))
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked> {$trow->attname}[{$trow->att}]</label> ";
else
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick}> {$trow->attname}[{$trow->att}]</label> ";
}
?>
</td>
</tr>
<tr id="redirecturltr" style="display:<?php echo (empty($addRow['redirecturl']) ? 'none' : 'table-row');?>">
<td>跳转网址</td>
<td colspan="3"><input type="text" name="redirecturl" id="redirecturl" value="<?php echo $addRow['redirecturl']?>" class="admin-input-lg"></td>
</tr>
<tr>
<td>标签</td>
<td><input type="text" name="tags" id="tags" value="<?php echo $tags;?>" class="admin-input-lg">(英文逗号隔开,如:DedeBIZ,得德)</td>
<td>权重</td>
<td><input type="text" name="weight" id="weight" value="<?php echo $arcRow['weight'];?>" class="admin-input-sm">(越小越靠前)</td>
</tr>
<tr id="pictable">
<td>缩略图</td>
<td colspan="3">
<input type="text" name="picname" id="picname" value="<?php echo $arcRow['litpic']?>" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
<img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '/static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md ml-3">
</td>
</tr>
<tr>
<td>来源</td>
<td>
<input type="text" name="source" id="source" value="<?php echo $arcRow['source']?>" class="admin-input-sm">
<button type="button" name="selsource" id="selsource" class="btn btn-success btn-sm">选择</button>
</td>
<td>编辑</td>
<td>
<input type="text" name="writer" id="writer" value="<?php echo $arcRow['writer']?>" class="admin-input-sm">
<button type="button" name="selwriter" id="selwriter" class="btn btn-success btn-sm">选择</button>
</td>
</tr>
<tr>
<td>发布栏目</td>
<td>
<?php
$typeOptions = GetOptionList($arcRow["typeid"],$cuserLogin->getUserChannel(),$channelid);
echo "<select name='typeid' id='typeid' class='admin-input-sm'>";
if ($arcRow["typeid"]=="0") echo "<option value='0' selected>请选择主分类</option>";
echo $typeOptions;
echo "</select>";
?>
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid','<?php echo $arcRow['typeid'];?>');" class="btn btn-success btn-sm">选择</a>
</td>
<td>金币</td>
<td><input type="text" name="needmoney" id="needmoney" value="<?php echo $needmoney;?>" class="admin-input-sm"></td>
</tr>
<?php if ($cfg_need_typeid2=='Y') {?>
<tr>
<td>副栏目</td>
<td colspan="3">
<span id="typeid2ct"></span>
<input type="text" name="typeid2" id="typeid2" value="<?php echo ($arcRow['typeid2']=='0' ? '' : $arcRow['typeid2']);?>" class="admin-input-sm">
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid2','<?php echo $arcRow['typeid2'];?>');" class="btn btn-success btn-sm">选择</a>
</td>
</tr>
<?php }?>
<tr>
<td>关键词</td>
<td colspan="3"><input type="text" name="keywords" id="keywords" value="<?php echo $arcRow['keywords']?>" class="admin-input-lg"></td>
</tr>
<tr>
<td>描述</td>
<td colspan="3"><textarea name="description" id="description" class="admin-textarea-sm"><?php echo $arcRow['description']?></textarea></td>
</tr>
<tr>
<td>附加选项</td>
<td colspan="3">
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo 'checked';?>> 下载远程图片和资源</label>
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo 'checked';?>> 提取第一个图片为缩略图</label>
</td>
</tr>
<tr>
<td>运行环境</td>
<td><input type="text" name="os" value="<?php echo $addRow['os']?>" class="admin-input-lg"></td>
<td>文件类型</td>
<td>
<select name="filetype" id="filetype" class="admin-input-sm">
<?php if ($addRow["filetype"]!="") echo "<option value=\"".$addRow["filetype"]."\">".$addRow['filetype']."</option>";?>
<option value=".exe">.exe</option>
<option value=".zip">.zip</option>
<option value=".rar">.rar</option>
<option value=".iso">.iso</option>
<option value=".gz">.gz</option>
<option value="其它">其它</option>
</select>
</td>
</tr>
<tr>
<td>软件等级</td>
<td>
<select name="softrank" id="softrank" class="admin-input-sm">
<?php if ($addRow["softrank"]!="") echo "<option value=\"".$addRow["softrank"]."\">".$addRow['softrank']."星</option>";?>
<option value="1">一星</option>
<option value="2">二星</option>
<option value="3">三星 </option>
<option value="4">四星</option>
<option value="5">五星</option>
</select>
</td>
<td>软件类型</td>
<td>
<select name="softtype" id="softtype" class="admin-input-sm">
<?php if ($addRow["softtype"]!="") echo "<option value=\"".$addRow["softtype"]."\">".$addRow['softtype']."</option>";?>
<option value="国产软件">国产软件</option>
<option value="国外软件">国外软件</option>
<option value="汉化补丁">汉化补丁</option>
</select>
</td>
</tr>
<tr>
<td>界面语言</td>
<td>
<select name="language" id="language" class="admin-input-sm">
<?php if ($addRow["language"]!="") echo "<option value=\"".$addRow["language"]."\">".$addRow['language']."</option>";?>
<option value="简体中文">简体中文</option>
<option value="英文软件">英文软件</option>
<option value="繁体中文">繁体中文</option>
<option value="其它类型">其它类型</option>
</select>
</td>
<td>授权方式</td>
<td>
<select name="accredit" id="accredit" class="admin-input-sm">
<?php if ($addRow["accredit"]!="") echo "<option value=\"".$addRow["accredit"]."\">".$addRow['accredit']."</option>";?>
<option value="共享软件">共享软件</option>
<option value="免费软件">免费软件</option>
<option value="开源软件">开源软件</option>
<option value="商业软件">商业软件</option>
<option value="破解软件">破解软件</option>
<option value="游戏外挂">游戏外挂</option>
</select>
</td>
</tr>
<tr>
<td>官方网址</td>
<td><input type="text" name="officialUrl" id="officialUrl" value="<?php echo $addRow['officialUrl']?>" class="admin-input-lg" placeholder="请输入演示网址http开头"></td>
<td>演示网址</td>
<td><input type="text" name="officialDemo" id="officialDemo" value="<?php echo $addRow['officialDemo']?>" class="admin-input-lg" placeholder="请填写演示网址"></td>
</tr>
<tr>
<td>软件大小</td>
<td><input name="softsize" type="text" id="softsize" value="<?php echo $addRow['softsize']?>" class="admin-input-sm"></td>
<td>需会员权限</td>
<td>
<select name="daccess" id="daccess" class="admin-input-sm">
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">文档列表</a></li>
<li class="breadcrumb-item active">修改软件文档</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改<?php echo $arcRow['title'];?>文档</div>
<div class="card-body">
<form name="form1" action="soft_edit.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="dopost" value="save">
<input type="hidden" name="channelid" value="<?php echo $channelid?>">
<input type="hidden" name="id" value="<?php echo $aid?>">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="160">软件标题</td>
<td width="650"><input type="text" name="title" id="title" value="<?php echo $arcRow['title'];?>" class="admin-input-lg"></td>
<td width="160">简略标题</td>
<td><input type="text" name="shorttitle" id="shorttitle" value="<?php echo $arcRow['shorttitle'];?>" class="admin-input-sm"></td>
</tr>
<tr>
<td>自定义属性</td>
<td colspan="3">
<?php
$dsql->SetQuery("SELECT * FROM `#@__arcrank` WHERE `rank` >= 0 ");
$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
$dsql->Execute();
while($row = $dsql->GetArray())
while($trow = $dsql->GetObject())
{
if ($row['rank']==0) $row['membername'] = "不限会员";
if ($row['rank'] == $daccess) echo "<option value='{$row['rank']}' selected>{$row['membername']}</option>";
else echo "<option value='{$row['rank']}'>{$row['membername']}</option>";
if ($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'";
else $jumpclick = '';
if (preg_match("#".$trow->att."#",$arcRow['flag']))
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked> {$trow->attname}[{$trow->att}]</label> ";
else
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick}> {$trow->attname}[{$trow->att}]</label> ";
}
?>
</select>
<a href="soft_config.php" class="btn btn-success btn-sm">软件下载设置</a>
</td>
</tr>
<tr>
<td>链接上传</td>
<td colspan="3">
<input type="text" name="picnum" id="picnum" class="admin-input-sm" value="5">
<button type="button" class="btn btn-success btn-sm" onclick="MakeUpload();">添加网址</button>
<button type="button" class="btn btn-success btn-sm" onclick="ShowHideAddr();">隐藏网址</button>
<?php echo $nForm;?>
<div id="morelink" style="display:block">
<div id="uploadfield"></div>
</div>
</td>
</tr>
<?php PrintAutoFieldsEdit($cInfos['fieldset'],$addRow,'autofield');?>
<tr>
<td colspan="4"><?php GetEditor('body',$addRow['introduce'],350,'Small');?></td>
</tr>
<tr>
<td>评论选项</td>
<td>
<label><input type="radio" name="notpost" value="0" <?php if ($arcRow['notpost']==0) echo 'checked';?>> 允许评论</label>
<label><input type="radio" name="notpost" value="1" <?php if ($arcRow['notpost']==1) echo 'checked';?>> 禁止评论</label>
</td>
<td>发布选项</td>
<td>
<label><input type="radio" name="ishtml" value="1" <?php if ($arcRow["ismake"]!=-1) echo 'checked';?>> 静态浏览</label>
<label><input type="radio" name="ishtml" value="0" <?php if ($arcRow["ismake"]==-1) echo 'checked';?>> 动态浏览</label>
</td>
</tr>
<tr>
<td>文档排序</td>
<td>
<select name="sortup" id="sortup" class="admin-input-sm">
</td>
</tr>
<tr id="redirecturltr" style="display:<?php echo (empty($addRow['redirecturl']) ? 'none' : 'table-row');?>">
<td>跳转网址</td>
<td colspan="3"><input type="text" name="redirecturl" id="redirecturl" value="<?php echo $addRow['redirecturl']?>" class="admin-input-lg"></td>
</tr>
<tr>
<td>标签</td>
<td><input type="text" name="tags" id="tags" value="<?php echo $tags;?>" class="admin-input-lg">(英文逗号隔开,如:DedeBIZ,得德)</td>
<td>权重</td>
<td><input type="text" name="weight" id="weight" value="<?php echo $arcRow['weight'];?>" class="admin-input-sm">(越小越靠前)</td>
</tr>
<tr id="pictable">
<td>缩略图</td>
<td colspan="3">
<input type="text" name="picname" id="picname" value="<?php echo $arcRow['litpic']?>" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
<img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '/static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md ml-3">
</td>
</tr>
<tr>
<td>来源</td>
<td>
<input type="text" name="source" id="source" value="<?php echo $arcRow['source']?>" class="admin-input-sm">
<button type="button" name="selsource" id="selsource" class="btn btn-success btn-sm">选择</button>
</td>
<td>编辑</td>
<td>
<input type="text" name="writer" id="writer" value="<?php echo $arcRow['writer']?>" class="admin-input-sm">
<button type="button" name="selwriter" id="selwriter" class="btn btn-success btn-sm">选择</button>
</td>
</tr>
<tr>
<td>发布栏目</td>
<td>
<?php
$subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]);
echo "<option value='0'>正常排序</option>";
if ($subday>0) echo "<option value='$subday' selected>置顶".$subday."天</option>";
$typeOptions = GetOptionList($arcRow["typeid"],$cuserLogin->getUserChannel(),$channelid);
echo "<select name='typeid' id='typeid' class='admin-input-sm'>";
if ($arcRow["typeid"]=="0") echo "<option value='0' selected>请选择主分类</option>";
echo $typeOptions;
echo "</select>";
?>
<option value="7">置顶一周</option>
<option value="30">置顶一个月</option>
<option value="90">置顶三个月</option>
<option value="180">置顶半年</option>
<option value="360">置顶一年</option>
</select>
</td>
<td>标题颜色</td>
<td>
<input type="text" name="color" id="color" value="<?php echo $arcRow['color']?>" class="admin-input-sm">
<button class='btn btn-success btn-sm' name="modcolor" type="button" id="modcolor" onclick="ShowColor(event,this)">选择</button>
</td>
</tr>
<tr>
<td>浏览权限</td>
<td>
<select name="arcrank" id="arcrank" class="admin-input-sm">
<option value='<?php echo $arcRow["arcrank"];?>'>
<?php echo ($arcRow["arcrank"]==0 ? '已审核状态' : $arcRow["rankname"]);?>
</option>
<option value='0'>已审核状态</option>
<option value='-1'>待审核状态</option>
</select>
<span>(暂不支持静态)</span>
</td>
<td>文件名称</td>
<td><input type="text" name="filename" id="filename" value="<?php echo $arcRow['filename']?>" class="admin-input-sm">(不包括文件扩展名)</td>
</tr>
<tr>
<td>更新时间</td>
<td>
<?php
$nowtime = GetDateTimeMk($arcRow["pubdate"]);
echo "<input type='text' name='pubdate' value='$nowtime' id='pubdate' class='datepicker admin-input-sm'>";
?>
</td>
<td>浏览次数</td>
<td><input type="text" name="click" value="<?php echo $arcRow['click'];?>" class="admin-input-sm"></td>
</tr>
<tr>
<td colspan="4" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid','<?php echo $arcRow['typeid'];?>');" class="btn btn-success btn-sm">选择</a>
</td>
<td>金币</td>
<td><input type="text" name="needmoney" id="needmoney" value="<?php echo $needmoney;?>" class="admin-input-sm"></td>
</tr>
<?php if ($cfg_need_typeid2=='Y') {?>
<tr>
<td>副栏目</td>
<td colspan="3">
<span id="typeid2ct"></span>
<input type="text" name="typeid2" id="typeid2" value="<?php echo ($arcRow['typeid2']=='0' ? '' : $arcRow['typeid2']);?>" class="admin-input-sm">
<a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid2','<?php echo $arcRow['typeid2'];?>');" class="btn btn-success btn-sm">选择</a>
</td>
</tr>
<?php }?>
<tr>
<td>关键词</td>
<td colspan="3"><input type="text" name="keywords" id="keywords" value="<?php echo $arcRow['keywords']?>" class="admin-input-lg"></td>
</tr>
<tr>
<td>描述</td>
<td colspan="3"><textarea name="description" id="description" class="admin-textarea-sm"><?php echo $arcRow['description']?></textarea></td>
</tr>
<tr>
<td>附加选项</td>
<td colspan="3">
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo 'checked';?>> 下载远程图片和资源</label>
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo 'checked';?>> 提取第一个图片为缩略图</label>
</td>
</tr>
<tr>
<td>运行环境</td>
<td><input type="text" name="os" value="<?php echo $addRow['os']?>" class="admin-input-lg"></td>
<td>文件类型</td>
<td>
<select name="filetype" id="filetype" class="admin-input-sm">
<?php if ($addRow["filetype"]!="") echo "<option value=\"".$addRow["filetype"]."\">".$addRow['filetype']."</option>";?>
<option value=".exe">.exe</option>
<option value=".zip">.zip</option>
<option value=".rar">.rar</option>
<option value=".iso">.iso</option>
<option value=".gz">.gz</option>
<option value="其它">其它</option>
</select>
</td>
</tr>
<tr>
<td>软件等级</td>
<td>
<select name="softrank" id="softrank" class="admin-input-sm">
<?php if ($addRow["softrank"]!="") echo "<option value=\"".$addRow["softrank"]."\">".$addRow['softrank']."星</option>";?>
<option value="1">一星</option>
<option value="2">二星</option>
<option value="3">三星 </option>
<option value="4">四星</option>
<option value="5">五星</option>
</select>
</td>
<td>软件类型</td>
<td>
<select name="softtype" id="softtype" class="admin-input-sm">
<?php if ($addRow["softtype"]!="") echo "<option value=\"".$addRow["softtype"]."\">".$addRow['softtype']."</option>";?>
<option value="国产软件">国产软件</option>
<option value="国外软件">国外软件</option>
<option value="汉化补丁">汉化补丁</option>
</select>
</td>
</tr>
<tr>
<td>界面语言</td>
<td>
<select name="language" id="language" class="admin-input-sm">
<?php if ($addRow["language"]!="") echo "<option value=\"".$addRow["language"]."\">".$addRow['language']."</option>";?>
<option value="简体中文">简体中文</option>
<option value="英文软件">英文软件</option>
<option value="繁体中文">繁体中文</option>
<option value="其它类型">其它类型</option>
</select>
</td>
<td>授权方式</td>
<td>
<select name="accredit" id="accredit" class="admin-input-sm">
<?php if ($addRow["accredit"]!="") echo "<option value=\"".$addRow["accredit"]."\">".$addRow['accredit']."</option>";?>
<option value="共享软件">共享软件</option>
<option value="免费软件">免费软件</option>
<option value="开源软件">开源软件</option>
<option value="商业软件">商业软件</option>
<option value="破解软件">破解软件</option>
<option value="游戏外挂">游戏外挂</option>
</select>
</td>
</tr>
<tr>
<td>官方网址</td>
<td><input type="text" name="officialUrl" id="officialUrl" value="<?php echo $addRow['officialUrl']?>" class="admin-input-lg" placeholder="请输入演示网址http开头"></td>
<td>演示网址</td>
<td><input type="text" name="officialDemo" id="officialDemo" value="<?php echo $addRow['officialDemo']?>" class="admin-input-lg" placeholder="请填写演示网址"></td>
</tr>
<tr>
<td>软件大小</td>
<td><input name="softsize" type="text" id="softsize" value="<?php echo $addRow['softsize']?>" class="admin-input-sm"></td>
<td>需会员权限</td>
<td>
<select name="daccess" id="daccess" class="admin-input-sm">
<?php
$dsql->SetQuery("SELECT * FROM `#@__arcrank` WHERE `rank` >= 0 ");
$dsql->Execute();
while($row = $dsql->GetArray())
{
if ($row['rank']==0) $row['membername'] = "不限会员";
if ($row['rank'] == $daccess) echo "<option value='{$row['rank']}' selected>{$row['membername']}</option>";
else echo "<option value='{$row['rank']}'>{$row['membername']}</option>";
}
?>
</select>
<a href="soft_config.php" class="btn btn-success btn-sm">软件下载设置</a>
</td>
</tr>
<tr>
<td>链接上传</td>
<td colspan="3">
<input type="text" name="picnum" id="picnum" class="admin-input-sm" value="5">
<button type="button" class="btn btn-success btn-sm" onclick="MakeUpload();">添加网址</button>
<button type="button" class="btn btn-success btn-sm" onclick="ShowHideAddr();">隐藏网址</button>
<?php echo $nForm;?>
<div id="morelink" style="display:block">
<div id="uploadfield"></div>
</div>
</td>
</tr>
<?php PrintAutoFieldsEdit($cInfos['fieldset'],$addRow,'autofield');?>
<tr>
<td colspan="4"><?php GetEditor('body',$addRow['introduce'],350,'Small');?></td>
</tr>
<tr>
<td>评论选项</td>
<td>
<label><input type="radio" name="notpost" value="0" <?php if ($arcRow['notpost']==0) echo 'checked';?>> 允许评论</label>
<label><input type="radio" name="notpost" value="1" <?php if ($arcRow['notpost']==1) echo 'checked';?>> 禁止评论</label>
</td>
<td>发布选项</td>
<td>
<label><input type="radio" name="ishtml" value="1" <?php if ($arcRow["ismake"]!=-1) echo 'checked';?>> 静态浏览</label>
<label><input type="radio" name="ishtml" value="0" <?php if ($arcRow["ismake"]==-1) echo 'checked';?>> 动态浏览</label>
</td>
</tr>
<tr>
<td>文档排序</td>
<td>
<select name="sortup" id="sortup" class="admin-input-sm">
<?php
$subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]);
echo "<option value='0'>正常排序</option>";
if ($subday>0) echo "<option value='$subday' selected>置顶".$subday."天</option>";
?>
<option value="7">置顶一周</option>
<option value="30">置顶一个月</option>
<option value="90">置顶三个月</option>
<option value="180">置顶半年</option>
<option value="360">置顶一年</option>
</select>
</td>
<td>标题颜色</td>
<td>
<input type="text" name="color" id="color" value="<?php echo $arcRow['color']?>" class="admin-input-sm">
<button class='btn btn-success btn-sm' name="modcolor" type="button" id="modcolor" onclick="ShowColor(event,this)">选择</button>
</td>
</tr>
<tr>
<td>浏览权限</td>
<td>
<select name="arcrank" id="arcrank" class="admin-input-sm">
<option value='<?php echo $arcRow["arcrank"];?>'>
<?php echo ($arcRow["arcrank"]==0 ? '已审核状态' : $arcRow["rankname"]);?>
</option>
<option value='0'>已审核状态</option>
<option value='-1'>待审核状态</option>
</select>
<span>(暂不支持静态)</span>
</td>
<td>文件名称</td>
<td><input type="text" name="filename" id="filename" value="<?php echo $arcRow['filename']?>" class="admin-input-sm">(不包括文件扩展名)</td>
</tr>
<tr>
<td>更新时间</td>
<td>
<?php
$nowtime = GetDateTimeMk($arcRow["pubdate"]);
echo "<input type='text' name='pubdate' value='$nowtime' id='pubdate' class='datepicker admin-input-sm'>";
?>
</td>
<td>浏览次数</td>
<td><input type="text" name="click" value="<?php echo $arcRow['click'];?>" class="admin-input-sm"></td>
</tr>
<tr>
<td colspan="4" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>InitPage();</script>


+ 205
- 203
src/admin/templets/spec_add.htm View File

@@ -56,211 +56,213 @@
</script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="content_s_list.php">专题列表</a></li>
<li class="breadcrumb-item active">发布专题</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">发布专题</div>
<div class="card-body">
<div class="alert alert-info">专题在主分类栏目显示,需要调用专题列表,标签{dede:arclist typeid='1,2,3' type='spec'}调用,请参考arclist标签</div>
<form name="form1" action="spec_add.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="dopost" value="save">
<input type="hidden" name="channelid" value="<?php echo $channelid?>">
<input type="hidden" name="arcrank" value="0">
<input type="hidden" name="source" value="本站">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="160">专题名称</td>
<td width="650"><input type="text" name="title" id="title" class="admin-input-lg" required></td>
<td width="160">简略标题</td>
<td><input type="text" name="shorttitle" id="shorttitle" class="admin-input-sm"></td>
</tr>
<tr>
<td>自定义属性</td>
<td colspan="3">
<?php
$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
if ($trow->att!='j') {
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> ";
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="content_s_list.php">专题列表</a></li>
<li class="breadcrumb-item active">发布专题</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">发布专题</div>
<div class="card-body">
<div class="alert alert-info">专题在主分类栏目显示,需要调用专题列表,标签{dede:arclist typeid='1,2,3' type='spec'}调用,请参考arclist标签</div>
<form name="form1" action="spec_add.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="dopost" value="save">
<input type="hidden" name="channelid" value="<?php echo $channelid?>">
<input type="hidden" name="arcrank" value="0">
<input type="hidden" name="source" value="本站">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="160">专题名称</td>
<td width="650"><input type="text" name="title" id="title" class="admin-input-lg" required></td>
<td width="160">简略标题</td>
<td><input type="text" name="shorttitle" id="shorttitle" class="admin-input-sm"></td>
</tr>
<tr>
<td>自定义属性</td>
<td colspan="3">
<?php
$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
if ($trow->att!='j') {
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> ";
}
}
}
?>
</td>
</tr>
<tr id="pictable">
<td>缩略图</td>
<td colspan="3">
<input type="text" name="picname" id="picname" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
<img id="litPic" src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md ml-3">
</td>
</tr>
<tr>
<td>作者</td>
<td colspan="3"><input type="text" name="writer" id="writer" class="admin-input-sm"></td>
</tr>
<tr>
<td>主分类</td>
<td colspan="3">
<?php
$typeOptions = GetOptionList($cid, $cuserLogin->getUserChannel(), 0);
echo "<select name='typeid' id='typeid' class='admin-input-sm'>";
echo "<option value='0'>请选择主分类</option>";
echo $typeOptions;
echo "</select>";
?>
<a href="javascript:ShowCatMap(event,this,0,'typeid');" class="btn btn-success btn-sm">选择</a>
</td>
</tr>
<tr>
<td>关键词</td>
<td colspan="3">
<input type="text" name="keywords" id="keywords" class="admin-input-lg">
<label><input type="checkbox" name="autokey" onclick="ShowHide('keywords');" ; id="autokey" value="1" <?php if ($cfg_arc_autokeyword=='Y') echo 'checked';?>> 自动获取</label>
<button type="button" class="btn btn-success btn-sm" onclick="SelectKeywords('form1.keywords');">选择</button>
</td>
</tr>
<tr>
<td>专题简介</td>
<td colspan="3"><textarea name="description" id="description" class="admin-textarea-sm"></textarea></td>
</tr>
<?php PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']),'autofield');?>
<tr>
<td colspan="4">
<table class="table">
<tbody>
<?php
$speclisttmp = GetSysTemplets("spec_arclist.htm");
$nodename = $nodeid = '';
for ($i=1;$i<=$cfg_specnote;$i++)
{
if ($i==1) {
$nodename = '默认节点';
$nodeid = 'default';
} else {
?>
</td>
</tr>
<tr id="pictable">
<td>缩略图</td>
<td colspan="3">
<input type="text" name="picname" id="picname" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
<img id="litPic" src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md ml-3">
</td>
</tr>
<tr>
<td>作者</td>
<td colspan="3"><input type="text" name="writer" id="writer" class="admin-input-sm"></td>
</tr>
<tr>
<td>主分类</td>
<td colspan="3">
<?php
$typeOptions = GetOptionList($cid, $cuserLogin->getUserChannel(), 0);
echo "<select name='typeid' id='typeid' class='admin-input-sm'>";
echo "<option value='0'>请选择主分类</option>";
echo $typeOptions;
echo "</select>";
?>
<a href="javascript:ShowCatMap(event,this,0,'typeid');" class="btn btn-success btn-sm">选择</a>
</td>
</tr>
<tr>
<td>关键词</td>
<td colspan="3">
<input type="text" name="keywords" id="keywords" class="admin-input-lg">
<label><input type="checkbox" name="autokey" onclick="ShowHide('keywords');" ; id="autokey" value="1" <?php if ($cfg_arc_autokeyword=='Y') echo 'checked';?>> 自动获取</label>
<button type="button" class="btn btn-success btn-sm" onclick="SelectKeywords('form1.keywords');">选择</button>
</td>
</tr>
<tr>
<td>专题简介</td>
<td colspan="3"><textarea name="description" id="description" class="admin-textarea-sm"></textarea></td>
</tr>
<?php PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']),'autofield');?>
<tr>
<td colspan="4">
<table class="table">
<tbody>
<?php
$speclisttmp = GetSysTemplets("spec_arclist.htm");
$nodename = $nodeid = '';
}
?>
<tr>
<td>节点<?php echo $i?>名称</td>
<td>
<input type="text" name="notename<?php echo $i?>" value="<?php echo $nodename;?>" id="notename<?php echo $i?>" class="admin-input-lg">
<label>节点标识:<input type="text" name="noteid<?php echo $i?>" alue="<?php echo $nodeid;?>" id="noteid<?php echo $i?>" class="admin-input-sm"></label>
</td>
</tr>
<tr>
<td>文档列表</td>
<td>
<textarea name="arcid<?php echo $i?>" onblur='CheckVal(<?php echo $i ?>)' id="arcid<?php echo $i?>" class="admin-textarea-sm"></textarea>
<button name="selarc<?php echo $i?>" type="button" id="selarc<?php echo $i?>2" class="btn btn-success btn-sm" onclick="SelectArcList('form1.arcid<?php echo $i?>');">选择节点文档</button>
</td>
</tr>
<tr>
<td>文档来源</td>
<td>
<label>栏目id:<input type="text" name="typeid<?php echo $i?>" id="_typeid<?php echo $i?>" value="0" class="admin-input-sm"></label>
<label>关键词:<input type="text" name="keywords<?php echo $i?>" id="keywords<?php echo $i?>" class="admin-input-lg">(英文逗号隔开)</label>
<label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="0" checked> 按文档列表</label>
<label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="1"> 自动获取文档</label>
</td>
</tr>
<tr>
<td>节点布局</td>
<td>
<label>列数:<input type="text" name="col<?php echo $i?>" id="col<?php echo $i?>" value="1" class="admin-input-sm"></label>
<label>图片宽:<input type="text" name="imgwidth<?php echo $i?>" id="imgwidth<?php echo $i?>" value="120" class="admin-input-sm"></label>
<label>图片高:<input type="text" name="imgheight<?php echo $i?>" id="imgheight<?php echo $i?>" value="90" class="admin-input-sm"></label>
<label>标题长:<input type="text" name="titlelen<?php echo $i?>" id="titlelen<?php echo $i?>" value="60" class="admin-input-sm"></label>
<label>简介长:<input type="text" name="infolen<?php echo $i?>" id="infolen<?php echo $i?>" value="160" class="admin-input-sm"></label>
<label>文档数:<input type="text" name="rownum<?php echo $i?>" id="rownum<?php echo $i?>" value="10" class="admin-input-sm"></label>
</td>
</tr>
<tr>
<td>应用样式</td>
<td><textarea name="listtmp<?php echo $i?>" id="listtmp<?php echo $i?>" class="admin-textarea-xl"><?php echo $speclisttmp?></textarea></td>
</tr>
<tr>
<td>应用模板</td>
<td>
<input type="text" name="notetemplet<?php echo $i?>" id="notetemplet<?php echo $i?>" value="system/channel_spec_note.htm" class="admin-input-lg">
<button type="button" name="selno<?php echo $i?>" class="btn btn-success btn-sm" onclick="SelectTemplets('form1.notetemplet<?php echo $i?>');">选择</button>
</td>
</tr>
<?php }?>
</tbody>
</table>
</td>
</tr>
<tr>
<td>评论选项</td>
<td>
<label><input type="radio" name="notpost" value="0" <?php if ($cfg_feedback_forbid=='N') echo 'checked';?>> 允许评论</label>
<label><input type="radio" name="notpost" value="1" <?php if ($cfg_feedback_forbid=='Y') echo 'checked';?>> 禁止评论</label>
</td>
<td>发布选项</td>
<td>
<label><input type="radio" name="ishtml" value="1" checked> 静态浏览</label>
<label><input type="radio" name="ishtml" value="0"> 动态浏览</label>
</td>
</tr>
<tr>
<td>文档排序</td>
<td>
<select name="sortup" id="sortup" class="admin-input-sm">
<option value="0" selected>默认排序</option>
<option value="7">置顶一周</option>
<option value="30">置顶一个月</option>
<option value="90">置顶三个月</option>
<option value="180">置顶半年</option>
<option value="360">置顶一年</option>
</select>
</td>
<td>标题颜色</td>
<td>
<input type="text" name="color" id="color" class="admin-input-sm">
<button type="button" name="modcolor" id="modcolor" class="btn btn-success btn-sm" onclick="ShowColor(event,this)">选择</button>
</td>
</tr>
<tr>
<td>专题模板</td>
<td>
<input type="text" name="templet" id="templet" value="<?php echo $cfg_df_style?>/article_spec.htm" class="admin-input-sm">
<button type="button" class="btn btn-success btn-sm" onclick="SelectTemplets('form1.templet');">选择</button>
</td>
<td>文件名称</td>
<td><input type="text" name="filename" id="filename" class="admin-input-sm">(不包括文件扩展名)</td>
</tr>
<tr>
<td>发布时间</td>
<td>
<?php
$nowtime = GetDateTimeMk(time());
echo "<input name='pubdate' value='$nowtime' type='text' id='pubdate' class='datepicker admin-input-sm'>";
?>
</td>
<td>浏览次数</td>
<td><input type="text" name="click" value="<?php echo ($cfg_arc_click=='-1' ? mt_rand(1000, 6000):$cfg_arc_click);?>" class="admin-input-sm"></td>
</tr>
<tr>
<td colspan="4" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
for ($i=1;$i<=$cfg_specnote;$i++)
{
if ($i==1) {
$nodename = '默认节点';
$nodeid = 'default';
} else {
$nodename = $nodeid = '';
}
?>
<tr>
<td>节点<?php echo $i?>名称</td>
<td>
<input type="text" name="notename<?php echo $i?>" value="<?php echo $nodename;?>" id="notename<?php echo $i?>" class="admin-input-lg">
<label>节点标识:<input type="text" name="noteid<?php echo $i?>" alue="<?php echo $nodeid;?>" id="noteid<?php echo $i?>" class="admin-input-sm"></label>
</td>
</tr>
<tr>
<td>文档列表</td>
<td>
<textarea name="arcid<?php echo $i?>" onblur='CheckVal(<?php echo $i ?>)' id="arcid<?php echo $i?>" class="admin-textarea-sm"></textarea>
<button name="selarc<?php echo $i?>" type="button" id="selarc<?php echo $i?>2" class="btn btn-success btn-sm" onclick="SelectArcList('form1.arcid<?php echo $i?>');">选择节点文档</button>
</td>
</tr>
<tr>
<td>文档来源</td>
<td>
<label>栏目id:<input type="text" name="typeid<?php echo $i?>" id="_typeid<?php echo $i?>" value="0" class="admin-input-sm"></label>
<label>关键词:<input type="text" name="keywords<?php echo $i?>" id="keywords<?php echo $i?>" class="admin-input-lg">(英文逗号隔开)</label>
<label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="0" checked> 按文档列表</label>
<label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="1"> 自动获取文档</label>
</td>
</tr>
<tr>
<td>节点布局</td>
<td>
<label>列数:<input type="text" name="col<?php echo $i?>" id="col<?php echo $i?>" value="1" class="admin-input-sm"></label>
<label>图片宽:<input type="text" name="imgwidth<?php echo $i?>" id="imgwidth<?php echo $i?>" value="120" class="admin-input-sm"></label>
<label>图片高:<input type="text" name="imgheight<?php echo $i?>" id="imgheight<?php echo $i?>" value="90" class="admin-input-sm"></label>
<label>标题长:<input type="text" name="titlelen<?php echo $i?>" id="titlelen<?php echo $i?>" value="60" class="admin-input-sm"></label>
<label>简介长:<input type="text" name="infolen<?php echo $i?>" id="infolen<?php echo $i?>" value="160" class="admin-input-sm"></label>
<label>文档数:<input type="text" name="rownum<?php echo $i?>" id="rownum<?php echo $i?>" value="10" class="admin-input-sm"></label>
</td>
</tr>
<tr>
<td>应用样式</td>
<td><textarea name="listtmp<?php echo $i?>" id="listtmp<?php echo $i?>" class="admin-textarea-xl"><?php echo $speclisttmp?></textarea></td>
</tr>
<tr>
<td>应用模板</td>
<td>
<input type="text" name="notetemplet<?php echo $i?>" id="notetemplet<?php echo $i?>" value="system/channel_spec_note.htm" class="admin-input-lg">
<button type="button" name="selno<?php echo $i?>" class="btn btn-success btn-sm" onclick="SelectTemplets('form1.notetemplet<?php echo $i?>');">选择</button>
</td>
</tr>
<?php }?>
</tbody>
</table>
</td>
</tr>
<tr>
<td>评论选项</td>
<td>
<label><input type="radio" name="notpost" value="0" <?php if ($cfg_feedback_forbid=='N') echo 'checked';?>> 允许评论</label>
<label><input type="radio" name="notpost" value="1" <?php if ($cfg_feedback_forbid=='Y') echo 'checked';?>> 禁止评论</label>
</td>
<td>发布选项</td>
<td>
<label><input type="radio" name="ishtml" value="1" checked> 静态浏览</label>
<label><input type="radio" name="ishtml" value="0"> 动态浏览</label>
</td>
</tr>
<tr>
<td>文档排序</td>
<td>
<select name="sortup" id="sortup" class="admin-input-sm">
<option value="0" selected>默认排序</option>
<option value="7">置顶一周</option>
<option value="30">置顶一个月</option>
<option value="90">置顶三个月</option>
<option value="180">置顶半年</option>
<option value="360">置顶一年</option>
</select>
</td>
<td>标题颜色</td>
<td>
<input type="text" name="color" id="color" class="admin-input-sm">
<button type="button" name="modcolor" id="modcolor" class="btn btn-success btn-sm" onclick="ShowColor(event,this)">选择</button>
</td>
</tr>
<tr>
<td>专题模板</td>
<td>
<input type="text" name="templet" id="templet" value="<?php echo $cfg_df_style?>/article_spec.htm" class="admin-input-sm">
<button type="button" class="btn btn-success btn-sm" onclick="SelectTemplets('form1.templet');">选择</button>
</td>
<td>文件名称</td>
<td><input type="text" name="filename" id="filename" class="admin-input-sm">(不包括文件扩展名)</td>
</tr>
<tr>
<td>发布时间</td>
<td>
<?php
$nowtime = GetDateTimeMk(time());
echo "<input name='pubdate' value='$nowtime' type='text' id='pubdate' class='datepicker admin-input-sm'>";
?>
</td>
<td>浏览次数</td>
<td><input type="text" name="click" value="<?php echo ($cfg_arc_click=='-1' ? mt_rand(1000, 6000):$cfg_arc_click);?>" class="admin-input-sm"></td>
</tr>
<tr>
<td colspan="4" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>InitPage();</script>


+ 265
- 263
src/admin/templets/spec_edit.htm View File

@@ -53,273 +53,275 @@
</script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="content_s_list.php">专题列表</a></li>
<li class="breadcrumb-item active">修改专题</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改<?php echo $arcRow['title'];?>专题</div>
<div class="card-body">
<form name="form1" action="spec_edit.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="id" value="<?php echo $arcRow['id']?>">
<input type="hidden" name="channelid" value="<?php echo $channelid?>">
<input type="hidden" name="arcrank" value="<?php echo $arcRow['arcrank']?>">
<input type="hidden" name="source" value="本站">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="160">专题名称</td>
<td width="650"><input type="text" name="title" id="title" value="<?php echo $arcRow['title'];?>" class="admin-input-lg" required></td>
<td width="160">简略标题</td>
<td><input type="text" name="shorttitle" id="shorttitle" value="<?php echo $arcRow['shorttitle'];?>" class="admin-input-sm"></td>
</tr>
<tr>
<td>自定义属性</td>
<td colspan="3">
<?php
$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
if ($trow->att=='j') continue;
if (preg_match("#".$trow->att."#", $arcRow['flag']))
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' checked> {$trow->attname}[{$trow->att}]</label> ";
else
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> ";
}
?>
</td>
</tr>
<tr id="pictable">
<td>缩略图</td>
<td colspan="3">
<input type="text" name="picname" id="picname" value="<?php echo $arcRow['litpic']?>" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
<img id="litPic" src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '/static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md ml-3">
</td>
</tr>
<tr>
<td>作者</td>
<td colspan="3"><input type="text" name="writer" id="writer" value="<?php echo $arcRow['writer']?>" class="admin-input-sm"></td>
</tr>
<tr>
<td>主分类</td>
<td colspan="3">
<?php
$typeOptions = GetOptionList($arcRow["typeid"],$cuserLogin->getUserChannel(),0);
echo "<select name='typeid' class='admin-input-sm'>";
if ($arcRow["typeid"]=="0") echo "<option value='0' selected='1'>请选择主分类</option>";
echo $typeOptions;
echo "</select>";
?>
<a href="javascript:ShowCatMap(event,this,0,'typeid');" class="btn btn-success btn-sm">选择</a>
</td>
</tr>
<tr>
<td>关键词</td>
<td class="3"><label><input type="text" name="keywords" rows="3" id="keywords" value="<?php echo $arcRow['keywords']?>" class="admin-input-lg"></label></td>
</tr>
<tr>
<td>专题说明</td>
<td colspan="3"><textarea name="description" id="textarea" class="admin-textarea-sm"><?php echo $arcRow['description']?></textarea></td>
</tr>
<?php PrintAutoFieldsEdit(stripslashes($cInfos['fieldset']),$addRow,'autofield');?>
<tr>
<td colspan="4">
<table class="table">
<tbody>
<?php
$speclisttmp = GetSysTemplets("spec_arclist.htm");
$i = 1;
$dtp = new DedeTagParse();
$dtp->LoadSource($addRow["note"]);
if (is_array($dtp->CTags)) {
foreach($dtp->CTags as $tagid=>$ctag) {
if ($ctag->GetName()!="specnote") continue;
$notename = $ctag->GetAtt('name');
$col = $ctag->GetAtt('col');
$idlist = $ctag->GetAtt('idlist');
$imgwidth = $ctag->GetAtt('imgwidth');
$imgheight = $ctag->GetAtt('imgheight');
$titlelen = $ctag->GetAtt('titlelen');
$infolen = $ctag->GetAtt('infolen');
$temp = trim($ctag->GetInnerText());
$noteid = $ctag->GetAtt('noteid');
if (empty($noteid)) $noteid = $i;
$isauto = $ctag->GetAtt('isauto');
if (empty($isauto)) $isauto = 0;
$keywords = $ctag->GetAtt('keywords');
$typeid = $ctag->GetAtt('typeid');
if (empty($typeid)) $typeid = 0;
$rownum = $ctag->GetAtt('rownum');
if (empty($rownum)) $rownum = 40;
?>
<tr>
<td class="admin-td">节点<?php echo $i?>名称</td>
<td class="admin-td">
<input type="text" name="notename<?php echo $i?>" id="notename<?php echo $i?>" class="admin-input-lg" value="<?php echo $notename?>">
<label>节点标识:<input type="text" name="noteid<?php echo $i?>" id="noteid<?php echo $i?>" value="<?php echo $noteid?>" class="admin-input-sm"></label>
</td>
</tr>
<tr>
<td class="admin-td">文档列表</td>
<td class="admin-td">
<textarea name="arcid<?php echo $i?>" onblur="CheckVal(<?php echo $i ?>)" id="arcid<?php echo $i?>" class="admin-textarea-sm"><?php echo $idlist?></textarea>
<button type="button" class="btn btn-success btn-sm" name="selarc<?php echo $i?>" id="selarc<?php echo $i?>2" onclick="SelectArcList('form1.arcid<?php echo $i?>');">选择节点文档</button>
</td>
</tr>
<tr>
<td class="admin-td">文档来源</td>
<td class="admin-td">
<label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="0" <?php if ($isauto==0) echo 'checked';?>> 按文档列表</label>
<label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="1" <?php if ($isauto==1) echo 'checked';?>> 自动获取文档</label>
<label>关键词:<input type="text" name="keywords<?php echo $i?>" value="<?php echo $keywords?>" id="keywords<?php echo $i?>" class="admin-input-sm">(英文逗号隔开)</label>
<label>栏目id:<input type="text" name="typeid<?php echo $i?>" value="<?php echo $typeid?>" id="typeid<?php echo $i?>" class="admin-input-sm" value="0"></label>
</td>
</tr>
<tr>
<td class="admin-td">节点布局</td>
<td class="admin-td">
<label>列数:<input type="text" name="col<?php echo $i?>" id="col<?php echo $i?>" value="<?php echo $col?>" class="admin-input-sm"></label>
<label>图片宽:<input type="text" name="imgwidth<?php echo $i?>" id="imgwidth<?php echo $i?>" value="<?php echo $imgwidth?>" class="admin-input-sm"></label>
<label>图片高:<input type="text" name="imgheight<?php echo $i?>" id="imgheight<?php echo $i?>" value="<?php echo $imgheight?>" class="admin-input-sm"></label>
<label>标题长:<input type="text" name="titlelen<?php echo $i?>" id="titlelen<?php echo $i?>" value="<?php echo $titlelen?>" class="admin-input-sm"></label>
<label>简介长:<input type="text" name="infolen<?php echo $i?>" id="infolen<?php echo $i?>" value="<?php echo $infolen?>" class="admin-input-sm"></label>
<label>文档数:<input type="text" name="rownum<?php echo $i?>" id="rownum<?php echo $i?>" value="<?php echo $rownum?>" class="admin-input-sm"></label>
</td>
</tr>
<tr>
<td class="admin-td">应用样式</td>
<td class="admin-td"><textarea name="listtmp<?php echo $i?>" id="listtmp<?php echo $i?>" class="admin-textarea-xl"><?php echo $temp?></textarea></td>
</tr>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item"><a href="content_s_list.php">专题列表</a></li>
<li class="breadcrumb-item active">修改专题</li>
</ol>
<div class="card shadow-sm">
<div class="card-header">修改<?php echo $arcRow['title'];?>专题</div>
<div class="card-body">
<form name="form1" action="spec_edit.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="id" value="<?php echo $arcRow['id']?>">
<input type="hidden" name="channelid" value="<?php echo $channelid?>">
<input type="hidden" name="arcrank" value="<?php echo $arcRow['arcrank']?>">
<input type="hidden" name="source" value="本站">
<input type="hidden" name="dopost" value="save">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<td width="160">专题名称</td>
<td width="650"><input type="text" name="title" id="title" value="<?php echo $arcRow['title'];?>" class="admin-input-lg" required></td>
<td width="160">简略标题</td>
<td><input type="text" name="shorttitle" id="shorttitle" value="<?php echo $arcRow['shorttitle'];?>" class="admin-input-sm"></td>
</tr>
<tr>
<td>自定义属性</td>
<td colspan="3">
<?php
$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
if ($trow->att=='j') continue;
if (preg_match("#".$trow->att."#", $arcRow['flag']))
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' checked> {$trow->attname}[{$trow->att}]</label> ";
else
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> ";
}
?>
</td>
</tr>
<tr id="pictable">
<td>缩略图</td>
<td colspan="3">
<input type="text" name="picname" id="picname" value="<?php echo $arcRow['litpic']?>" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
<img id="litPic" src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '/static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md ml-3">
</td>
</tr>
<tr>
<td>作者</td>
<td colspan="3"><input type="text" name="writer" id="writer" value="<?php echo $arcRow['writer']?>" class="admin-input-sm"></td>
</tr>
<tr>
<td>主分类</td>
<td colspan="3">
<?php
$typeOptions = GetOptionList($arcRow["typeid"],$cuserLogin->getUserChannel(),0);
echo "<select name='typeid' class='admin-input-sm'>";
if ($arcRow["typeid"]=="0") echo "<option value='0' selected='1'>请选择主分类</option>";
echo $typeOptions;
echo "</select>";
?>
<a href="javascript:ShowCatMap(event,this,0,'typeid');" class="btn btn-success btn-sm">选择</a>
</td>
</tr>
<tr>
<td>关键词</td>
<td class="3"><label><input type="text" name="keywords" rows="3" id="keywords" value="<?php echo $arcRow['keywords']?>" class="admin-input-lg"></label></td>
</tr>
<tr>
<td>专题说明</td>
<td colspan="3"><textarea name="description" id="textarea" class="admin-textarea-sm"><?php echo $arcRow['description']?></textarea></td>
</tr>
<?php PrintAutoFieldsEdit(stripslashes($cInfos['fieldset']),$addRow,'autofield');?>
<tr>
<td colspan="4">
<table class="table">
<tbody>
<?php
$speclisttmp = GetSysTemplets("spec_arclist.htm");
$i = 1;
$dtp = new DedeTagParse();
$dtp->LoadSource($addRow["note"]);
if (is_array($dtp->CTags)) {
foreach($dtp->CTags as $tagid=>$ctag) {
if ($ctag->GetName()!="specnote") continue;
$notename = $ctag->GetAtt('name');
$col = $ctag->GetAtt('col');
$idlist = $ctag->GetAtt('idlist');
$imgwidth = $ctag->GetAtt('imgwidth');
$imgheight = $ctag->GetAtt('imgheight');
$titlelen = $ctag->GetAtt('titlelen');
$infolen = $ctag->GetAtt('infolen');
$temp = trim($ctag->GetInnerText());
$noteid = $ctag->GetAtt('noteid');
if (empty($noteid)) $noteid = $i;
$isauto = $ctag->GetAtt('isauto');
if (empty($isauto)) $isauto = 0;
$keywords = $ctag->GetAtt('keywords');
$typeid = $ctag->GetAtt('typeid');
if (empty($typeid)) $typeid = 0;
$rownum = $ctag->GetAtt('rownum');
if (empty($rownum)) $rownum = 40;
?>
<tr>
<td class="admin-td">节点<?php echo $i?>名称</td>
<td class="admin-td">
<input type="text" name="notename<?php echo $i?>" id="notename<?php echo $i?>" class="admin-input-lg" value="<?php echo $notename?>">
<label>节点标识:<input type="text" name="noteid<?php echo $i?>" id="noteid<?php echo $i?>" value="<?php echo $noteid?>" class="admin-input-sm"></label>
</td>
</tr>
<tr>
<td class="admin-td">文档列表</td>
<td class="admin-td">
<textarea name="arcid<?php echo $i?>" onblur="CheckVal(<?php echo $i ?>)" id="arcid<?php echo $i?>" class="admin-textarea-sm"><?php echo $idlist?></textarea>
<button type="button" class="btn btn-success btn-sm" name="selarc<?php echo $i?>" id="selarc<?php echo $i?>2" onclick="SelectArcList('form1.arcid<?php echo $i?>');">选择节点文档</button>
</td>
</tr>
<tr>
<td class="admin-td">文档来源</td>
<td class="admin-td">
<label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="0" <?php if ($isauto==0) echo 'checked';?>> 按文档列表</label>
<label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="1" <?php if ($isauto==1) echo 'checked';?>> 自动获取文档</label>
<label>关键词:<input type="text" name="keywords<?php echo $i?>" value="<?php echo $keywords?>" id="keywords<?php echo $i?>" class="admin-input-sm">(英文逗号隔开)</label>
<label>栏目id:<input type="text" name="typeid<?php echo $i?>" value="<?php echo $typeid?>" id="typeid<?php echo $i?>" class="admin-input-sm" value="0"></label>
</td>
</tr>
<tr>
<td class="admin-td">节点布局</td>
<td class="admin-td">
<label>列数:<input type="text" name="col<?php echo $i?>" id="col<?php echo $i?>" value="<?php echo $col?>" class="admin-input-sm"></label>
<label>图片宽:<input type="text" name="imgwidth<?php echo $i?>" id="imgwidth<?php echo $i?>" value="<?php echo $imgwidth?>" class="admin-input-sm"></label>
<label>图片高:<input type="text" name="imgheight<?php echo $i?>" id="imgheight<?php echo $i?>" value="<?php echo $imgheight?>" class="admin-input-sm"></label>
<label>标题长:<input type="text" name="titlelen<?php echo $i?>" id="titlelen<?php echo $i?>" value="<?php echo $titlelen?>" class="admin-input-sm"></label>
<label>简介长:<input type="text" name="infolen<?php echo $i?>" id="infolen<?php echo $i?>" value="<?php echo $infolen?>" class="admin-input-sm"></label>
<label>文档数:<input type="text" name="rownum<?php echo $i?>" id="rownum<?php echo $i?>" value="<?php echo $rownum?>" class="admin-input-sm"></label>
</td>
</tr>
<tr>
<td class="admin-td">应用样式</td>
<td class="admin-td"><textarea name="listtmp<?php echo $i?>" id="listtmp<?php echo $i?>" class="admin-textarea-xl"><?php echo $temp?></textarea></td>
</tr>
<?php
$i++;
}}
$dtp->Clear();
for ($i;$i<=$cfg_specnote;$i++)
{
?>
<tr>
<td class="admin-td">节点<?php echo $i?>名称</td>
<td class="admin-td">
<input type="text" name="notename<?php echo $i?>" id="notename<?php echo $i?>" class="admin-input-lg">
<label>节点标识:<input type="text" name="noteid<?php echo $i?>" id="noteid<?php echo $i?>" class="admin-input-sm"></label>
</td>
</tr>
<tr>
<td class="admin-td">文档列表</td>
<td class="admin-td">
<textarea name="arcid<?php echo $i?>" rows="3" onblur="CheckVal(<?php echo $i ?>)" id="arcid<?php echo $i?>" class="admin-textarea-sm"></textarea>
<button name="selarc<?php echo $i?>" type="button" id="selarc<?php echo $i?>2" class="btn btn-success btn-sm" onclick="SelectArcList('form1.arcid<?php echo $i?>');">选择节点文档</button>
</td>
</tr>
<tr>
<td class="admin-td">文档来源</td>
<td class="admin-td">
<label>栏目id:<input type="text" name="typeid<?php echo $i?>" id="_typeid<?php echo $i?>" value="0" class="admin-input-sm"></label>
<label>关键词:<input type="text" name="keywords<?php echo $i?>" id="keywords<?php echo $i?>" class="admin-input-lg">(空格分开)</label>
<label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="0" checked> 按文档列表</label>
<label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="1"> 自动获取文档</label>
</td>
</tr>
<tr>
<td class="admin-td">节点布局</td>
<td class="admin-td">
<label>列数:<input type="text" name="col<?php echo $i?>" id="col<?php echo $i?>" value="1" class="admin-input-sm"></label>
<label>图片高:<input type="text" name="imgheight<?php echo $i?>" id="imgheight<?php echo $i?>" value="90" class="admin-input-sm"></label>
<label>图片宽:<input type="text" name="imgwidth<?php echo $i?>" id="imgwidth<?php echo $i?>" value="120" class="admin-input-sm"></label>
<label>标题长:<input type="text" name="titlelen<?php echo $i?>" id="titlelen<?php echo $i?>" value="60" class="admin-input-sm"></label>
<label>简介长:<input type="text" name="infolen<?php echo $i?>" id="infolen<?php echo $i?>" value="160" class="admin-input-sm"></label>
<label>文档数:<input type="text" name="rownum<?php echo $i?>" id="rownum<?php echo $i?>" value="40" class="admin-input-sm"></label>
</td>
</tr>
<tr>
<td class="admin-td">应用样式</td>
<td class="admin-td"><textarea name="listtmp<?php echo $i?>" id="listtmp<?php echo $i?>" class="admin-textarea-xl"><?php echo $speclisttmp?></textarea></td>
</tr>
<?php }?>
</tbody>
</table>
</td>
</tr>
<tr>
<td>评论选项</td>
<td>
<label><input type="radio" name="notpost" value="0" <?php if ($arcRow['notpost']==0) echo 'checked';?>> 允许评论</label>
<label><input type="radio" name="notpost" value="1" <?php if ($arcRow['notpost']==1) echo 'checked';?>> 禁止评论</label>
<td>发布选项</td>
<td>
<label><input type="radio" name="ishtml" value="1" <?php if ($arcRow["ismake"]!=-1) echo 'checked';?>> 静态浏览</label>
<label><input type="radio" name="ishtml" value="0" <?php if ($arcRow["ismake"]==-1) echo 'checked';?>> 动态浏览</label>
</td>
</tr>
<tr>
<td>文档排序</td>
<td>
<select name="sortup" id="sortup" class="admin-input-sm">
<?php
$i++;
}}
$dtp->Clear();
for ($i;$i<=$cfg_specnote;$i++)
{
$subday = SubDay($arcRow["sortrank"],$arcRow["senddate"]);
echo "<option value='0'>正常排序</option>";
if ($subday>0) echo "<option value='$subday' selected>置顶".$subday."天</option>";
?>
<tr>
<td class="admin-td">节点<?php echo $i?>名称</td>
<td class="admin-td">
<input type="text" name="notename<?php echo $i?>" id="notename<?php echo $i?>" class="admin-input-lg">
<label>节点标识:<input type="text" name="noteid<?php echo $i?>" id="noteid<?php echo $i?>" class="admin-input-sm"></label>
</td>
</tr>
<tr>
<td class="admin-td">文档列表</td>
<td class="admin-td">
<textarea name="arcid<?php echo $i?>" rows="3" onblur="CheckVal(<?php echo $i ?>)" id="arcid<?php echo $i?>" class="admin-textarea-sm"></textarea>
<button name="selarc<?php echo $i?>" type="button" id="selarc<?php echo $i?>2" class="btn btn-success btn-sm" onclick="SelectArcList('form1.arcid<?php echo $i?>');">选择节点文档</button>
</td>
</tr>
<tr>
<td class="admin-td">文档来源</td>
<td class="admin-td">
<label>栏目id:<input type="text" name="typeid<?php echo $i?>" id="_typeid<?php echo $i?>" value="0" class="admin-input-sm"></label>
<label>关键词:<input type="text" name="keywords<?php echo $i?>" id="keywords<?php echo $i?>" class="admin-input-lg">(空格分开)</label>
<label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="0" checked> 按文档列表</label>
<label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="1"> 自动获取文档</label>
</td>
</tr>
<tr>
<td class="admin-td">节点布局</td>
<td class="admin-td">
<label>列数:<input type="text" name="col<?php echo $i?>" id="col<?php echo $i?>" value="1" class="admin-input-sm"></label>
<label>图片高:<input type="text" name="imgheight<?php echo $i?>" id="imgheight<?php echo $i?>" value="90" class="admin-input-sm"></label>
<label>图片宽:<input type="text" name="imgwidth<?php echo $i?>" id="imgwidth<?php echo $i?>" value="120" class="admin-input-sm"></label>
<label>标题长:<input type="text" name="titlelen<?php echo $i?>" id="titlelen<?php echo $i?>" value="60" class="admin-input-sm"></label>
<label>简介长:<input type="text" name="infolen<?php echo $i?>" id="infolen<?php echo $i?>" value="160" class="admin-input-sm"></label>
<label>文档数:<input type="text" name="rownum<?php echo $i?>" id="rownum<?php echo $i?>" value="40" class="admin-input-sm"></label>
</td>
</tr>
<tr>
<td class="admin-td">应用样式</td>
<td class="admin-td"><textarea name="listtmp<?php echo $i?>" id="listtmp<?php echo $i?>" class="admin-textarea-xl"><?php echo $speclisttmp?></textarea></td>
</tr>
<?php }?>
</tbody>
</table>
</td>
</tr>
<tr>
<td>评论选项</td>
<td>
<label><input type="radio" name="notpost" value="0" <?php if ($arcRow['notpost']==0) echo 'checked';?>> 允许评论</label>
<label><input type="radio" name="notpost" value="1" <?php if ($arcRow['notpost']==1) echo 'checked';?>> 禁止评论</label>
<td>发布选项</td>
<td>
<label><input type="radio" name="ishtml" value="1" <?php if ($arcRow["ismake"]!=-1) echo 'checked';?>> 静态浏览</label>
<label><input type="radio" name="ishtml" value="0" <?php if ($arcRow["ismake"]==-1) echo 'checked';?>> 动态浏览</label>
</td>
</tr>
<tr>
<td>文档排序</td>
<td>
<select name="sortup" id="sortup" class="admin-input-sm">
<option value="7">置顶一周</option>
<option value="30">置顶一个月</option>
<option value="90">置顶三个月</option>
<option value="180">置顶半年</option>
<option value="360">置顶一年</option>
</select>
</td>
<td>标题颜色</td>
<td>
<input type="text" name="color" id="color" class="admin-input-sm" value="<?php echo $arcRow['color']?>">
<button type="button" name="modcolor" id="modcolor" onclick="ShowColor(event,this);" class="btn btn-success btn-sm">选择</button>
</td>
</tr>
<tr>
<td>专题模板</td>
<td>
<input type="text" name="templet" id="templet" value="<?php echo $addRow['templet']?>" class="admin-input-sm">
<button type="button" class="btn btn-success btn-sm" onclick="SelectTemplets('form1.templet');">选择</button>
</td>
<td>文件名称</td>
<td><input type="text" name="filename" id="filename" value="<?php echo $arcRow['filename']?>" class="admin-input-sm">(不包括文件扩展名)</td>
</tr>
<tr>
<td>发布时间</td>
<td>
<?php
$addtime = GetDateTimeMk($arcRow["senddate"]);
echo "$addtime <input type='hidden' name='senddate' value='".$arcRow["senddate"]."' class='admin-input-sm'>";
?>
</td>
</tr>
<tr>
<td>更新时间</td>
<td>
<?php
$subday = SubDay($arcRow["sortrank"],$arcRow["senddate"]);
echo "<option value='0'>正常排序</option>";
if ($subday>0) echo "<option value='$subday' selected>置顶".$subday."天</option>";
$nowtime = GetDateTimeMk($arcRow["pubdate"]);
echo "<input name='pubdate' value='$nowtime' type='text' id='pubdate' class='datepicker admin-input-sm'>";
?>
<option value="7">置顶一周</option>
<option value="30">置顶一个月</option>
<option value="90">置顶三个月</option>
<option value="180">置顶半年</option>
<option value="360">置顶一年</option>
</select>
</td>
<td>标题颜色</td>
<td>
<input type="text" name="color" id="color" class="admin-input-sm" value="<?php echo $arcRow['color']?>">
<button type="button" name="modcolor" id="modcolor" onclick="ShowColor(event,this);" class="btn btn-success btn-sm">选择</button>
</td>
</tr>
<tr>
<td>专题模板</td>
<td>
<input type="text" name="templet" id="templet" value="<?php echo $addRow['templet']?>" class="admin-input-sm">
<button type="button" class="btn btn-success btn-sm" onclick="SelectTemplets('form1.templet');">选择</button>
</td>
<td>文件名称</td>
<td><input type="text" name="filename" id="filename" value="<?php echo $arcRow['filename']?>" class="admin-input-sm">(不包括文件扩展名)</td>
</tr>
<tr>
<td>发布时间</td>
<td>
<?php
$addtime = GetDateTimeMk($arcRow["senddate"]);
echo "$addtime <input type='hidden' name='senddate' value='".$arcRow["senddate"]."' class='admin-input-sm'>";
?>
</td>
</tr>
<tr>
<td>更新时间</td>
<td>
<?php
$nowtime = GetDateTimeMk($arcRow["pubdate"]);
echo "<input name='pubdate' value='$nowtime' type='text' id='pubdate' class='datepicker admin-input-sm'>";
?>
</td>
<td>浏览次数</td>
<td><input type="text" name="click" value="<?php echo $arcRow['click'];?>" class="admin-input-sm"></td>
</tr>
<tr>
<td colspan="4" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</td>
<td>浏览次数</td>
<td><input type="text" name="click" value="<?php echo $arcRow['click'];?>" class="admin-input-sm"></td>
</tr>
<tr>
<td colspan="4" align="center">
<button type="submit" class="btn btn-success btn-sm">保存</button>
<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<script>InitPage();</script>


+ 55
- 53
src/admin/templets/statistics_list.htm View File

@@ -12,60 +12,62 @@
<script src="/static/web/js/admin.main.js"></script>
</head>
<body>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">流量统计表</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form name="form1" action="statistics_list.php" method="get">
<input type="text" name="ip" class="admin-input-lg" placeholder="请输入地址ip" value="<?php echo !empty($ip)? $ip : '';?>">
<button type="submit" class="btn btn-success btn-sm">搜索</button>
</form>
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
<li class="breadcrumb-item active">流量统计表</li>
</ol>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form name="form1" action="statistics_list.php" method="get">
<input type="text" name="ip" class="admin-input-lg" placeholder="请输入地址ip" value="<?php echo !empty($ip)? $ip : '';?>">
<button type="submit" class="btn btn-success btn-sm">搜索</button>
</form>
</div>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">流量统计表</div>
<div class="card-body">
<form name="form2">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">序号</td>
<td scope="col">用户</td>
<td scope="col">地址</td>
<td scope="col">浏览器内核</td>
<td scope="col">操作系统</td>
<td scope="col">浏览类型</td>
<td scope="col">浏览时间</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td><input type="checkbox" name="aids" value="{dede:field.id/}"></td>
<td>{dede:field.id/}</td>
<td>{dede:field.dduuid/}</td>
<td>{dede:field.ip/}</td>
<td>{dede:field.browser/}</td>
<td>{dede:field.os/}</a></td>
<td>{dede:field.url_type function="RenderUrlType(@me)"/}</td>
<td>{dede:field.t function="MyDate('Y-m-d H:i:s',@me)"/}</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="8">
<a href="javascript:ReSel();" class="btn btn-success btn-sm">反选</a>
<a href="javascript:DelSel();" class="btn btn-danger btn-sm">删除</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
<div class="card shadow-sm">
<div class="card-header">流量统计表</div>
<div class="card-body">
<form name="form2">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">选择</td>
<td scope="col">序号</td>
<td scope="col">用户</td>
<td scope="col">地址</td>
<td scope="col">浏览器内核</td>
<td scope="col">操作系统</td>
<td scope="col">浏览类型</td>
<td scope="col">浏览时间</td>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td><input type="checkbox" name="aids" value="{dede:field.id/}"></td>
<td>{dede:field.id/}</td>
<td>{dede:field.dduuid/}</td>
<td>{dede:field.ip/}</td>
<td>{dede:field.browser/}</td>
<td>{dede:field.os/}</a></td>
<td>{dede:field.url_type function="RenderUrlType(@me)"/}</td>
<td>{dede:field.t function="MyDate('Y-m-d H:i:s',@me)"/}</td>
</tr>
{/dede:datalist}
<tr>
<td colspan="8">
<a href="javascript:ReSel();" class="btn btn-success btn-sm">反选</a>
<a href="javascript:DelSel();" class="btn btn-danger btn-sm">删除</a>
</td>
</tr>
</tbody>
</table>
</div>
</form>
{dede:pagelist listsize='6'/}
</div>
</div>
</div>
<script>


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save