www.gusucode.com > Destoon B2B仿淘宝电子商务网站 UTF8 v6.0源码程序 > destoon/admin/template/upload_part.tpl.php
<?php defined('DT_ADMIN') or exit('Access Denied'); include tpl('header'); show_menu($menus); ?> <div class="tt">上传分表</div> <table cellpadding="2" cellspacing="1" class="tb"> <tr> <th width="60">分区</th> <th>名称</th> <th>表名</th> <th>记录</th> <th width="60">查看</th> </tr> <?php foreach($lists as $k=>$v) {?> <tr align="center"> <td><?php echo $k;?></td> <td><a href="javascript:Dwidget('?file=<?php echo $file;?>&id=<?php echo $k;?>', '上传记录[<?php echo $k;?>]');"><?php echo $v['name'];?></a></td> <td><a href="javascript:Dwidget('?file=<?php echo $file;?>&id=<?php echo $k;?>', '上传记录[<?php echo $k;?>]');"><?php echo $v['table'];?></a></td> <td><?php echo $v['rows'];?></td> <td><a href="javascript:Dwidget('?file=<?php echo $file;?>&id=<?php echo $k;?>', '上传记录[<?php echo $k;?>]');" class="t"><img src="admin/image/view.png" width="16" height="16" title="点击查看" alt=""/></a></td> </tr> <?php }?> </table> <div class="tt">查找文件</div> <table cellpadding="2" cellspacing="1" class="tb"> <tr> <td class="tl">文件网址: </td> <td><input type="text" name="url" size="70" id="url"/> <input type="button" value=" 查找 " class="btn" onclick="Dfind();"/> <span id="durl" class="f_red"></span> </td> </tr> </table> <div class="tt">删除上传</div> <form method="post" action="?" onsubmit="return Dcheck();"> <input type="hidden" name="file" value="<?php echo $file;?>"/> <input type="hidden" name="action" value="delete_user"/> <table cellpadding="2" cellspacing="1" class="tb"> <tr> <td class="tl">会员名: </td> <td><input type="text" name="username" size="20" id="username"/> <input type="submit" value=" 删除 " class="btn"/> <span id="dusername" class="f_red"></span> <span class="f_gray">删除会员的所有上传文件</span> </td> </tr> </table> </form> <script type="text/javascript"> function Dcheck() { var l; var f; f = 'username'; l = Dd(f).value.length; if(l < 2) { Dmsg('请填写会员名', f); return false; } return confirm('确定要删除会员 '+Dd(f).value+' 的所有上传文件吗?此操作不可撤销'); } function Dfind() { var l; var f; f = 'url'; l = Dd(f).value.length; if(l < 15) { Dmsg('请填写文件网址', f); return false; } Dwidget('?file=<?php echo $file;?>&action=find&kw='+Dd(f).value, '查找文件'); } </script> <script type="text/javascript">Menuon(0);</script> <?php include tpl('footer');?>