Initial commit: Kimai TMS
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
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -0,0 +1,158 @@
|
||||
<?php /* Smarty version 2.6.20, created on 2017-09-13 18:52:36
|
||||
compiled from edituser.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'edituser.tpl', 44, false),array('modifier', 'number_format', 'edituser.tpl', 92, false),array('function', 'html_options', 'edituser.tpl', 109, false),)), $this); ?>
|
||||
<?php echo '
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
|
||||
var options = {
|
||||
beforeSubmit: function() {
|
||||
|
||||
if ($(\'#password\').val() != \'\' && !validatePassword($(\'#password\').val(),$(\'#retypePassword\').val()))
|
||||
return false;
|
||||
|
||||
floaterClose();
|
||||
},
|
||||
success: function() {
|
||||
hook_chgUsr();
|
||||
ap_ext_refreshSubtab(\'grp\');
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
$(\'#ap_ext_form_editusr\').ajaxForm(options);
|
||||
|
||||
});
|
||||
</script>
|
||||
'; ?>
|
||||
|
||||
|
||||
<div id="floater_innerwrap">
|
||||
|
||||
<div id="floater_handle">
|
||||
<span id="floater_title"><?php echo $this->_tpl_vars['kga']['lang']['editusr']; ?>
|
||||
</span>
|
||||
<div class="right">
|
||||
<a href="#" class="close" onClick="floaterClose();"><?php echo $this->_tpl_vars['kga']['lang']['close']; ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="floater_content">
|
||||
|
||||
<form id="ap_ext_form_editusr" action="../extensions/ki_adminpanel/processor.php" method="post">
|
||||
<fieldset>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<label for="usr_name"><?php echo $this->_tpl_vars['kga']['lang']['username']; ?>
|
||||
:</label>
|
||||
<input class="formfield" type="text" name="usr_name" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['usr_details']['usr_name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
||||
" maxlength=20 size=20 />
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label for="usr_sts"><?php echo $this->_tpl_vars['kga']['lang']['status']; ?>
|
||||
:</label>
|
||||
|
||||
<?php if ($this->_tpl_vars['usr_details']['usr_sts'] == 1): ?>
|
||||
<select name="usr_sts">
|
||||
<option value="0" <?php if ($this->_tpl_vars['usr_details']['usr_sts'] == 0): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['kga']['lang']['adminusr']; ?>
|
||||
(!)</option>
|
||||
<option value="1" <?php if ($this->_tpl_vars['usr_details']['usr_sts'] == 1): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['kga']['lang']['groupleader']; ?>
|
||||
</option>
|
||||
<option value="2" <?php if ($this->_tpl_vars['usr_details']['usr_sts'] == 2): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['kga']['lang']['regusr']; ?>
|
||||
</option>
|
||||
</select>
|
||||
<?php else: ?>
|
||||
|
||||
|
||||
<?php if ($this->_tpl_vars['curr_user'] == $this->_tpl_vars['usr_details']['usr_name'] && $this->_tpl_vars['usr_details']['usr_sts'] == 0): ?>
|
||||
<?php echo $this->_tpl_vars['kga']['lang']['admWarn']; ?>
|
||||
|
||||
<?php else: ?>
|
||||
<select name="usr_sts">
|
||||
<option value="0" <?php if ($this->_tpl_vars['usr_details']['usr_sts'] == 0): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['kga']['lang']['adminusr']; ?>
|
||||
(!)</option>
|
||||
<option value="2" <?php if ($this->_tpl_vars['usr_details']['usr_sts'] == 2): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['kga']['lang']['regusr']; ?>
|
||||
</option>
|
||||
</select>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
|
||||
|
||||
<li>
|
||||
<label for="usr_pw"><?php echo $this->_tpl_vars['kga']['lang']['newPassword']; ?>
|
||||
:</label>
|
||||
<input class="formfield" type="password" name="usr_pw" size="9" id="password" /> <?php echo $this->_tpl_vars['kga']['lang']['minLength']; ?>
|
||||
|
||||
<?php if ($this->_tpl_vars['usr_details']['usr_pw'] == 'no'): ?>
|
||||
|
||||
<br/>
|
||||
<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/caution_mini.png" alt="Caution" valign=middle />
|
||||
<strong style="color:red"><?php echo $this->_tpl_vars['kga']['lang']['nopassword']; ?>
|
||||
</strong>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
|
||||
|
||||
<li>
|
||||
<label for="usr_pw"><?php echo $this->_tpl_vars['kga']['lang']['retypePassword']; ?>
|
||||
:</label>
|
||||
<input class="formfield" type="password" name="retypePassword" id="retypePassword" size="9" />
|
||||
</li>
|
||||
|
||||
|
||||
<li>
|
||||
<label for="usr_rate"><?php echo $this->_tpl_vars['kga']['lang']['rate']; ?>
|
||||
:</label>
|
||||
<input class="formfield" type="text" name="usr_rate" value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['usr_details']['usr_rate'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2, $this->_tpl_vars['kga']['conf']['decimalSeparator'], "") : number_format($_tmp, 2, $this->_tpl_vars['kga']['conf']['decimalSeparator'], "")))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
||||
" />
|
||||
</li>
|
||||
|
||||
|
||||
<li>
|
||||
<label for="usr_mail"><?php echo $this->_tpl_vars['kga']['lang']['mail']; ?>
|
||||
:</label>
|
||||
<input class="formfield" type="text" name="usr_mail" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['usr_details']['usr_mail'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
||||
" />
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label for="usr_alias"><?php echo $this->_tpl_vars['kga']['lang']['alias']; ?>
|
||||
:</label>
|
||||
<input class="formfield" type="text" name="usr_alias" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['usr_details']['usr_alias'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
||||
" />
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label for="usr_grp"><?php echo $this->_tpl_vars['kga']['lang']['group']; ?>
|
||||
:</label>
|
||||
<select class="formfield" name="usr_grp">
|
||||
<?php echo smarty_function_html_options(array('values' => $this->_tpl_vars['arr_grp_ID'],'output' => $this->_tpl_vars['arr_grp_name'],'selected' => $this->_tpl_vars['usr_details']['usr_grp']), $this);?>
|
||||
|
||||
</select>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<input name="id" type="hidden" value="<?php echo $this->_tpl_vars['usr_details']['usr_ID']; ?>
|
||||
" />
|
||||
<input name="axAction" type="hidden" value="sendEditUsr" />
|
||||
|
||||
<div id="formbuttons">
|
||||
<input class='btn_norm' type='button' value='<?php echo $this->_tpl_vars['kga']['lang']['cancel']; ?>
|
||||
' onClick='floaterClose(); return false;' />
|
||||
<input class='btn_ok' type='submit' value='<?php echo $this->_tpl_vars['kga']['lang']['submit']; ?>
|
||||
' />
|
||||
</div>
|
||||
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
113
extensions/ki_adminpanel/compile/%%32^32B^32BF34C2%%knd.tpl.php
Normal file
113
extensions/ki_adminpanel/compile/%%32^32B^32BF34C2%%knd.tpl.php
Normal file
@@ -0,0 +1,113 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php /* Smarty version 2.6.20, created on 2015-01-18 19:25:45
|
||||
compiled from database.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'database.tpl', 1, false),)), $this); ?>
|
||||
<?php echo $this->_tpl_vars['kga']['lang']['DBname']; ?>
|
||||
: <?php echo ((is_array($_tmp=$this->_tpl_vars['kga']['server_database'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<a href="../db_restore.php">Database Backup Utility</a>
|
||||
124
extensions/ki_adminpanel/compile/%%72^72D^72DAF6E8%%main.tpl.php
Normal file
124
extensions/ki_adminpanel/compile/%%72^72D^72DAF6E8%%main.tpl.php
Normal file
@@ -0,0 +1,124 @@
|
||||
<?php /* Smarty version 2.6.20, created on 2017-09-08 09:07:00
|
||||
compiled from main.tpl */ ?>
|
||||
<?php echo '
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
ap_ext_onload();
|
||||
});
|
||||
</script>
|
||||
'; ?>
|
||||
|
||||
|
||||
<div id="ap_ext_panel">
|
||||
|
||||
|
||||
<div id="ap_ext_sub5">
|
||||
<div class="ap_ext_panel_header">
|
||||
<a onClick="ap_ext_subtab_expand(5)">
|
||||
<span class="ap_ext_accordeon_triangle"></span>
|
||||
<?php echo $this->_tpl_vars['kga']['lang']['knds']; ?>
|
||||
|
||||
</a>
|
||||
</div>
|
||||
<div id="ap_ext_s5" class="ap_ext_subtab ap_ext_subject">
|
||||
<?php echo $this->_tpl_vars['knd_display']; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="ap_ext_sub6">
|
||||
<div class="ap_ext_panel_header">
|
||||
<a onClick="ap_ext_subtab_expand(6)">
|
||||
<span class="ap_ext_accordeon_triangle"></span>
|
||||
<?php echo $this->_tpl_vars['kga']['lang']['pcts']; ?>
|
||||
|
||||
</a>
|
||||
</div>
|
||||
<div id="ap_ext_s6" class="ap_ext_subtab ap_ext_subject">
|
||||
<?php echo $this->_tpl_vars['pct_display']; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="ap_ext_sub7">
|
||||
<div class="ap_ext_panel_header">
|
||||
<a onClick="ap_ext_subtab_expand(7)">
|
||||
<span class="ap_ext_accordeon_triangle"></span>
|
||||
<?php echo $this->_tpl_vars['kga']['lang']['evts']; ?>
|
||||
|
||||
</a>
|
||||
</div>
|
||||
<div id="ap_ext_s7" class="ap_ext_subtab ap_ext_subject">
|
||||
<?php echo $this->_tpl_vars['evt_display']; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ($this->_tpl_vars['kga']['usr']['usr_sts'] == 0): ?>
|
||||
<div id="ap_ext_sub1">
|
||||
<div class="ap_ext_panel_header">
|
||||
<a onClick="ap_ext_subtab_expand(1)">
|
||||
<span class="ap_ext_accordeon_triangle"></span>
|
||||
<?php echo $this->_tpl_vars['kga']['lang']['users']; ?>
|
||||
|
||||
</a>
|
||||
</div>
|
||||
<div id="ap_ext_s1" class="ap_ext_subtab ap_ext_4cols">
|
||||
<?php echo $this->_tpl_vars['admin']['users']; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div id="ap_ext_sub2">
|
||||
<div class="ap_ext_panel_header">
|
||||
<a onClick="ap_ext_subtab_expand(2)">
|
||||
<span class="ap_ext_accordeon_triangle"></span>
|
||||
<?php echo $this->_tpl_vars['kga']['lang']['groups']; ?>
|
||||
|
||||
</a>
|
||||
</div>
|
||||
<div id="ap_ext_s2" class="ap_ext_subtab ap_ext_4cols">
|
||||
<?php echo $this->_tpl_vars['admin']['groups']; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ($this->_tpl_vars['kga']['usr']['usr_sts'] == 0): ?>
|
||||
<div id="ap_ext_sub3">
|
||||
<div class="ap_ext_panel_header">
|
||||
<a onClick="ap_ext_subtab_expand(3)">
|
||||
<span class="ap_ext_accordeon_triangle"></span>
|
||||
<?php echo $this->_tpl_vars['kga']['lang']['advanced']; ?>
|
||||
|
||||
</a>
|
||||
</div>
|
||||
<div id="ap_ext_s3" class="ap_ext_subtab ap_ext_4cols">
|
||||
<?php echo $this->_tpl_vars['admin']['advanced']; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->_tpl_vars['kga']['usr']['usr_sts'] == 0): ?>
|
||||
<div id="ap_ext_sub4">
|
||||
<div class="ap_ext_panel_header">
|
||||
<a onClick="ap_ext_subtab_expand(4)">
|
||||
<span class="ap_ext_accordeon_triangle"></span>
|
||||
<?php echo $this->_tpl_vars['kga']['lang']['database']; ?>
|
||||
|
||||
</a>
|
||||
</div>
|
||||
<div id="ap_ext_s4" class="ap_ext_subtab ap_ext_4cols">
|
||||
<?php echo $this->_tpl_vars['admin']['database']; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
<?php /* Smarty version 2.6.20, created on 2015-01-18 19:25:45
|
||||
compiled from groups.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'groups.tpl', 19, false),array('modifier', 'escape', 'groups.tpl', 23, false),)), $this); ?>
|
||||
<form>
|
||||
<input type=text id="newgroup" class="formfield"></input>
|
||||
<input class='btn_ok' type=submit value="<?php echo $this->_tpl_vars['kga']['lang']['addgroup']; ?>
|
||||
" onclick="ap_ext_newGroup(); return false;">
|
||||
</form>
|
||||
<br />
|
||||
<table>
|
||||
<thead>
|
||||
<tr class='headerrow'>
|
||||
<th><?php echo $this->_tpl_vars['kga']['lang']['group']; ?>
|
||||
</th>
|
||||
<th><?php echo $this->_tpl_vars['kga']['lang']['options']; ?>
|
||||
</th>
|
||||
<th><?php echo $this->_tpl_vars['kga']['lang']['members']; ?>
|
||||
</th>
|
||||
<th><?php echo $this->_tpl_vars['kga']['lang']['groupleader']; ?>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
|
||||
<?php unset($this->_sections['grouparray']);
|
||||
$this->_sections['grouparray']['name'] = 'grouparray';
|
||||
$this->_sections['grouparray']['loop'] = is_array($_loop=$this->_tpl_vars['arr_grp']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
|
||||
$this->_sections['grouparray']['show'] = true;
|
||||
$this->_sections['grouparray']['max'] = $this->_sections['grouparray']['loop'];
|
||||
$this->_sections['grouparray']['step'] = 1;
|
||||
$this->_sections['grouparray']['start'] = $this->_sections['grouparray']['step'] > 0 ? 0 : $this->_sections['grouparray']['loop']-1;
|
||||
if ($this->_sections['grouparray']['show']) {
|
||||
$this->_sections['grouparray']['total'] = $this->_sections['grouparray']['loop'];
|
||||
if ($this->_sections['grouparray']['total'] == 0)
|
||||
$this->_sections['grouparray']['show'] = false;
|
||||
} else
|
||||
$this->_sections['grouparray']['total'] = 0;
|
||||
if ($this->_sections['grouparray']['show']):
|
||||
|
||||
for ($this->_sections['grouparray']['index'] = $this->_sections['grouparray']['start'], $this->_sections['grouparray']['iteration'] = 1;
|
||||
$this->_sections['grouparray']['iteration'] <= $this->_sections['grouparray']['total'];
|
||||
$this->_sections['grouparray']['index'] += $this->_sections['grouparray']['step'], $this->_sections['grouparray']['iteration']++):
|
||||
$this->_sections['grouparray']['rownum'] = $this->_sections['grouparray']['iteration'];
|
||||
$this->_sections['grouparray']['index_prev'] = $this->_sections['grouparray']['index'] - $this->_sections['grouparray']['step'];
|
||||
$this->_sections['grouparray']['index_next'] = $this->_sections['grouparray']['index'] + $this->_sections['grouparray']['step'];
|
||||
$this->_sections['grouparray']['first'] = ($this->_sections['grouparray']['iteration'] == 1);
|
||||
$this->_sections['grouparray']['last'] = ($this->_sections['grouparray']['iteration'] == $this->_sections['grouparray']['total']);
|
||||
?>
|
||||
<tr class='<?php echo smarty_function_cycle(array('values' => "even,odd"), $this);?>
|
||||
'>
|
||||
|
||||
<td>
|
||||
<?php if ($this->_tpl_vars['arr_grp'][$this->_sections['grouparray']['index']]['grp_ID'] == 1): ?>
|
||||
<span style="color:red"><?php echo ((is_array($_tmp=$this->_tpl_vars['arr_grp'][$this->_sections['grouparray']['index']]['grp_name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
||||
</span>
|
||||
<?php else: ?>
|
||||
<?php echo ((is_array($_tmp=$this->_tpl_vars['arr_grp'][$this->_sections['grouparray']['index']]['grp_name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
<td><?php echo '<a href="#" onClick="ap_ext_editGroup(\''; ?><?php echo $this->_tpl_vars['arr_grp'][$this->_sections['grouparray']['index']]['grp_ID']; ?><?php echo '\'); $(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')); ?><?php echo '/grfx/edit2.gif" title="'; ?><?php echo $this->_tpl_vars['kga']['lang']['editgrp']; ?><?php echo '" width="13" height="13" alt="'; ?><?php echo $this->_tpl_vars['kga']['lang']['editgrp']; ?><?php echo '" border="0"></a> '; ?><?php echo ''; ?><?php if ($this->_tpl_vars['arr_grp'][$this->_sections['grouparray']['index']]['count_users'] == 0): ?><?php echo '<a href="#" onClick="ap_ext_deleteGroup('; ?><?php echo $this->_tpl_vars['arr_grp'][$this->_sections['grouparray']['index']]['grp_ID']; ?><?php echo ')"><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')); ?><?php echo '/grfx/button_trashcan.png" title="'; ?><?php echo $this->_tpl_vars['kga']['lang']['delgrp']; ?><?php echo '" width="13" height="13" alt="'; ?><?php echo $this->_tpl_vars['kga']['lang']['delgrp']; ?><?php echo '" border="0"></a>'; ?><?php else: ?><?php echo '<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')); ?><?php echo '/grfx/button_trashcan_.png" title="'; ?><?php echo $this->_tpl_vars['kga']['lang']['delgrp']; ?><?php echo '" width="13" height="13" alt="'; ?><?php echo $this->_tpl_vars['kga']['lang']['delgrp']; ?><?php echo '" border="0">'; ?><?php endif; ?><?php echo ''; ?>
|
||||
</td>
|
||||
|
||||
<td><?php echo $this->_tpl_vars['arr_grp'][$this->_sections['grouparray']['index']]['count_users']; ?>
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
|
||||
<td>
|
||||
<?php $_from = $this->_tpl_vars['arr_grp'][$this->_sections['grouparray']['index']]['leader_name']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['leader']):
|
||||
?>
|
||||
<?php echo ((is_array($_tmp=$this->_tpl_vars['leader'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
||||
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
<?php endfor; endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
112
extensions/ki_adminpanel/compile/%%8B^8B1^8B1878AA%%pct.tpl.php
Normal file
112
extensions/ki_adminpanel/compile/%%8B^8B1^8B1878AA%%pct.tpl.php
Normal file
@@ -0,0 +1,112 @@
|
||||
<?php /* Smarty version 2.6.20, created on 2015-01-18 19:25:45
|
||||
compiled from pct.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'pct.tpl', 1, false),array('modifier', 'truncate', 'pct.tpl', 37, false),array('function', 'cycle', 'pct.tpl', 4, false),)), $this); ?>
|
||||
<a href="#" onClick="floaterShow('floaters.php','add_edit_pct',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_pct']; ?>
|
||||
"></a> <?php echo $this->_tpl_vars['kga']['lang']['new_pct']; ?>
|
||||
|
||||
<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']['pcts']; ?>
|
||||
</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_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']);
|
||||
?>
|
||||
<?php if ($this->_tpl_vars['arr_pct'][$this->_sections['row']['index']]['pct_visible'] || $this->_tpl_vars['arr_pct'][$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('pct',<?php echo $this->_tpl_vars['arr_pct'][$this->_sections['row']['index']]['pct_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_pct<?php echo $this->_tpl_vars['arr_pct'][$this->_sections['row']['index']]['pct_ID']; ?>
|
||||
" onClick="ap_ext_deleteProject(<?php echo $this->_tpl_vars['arr_pct'][$this->_sections['row']['index']]['pct_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']['delpct']; ?>
|
||||
" width="13" height="13" alt="<?php echo $this->_tpl_vars['kga']['lang']['delpct']; ?>
|
||||
" border="0">
|
||||
</a>
|
||||
</td>
|
||||
|
||||
<td class="projects">
|
||||
<?php if ($this->_tpl_vars['arr_pct'][$this->_sections['row']['index']]['pct_visible'] != 1): ?><span style="color:#bbb"><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['kga']['conf']['flip_pct_display']): ?>
|
||||
<span class="lighter"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['arr_pct'][$this->_sections['row']['index']]['knd_name'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 30, "...") : smarty_modifier_truncate($_tmp, 30, "...")))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
||||
:</span> <?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')); ?>
|
||||
|
||||
<?php else: ?>
|
||||
<?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')); ?>
|
||||
<span class="lighter">(<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['arr_pct'][$this->_sections['row']['index']]['knd_name'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 30, "...") : smarty_modifier_truncate($_tmp, 30, "...")))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
||||
)</span>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['arr_pct'][$this->_sections['row']['index']]['pct_visible'] != 1): ?></span><?php endif; ?>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<?php echo ((is_array($_tmp=$this->_tpl_vars['arr_pct'][$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_pct'] == '0'): ?>
|
||||
<tr>
|
||||
<td colspan='3'>
|
||||
<strong style="color:red"><?php echo $this->_tpl_vars['kga']['lang']['noItems']; ?>
|
||||
</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,62 @@
|
||||
<?php /* Smarty version 2.6.20, created on 2015-01-19 23:33:08
|
||||
compiled from editgroup.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'editgroup.tpl', 28, false),array('function', 'html_options', 'editgroup.tpl', 34, false),)), $this); ?>
|
||||
<?php echo '
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$(\'#ap_ext_form_editgrp\').ajaxForm(function() {
|
||||
floaterClose();
|
||||
ap_ext_refreshSubtab(\'grp\');
|
||||
ap_ext_refreshSubtab(\'usr\');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
'; ?>
|
||||
|
||||
|
||||
<div id="floater_innerwrap">
|
||||
|
||||
<div id="floater_handle">
|
||||
<span id="floater_title"><?php echo $this->_tpl_vars['kga']['lang']['editgrp']; ?>
|
||||
</span>
|
||||
<div class="right">
|
||||
<a href="#" class="close" onClick="floaterClose();"><?php echo $this->_tpl_vars['kga']['lang']['close']; ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="floater_content">
|
||||
<form id="ap_ext_form_editgrp" action="../extensions/ki_adminpanel/processor.php" method="post">
|
||||
<fieldset>
|
||||
<ul>
|
||||
<li>
|
||||
<label for="grp_name"><?php echo $this->_tpl_vars['kga']['lang']['groupname']; ?>
|
||||
:</label>
|
||||
<input class="formfield" type="text" name="grp_name" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['grp_details']['grp_name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
||||
" size=35 />
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label for="grp_leader" ><?php echo $this->_tpl_vars['kga']['lang']['groupleader']; ?>
|
||||
:</label>
|
||||
<select class="formfield" name="grp_leader[]" multiple size='5' style="width:255px">
|
||||
<?php echo smarty_function_html_options(array('values' => $this->_tpl_vars['arr_usr_ID'],'output' => $this->_tpl_vars['arr_usr_name'],'selected' => $this->_tpl_vars['grp_selection']), $this);?>
|
||||
|
||||
</select>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
<input name="id" type="hidden" value="<?php echo $this->_tpl_vars['grp_details']['grp_ID']; ?>
|
||||
" />
|
||||
<input name="axAction" type="hidden" value="sendEditGrp" />
|
||||
<div id="formbuttons">
|
||||
<input class='btn_norm' type='button' value='<?php echo $this->_tpl_vars['kga']['lang']['cancel']; ?>
|
||||
' onClick='floaterClose(); return false;' />
|
||||
<input class='btn_ok' type='submit' value='<?php echo $this->_tpl_vars['kga']['lang']['submit']; ?>
|
||||
' />
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,181 @@
|
||||
<?php /* Smarty version 2.6.20, created on 2015-01-18 19:25:45
|
||||
compiled from advanced.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'advanced.tpl', 28, false),array('function', 'html_options', 'advanced.tpl', 43, false),)), $this); ?>
|
||||
<?php echo '
|
||||
<script type="text/javascript">
|
||||
function cb(data) {
|
||||
if (data=="ok") {
|
||||
window.location.reload();
|
||||
return;
|
||||
}
|
||||
$("#ap_ext_form_editadv_submit").blur();
|
||||
$("#ap_ext_output").width($(".ap_ext_panel_header").width()-22);
|
||||
$("#ap_ext_output").fadeIn(fading_enabled?500:0,function(){
|
||||
$("#ap_ext_output").fadeOut(fading_enabled?4000:0);
|
||||
});
|
||||
}
|
||||
$(document).ready(function() {
|
||||
$(\'#ap_ext_form_editadv\').ajaxForm({target:\'#ap_ext_output\',success:cb});
|
||||
});
|
||||
</script>
|
||||
'; ?>
|
||||
|
||||
|
||||
<div class="content">
|
||||
|
||||
<div id="ap_ext_output"></div>
|
||||
|
||||
<form id="ap_ext_form_editadv" action="../extensions/ki_adminpanel/processor.php" method="post">
|
||||
|
||||
<fieldset class="ap_ext_advanced">
|
||||
<div>
|
||||
<input type="text" name="adminmail" size="20" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['kga']['conf']['adminmail'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
||||
" class="formfield"> <?php echo $this->_tpl_vars['kga']['lang']['adminmail']; ?>
|
||||
|
||||
</div>
|
||||
<div>
|
||||
<input type="text" name="logintries" size="2" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['kga']['conf']['loginTries'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
||||
" class="formfield"> <?php echo $this->_tpl_vars['kga']['lang']['logintries']; ?>
|
||||
|
||||
</div>
|
||||
<div>
|
||||
<input type="text" name="loginbantime" size="4" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['kga']['conf']['loginBanTime'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
||||
" class="formfield"> <?php echo $this->_tpl_vars['kga']['lang']['bantime']; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="ap_ext_checkupdate">
|
||||
<a href="javascript:ap_ext_checkupdate();"><?php echo $this->_tpl_vars['kga']['lang']['checkupdate']; ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<?php echo $this->_tpl_vars['kga']['lang']['lang']; ?>
|
||||
: <select name="language" class="formfield">
|
||||
<?php echo smarty_function_html_options(array('values' => $this->_tpl_vars['languages'],'output' => $this->_tpl_vars['languages'],'selected' => $this->_tpl_vars['kga']['conf']['language']), $this);?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<input type="checkbox" name="show_sensible_data" <?php if ($this->_tpl_vars['kga']['show_sensible_data']): ?>checked="checked"<?php endif; ?> value="1" class="formfield"> <?php echo $this->_tpl_vars['kga']['lang']['show_sensible_data']; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<input type="checkbox" name="show_update_warn" <?php if ($this->_tpl_vars['kga']['show_update_warn']): ?>checked="checked"<?php endif; ?> value="1" class="formfield"> <?php echo $this->_tpl_vars['kga']['lang']['show_update_warn']; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<input type="checkbox" name="check_at_startup" <?php if ($this->_tpl_vars['kga']['check_at_startup']): ?>checked="checked"<?php endif; ?> value="1" class="formfield"> <?php echo $this->_tpl_vars['kga']['lang']['check_at_startup']; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<input type="checkbox" name="show_daySeperatorLines" <?php if ($this->_tpl_vars['kga']['show_daySeperatorLines']): ?>checked="checked"<?php endif; ?> value="1" class="formfield"> <?php echo $this->_tpl_vars['kga']['lang']['show_daySeperatorLines']; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<input type="checkbox" name="show_gabBreaks" <?php if ($this->_tpl_vars['kga']['show_gabBreaks']): ?>checked="checked"<?php endif; ?> value="1" class="formfield"> <?php echo $this->_tpl_vars['kga']['lang']['show_gabBreaks']; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<input type="checkbox" name="show_RecordAgain" <?php if ($this->_tpl_vars['kga']['show_RecordAgain']): ?>checked="checked"<?php endif; ?> value="1" class="formfield"> <?php echo $this->_tpl_vars['kga']['lang']['show_RecordAgain']; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<input type="checkbox" name="show_TrackingNr" <?php if ($this->_tpl_vars['kga']['show_TrackingNr']): ?>checked="checked"<?php endif; ?> value="1" class="formfield"> <?php echo $this->_tpl_vars['kga']['lang']['show_TrackingNr']; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<input type="text" name="currency_name" size="8" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['kga']['currency_name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
||||
" class="formfield"> <?php echo $this->_tpl_vars['kga']['lang']['currency_name']; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<input type="text" name="currency_sign" size="2" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['kga']['currency_sign'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
||||
" class="formfield"> <?php echo $this->_tpl_vars['kga']['lang']['currency_sign']; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<input type="checkbox" name="currency_first" <?php if ($this->_tpl_vars['kga']['conf']['currency_first']): ?>checked="checked"<?php endif; ?> value="1" class="formfield"> <?php echo $this->_tpl_vars['kga']['lang']['currency_first']; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<input type="text" name="date_format_2" size="8" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['kga']['date_format']['2'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
||||
" class="formfield"> <?php echo $this->_tpl_vars['kga']['lang']['display_date_format']; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<input type="text" name="date_format_0" size="8" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['kga']['date_format']['0'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
||||
" class="formfield"> <?php echo $this->_tpl_vars['kga']['lang']['display_currentDate_format']; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<input type="text" name="date_format_1" size="8" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['kga']['date_format']['1'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
||||
" class="formfield"> <?php echo $this->_tpl_vars['kga']['lang']['table_date_format']; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<input type="checkbox" name="durationWithSeconds" <?php if ($this->_tpl_vars['kga']['conf']['durationWithSeconds']): ?>checked="checked"<?php endif; ?> value="1" class="formfield"> <?php echo $this->_tpl_vars['kga']['lang']['durationWithSeconds']; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<?php echo $this->_tpl_vars['kga']['lang']['round_time']; ?>
|
||||
<select name="roundPrecision" class="formfield">
|
||||
<option value="0" <?php if ($this->_tpl_vars['kga']['conf']['roundPrecision'] == 0): ?>selected="selected"<?php endif; ?>>-</option>
|
||||
<option value="1" <?php if ($this->_tpl_vars['kga']['conf']['roundPrecision'] == 1): ?>selected="selected"<?php endif; ?>>1</option>
|
||||
<option value="5" <?php if ($this->_tpl_vars['kga']['conf']['roundPrecision'] == 5): ?>selected="selected"<?php endif; ?>>5</option>
|
||||
<option value="10" <?php if ($this->_tpl_vars['kga']['conf']['roundPrecision'] == 10): ?>selected="selected"<?php endif; ?>>10</option>
|
||||
<option value="15" <?php if ($this->_tpl_vars['kga']['conf']['roundPrecision'] == 15): ?>selected="selected"<?php endif; ?>>15</option>
|
||||
<option value="15" <?php if ($this->_tpl_vars['kga']['conf']['roundPrecision'] == 20): ?>selected="selected"<?php endif; ?>>20</option>
|
||||
<option value="30" <?php if ($this->_tpl_vars['kga']['conf']['roundPrecision'] == 30): ?>selected="selected"<?php endif; ?>>30</option>
|
||||
</select> <?php echo $this->_tpl_vars['kga']['lang']['round_time_minute']; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<?php echo $this->_tpl_vars['kga']['lang']['decimal_separator']; ?>
|
||||
: <input type="text" name="decimalSeparator" size="1" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['kga']['conf']['decimalSeparator'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
||||
" class="formfield">
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<select name="defaultTimezone">
|
||||
<?php echo smarty_function_html_options(array('values' => $this->_tpl_vars['timezones'],'output' => $this->_tpl_vars['timezones'],'selected' => $this->_tpl_vars['kga']['conf']['defaultTimezone']), $this);?>
|
||||
|
||||
</select> <?php echo $this->_tpl_vars['kga']['lang']['defaultTimezone']; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<input type="checkbox" name="exactSums" <?php if ($this->_tpl_vars['kga']['conf']['exactSums']): ?>checked="checked"<?php endif; ?> value="1" class="formfield"> <?php echo $this->_tpl_vars['kga']['lang']['exactSums']; ?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<input name="axAction" type="hidden" value="sendEditAdvanced" />
|
||||
|
||||
<div id="formbuttons">
|
||||
<input id="ap_ext_form_editadv_submit" class='btn_ok' type='submit' value='<?php echo $this->_tpl_vars['kga']['lang']['save']; ?>
|
||||
' />
|
||||
</div>
|
||||
|
||||
</fieldset>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
150
extensions/ki_adminpanel/compile/%%ED^EDE^EDE558EB%%evt.tpl.php
Normal file
150
extensions/ki_adminpanel/compile/%%ED^EDE^EDE558EB%%evt.tpl.php
Normal file
@@ -0,0 +1,150 @@
|
||||
<?php /* Smarty version 2.6.20, created on 2015-01-18 19:25:45
|
||||
compiled from evt.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'evt.tpl', 2, false),array('modifier', 'truncate', 'evt.tpl', 10, false),array('function', 'cycle', 'evt.tpl', 15, false),)), $this); ?>
|
||||
|
||||
<a href="#" onClick="floaterShow('floaters.php','add_edit_evt',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_evt']; ?>
|
||||
"></a> <?php echo $this->_tpl_vars['kga']['lang']['new_evt']; ?>
|
||||
|
||||
|
||||
<?php echo $this->_tpl_vars['kga']['lang']['view_filter']; ?>
|
||||
:
|
||||
<select size="1" id="evt_pct_filter" onchange="ap_ext_refreshSubtab('evt');">
|
||||
<option value="-2" <?php if ($this->_tpl_vars['selected_evt_filter'] == -2): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['kga']['lang']['unassigned']; ?>
|
||||
</option>
|
||||
<option value="-1" <?php if ($this->_tpl_vars['selected_evt_filter'] == -1): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['kga']['lang']['all_events']; ?>
|
||||
</option>
|
||||
<?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']);
|
||||
?>
|
||||
<option value="<?php echo $this->_tpl_vars['arr_pct'][$this->_sections['row']['index']]['pct_ID']; ?>
|
||||
"
|
||||
<?php if ($this->_tpl_vars['selected_evt_filter'] == $this->_tpl_vars['arr_pct'][$this->_sections['row']['index']]['pct_ID']): ?>selected="selected"<?php endif; ?>><?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')); ?>
|
||||
(<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['arr_pct'][$this->_sections['row']['index']]['knd_name'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 30, "...") : smarty_modifier_truncate($_tmp, 30, "...")))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
||||
)</option>
|
||||
<?php endfor; endif; ?>
|
||||
</select>
|
||||
<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']['evts']; ?>
|
||||
</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_evt']) ? 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_evt'][$this->_sections['row']['index']]['evt_visible'] || $this->_tpl_vars['arr_evt'][$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('evt',<?php echo $this->_tpl_vars['arr_evt'][$this->_sections['row']['index']]['evt_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_evt<?php echo $this->_tpl_vars['arr_evt'][$this->_sections['row']['index']]['evt_ID']; ?>
|
||||
" onClick="ap_ext_deleteEvent(<?php echo $this->_tpl_vars['arr_evt'][$this->_sections['row']['index']]['evt_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']['delevt']; ?>
|
||||
" width="13" height="13" alt="<?php echo $this->_tpl_vars['kga']['lang']['delevt']; ?>
|
||||
" border="0">
|
||||
</a>
|
||||
</td>
|
||||
|
||||
<td class="events">
|
||||
<?php if ($this->_tpl_vars['arr_evt'][$this->_sections['row']['index']]['evt_visible'] != 1): ?><span style="color:#bbb"><?php endif; ?>
|
||||
<?php echo ((is_array($_tmp=$this->_tpl_vars['arr_evt'][$this->_sections['row']['index']]['evt_name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
||||
|
||||
<?php if ($this->_tpl_vars['arr_evt'][$this->_sections['row']['index']]['evt_visible'] != 1): ?></span><?php endif; ?>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<?php echo ((is_array($_tmp=$this->_tpl_vars['arr_evt'][$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_evt'] == '0'): ?>
|
||||
<tr>
|
||||
<td colspan='3'>
|
||||
<strong style="color:red"><?php echo $this->_tpl_vars['kga']['lang']['noItems']; ?>
|
||||
</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user