<?php /* Smarty version Smarty-3.1.11, created on 2025-02-20 15:24:31
         compiled from "../views/default/storetransferrequestview/show.html" */ ?>
<?php /*%%SmartyHeaderCode:210369017767b72d0f173f56-52269464%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'f628c8782eeae1d6bec0fd2eee31f647cd01fc7c' => 
    array (
      0 => '../views/default/storetransferrequestview/show.html',
      1 => 1740000155,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '210369017767b72d0f173f56-52269464',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'outputString' => 0,
    'Programsettingdata' => 0,
    'alloperationnum' => 0,
    'myalloperationnum' => 0,
    'storeData' => 0,
    'store' => 0,
    'loadStoreByUser' => 0,
    'message' => 0,
    'usergroupdata' => 0,
    'storemovementData' => 0,
    'i' => 0,
    'storemovement' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_67b72d0f272fa1_11893910',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_67b72d0f272fa1_11893910')) {function content_67b72d0f272fa1_11893910($_smarty_tpl) {?><style>
    @media print{
        .table-black{
            border : 1px solid black;
        }
        td ,th {
            border: 1px solid #000 !important;
        }
        .panel-heading{
            border-bottom: none !important;
            margin-bottom: 30px;
        }

    }
</style>


<div class="row">
    <div class="container">

        <ol class="breadcrumb">
            <li><a href="#">المخازن</a></li>
            <li><a href="storetransferrequestController.php?do=show">التحميل بين المخازن</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="storetransferrequestController.php" class="hidden-print"><input type="button"  id="submit"  class="btn btn-primary pull-left " value="إضافة جديد"/></a>
            </div>
            <div class="panel-body">


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




                <form class="form-inline hidden-print" action="storetransferrequestController.php?do=show" method="post">
                    <input type="hidden" name="searchvalue" id="searchvalue" value="<?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->searchvalue;?>
"/>


                    <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->storeserial==1){?>

                    <div class="form-group">
                        <label class="sr-only">رقم الايصال</label>
                        <select class="select2 wdt100"  name="operationnum" id="operationnum" >
                            <option value="-1">اختر رقم الايصال</option>


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


                            <option value="<?php echo $_smarty_tpl->tpl_vars['myalloperationnum']->value->operationnum;?>
"><?php echo $_smarty_tpl->tpl_vars['myalloperationnum']->value->operationnum;?>
</option>


                            <?php } ?>


                        </select>
                    </div>
                    <?php }?>
                    <br/>
                    <div class="form-group ">
                        <label class="sr-only">إلى المخزن</label>
                        <select class="select2 wdt100" name="storeidto" id="storeidto"  >
                            <option value="-1">اختر مخزن</option>
                            <?php  $_smarty_tpl->tpl_vars['store'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['store']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['storeData']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['store']->key => $_smarty_tpl->tpl_vars['store']->value){
$_smarty_tpl->tpl_vars['store']->_loop = true;
?>
                            <?php if ($_smarty_tpl->tpl_vars['store']->value->storeId!=$_smarty_tpl->tpl_vars['loadStoreByUser']->value->storeId){?>
                            <option value="<?php echo $_smarty_tpl->tpl_vars['store']->value->storeId;?>
"><?php echo $_smarty_tpl->tpl_vars['store']->value->storeName;?>
</option>
                            <?php }?>
                            <?php } ?>
                        </select>
                    </div>
                    <br/>


                    <div class="form-group">
                        <label class="sr-only">من التاريخ</label>

                        <input type="text" class="form-control awdatepicker" autocomplete="off"   data-date-format="yyyy-mm-dd" name="from" >

                    </div>


                    <div class="form-group">
                        <label class="sr-only">إلى التاريخ</label>

                        <input type="text" class="form-control awdatepicker" autocomplete="off"   data-date-format="yyyy-mm-dd" name="to" >

                    </div>




                    <button type="submit" class="btn btn-primary">بحث</button>
                </form>



            </div>
            <hr/>

            <!-- Table -->
            
            <form method="post" action="storetransferrequestController.php?do=executeOperation" onsubmit="if (Spry.Widget.Form.validate(this)) {
                        return countChoosenProducts('storetransferrequestController');
                    } else {
                        return false;
                    }">

                

                <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 class="table table-black dataTableClass">
                            <thead>
                                <tr>
                                    <th class="hidden-print"><input type="checkbox" name="checkAll" id="checkAll"/></th>
                                    <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->storeserial==1){?><th>رقم  الايصال</th><?php }?>
                                    <th>من مخزن</th>
                                    <th>الى مخزن</th>
                                    <th>التاريخ</th>
                                    <th class="hidden-print">تفاصيل</th>
                                    <th class="hidden-print">تفاصيل الأوردر</th>
                                    <?php if ($_smarty_tpl->tpl_vars['usergroupdata']->value->allowStoreMoveUpdateDel!=1){?><th class="hidden-print">ايقاف</th><?php }?>
                                    <th class="hidden-print">قيد اليومية</th>

                                </tr>
                            </thead>
                            <tbody>

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

                                <tr>
                                    <td class="hidden-print">
                                        <input type="checkbox" name="choosedItem[]" id="checked<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" class="choosenItem" value="<?php echo $_smarty_tpl->tpl_vars['storemovement']->value->transferproductid;?>
" />
                                    </td>
                                    <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->storeserial==1){?>

                                    <td nowrap="nowrap">
                                        <?php echo $_smarty_tpl->tpl_vars['storemovement']->value->operationnum;?>

                                    </td>
                                    <?php }?>
                                    <td nowrap="nowrap">
                                        <?php echo $_smarty_tpl->tpl_vars['storemovement']->value->storefromName;?>

                                    </td><td nowrap="nowrap">
                                        <?php echo $_smarty_tpl->tpl_vars['storemovement']->value->storetoName;?>

                                    </td>
                                    <td nowrap="nowrap"><?php echo $_smarty_tpl->tpl_vars['storemovement']->value->transferproductdate;?>
</td>
                                    <td class="hidden-print" nowrap="nowrap">
                                        <a style="color:blue;"  href="storemovementController.php?do=editshow&operationnum=<?php echo $_smarty_tpl->tpl_vars['storemovement']->value->operationnum;?>
"  target="_new">عرض </a>
                                    </td>
                                    <td class="hidden-print">
                                        <a href="storemovementController.php?do=editorder&on=<?php echo $_smarty_tpl->tpl_vars['storemovement']->value->operationnum;?>
" type="button" class="btn btn-default btn-lg editicon"></a>
                                    </td>
                                    <?php if ($_smarty_tpl->tpl_vars['usergroupdata']->value->allowStoreMoveUpdateDel!=1){?>
                                    <td class="hidden-print">
                                        <?php if ($_smarty_tpl->tpl_vars['storemovement']->value->recieveType==1&&$_smarty_tpl->tpl_vars['storemovement']->value->recieveUserid!=0){?>
                                        تم التسليم
                                        <?php }else{ ?>



                                        <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['storemovement']->value->conditions;?>
<?php $_tmp1=ob_get_clean();?><?php if ($_tmp1==0){?>
                                        <a href="storetransferrequestController.php?do=tempdelete2&operationnum=<?php echo $_smarty_tpl->tpl_vars['storemovement']->value->operationnum;?>
" type="button" class="btn btn-default btn-lg removeicon"></a>

                                        <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['storemovement']->value->conditions;?>
<?php $_tmp2=ob_get_clean();?><?php if ($_tmp2==1){?>
                                        <a href="storetransferrequestController.php?do=returndelete2&operationnum=<?php echo $_smarty_tpl->tpl_vars['storemovement']->value->operationnum;?>
" type="button" class="btn btn-default btn-lg correcticon"></a>

                                        <?php }}?>



                                        <?php }?>
                                    </td>
                                    <?php }?>
                                    <td class="hidden-print"><a href="dailyentry.php?id=<?php echo $_smarty_tpl->tpl_vars['storemovement']->value->dailyentryid;?>
" target="_blank" type="button" class="btn btn-default btn-lg editicon"> </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="spryselect1">
                                                <select name="operation" id="operation"  data-placeholder="اختر العملية" class="select2 wdt100">
                                                    <option value="-1">اختر عملية</option>
                                                    <option value="1">ايقاف</option>
                                                    <option value="2">تشغيل </option>
                                                </select>
                                                <span class="selectInvalidMsg">*</span></span></div>
                                    </div>

                                    <div class="form-group">
                                        <div class="col-lg-4">
                                            <input name=""  class="hidden-print btn btn-primary" type="submit" value="تنفيذ"/>
                                        </div>
                                    </div>


                                    <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>يجب اختيار العناصر أولاً</p>
                                        <div class="clearfix"></div>
                                    </div>

                                    <div class="clearfix">

                                        <div class="form-group">
                                            <div class="col-lg-4">
                                                <button type="button" onclick="print_Custom('mycustomheader');" class="btn btn-success pull-right">طباعة</button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="clearfix"></div>
                        </div>


                        </form>

                    </div>










                </div>

        </div>



        
        <script type="text/javascript">
            var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1", {isRequired: false, invalidValue: "-1"});
        </script>
        
<?php }} ?>