From e7b804ebf75cb7efc74399d934670db920d06728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= <93301500+xushubieli@users.noreply.github.com> Date: Thu, 30 Mar 2023 16:27:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8A=E4=BC=A0=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/dialog/select_images.php | 38 +++++++-------- src/admin/dialog/select_images_post.php | 2 +- src/admin/dialog/select_media.php | 46 +++++++++--------- src/admin/dialog/select_media_post.php | 2 +- src/admin/dialog/select_mimages.php | 28 ++--------- src/admin/dialog/select_soft.php | 36 +++++++------- src/admin/dialog/select_soft_post.php | 2 +- src/admin/dialog/select_templets.php | 58 +++++++++++------------ src/admin/dialog/select_templets_post.php | 2 +- 9 files changed, 96 insertions(+), 118 deletions(-) diff --git a/src/admin/dialog/select_images.php b/src/admin/dialog/select_images.php index f64855ad..74c3ae38 100644 --- a/src/admin/dialog/select_images.php +++ b/src/admin/dialog/select_images.php @@ -1,6 +1,6 @@ <?php /** - * 图片选择 + * 选择图片 * * @version $id:select_images.php 2022-07-01 tianya $ * @package DedeBIZ.Dialog @@ -56,8 +56,8 @@ if (!empty($iseditor)) { <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> <title>选择图片</title> - <link rel="stylesheet" href="../../static/web/css/bootstrap.min.css"> <link rel="stylesheet" href="../../static/web/font/css/font-awesome.min.css"> + <link rel="stylesheet" href="../../static/web/css/bootstrap.min.css"> <link rel="stylesheet" href="../../static/web/css/admin.css"> <style>body{background:#f5f5f5}.upload-bg{margin:10px;background:#fff;border-radius:.5rem;box-shadow:0 .125rem .25rem rgba(0,0,0,.075)}.napisdiv{left:10;top:10;width:150px;height:100px;position:absolute;z-index:3;display:none}</style> <script> @@ -131,7 +131,7 @@ if (!empty($iseditor)) { <div id="floater" class="napisdiv"> <a href="javascript:nullLink();" onClick="document.getElementById('floater').style.display='none';"><img src="../../static/web/img/icon_img.png" id="picview" title="关闭预览"></a> </div> - <table width="100%" cellpadding="0" cellspacing="1" align="center" class="table table-borderless icon"> + <table cellpadding="0" cellspacing="1" align="center" class="table icon"> <tr> <td colspan="4"> <form action="select_images_post.php" method="POST" enctype="multipart/form-data" name="myform"> @@ -153,13 +153,13 @@ if (!empty($iseditor)) { </td> </tr> <tr> - <td class="admin-td" colspan="4">点击图片预览,再点击图片关闭预览,点击文件名选择图片</td> + <td colspan="4">点击图片预览,再点击图片关闭预览,点击文件名选择图片</td> </tr> <tr> - <td width="6%" class="admin-td">预览</td> - <td width="40%" class="admin-td">选择图片</td> - <td width="20%" class="admin-td">文件大小</td> - <td class="admin-td">修改时间</td> + <td width="6%">预览</td> + <td width="40%">选择图片</td> + <td width="20%">文件大小</td> + <td>修改时间</td> </tr> <?php $dh = scandir($inpath); @@ -186,17 +186,17 @@ if (!empty($iseditor)) { if ($activepath == "") continue; $tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath); $line = "<tr> - <td colspan='2' class='admin-td'><a href='select_images.php?imgstick=$imgstick&v=$v&f=$f&activepath=".urlencode($tmp).$addparm."'><img src='../../static/web/img/icon_dir2.png'>上级目录</a></td> - <td colspan='2' class='admin-td'>当前目录:$activepath</td> + <td colspan='2'><a href='select_images.php?imgstick=$imgstick&v=$v&f=$f&activepath=".urlencode($tmp).$addparm."'><img src='../../static/web/img/icon_dir2.png'>上级目录</a></td> + <td colspan='2'>当前目录:$activepath</td> </tr>"; echo $line; } else if (is_dir("$inpath/$file")) { if (preg_match("#^_(.*)$#i", $file)) continue; if (preg_match("#^\.(.*)$#i", $file)) continue; $line = "<tr> - <td colspan='2' class='admin-td'><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 class='admin-td'></td> - <td class='admin-td'></td> + <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> </tr>"; echo "$line"; } else if (preg_match("#\.(".$cfg_imgtype.")#i", $file)) { @@ -206,12 +206,12 @@ if (!empty($iseditor)) { if ($file == $comeback) $lstyle = "class='text-danger'"; else $lstyle = ""; $line = "<tr> - <td colspan='2' class='admin-td'> + <td colspan='2'> <a href=\"javascript:;\" onClick=\"ChangeImage('$reurl');\"><img src='$reurl'></a> <a href=\"javascript:;\" onclick=\"ReturnImg('$reurl');\" $lstyle>$file</a> </td> - <td class='admin-td'>$filesize KB</td> - <td class='admin-td'>$filetime</td> + <td>$filesize KB</td> + <td>$filetime</td> </tr>"; echo "$line"; } else if (preg_match("#\.(jpg)#i", $file)) { @@ -221,12 +221,12 @@ if (!empty($iseditor)) { if ($file == $comeback) $lstyle = "class='text-danger'"; else $lstyle = ""; $line = "<tr> - <td colspan='2' class='admin-td'> + <td colspan='2'> <a href=\"javascript:;\" onClick=\"ChangeImage('$reurl');\"><img src='$reurl'></a> <a href=\"javascript:;\" onclick=\"ReturnImg('$reurl');\" $lstyle>$file</a> </td> - <td class='admin-td'>$filesize KB</td> - <td class='admin-td'>$filetime</td> + <td>$filesize KB</td> + <td>$filetime</td> </tr>"; echo "$line"; } diff --git a/src/admin/dialog/select_images_post.php b/src/admin/dialog/select_images_post.php index 58f933aa..b657627b 100644 --- a/src/admin/dialog/select_images_post.php +++ b/src/admin/dialog/select_images_post.php @@ -1,6 +1,6 @@ <?php /** - * 图片选择 + * 选择图片发送 * * @version $id:select_images_post.php 9:43 2010年7月8日 tianya $ * @package DedeBIZ.Dialog diff --git a/src/admin/dialog/select_media.php b/src/admin/dialog/select_media.php index a9dbdaf3..f1cab6c4 100644 --- a/src/admin/dialog/select_media.php +++ b/src/admin/dialog/select_media.php @@ -1,6 +1,6 @@ <?php /** - * 多媒体选择 + * 选择多媒体 * * @version $id:select_media.php 9:43 2010年7月8日 tianya $ * @package DedeBIZ.Dialog @@ -46,8 +46,8 @@ if (!empty($noeditor)) { <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> <title>选择多媒体</title> - <link rel="stylesheet" href="../../static/web/css/bootstrap.min.css"> <link rel="stylesheet" href="../../static/web/font/css/font-awesome.min.css"> + <link rel="stylesheet" href="../../static/web/css/bootstrap.min.css"> <link rel="stylesheet" href="../../static/web/css/admin.css"> <style>body{background:#f5f5f5}.upload-bg{margin:10px;background:#fff;border-radius:.5rem;box-shadow:0 .125rem .25rem rgba(0,0,0,.075)}</style> <script> @@ -68,7 +68,7 @@ if (!empty($noeditor)) { </head> <body> <div class="upload-bg"> - <table width="100%" align="center" cellspacing="0" cellpadding="2" class="table table-borderless icon"> + <table align="center" cellspacing="0" cellpadding="2" class="table icon"> <tr> <td colspan="3"> <form action="select_media_post.php" method="POST" enctype="multipart/form-data" name="myform"> @@ -82,9 +82,9 @@ if (!empty($noeditor)) { </td> </tr> <tr> - <td width="50%" align="center" class="admin-td">点击名称选择文件</td> - <td width="20%" align="center" class="admin-td">文件大小</td> - <td align="center" class="admin-td">最后修改时间</td> + <td width="50%">点击名称选择文件</td> + <td width="20%">文件大小</td> + <td>最后修改时间</td> </tr> <?php $dh = scandir($inpath); @@ -112,17 +112,17 @@ if (!empty($noeditor)) { if ($activepath == "") continue; $tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath); $line = "<tr> - <td class='admin-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' class='admin-td'>当前目录:$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>"; echo $line; } else if (is_dir("$inpath/$file")) { if (preg_match("#^_(.*)$#i", $file)) continue; if (preg_match("#^\.(.*)$#i", $file)) continue; $line = "<tr> - <td class='admin-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 class='admin-td'></td> - <td class='admin-td'></td> + <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> </tr>"; echo "$line"; } else if (preg_match("#\.(swf|fly|fla|flv)#i", $file)) { @@ -132,12 +132,12 @@ if (!empty($noeditor)) { if ($file == $comeback) $lstyle = "class='text-danger'"; else $lstyle = ""; $line = "<tr> - <td class='admin-td'> + <td> <img src='../../static/web/img/icon_flash.png'> <a href=\"javascript:ReturnValue('$reurl');\" $lstyle>$file</a> </td> - <td class='admin-td'>$filesize KB</td> - <td align='center' class='admin-td'>$filetime</td> + <td>$filesize KB</td> + <td align='center'>$filetime</td> </tr>"; echo "$line"; } else if (preg_match("#\.(wmv|avi)#i", $file)) { @@ -147,12 +147,12 @@ if (!empty($noeditor)) { if ($file == $comeback) $lstyle = "class='text-danger'"; else $lstyle = ""; $line = "<tr> - <td class='admin-td'> + <td> <img src='../../static/web/img/icon_video.png'> <a href=\"javascript:ReturnValue('$reurl');\" $lstyle>$file</a> </td> - <td class='admin-td'>$filesize KB</td> - <td align='center' class='admin-td'>$filetime</td> + <td>$filesize KB</td> + <td align='center'>$filetime</td> </tr>"; echo "$line"; } else if (preg_match("#\.(rm|rmvb|mp3|mp4)#i", $file)) { @@ -162,12 +162,12 @@ if (!empty($noeditor)) { if ($file == $comeback) $lstyle = "class='text-danger'"; else $lstyle = ""; $line = "<tr> - <td class='admin-td'> + <td> <img src='../../static/web/img/icon_rm.png'> <a href=\"javascript:ReturnValue('$reurl');\" $lstyle>$file</a> </td> - <td class='admin-td'>$filesize KB</td> - <td class='admin-td' align='center'>$filetime</td> + <td>$filesize KB</td> + <td align='center'>$filetime</td> </tr>"; echo "$line"; } else if (preg_match("#\.(mp3|wma)#", $file)) { @@ -177,12 +177,12 @@ if (!empty($noeditor)) { if ($file == $comeback) $lstyle = "class='text-danger'"; else $lstyle = ""; $line = "<tr> - <td class='admin-td'> + <td> <img src='../../static/web/img/icon_music.png'> <a href=\"javascript:ReturnValue('$reurl');\" $lstyle>$file</a> </td> - <td class='admin-td'>$filesize KB</td> - <td align='center' class='admin-td'>$filetime</td> + <td>$filesize KB</td> + <td align='center'>$filetime</td> </tr>"; echo "$line"; } diff --git a/src/admin/dialog/select_media_post.php b/src/admin/dialog/select_media_post.php index e4f92fc0..07497614 100644 --- a/src/admin/dialog/select_media_post.php +++ b/src/admin/dialog/select_media_post.php @@ -1,6 +1,6 @@ <?php /** - * 多媒体发送 + * 选择多媒体发送 * * @version $id:select_media_post.php 9:43 2010年7月8日 tianya $ * @package DedeBIZ.Dialog diff --git a/src/admin/dialog/select_mimages.php b/src/admin/dialog/select_mimages.php index 63160882..dddb956a 100644 --- a/src/admin/dialog/select_mimages.php +++ b/src/admin/dialog/select_mimages.php @@ -12,30 +12,8 @@ include(DEDEDATA.'/mark/inc_photowatermark_config.php'); <meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="format-detection" content="telephone=no"> <title>插入多图</title> -<style> -body{margin:0;line-height:1.6;font:12px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#545b62;background:#fff} -ul{margin:0;padding:0;list-style:none} -input[type=radio],input[type=checkbox]{margin:0;height:auto;box-shadow:none;outline:none;vertical-align:text-top} -button+button{margin-left:10px} -#wrap{padding:10px} -#topbar{padding:10px 0;border-bottom:1px solid #ccc;text-align:right} -#topbar button{display:inline-block;border:0;padding:.25rem .5rem;line-height:1.6;font-size:12px;color:#fff;background:#1eb867;border-color:#1eb867;border-radius:.25rem;transition:all .6s;text-align:center} -.topbar button+.topbar button{margin-left:10px} -#topbar button:focus{background:#006829;border-color:#005b24;box-shadow:0 0 0 0.2rem rgba(38,159,86,.5);outline:none} -#file_list{display:grid;grid-gap:10px;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));padding-top:10px} -#file_list:empty:after{content:'拖拽图片放到这里进行上传'} -#file_list li{position:relative;display:block;vertical-align:top;padding:10px;border-radius:.25rem} -#file_list li.up-now:after{content:'';position:absolute;top:0;left:0;display:block;width:100%;height:100%;background:rgba(255,255,255,0.8) url(loading.gif) center center no-repeat;border-radius:.25rem;z-index:999} -#file_list li:hover{background:#f5f5f5} -#file_list li .picbox{display:flex;flex:0 0 auto;justify-content:center;overflow:hidden;position:relative;width:100%;padding-top:90%;align-items:center} -#file_list li .picbox img{display:block;max-width:100%;max-height:100%;position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%);border-radius:.25rem} -#file_list li .namebox{padding:10px;display:flex;justify-content:center;align-items:flex-start} -#file_list li.up-over .picbox:after{content:url(data:image/svg+xml;%20charset=utf8,%3Csvg%20viewBox%3D%220%200%201024%201024%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M512%200C229.376%200%200%20229.376%200%20512s229.376%20512%20512%20512%20512-229.376%20512-512S794.624%200%20512%200z%22%20fill%3D%22%234AC711%22%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M855.552%20394.752l-358.4%20358.4a50.9952%2050.9952%200%200%201-72.192%200l-204.8-204.8c-18.944-19.968-18.944-51.2%200-71.168a50.5344%2050.5344%200%200%201%2072.192-1.024L460.8%20644.608l322.048-322.048c19.968-18.944%2051.2-18.944%2071.168%200%2020.48%2019.456%2020.992%2051.712%201.536%2072.192z%22%20fill%3D%22%23FFFFFF%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E);position:absolute;bottom:10px;right:0;z-index:9} -#file_list li .tools{display:none;position:absolute;bottom:12px;right:10px;z-index:99} -#file_list li:hover .tools{display:block} -#file_list li .tools .remove{cursor:pointer} -#file_list li .tools .remove:after{content:url(data:image/svg+xml;%20charset=utf8,%3Csvg%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cpath%20d=%22M17%206h3a1%201%200%200%201%200%202h-1v11a3%203%200%200%201-3%203H8a3%203%200%200%201-3-3V8H4a1%201%200%201%201%200-2h3V5a3%203%200%200%201%203-3h4a3%203%200%200%201%203%203v1zm-2%200V5a1%201%200%200%200-1-1h-4a1%201%200%200%200-1%201v1h6zm2%202H7v11a1%201%200%200%200%201%201h8a1%201%200%200%200%201-1V8zm-8%203a1%201%200%200%201%202%200v6a1%201%200%200%201-2%200v-6zm4%200a1%201%200%200%201%202%200v6a1%201%200%200%201-2%200v-6z%22%3E%3C/path%3E%3C/svg%3E)} -</style> +<link rel="stylesheet" href="../../static/web/font/css/font-awesome.min.css"> +<style>body{margin:0;line-height:1.6;font:12px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#545b62;background:#fff}ul{margin:0;padding:0;list-style:none}input[type=radio],input[type=checkbox]{margin:0;height:auto;outline:none;box-shadow:none;vertical-align:text-top}button+button{margin-left:10px}#wrap{padding:10px}#topbar{padding:10px 0;border-bottom:1px solid #ccc;text-align:right}#topbar button{display:inline-block;padding:.25rem .65rem;line-height:1.6;font-size:12px;color:#fff;background:#1eb867;border-color:#1eb867;border-radius:.5rem;border:0;transition:all .5s;text-align:center}.topbar button+.topbar button{margin-left:10px}#topbar button:focus{background:#006829;border-color:#005b24;box-shadow:0 .125rem .25rem rgba(0,0,0,.075);outline:none}#file_list{display:grid;grid-gap:10px;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));padding-top:10px}#file_list:empty:after{content:'拖拽图片到此处上传'}#file_list li{display:block;position:relative;padding:10px;vertical-align:top;border-radius:.5rem}#file_list li.up-now:after{content:'';display:block;position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(255,255,255,0.8) url(../../static/web/img/loadinglit.gif)center center no-repeat;border-radius:.5rem;z-index:999}#file_list li:hover{background:#f5f5f5}#file_list li .picbox{display:flex;flex:0 0 auto;position:relative;padding-top:90%;width:100%;align-items:center;justify-content:center;overflow:hidden}#file_list li .picbox img{display:block;max-width:100%;max-height:100%;position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%);border-radius:.5rem}#file_list li .namebox{display:flex;padding:10px;justify-content:center;align-items:flex-start}#file_list li.up-over .picbox:after{position:absolute;bottom:10px;right:0;font-family:'FontAwesome';font-size:18px;color:#1eb867;content:'\f058';z-index:9}#file_list li .tools{display:none;position:absolute;bottom:12px;right:10px;z-index:99}#file_list li:hover .tools{display:block}#file_list li .tools .remove{cursor:pointer}#file_list li .tools .remove:after{font-family:'FontAwesome';font-size:18px;color:#dc3545;content:'\f1f8'}</style> </head> <body> <div id="wrap"> @@ -83,7 +61,7 @@ button+button{margin-left:10px} function isFileImage(file) { return file && file['type'].split('/')[0] === 'image'; } - function addList(files){ + function addList(files) { var files_sum = files.length; var vDom = document.createDocumentFragment(); for (let i=0;i<files_sum;i++) { diff --git a/src/admin/dialog/select_soft.php b/src/admin/dialog/select_soft.php index 6054a96c..a9c119bb 100644 --- a/src/admin/dialog/select_soft.php +++ b/src/admin/dialog/select_soft.php @@ -1,6 +1,6 @@ <?php /** - * 软件选择 + * 选择软件 * * @version $id:select_soft.php 9:43 2010年7月8日 tianya $ * @package DedeBIZ.Dialog @@ -45,8 +45,8 @@ if (!empty($noeditor)) { <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> <title>选择软件</title> - <link rel="stylesheet" href="../../static/web/css/bootstrap.min.css"> <link rel="stylesheet" href="../../static/web/font/css/font-awesome.min.css"> + <link rel="stylesheet" href="../../static/web/css/bootstrap.min.css"> <link rel="stylesheet" href="../../static/web/css/admin.css"> <style>body{background:#f5f5f5}.upload-bg{margin:10px;background:#fff;border-radius:.5rem;box-shadow:0 .125rem .25rem rgba(0,0,0,.075)}</style> <script> @@ -73,7 +73,7 @@ if (!empty($noeditor)) { </head> <body> <div class="upload-bg"> - <table width="100%" cellpadding="0" cellspacing="1" align="center" class="table table-borderless icon"> + <table cellpadding="0" cellspacing="1" align="center" class="table icon"> <tr> <td colspan="3"> <form action="select_soft_post.php" method="POST" enctype="multipart/form-data" name="myform"> @@ -87,12 +87,12 @@ if (!empty($noeditor)) { </td> </tr> <tr> - <td colspan="3" class="admin-td">点击选择的文件,红色字样的为刚上传的文件</td> + <td colspan="3">点击选择文件,红色字样的为刚上传的文件</td> </tr> <tr> - <td width="50%" class="admin-td">选择文件</td> - <td width="20%" class="admin-td">文件大小</td> - <td class="admin-td">修改时间</td> + <td width="50%">选择文件</td> + <td width="20%">文件大小</td> + <td>修改时间</td> </tr> <?php $dh = scandir($inpath); @@ -119,17 +119,17 @@ if (!empty($noeditor)) { if ($activepath == "") continue; $tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath); $line = "<tr> - <td class='admin-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' class='admin-td'>当前目录:$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"; echo $line; } else if (is_dir("$inpath/$file")) { if (preg_match("#^_(.*)$#i", $file)) continue; if (preg_match("#^\.(.*)$#i", $file)) continue; $line = "<tr> - <td class='admin-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 class='admin-td'></td> - <td class='admin-td'></td> + <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> </tr>"; echo "$line"; } else if (preg_match("#\.(zip|rar|tgr.gz)#i", $file)) { @@ -139,12 +139,12 @@ if (!empty($noeditor)) { $reurl = preg_replace("#^\.\.#", "", $reurl); $reurl = $reurl; $line = "<tr> - <td class='admin-td'> + <td> <img src='../../static/web/img/icon_zip.png'> <a href=\"javascript:ReturnValue('$reurl');\" $lstyle>$file</a> </td> - <td class='admin-td'>$filesize KB</td> - <td class='admin-td'>$filetime</td> + <td>$filesize KB</td> + <td>$filetime</td> </tr>"; echo "$line"; } else { @@ -154,12 +154,12 @@ if (!empty($noeditor)) { $reurl = preg_replace("#^\.\.#", "", $reurl); $reurl = $reurl; $line = "<tr> - <td class='admin-td'> + <td> <img src='../../static/web/img/icon_exe.png'> <a href=\"javascript:ReturnValue('$reurl');\" $lstyle>$file</a> </td> - <td class='admin-td'>$filesize KB</td> - <td class='admin-td'>$filetime</td> + <td>$filesize KB</td> + <td>$filetime</td> </tr>"; echo "$line"; } diff --git a/src/admin/dialog/select_soft_post.php b/src/admin/dialog/select_soft_post.php index 8526cd39..40adc664 100644 --- a/src/admin/dialog/select_soft_post.php +++ b/src/admin/dialog/select_soft_post.php @@ -1,6 +1,6 @@ <?php /** - * 软件发送 + * 选择软件发送 * * @version $id:select_soft_post.php 9:43 2010年7月8日 tianya $ * @package DedeBIZ.Dialog diff --git a/src/admin/dialog/select_templets.php b/src/admin/dialog/select_templets.php index 893d3a9c..94e04171 100644 --- a/src/admin/dialog/select_templets.php +++ b/src/admin/dialog/select_templets.php @@ -1,6 +1,6 @@ <?php /** - * 模板选择 + * 选择模板 * * @version $id:select_templets.php 9:43 2010年7月8日 tianya $ * @package DedeBIZ.Dialog @@ -37,8 +37,8 @@ if (empty($comeback)) { <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> <title>选择模板</title> - <link rel="stylesheet" href="../../static/web/css/bootstrap.min.css"> <link rel="stylesheet" href="../../static/web/font/css/font-awesome.min.css"> + <link rel="stylesheet" href="../../static/web/css/bootstrap.min.css"> <link rel="stylesheet" href="../../static/web/css/admin.css"> <style>body{background:#f5f5f5}.upload-bg{margin:10px;background:#fff;border-radius:.5rem;box-shadow:0 .125rem .25rem rgba(0,0,0,.075)}</style> <script> @@ -54,7 +54,7 @@ if (empty($comeback)) { </head> <body> <div class="upload-bg"> - <table width="100%" cellpadding="0" cellspacing="1" align="center" class="table table-borderless icon"> + <table cellpadding="0" cellspacing="1" align="center" class="table icon"> <tr> <td colspan="3"> <form action="select_templets_post.php" method="POST" enctype="multipart/form-data" name="myform"> @@ -68,9 +68,9 @@ if (empty($comeback)) { </td> </tr> <tr> - <td width="50%" class="admin-td">选择文件</td> - <td width="20%" class="admin-td">文件大小</td> - <td class="admin-td">修改时间</td> + <td width="50%">选择文件</td> + <td width="20%">文件大小</td> + <td>修改时间</td> </tr> <?php $dh = scandir($inpath); @@ -98,17 +98,17 @@ if (empty($comeback)) { if ($activepath == "") continue; $tmp = preg_replace("#[\/][^\/]*$#", "", $activepath); $line = "<tr> - <td class='admin-td'><a href='select_templets.php?f=$f&activepath=".urlencode($tmp)."'><img src='../../static/web/img/icon_dir2.png'>上级目录</a></td> - <td colspan='2' class='admin-td'>当前目录:$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"; echo $line; } else if (is_dir("$inpath/$file")) { if (preg_match("#^_(.*)$#i", $file)) continue; if (preg_match("#^\.(.*)$#i", $file)) continue; $line = "<tr> - <td class='admin-td'><a href=select_templets.php?f=$f&activepath=".urlencode("$activepath/$file")."><img src='../../static/web/img/icon_dir.png'>$file</a></td> - <td class='admin-td'></td> - <td class='admin-td'></td> + <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> </tr>"; echo "$line"; } else if (preg_match("#\.(htm|html)#i", $file)) { @@ -118,12 +118,12 @@ if (empty($comeback)) { $reurl = preg_replace("#\.\.#", "", $reurl); $reurl = preg_replace("#".$templetdir."\/#", "", $reurl); $line = "<tr> - <td class='admin-td'> + <td> <img src='../../static/web/img/icon_htm.png'> <a href=\"javascript:ReturnValue('$reurl');\" $lstyle>$file</a> </td> - <td class='admin-td'>$filesize KB</td> - <td class='admin-td'>$filetime</td> + <td>$filesize KB</td> + <td>$filetime</td> </tr>"; echo "$line"; } else if (preg_match("#\.(css)#i", $file)) { @@ -133,12 +133,12 @@ if (empty($comeback)) { $reurl = preg_replace("#\.\.#", "", $reurl); $reurl = preg_replace("#".$templetdir."/#", "", $reurl); $line = "<tr> - <td class='admin-td'> + <td> <img src='../../static/web/img/icon_css.png'> <a href=\"javascript:ReturnValue('$reurl');\" $lstyle>$file</a> </td> - <td class='admin-td'>$filesize KB</td> - <td class='admin-td'>$filetime</td> + <td>$filesize KB</td> + <td>$filetime</td> </tr>"; echo "$line"; } else if (preg_match("#\.(js)#i", $file)) { @@ -148,12 +148,12 @@ if (empty($comeback)) { $reurl = preg_replace("#\.\.#", "", $reurl); $reurl = preg_replace("#".$templetdir."\/#", "", $reurl); $line = "<tr> - <td class='admin-td'> + <td> <img src='../../static/web/img/icon_js.png'> <a href=\"javascript:ReturnValue('$reurl');\" $lstyle>$file</a> </td> - <td class='admin-td'>$filesize KB</td> - <td class='admin-td'>$filetime</td> + <td>$filesize KB</td> + <td>$filetime</td> </tr>"; echo "$line"; } else if (preg_match("#\.(jpg)#i", $file)) { @@ -163,12 +163,12 @@ if (empty($comeback)) { $reurl = preg_replace("#\.\.#", "", $reurl); $reurl = preg_replace("#".$templetdir."\/#", "", $reurl); $line = "<tr> - <td class='admin-td'> + <td> <img src='$reurl'> <a href=\"javascript:ReturnValue('$reurl');\" $lstyle>$file</a> </td> - <td class='admin-td'>$filesize KB</td> - <td class='admin-td'>$filetime</td> + <td>$filesize KB</td> + <td>$filetime</td> </tr>"; echo "$line"; } else if (preg_match("#\.(gif|png)#i", $file)) { @@ -178,12 +178,12 @@ if (empty($comeback)) { $reurl = preg_replace("#\.\.#", "", $reurl); $reurl = preg_replace("#".$templetdir."\/#", "", $reurl); $line = "<tr> - <td class='admin-td'> + <td> <img src='$reurl'> <a href=\"javascript:ReturnValue('$reurl');\" $lstyle>$file</a> </td> - <td class='admin-td'>$filesize KB</td> - <td class='admin-td'>$filetime</td> + <td>$filesize KB</td> + <td>$filetime</td> </tr>"; echo "$line"; } else if (preg_match("#\.(txt)#i", $file)) { @@ -193,12 +193,12 @@ if (empty($comeback)) { $reurl = preg_replace("#\.\.#", "", $reurl); $reurl = preg_replace("#".$templetdir."\/#", "", $reurl); $line = "<tr> - <td class='admin-td'> + <td> <img src='../../static/web/img/icon_text.png'> <a href=\"javascript:ReturnValue('$reurl');\" $lstyle>$file</a> </td> - <td class='admin-td'>$filesize KB</td> - <td class='admin-td'>$filetime</td></tr>"; + <td>$filesize KB</td> + <td>$filetime</td></tr>"; echo "$line"; } }//End Loop diff --git a/src/admin/dialog/select_templets_post.php b/src/admin/dialog/select_templets_post.php index 15a3dfcf..cff29fbd 100644 --- a/src/admin/dialog/select_templets_post.php +++ b/src/admin/dialog/select_templets_post.php @@ -1,6 +1,6 @@ <?php /** - * 模板发送 + * 选择模板发送 * * @version $id:select_templets_post.php 9:43 2010年7月8日 tianya $ * @package DedeBIZ.Dialog