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
100 lines
5.1 KiB
PHP
100 lines
5.1 KiB
PHP
<?php /* Smarty version 2.6.20, created on 2015-01-20 09:05:44
|
|
compiled from index.tpl */ ?>
|
|
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
|
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'index.tpl', 24, false),)), $this); ?>
|
|
<?php echo '
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
bgt_ext_onload();
|
|
|
|
plotdata = new Array();
|
|
'; ?>
|
|
|
|
<?php $_from = $this->_tpl_vars['arr_plotdata']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
|
foreach ($_from as $this->_tpl_vars['id'] => $this->_tpl_vars['value']):
|
|
?>
|
|
plotdata[<?php echo $this->_tpl_vars['id']; ?>
|
|
] = <?php echo $this->_tpl_vars['value']; ?>
|
|
;
|
|
<?php endforeach; endif; unset($_from); ?><?php echo '
|
|
|
|
chartColors = '; ?>
|
|
<?php echo $this->_tpl_vars['chartColors']; ?>
|
|
<?php echo ';
|
|
|
|
bgt_ext_plot(plotdata);
|
|
});
|
|
</script>
|
|
'; ?>
|
|
|
|
|
|
|
|
<div id="bgt">
|
|
|
|
<div class="keys">
|
|
<?php unset($this->_sections['row']);
|
|
$this->_sections['row']['name'] = 'row';
|
|
$this->_sections['row']['loop'] = is_array($_loop=$this->_tpl_vars['arr_keys']) ? 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']);
|
|
?>
|
|
<div class="key"><div class="key_color" style="background-color:<?php echo $this->_tpl_vars['arr_keys'][$this->_sections['row']['index']]['color']; ?>
|
|
"></div><?php echo ((is_array($_tmp=$this->_tpl_vars['arr_keys'][$this->_sections['row']['index']]['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
|
</div>
|
|
<?php endfor; endif; ?>
|
|
<div class="key_end"/>
|
|
</div>
|
|
|
|
<?php unset($this->_sections['row']);
|
|
$this->_sections['row']['name'] = 'row';
|
|
$this->_sections['row']['loop'] = is_array($_loop=$this->_tpl_vars['arr_pct']) ? 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']);
|
|
?>
|
|
<div class="bgt_project">
|
|
<div class="project_head">
|
|
<?php echo ((is_array($_tmp=$this->_tpl_vars['arr_pct'][$this->_sections['row']['index']]['pct_name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
|
|
|
</div>
|
|
<div id="bgt_chartdiv_<?php echo $this->_tpl_vars['arr_pct'][$this->_sections['row']['index']]['pct_ID']; ?>
|
|
" style="height:140px;width:150px; "></div>
|
|
</div>
|
|
<?php endfor; endif; ?>
|
|
<div class="bgt_project_end"/>
|
|
</div>
|