<?php /* Smarty version Smarty-3.1.11, created on 2024-07-15 17:49:16
         compiled from "..\views\default\expensesTypeview\show.html" */ ?>
<?php /*%%SmartyHeaderCode:21106669544fc0b7488-94258290%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '3a97569af1384d374175406b37f255c604ee9035' => 
    array (
      0 => '..\\views\\default\\expensesTypeview\\show.html',
      1 => 1672089199,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '21106669544fc0b7488-94258290',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'path' => 0,
    'youtubes' => 0,
    'outputString' => 0,
    'allData' => 0,
    'data' => 0,
    'message' => 0,
    'name' => 0,
    'i' => 0,
    'na' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_669544fc18f594_83208455',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_669544fc18f594_83208455')) {function content_669544fc18f594_83208455($_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 @EXPENSES;?>
</a></li>
            <li class="active"><?php echo @EXPENSES_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 @EXPENSES_TYPE_SHOW;?>
</h3>
                <a href="<?php echo $_smarty_tpl->tpl_vars['youtubes']->value[98]->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="expensesTypeController.php" class="hidden-print"><input type="button"  id="submit" style="margin-left: 12px" class="btn btn-primary pull-left " value="<?php echo @EXPENSES_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 class="form-inline hidden-print" method="post" action="expensesTypeController.php?do=show">
                    <div class="form-group">
                        <label class="sr-only"><?php echo @EXPENSES_TYPE;?>
</label>
                        <select data-placeholder=" <?php echo @EXPENSES_TYPE_CHOOSE;?>
"  class="select2 wdt300"   id="parent" name="parent"  onchange="this.form.submit();">
                            <option value="-1"><?php echo @CHOOSE;?>
</option>



                            <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allData']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value){
$_smarty_tpl->tpl_vars['data']->_loop = true;
?>



                            <option><?php echo $_smarty_tpl->tpl_vars['data']->value->expensestypename;?>
</option>



                            <?php } ?>

                        </select>
                    </div>
                    <button type="submit" class="btn btn-primary"><?php echo @EXPENSES_SEARCH;?>
</button>
                </form>
                <hr/>
                
                <form id="form1" name="form1" method="post" action="expensesTypeController.php?do=executeOperation" onsubmit="if (Spry.Widget.Form.validate(this)) {
                            return countChoosenProducts('expensesTypeController');
                        } else {
                            return false;
                        }
                      " enctype="multipart/form-data">
                    


                    <div class="panel panel-default panel-m">
                        <!-- Default panel contents -->
                        <div class="panel-heading"><?php echo $_smarty_tpl->tpl_vars['message']->value;?>
</div>
                        <div class="panel-body">
                            <!-- Table -->
                            <table class="table table-black">
                                <thead>
                                    <tr>
                                        <th class="hidden-print">  <div class="checkbox">
                                    <input type="checkbox" name="checkAll" id="checkAll"/>
                                </div>
                                </th>
                                <th>#</th>
                                <th><?php echo @EXPENSES_TYPE_NAME;?>
</th>
                                <th class="hidden-print" ><?php echo @EDIT;?>
</th>
                                <th class="hidden-print" ><?php echo @EXPENSES_TYPE_DELETE;?>
</th>
                                </tr>
                                </thead>
                                <tbody>

                                    <?php  $_smarty_tpl->tpl_vars['na'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['na']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['name']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['na']->key => $_smarty_tpl->tpl_vars['na']->value){
$_smarty_tpl->tpl_vars['na']->_loop = true;
?>
                                    <tr>
                                        <td class="hidden-print"> <div class="checkbox">
                                                <input type="checkbox" name="choosedItem[]" id="checked<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" class="choosenItem" value="<?php echo $_smarty_tpl->tpl_vars['na']->value->expensestypeid;?>
" />
                                            </div></td>
                                        <td><?php echo $_smarty_tpl->tpl_vars['na']->value->expensestypeid;?>
</td>
                                        <td><?php echo $_smarty_tpl->tpl_vars['na']->value->expensestypename;?>
</td>
                                        <td class="hidden-print"><a href="expensesTypeController.php?do=edit&id=<?php echo $_smarty_tpl->tpl_vars['na']->value->expensestypeid;?>
" type="button" class="btn btn-default btn-lg editicon"></a></td>
                                        <td class="hidden-print"><a href="#" id="delShowBtn" type="button" class="btn btn-default btn-lg deleteicon"></a></td>
                                    </tr>
                                    <?php } ?>
                                </tbody>

                            </table>
                            <div class="clearfix"></div>
                            <hr />
                            <div  class="hidden-print">
                                <div class="col-lg-12">
                                    <div class="well well-sm">
                                        <div class="form-group">
                                            <div class="col-lg-4">
                                                <label for="operation"></label>
                                                <span id="spryselect2">
                                                    <select name="operation" id="operation"  data-placeholder="<?php echo @EXPENSES_TYPE_CHOOSE_PROCESS;?>
"  class="select2 wdt100">
                                                        <option value="-1"></option>
                                                        <option value="1"><?php echo @EXPENSES_TYPE_DELETE;?>
</option>
                                                    </select>
                                                    <span class="selectInvalidMsg"><?php echo @EXPENSES_TYPE_CHOOSE_PROCESS;?>
</span></span></div>
                                        </div>
                                        <div class="form-group">
                                            <div class="col-lg-4">
                                                <input name=""  class="hidden-print btn btn-primary" type="submit" value="<?php echo @EXPENSES_TYPE_EXECUTION;?>
"/>
                                            </div>
                                        </div>

                                        <!-----------  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 @EXPENSES_TYPE_SELECTED_FIRST;?>
</p>
                                            <div class="clearfix"></div>
                                        </div>
                                        <!----------  end noElementsError alert -------------->

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

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



                            <div class="clearfix"></div>
                            <!-- 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 @EXPENSES_TYPE_CONFIRM_DELETION_RESOURCE;?>
</h4>
                                            </div>
                                            <form id="delform2" action="expensesTypeController.php?do=delete&id=<?php echo $_smarty_tpl->tpl_vars['na']->value->expensestypeid;?>
" method="post" class="form-horizontal">

                                                <div class="modal-body"> <?php echo @EXPENSES_TYPE_DELETE_TYPE_BANKER;?>
 </div>
                                                <div class="modal-footer">
                                                    <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo @EXPENSES_TYPE_NO;?>
</button>
                                                    <button type="submit" id="delconfbtn2" class="btn btn-primary savemodel1"><?php echo @EXPENSES_TYPE_YES;?>
</button>
                                                </div>
                                            </form>
                                        </div>
                                        <!-- /.modal-content -->
                                    </div>
                                    <!-- /.modal-dialog -->
                                </div>
                            </div>
                            <!-- /.modal -->
                            <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 @EXPENSES_TYPE_PRINT;?>
</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="clearfix"></div>
                            </div>
                        </div>
                    </div>
            </div>
        </div>
        
        <script type="text/javascript">
            var spryselect2 = new Spry.Widget.ValidationSelect("spryselect2", {invalidValue: "-1", isRequired: false});
        </script>
        
<?php }} ?>