Files
EasySoft-ZenTaoPMS/module/company/view/browse.html.php
2010-11-09 07:19:37 +00:00

78 lines
2.9 KiB
PHP

<?php
/**
* The browse view file of product dept of ZenTaoPMS.
*
* @copyright Copyright 2009-2010 QingDao Nature Easy Soft Network Technology Co,LTD (www.cnezsoft.com)
* @license LGPL (http://www.gnu.org/licenses/lgpl.html)
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
* @package product
* @version $Id$
* @link http://www.zentao.net
*/
?>
<?php
include '../../common/view/header.html.php';
include '../../common/view/treeview.html.php';
include '../../common/view/tablesorter.html.php';
?>
<div class="yui-d0 yui-t1">
<div class="yui-main">
<div class="yui-b">
<table class='table-1 tablesorter'>
<thead>
<tr class='colhead'>
<th class='w-id'><?php echo $lang->idAB;?></th>
<th><?php echo $lang->user->realname;?></th>
<th><?php echo $lang->user->account;?></th>
<?php // echo $lang->user->nickname;?>
<th><?php echo $lang->user->email;?></th>
<th><?php echo $lang->user->gendar;?></th>
<th><?php echo $lang->user->phone;?></th>
<th><?php echo $lang->user->join;?></th>
<th><?php echo $lang->user->visits;?></th>
<th><?php echo $lang->actions;?></th>
</tr>
</thead>
<tbody>
<?php foreach($users as $user):?>
<tr class='a-center'>
<td><?php echo $user->id;?></td>
<td><?php if(!common::printLink('user', 'view', "account=$user->account", $user->realname)) echo $user->realname;?></td>
<td><?php echo $user->account;?></td>
<?php // echo $user->nickname;?>
<td><?php echo html::mailto($user->email);?></td>
<td><?php if(isset($lang->user->gendarList->{$user->gendar})) echo $lang->user->gendarList->{$user->gendar};?></td>
<td><?php echo $user->phone;?></td>
<td><?php echo $user->join;?></td>
<td><?php echo $user->visits;?></td>
<td>
<?php
common::printLink('user', 'edit', "userID=$user->id&from=company", $lang->edit);
common::printLink('user', 'delete', "userID=$user->id", $lang->delete, "hiddenwin");
?>
</td>
</tr>
<?php endforeach;?>
</tbody>
</table>
</div>
</div>
<div class="yui-b">
<div class='box-title'><?php echo $lang->dept->common;?></div>
<div class='box-content'>
<?php echo $deptTree;?>
<div class='a-right'>
<?php
common::printLink('user', 'create', "dept=$deptID&from=company", $lang->user->create);echo '<br />';
common::printLink('company', 'browse', '', $lang->user->allUsers); echo '<br />';
common::printLink('dept', 'browse', '', $lang->dept->manage);
?>
</div>
</div>
</div>
</div>
<script lanugage='Javascript'>$('#dept<?php echo $deptID;?>').addClass('active');</script>
<?php include '../../common/view/footer.html.php';?>