<?php /* Smarty version Smarty-3.1.11, created on 2025-01-19 19:26:49
         compiled from "../views/default/incomeTypeview/add.html" */ ?>
<?php /*%%SmartyHeaderCode:734434795678d35d95e48b3-99922011%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '3167bc166ae5b9155144729f416df025272d832c' => 
    array (
      0 => '../views/default/incomeTypeview/add.html',
      1 => 1672089198,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '734434795678d35d95e48b3-99922011',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'allParents' => 0,
    'parent' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_678d35d9662282_82550868',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_678d35d9662282_82550868')) {function content_678d35d9662282_82550868($_smarty_tpl) {?>
<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#"><?php echo @EXPENSES_REVENUE;?>
</a></li>
            <li><a href="#"><?php echo @INCOME_TYPE;?>
</a></li>
            <li class="active"><?php echo @INCOME_TYPE_ADD;?>
</li>
        </ol>
        <div class="panel panel-default panel-m">
            <!-- Default panel contents -->
            <div class="panel-heading">
                <h3 class="panel-title"><?php echo @INCOME_TYPE_ADD;?>
</h3>
            </div>
            <div class="panel-body">
                
                <form id="incform" class="form-horizontal" action="incomeTypeController.php?do=add" method="post" >
                    <!--validate the form before checking name-->
                    
                    <div class="form-group">
                        <label class="col-lg-2 control-label"><?php echo @INCOME_TYPE_MAIN_CLASSIFICATION;?>
</label>
                        <div class="col-lg-4">
                            <select name="parent" id="parent" class="select2 wdt100">
                                <option value="0" selected="selected"><?php echo @INCOME_TYPE_NO_MAIN_CLASSIFICATION;?>
</option>
                                <?php  $_smarty_tpl->tpl_vars['parent'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['parent']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allParents']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['parent']->key => $_smarty_tpl->tpl_vars['parent']->value){
$_smarty_tpl->tpl_vars['parent']->_loop = true;
?>
                                <option value="<?php echo $_smarty_tpl->tpl_vars['parent']->value->incomeTypeId;?>
"><?php echo $_smarty_tpl->tpl_vars['parent']->value->incomeTypeName;?>
</option>
                                <?php } ?>
                            </select>
                            <div id="parentError" style="display:none;"></div>
                        </div>
                    </div>

                    <!--==============================-->
                    <!--==============================-->

                    <div class="form-group">
                        <label class="col-lg-2 control-label"><?php echo @INCOME_TYPE_NAME;?>
</label>
                        <div class="col-lg-4">
                            <input type="text" name="name" id="name" class="form-control"/>
                            <div id="nameError" style="display:none;"></div>
                        </div>
                    </div>

                    <!--==============================-->
                    <div class="form-group">
                        <label class="col-lg-2 control-label"> <?php echo @INCOME_TYPE_DEFAULT_VALUE;?>
</label>
                        <div class="col-lg-4">
                            <input name="defaultValue"  id="defaultValue" type="text" class="form-control numberinput"/>
                            <div id="valueError" style="display:none;"></div>
                        </div>
                    </div>
                    <!--==============================-->
                    <div class="form-group">
                        <label class="col-lg-2 control-label"><?php echo @INCOME_TYPE_OTHER_DETAILS;?>
</label>
                        <div class="col-lg-4">
                            <textarea cols="20" rows="5" name="descripe" id="descripe" class="form-control"></textarea>
                        </div>
                    </div>

                    <!--==============================-->

                    <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-4">
                            <button type="button" id="saveIncBtn" class="btn btn-primary pull-left"><?php echo @INCOME_TYPE_SAVE;?>
</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
    var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1");
</script> <?php }} ?>