| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <?php
- /**
- * The browse mobile view file of overtime module of ZDOO.
- *
- * @copyright Copyright 2009-2016 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
- * @license ZPL (http://zpl.pub/page/zplv12.html)
- * @author Tingting Dai <daitingting@xirangit.com>
- * @package overtime
- * @version $Id
- * @link http://www.zdoo.com
- */
- if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}
- include "../../common/view/m.header.html.php";?>
- <style>
- .list > .list {margin-left: 10px;}
- .list > .item {padding: 8px;}
- </style>
- <div class='heading'>
- <div class='title'>
- <?php if(!empty($yearList)):?>
- <a data-display='dropdown' data-placement='beside-bottom-start'><i class='icon-bars'></i> <?php echo $lang->overtime->date;?></a>
- <div class='list dropdown-menu'>
- <?php foreach($yearList as $year):?>
- <a class='item item-year' href='<?php echo inlink($type, "date={$year}");?>'><?php echo $year;?></a>
- <div class='list'>
- <?php foreach($monthList[$year] as $month):?>
- <a class='item item-month' href='<?php echo inlink($type, "date=$year$month");?>'>
- <?php echo $year . $month;?>
- </a>
- <?php endforeach;?>
- </div>
- <?php endforeach;?>
- </div>
- <?php else:?>
- <a id='sortTrigger' class='text-right sort-trigger' data-display data-target='#sortPanel' data-backdrop='true'><i class='icon icon-sort'></i> <span class='sort-name'><?php echo $lang->sort;?></span></a>
- <?php endif;?>
- </div>
- <nav class='nav'>
- <?php if(!empty($yearList)):?>
- <a id='sortTrigger' class='text-right sort-trigger' data-display data-target='#sortPanel' data-backdrop='true'><i class='icon icon-sort'></i> <span class='sort-name'><?php echo $lang->sort;?></span></a>
- <?php endif;?>
- <a class='btn primary' data-display='modal' data-placement='bottom' data-remote='<?php echo $this->createLink('overtime', 'create') ?>'>
- <i class='icon icon-plus'></i> <?php echo $lang->overtime->create;?>
- </a>
- </nav>
- </div>
- <section id='page' class='section list-with-pager'>
- <?php $refreshUrl = $this->createLink('overtime', 'browse', "type={$type}&date={$date}&orderBy={$orderBy}");?>
- <div class='box' data-refresh-url='<?php echo $refreshUrl;?>'>
- <table class='table bordered'>
- <thead>
- <tr>
- <th class='w-80px text-center'><?php echo $lang->overtime->createdBy;?></th>
- <th><?php echo $lang->overtime->type;?></th>
- <th class='w-70px'><?php echo $lang->overtime->hours;?></th>
- <th class='w-90px text-center'><?php echo $lang->overtime->status;?></th>
- </tr>
- </thead>
- <?php foreach($overtimeList as $overtime):?>
- <tr class='text-center' >
- <td><?php echo zget($users, $overtime->createdBy);?></td>
- <td><?php echo zget($lang->overtime->typeList, $overtime->type);?></td>
- <td><?php echo $overtime->hours;?></td>
- <td><span class='label status-<?php echo $overtime->status?>-pale'><?php echo zget($lang->overtime->statusList, $overtime->status);?></span></td>
- </tr>
- <?php endforeach;?>
- </table>
- </div>
- </section>
- <div class='list sort-panel hidden affix enter-from-bottom layer' id='sortPanel'>
- <?php
- $vars = "data={$date}&orderBy=%s";
- $orders = array('id', 'createdBy', 'type', 'begin', 'end', 'hours', 'status', 'reviewedBy');
- foreach($orders as $order)
- {
- commonModel::printOrderLink($order, $orderBy, $vars, '<i class="icon icon-sort-indicator"></i>' . $lang->overtime->{$order});
- }
- ?>
- </div>
- <?php include "../../common/view/m.footer.html.php";?>
|