<?php /* Smarty version 2.6.20, created on 2015-02-03 16:48:42
         compiled from add_edit_record.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'add_edit_record.tpl', 25, false),array('function', 'html_options', 'add_edit_record.tpl', 68, false),)), $this); ?>
<?php echo '    
    <script type="text/javascript"> 
        
        $(document).ready(function() {
            $(\'#help\').hide();
            $(\'#exp_ext_form_add_edit_record\').ajaxForm(function() { 
                    floaterClose();
                    exp_ext_reload();
             
            });
            '; ?>
<?php if ($this->_tpl_vars['id']): ?><?php echo '
            '; ?>
<?php else: ?><?php echo '
            $("#add_edit_exp_pct_ID").selectOptions(""+selected_pct+"");
            '; ?>
<?php endif; ?><?php echo '
            $(\'#floater_innerwrap\').tabs({ selected: 0 });
        }); 
        
    </script>
'; ?>



<div id="floater_innerwrap">

    <div id="floater_handle">
        <span id="floater_title"><?php if ($this->_tpl_vars['id']): ?><?php echo $this->_tpl_vars['kga']['lang']['edit']; ?>
<?php else: ?><?php echo $this->_tpl_vars['kga']['lang']['add']; ?>
<?php endif; ?> <?php echo ((is_array($_tmp=$this->_tpl_vars['pres_evt'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
</span>
        <div class="right">
            <a href="#" class="close" onClick="floaterClose();"><?php echo $this->_tpl_vars['kga']['lang']['close']; ?>
</a>
            <a href="#" class="help" onClick="$(this).blur(); $('#help').slideToggle();"><?php echo $this->_tpl_vars['kga']['lang']['help']; ?>
</a>
        </div>  
    </div>

    <div id="help">
        <div class="content">        
            <?php echo $this->_tpl_vars['kga']['lang']['dateAndTimeHelp']; ?>

        </div>
    </div>
    
    <div class="menuBackground">

      <ul class="menu tabSelection">
          <li class="tab norm"><a href="#general">
                      <span class="aa">&nbsp;</span>
                      <span class="bb"><?php echo $this->_tpl_vars['kga']['lang']['general']; ?>
</span>
                      <span class="cc">&nbsp;</span>
                      </a></li>
          <li class="tab norm"><a href="#extended">
                      <span class="aa">&nbsp;</span>
                      <span class="bb"><?php echo $this->_tpl_vars['kga']['lang']['advanced']; ?>
</span>
                      <span class="cc">&nbsp;</span>
                      </a></li>
      </ul>
    </div>

    <form id="exp_ext_form_add_edit_record" action="../extensions/ki_expenses/processor.php" method="post"> 
                <input name="id" type="hidden" value="<?php echo $this->_tpl_vars['id']; ?>
" />
                <input name="axAction" type="hidden" value="add_edit_record" />


    <div id="floater_tabs" class="floater_content">

            <fieldset id="general">
                
                <ul>
                
                   <li>
                       <label for="pct_ID"><?php echo $this->_tpl_vars['kga']['lang']['pct']; ?>
:</label>
                       <select size = "5" name="pct_ID" id="add_edit_exp_pct_ID" class="formfield" style="width:400px" tabindex="1" onchange="exp_add_edit_validate();">
                           <?php echo smarty_function_html_options(array('values' => $this->_tpl_vars['sel_pct_IDs'],'output' => $this->_tpl_vars['sel_pct_names'],'selected' => $this->_tpl_vars['pres_pct']), $this);?>

                       </select>
                       <br/>
                       <input type="input" style="margin-left:115px;width:395px;margin-top:3px" tabindex="2" size="10" name="filter" id="filter" onkeyup="filter_selects('add_edit_exp_pct_ID', this.value); exp_add_edit_validate();"/>
                   </li>
                
 

                <li>
                     <label for="edit_day"><?php echo $this->_tpl_vars['kga']['lang']['day']; ?>
:</label>
                     <input id='edit_day' type='text' name='edit_day' value='<?php echo ((is_array($_tmp=$this->_tpl_vars['edit_day'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
' maxlength='10' size='10' tabindex='5' <?php if ($this->_tpl_vars['kga']['conf']['autoselection']): ?>onClick="this.select();"<?php endif; ?> />
                </li>


              
                   <li>
                       <label for="edit_time"><?php echo $this->_tpl_vars['kga']['lang']['timelabel']; ?>
:</label>
                        <input id='edit_time' type='text' name='edit_time' value='<?php echo ((is_array($_tmp=$this->_tpl_vars['edit_time'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
' maxlength='8'  size='8'  tabindex='7' <?php if ($this->_tpl_vars['kga']['conf']['autoselection']): ?>onClick="this.select();"<?php endif; ?> />
                        <a href="#" onClick="exp_pasteNow(); $(this).blur(); return false;"><?php echo $this->_tpl_vars['kga']['lang']['now']; ?>
</a>
                   </li>

                   


                   <li>
                       <label for="multiplier"><?php echo $this->_tpl_vars['kga']['lang']['multiplier']; ?>
:</label>
                        <input id='multiplier' type='text' name='multiplier' value='<?php echo ((is_array($_tmp=$this->_tpl_vars['multiplier'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
' maxlength='8'  size='8'  tabindex='9' <?php if ($this->_tpl_vars['kga']['conf']['autoselection']): ?>onClick="this.select();"<?php endif; ?> />
                   </li>

                   


                   <li>
                       <label for="edit_value"><?php echo $this->_tpl_vars['kga']['lang']['expense']; ?>
:</label>
                        <input id='edit_value' type='text' name='edit_value' value='<?php echo ((is_array($_tmp=$this->_tpl_vars['edit_value'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
' maxlength='8'  size='8'  tabindex='10' <?php if ($this->_tpl_vars['kga']['conf']['autoselection']): ?>onClick="this.select();"<?php endif; ?> />
                   </li>

                   


                   <li>
                       <label for="designation"><?php echo $this->_tpl_vars['kga']['lang']['designation']; ?>
:</label>
                        <input id='designation' type='text' name='designation' value='<?php echo ((is_array($_tmp=$this->_tpl_vars['designation'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
' maxlength='20'  size='20'  tabindex='11' <?php if ($this->_tpl_vars['kga']['conf']['autoselection']): ?>onClick="this.select();"<?php endif; ?> />
                   </li>

                   


                   
          </ul>
          </fieldset>
    
          <fieldset id="extended">
            <ul>
          <li>
                        <label for="erase"><?php echo $this->_tpl_vars['kga']['lang']['refundable_long']; ?>
:</label>
                        <input type='checkbox' id='refundable' name='refundable' <?php if ($this->_tpl_vars['refundable']): ?> checked="checked" <?php endif; ?> tabindex='12'/>
                   </li>

                   <li>
                        <label for="comment"><?php echo $this->_tpl_vars['kga']['lang']['comment']; ?>
:</label>
                        <textarea id='comment' style="width:395px" class='comment' name='comment' cols='40' rows='5' tabindex='13'><?php echo ((is_array($_tmp=$this->_tpl_vars['comment'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
</textarea>
                   </li>
                   
                   <li>
                       <label for="comment_type"><?php echo $this->_tpl_vars['kga']['lang']['comment_type']; ?>
:</label>
                       <select id="comment_type" class="formfield" name="comment_type" tabindex="14" >
                           <?php echo smarty_function_html_options(array('values' => $this->_tpl_vars['comment_values'],'output' => $this->_tpl_vars['comment_types'],'selected' => $this->_tpl_vars['comment_active']), $this);?>

                       </select>
                   </li>
                   
                    <li>
                        <label for="erase"><?php echo $this->_tpl_vars['kga']['lang']['erase']; ?>
:</label>
                        <input type='checkbox' id='erase' name='erase' tabindex='15'/>
                   </li>
        
                </ul>
            </fieldset>

 

    </div>


                <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>

 

        </form>
</div>