Kimai time management system (PHP 5.6 / MySQL) with custom extensions: - Budget tracking (ki_budget) - Change request form (ki_changerequest) - Invoice generation (ki_invoice) - Expense tracking (ki_expenses) - Flexi time (ki_flexitime) - Export, admin panel, timesheets, tasks, summary Database: ~900K time entries, 2,000+ users, 439 projects. Config: includes/autoconf.php — localhost/kimai/kimai
113 lines
6.3 KiB
PHP
113 lines
6.3 KiB
PHP
<?php /* Smarty version 2.6.20, created on 2015-01-18 19:25:45
|
|
compiled from knd.tpl */ ?>
|
|
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
|
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'knd.tpl', 1, false),array('function', 'cycle', 'knd.tpl', 4, false),)), $this); ?>
|
|
<a href="#" onClick="floaterShow('floaters.php','add_edit_knd',0,0,450,200); $(this).blur(); return false;"><img src="../skins/<?php echo ((is_array($_tmp=$this->_tpl_vars['kga']['conf']['skin'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
|
/grfx/add.png" width="22" height="16" alt="<?php echo $this->_tpl_vars['kga']['lang']['new_knd']; ?>
|
|
"></a> <?php echo $this->_tpl_vars['kga']['lang']['new_knd']; ?>
|
|
|
|
<br/><br/>
|
|
|
|
<?php echo smarty_function_cycle(array('values' => "odd,even",'reset' => true,'print' => false), $this);?>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
<tr class='headerrow'>
|
|
<th><?php echo $this->_tpl_vars['kga']['lang']['options']; ?>
|
|
</th>
|
|
<th><?php echo $this->_tpl_vars['kga']['lang']['knds']; ?>
|
|
</th>
|
|
<th><?php echo $this->_tpl_vars['kga']['lang']['contactPerson']; ?>
|
|
</th>
|
|
<th><?php echo $this->_tpl_vars['kga']['lang']['groups']; ?>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
|
|
<tbody>
|
|
|
|
<?php unset($this->_sections['row']);
|
|
$this->_sections['row']['name'] = 'row';
|
|
$this->_sections['row']['loop'] = is_array($_loop=$this->_tpl_vars['arr_knd']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
|
|
$this->_sections['row']['show'] = true;
|
|
$this->_sections['row']['max'] = $this->_sections['row']['loop'];
|
|
$this->_sections['row']['step'] = 1;
|
|
$this->_sections['row']['start'] = $this->_sections['row']['step'] > 0 ? 0 : $this->_sections['row']['loop']-1;
|
|
if ($this->_sections['row']['show']) {
|
|
$this->_sections['row']['total'] = $this->_sections['row']['loop'];
|
|
if ($this->_sections['row']['total'] == 0)
|
|
$this->_sections['row']['show'] = false;
|
|
} else
|
|
$this->_sections['row']['total'] = 0;
|
|
if ($this->_sections['row']['show']):
|
|
|
|
for ($this->_sections['row']['index'] = $this->_sections['row']['start'], $this->_sections['row']['iteration'] = 1;
|
|
$this->_sections['row']['iteration'] <= $this->_sections['row']['total'];
|
|
$this->_sections['row']['index'] += $this->_sections['row']['step'], $this->_sections['row']['iteration']++):
|
|
$this->_sections['row']['rownum'] = $this->_sections['row']['iteration'];
|
|
$this->_sections['row']['index_prev'] = $this->_sections['row']['index'] - $this->_sections['row']['step'];
|
|
$this->_sections['row']['index_next'] = $this->_sections['row']['index'] + $this->_sections['row']['step'];
|
|
$this->_sections['row']['first'] = ($this->_sections['row']['iteration'] == 1);
|
|
$this->_sections['row']['last'] = ($this->_sections['row']['iteration'] == $this->_sections['row']['total']);
|
|
?>
|
|
<?php if ($this->_tpl_vars['arr_knd'][$this->_sections['row']['index']]['knd_visible'] || $this->_tpl_vars['arr_knd'][$this->_sections['row']['index']]['zeit'] != "0:00"): ?>
|
|
|
|
<tr class="<?php echo smarty_function_cycle(array('values' => "odd,even"), $this);?>
|
|
">
|
|
|
|
<td class="option">
|
|
<a href ="#" onClick="editSubject('knd',<?php echo $this->_tpl_vars['arr_knd'][$this->_sections['row']['index']]['knd_ID']; ?>
|
|
); $(this).blur(); return false;">
|
|
<img src='../skins/<?php echo ((is_array($_tmp=$this->_tpl_vars['kga']['conf']['skin'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
|
/grfx/edit2.gif' width='13' height='13' alt='<?php echo $this->_tpl_vars['kga']['lang']['edit']; ?>
|
|
' title='<?php echo $this->_tpl_vars['kga']['lang']['edit']; ?>
|
|
' border='0' />
|
|
</a>
|
|
|
|
|
|
|
|
<a href="#" id="delete_knd<?php echo $this->_tpl_vars['arr_knd'][$this->_sections['row']['index']]['knd_ID']; ?>
|
|
" onClick="ap_ext_deleteCustomer(<?php echo $this->_tpl_vars['arr_knd'][$this->_sections['row']['index']]['knd_ID']; ?>
|
|
)">
|
|
<img src="../skins/<?php echo ((is_array($_tmp=$this->_tpl_vars['kga']['conf']['skin'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
|
/grfx/button_trashcan.png" title="<?php echo $this->_tpl_vars['kga']['lang']['delknd']; ?>
|
|
" width="13" height="13" alt="<?php echo $this->_tpl_vars['kga']['lang']['delknd']; ?>
|
|
" border="0">
|
|
</a>
|
|
</td>
|
|
|
|
<td class="clients">
|
|
<?php if ($this->_tpl_vars['arr_knd'][$this->_sections['row']['index']]['knd_visible'] != 1): ?><span style="color:#bbb"><?php endif; ?>
|
|
<?php echo ((is_array($_tmp=$this->_tpl_vars['arr_knd'][$this->_sections['row']['index']]['knd_name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
|
|
|
<?php if ($this->_tpl_vars['arr_knd'][$this->_sections['row']['index']]['knd_visible'] != 1): ?></span><?php endif; ?>
|
|
</td>
|
|
|
|
<td>
|
|
<?php echo ((is_array($_tmp=$this->_tpl_vars['arr_knd'][$this->_sections['row']['index']]['knd_contact'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
<?php echo ((is_array($_tmp=$this->_tpl_vars['arr_knd'][$this->_sections['row']['index']]['groups'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
<?php endif; ?>
|
|
<?php endfor; endif; ?>
|
|
|
|
<?php if ($this->_tpl_vars['arr_knd'] == '0'): ?>
|
|
<tr>
|
|
<td colspan='3'>
|
|
<strong style="color:red"><?php echo $this->_tpl_vars['kga']['lang']['noItems']; ?>
|
|
</strong>
|
|
</td>
|
|
</tr>
|
|
<?php endif; ?>
|
|
|
|
|
|
</tbody>
|
|
</table>
|