* code for task#1657.

This commit is contained in:
xia0ta0
2013-08-01 10:14:56 +08:00
parent 9dc6bc2894
commit 5115b5c7b2
+7 -2
View File
@@ -15,6 +15,7 @@ include '../../common/view/header.html.php';
include '../../common/view/treeview.html.php';
include '../../common/view/colorize.html.php';
js::set('deptID', $deptID);
js::set('confirmDelete', $lang->user->confirmDelete);
?>
<table class='cont-lt1'>
<tr><td colspan='3'><div id='querybox'><?php echo $searchForm?></div></td></tr>
@@ -28,7 +29,7 @@ js::set('deptID', $deptID);
</td>
<td class='divider'></td>
<td>
<table class='table-1 tablesorter colored'>
<table class='table-1 tablesorter colored' id='userList'>
<thead>
<tr class='colhead'>
<?php $vars = "param=$param&type=$type&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}";?>
@@ -73,7 +74,11 @@ js::set('deptID', $deptID);
<td class='a-left'>
<?php
common::printIcon('user', 'edit', "userID=$user->id&from=company", '', 'list');
if(strpos($this->app->company->admins, ",{$user->account},") === false) common::printIcon('user', 'delete', "userID=$user->id", '', 'list', '', "hiddenwin");
if(strpos($this->app->company->admins, ",{$user->account},") === false)
{
$deleteURL = $this->createLink('user', 'delete', "userID=$user->id&confirm=yes");
echo html::a("javascript:ajaxDelete(\"$deleteURL\",\"userList\",confirmDelete)", '&nbsp;', '', "class='icon-green-common-delete' title='{$lang->user->delete}'");
}
if((strtotime(date('Y-m-d H:i:s')) - strtotime($user->locked)) < $this->config->user->lockMinutes * 60)
{
common::printIcon('user', 'unlock', "userID=$user->account", '', 'list', '', "hiddenwin");