<?php /* Smarty version Smarty-3.1.11, created on 2025-02-20 10:43:54
         compiled from "../views/default/storemovementview/editorder.html" */ ?>
<?php /*%%SmartyHeaderCode:104047704367b6eb4a622f67-61717363%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'f1b1c0237038515cca37adeeeb4cf4b437e322eb' => 
    array (
      0 => '../views/default/storemovementview/editorder.html',
      1 => 1740000151,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '104047704367b6eb4a622f67-61717363',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'type' => 0,
    'loadData' => 0,
    'Programsettingdata' => 0,
    'username' => 0,
    'usergroupdata' => 0,
    'data' => 0,
    'totalPieces' => 0,
    'totalPrice' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_67b6eb4a7396c0_55835985',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_67b6eb4a7396c0_55835985')) {function content_67b6eb4a7396c0_55835985($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">




<script language="javascript" type="text/javascript">
    /*$(document).ready(function() {
     //window.print();
     printDiv();
     });*/
    function printDiv() {
        var divId = document.getElementById('printdiv');
        divId.setAttribute("className", "print_section print");
        divId.setAttribute("class", "print_section print");
        window.print();

        window.close();
    }
</script>
<style>
    @media print {
        table , p , .table-black { width:  700px ;  }
        .mydevl{width: 400px ; padding-right:  40px;}
        td ,th{
            border: 1px solid #000 !important;
        }
        .mytitle{
            margin-right:  50px;
        }
        .noprint{
            display: none;
        }
    }
    .hidden{
        display: none;
    }
</style>

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title class="mytitle"><?php echo $_smarty_tpl->tpl_vars['type']->value;?>
</title>
    </head>
    <body>
        <?php if (count($_smarty_tpl->tpl_vars['loadData']->value)>0){?>
        <table style="width: 900px; padding:0 10px;direction: rtl;" align="center" id="printdiv">
            <tr>
                <td style="border:0!important">
                    <div style="text-align: center;display: inline">
                        <h2><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->companyname;?>
</h2>
                    </div>
                    <label style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.09);border-bottom: 1px solid #cccccc;font-weight: bold;padding: 8px 10px;text-align: center;border: 0 none; border-radius: 5px;font-size: 20px"> <?php echo $_smarty_tpl->tpl_vars['type']->value;?>
</label>

                    <table width="100%" style="margin-top: 20px; border: 1px solid #ccc; border-radius: 5px;" class="table-black">
                        <tr>
                            <th <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->print_amount;?>
<?php $_tmp1=ob_get_clean();?><?php if ($_tmp1==1){?> hidden <?php }?> style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.09);border-bottom: 1px solid #cccccc;font-weight: bold;padding: 8px 10px;text-align: center;border: 0 none;">رقم الاذن</th>
                            <th style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.09);border-bottom: 1px solid #cccccc;font-weight: bold;padding: 8px 10px;text-align: center;border: 0 none;">تاريخ الاذن</th>
                            <th style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.09);border-bottom: 1px solid #cccccc;font-weight: bold;padding: 8px 10px;text-align: center;border: 0 none;"> من مخزن</th>
                            <th style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.09);border-bottom: 1px solid #cccccc;font-weight: bold;padding: 8px 10px;text-align: center;border: 0 none;"> الى مخزن</th>

                            <!--<th style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.09);border-bottom: 1px solid #cccccc;font-weight: bold;padding: 8px 10px;text-align: center;border: 0 none;">نوع الاذن</th>-->
                            <!--<th style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.09);border-bottom: 1px solid #cccccc;font-weight: bold;padding: 8px 10px;text-align: center;border: 0 none;">السيارة</th>-->
                            <th style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.09);border-bottom: 1px solid #cccccc;font-weight: bold;padding: 8px 10px;text-align: center;border: 0 none;">اسم المستخدم</th>
                            <th style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.09);border-bottom: 1px solid #cccccc;font-weight: bold;padding: 8px 10px;text-align: center;border: 0 none;">تعليق</th>
                        </tr>
                        <tr>
                            <td <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->print_amount;?>
<?php $_tmp2=ob_get_clean();?><?php if ($_tmp2==1){?> hidden <?php }?> style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.01);border: 0 none;margin: 0;padding: 6px 10px;text-align: center"><?php echo $_smarty_tpl->tpl_vars['loadData']->value[0]->operationnum;?>
 </td>
                            <td style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.01);border: 0 none;margin: 0;padding: 6px 10px;text-align: center"><?php echo $_smarty_tpl->tpl_vars['loadData']->value[0]->transferproductdate;?>
</td>
                            <td style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.01);border: 0 none;margin: 0;padding: 6px 10px;text-align: center"><?php echo $_smarty_tpl->tpl_vars['loadData']->value[0]->storefromName;?>
</td>
                            <td style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.01);border: 0 none;margin: 0;padding: 6px 10px;text-align: center"><?php echo $_smarty_tpl->tpl_vars['loadData']->value[0]->storetoName;?>
</td>

                            <!--<td style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.01);border: 0 none;margin: 0;padding: 6px 10px;text-align: center"><?php if ($_smarty_tpl->tpl_vars['loadData']->value[0]->storeidfrom==1){?>صرف<?php }elseif($_smarty_tpl->tpl_vars['loadData']->value[0]->storeidto==1){?>ارتجاع<?php }else{ ?>تحويل بين المخازن<?php }?></td>-->
                            <!--<td style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.01);border: 0 none;margin: 0;padding: 6px 10px;text-align: center"><?php echo $_smarty_tpl->tpl_vars['loadData']->value[0]->driverName;?>
</td>-->
                            <td style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.01);border: 0 none;margin: 0;padding: 6px 10px;text-align: center"><?php echo $_smarty_tpl->tpl_vars['username']->value;?>
</td>
                            <td style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.01);border: 0 none;margin: 0;padding: 6px 10px;text-align: center"><?php echo $_smarty_tpl->tpl_vars['loadData']->value[0]->maincomment;?>
</td>
                        </tr>
                    </table>

                    <table width="100%" style="margin-top: 20px; border: 1px solid #ccc; border-radius: 5px;" class="table-black">
                        <tr>
                            <th>#</th>
                            <th style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.09);border-bottom: 1px solid #cccccc;font-weight: bold;padding: 8px 10px;text-align: center;border: 0 none;">الباركود</th>
                            <th style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.09);border-bottom: 1px solid #cccccc;font-weight: bold;padding: 8px 10px;text-align: center;border: 0 none;">اسم الصـــنف</th>
                            <th style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.09);border-bottom: 1px solid #cccccc;font-weight: bold;padding: 8px 10px;text-align: center;border: 0 none;">الوحــــدة</th>
                            <th <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->print_amount;?>
<?php $_tmp3=ob_get_clean();?><?php if ($_tmp3==1){?> hidden <?php }?> style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.09);border-bottom: 1px solid #cccccc;font-weight: bold;padding: 8px 10px;text-align: center;border: 0 none;">الكمـــية</th>
                            <?php if ($_smarty_tpl->tpl_vars['loadData']->value[0]->priceType!=''&&$_smarty_tpl->tpl_vars['loadData']->value[0]->priceType!='hide'){?><th class="<?php if ($_smarty_tpl->tpl_vars['usergroupdata']->value->hideBillPrices==1){?>hidden noprint<?php }?>" style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.09);border-bottom: 1px solid #cccccc;font-weight: bold;padding: 8px 10px;text-align: center;border: 0 none;">السعر</th><?php }?>
                            <th class="" style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.09);border-bottom: 1px solid #cccccc;font-weight: bold;padding: 8px 10px;text-align: center;border: 0 none;">تعليق</th>
                        </tr>
                        <?php $_smarty_tpl->tpl_vars['totalPieces'] = new Smarty_variable(0, null, 0);?>
                        <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['loadData']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['data']->iteration=0;
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value){
$_smarty_tpl->tpl_vars['data']->_loop = true;
 $_smarty_tpl->tpl_vars['data']->iteration++;
?>
                        <tr>
                            <td><?php echo $_smarty_tpl->tpl_vars['data']->iteration;?>
</td>
                            <td style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.01);border: 0 none;margin: 0;padding: 6px 10px;text-align: center;"><?php echo $_smarty_tpl->tpl_vars['data']->value->parcode;?>
</td>
                            <td style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.01);border: 0 none;margin: 0;padding: 6px 10px;text-align: center;"><?php echo $_smarty_tpl->tpl_vars['data']->value->productName;?>
/<?php echo $_smarty_tpl->tpl_vars['data']->value->productCatName;?>
</td>
                            <td style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.01);border: 0 none;margin: 0;padding: 6px 10px;text-align: center;">قطعة</td>
                            <td <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->print_amount;?>
<?php $_tmp4=ob_get_clean();?><?php if ($_tmp4==1){?> hidden <?php }?> style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.01);border: 0 none;margin: 0;padding: 6px 10px;text-align: center;"><?php $_smarty_tpl->tpl_vars['totalPieces'] = new Smarty_variable($_smarty_tpl->tpl_vars['totalPieces']->value+$_smarty_tpl->tpl_vars['data']->value->transferproductamount, null, 0);?><?php echo $_smarty_tpl->tpl_vars['data']->value->transferproductamount;?>
</td>
                            <?php if ($_smarty_tpl->tpl_vars['loadData']->value[0]->priceType!=''&&$_smarty_tpl->tpl_vars['loadData']->value[0]->priceType!='hide'){?> <td class="<?php if ($_smarty_tpl->tpl_vars['usergroupdata']->value->hideBillPrices==1){?>hidden noprint<?php }?>" style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.01);border: 0 none;margin: 0;padding: 6px 10px;text-align: center;"><?php $_smarty_tpl->tpl_vars['totalPrice'] = new Smarty_variable($_smarty_tpl->tpl_vars['totalPrice']->value+$_smarty_tpl->tpl_vars['data']->value->price, null, 0);?><?php echo $_smarty_tpl->tpl_vars['data']->value->price;?>
</td><?php }?>
                            <td class="" style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.01);border: 0 none;margin: 0;padding: 6px 10px;text-align: center;"><?php echo $_smarty_tpl->tpl_vars['data']->value->comment;?>
</td>
                        </tr>
                        <?php } ?>
                        <tr <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->print_amount;?>
<?php $_tmp5=ob_get_clean();?><?php if ($_tmp5==1&&($_smarty_tpl->tpl_vars['loadData']->value[0]->priceType==''||$_smarty_tpl->tpl_vars['loadData']->value[0]->priceType=='hide')){?> hidden <?php }?> >
                            <th

                                colspan="4"
                                >الاجمالى </th>
                            <th <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->print_amount;?>
<?php $_tmp6=ob_get_clean();?><?php if ($_tmp6==1){?> hidden <?php }?> style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.09);border-bottom: 1px solid #cccccc;font-weight: bold;padding: 8px 10px;text-align: center;border: 0 none;"><?php echo $_smarty_tpl->tpl_vars['totalPieces']->value;?>
</th>
                            <?php if ($_smarty_tpl->tpl_vars['loadData']->value[0]->priceType!=''&&$_smarty_tpl->tpl_vars['loadData']->value[0]->priceType!='hide'){?><th class="<?php if ($_smarty_tpl->tpl_vars['usergroupdata']->value->hideBillPrices==1){?>hidden noprint<?php }?>" style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.09);border-bottom: 1px solid #cccccc;font-weight: bold;padding: 8px 10px;text-align: center;border: 0 none;"><?php echo $_smarty_tpl->tpl_vars['totalPrice']->value;?>
</th><?php }?>
                            <th class=""></th>
                        </tr>
                    </table>
                    <br />
                    <br /><br /><br /><br /><br />
                    <p>* استلمت البضاعة الموضحة عالية بعد المعاينة والقبول بصفة امانة وهذا اقرار مني ولا يعتبر هذا الاذن مسدد الا بعد تسليم الأصل</p><br />
                    <center>
                        <table width="100%" class="table-black mydevl">
                            <tr>
                                <td style="text-align:center"><strong>استلام العميل</strong></td>
                                <td style="text-align:center"><strong>استلام ال<?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->delegate_seller==0){?> بائع <?php }elseif($_smarty_tpl->tpl_vars['Programsettingdata']->value->delegate_seller==1){?>مندوب <?php }elseif($_smarty_tpl->tpl_vars['Programsettingdata']->value->delegate_seller==2){?>طبيب <?php }?></strong></td>
                            </tr>
                        </table>
                    </center>
                    <br /><br /><br /><br /><br />
                </td>
            </tr>
        </table>
        <?php }?>

        <div class="form-group noprint row" style="direction: rtl;">
            <div class="col-lg-offset-2 col-lg-4">
                <button type="button" onclick="window.print();"  class="btn btn-success pull-right noprint" style="margin-right: 50%">طباعة</button>
            </div>
        </div>

    </body>
</html>


<script>
    window.print();
</script>
<?php }} ?>