@@ -111,8 +111,8 @@ if (!empty($iseditor)) { | |||||
if ($activepath == "") continue; | if ($activepath == "") continue; | ||||
$tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath); | $tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath); | ||||
$line = "<div class='d-flex justify-content-between align-items-center 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> | |||||
<span>当前目录:$activepath</span> | <span>当前目录:$activepath</span> | ||||
<a href='select_images.php?imgstick=$imgstick&v=$v&f=$f&activepath=".urlencode($tmp).$addparm."'><img src='/static/web/img/icon_dir2.png'> 返回上级</a> | |||||
</div>"; | </div>"; | ||||
echo $line; | echo $line; | ||||
} else if (is_dir("$inpath/$file")) { | } else if (is_dir("$inpath/$file")) { | ||||
@@ -103,8 +103,8 @@ 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 colspan='2'>当前目录:$activepath</td> | ||||
<td align='right'><a href='select_media.php?f=$f&activepath=".urlencode($tmp).$addparm."'><img src='/static/web/img/icon_dir2.png'> 返回上级</a></td> | |||||
</tr>"; | </tr>"; | ||||
echo $line; | echo $line; | ||||
} else if (is_dir("$inpath/$file")) { | } else if (is_dir("$inpath/$file")) { | ||||
@@ -103,9 +103,9 @@ 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 colspan='2'>当前目录:$activepath</td> | ||||
</tr>\r\n"; | |||||
<td align='right'><a href='select_soft.php?f=$f&activepath=".urlencode($tmp).$addparm."'><img src='/static/web/img/icon_dir2.png'> 返回上级</a></td> | |||||
</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; | ||||
@@ -93,8 +93,8 @@ 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 colspan='2'>当前目录:$activepath</td> | ||||
<td align='right'><a href='select_templets.php?f=$f&activepath=".urlencode($tmp)."'><img src='/static/web/img/icon_dir2.png'> 返回上级</a></td> | |||||
</tr>\r\n"; | </tr>\r\n"; | ||||
echo $line; | echo $line; | ||||
} else if (is_dir("$inpath/$file")) { | } else if (is_dir("$inpath/$file")) { | ||||
@@ -26,9 +26,9 @@ if ($fmdo == "rename") { | |||||
$win->AddHidden("fmdo", $fmdo); | $win->AddHidden("fmdo", $fmdo); | ||||
$win->AddHidden("activepath", $activepath); | $win->AddHidden("activepath", $activepath); | ||||
$win->AddHidden("filename", $filename); | $win->AddHidden("filename", $filename); | ||||
$win->AddTitle("修改文件名,当前路径:$ndirstring"); | |||||
$win->AddItem("旧名称:", "<input type='input' name='oldfilename' id='oldfilename' class='admin-input-md' value='$filename'>"); | |||||
$win->AddItem("新名称:", "<input type='input' name='newfilename' id='newfilename' class='admin-input-md'>"); | |||||
$win->AddTitle("修改文件名,当前位置:".$ndirstring.""); | |||||
$win->AddItem("旧名称", "<input type='input' name='oldfilename' id='oldfilename' class='admin-input-md' value='$filename'>"); | |||||
$win->AddItem("新名称", "<input type='input' name='newfilename' id='newfilename' class='admin-input-md'>"); | |||||
$winform = $win->GetWindow("ok"); | $winform = $win->GetWindow("ok"); | ||||
$win->Display(); | $win->Display(); | ||||
} | } | ||||
@@ -42,8 +42,8 @@ else if ($fmdo == "newdir") { | |||||
$win->AddHidden("fmdo", $fmdo); | $win->AddHidden("fmdo", $fmdo); | ||||
$win->AddHidden("activepath", $activepath); | $win->AddHidden("activepath", $activepath); | ||||
$win->AddHidden("token", make_hash()); | $win->AddHidden("token", make_hash()); | ||||
$win->AddTitle("当前目录 $activepathname "); | |||||
$win->AddItem("新目录:", "<input type='input' name='newpath' id='newpath' class='admin-input-md'>"); | |||||
$win->AddTitle("当前目录:".$activepathname.""); | |||||
$win->AddItem("新目录", "<input type='input' name='newpath' id='newpath' class='admin-input-md'>"); | |||||
$winform = $win->GetWindow("ok"); | $winform = $win->GetWindow("ok"); | ||||
$win->Display(); | $win->Display(); | ||||
} | } | ||||
@@ -56,9 +56,9 @@ else if ($fmdo == "move") { | |||||
$win->AddHidden("activepath", $activepath); | $win->AddHidden("activepath", $activepath); | ||||
$win->AddHidden("filename", $filename); | $win->AddHidden("filename", $filename); | ||||
$win->AddTitle("新位置前面不加斜杆/表示相对于当前位置,加斜杆/表示相对于根目录"); | $win->AddTitle("新位置前面不加斜杆/表示相对于当前位置,加斜杆/表示相对于根目录"); | ||||
$win->AddItem("被移动文件:", $filename); | |||||
$win->AddItem("当前位置:", $activepath); | |||||
$win->AddItem("新位置:", "<input type='input' name='newpath' id='newpath' class='admin-input-md'>"); | |||||
$win->AddItem("移动文件", $filename); | |||||
$win->AddItem("当前位置", $activepath); | |||||
$win->AddItem("新位置", "<input type='input' name='newpath' id='newpath' class='admin-input-md'>"); | |||||
$winform = $win->GetWindow("ok"); | $winform = $win->GetWindow("ok"); | ||||
$win->Display(); | $win->Display(); | ||||
} | } | ||||
@@ -337,6 +337,7 @@ | |||||
</div> | </div> | ||||
<div class="form-group"> | <div class="form-group"> | ||||
<label for="modelid" class="form-label">选择模型</label> | <label for="modelid" class="form-label">选择模型</label> | ||||
<select id="modelid" class="form-control"> | |||||
<?php | <?php | ||||
$dsql->SetQuery("SELECT AM.*,A.title as aititle FROM `#@__ai_model` AM LEFT JOIN `#@__ai` A ON A.id = AM.aiid ORDER BY AM.sortrank ASC,AM.id DESC"); | $dsql->SetQuery("SELECT AM.*,A.title as aititle FROM `#@__ai_model` AM LEFT JOIN `#@__ai` A ON A.id = AM.aiid ORDER BY AM.sortrank ASC,AM.id DESC"); | ||||
$dsql->Execute(); | $dsql->Execute(); | ||||
@@ -57,8 +57,8 @@ | |||||
} | } | ||||
$tmp = preg_replace("#[\/][^\/]*$#i","",$activepath); | $tmp = preg_replace("#[\/][^\/]*$#i","",$activepath); | ||||
$line = "\n<tr> | $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> | <td colspan='3'>当前目录:$activepath</td> | ||||
<td align='right'><a href='file_manage_main.php?activepath=".urlencode($tmp)."'><img src='/static/web/img/icon_dir2.png'> 返回上级</a></td> | |||||
</tr>"; | </tr>"; | ||||
$dirs[] = $line; | $dirs[] = $line; | ||||
} else if (is_dir("$inpath/$file")) { | } else if (is_dir("$inpath/$file")) { | ||||