diff --git a/module/company/view/browse.html.php b/module/company/view/browse.html.php
index c6af34b300..160f0add49 100644
--- a/module/company/view/browse.html.php
+++ b/module/company/view/browse.html.php
@@ -101,16 +101,31 @@ js::set('confirmDelete', $lang->user->confirmDelete);
visits;?> |
ranzhi) common::printIcon('user', 'unbind', "userID=$user->account", '', 'list', 'unlink', "hiddenwin");
- if(true or (strtotime(date('Y-m-d H:i:s')) - strtotime($user->locked)) < $this->config->user->lockMinutes * 60)
+ if($user->ranzhi)
+ {
+ common::printIcon('user', 'unbind', "userID=$user->account", '', 'list', 'unlink', "hiddenwin");
+ }
+ else
+ {
+ echo html::a('javascript:;', "", '', "class='btn disabled'");
+ }
+ 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', 'unlock', "hiddenwin");
}
+ else
+ {
+ echo html::a('javascript:;', "", '', "class='btn disabled'");
+ }
common::printIcon('user', 'edit', "userID=$user->id&from=company", '', 'list');
if(strpos($this->app->company->admins, ",{$user->account},") === false and common::hasPriv('user', 'delete'))
{
echo html::a($this->createLink('user', 'delete', "userID=$user->id"), '', '', "title='{$lang->user->delete}' class='btn iframe'");
}
+ else
+ {
+ echo html::a('javascript:;', "", '', "class='btn disabled'");
+ }
?>
|