在数据恢复中直接修改路径

This commit is contained in:
wlx 2013-05-28 09:11:43 +00:00
parent b10eef0164
commit 178b938896
2 changed files with 16 additions and 5 deletions

View File

@ -8,6 +8,7 @@ class Admin_SysController extends Zend_Controller_Action
$this->messenger=$this->_helper->getHelper('FlashMessenger');
$this->view->messages = $this->messenger->getMessages();
$this->_helper->layout->setLayout('administry');//新UI
$this->view->theme = new Theme();
}
function postDispatch()

View File

@ -3,6 +3,7 @@
$this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->theme->AppendPlus($this,'colorbox');
?>
<div id="leftPanel">
<?= $this->partial('sys/left.phtml'); ?>
@ -23,6 +24,7 @@
<th>路径</th>
<th>大小</th>
<th>文件数</th>
<th>操作</th>
</tr></thead><tbody>
<?php
if (count($this->paginator)):
@ -36,6 +38,7 @@ if (count($this->paginator)):
<td><?php echo $item['path'];?></td>
<td><?php echo $item['filesize'];?></td>
<td><?php echo $item['filecount'];?></td>
<td><a href="/admin/data/dataset/ac/getdataset/uuid/<?php echo $item['uuid'];?>" class="iframe">数据路径</a></td>
</tr>
<?php endforeach; endif; ?>
</tbody></table>
@ -44,3 +47,10 @@ if (count($this->paginator)):
<?php if(!empty($this->activeID)) : ?>
<script>$('#<?= $this->activeID?>').addClass("btn-primary");</script>
<?php endif; ?>
<script>
$(".iframe").colorbox({iframe:true, width:"50%", height:"50%"});
$(".inline").colorbox({inline:true, width:"50%"});
function Alert(html){
$.colorbox({'innerWidth':'50%','html':'<h4 style="font-size:16px;font-weight:bold;">'+html+'</h4>'});
}
</script>