better-staridc-MNBT
1<?php include('amftp_header.php');?>
2<script>
3var amftp_am_ftp_pwd = <?php echo json_encode($amftp_am_ftp_pwd);?>;
4</script>
5
6<div id="content">
7<?php
8$pwd_arr = explode('/', trim($amftp_am_ftp_pwd));
9$back_amftp_am_ftp_pwd = array_slice($pwd_arr, 0, -2);
10$back_amftp_am_ftp_pwd = implode('/', $back_amftp_am_ftp_pwd);
11
12$pwd_str = array();
13foreach($pwd_arr AS $key => $val)
14{
15 if(empty($val)) continue;
16 foreach($pwd_arr AS $k=> $v)
17 {
18 if(empty($v)) continue;
19 $pwd_str[$key]['url'] .= "/{$v}";
20 $pwd_str[$key]['name'] = $v;
21 if($v == $val)
22 break;
23 }
24}
25if (!empty($notice)) { ?>
26 <div id="<?php echo $notice_status;?>"><?php echo $notice;?></div>
27<?php } ?>
28 <div style="border:1px solid #DBDEE1">
29 <div class="title">
30 <input type="button" value="根目录" onclick="window.location='./index.php'" class="input_button"/>
31 <input type="button" value="上级" onclick="window.location='./index.php?pwd=<?php echo $back_amftp_am_ftp_pwd;?>/'" class="input_button"/>
32
33 <form action="./index.php" method="GET" style="display:inline;position:relative;" id="go_pwd_form">
34 <span id="pwd_str">/<?php foreach ($pwd_str AS $key => $val) { ?><a href="javascript:;" onclick="window.location='./index.php?pwd=<?php echo $val['url'];?>'"><?php echo $val['name'];?></a>/<?php }?></span>
35 <input type="text" value="<?php echo $amftp_am_ftp_pwd;?>" name="pwd" id="pwd" class="input_text" style="width:65%"/>
36 <input type="submit" value="跳转" class="input_button"/>
37 </form>
38 <input type="button" value="刷新" onclick="window.location='./index.php?pwd=<?php echo $amftp_am_ftp_pwd;?>&reload=y'" class="input_button"/>
39 </div>
40
41 <form action="" id="submit_change_form" method="POST">
42 <table id="rawlist">
43 <tr><th width="25">选择</th>
44 <?php
45 $order = ($_GET['order'] == 'asc') ? 'desc' : 'asc';
46 $order_img = isset($_GET['orderby']) ? " <img src='View/images/{$_GET['order']}.gif' style='margin-bottom:1px'/>" : '';
47
48 ?>
49 <th width="25"><a href="./index.php?pwd=<?php echo $amftp_am_ftp_pwd;?>&orderby=file_type&order=<?php echo $_GET['orderby'] == 'file_type' ? $order : 'asc';?>">类型
50 <?php echo $_GET['orderby'] == 'file_type' ? $order_img : '' ?></a></th>
51 <th width="345"><a href="./index.php?pwd=<?php echo $amftp_am_ftp_pwd;?>&orderby=dirfilename&order=<?php echo $_GET['orderby'] == 'dirfilename' ? $order : 'asc';?>">文件名
52 <?php echo $_GET['orderby'] == 'dirfilename' ? $order_img : '' ?></a></th>
53 <th><a href="./index.php?pwd=<?php echo $amftp_am_ftp_pwd;?>&orderby=size&order=<?php echo $_GET['orderby'] == 'size' ? $order : 'asc';?>">大小
54 <?php echo $_GET['orderby'] == 'size' ? $order_img : '' ?></a></th>
55 <th><a href="./index.php?pwd=<?php echo $amftp_am_ftp_pwd;?>&orderby=owner&order=<?php echo $_GET['orderby'] == 'owner' ? $order : 'asc';?>">用户ID
56 <?php echo $_GET['orderby'] == 'owner' ? $order_img : '' ?></a></th>
57 <th><a href="./index.php?pwd=<?php echo $amftp_am_ftp_pwd;?>&orderby=group&order=<?php echo $_GET['orderby'] == 'group' ? $order : 'asc';?>">用户名
58 <?php echo $_GET['orderby'] == 'group' ? $order_img : '' ?></a></th>
59 <th><a href="./index.php?pwd=<?php echo $amftp_am_ftp_pwd;?>&orderby=permissions_number&order=<?php echo $_GET['orderby'] == 'permissions_number' ? $order : 'asc';?>">权限
60 <?php echo $_GET['orderby'] == 'permissions_number' ? $order_img : '' ?></a></th>
61 <th><a href="./index.php?pwd=<?php echo $amftp_am_ftp_pwd;?>&orderby=charset&order=<?php echo $_GET['orderby'] == 'charset' ? $order : 'asc';?>">名称编码
62 <?php echo $_GET['orderby'] == 'charset' ? $order_img : '' ?></a></th>
63 <th><a href="./index.php?pwd=<?php echo $amftp_am_ftp_pwd;?>&orderby=mtime&order=<?php echo $_GET['orderby'] == 'mtime' ? $order : 'asc';?>">修改时间
64 <?php echo $_GET['orderby'] == 'mtime' ? $order_img : '' ?></a></th></tr>
65 <tr> <td> </td> <td>Dir </td>
66 <td><img src="View/images/u.gif" class="file_type"/> <a href="./index.php?pwd=<?php echo $back_amftp_am_ftp_pwd;?>/">上级目录</a> </td>
67 <td></td> <td></td> <td></td> <td></td> <td></td> </tr>
68 <?php
69 $_i=$tr_i=0;
70 foreach ($am_ftp_rawlist as $key=>$val)
71 {
72 ?>
73 <tr class="<?php $tr_i++;echo ($tr_i % 2 == 0) ? 'tr' : 'tr row';?>">
74 <td>
75 <input type="checkbox" class="select_item" name="select_item[<?php echo $val['dirorfile'];?>][<?php echo $_i;?>]" value="<?php echo $amftp_am_ftp_pwd;?><?php echo $val['dirfilename'];?>" />
76 <input type="hidden" name="charset_item[<?php echo $val['dirorfile'];?>][<?php echo $_i;?>]" value="<?php echo $val['charset'];?>" />
77 <input type="hidden" name="can_open[<?php echo $val['dirorfile'];?>][<?php echo $_i;?>]" value="<?php echo $val['can_open'];?>" />
78 <input type="hidden" name="permissions_number[<?php echo $val['dirorfile'];?>][<?php echo $_i;?>]" value="<?php echo $val['permissions_number'];?>" />
79 </td>
80 <td>
81 <?php echo ($val['dirorfile'] == 'd') ? 'Dir' : $val['file_type'];?>
82 </td>
83 <td>
84 <?php if($val['dirorfile'] == 'd') { ?>
85
86 <img src="View/images/ico/<?php echo $val['ico'];?>" class="file_type"/>
87 <font class="file_name">
88 <a href="./index.php?pwd=<?php echo $amftp_am_ftp_pwd;?><?php echo $val['dirfilename'];?>/" name="<?php echo (htmlspecialchars_decode($val['dirfilename']));?>"><?php echo $val['dirfilename'];?></a>
89 </font>
90 <a href="" class="action action_ico delete" title="删除" name="delete"></a>
91 <a href="" class="action action_ico rename" title="重命名" name="rename" ></a>
92 <?php }else {?>
93
94 <img src="View/images/ico/<?php echo $val['ico'];?>" class="file_type"/>
95 <font class="file_name">
96 <a href="./index.php?a=file_edit&charset=<?php echo $val['charset'];?>&pwd=<?php echo $amftp_am_ftp_pwd;?>&file=<?php echo (htmlspecialchars_decode($val['dirfilename']));?>" name="<?php echo $val['dirfilename'];?>" class="file" ><?php echo $val['dirfilename'];?></a>
97 </font>
98 <a href="" class="action action action_ico delete" title="删除" name="delete" ></a>
99 <a href="" class="action action_ico download" title="下载" name="download" ></a>
100 <a href="" class="action action_ico rename" title="重命名" name="rename" ></a>
101 <a href="" class="action action_ico edit" title="阅读/编辑" name="edit" ></a>
102 <?php } ?>
103 </td>
104 <td><?php echo $val['size_text'];?></td>
105 <td><?php echo $val['owner'];?></td>
106 <td><?php echo $val['group'];?></td>
107 <td><span style="color:#ADADAD"><?php echo $val['permissions_number'];?></span> <?php echo $val['permissions'];?></td>
108 <td><?php echo $val['charset'];?></td>
109 <td><?php echo $val['mtime'];?></td>
110 </tr>
111 <?php
112 ++$_i;
113 }
114 ?>
115 </table>
116 <div class="title">
117 <input type="checkbox" onclick="all_select(this);" id="all_select_dom"/>
118 <label style="color:#3366CC" href="javascript:;" for="all_select_dom">总<?php echo is_array($am_ftp_rawlist) ? count($am_ftp_rawlist) : 0;?></label>
119 <input type="button" id="del_file_sub" name="delete" value="删除" onclick="submit_change_notice='确认删除选择项吗?';need_select_notice=1;" class="input_button" onmouseover="change_submit(this.id);this.focus();"/> ┊
120 <input type="button" value="移动" id="move_button" onclick="move_file(this);" class="input_button"/> ┊
121 <input type="button" value="复制" id="copy_button" onclick="copy_file(this);" class="input_button"/> ┊
122 <input type="button" value="设置权限" id="permissions_button" onclick="permissions_file(this);" class="input_button"/> ┊
123 <input type="button" value="新建" id="new_button" onclick="new_file(this);" class="input_button"/> ┊
124 压缩类型:
125 <span class="select_text " style="width:60px;border-radius:3px;height:22px;margin: 0px 2px -8px 8px;margin-bottom: -8px;">
126 <span class="hidden_border" style="">
127 <select name="zip_type"style="width:50px;margin-top:3px;">
128 <option value="zip">zip</option>
129 <option value="tar">tar</option>
130 <option value="tar.gz">tar.gz</option>
131 </select>
132 </span>
133 </span>
134 <input type="button" id="zip_file_sub" name="zip" value="压缩" onclick="submit_change_notice='';need_select_notice=1;" class="input_button" onmouseover="change_submit(this.id);this.focus();" /> ┊
135 <input type="button" id="unzip_file_sub" name="unzip" value="智能解压" onclick="submit_change_notice='';need_select_notice=1;" class="input_button" onmouseover="change_submit(this.id);this.focus();" /> ┊
136 <input type="button" value="远程上传" id="remote_download_button" onclick="remote_download(this);" class="input_button"/> ┊
137 <input type="button" value="本地上传" onclick="upload_file(this);" class="input_button"/>
138
139 <span id="upload_block" >
140 <div id="uploader" class="wu-example">
141 <div class="btns">
142 请选择文件
143 <span id="picker">极速上传</span> <input type="checkbox" checked="" id="continued_dom"> <label for="continued_dom">断点续传</label>
144 </div>
145 </div>
146 </span>
147 </div>
148 <input type="hidden" name="" id="hidden_submit"/>
149 </div>
150
151
152 <div id="move_block" class="block" onmouseover="change_submit('move_file_sub')">
153 <div>
154 <p style="margin:5px 0px"> » 移动到 </p>
155 <input type="text" value="<?php echo $amftp_am_ftp_pwd;?>" name="move_pwd" id="move_pwd" class="input_text" style="width:355px"/>
156 <input type="button" id="move_file_sub" name="move" value="确定" class="input_button" onclick="submit_change_notice='确认移动选择项吗?';need_select_notice=1;"/> <input type="button" value="取消" onclick="move_cancel();" class="input_button"/>
157 </div>
158 <div id="move_show_dir_dom" class="show_dir_dom">
159 </div>
160 <br />
161 <br />
162 </div>
163 <div id="copy_block" class="block" style="display:none;margin:10px 0px;" onmouseover="change_submit('copy_file_sub')">
164 <div>
165 <p style="margin:5px 0px"> » 复制到</p>
166 <input type="text" value="<?php echo $amftp_am_ftp_pwd;?>" name="copy_pwd" id="copy_pwd" class="input_text" style="width:455px"/>
167 <input type="button" id="copy_file_sub" name="copy" value="确定" class="input_button" onclick="submit_change_notice='确认复制选择项吗?';need_select_notice=1;"/> <input type="button" value="取消" onclick="copy_cancel();" class="input_button"/>
168 </div>
169 <div id="copy_show_dir_dom" class="show_dir_dom">
170 </div>
171 <br />
172 <br />
173 </div>
174 <div id="permissions_block" class="block" onmouseover="change_submit('per_file_sub')">
175 <p style="margin:13px 0px;"> » 更改文件权限 ( 普通权限 <a id="pv_all_select" href="">全选</a> / <a id="pv_all_unselect" href="">全不选</a> )</p>
176 <table width="400" border="0" cellpadding="3" cellspacing="1" bgcolor="#DFDFDF">
177 <tr><th bgcolor="#F0F4F7">所有者</th>
178 <th bgcolor="#F0F4F7">组</th>
179 <th bgcolor="#F0F4F7">公共</th>
180 </tr>
181 <tr>
182 <td bgcolor="#F6F6F6"><input type="checkbox" id="sr" class="pv_item" value="4000" /> <label for="sr">设置UID</label></td>
183 <td bgcolor="#F6F6F6"><input type="checkbox" id="sw" class="pv_item" value="2000"/> <label for="sw">设置GID</label></td>
184 <td bgcolor="#F6F6F6"><input type="checkbox" id="sx" class="pv_item" value="1000"/> <label for="sx">粘性</label></td>
185 </tr>
186 <tr>
187 <td bgcolor="#FFFFFF"><input type="checkbox" id="ur" class="pv_item" value="400"/> <label for="ur">读取</label></td>
188 <td bgcolor="#FFFFFF"><input type="checkbox" id="gr" class="pv_item" value="40"/> <label for="gr">读取</label></td>
189 <td bgcolor="#FFFFFF"><input type="checkbox" id="pr" class="pv_item" value="4"/> <label for="pr">读取</label></td>
190 </tr>
191 <tr>
192 <td bgcolor="#FFFFFF"><input type="checkbox" id="uw" class="pv_item" value="200"/> <label for="uw">写入</label></td>
193 <td bgcolor="#FFFFFF"><input type="checkbox" id="gw" class="pv_item" value="20"/> <label for="gw">写入</label></td>
194 <td bgcolor="#FFFFFF"><input type="checkbox" id="pw" class="pv_item" value="2"/> <label for="pw">写入</label></td>
195 </tr>
196 <tr>
197 <td bgcolor="#FFFFFF"><input type="checkbox" id="ux" class="pv_item" value="100"/> <label for="ux">执行</label></td>
198 <td bgcolor="#FFFFFF"><input type="checkbox" id="gx" class="pv_item" value="10"/> <label for="gx">执行</label></td>
199 <td bgcolor="#FFFFFF"><input type="checkbox" id="px" class="pv_item" value="1"/> <label for="px">执行</label></td>
200 </tr>
201 </table>
202 <p><input type="checkbox" id="recursion" name="recursion" /> <label for="recursion">同时应用到所有子目录和文件</label></p>
203 <p>权限值:<input type="txt" id="permissions_val" name="permissions_val" class="input_text" style="width:100px;" /> </label></p>
204 <p><input type="button" id="per_file_sub" name="permissions" value="确定" class="input_button" onclick="submit_change_notice='确认改变选择项的权限吗?';need_select_notice=1;"/>
205 <input type="button" value="取消" onclick="permissions_cancel();" class="input_button"/>
206 </p>
207 </div>
208
209 <div id="new_block" class="block" onmouseover="change_submit('new_file_sub')">
210 <p style="margin:5px 0px"> » 新建类型 <input type="radio" name="new_type" checked="" value="file" id="new_type_file" /><label for="new_type_file">文件</label>
211 <input type="radio" name="new_type" value="dir" id="new_type_dir" /><label for="new_type_dir">目录</label>
212 </p>
213 <br />
214 名称: <input type="text" value="" name="new_name" id="new_name" class="input_text" style="width:155px"/>
215 <input type="button" id="new_file_sub" name="new" value="确定" class="input_button" onclick="submit_change_notice='';need_select_notice=0;" /> <input type="button" value="取消" onclick="new_cancel();" class="input_button"/>
216 <br />
217 <br />
218 </div>
219
220 <div id="remote_download_block" class="block" onmouseover="change_submit('rd_file_sub')">
221 <p style="margin:5px 0px"> » 请填写远程文件网址 ( 保存远程文件到当前目录 )</p>
222 <input type="text" value="" name="remote_file" id="remote_file" class="input_text" style="width:505px"/>
223 <input type="button" id="rd_file_sub" name="remote_down" value="确定" class="input_button" onclick="submit_change_notice='确认下载保存到当前目录吗?';need_select_notice=0;"/> <input type="button" value="取消" onclick="remote_download_cancel();" class="input_button"/>
224 <br />
225 <br />
226 </div>
227 <div id="amfile_uplist" class="uploader-list"></div>
228 <div id="amfile_upload_complete" class="uploader-list"></div>
229 </form>
230
231
232 <div id="_progressTarget" style=""></div>
233 <div id="_progressGroupTarget" style="margin:5px 0px;"></div>
234 <div id="_ReturnActionId"></div>
235</div>
236
237
238<?php include('amftp_footer.php');?>