58 lines
2.9 KiB
PHP
58 lines
2.9 KiB
PHP
<?php
|
|
/**
|
|
* The browse view file of credential module of ZenTaoPMS.
|
|
*
|
|
* @copyright Copyright 2009-2017 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
|
|
* @license ZPL (http://zpl.pub/page/zplv12.html)
|
|
* @author Gang Liu <liugang@cnezsoft.com>
|
|
* @package credential
|
|
* @version $Id$
|
|
* @link http://www.zentao.net
|
|
*/
|
|
?>
|
|
<?php include 'header.html.php'; ?>
|
|
<?php js::set('confirmDelete', $lang->credential->confirmDelete); ?>
|
|
|
|
<div id='mainContent' class='main-row'>
|
|
<div class='side-col' id='sidebar'>
|
|
<?php include 'menu.html.php'; ?>
|
|
</div>
|
|
<div class='main-col main-content'>
|
|
<form class='main-table' id='ajaxForm' method='post'>
|
|
<table id='credentialList' class='table has-sort-head table-fixed'>
|
|
<thead>
|
|
<tr>
|
|
<?php $vars = "orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}"; ?>
|
|
<th class='w-60px'><?php common::printOrderLink('id', $orderBy, $vars, $lang->credential->id); ?></th>
|
|
<th class='w-120px'><?php common::printOrderLink('type', $orderBy, $vars, $lang->credential->type); ?></th>
|
|
<th class='w-200px text-left'><?php common::printOrderLink('name', $orderBy, $vars, $lang->credential->name); ?></th>
|
|
<th class='c-actions-4'><?php echo $lang->actions; ?></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($credentialList as $id => $credential): ?>
|
|
<tr>
|
|
<td class='text-center'><?php echo $id; ?></td>
|
|
<td class='text'><?php echo zget($lang->credential->typeList, $credential->type); ?></td>
|
|
<td class='text' title='<?php echo $credential->name; ?>'><?php echo $credential->name; ?></td>
|
|
<td class='c-actions text-right'>
|
|
<?php
|
|
common::printIcon('ci', 'editCredential', "credentialID=$id", '', 'list', 'edit');
|
|
if (common::hasPriv('ci', 'deleteCredential')) {
|
|
$deleteURL = $this->createLink('ci', 'deleteCredential', "credentialID=$id&confirm=yes");
|
|
echo html::a("javascript:ajaxDelete(\"$deleteURL\", \"credentialList\", confirmDelete)", '<i class="icon-trash"></i>', '', "title='{$lang->credential->delete}' class='btn'");
|
|
}
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
<?php if ($credentials): ?>
|
|
<div class='table-footer'><?php $pager->show('rignt', 'pagerjs'); ?></div>
|
|
<?php endif; ?>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<?php include '../../common/view/footer.html.php'; ?>
|