| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <?php include mymps_tpl('inc_head');?>
- <?php if($part == 'template'){?>
- <div id="<?=MPS_SOFTNAME?>" style="padding-bottom:0">
- <div class="mpstopic-category">
- <div class="panel-tab">
- <ul class="clearfix tab-list">
- <li><a href="template.php">默认模板设置</a></li>
- <li><a href="file_manage.php" class="current">风格在线编辑</a></li>
- </ul>
- </div>
- </div>
- </div>
- <?php }?>
- <div class="ccc2">
- <ul>
- <img src="../images/warn.gif" align="absmiddle"> 安全提示:当前在线编辑模板功能</span>:<?=$cfg_if_tpledit?>。建议您只有在十分必要的时候才开启它。您可以修改 /data/config.inc.php 关闭此功能
- </ul>
- </div>
- <div id="<?=MPS_SOFTNAME?>">
- <table border="0" cellspacing="0" cellpadding="0" class="vbm">
- <tr class="firstr" align="left">
- <td><?=$mulu?><b style="color:red">【当前所在目录:<?=$path?>】</b></td>
- </tr>
- <tr align="center" bgcolor="#ffffff">
- <td>
- <?php
- $fso=@opendir($path);
- while ($file=@readdir($fso))
- {
- $fullpath = "$path/$file";
- $is_dir = @is_dir($fullpath);
- if($is_dir=="1")
- {
- if($file!=".."&&$file!=".")
- {?>
- <li style="float:left; margin:10px"><a href="?part=<?=$part?>&path=<?=$fullpath?>"><img src="template/images/dir.gif" border="0" align="absmiddle"> <?=$file?></a></li>
- <?}
- else
- {
- if($file!=".."&&$path!=$showdir)
- {
- ?>
- <div align="left" style="border-bottom:#e1f2fc 1px solid; padding:0 0 5px 0">
- <a href="?part=<?=$part?>&path=<?=$LastPath?>">
- <img src="template/images/file_topdir.gif" border="0" align="absmiddle">上级目录</a>
- </div>
- <?
- }
- }
- }
- }
- @closedir($fso);
- ?>
- </td>
- </tr>
- </table>
- </div>
- <div id="<?=MPS_SOFTNAME?>">
- <table border="0" cellspacing="0" cellpadding="0" class="vbm">
- <tr class="firstr">
- <td><b>文件名</b></td>
- <td><b>修改日期</b></td>
- <td><b>文件大小</b></td>
- <td><b>操作</b></td>
- </tr>
- <?php
- $fso=@opendir($path);
- while ($file=@readdir($fso)) {
- $fullpath = "$path/$file";
- $is_dir = @is_dir($fullpath);
- if($is_dir=="0"){
- $size=@filesize("$path/$file");
- $size=@getSize($size);
- $lastsave=@date("Y-n-d H:i:s",filemtime("$path/$file"));
- $image_uri = $part == 'template' ? $mymps_global[SiteUrl].'/'.$part.'/default'.str_replace($showdir,'',$fullpath) : $mymps_global[SiteUrl].'/attachment'.str_replace($showdir,'',$fullpath);
- ?>
- <tr bgcolor="white">
- <?php if(is_pic($file)=='yes'){?>
- <td><a href="<?=$image_uri?>" target="_blank" onMouseOut="closediv('<?=$file?>')"><img src="<?=FileImage($fullpath)?>" border="0" align="absmiddle"> <?=$file?></a></td>
- <?}else{?>
- <td bgcolor="white"><img src="<?=FileImage($fullpath)?>" border="0" align="absmiddle"> <?=$file?></td>
- <?}?>
- <td><?=$lastsave?></td>
- <td bgcolor="white"><?=$size?></td>
- <td align="center">
- <a href="?downfile=<?=$fullpath?>">下载</a> /
- <a href="?editfile=<?=$fullpath?>">编辑</a> /
- <a href="?part=<?=$part?>&delfile=<?=$fullpath?>&url=<?=urlencode(getUrl())?>" onClick="return confirm('如非必要,请不要在此删除该文件,您确定要删除吗?')">删除</a> </td>
- </tr>
- <?php
- }
- }
- @closedir($fso);
- ?>
- </table>
- </div>
- <?php mymps_admin_tpl_global_foot();?>
|