<?php /* Smarty version Smarty-3.1.11, created on 2025-12-30 00:43:22
         compiled from "..\views\default\incomeTypeview\show.html" */ ?>
<?php /*%%SmartyHeaderCode:2976953040a143b00-91961843%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'f856cbf8309c48272715fcb3f8b0c5b3ce937ee0' => 
    array (
      0 => '..\\views\\default\\incomeTypeview\\show.html',
      1 => 1752437506,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2976953040a143b00-91961843',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'path' => 0,
    'youtubes' => 0,
    'outputString' => 0,
    'incomedata' => 0,
    'myincomedata' => 0,
    'i' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_6953040a228ad3_39909215',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6953040a228ad3_39909215')) {function content_6953040a228ad3_39909215($_smarty_tpl) {?><script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/SpryAssets/SpryValidationSelect.js" type="text/javascript"></script>
<link href="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/SpryAssets/SpryValidationSelect.css" rel="stylesheet" type="text/css" />

<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_SHOW;?>
</li>
        </ol>
        <div class="panel panel-default panel-m">
            <!-- Default panel contents -->
            <div class="panel-heading" style="padding:5px 15px 15px">
                <h3 class="panel-title" style="display: inline-block;"><?php echo @INCOME_TYPE_SHOW;?>
</h3>
                <a href="<?php echo $_smarty_tpl->tpl_vars['youtubes']->value[101]->url;?>
" target="_blank" class="hidden-print"><img src="../views/default/assets/img/youtube.png" class="pull-left" alt="Youtube" style="width: 2%;"></a>
                <a href="incomeTypeController.php" class="hidden-print"><input type="button" style="margin-left: 12px" id="submit"  class="btn btn-primary pull-left " value="<?php echo @INCOME_TYPE_ADD_NEW;?>
"/></a>
            </div>

            <div class="panel-body">

                <!---------- start outputString alert ----------->
                <div id="outputString" class="alert alert-block alert-success fade in" style="display:none">
                    <button type="button" class="close pull-left" data-dismiss="alert" aria-hidden="true">&times;</button>
                    <p id="outputStringValue"><?php echo $_smarty_tpl->tpl_vars['outputString']->value;?>
</p>
                    <div class="clearfix"></div>
                </div>
                <!---------  end outputString alert ------------>

                
                <form id="form1" name="form1" method="post" action="../expensesTypeview - Copy/expensesTypeController.php?do=executeOperation" onsubmit="if (Spry.Widget.Form.validate(this)) {
                            return countChoosenProducts('expensesTypeController');
                        } else {
                            return false;
                        }
                      " enctype="multipart/form-data">
                    


                    <!-- Table -->
                    <table class="table table-black">
                        <thead>
                            <tr>

                                <th>#</th>
                                <th><?php echo @INCOME_TYPE_NAME;?>
</th>
                                <th class="hidden-print" ><?php echo @INCOME_TYPE_EDIT;?>
</th>
                                <th class="hidden-print" ><?php echo @INCOME_TYPE_DELETE;?>
</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
                            <?php  $_smarty_tpl->tpl_vars['myincomedata'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myincomedata']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['incomedata']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myincomedata']->key => $_smarty_tpl->tpl_vars['myincomedata']->value){
$_smarty_tpl->tpl_vars['myincomedata']->_loop = true;
?>
                            <tr>

                                <!--<?php echo $_smarty_tpl->tpl_vars['myincomedata']->value->incomeTypeId;?>
 -->
                                <td> <?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</td>
                                <td><?php echo $_smarty_tpl->tpl_vars['myincomedata']->value->incomeTypeName;?>
</td>
                                <td class="hidden-print"><a href="incomeTypeController.php?do=edit&id=<?php echo $_smarty_tpl->tpl_vars['myincomedata']->value->incomeTypeId;?>
" type="button" class="btn btn-default btn-lg editicon"></a></td>
                                <td class="hidden-print"><a id="delinctype" href="#" type="button" class="btn btn-default btn-lg deleteicon"></a></td>
                            </tr>

                            <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'i', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                            <?php } ?>
                        </tbody>

                    </table>




                    <!-----------  start noElementsError alert ------------->
                    <div class="clearfix"></div>
                    <div id="noElementsError" class="alert alert-danger fade in" style="display:none;">
                        <button type="button" class="close pull-left" data-dismiss="alert" aria-hidden="true">×</button>
                        <p><?php echo @INCOME_TYPE_SELECTED_FIRST;?>
</p>
                        <div class="clearfix"></div>
                    </div>
                    <!----------  end noElementsError alert -------------->



                    <div class="clearfix"></div>
            </div>
            </form>

            <!-- Modal -->
            <div class="hidden-print">
                <div class="modal fade " id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                    <div class="modal-dialog">
                        <div class="modal-content">
                            <div class="modal-header">
                                <button type="button" class="close pull-left" data-dismiss="modal" aria-hidden="true">&times;</button>
                                <h4 class="modal-title"><?php echo @INCOME_TYPE_CONFIRM_DELETION_RESOURCE;?>
</h4>
                            </div>
                            <div class="modal-body">  <?php echo @INCOME_TYPE_DELETE_TYPE_BANKER;?>
</div>
                            <form id="delIncTypeForm" action="incomeTypeController.php?do=delete&id=<?php echo $_smarty_tpl->tpl_vars['myincomedata']->value->incomeTypeId;?>
" method="post" >
                                <div class="modal-footer">
                                    <button type="button" id="modalIncYes" class="btn btn-primary savemodel1"><?php echo @INCOME_TYPE_YES;?>
</button>
                                    <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo @INCOME_TYPE_NO;?>
</button>
                                </div>
                            </form>
                        </div>
                        <!-- /.modal-content -->
                    </div>
                    <!-- /.modal-dialog -->
                </div>
            </div>
            <!-- /.modal -->

            <div class="clearfix"></div>

            <div  class="hidden-print">
                <div class="col-lg-12">
                    <div class="form-group">
                        <div class="col-lg-4">
                            <button type="button" onclick="print_Custom('mycustomheader');" class="btn btn-success pull-right"><?php echo @INCOME_TYPE_PRINT;?>
</button>
                        </div>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
        </div>
    </div>
    
    <script type="text/javascript">
        var spryselect2 = new Spry.Widget.ValidationSelect("spryselect2", {invalidValue: "-1", isRequired: false});
    </script>
    
<?php }} ?>