function backup_del() { $name = IReq::get('name'); $name = IFilter::act($name, 'string'); if (!empty($name) && !is_array($name)) { $name = array($name); } if (is_array($name) && isset($name[0]) && $name[0] != '') { $backupObj = new DBBackup($name); $backupObj->del(); $this->redirect('db_res'); } else { $backupObj = new DBBackup(); $resList = $backupObj->getList(); $this->setRenderData($resList); $this->redirect('db_res', false); Util::showMessage('请选择要删除的备份文件'); } }
</a> <?php } ?> </span> </div> <div id="admin_left"> <ul class="submenu"></ul> <div id="copyright"></div> </div> <div id="admin_right"> <?php $backupObj = new DBBackup(); $resList = $backupObj->getList(); ?> <div class="headbar"> <div class="position"><span>工具</span><span>></span><span>数据库管理</span><span>></span><span>恢复数据库</span></div> <div class="operating"> <a href="javascript:void(0)" onclick="selectAll('name[]');"><button class="operating_btn" type="button"><span class="sel_all">全选</span></button></a> <a href="javascript:void(0)" onclick="delModel()"><button class="operating_btn" type="button"><span class="delete">批量删除</span></button></a> <a href="javascript:void(0)" onclick="confirm('确定要还原么?','res_act()')"><button class="operating_btn" type="button"><span class="import">还原</span></button></a> <a href="javascript:void(0)" onclick="confirm('确定要打包下载么?','res_pack()')"><button class="operating_btn" type="button"><span class="download">打包下载</span></button></a> <a href="javascript:void(0)" onclick="localUpload();"><button class="operating_btn" type="button"><span class="import">本地导入</span></button></a> </div> <div class="field"> <table class="list_table"> <col width="40px" /> <col width="300px" /> <col width="120px" />