@@ -84,7 +84,7 @@ if (!empty($iseditor)) { | |||||
</div> | </div> | ||||
<div class="card shadow-sm"> | <div class="card shadow-sm"> | ||||
<div class="card-header">选择图片</div> | <div class="card-header">选择图片</div> | ||||
<div class="card-body opt"> | |||||
<div class="card-body opt-img"> | |||||
<?php | <?php | ||||
$dh = scandir($inpath); | $dh = scandir($inpath); | ||||
$ty1 = ""; | $ty1 = ""; | ||||
@@ -110,7 +110,7 @@ if (!empty($iseditor)) { | |||||
else if ($file == "..") { | else if ($file == "..") { | ||||
if ($activepath == "") continue; | if ($activepath == "") continue; | ||||
$tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath); | $tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath); | ||||
$line = "<div class='d-flex justify-content-between mb-3'> | |||||
$line = "<div class='d-flex justify-content-between align-items-center mb-3'> | |||||
<a href='select_images.php?imgstick=$imgstick&v=$v&f=$f&activepath=".urlencode($tmp).$addparm."' class='btn btn-success btn-sm'>返回上级</a> | <a href='select_images.php?imgstick=$imgstick&v=$v&f=$f&activepath=".urlencode($tmp).$addparm."' class='btn btn-success btn-sm'>返回上级</a> | ||||
<span>当前目录:$activepath</span> | <span>当前目录:$activepath</span> | ||||
</div>"; | </div>"; | ||||
@@ -118,11 +118,11 @@ if (!empty($iseditor)) { | |||||
} else if (is_dir("$inpath/$file")) { | } else if (is_dir("$inpath/$file")) { | ||||
if (preg_match("#^_(.*)$#i", $file)) continue; | if (preg_match("#^_(.*)$#i", $file)) continue; | ||||
if (preg_match("#^\.(.*)$#i", $file)) continue; | if (preg_match("#^\.(.*)$#i", $file)) continue; | ||||
$line = "<div class='list'> | |||||
$line = "<div class='list dir'> | |||||
<a href='select_images.php?imgstick=$imgstick&v=$v&f=$f&activepath=".urlencode("$activepath/$file").$addparm."'> | <a href='select_images.php?imgstick=$imgstick&v=$v&f=$f&activepath=".urlencode("$activepath/$file").$addparm."'> | ||||
<img src='/static/web/img/icon_dir.png'> | <img src='/static/web/img/icon_dir.png'> | ||||
<span>$file</span> | |||||
</a> | </a> | ||||
<span>$file</span> | |||||
</div>"; | </div>"; | ||||
echo "$line"; | echo "$line"; | ||||
} else if (preg_match("#\.(".$cfg_imgtype.")#i", $file)) { | } else if (preg_match("#\.(".$cfg_imgtype.")#i", $file)) { | ||||
@@ -136,10 +136,10 @@ if (!empty($iseditor)) { | |||||
if ($file == $comeback) $lstyle = "class='text-danger'"; | if ($file == $comeback) $lstyle = "class='text-danger'"; | ||||
else $lstyle = ''; | else $lstyle = ''; | ||||
$line = "<div class='list'> | $line = "<div class='list'> | ||||
<a href='$reurl' onclick=\"ReturnImg('$reurl');\" $lstyle> | |||||
<a href='$reurl' onclick=\"ReturnImg('$reurl');\"> | |||||
<img src='$reurl' title='$file'> | <img src='$reurl' title='$file'> | ||||
<span>$file</span> | |||||
</a> | </a> | ||||
<span $lstyle>$file</span> | |||||
</div>"; | </div>"; | ||||
echo "$line"; | echo "$line"; | ||||
} else if (preg_match("#\.(jpg)#i", $file)) { | } else if (preg_match("#\.(jpg)#i", $file)) { | ||||
@@ -153,10 +153,10 @@ if (!empty($iseditor)) { | |||||
if ($file == $comeback) $lstyle = "class='text-danger'"; | if ($file == $comeback) $lstyle = "class='text-danger'"; | ||||
else $lstyle = ''; | else $lstyle = ''; | ||||
$line = "<div class='list'> | $line = "<div class='list'> | ||||
<a href='$reurl' onclick=\"ReturnImg('$reurl');\" $lstyle> | |||||
<a href='$reurl' onclick=\"ReturnImg('$reurl');\"> | |||||
<img src='$reurl' title='$file'> | <img src='$reurl' title='$file'> | ||||
<span>$file</span> | |||||
</a> | </a> | ||||
<span $lstyle>$file</span> | |||||
</div>"; | </div>"; | ||||
echo "$line"; | echo "$line"; | ||||
} | } | ||||
@@ -103,15 +103,15 @@ if (!empty($noeditor)) { | |||||
if ($activepath == "") continue; | if ($activepath == "") continue; | ||||
$tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath); | $tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath); | ||||
$line = "<tr> | $line = "<tr> | ||||
<td><a href='select_media.php?f=$f&activepath=".urlencode($tmp).$addparm."'><img src='/static/web/img/icon_dir2.png'> 返回上级</a></td> | |||||
<td colspan='2'>当前目录:$activepath</td> | |||||
<td><a href='select_media.php?f=$f&activepath=".urlencode($tmp).$addparm."'><img src='/static/web/img/icon_dir2.png'> 返回上级</a></td> | |||||
<td colspan='2'>当前目录:$activepath</td> | |||||
</tr>"; | </tr>"; | ||||
echo $line; | echo $line; | ||||
} else if (is_dir("$inpath/$file")) { | } else if (is_dir("$inpath/$file")) { | ||||
if (preg_match("#^_(.*)$#i", $file)) continue; | if (preg_match("#^_(.*)$#i", $file)) continue; | ||||
if (preg_match("#^\.(.*)$#i", $file)) continue; | if (preg_match("#^\.(.*)$#i", $file)) continue; | ||||
$line = "<tr> | $line = "<tr> | ||||
<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> | |||||
<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>"; | </tr>"; | ||||
echo "$line"; | echo "$line"; | ||||
} else if (preg_match("#\.(swf|fly|fla|flv)#i", $file)) { | } else if (preg_match("#\.(swf|fly|fla|flv)#i", $file)) { | ||||
@@ -125,9 +125,9 @@ if (!empty($noeditor)) { | |||||
if ($file == $comeback) $lstyle = "class='text-danger'"; | if ($file == $comeback) $lstyle = "class='text-danger'"; | ||||
else $lstyle = ''; | else $lstyle = ''; | ||||
$line = "<tr> | $line = "<tr> | ||||
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_flash.png'> $file</a></td> | |||||
<td>$filesize KB</td> | |||||
<td align='center'>$filetime</td> | |||||
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_flash.png'> $file</a></td> | |||||
<td>$filesize KB</td> | |||||
<td align='center'>$filetime</td> | |||||
</tr>"; | </tr>"; | ||||
echo "$line"; | echo "$line"; | ||||
} else if (preg_match("#\.(wmv|avi)#i", $file)) { | } else if (preg_match("#\.(wmv|avi)#i", $file)) { | ||||
@@ -141,9 +141,9 @@ if (!empty($noeditor)) { | |||||
if ($file == $comeback) $lstyle = "class='text-danger'"; | if ($file == $comeback) $lstyle = "class='text-danger'"; | ||||
else $lstyle = ''; | else $lstyle = ''; | ||||
$line = "<tr> | $line = "<tr> | ||||
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_video.png'> $file</a></td> | |||||
<td>$filesize KB</td> | |||||
<td align='center'>$filetime</td> | |||||
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_video.png'> $file</a></td> | |||||
<td>$filesize KB</td> | |||||
<td align='center'>$filetime</td> | |||||
</tr>"; | </tr>"; | ||||
echo "$line"; | echo "$line"; | ||||
} else if (preg_match("#\.(rm|rmvb|mp3|mp4)#i", $file)) { | } else if (preg_match("#\.(rm|rmvb|mp3|mp4)#i", $file)) { | ||||
@@ -157,9 +157,9 @@ if (!empty($noeditor)) { | |||||
if ($file == $comeback) $lstyle = "class='text-danger'"; | if ($file == $comeback) $lstyle = "class='text-danger'"; | ||||
else $lstyle = ''; | else $lstyle = ''; | ||||
$line = "<tr> | $line = "<tr> | ||||
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_rm.png'> $file</a></td> | |||||
<td>$filesize KB</td> | |||||
<td align='center'>$filetime</td> | |||||
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_rm.png'> $file</a></td> | |||||
<td>$filesize KB</td> | |||||
<td align='center'>$filetime</td> | |||||
</tr>"; | </tr>"; | ||||
echo "$line"; | echo "$line"; | ||||
} else if (preg_match("#\.(mp3|wma)#", $file)) { | } else if (preg_match("#\.(mp3|wma)#", $file)) { | ||||
@@ -173,9 +173,9 @@ if (!empty($noeditor)) { | |||||
if ($file == $comeback) $lstyle = "class='text-danger'"; | if ($file == $comeback) $lstyle = "class='text-danger'"; | ||||
else $lstyle = ''; | else $lstyle = ''; | ||||
$line = "<tr> | $line = "<tr> | ||||
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_music.png'> $file</a></td> | |||||
<td>$filesize KB</td> | |||||
<td align='center'>$filetime</td> | |||||
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_music.png'> $file</a></td> | |||||
<td>$filesize KB</td> | |||||
<td align='center'>$filetime</td> | |||||
</tr>"; | </tr>"; | ||||
echo "$line"; | echo "$line"; | ||||
} | } | ||||
@@ -103,15 +103,15 @@ if (!empty($noeditor)) { | |||||
if ($activepath == "") continue; | if ($activepath == "") continue; | ||||
$tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath); | $tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath); | ||||
$line = "<tr> | $line = "<tr> | ||||
<td><a href='select_soft.php?f=$f&activepath=".urlencode($tmp).$addparm."'><img src='/static/web/img/icon_dir2.png'> 返回上级</a></td> | |||||
<td colspan='2'>当前目录:$activepath</td> | |||||
<td><a href='select_soft.php?f=$f&activepath=".urlencode($tmp).$addparm."'><img src='/static/web/img/icon_dir2.png'> 返回上级</a></td> | |||||
<td colspan='2'>当前目录:$activepath</td> | |||||
</tr>\r\n"; | </tr>\r\n"; | ||||
echo $line; | echo $line; | ||||
} else if (is_dir("$inpath/$file")) { | } else if (is_dir("$inpath/$file")) { | ||||
if (preg_match("#^_(.*)$#i", $file)) continue; | if (preg_match("#^_(.*)$#i", $file)) continue; | ||||
if (preg_match("#^\.(.*)$#i", $file)) continue; | if (preg_match("#^\.(.*)$#i", $file)) continue; | ||||
$line = "<tr> | $line = "<tr> | ||||
<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> | |||||
<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>"; | </tr>"; | ||||
echo "$line"; | echo "$line"; | ||||
} else if (preg_match("#\.(zip|rar|tgr.gz)#i", $file)) { | } else if (preg_match("#\.(zip|rar|tgr.gz)#i", $file)) { | ||||
@@ -125,9 +125,9 @@ if (!empty($noeditor)) { | |||||
if ($file == $comeback) $lstyle = "class='text-danger'"; | if ($file == $comeback) $lstyle = "class='text-danger'"; | ||||
else $lstyle = ''; | else $lstyle = ''; | ||||
$line = "<tr> | $line = "<tr> | ||||
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_zip.png'> $file</a></td> | |||||
<td>$filesize KB</td> | |||||
<td>$filetime</td> | |||||
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_zip.png'> $file</a></td> | |||||
<td>$filesize KB</td> | |||||
<td>$filetime</td> | |||||
</tr>"; | </tr>"; | ||||
echo "$line"; | echo "$line"; | ||||
} else { | } else { | ||||
@@ -141,9 +141,9 @@ if (!empty($noeditor)) { | |||||
if ($file == $comeback) $lstyle = "class='text-danger'"; | if ($file == $comeback) $lstyle = "class='text-danger'"; | ||||
else $lstyle = ''; | else $lstyle = ''; | ||||
$line = "<tr> | $line = "<tr> | ||||
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_exe.png'> $file</a></td> | |||||
<td>$filesize KB</td> | |||||
<td>$filetime</td> | |||||
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_exe.png'> $file</a></td> | |||||
<td>$filesize KB</td> | |||||
<td>$filetime</td> | |||||
</tr>"; | </tr>"; | ||||
echo "$line"; | echo "$line"; | ||||
} | } | ||||
@@ -93,15 +93,15 @@ if (empty($comeback)) { | |||||
if ($activepath == "") continue; | if ($activepath == "") continue; | ||||
$tmp = preg_replace("#[\/][^\/]*$#", "", $activepath); | $tmp = preg_replace("#[\/][^\/]*$#", "", $activepath); | ||||
$line = "<tr> | $line = "<tr> | ||||
<td><a href='select_templets.php?f=$f&activepath=".urlencode($tmp)."'><img src='/static/web/img/icon_dir2.png'> 返回上级</a></td> | |||||
<td colspan='2'>当前目录:$activepath</td> | |||||
<td><a href='select_templets.php?f=$f&activepath=".urlencode($tmp)."'><img src='/static/web/img/icon_dir2.png'> 返回上级</a></td> | |||||
<td colspan='2'>当前目录:$activepath</td> | |||||
</tr>\r\n"; | </tr>\r\n"; | ||||
echo $line; | echo $line; | ||||
} else if (is_dir("$inpath/$file")) { | } else if (is_dir("$inpath/$file")) { | ||||
if (preg_match("#^_(.*)$#i", $file)) continue; | if (preg_match("#^_(.*)$#i", $file)) continue; | ||||
if (preg_match("#^\.(.*)$#i", $file)) continue; | if (preg_match("#^\.(.*)$#i", $file)) continue; | ||||
$line = "<tr> | $line = "<tr> | ||||
<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> | |||||
<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>"; | </tr>"; | ||||
echo "$line"; | echo "$line"; | ||||
} else if (preg_match("#\.(htm|html)#i", $file)) { | } else if (preg_match("#\.(htm|html)#i", $file)) { | ||||
@@ -111,9 +111,9 @@ if (empty($comeback)) { | |||||
if ($file == $comeback) $lstyle = "class='text-danger'"; | if ($file == $comeback) $lstyle = "class='text-danger'"; | ||||
else $lstyle = ''; | else $lstyle = ''; | ||||
$line = "<tr> | $line = "<tr> | ||||
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_htm.png'> $file</a></td> | |||||
<td>$filesize KB</td> | |||||
<td>$filetime</td> | |||||
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_htm.png'> $file</a></td> | |||||
<td>$filesize KB</td> | |||||
<td>$filetime</td> | |||||
</tr>"; | </tr>"; | ||||
echo "$line"; | echo "$line"; | ||||
} else if (preg_match("#\.(css)#i", $file)) { | } else if (preg_match("#\.(css)#i", $file)) { | ||||
@@ -123,9 +123,9 @@ if (empty($comeback)) { | |||||
if ($file == $comeback) $lstyle = "class='text-danger'"; | if ($file == $comeback) $lstyle = "class='text-danger'"; | ||||
else $lstyle = ''; | else $lstyle = ''; | ||||
$line = "<tr> | $line = "<tr> | ||||
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_css.png'> $file</a></td> | |||||
<td>$filesize KB</td> | |||||
<td>$filetime</td> | |||||
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_css.png'> $file</a></td> | |||||
<td>$filesize KB</td> | |||||
<td>$filetime</td> | |||||
</tr>"; | </tr>"; | ||||
echo "$line"; | echo "$line"; | ||||
} else if (preg_match("#\.(js)#i", $file)) { | } else if (preg_match("#\.(js)#i", $file)) { | ||||
@@ -135,9 +135,9 @@ if (empty($comeback)) { | |||||
if ($file == $comeback) $lstyle = "class='text-danger'"; | if ($file == $comeback) $lstyle = "class='text-danger'"; | ||||
else $lstyle = ''; | else $lstyle = ''; | ||||
$line = "<tr> | $line = "<tr> | ||||
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_js.png'> $file</a></td> | |||||
<td>$filesize KB</td> | |||||
<td>$filetime</td> | |||||
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_js.png'> $file</a></td> | |||||
<td>$filesize KB</td> | |||||
<td>$filetime</td> | |||||
</tr>"; | </tr>"; | ||||
echo "$line"; | echo "$line"; | ||||
} else if (preg_match("#\.(jpg)#i", $file)) { | } else if (preg_match("#\.(jpg)#i", $file)) { | ||||
@@ -147,9 +147,9 @@ if (empty($comeback)) { | |||||
if ($file == $comeback) $lstyle = "class='text-danger'"; | if ($file == $comeback) $lstyle = "class='text-danger'"; | ||||
else $lstyle = ''; | else $lstyle = ''; | ||||
$line = "<tr> | $line = "<tr> | ||||
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='$reurl'> $file</a></td> | |||||
<td>$filesize KB</td> | |||||
<td>$filetime</td> | |||||
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='$reurl'> $file</a></td> | |||||
<td>$filesize KB</td> | |||||
<td>$filetime</td> | |||||
</tr>"; | </tr>"; | ||||
echo "$line"; | echo "$line"; | ||||
} else if (preg_match("#\.(gif|png)#i", $file)) { | } else if (preg_match("#\.(gif|png)#i", $file)) { | ||||
@@ -159,9 +159,9 @@ if (empty($comeback)) { | |||||
if ($file == $comeback) $lstyle = "class='text-danger'"; | if ($file == $comeback) $lstyle = "class='text-danger'"; | ||||
else $lstyle = ''; | else $lstyle = ''; | ||||
$line = "<tr> | $line = "<tr> | ||||
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='$reurl'> $file</a></td> | |||||
<td>$filesize KB</td> | |||||
<td>$filetime</td> | |||||
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='$reurl'> $file</a></td> | |||||
<td>$filesize KB</td> | |||||
<td>$filetime</td> | |||||
</tr>"; | </tr>"; | ||||
echo "$line"; | echo "$line"; | ||||
} else if (preg_match("#\.(txt)#i", $file)) { | } else if (preg_match("#\.(txt)#i", $file)) { | ||||
@@ -171,9 +171,9 @@ if (empty($comeback)) { | |||||
if ($file == $comeback) $lstyle = "class='text-danger'"; | if ($file == $comeback) $lstyle = "class='text-danger'"; | ||||
else $lstyle = ''; | else $lstyle = ''; | ||||
$line = "<tr> | $line = "<tr> | ||||
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_text.png'> $file</a></td> | |||||
<td>$filesize KB</td> | |||||
<td>$filetime</td></tr>"; | |||||
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_text.png'> $file</a></td> | |||||
<td>$filesize KB</td> | |||||
<td>$filetime</td></tr>"; | |||||
echo "$line"; | echo "$line"; | ||||
} | } | ||||
} | } | ||||
@@ -28,7 +28,7 @@ function GetOptionList($selid = 0, $userCatalog = 0, $channeltype = 0) | |||||
//当前选中的栏目 | //当前选中的栏目 | ||||
if ($selid > 0) { | if ($selid > 0) { | ||||
$row = $dsql->GetOne("SELECT id,typename,ispart,channeltype FROM `#@__arctype` WHERE id='$selid'"); | $row = $dsql->GetOne("SELECT id,typename,ispart,channeltype FROM `#@__arctype` WHERE id='$selid'"); | ||||
if ($row['ispart'] == 1) $OptionArrayList .= "<option value='".$row['id']."' class='opt-ion1' selected='selected'>".$row['typename']."(封面栏目)</option>"; | |||||
if ($row['ispart'] == 1) $OptionArrayList .= "<option value='".$row['id']."' class='opt-bg1' selected='selected'>".$row['typename']."(封面栏目)</option>"; | |||||
else $OptionArrayList .= "<option value='".$row['id']."' selected='selected'>".$row['typename']."</option>"; | else $OptionArrayList .= "<option value='".$row['id']."' selected='selected'>".$row['typename']."</option>"; | ||||
} | } | ||||
//是否限定会员管理的栏目 | //是否限定会员管理的栏目 | ||||
@@ -60,16 +60,16 @@ function GetOptionList($selid = 0, $userCatalog = 0, $channeltype = 0) | |||||
$sonCats = ''; | $sonCats = ''; | ||||
LogicGetOptionArray($row->id, '─', $channeltype, $dsql, $sonCats); | LogicGetOptionArray($row->id, '─', $channeltype, $dsql, $sonCats); | ||||
if ($sonCats != '') { | if ($sonCats != '') { | ||||
if ($row->ispart == 1) $OptionArrayList .= "<option value='".$row->id."' class='opt-ion1'>".$row->typename." - 封面栏目</option>"; | |||||
else if ($row->ispart == 2) $OptionArrayList .= "<option value='".$row->id."' class='opt-ion1'>".$row->typename." - 外部栏目</option>"; | |||||
else if (empty($channeltype) && $row->ispart != 0) $OptionArrayList .= "<option value='".$row->id."' class='opt-ion2'>".$row->typename."-".$channels[$row->channeltype]."</option>"; | |||||
else $OptionArrayList .= "<option value='".$row->id."' class='opt-ion3'>".$row->typename."</option>"; | |||||
if ($row->ispart == 1) $OptionArrayList .= "<option value='".$row->id."' class='opt-bg1'>".$row->typename." - 封面栏目</option>"; | |||||
else if ($row->ispart == 2) $OptionArrayList .= "<option value='".$row->id."' class='opt-bg1'>".$row->typename." - 外部栏目</option>"; | |||||
else if (empty($channeltype) && $row->ispart != 0) $OptionArrayList .= "<option value='".$row->id."' class='opt-bg2'>".$row->typename."-".$channels[$row->channeltype]."</option>"; | |||||
else $OptionArrayList .= "<option value='".$row->id."' class='opt-bg3'>".$row->typename."</option>"; | |||||
$OptionArrayList .= $sonCats; | $OptionArrayList .= $sonCats; | ||||
} else { | } else { | ||||
if ($row->ispart == 0 && (!empty($channeltype) && $row->channeltype == $channeltype)) { | if ($row->ispart == 0 && (!empty($channeltype) && $row->channeltype == $channeltype)) { | ||||
$OptionArrayList .= "<option value='".$row->id."' class='opt-ion3'>".$row->typename."</option>"; | |||||
$OptionArrayList .= "<option value='".$row->id."' class='opt-bg3'>".$row->typename."</option>"; | |||||
} else if ($row->ispart == 0 && empty($channeltype)) { | } else if ($row->ispart == 0 && empty($channeltype)) { | ||||
$OptionArrayList .= "<option value='".$row->id."' class='opt-ion3'>".$row->typename."</option>"; | |||||
$OptionArrayList .= "<option value='".$row->id."' class='opt-bg3'>".$row->typename."</option>"; | |||||
} | } | ||||
} | } | ||||
} | } | ||||
@@ -85,9 +85,9 @@ function LogicGetOptionArray($id, $step, $channeltype, &$dsql, &$sonCats) | |||||
continue; | continue; | ||||
} | } | ||||
if ($row->channeltype == $channeltype && $row->ispart == 1) { | if ($row->channeltype == $channeltype && $row->ispart == 1) { | ||||
$sonCats .= "<option value='".$row->id."' class='opt-ion1'>└$step ".$row->typename."</option>"; | |||||
$sonCats .= "<option value='".$row->id."' class='opt-bg1'>└$step ".$row->typename."</option>"; | |||||
} else if (($row->channeltype == $channeltype && $row->ispart == 0) || empty($channeltype)) { | } else if (($row->channeltype == $channeltype && $row->ispart == 0) || empty($channeltype)) { | ||||
$sonCats .= "<option value='".$row->id."' class='opt-ion3'>└$step ".$row->typename."</option>"; | |||||
$sonCats .= "<option value='".$row->id."' class='opt-bg3'>└$step ".$row->typename."</option>"; | |||||
} | } | ||||
LogicGetOptionArray($row->id, $step.'─', $channeltype, $dsql, $sonCats); | LogicGetOptionArray($row->id, $step.'─', $channeltype, $dsql, $sonCats); | ||||
} | } | ||||
@@ -434,14 +434,11 @@ body.menu-show .admin-content { | |||||
word-wrap:break-word | word-wrap:break-word | ||||
} | } | ||||
.atlas { | .atlas { | ||||
float:left; | |||||
margin-right:1rem; | |||||
margin-bottom:1rem; | |||||
width:220px; | |||||
display:inline-block; | |||||
padding:0.5rem; | |||||
width:12.5%; | |||||
height:auto; | height:auto; | ||||
background:var(--bg); | |||||
text-align:center; | |||||
border-radius:var(--b-radius) | |||||
text-align:center | |||||
} | } | ||||
.atlas .atlas-head { | .atlas .atlas-head { | ||||
padding-bottom:75%; | padding-bottom:75%; | ||||
@@ -453,14 +450,13 @@ body.menu-show .admin-content { | |||||
left:0; | left:0; | ||||
width:100%; | width:100%; | ||||
height:100%; | height:100%; | ||||
object-fit:cover; | |||||
border-radius:var(--b-radius) var(--b-radius) 0 0 | |||||
object-fit:cover | |||||
} | } | ||||
.atlas .atlas-head,.atlas .atlas-body,.atlas .atlas-foot { | |||||
.atlas .atlas-head,.atlas .atlas-body { | |||||
margin-bottom:0.5rem | margin-bottom:0.5rem | ||||
} | } | ||||
.atlas .atlas-input { | .atlas .atlas-input { | ||||
max-width:200px | |||||
width:100% | |||||
} | } | ||||
#toolimg { | #toolimg { | ||||
position:absolute; | position:absolute; | ||||
@@ -480,17 +476,17 @@ body.menu-show .admin-content { | |||||
padding:1rem | padding:1rem | ||||
} | } | ||||
#topbar { | #topbar { | ||||
margin-bottom:1rem; | |||||
border-bottom:1px solid var(--light); | border-bottom:1px solid var(--light); | ||||
text-align:right | text-align:right | ||||
} | } | ||||
#file_list { | #file_list { | ||||
display:grid; | display:grid; | ||||
grid-gap:1rem; | grid-gap:1rem; | ||||
grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); | |||||
padding-top:1rem | |||||
grid-template-columns:repeat(auto-fill,minmax(160px,1fr)) | |||||
} | } | ||||
#file_list:empty:after { | #file_list:empty:after { | ||||
content:'支持拖拽图片上传' | |||||
content:'支持拖拽图此处片上传' | |||||
} | } | ||||
#file_list li { | #file_list li { | ||||
position:relative | position:relative | ||||
@@ -569,34 +565,42 @@ body.menu-show .admin-content { | |||||
.column:hover { | .column:hover { | ||||
background:rgba(0,0,0,0.075) | background:rgba(0,0,0,0.075) | ||||
} | } | ||||
.opt .list { | |||||
.opt-img .list { | |||||
display:inline-block; | display:inline-block; | ||||
margin-right:1rem; | |||||
margin-bottom:1rem; | |||||
padding:0.5rem; | padding:0.5rem; | ||||
width:165px; | |||||
background:var(--light); | |||||
width:20%; | |||||
text-align:center | text-align:center | ||||
} | } | ||||
.opt .list img { | |||||
.opt-img .list.dir { | |||||
width:12.5% | |||||
} | |||||
.opt-img .list a { | |||||
display:block; | display:block; | ||||
margin:0 auto 1rem; | |||||
max-width:149px; | |||||
max-height:84px | |||||
margin-bottom:0.5rem; | |||||
padding-bottom:75%; | |||||
position:relative | |||||
} | |||||
.opt-img .list a > img { | |||||
position:absolute; | |||||
top:0; | |||||
left:0; | |||||
width:100%; | |||||
height:100%; | |||||
object-fit:cover | |||||
} | } | ||||
.opt .list span { | |||||
.opt-img .list span { | |||||
display:block; | display:block; | ||||
overflow:hidden; | overflow:hidden; | ||||
text-overflow:ellipsis; | text-overflow:ellipsis; | ||||
white-space:nowrap | white-space:nowrap | ||||
} | } | ||||
.opt-ion1 { | |||||
.opt-bg1 { | |||||
background:var(--gray-300) | background:var(--gray-300) | ||||
} | } | ||||
.opt-ion2 { | |||||
.opt-bg2 { | |||||
background:var(--gray-500) | background:var(--gray-500) | ||||
} | } | ||||
.opt-ion3 { | |||||
.opt-bg3 { | |||||
background:var(--white) | background:var(--white) | ||||
} | } | ||||
.opt-button { | .opt-button { | ||||
@@ -714,7 +718,7 @@ span.page-link { | |||||
color:var(--white); | color:var(--white); | ||||
background:var(--green) | background:var(--green) | ||||
} | } | ||||
input,select,textarea,button,.colordlg,.pubdlg,.quickselitem .topcat,.mysource,.mywriter,.opt .list,#edsta,.cke_chrome,.cke_inner,.card,.form-control,.btn,.alert,.rounded { | |||||
input,select,textarea,button,.colordlg,.pubdlg,.quickselitem .topcat,.mysource,.mywriter,#edsta,.cke_chrome,.cke_inner,.card,.form-control,.btn,.alert,.rounded { | |||||
border-radius:var(--b-radius)!important | border-radius:var(--b-radius)!important | ||||
} | } | ||||
.cke_top { | .cke_top { | ||||
@@ -171,7 +171,7 @@ class TypeLink | |||||
$row = $this->dsql->GetOne("SELECT id,typename,ispart,channeltype FROM `#@__arctype` WHERE id='$hid'"); | $row = $this->dsql->GetOne("SELECT id,typename,ispart,channeltype FROM `#@__arctype` WHERE id='$hid'"); | ||||
$channeltype = $row['channeltype']; | $channeltype = $row['channeltype']; | ||||
if ($row['ispart'] == 1) { | if ($row['ispart'] == 1) { | ||||
$this->OptionArrayList .= "<option value='".$row['id']."' class='opt-ion1' selected>".$row['typename']."</option>\r\n"; | |||||
$this->OptionArrayList .= "<option value='".$row['id']."' class='opt-bg1' selected>".$row['typename']."</option>\r\n"; | |||||
} else { | } else { | ||||
$this->OptionArrayList .= "<option value='".$row['id']."' selected>".$row['typename']."</option>\r\n"; | $this->OptionArrayList .= "<option value='".$row['id']."' selected>".$row['typename']."</option>\r\n"; | ||||
} | } | ||||
@@ -205,7 +205,7 @@ class TypeLink | |||||
while ($row = $this->dsql->GetObject()) { | while ($row = $this->dsql->GetObject()) { | ||||
if ($row->id != $hid) { | if ($row->id != $hid) { | ||||
if ($row->ispart == 1) { | if ($row->ispart == 1) { | ||||
$this->OptionArrayList .= "<option value='".$row->id."' class='opt-ion1'>".$row->typename."</option>\r\n"; | |||||
$this->OptionArrayList .= "<option value='".$row->id."' class='opt-bg1'>".$row->typename."</option>\r\n"; | |||||
} else { | } else { | ||||
$this->OptionArrayList .= "<option value='".$row->id."'>".$row->typename."</option>\r\n"; | $this->OptionArrayList .= "<option value='".$row->id."'>".$row->typename."</option>\r\n"; | ||||
} | } | ||||
@@ -234,7 +234,7 @@ class TypeLink | |||||
if (!in_array($row->id, $oper)) continue; | if (!in_array($row->id, $oper)) continue; | ||||
} | } | ||||
if ($row->ispart == 1) { | if ($row->ispart == 1) { | ||||
$this->OptionArrayList .= "<option value='".$row->id."' class='opt-ion1'>└$step ".$row->typename."</option>\r\n"; | |||||
$this->OptionArrayList .= "<option value='".$row->id."' class='opt-bg1'>└$step ".$row->typename."</option>\r\n"; | |||||
} else { | } else { | ||||
$this->OptionArrayList .= "<option value='".$row->id."'>└$step ".$row->typename."</option>\r\n"; | $this->OptionArrayList .= "<option value='".$row->id."'>└$step ".$row->typename."</option>\r\n"; | ||||
} | } | ||||