Browse Source

调整优化

tags/6.2.7
叙述、别离 1 year ago
parent
commit
2bf77db4f8
19 changed files with 27 additions and 39 deletions
  1. +4
    -6
      src/admin/dialog/select_images.php
  2. +2
    -4
      src/admin/dialog/select_media.php
  3. +2
    -4
      src/admin/dialog/select_soft.php
  4. +2
    -4
      src/admin/dialog/select_templets.php
  5. +1
    -1
      src/admin/inc/inc_list_functions.php
  6. +1
    -1
      src/admin/templets/album_add.htm
  7. +1
    -1
      src/admin/templets/album_edit.htm
  8. +1
    -1
      src/admin/templets/archives_add.htm
  9. +1
    -1
      src/admin/templets/archives_edit.htm
  10. +1
    -1
      src/admin/templets/archives_sg_add.htm
  11. +1
    -1
      src/admin/templets/archives_sg_edit.htm
  12. +1
    -1
      src/admin/templets/article_add.htm
  13. +1
    -1
      src/admin/templets/article_edit.htm
  14. +2
    -4
      src/admin/templets/catalog_add.htm
  15. +2
    -4
      src/admin/templets/catalog_edit.htm
  16. +1
    -1
      src/admin/templets/soft_add.htm
  17. +1
    -1
      src/admin/templets/soft_edit.htm
  18. +1
    -1
      src/admin/templets/spec_edit.htm
  19. +1
    -1
      src/admin/templets/sys_info.htm

+ 4
- 6
src/admin/dialog/select_images.php View File

@@ -143,7 +143,7 @@ if (!empty($iseditor)) {
<input type="hidden" name="imgstick" value="<?php echo $imgstick ?>">
<input type="hidden" name="CKEditorFuncNum" value="<?php echo isset($CKEditorFuncNum) ? $CKEditorFuncNum : 1;?>">
<input type="hidden" name="job" value="upload">
<label>选择:<input type="file" name="imgfile" class="w-50"></label>
<input type="file" name="imgfile" class="w-50">
<label><input type="checkbox" name="needwatermark" value="1" <?php if ($photo_markup == '1') echo "checked";?>> 水印</label>
<label><input type="checkbox" name="resize" value="1"> 缩小</label>
<label>宽:<input type="text" name="iwidth" value="<?php echo $cfg_ddimg_width ?>" class="admin-input-xs"></label>
@@ -194,9 +194,7 @@ if (!empty($iseditor)) {
if (preg_match("#^_(.*)$#i", $file)) continue;
if (preg_match("#^\.(.*)$#i", $file)) continue;
$line = "<tr>
<td colspan='2'><a href='select_images.php?imgstick=$imgstick&v=$v&f=$f&activepath=".urlencode("$activepath/$file").$addparm."'><img src='../../static/web/img/icon_dir.png'>$file</a></td>
<td></td>
<td></td>
<td colspan='4'><a href='select_images.php?imgstick=$imgstick&v=$v&f=$f&activepath=".urlencode("$activepath/$file").$addparm."'><img src='../../static/web/img/icon_dir.png'>$file</a></td>
</tr>";
echo "$line";
} else if (preg_match("#\.(".$cfg_imgtype.")#i", $file)) {
@@ -207,7 +205,7 @@ if (!empty($iseditor)) {
else $lstyle = "";
$line = "<tr>
<td colspan='2'>
<a href=\"javascript:;\" onClick=\"ChangeImage('$reurl');\"><img src='$reurl'></a>
<a href=\"javascript:;\" onClick=\"ChangeImage('$reurl');\"><img src='$reurl' title='$file'></a>
<a href=\"javascript:;\" onclick=\"ReturnImg('$reurl');\" $lstyle>$file</a>
</td>
<td>$filesize KB</td>
@@ -222,7 +220,7 @@ if (!empty($iseditor)) {
else $lstyle = "";
$line = "<tr>
<td colspan='2'>
<a href=\"javascript:;\" onClick=\"ChangeImage('$reurl');\"><img src='$reurl'></a>
<a href=\"javascript:;\" onClick=\"ChangeImage('$reurl');\"><img src='$reurl' title='$file'></a>
<a href=\"javascript:;\" onclick=\"ReturnImg('$reurl');\" $lstyle>$file</a>
</td>
<td>$filesize KB</td>


+ 2
- 4
src/admin/dialog/select_media.php View File

@@ -76,7 +76,7 @@ if (!empty($noeditor)) {
<input type="hidden" name="f" value="<?php echo $f ?>">
<input type="hidden" name="job" value="upload">
<input type="hidden" name="CKEditorFuncNum" value="<?php echo isset($CKEditorFuncNum) ? $CKEditorFuncNum : 1;?>">
<label>选择:<input type="file" name="uploadfile" class="w-75"></label>
<input type="file" name="uploadfile" class="w-75">
<button type="submit" name="sb1" class="btn btn-success btn-sm">上传</button>
</form>
</td>
@@ -120,9 +120,7 @@ if (!empty($noeditor)) {
if (preg_match("#^_(.*)$#i", $file)) continue;
if (preg_match("#^\.(.*)$#i", $file)) continue;
$line = "<tr>
<td><a href=select_media.php?f=$f&activepath=".urlencode("$activepath/$file").$addparm."><img src='../../static/web/img/icon_dir.png'>$file</a></td>
<td></td>
<td></td>
<td colspan='3'><a href=select_media.php?f=$f&activepath=".urlencode("$activepath/$file").$addparm."><img src='../../static/web/img/icon_dir.png'>$file</a></td>
</tr>";
echo "$line";
} else if (preg_match("#\.(swf|fly|fla|flv)#i", $file)) {


+ 2
- 4
src/admin/dialog/select_soft.php View File

@@ -80,7 +80,7 @@ if (!empty($noeditor)) {
<input type="hidden" name="activepath" value="<?php echo $activepath ?>">
<input type="hidden" name="f" value="<?php echo $f ?>">
<input type="hidden" name="job" value="upload">
<label>选择:<input type="file" name="uploadfile" class="w-50"></label>
<input type="file" name="uploadfile" class="w-50">
<label>改名:<input type="text" name="newname" class="admin-input-sm"></label>
<button type="submit" name="sb1" class="btn btn-success btn-sm">保存</button>
</form>
@@ -127,9 +127,7 @@ if (!empty($noeditor)) {
if (preg_match("#^_(.*)$#i", $file)) continue;
if (preg_match("#^\.(.*)$#i", $file)) continue;
$line = "<tr>
<td><a href=select_soft.php?f=$f&activepath=".urlencode("$activepath/$file").$addparm."><img src='../../static/web/img/icon_dir.png'>$file</a></td>
<td></td>
<td></td>
<td colspan='3'><a href=select_soft.php?f=$f&activepath=".urlencode("$activepath/$file").$addparm."><img src='../../static/web/img/icon_dir.png'>$file</a></td>
</tr>";
echo "$line";
} else if (preg_match("#\.(zip|rar|tgr.gz)#i", $file)) {


+ 2
- 4
src/admin/dialog/select_templets.php View File

@@ -61,7 +61,7 @@ if (empty($comeback)) {
<input type="hidden" name="activepath" value="<?php echo $activepath ?>">
<input type="hidden" name="f" value="<?php echo $f ?>">
<input type="hidden" name="job" value="upload">
<label>选择:<input type="file" name="uploadfile" class="w-50"></label>
<input type="file" name="uploadfile" class="w-50">
<label>改名:<input type="text" name="filename" class="admin-input-sm"></label>
<button type="submit" name="sb1" class="btn btn-success btn-sm">保存</button>
</form>
@@ -106,9 +106,7 @@ if (empty($comeback)) {
if (preg_match("#^_(.*)$#i", $file)) continue;
if (preg_match("#^\.(.*)$#i", $file)) continue;
$line = "<tr>
<td><a href=select_templets.php?f=$f&activepath=".urlencode("$activepath/$file")."><img src='../../static/web/img/icon_dir.png'>$file</a></td>
<td></td>
<td></td>
<td colspan='3'><a href=select_templets.php?f=$f&activepath=".urlencode("$activepath/$file")."><img src='../../static/web/img/icon_dir.png'>$file</a></td>
</tr>";
echo "$line";
} else if (preg_match("#\.(htm|html)#i", $file)) {


+ 1
- 1
src/admin/inc/inc_list_functions.php View File

@@ -70,7 +70,7 @@ function CheckPic($picname)
if ($picname != "") {
return $picname;
} else {
return '/static/web/img/thumbnail.jpg';
return '../static/web/img/thumbnail.jpg';
}
}
//判断文档是否生成网页


+ 1
- 1
src/admin/templets/album_add.htm View File

@@ -117,7 +117,7 @@
<button type="button" id="btnClearAll" class="btn btn-sm btn-success delete">清空</button>
<label><input type="checkbox" name="ddisfirst" value="1"> 使用图片的第一幅图</label>
</td>
<td><img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md"></td>
<td><img src="../static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md"></td>
</tr>
</table>
</td>


+ 1
- 1
src/admin/templets/album_edit.htm View File

@@ -114,7 +114,7 @@
<button type="button" name="Submit" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
</td>
<td><img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '/static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md"></td>
<td><img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md"></td>
</tr>
</table>
</td>


+ 1
- 1
src/admin/templets/archives_add.htm View File

@@ -107,7 +107,7 @@
<button type="button" name="Submit2" onclick="SelectImage('form1.picname','small');" class='btn btn-success btn-sm'>选择图片</button>
<button type="button" id="btnClearAll" class="btn btn-success delete">清空</button>
</td>
<td><img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md"></td>
<td><img src="../static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md"></td>
</tr>
</table>
</td>


+ 1
- 1
src/admin/templets/archives_edit.htm View File

@@ -106,7 +106,7 @@
<button type="button" name="Submit" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button>
<button id="btnClearAll" type="button" class="btn btn-success btn-sm">清空</button>
</td>
<td><img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '/static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md"></td>
<td><img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md"></td>
</tr>
</table>
</td>


+ 1
- 1
src/admin/templets/archives_sg_add.htm View File

@@ -80,7 +80,7 @@
<button type="button" name="Submit2" onclick="SelectImage('form1.picname','small');" class="btn btn-success btn-sm">选择图片</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
</td>
<td><img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md"></td>
<td><img src="../static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md"></td>
</tr>
</table>
</td>


+ 1
- 1
src/admin/templets/archives_sg_edit.htm View File

@@ -81,7 +81,7 @@
<button type="button" name="Submit" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
</td>
<td><img src="<?php if ($addRow['litpic']!='') echo $addRow['litpic']; else echo '/static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md"></td>
<td><img src="<?php if ($addRow['litpic']!='') echo $addRow['litpic']; else echo '../static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md"></td>
</tr>
</table>
</td>


+ 1
- 1
src/admin/templets/article_add.htm View File

@@ -108,7 +108,7 @@
<button type="button" name="Submit2" onclick="SelectImage('form1.picname','small');" class="btn btn-success btn-sm">选择图片</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
</td>
<td><img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md"></td>
<td><img src="../static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md"></td>
</tr>
</table>
</td>


+ 1
- 1
src/admin/templets/article_edit.htm View File

@@ -113,7 +113,7 @@
<button type="button" name="Submit" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button>
<button id="btnClearAll" type="button" class="btn btn-success btn-sm">清空</button>
</td>
<td><img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '/static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md"></td>
<td><img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md"></td>
</tr>
</table>
</td>


+ 2
- 4
src/admin/templets/catalog_add.htm View File

@@ -343,6 +343,8 @@
<td><textarea name="description" id="description" class="admin-textarea-sm"></textarea>(标签“{dede:field.description/}”调用)</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="请输入跨站调用秘钥">
@@ -350,10 +352,6 @@
<label class="l-height-28"><input type="radio" name="apienabled" value="1"> 支持</label>
<label class="l-height-28"><input type="radio" name="apienabled" value="0" checked> 不支持</label>
</td>
<td colspan="2"></td>
</tr>
<tr>
<td colspan="4">栏目文档(标签“{dede:field.content/}”调用)</td>
</tr>
<tr>
<td colspan="4"><?php GetEditor("content","","400","Default","print","false");?></td>


+ 2
- 4
src/admin/templets/catalog_edit.htm View File

@@ -316,6 +316,8 @@
<td><textarea name="description" id="description" class="admin-textarea-sm"><?php echo $myrow['description']?></textarea>(标签“{dede:field.description/}”调用)</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="请输入跨站调用秘钥">
@@ -323,10 +325,6 @@
<label><input type="radio" name="apienabled" value="1" <?php if ($myrow['apienabled']=="1") echo "checked='1'";?>> 支持</label>
<label><input type="radio" name="apienabled" value="0" <?php if ($myrow['apienabled']=="0") echo "checked='1'";?>> 不支持</label>
</td>
<td colspan="2"></td>
</tr>
<tr>
<td colspan="4">栏目文档(标签“{dede:field.content/}”调用)</td>
</tr>
<tr>
<td colspan="4"><?php GetEditor("content",$myrow['content'],"400","Default","print","false");?></td>


+ 1
- 1
src/admin/templets/soft_add.htm View File

@@ -121,7 +121,7 @@
<button type="button" name="Submit2" onclick="SelectImage('form1.picname','small');" class='btn btn-success btn-sm'>选择图片</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
</td>
<td><img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md"></td>
<td><img src="../static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md"></td>
</tr>
</table>
</td>


+ 1
- 1
src/admin/templets/soft_edit.htm View File

@@ -120,7 +120,7 @@
<button type="button" name="Submit" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
</td>
<td><img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '/static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md"></td>
<td><img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md"></td>
</tr>
</table>
</td>


+ 1
- 1
src/admin/templets/spec_edit.htm View File

@@ -121,7 +121,7 @@
<button type="button" name="Submit" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
</td>
<td><img id="litPic" src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '/static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md"></td>
<td><img id="litPic" src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md"></td>
</tr>
</table>
</td>


+ 1
- 1
src/admin/templets/sys_info.htm View File

@@ -180,7 +180,7 @@
if ($row['value']){
echo " <img src=".$row['value']." id='idd_{$row['varname']}' class='thumbnail-md'>";
} else {
echo " <img src='/static/web/img/thumbnail.jpg' id='idd_{$row['varname']}' class='thumbnail-md'>";
echo " <img src='../static/web/img/thumbnail.jpg' id='idd_{$row['varname']}' class='thumbnail-md'>";
}
} else {
$addstr='';


Loading…
Cancel
Save