<?php /* Smarty version Smarty-3.1.11, created on 2025-02-10 11:51:09
         compiled from "../views/default/salaryReportview/show.html" */ ?>
<?php /*%%SmartyHeaderCode:84291666267a9cc0de36175-23295722%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '99b3ba4e1946a6c9b35121dd8a8102da5b26d7df' => 
    array (
      0 => '../views/default/salaryReportview/show.html',
      1 => 1697305472,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '84291666267a9cc0de36175-23295722',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'salarymonthdate' => 0,
    'today' => 0,
    'Programsettingdata' => 0,
    'allCostcenter' => 0,
    'myallCostcenter' => 0,
    'userSave' => 0,
    'userSaves' => 0,
    'save' => 0,
    'allEmpsalary' => 0,
    'emp' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_67a9cc0df05ad4_88370680',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_67a9cc0df05ad4_88370680')) {function content_67a9cc0df05ad4_88370680($_smarty_tpl) {?><script>

</script>
<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#">اداره الموظفين</a></li>
            <li><a href="#">المرتبات</a></li>
            <li class="active">عرض المرتبات </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;"> عرض المرتبات</h3>
                <a href="salaryReportController.php" class="hidden-print"><input type="button" id="submit"
                        class="btn btn-primary pull-left " value="إضافة جديد" /></a>
            </div>
            <div class="panel-body">
                <form action="?" method="post" class="form-inline hidden-print">

                    <table class="table table-black">


                        <tr>

                            <td><span style="float: right;font-size: 16px;font-weight: bold;">شهر</span></td>
                            <td colspan="2">
                                <div class="datepicker"><input type="text" name="from" id="from"
                                        value="<?php if (!empty($_smarty_tpl->tpl_vars['salarymonthdate']->value)){?><?php echo $_smarty_tpl->tpl_vars['salarymonthdate']->value;?>
<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['today']->value;?>
<?php }?>"
                                        class="form-control awdatepicker" autocomplete="off" data-date-format="yyyy-mm">
                                </div>
                            </td>



                            <td align="center" colspan="5"><input name="" type="submit" value="بحث" style="width:80px;"
                                    type="button"></td>
                        </tr>
                        <tr <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->costcenter==0){?> <?php }else{ ?> style="display:none" <?php }?>>
                            <td colspan="12"> <label class="col-lg-4 control-label">مركز التكلفة</label>
                                <div class="col-lg-4">

                                    <select class="select2 wdt100" name="Costcenterid" id="Costcenterid">


                                        <option value="-1">اختر مركز التكلفه</option>
                                        <?php  $_smarty_tpl->tpl_vars['myallCostcenter'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallCostcenter']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allCostcenter']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallCostcenter']->key => $_smarty_tpl->tpl_vars['myallCostcenter']->value){
$_smarty_tpl->tpl_vars['myallCostcenter']->_loop = true;
?>



                                        <option value="<?php echo $_smarty_tpl->tpl_vars['myallCostcenter']->value->id;?>
"><?php echo $_smarty_tpl->tpl_vars['myallCostcenter']->value->name;?>
</option>

                                        <?php } ?>


                                    </select>
                            </td>
                        </tr>
                </form>
                <form method="post" action="?do=Receipt">
                    <?php if (isset($_smarty_tpl->tpl_vars['userSave']->value)){?>
                    <input type="hidden" name="saveid" value="<?php echo $_smarty_tpl->tpl_vars['userSave']->value->saveid;?>
" />
                    <?php }else{ ?>
                    <tr>
                        <td colspan="12"> <label class="col-lg-4 control-label">الخزنة</label>
                            <div class="col-lg-4">
                                <select class="select2 wdt100" name="saveid" id="saveid">
                                    <?php  $_smarty_tpl->tpl_vars['save'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['save']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['userSaves']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['save']->key => $_smarty_tpl->tpl_vars['save']->value){
$_smarty_tpl->tpl_vars['save']->_loop = true;
?>
                                    <option value="<?php echo $_smarty_tpl->tpl_vars['save']->value->saveid;?>
" <?php if ($_SESSION['saveid']==$_smarty_tpl->tpl_vars['save']->value->saveid){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['save']->value->savename;?>
</option>
                                    <?php } ?>

                                </select>
                        </td>
                    </tr>
                    <?php }?>
                    <tr>
                        <td>اختر</td>
                        <td>رقم الموظف</td>
                        <td>اسم الموظف </td>
                        <td>المرتب الاساسى</td>
                        <td>الحوافز</td>
                        <td>المكافاه</td>
                        <td>الخصومات</td>
                        <td>المسحوبات</td>

                        <td>الغياب - تأخير</td>
                        <td>استئذان</td>
                        <td>دفع سلفه</td>
                        <td>باقي القبض السابق</td>
                        <td>صافى المرتب</td>
                        <td>الدين الحالى</td>

                    </tr>



                    <input name="salarymonthdate" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['salarymonthdate']->value;?>
" />
                    <?php  $_smarty_tpl->tpl_vars['emp'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['emp']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allEmpsalary']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['emp']->key => $_smarty_tpl->tpl_vars['emp']->value){
$_smarty_tpl->tpl_vars['emp']->_loop = true;
?>

                    <tr>
                        <td><input name="empid[]" type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['emp']->value[0];?>
" /></td>

                        <td><?php echo $_smarty_tpl->tpl_vars['emp']->value[0];?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['emp']->value[1];?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['emp']->value[2];?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['emp']->value[3];?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['emp']->value[4];?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['emp']->value[5];?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['emp']->value[6];?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['emp']->value[7];?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['emp']->value[12];?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['emp']->value[9];?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['emp']->value[11];?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['emp']->value[8];?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['emp']->value[10];?>
</td>


                    </tr>

                    <?php } ?>
                    <tr>
                        <td colspan="13" align="center"><input name="Receipt" value="قبض" style="width:80px;"
                                type="submit" /></td>
                    </tr>
                    </table>




                </form>
            </div>
        </div><?php }} ?>