| @@ -167,8 +167,8 @@ if ($dopost == 'time') { | |||
| <tr> | |||
| <td width="160" class="bline" align="center">是否支持投稿:</td> | |||
| <td class="bline"> | |||
| <label><input type="radio" name="issend" value="0" <?php if ($myrow['issend'] == "0") echo "checked='1'"; ?>> 不支持</label> | |||
| <label><input type="radio" name="issend" value="1" <?php if ($myrow['issend'] == "1") echo "checked='1'"; ?>> 支持</label> | |||
| <label><input type="radio" name="issend" value="0" <?php if ($myrow['issend'] == "0") echo "checked='1'"; ?>> 不支持</label> | |||
| </td> | |||
| </tr> | |||
| <tr> | |||
| @@ -49,7 +49,6 @@ | |||
| }); | |||
| </script> | |||
| <style> | |||
| body{background:#fff} | |||
| img{margin:0 10px;vertical-align:baseline} | |||
| table{border-collapse:separate} | |||
| </style> | |||
| @@ -173,7 +172,7 @@ table{border-collapse:separate} | |||
| <tr> | |||
| <td width="90"> 来源:</td> | |||
| <td width="260"> | |||
| <input type="text" name="source" id="source" value=""style="width:160px" > | |||
| <input type="text" name="source" id="source" value=""style="width:160px"> | |||
| <button type="button" name="selsource" id="selsource" class="btn btn-success btn-sm">选择</button> | |||
| </td> | |||
| <td width="60">作者:</td> | |||
| @@ -280,7 +279,7 @@ table{border-collapse:separate} | |||
| </td> | |||
| </tr> | |||
| <tr> | |||
| <td width="84" ></td> | |||
| <td width="84"></td> | |||
| <td>(系统仅是每页输出"行x列"张图片,实现需自行控制样式表)</td> | |||
| </tr> | |||
| </table> | |||
| @@ -49,7 +49,6 @@ | |||
| }); | |||
| </script> | |||
| <style> | |||
| body{background:#fff} | |||
| img{margin:0 10px;vertical-align:baseline} | |||
| table{border-collapse:separate} | |||
| .albEdit {height:auto} | |||
| @@ -380,7 +379,7 @@ table{border-collapse:separate} | |||
| </td> | |||
| </tr> | |||
| <tr> | |||
| <td width="84" ></td> | |||
| <td width="84"></td> | |||
| <td>(系统仅是每页输出"行x列"张图片,实现需自行控制样式表)</td> | |||
| </tr> | |||
| </table> | |||
| @@ -31,7 +31,6 @@ | |||
| } | |||
| </script> | |||
| <style> | |||
| body{background:#fff} | |||
| img{vertical-align:baseline} | |||
| table{border-collapse:separate} | |||
| .form-control{display:inline-block;margin-right:10px;width:160px} | |||
| @@ -28,7 +28,6 @@ | |||
| } | |||
| </script> | |||
| <style> | |||
| body{background:#fff} | |||
| img{vertical-align:baseline} | |||
| table{border-collapse:separate} | |||
| .form-control{display:inline-block;margin-right:10px;width:160px} | |||
| @@ -235,7 +234,7 @@ table{border-collapse:separate} | |||
| } | |||
| ?> | |||
| <tr> | |||
| <td width="900" > | |||
| <td width="900"> | |||
| <table width="900" cellspacing="0" cellpadding="0"> | |||
| <tr> | |||
| <td width="90"> 附加选项:</td> | |||
| @@ -32,7 +32,6 @@ | |||
| } | |||
| </script> | |||
| <style> | |||
| body{background:#fff} | |||
| img{vertical-align:baseline} | |||
| table{border-collapse:separate} | |||
| .form-control{display:inline-block;margin-right:6px;width:160px} | |||
| @@ -29,7 +29,6 @@ | |||
| } | |||
| </script> | |||
| <style> | |||
| body{background:#fff} | |||
| img{vertical-align:baseline} | |||
| table{border-collapse:separate} | |||
| .form-control{display:inline-block;margin-right:6px;width:160px} | |||
| @@ -33,7 +33,6 @@ | |||
| } | |||
| </script> | |||
| <style> | |||
| body{background:#fff} | |||
| img{vertical-align:baseline} | |||
| table{border-collapse:separate} | |||
| .albCt img{cursor:pointer} | |||
| @@ -44,7 +43,7 @@ table{border-collapse:separate} | |||
| <body> | |||
| <table width="98%" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||
| <tr> | |||
| <td width="60%" ><i class="fa fa-book"></i> <a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">文章列表</a> > 发布文章</td> | |||
| <td width="60%"><i class="fa fa-book"></i> <a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">文章列表</a> > 发布文章</td> | |||
| <td width="30%" align="right"><?php echo $backurl; ?><a class="btn btn-success btn-sm" href="catalog_main.php">栏目管理</a></td> | |||
| </tr> | |||
| </table> | |||
| @@ -108,7 +108,7 @@ | |||
| <td width="12%">操作</td> | |||
| </tr> | |||
| {dede:datalist empty='<tr><td colspan="6"><center>暂无内容</center></td></tr>'} | |||
| <tr align="center" onMouseOut="javascript:this.bgColor='#ffffff';" > | |||
| <tr align="center" onMouseOut="javascript:this.bgColor='#ffffff';"> | |||
| <td><?php echo $fields['id']?></td> | |||
| <td><input type="checkbox" name="ids" id="ids" value="<?php echo $fields['id']?>"></td> | |||
| <td align="left"><?php echo $fields['url']; ?></td> | |||
| @@ -31,7 +31,6 @@ | |||
| } | |||
| </script> | |||
| <style> | |||
| body{background:#fff} | |||
| img{vertical-align:baseline} | |||
| table{border-collapse:separate} | |||
| .albCt img{cursor:pointer} | |||
| @@ -42,7 +41,7 @@ table{border-collapse:separate} | |||
| <body> | |||
| <table width="98%" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||
| <tr> | |||
| <td width="60%" ><i class="fa fa-book"></i> <a href="catalog_do.php?cid=<?php echo $arcRow['typeid']?>&channelid=<?php echo $channelid?>&dopost=listArchives">文章列表</a> > 修改文章</td> | |||
| <td width="60%"><i class="fa fa-book"></i> <a href="catalog_do.php?cid=<?php echo $arcRow['typeid']?>&channelid=<?php echo $channelid?>&dopost=listArchives">文章列表</a> > 修改文章</td> | |||
| <td width="30%" align="right"><?php echo $backurl; ?><a class="btn btn-success btn-sm" href="catalog_main.php">栏目管理</a></td> | |||
| </tr> | |||
| </table> | |||
| @@ -183,8 +183,8 @@ | |||
| <tr> | |||
| <td width="260" class="bline">是否支持投稿:</td> | |||
| <td class="bline"> | |||
| <label><input type="radio" name="issend" value="0" <?php if($issend==0) echo " checked='checked' "; ?>> 不支持</label> | |||
| <label><input type="radio" name="issend" value="1" <?php if($issend==1) echo " checked='checked' "; ?>> 支持</label> | |||
| <label><input type="radio" name="issend" value="0" <?php if($issend==0) echo " checked='checked' "; ?>> 不支持</label> | |||
| </td> | |||
| </tr> | |||
| <tr> | |||
| @@ -121,8 +121,8 @@ | |||
| <tr> | |||
| <td width="260" class="bline">是否支持投稿:</td> | |||
| <td class="bline"> | |||
| <label><input type="radio" name="issend" value="0"> 不支持</label> | |||
| <label><input type="radio" name="issend" value="1" checked="1"> 支持</label> | |||
| <label><input type="radio" name="issend" value="0"> 不支持</label> | |||
| </td> | |||
| </tr> | |||
| <tr> | |||
| @@ -212,7 +212,7 @@ | |||
| <table id="addQuick" width="850" cellpadding="3" cellspacing="1"> | |||
| <tbody> | |||
| <tr bgcolor="#F8FCF1"> | |||
| <td width="60" >排序</td> | |||
| <td width="60">排序</td> | |||
| <td width="170">顶级栏目名称</td> | |||
| <td width="370">子栏目(用"目录名称1,目录名称2"这样表示多个栏目)</td> | |||
| <td align="center"><button type="button" id="add" class="btn btn-success btn-sm">添加</button></td> | |||
| @@ -242,7 +242,7 @@ | |||
| <table id="addQuickRel" width="302" cellpadding="3" cellspacing="1" style="display:none"> | |||
| <tbody> | |||
| <tr bgcolor="#F8FCF1" align="center"> | |||
| <td width="60" >排序</td> | |||
| <td width="60">排序</td> | |||
| <td width="170">栏目名称</td> | |||
| <td align="center"><button type="button" id="addrel" class="btn btn-success btn-sm">添加</button></td> | |||
| </tr> | |||
| @@ -164,8 +164,8 @@ | |||
| <tr> | |||
| <td width="260" class="bline">是否支持投稿:</td> | |||
| <td class="bline"> | |||
| <label><input type="radio" name="issend" value="0" <?php if($myrow['issend']=="0") echo "checked='1'"; ?>> 不支持</label> | |||
| <label><input type="radio" name="issend" value="1" <?php if($myrow['issend']=="1") echo "checked='1'"; ?>> 支持</label> | |||
| <label><input type="radio" name="issend" value="0" <?php if($myrow['issend']=="0") echo "checked='1'"; ?>> 不支持</label> | |||
| </td> | |||
| </tr> | |||
| <tr> | |||
| @@ -133,7 +133,7 @@ | |||
| <td width="10%">属性</td> | |||
| </tr> | |||
| {dede:datalist empty='<tr><td colspan="9"><center>暂无内容</center></td></tr>'} | |||
| <tr align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';" > | |||
| <tr align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||
| <td>{dede:field.id/}</td> | |||
| <td><input type="checkbox" name="arcID" id="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> | |||
| @@ -65,7 +65,7 @@ | |||
| <td width="13%">属性</td> | |||
| </tr> | |||
| {dede:datalist empty='<tr><td colspan="9"><center>暂无内容</center></td></tr>'} | |||
| <tr align="center" onMouseOut="javascript:this.bgColor='#ffffff';" > | |||
| <tr align="center" onMouseOut="javascript:this.bgColor='#ffffff';"> | |||
| <td>{dede:field.id/}</td> | |||
| <td><input type="checkbox" name="arcID" id="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> | |||
| @@ -24,11 +24,6 @@ | |||
| .style1 { | |||
| color: #dc3545 | |||
| } | |||
| td { | |||
| padding: 2px; | |||
| padding-left: 6px; | |||
| line-height: 150%; | |||
| } | |||
| .style2 { | |||
| color: #545b62; | |||
| display: none; | |||
| @@ -39,9 +34,7 @@ | |||
| <table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable mt-3 mb-3"> | |||
| <form name="form1" action="diy_add.php?action=add" method="post" onSubmit="return checkSubmit();"> | |||
| <tr> | |||
| <td bgcolor="#f8f8f8" colspan="2"> | |||
| <a href="diy_main.php">自定义表单管理</a> > 新增自定义表单 | |||
| </td> | |||
| <td bgcolor="#f8f8f8" colspan="2"><a href="diy_main.php">自定义表单管理</a> > 新增自定义表单</td> | |||
| </tr> | |||
| <tr> | |||
| <td width="260" align="left">diyid:<span class="style2" id="help1">数字,创建后不可修改,并具有唯一性推荐使用默认值</span></td> | |||
| @@ -53,7 +46,7 @@ | |||
| <td align="left">自定义表单名称:<br> | |||
| <span class="style2" id="help3">自定义表单的中文名称,在后台管理,前台发布等均使用此名字</span></td> | |||
| <td> | |||
| <input type="text" name="name" id="name" value="自定义表单<?php echo $newdiyid; ?>" class="pubinputs" style="width:160px" > * <i class="fa fa-question-circle" title="帮助" onClick="showHide2('help3')" style="cursor:hand"></i> | |||
| <input type="text" name="name" id="name" value="自定义表单<?php echo $newdiyid; ?>" class="pubinputs" style="width:160px"> * <i class="fa fa-question-circle" title="帮助" onClick="showHide2('help3')" style="cursor:hand"></i> | |||
| </td> | |||
| </tr> | |||
| <tr> | |||
| @@ -29,11 +29,6 @@ | |||
| .style1 { | |||
| color: #dc3545 | |||
| } | |||
| td { | |||
| padding: 2px; | |||
| padding-left: 6px; | |||
| line-height: 150%; | |||
| } | |||
| .style2 { | |||
| color: #545b62; | |||
| display: none; | |||
| @@ -40,11 +40,9 @@ | |||
| revalue += " maxlength=\""+maxlength+"\" page=\""+spage+"\">"+vinnertext+"</field:"+fieldname+">"; | |||
| document.form1.fieldstring.value = revalue; | |||
| return true; | |||
| } | |||
| </script> | |||
| <style> | |||
| td{ padding:6px; padding-left:6px; } | |||
| .style1 {color: #FF3300} | |||
| .style2 {color: #545b62} | |||
| .nw { float:left; width:150px; } | |||
| @@ -64,9 +62,7 @@ td{ padding:6px; padding-left:6px; } | |||
| <table width="98%" cellspacing="0" cellpadding="0" class="table table-borderless"> | |||
| <tr> | |||
| <td width="30%"><a href="diy_main.php">自定义表单管理</a> > 修改字段</td> | |||
| <td width="70%" align="right"> | |||
| <button type="button" name="ss1" onClick="location='diy_edit.php?diyid=<?php echo $diyid; ?>&dopost=edit';" class="btn btn-success btn-sm">当前表单信息</button> | |||
| </td> | |||
| <td width="70%" align="right"><button type="button" name="ss1" onClick="location='diy_edit.php?diyid=<?php echo $diyid; ?>&dopost=edit';" class="btn btn-success btn-sm">当前表单信息</button></td> | |||
| </tr> | |||
| </table> | |||
| </td> | |||
| @@ -81,7 +81,7 @@ | |||
| <td>{dede:field.oktxt/}</td> | |||
| </tr> | |||
| {/dede:datalist} | |||
| <tr align="left" > | |||
| <tr align="left"> | |||
| <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> | |||
| @@ -23,290 +23,290 @@ | |||
| <td width="30%" bgcolor="#f8f8f8">操作</td> | |||
| </tr> | |||
| <?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/dir2.gif'>上级目录</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 onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td> | |||
| <a href='file_manage_main.php?activepath=".urlencode("$activepath/$file")."'><img src='../static/web/img/dir.gif'>$file</a></td> | |||
| <td></td> | |||
| <td></td> | |||
| <td> | |||
| <a href='file_manage_view.php?filename=".urlencode($file)."&activepath=".urlencode($activepath)."&fmdo=rename' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?filename=".urlencode($file)."&activepath=".urlencode($activepath)."&type=dir&fmdo=del' class='btn btn-success btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||
| </td> | |||
| </td> | |||
| </tr>"; | |||
| $dirs[] = $line; | |||
| } | |||
| else if(preg_match("#\.(gif|png)#i",$file)) | |||
| { | |||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td> | |||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/gif.gif'>$file</a></td> | |||
| <td>$filesize KB</td> | |||
| <td align='center'>$filetime</td> | |||
| <td> | |||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||
| </td> | |||
| </tr>"; | |||
| $files[] = $line; | |||
| } | |||
| else if(preg_match("#\.(jpg)#i",$file)) | |||
| { | |||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td> | |||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/jpg.gif'>$file</a></td> | |||
| <td>$filesize KB</td> | |||
| <td align='center' class='linerow'>$filetime</td> | |||
| <td> | |||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||
| </td> | |||
| </tr>"; | |||
| $files[] = $line; | |||
| } | |||
| else if(preg_match("#\.(swf|fla|fly)#i",$file)) | |||
| { | |||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td> | |||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/flash.gif'>$file</a></td> | |||
| <td>$filesize KB</td> | |||
| <td align='center'>$filetime</td> | |||
| <td> | |||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||
| </td> | |||
| </tr>"; | |||
| $files[] = $line; | |||
| } | |||
| else if(preg_match("#\.(zip|rar|tar.gz)#i",$file)) | |||
| { | |||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td> | |||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/zip.gif'>$file</a></td> | |||
| <td>$filesize KB</td> | |||
| <td align='center'>$filetime</td> | |||
| <td> | |||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||
| </td> | |||
| </tr>"; | |||
| $files[] = $line; | |||
| } | |||
| else if(preg_match("#\.(exe)#i",$file)) | |||
| { | |||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td> | |||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/exe.gif'>$file</a></td> | |||
| <td>$filesize KB</td> | |||
| <td align='center'>$filetime</td> | |||
| <td> | |||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||
| </td> | |||
| </tr>"; | |||
| $files[] = $line; | |||
| } | |||
| else if(preg_match("#\.(mp3|wma)#i",$file)) | |||
| { | |||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td> | |||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/mp3.gif'>$file</a></td> | |||
| <td>$filesize KB</td> | |||
| <td align='center'>$filetime</td> | |||
| <td> | |||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||
| </td> | |||
| </tr>"; | |||
| $files[] = $line; | |||
| } | |||
| else if(preg_match("#\.(wmv|api)#i",$file)) | |||
| { | |||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td> | |||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/wmv.gif'>$file</a></td> | |||
| <td>$filesize KB</td> | |||
| <td align='center'>$filetime</td> | |||
| <td> | |||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||
| </td> | |||
| </tr>"; | |||
| $files[] = $line; | |||
| } | |||
| else if(preg_match("#\.(rm|rmvb)#i",$file)) | |||
| { | |||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td> | |||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/rm.gif'>$file</a></td> | |||
| <td>$filesize KB</td> | |||
| <td align='center' class='linerow'>$filetime</td> | |||
| <td> | |||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'> <i class='fa fa-trash'></i> 删除</a> | |||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-share-square'></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 onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td> | |||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/txt.gif'>$file</a></td> | |||
| <td>$filesize KB</td> | |||
| <td align='center'>$filetime</td> | |||
| <td> | |||
| <a href='$edurl' class='btn btn-success btn-sm'><i class='fa fa-pencil-square-o'></i> 编辑</a> | |||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'> <i class='fa fa-trash'></i> 删除</a> | |||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-share-square'></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 onMouseMove=\"javascript:this.bgColor='#F9FBF0';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td> | |||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/htm.gif'>$file</a></td> | |||
| <td>$filesize KB</td> | |||
| <td align='center'>$filetime</td> | |||
| <td> | |||
| <a href='$edurl' class='btn btn-success btn-sm'><i class='fa fa-pencil-square-o'></i> 编辑</a> | |||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-share-square'></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 onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td> | |||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/php.gif'>$file</a></td> | |||
| <td>$filesize KB</td> | |||
| <td align='center'>$filetime</td> | |||
| <td> | |||
| <a href='$edurl' class='btn btn-success btn-sm'><i class='fa fa-pencil-square-o'></i> 编辑</a> | |||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-share-square'></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 onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td> | |||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/js.gif'>$file</a></td> | |||
| <td>$filesize KB</td> | |||
| <td align='center'>$filetime</td> | |||
| <td> | |||
| <a href='$edurl' class='btn btn-success btn-sm'><i class='fa fa-pencil-square-o'></i> 编辑</a> | |||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'> <i class='fa fa-trash'></i> 删除</a> | |||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-share-square'></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 onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td> | |||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/css.gif'>$file</a></td> | |||
| <td>$filesize KB</td> | |||
| <td align='center'>$filetime</td> | |||
| <td> | |||
| <a href='$edurl' class='btn btn-success btn-sm'><i class='fa fa-pencil-square-o'></i> 编辑</a> | |||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'> <i class='fa fa-trash'></i> 删除</a> | |||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||
| </td> | |||
| </tr>"; | |||
| $files[] = $line; | |||
| } else { | |||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td><a href='$activeurl/$file' target='_blank'>$file</td> | |||
| <td>$filesize KB</td> | |||
| <td align='center'>$filetime</td> | |||
| <td> | |||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'> <i class='fa fa-trash'></i> 删除</a> | |||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||
| </td> | |||
| </tr>"; | |||
| $files[] = $line; | |||
| } | |||
| } | |||
| foreach ($dirs as $dir) | |||
| { | |||
| echo $dir; | |||
| } | |||
| foreach ($files as $file) | |||
| { | |||
| echo $file; | |||
| } | |||
| ?> | |||
| $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/dir2.gif'>上级目录</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 onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td> | |||
| <a href='file_manage_main.php?activepath=".urlencode("$activepath/$file")."'><img src='../static/web/img/dir.gif'>$file</a></td> | |||
| <td></td> | |||
| <td></td> | |||
| <td> | |||
| <a href='file_manage_view.php?filename=".urlencode($file)."&activepath=".urlencode($activepath)."&fmdo=rename' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?filename=".urlencode($file)."&activepath=".urlencode($activepath)."&type=dir&fmdo=del' class='btn btn-success btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||
| </td> | |||
| </td> | |||
| </tr>"; | |||
| $dirs[] = $line; | |||
| } | |||
| else if(preg_match("#\.(gif|png)#i",$file)) | |||
| { | |||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td> | |||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/gif.gif'>$file</a></td> | |||
| <td>$filesize KB</td> | |||
| <td align='center'>$filetime</td> | |||
| <td> | |||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||
| </td> | |||
| </tr>"; | |||
| $files[] = $line; | |||
| } | |||
| else if(preg_match("#\.(jpg)#i",$file)) | |||
| { | |||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td> | |||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/jpg.gif'>$file</a></td> | |||
| <td>$filesize KB</td> | |||
| <td align='center' class='linerow'>$filetime</td> | |||
| <td> | |||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||
| </td> | |||
| </tr>"; | |||
| $files[] = $line; | |||
| } | |||
| else if(preg_match("#\.(swf|fla|fly)#i",$file)) | |||
| { | |||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td> | |||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/flash.gif'>$file</a></td> | |||
| <td>$filesize KB</td> | |||
| <td align='center'>$filetime</td> | |||
| <td> | |||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||
| </td> | |||
| </tr>"; | |||
| $files[] = $line; | |||
| } | |||
| else if(preg_match("#\.(zip|rar|tar.gz)#i",$file)) | |||
| { | |||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td> | |||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/zip.gif'>$file</a></td> | |||
| <td>$filesize KB</td> | |||
| <td align='center'>$filetime</td> | |||
| <td> | |||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||
| </td> | |||
| </tr>"; | |||
| $files[] = $line; | |||
| } | |||
| else if(preg_match("#\.(exe)#i",$file)) | |||
| { | |||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td> | |||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/exe.gif'>$file</a></td> | |||
| <td>$filesize KB</td> | |||
| <td align='center'>$filetime</td> | |||
| <td> | |||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||
| </td> | |||
| </tr>"; | |||
| $files[] = $line; | |||
| } | |||
| else if(preg_match("#\.(mp3|wma)#i",$file)) | |||
| { | |||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td> | |||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/mp3.gif'>$file</a></td> | |||
| <td>$filesize KB</td> | |||
| <td align='center'>$filetime</td> | |||
| <td> | |||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||
| </td> | |||
| </tr>"; | |||
| $files[] = $line; | |||
| } | |||
| else if(preg_match("#\.(wmv|api)#i",$file)) | |||
| { | |||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td> | |||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/wmv.gif'>$file</a></td> | |||
| <td>$filesize KB</td> | |||
| <td align='center'>$filetime</td> | |||
| <td> | |||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||
| </td> | |||
| </tr>"; | |||
| $files[] = $line; | |||
| } | |||
| else if(preg_match("#\.(rm|rmvb)#i",$file)) | |||
| { | |||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td> | |||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/rm.gif'>$file</a></td> | |||
| <td>$filesize KB</td> | |||
| <td align='center' class='linerow'>$filetime</td> | |||
| <td> | |||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'> <i class='fa fa-trash'></i> 删除</a> | |||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-share-square'></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 onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td> | |||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/txt.gif'>$file</a></td> | |||
| <td>$filesize KB</td> | |||
| <td align='center'>$filetime</td> | |||
| <td> | |||
| <a href='$edurl' class='btn btn-success btn-sm'><i class='fa fa-pencil-square-o'></i> 编辑</a> | |||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'> <i class='fa fa-trash'></i> 删除</a> | |||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-share-square'></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 onMouseMove=\"javascript:this.bgColor='#F9FBF0';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td> | |||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/htm.gif'>$file</a></td> | |||
| <td>$filesize KB</td> | |||
| <td align='center'>$filetime</td> | |||
| <td> | |||
| <a href='$edurl' class='btn btn-success btn-sm'><i class='fa fa-pencil-square-o'></i> 编辑</a> | |||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-share-square'></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 onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td> | |||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/php.gif'>$file</a></td> | |||
| <td>$filesize KB</td> | |||
| <td align='center'>$filetime</td> | |||
| <td> | |||
| <a href='$edurl' class='btn btn-success btn-sm'><i class='fa fa-pencil-square-o'></i> 编辑</a> | |||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-share-square'></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 onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td> | |||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/js.gif'>$file</a></td> | |||
| <td>$filesize KB</td> | |||
| <td align='center'>$filetime</td> | |||
| <td> | |||
| <a href='$edurl' class='btn btn-success btn-sm'><i class='fa fa-pencil-square-o'></i> 编辑</a> | |||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'> <i class='fa fa-trash'></i> 删除</a> | |||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-share-square'></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 onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td> | |||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/css.gif'>$file</a></td> | |||
| <td>$filesize KB</td> | |||
| <td align='center'>$filetime</td> | |||
| <td> | |||
| <a href='$edurl' class='btn btn-success btn-sm'><i class='fa fa-pencil-square-o'></i> 编辑</a> | |||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'> <i class='fa fa-trash'></i> 删除</a> | |||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||
| </td> | |||
| </tr>"; | |||
| $files[] = $line; | |||
| } else { | |||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
| <td><a href='$activeurl/$file' target='_blank'>$file</td> | |||
| <td>$filesize KB</td> | |||
| <td align='center'>$filetime</td> | |||
| <td> | |||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-address-card-o'></i> 改名</a> | |||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'> <i class='fa fa-trash'></i> 删除</a> | |||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-success btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||
| </td> | |||
| </tr>"; | |||
| $files[] = $line; | |||
| } | |||
| } | |||
| foreach ($dirs as $dir) | |||
| { | |||
| echo $dir; | |||
| } | |||
| foreach ($files as $file) | |||
| { | |||
| echo $file; | |||
| } | |||
| ?> | |||
| <tr> | |||
| <td colspan="4" bgcolor="#f8f8f8"> | |||
| <?php if(!DEDEBIZ_SAFE_MODE) { ?><a href="file_manage_main.php" class="btn btn-success btn-sm">根目录</a><?php } ?> | |||
| @@ -24,7 +24,7 @@ | |||
| <script> | |||
| function CheckSubmit() { | |||
| if (document.form1.title.value == "") { | |||
| ShowMsg("请设定媒体标题"); | |||
| ShowMsg("请设置标题"); | |||
| document.form1.title.focus(); | |||
| return false; | |||
| } | |||
| @@ -20,7 +20,7 @@ | |||
| <script> | |||
| function CheckSubmit() { | |||
| if (document.form1.title.value == "") { | |||
| ShowMsg("请设定媒体标题"); | |||
| ShowMsg("请设置标题"); | |||
| document.form1.title.focus(); | |||
| return false; | |||
| } | |||
| @@ -3,6 +3,9 @@ | |||
| <head> | |||
| <meta charset="<?php echo $cfg_soft_lang; ?>"> | |||
| <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> | |||
| <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/admin.css"> | |||
| <script src="../static/web/js/webajax.js"></script> | |||
| <script> | |||
| function LoadHashCode() { | |||
| @@ -24,12 +27,6 @@ | |||
| } | |||
| </script> | |||
| <title>模块打包</title> | |||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | |||
| <style> | |||
| td { | |||
| padding-left: 8px | |||
| } | |||
| </style> | |||
| </head> | |||
| <body> | |||
| <table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable mt-3 mb-3"> | |||
| @@ -58,7 +55,7 @@ | |||
| </td> | |||
| </tr> | |||
| <tr> | |||
| <td>1、Dede模块开发介绍<a name="1" id="1"></a></td> | |||
| <td>1、模块开发介绍<a name="1" id="1"></a></td> | |||
| </tr> | |||
| <tr> | |||
| <td height="100"></td> | |||
| @@ -83,7 +83,7 @@ | |||
| </td> | |||
| </tr> | |||
| </table> | |||
| <table width="98%" cellspacing="0" id="head2" cellpadding="0" align="center" style="display:none" > | |||
| <table width="98%" cellspacing="0" id="head2" cellpadding="0" align="center" style="display:none"> | |||
| <tr> | |||
| <td colspan="2"> | |||
| <table cellpadding="0" cellspacing="0"> | |||
| @@ -288,7 +288,7 @@ | |||
| foreach($dtp->CTags as $ctag) | |||
| { | |||
| ?> | |||
| <tr align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';" > | |||
| <tr align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||
| <td> | |||
| <?php | |||
| $itname = $ctag->GetAtt('itemname'); | |||
| @@ -56,24 +56,16 @@ | |||
| }); | |||
| </script> | |||
| <style> | |||
| td { | |||
| padding: 2px; | |||
| padding-left: 6px; | |||
| } | |||
| .style1 { | |||
| color: #FF3300 | |||
| } | |||
| .style2 { | |||
| color: #545b62 | |||
| } | |||
| .nw { | |||
| float: left; | |||
| width: 150px; | |||
| } | |||
| .cls { | |||
| clear: both; | |||
| } | |||
| @@ -13,11 +13,6 @@ | |||
| .style1 { | |||
| color: #dc3545 | |||
| } | |||
| td { | |||
| padding: 2px; | |||
| padding-left: 6px; | |||
| line-height: 150%; | |||
| } | |||
| .style2 { | |||
| color: #545b62; | |||
| } | |||
| @@ -33,8 +28,8 @@ | |||
| <input type="hidden" name="dopost" value="modifysearch"> | |||
| <tr> | |||
| <td bgcolor="#f8f8f8" colspan="2"> | |||
| <div style="float:right"><a href="mychannel_edit.php?dopost=del&mid=<?php echo $mid; ?>">删除自定义搜索</a></div> | |||
| <a href="mychannel_main.php">内容模型管理</a> > 自定义搜索管理(自定义搜索在方便搜索的同时在一定程度上降低了效率,请根据需求定义搜索) | |||
| <span class="float-right mr-2"><a href="mychannel_edit.php?dopost=del&mid=<?php echo $mid; ?>">删除自定义搜索</a></span> | |||
| </td> | |||
| </tr> | |||
| <tr> | |||
| @@ -82,7 +82,7 @@ | |||
| <td width="10%">操作</td> | |||
| </tr> | |||
| {dede:datalist empty='<tr><td colspan="7"><center>暂无内容</center></td></tr>'} | |||
| <tr align="center" onMouseOut="javascript:this.bgColor='#ffffff';" > | |||
| <tr align="center" onMouseOut="javascript:this.bgColor='#ffffff';"> | |||
| <td>{dede:field.id/}</td> | |||
| <td><input type="checkbox" name="arcID" id="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> | |||
| @@ -72,10 +72,8 @@ | |||
| {/dede:datalist} | |||
| <tr> | |||
| <td colspan="2" align="right"> | |||
| <div style="float:left"><button type="button" name="ss12" onClick="window.close();" class='btn btn-success btn-sm'>关闭窗口</button></div> | |||
| <div style="float:right"> | |||
| <span>订单总计:</span> <span class="text-danger">{dede:field.priceCount/}</span>元,{dede:pagelist listsize='6'/} | |||
| <div> | |||
| <span class="float-left py-2"><button type="button" name="ss12" onClick="window.close();" class="btn btn-success btn-sm">关闭窗口</button></span> | |||
| <span class="float-right mr-2">订单总计:<span class="text-danger">{dede:field.priceCount/}</span>元 {dede:pagelist listsize='6'/}<span> | |||
| </td> | |||
| </tr> | |||
| </table> | |||
| @@ -46,7 +46,6 @@ | |||
| } | |||
| </script> | |||
| <style> | |||
| body{background:#fff} | |||
| img{vertical-align:baseline} | |||
| table{border-collapse:separate} | |||
| .style1 {color:#555} | |||
| @@ -59,7 +58,7 @@ table{border-collapse:separate} | |||
| <input type="hidden" name="cid" value="<?php echo $cid; ?>"> | |||
| <table width="98%" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||
| <tr> | |||
| <td width="60%" ><i class="fa fa-book"></i> <a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">软件列表</a> > 发布软件</td> | |||
| <td width="60%"><i class="fa fa-book"></i> <a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">软件列表</a> > 发布软件</td> | |||
| <td align="right"><a href="catalog_main.php" class="btn btn-success btn-sm">栏目管理</a><a href="soft_config.php" class="btn btn-success btn-sm">下载频道参数设定</a></td> | |||
| </tr> | |||
| </table> | |||
| @@ -41,7 +41,6 @@ | |||
| } | |||
| </script> | |||
| <style> | |||
| body{background:#fff} | |||
| img{vertical-align:baseline} | |||
| table{border-collapse:separate} | |||
| </style> | |||
| @@ -53,7 +52,7 @@ table{border-collapse:separate} | |||
| <input type="hidden" name="id" value="<?php echo $aid?>"> | |||
| <table width="98%" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||
| <tr> | |||
| <td width="85%" ><i class="fa fa-book"></i> <a href="catalog_do.php?cid=<?php echo $arcRow['typeid']?>&dopost=listArchives"></a><a href="catalog_do.php?cid=<?php echo $arcRow['typeid']?>&dopost=listArchives">软件列表</a> > 修改软件</td> | |||
| <td width="85%"><i class="fa fa-book"></i> <a href="catalog_do.php?cid=<?php echo $arcRow['typeid']?>&dopost=listArchives"></a><a href="catalog_do.php?cid=<?php echo $arcRow['typeid']?>&dopost=listArchives">软件列表</a> > 修改软件</td> | |||
| <td align="right"> <a href="catalog_main.php" class="btn btn-success btn-sm">栏目管理</a></td> | |||
| </tr> | |||
| </table> | |||
| @@ -56,7 +56,6 @@ | |||
| } | |||
| </script> | |||
| <style> | |||
| body{background:#fff} | |||
| img{vertical-align:baseline} | |||
| table{border-collapse:separate} | |||
| </style> | |||
| @@ -69,7 +68,7 @@ table{border-collapse:separate} | |||
| <input type="hidden" name="source" value="本站"> | |||
| <table width="98%" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||
| <tr> | |||
| <td width="85%" ><i class="fa fa-book"></i> <a href="content_s_list.php">专题列表</a><a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives"></a> > 发布专题</td> | |||
| <td width="85%"><i class="fa fa-book"></i> <a href="content_s_list.php">专题列表</a><a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives"></a> > 发布专题</td> | |||
| <td width="10%" align="right"> <a href="makehtml_spec.php" class="btn btn-success btn-sm">更新专题</a></td> | |||
| </tr> | |||
| </table> | |||
| @@ -52,10 +52,8 @@ | |||
| } | |||
| </script> | |||
| <style> | |||
| body{background:#fff} | |||
| img{vertical-align:baseline} | |||
| table{border-collapse:separate} | |||
| .btn+.btn{margin-left:10px} | |||
| </style> | |||
| </head> | |||
| <body> | |||
| @@ -67,7 +65,7 @@ table{border-collapse:separate} | |||
| <input type="hidden" name="dopost" value="save"> | |||
| <table width="98%" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||
| <tr> | |||
| <td width="85%" ><i class="fa fa-book"></i> <a href="content_s_list.php">专题列表</a><a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives"></a> > 修改专题</td> | |||
| <td width="85%"><i class="fa fa-book"></i> <a href="content_s_list.php">专题列表</a><a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives"></a> > 修改专题</td> | |||
| <td width="10%" align="right"><a href="makehtml_spec.php" class="btn btn-success btn-sm">更新专题</a></td> | |||
| </tr> | |||
| </table> | |||
| @@ -150,8 +150,8 @@ li{float:left;padding-right:10px;line-height:26px} | |||
| </tr> | |||
| <tr> | |||
| <td width="90">请选择组别:</td> | |||
| <td width="260"> | |||
| <select name="egroup1" id="egroup1" onChange="ChangePage(this)" style="width:90%"> | |||
| <td width="270"> | |||
| <select name="egroup1" id="egroup1" onChange="ChangePage(this)" style="width:260px"> | |||
| <option value='0'>所有组</option> | |||
| <?php | |||
| $selgroup = ''; | |||
| @@ -170,12 +170,10 @@ li{float:left;padding-right:10px;line-height:26px} | |||
| </select> | |||
| </td> | |||
| <td colspan="2"><i class="fa fa-question-circle" title="帮助"></i> 灰色字的为系统内置枚举,您是不能对它进行删除修改操作的,但可以添加或修改它的元素</td> | |||
| <td> | |||
| <td colspan="2" align="right"> | |||
| <button type="button" name="gedit" id="gedit" class="btn btn-success btn-sm" onClick="EditType()">修改</button> | |||
| <button type="button" name="gdel" id="gdel" class="btn btn-success btn-sm" onClick="DelType()">删除</button> | |||
| <button type="button" name="gview" id="gview" class="btn btn-success btn-sm" onClick="ViewType()">预览</button> | |||
| </td> | |||
| <td> | |||
| <button type="button" name="addnew" id="addnew" class="btn btn-success btn-sm" onClick="AddType()">新增类别组</button> | |||
| <a href="stepselect_main.php?action=upallcache" class="btn btn-success btn-sm">更新所有枚举缓存</a> | |||
| </td> | |||
| @@ -202,14 +200,14 @@ li{float:left;padding-right:10px;line-height:26px} | |||
| <table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable mb-3"> | |||
| <tr> | |||
| <td bgcolor="#f8f8f8" colspan="8"> | |||
| <div style="float:left"><?php echo $selgroup; ?> > 子分类管理</div> | |||
| <div style="float:right"> | |||
| <span class="float-left"><?php echo $selgroup; ?> > 子分类管理</span> | |||
| <span class="float-right"> | |||
| <?php | |||
| if($egroup=='nativeplace') { | |||
| echo "<a href='stepselect_main.php?action=exarea' class='btn btn-success btn-sm'>把默认省市地区表导入</a>"; | |||
| } | |||
| ?> | |||
| </div> | |||
| </span> | |||
| </td> | |||
| </tr> | |||
| <tr> | |||
| @@ -218,15 +216,14 @@ li{float:left;padding-right:10px;line-height:26px} | |||
| <input type="hidden" name="action" value="addenum_save"> | |||
| <input type="hidden" name="issign" value="<?php echo $arr['issign']; ?>"> | |||
| <input type="hidden" name="egroup" value="<?php echo $arr['egroup']; ?>"> | |||
| <div style="float:left;margin-right:10px">隶属分类: | |||
| <span class="float-left ml-2">隶属分类: | |||
| <select name="topvalue" onChange="ChangePage2(this)" style="width:160px"> | |||
| <option value="0"><?php echo $selgroup; ?></option> | |||
| <?php echo $options; ?> | |||
| </select> | |||
| </div> | |||
| <div style="float:left;margin-right:10px">分类名称:<input type="text" name="ename" class="iptxt" style="width:260px"></div> | |||
| <div style="float:left"><button type="submit" name="sb2" class="btn btn-success btn-sm">增加分类</button></div> | |||
| <div style="clear:both"><i class="fa fa-question-circle" title="帮助"></i> 如果没选择隶属分类则表示增加的是顶级分类,用半角逗号","分开可以一次增加多个分类</div> | |||
| </span> | |||
| <span class="float-left ml-2">分类名称:<input type="text" name="ename" class="iptxt" style="width:260px"></span> | |||
| <span class="float-left ml-2"><button type="submit" name="sb2" class="btn btn-success btn-sm">增加分类</button></span> | |||
| </form> | |||
| </td> | |||
| </tr> | |||
| @@ -234,8 +231,7 @@ li{float:left;padding-right:10px;line-height:26px} | |||
| <table width="98%" align="center" cellpadding="3" cellspacing="1" class="table maintable"> | |||
| <tr> | |||
| <td bgcolor="#f8f8f8" colspan="8"> | |||
| <div style="float:left"><a href="stepselect_main.php">枚举组列表</a> > <a href="stepselect_main.php?egroup=<?php echo $egroup; ?>"><?php echo $selgroup; ?></a> > 子分类列表</div> | |||
| <div style="float:right"></div> | |||
| <span class="float-left"><a href="stepselect_main.php">枚举组列表</a> > <a href="stepselect_main.php?egroup=<?php echo $egroup; ?>"><?php echo $selgroup; ?></a> > 子分类列表</span> | |||
| </td> | |||
| </tr> | |||
| <tr bgcolor="#F8FCF1" align="center"> | |||
| @@ -317,8 +313,7 @@ li{float:left;padding-right:10px;line-height:26px} | |||
| <table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable mb-3"> | |||
| <tr> | |||
| <td bgcolor="#f8f8f8" colspan="8"> | |||
| <div style="float:left"><a href="stepselect_main.php">枚举组列表</a></div> | |||
| <div style="float:right"></div> | |||
| <span class="float-left"><a href="stepselect_main.php">枚举组列表</a></span> | |||
| </td> | |||
| </tr> | |||
| <tr bgcolor="#F8FCF1" align="center"> | |||
| @@ -4,9 +4,8 @@ $arr = $dsql->GetOne("Select * from `#@__stepselect` where id='$id' "); | |||
| $sbjs = " onsubmit=\"alert('该分类是系统内置枚举,不允许修改'); return false;\" "; | |||
| if($arr['issystem']==0) $sbjs = ''; | |||
| ?> | |||
| <!--编辑表单--> | |||
| <div style="float:left">修改类别</div> | |||
| <div style="float:right"><a class="btn btn-success btn-sm" href="javascript:;" onclick="javascript:CloseTWin();">关闭</a></div> | |||
| <span class="float-left">修改类别</span> | |||
| <span class="float-right"><a class="btn btn-success btn-sm" href="javascript:;" onclick="javascript:CloseTWin();">关闭</a></span> | |||
| <br style="clear:both"> | |||
| <form action="stepselect_main.php" method="post" <?php echo $sbjs; ?>> | |||
| <input type="hidden" name="action" value="edit_save"> | |||
| @@ -19,9 +18,8 @@ if($arr['issystem']==0) $sbjs = ''; | |||
| <?php | |||
| } else if($action=='addnew') { | |||
| ?> | |||
| <!--新增类别表单--> | |||
| <div style="float:left">新增类别</div> | |||
| <div style="float:right"><a class="btn btn-success btn-sm" href="javascript:;" onclick="javascript:CloseTWin();">关闭</a></div> | |||
| <span class="float-left">新增类别</span> | |||
| <span class="float-right"><a class="btn btn-success btn-sm" href="javascript:;" onclick="javascript:CloseTWin();">关闭</a></span> | |||
| <br style="clear:both"> | |||
| <form action="stepselect_main.php" method="post"> | |||
| <input type="hidden" name="action" value="addnew_save"> | |||
| @@ -40,9 +38,8 @@ if($arr['issign']==0) | |||
| while($row1 = $dsql->GetArray('out')) $options .= "<option value='{$row1['evalue']}'>{$row1['ename']}</option>"; | |||
| } | |||
| ?> | |||
| <!--新增枚举表单--> | |||
| <div style="float:left">添加枚举</div> | |||
| <div style="float:right"><a class="btn btn-success btn-sm" href="javascript:;" onclick="javascript:CloseTWin();">关闭</a></div> | |||
| <span class="float-left">添加枚举</span> | |||
| <span class="float-right"><a class="btn btn-success btn-sm" href="javascript:;" onclick="javascript:CloseTWin();">关闭</a></span> | |||
| <br style="clear:both"> | |||
| <form action="stepselect_main.php" method="post"> | |||
| <input type="hidden" name="action" value="addenum_save"> | |||
| @@ -74,9 +71,8 @@ if($arr['issign']==0) | |||
| } | |||
| } | |||
| ?> | |||
| <!--预览联动表单--> | |||
| <div style="float:left">预览联动表单</div> | |||
| <div style="float:right"><a class="btn btn-success btn-sm" href="javascript:;" onclick="javascript:CloseTWin();">关闭</a></div> | |||
| <span class="float-left">预览联动表单</span> | |||
| <span class="float-right"><a class="btn btn-success btn-sm" href="javascript:;" onclick="javascript:CloseTWin();">关闭</a></span> | |||
| <br style="clear:both"> | |||
| <div> | |||
| 类别关系: | |||
| @@ -17,9 +17,9 @@ | |||
| <tr> | |||
| <td width="30%">管理员帐号</td> | |||
| <td width="70%" align="right"> | |||
| <a href="sys_admin_user_tj.php" class="btn btn-success btn-sm">编辑绩效统计</a> | |||
| <a href="sys_admin_user_add.php" class="btn btn-success btn-sm">增加管理员</a> | |||
| <a href="sys_group.php" class="btn btn-success btn-sm">用户组管理</a> | |||
| <a href="sys_admin_user_tj.php" class="btn btn-success btn-sm">编辑绩效统计</a> | |||
| <a href="sys_admin_user_add.php" class="btn btn-success btn-sm">增加管理员</a> | |||
| <a href="sys_group.php" class="btn btn-success btn-sm">用户组管理</a> | |||
| </td> | |||
| </tr> | |||
| </table> | |||
| @@ -93,7 +93,7 @@ | |||
| <td colspan="8">系统默认表:</td> | |||
| </tr> | |||
| <tr bgcolor="#F8FCF1" align="center"> | |||
| <td width="5%" >选择</td> | |||
| <td width="5%">选择</td> | |||
| <td width="20%">表名</td> | |||
| <td width="8%">记录数</td> | |||
| <td width="17%">操作</td> | |||
| @@ -140,7 +140,7 @@ | |||
| <td colspan="8">其它数据表:</td> | |||
| </tr> | |||
| <tr bgcolor="#F8FCF1" align="center"> | |||
| <td width="5%" >选择</td> | |||
| <td width="5%">选择</td> | |||
| <td width="20%">表名</td> | |||
| <td width="8%">记录数</td> | |||
| <td width="17%">操作</td> | |||
| @@ -26,7 +26,7 @@ | |||
| </td> | |||
| </tr> | |||
| <tr bgcolor="#F8FCF1" align="center"> | |||
| <td width="20%" >等级</td> | |||
| <td width="20%">等级</td> | |||
| <td width="45%">组名称</td> | |||
| <td width="35%">管理</td> | |||
| </tr> | |||
| @@ -19,11 +19,11 @@ | |||
| <td align="center"> | |||
| <table width="98%" cellspacing="0" cellpadding="0" class="table table-borderless"> | |||
| <tr> | |||
| <td width="10%" >组名称:</td> | |||
| <td width="10%">组名称:</td> | |||
| <td width="90%" style="text-align:left"><input type="text" name="groupname" id="groupname"></td> | |||
| </tr> | |||
| <tr> | |||
| <td width="10%" >级别值:</td> | |||
| <td width="10%">级别值:</td> | |||
| <td width="90%" style="text-align:left"><input type="text" name="rankid" id="rankid" size="6">(数字,系统已占用的级别值: | |||
| <?php $dsql->SetQuery("Select `rank` From `#@__admintype`");$dsql->Execute();while($row = $dsql->GetObject()) echo '<span style=\'color:#e74d58\'>'.$row->rank.'</span>'; ?>,级别值必须小于10,超过或等于10所有权限设置将无效(超级管理员),如果10个组不能完全满足您的要求,允许使用小数)</td> | |||
| </tr> | |||
| @@ -20,11 +20,11 @@ | |||
| <td align="center"> | |||
| <table width="98%" cellspacing="0" cellpadding="0" class="table table-borderless"> | |||
| <tr> | |||
| <td width="10%" >组名称:</td> | |||
| <td width="10%">组名称:</td> | |||
| <td width="90%"><input type="text" name="typename" id="typename" value="<?php echo $groupSet['typename']?>" style="width:260px"></td> | |||
| </tr> | |||
| <tr> | |||
| <td width="10%" >级别值:</td> | |||
| <td width="10%">级别值:</td> | |||
| <td width="90%"> | |||
| <input type="hidden" name="rank" id="rank" value="<?php echo $groupSet['rank']?>"> | |||
| <?php echo $groupSet['rank']?> | |||
| @@ -17,7 +17,7 @@ | |||
| <td bgcolor="#f8f8f8" colspan="2">图片水印设置</td> | |||
| </tr> | |||
| <tr> | |||
| <td width="50%" >上传的图片是否使用图片水印功能:<br></td> | |||
| <td width="50%">上传的图片是否使用图片水印功能:<br></td> | |||
| <td> | |||
| <label><input type="radio" value="1" name="get_photo_markup" <?php if($photo_markup=='1') echo ' checked'; ?>> 开启 </label> | |||
| <label><input type="radio" value="0" name="get_photo_markup" <?php if($photo_markup=='0') echo ' checked'; ?>> 关闭</label> | |||
| @@ -59,16 +59,12 @@ | |||
| </select> | |||
| </td> | |||
| <td width="2%"></td> | |||
| <td width="63%" valign="bottom"> | |||
| <div style="float:left;margin-right:20px"> | |||
| <button type="Submit" name="Submit1" class="btn btn-success btn-sm" onClick="this.form.dopost.value='opimize';">优化选中表</button><br> | |||
| <button type="Submit" name="Submit2" class="btn btn-success btn-sm" onClick="this.form.dopost.value='repair';" style="margin-top:10px">修复选中表</button><br> | |||
| <button type="Submit" name="Submit3" class="btn btn-success btn-sm" onClick="this.form.dopost.value='viewinfo';" style="margin-top:10px">查看表结构</button> | |||
| </div> | |||
| <div style="float:left"> | |||
| <button type="Submit" name="Submit5" class="btn btn-success btn-sm" onClick="this.form.dopost.value='opimizeAll';">优化全部表</button><br> | |||
| <button type="Submit" name="Submit6" class="btn btn-success btn-sm" onClick="this.form.dopost.value='repairAll';" style="margin-top:10px">修复全部表</button> | |||
| </div> | |||
| <td width="68%" valign="top"> | |||
| <button type="Submit" name="Submit1" class="btn btn-success btn-sm" onClick="this.form.dopost.value='opimize';">优化选中表</button> | |||
| <button type="Submit" name="Submit2" class="btn btn-success btn-sm" onClick="this.form.dopost.value='repair';">修复选中表</button> | |||
| <button type="Submit" name="Submit3" class="btn btn-success btn-sm" onClick="this.form.dopost.value='viewinfo';">查看表结构</button> | |||
| <button type="Submit" name="Submit5" class="btn btn-success btn-sm" onClick="this.form.dopost.value='opimizeAll';">优化全部表</button> | |||
| <button type="Submit" name="Submit6" class="btn btn-success btn-sm" onClick="this.form.dopost.value='repairAll';">修复全部表</button> | |||
| </td> | |||
| </tr> | |||
| </table> | |||
| @@ -7,6 +7,7 @@ | |||
| <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/admin.css"> | |||
| <link rel="stylesheet" href="css/codemirror.css"> | |||
| <script src="../static/web/js/jquery.min.js"></script> | |||
| <script src="js/main.js"></script> | |||
| <script> | |||
| @@ -16,7 +17,6 @@ | |||
| "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top); | |||
| } | |||
| </script> | |||
| <link rel="stylesheet" href="css/codemirror.css"> | |||
| <script src="js/codemirror.js"></script> | |||
| <script src="js/mode/xml/xml.js"></script> | |||
| <script src="js/mode/javascript/javascript.js"></script> | |||
| @@ -8,17 +8,6 @@ | |||
| <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/admin.css"> | |||
| <style> | |||
| ul { | |||
| padding: 0px; | |||
| margin: 0px; | |||
| } | |||
| li { | |||
| float: left; | |||
| padding-right: 8px; | |||
| line-height: 26px; | |||
| } | |||
| </style> | |||
| </head> | |||
| <body> | |||
| <table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3"> | |||
| @@ -27,7 +16,8 @@ | |||
| <form action="templets_one.php" name="sss"> | |||
| <ul> | |||
| <li><input type="text" name="keyword" value="<?php if(!empty($keyword)) $keyword = ''; ?>" placeholder="请输入关键词" style="width:260px"></li> | |||
| <li><?php | |||
| <li> | |||
| <?php | |||
| $likeid = (!isset($likeid) ? '' : $likeid); | |||
| echo "<select name='likeid' id='likeid' style='width:160px'>"; | |||
| $dsql->Execute("s","Select likeid From `#@__sgpage` group by likeid "); | |||
| @@ -38,7 +28,8 @@ | |||
| else echo "<option value='{$arr['likeid']}'>{$arr['likeid']}</option>"; | |||
| } | |||
| echo "</select>"; | |||
| ?></li> | |||
| ?> | |||
| </li> | |||
| <li><button type="submit" name="button1" id="button1" class="btn btn-success btn-sm">搜索</button></li> | |||
| </ul> | |||
| </form> | |||
| @@ -48,12 +39,12 @@ | |||
| <table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable mb-3"> | |||
| <tr> | |||
| <td bgcolor="#f8f8f8" colspan="7"> | |||
| <div style="float:left">单独页面管理</div> | |||
| <div style="float:right"> | |||
| <span class="float-left py-2">单独页面管理</span> | |||
| <span class="float-right mr-2"> | |||
| <a href="templets_one_add.php" class="btn btn-success btn-sm">增加一个页面</a> | |||
| <a href="javascript:;" onClick="document.form1.submit();" class="btn btn-success btn-sm">更新选中页面</a> | |||
| <a href="templets_one_edit.php?dopost=mkall" class="btn btn-success btn-sm">更新所有页面</a> | |||
| </div> | |||
| </span> | |||
| </td> | |||
| </tr> | |||
| <tr bgcolor="#F8FCF1" align="center"> | |||
| @@ -77,7 +77,7 @@ | |||
| <tr> | |||
| <td>是否编译内容:</td> | |||
| <td> | |||
| <?php if(!DEDEBIZ_SAFE_MODE) { ?> <label><input type="radio" name="ismake" value="1"> 含模板标记,要编译</label> <?php } ?> | |||
| <?php if(!DEDEBIZ_SAFE_MODE) { ?><label><input type="radio" name="ismake" value="1"> 含模板标记,要编译</label><?php }?> | |||
| <label><input type="radio" name="ismake" value="0" checked> 不含模板标记,不需要编译</label> | |||
| </td> | |||
| </tr> | |||
| @@ -54,18 +54,18 @@ | |||
| <tr> | |||
| <td>关联标识:</td> | |||
| <td> | |||
| <input type="text" name="likeid" id="likeid" value="<?php echo $row['likeid']; ?>" style="width:260px"> | |||
| <input type="hidden" name="oldlikeid" id="oldlikeid" value="<?php echo $row['likeid']; ?>"> | |||
| <?php | |||
| echo "<select name='likeidsel' id='likeidsel' style='width:160px'>"; | |||
| $dsql->Execute('s',"Select likeid From `#@__sgpage` group by likeid "); | |||
| echo "<option value='{$row['likeid']}' selected>{$row['likeid']}</option>"; | |||
| while($arr = $dsql->GetArray('s')) | |||
| { | |||
| if($arr['likeid']!=$row['likeid']) echo "<option value='{$arr['likeid']}'>{$arr['likeid']}</option>"; | |||
| } | |||
| echo "</select>"; | |||
| ?> | |||
| <input type="text" name="likeid" id="likeid" value="<?php echo $row['likeid']; ?>" style="width:260px"> | |||
| <input type="hidden" name="oldlikeid" id="oldlikeid" value="<?php echo $row['likeid']; ?>"> | |||
| <?php | |||
| echo "<select name='likeidsel' id='likeidsel' style='width:160px'>"; | |||
| $dsql->Execute('s',"Select likeid From `#@__sgpage` group by likeid "); | |||
| echo "<option value='{$row['likeid']}' selected>{$row['likeid']}</option>"; | |||
| while($arr = $dsql->GetArray('s')) | |||
| { | |||
| if($arr['likeid']!=$row['likeid']) echo "<option value='{$arr['likeid']}'>{$arr['likeid']}</option>"; | |||
| } | |||
| echo "</select>"; | |||
| ?> | |||
| </td> | |||
| </tr> | |||
| <tr> | |||
| @@ -11,9 +11,6 @@ | |||
| .linerow { | |||
| border-bottom: 1px solid #CBD8AC; | |||
| } | |||
| td { | |||
| padding-left: 6px; | |||
| } | |||
| </style> | |||
| </head> | |||
| <body> | |||
| @@ -91,7 +91,7 @@ | |||
| <td colspan="2" style="border-top:1px solid #fff"> | |||
| <?php | |||
| foreach ($helps as $key => $help) { | |||
| echo '<div name="help111" id="'.$key.'" class="helpdiv"><div style="float:right"><a href="javascript:;" onclick="showdiv(\'\')" class="btn btn-success btn-sm">关闭</a></div>标签名称:'.$key.'<br>功能说明:'.trim($help[0]).'<br>使用实例:<br><textarea rows="5" style="width:98%">'.trim($help[1]).'</textarea><br>参数说明:<br>'.""; | |||
| echo '<div name="help111" id="'.$key.'" class="helpdiv"><span class="float-right"><a href="javascript:;" onclick="showdiv(\'\')" class="btn btn-success btn-sm">关闭</a></span>标签名称:'.$key.'<br>功能说明:'.trim($help[0]).'<br>使用实例:<br><textarea rows="5" style="width:98%">'.trim($help[1]).'</textarea><br>参数说明:<br>'.""; | |||
| $parameters = explode("\n", $help[2]); | |||
| foreach($parameters as $parameter) | |||
| { | |||
| @@ -17,7 +17,7 @@ | |||
| </td> | |||
| </tr> | |||
| <tr> | |||
| <td colspan="2">下载的文件临时存放在文件夹<span class='text-danger'>../data/<?php echo $tmpdir; ?></span>内,如果某些基础类有重要的改动导致更新中途中错,您可以从这文件夹提取文件手工更新</td> | |||
| <td colspan="2">下载的文件临时存放在文件夹<span class="text-danger">../data/<?php echo $tmpdir; ?></span>内,如果某些基础类有重要的改动导致更新中途中错,您可以从这文件夹提取文件手工更新</td> | |||
| </tr> | |||
| <?php echo $dirinfos; ?> | |||
| <tr bgcolor="#f8f8f8"> | |||
| @@ -127,9 +127,7 @@ | |||
| </tr> | |||
| <tr> | |||
| <td></td> | |||
| <td> | |||
| <div id="voteitem">选项1:<input type="text" name="voteitem1" size="30" id="voteitem1"></div> | |||
| </td> | |||
| <td><div id="voteitem">选项1:<input type="text" name="voteitem1" size="30" id="voteitem1"></div></td> | |||
| </tr> | |||
| <tr> | |||
| <td>是否启用:</td> | |||
| @@ -26,12 +26,8 @@ | |||
| <input type="hidden" name="showsource" value="no"> | |||
| <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token']; ?>"> | |||
| <tr> | |||
| <td> | |||
| <textarea name="partcode" cols="45" rows="6" id="partcode">{dede:vote id='<?php echo $aid?>' line tablewidth='100%' titlebgcolor='#EDEDE2' titlebackground='' tablebgcolor='#ffffff'}{/dede:vote}</textarea> | |||
| </td> | |||
| <td rowspan="2"> | |||
| <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||
| </td> | |||
| <td><textarea name="partcode" cols="45" rows="6" id="partcode">{dede:vote id='<?php echo $aid?>'}{/dede:vote}</textarea></td> | |||
| <td rowspan="2"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></td> | |||
| </tr> | |||
| <tr> | |||
| <td height="36" align="center"> | |||
| @@ -46,9 +42,7 @@ | |||
| <td bgcolor="#f8f8f8">在封面或主页模板中使用的JS:</td> | |||
| </tr> | |||
| <tr> | |||
| <td> | |||
| <textarea name="htmlf" cols="60" rows="5" id="htmlf"><script src="<?php echo $cfg_basehost.'/data/vote/vote_'.$aid.'.js' ?>"></script></textarea> | |||
| </td> | |||
| <td><textarea name="htmlf" cols="60" rows="5" id="htmlf"><script src="<?php echo $cfg_basehost.'/data/vote/vote_'.$aid.'.js' ?>"></script></textarea></td> | |||
| </tr> | |||
| <tr> | |||
| <td bgcolor="#f8f8f8">默认生成的表单HTML:</td> | |||
| @@ -4,7 +4,6 @@ | |||
| <meta charset="<?php echo $cfg_soft_lang; ?>"> | |||
| <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> | |||
| <title>{dede:wintitle/}</title> | |||
| <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | |||
| </head> | |||
| <body> | |||
| @@ -34,8 +33,6 @@ | |||
| <td width="100%" height="2"></td> | |||
| </tr> | |||
| </table> | |||
| <p style="text-align:center"> | |||
| {dede:lang_cms_powerby/} | |||
| </p> | |||
| <p style="text-align:center">{dede:lang_cms_powerby/}</p> | |||
| </body> | |||
| </html> | |||