<?php /* Smarty version Smarty-3.1.11, created on 2024-10-02 14:20:40
         compiled from "..\views\default\sellbillview\editpermissionmore.html" */ ?>
<?php /*%%SmartyHeaderCode:1391866fd2c88e5f454-16772064%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '38398ea2c48d3dc08ccfcc666bd482714b370f5d' => 
    array (
      0 => '..\\views\\default\\sellbillview\\editpermissionmore.html',
      1 => 1672089200,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1391866fd2c88e5f454-16772064',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'billsettingsData' => 0,
    'allstor' => 0,
    'i' => 0,
    'storitr' => 0,
    'sellbillData' => 0,
    'Programsettingdata' => 0,
    'myallstor' => 0,
    'x' => 0,
    'mysellbilldetailData' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66fd2c89234f69_34172539',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66fd2c89234f69_34172539')) {function content_66fd2c89234f69_34172539($_smarty_tpl) {?><html>
    <head>

        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title>GT4</title>
        <style type="text/css">
        </style>
        <style>
            .td td
            {
                border-right-widtd: 1px;
                border-bottom-widtd: 1px;
                border-left-widtd: 0px;
                border-top-style: none;
                border-right-style: dotted;
                border-bottom-style: solid;
                border-left-style: none;
                border-bottom-color: #999;
                font-size: 15px;
                border-right-color: #999;
            }
            .NEE
            {
                font-size: 14px;
            }
            .newdesign
            {
                font-size: 14px;
            }
            .copywrites
            {
                font-size: 11px;
            }
        </style>


    </head>
    <script src="../views/default/assets/js/jquery.js"></script>


    

    <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>
        .td td
        {
            border-right-widtd: 1px;
            border-bottom-widtd: 1px;
            border-left-widtd: 0px;
            border-top-style: none;
            border-right-style: dotted;
            border-bottom-style: solid;
            border-left-style: none;
            border-bottom-color: #999;
            font-size: 15px;
            border-right-color: #999;
        }
        .NEE
        {
            font-size: 14px;
        }
        .newdesign
        {
            font-size: 14px;
        }
        .copywrites
        {
            font-size: 11px;
        }
    </style>
    <style>
        .td td
        {
            border-right-widtd: 1px;
            border-bottom-widtd: 1px;
            border-left-widtd: 0px;
            border-top-style: none;
            border-right-style: dotted;
            border-bottom-style: solid;
            border-left-style: none;
            border-bottom-color: #999;
            font-size: 15px;
            border-right-color: #999;
        }
        .NEE
        {
            font-size: 14px;
        }
        .newdesign
        {
            font-size: 14px;
        }
        .copywrites
        {
            font-size: 11px;
        }
        .style2 {
            font-family: tahoma
        }
        .style4 {font-family: tahoma; font-size: 12px; font-weight: bold; }
        .serial {
            background-color: #C8C8C8;
            height: 20px;
            width: 150px;
            padding: 5px;
            margin: 5px;
            border: medium double #000000;
            text-align: center;
        }
        .style1 {
            font-size: 12px
        }
        .page-breakx{
            page-break-after: always;
        }
    </style>
    
    <body onLoad="printDiv()">
        <div align="center" id="printdiv" >
            <b>

                <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[25]->billsettingsvalue;?>
<?php $_tmp1=ob_get_clean();?><?php if ($_tmp1==0){?>



                <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
                <?php  $_smarty_tpl->tpl_vars['myallstor'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallstor']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allstor']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallstor']->key => $_smarty_tpl->tpl_vars['myallstor']->value){
$_smarty_tpl->tpl_vars['myallstor']->_loop = true;
?>


                <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" class="table-black" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
<?php $_tmp2=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['storitr']->value;?>
<?php $_tmp3=ob_get_clean();?><?php if ($_tmp2<$_tmp3){?> class="page-breakx" <?php }?>>
                    <tr>
                        <td colspan="2"><div <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[15]->billsettingsvalue;?>
<?php $_tmp4=ob_get_clean();?><?php if ($_tmp4==0){?>  <?php }else{ ?> style="display:none !important" <?php }?> class="serial"><?php echo $_smarty_tpl->tpl_vars['sellbillData']->value->sellbillid;?>
</div></td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td colspan="2" align="right" class="style1"><img src="../views/default/images/upload/<?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->logo;?>
" alt="" width="134" height="49"><br>
                            <?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->phone;?>
</td>
                    </tr>

                    <tr>

                        <td></td>
                        <td></td>
                        <td colspan="2" align="center" class="style1">
                            <h1  style="float:right; text-align:center">اذن صرف</h1>
                        </td>

                    </tr>
                    <tr>

                        <td width="5%" height="26" align="right">&nbsp;</td>
                        <td width="4%" align="right">&nbsp;</td>
                        <td width="23%" align="right">&nbsp;</td>
                        <td width="23%" align="right">&nbsp;</td>

                        <td width="8%" colspan="2" align="right"><span class="style1 style2">التاريخ :<?php echo $_smarty_tpl->tpl_vars['sellbillData']->value->sellbillsysdate;?>
</span></td>
                    </tr>


                    <!-----------الدين بعد ------------------->

                    <tr>
                        <td align="right">&nbsp;</td>
                        <td align="right" nowrap>    المخزن : <?php echo $_smarty_tpl->tpl_vars['myallstor']->value->storeName;?>
 </td>
                        <td align="right">&nbsp;</td>


                        <td colspan="2" align="right" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[16]->billsettingsvalue;?>
<?php $_tmp5=ob_get_clean();?><?php if ($_tmp5==0){?>  <?php }else{ ?> style="display:none !important" <?php }?> > السيد :<?php echo $_smarty_tpl->tpl_vars['sellbillData']->value->tempclientName;?>
</td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <table width="100%" border="0" cellpadding="2" cellspacing="7" class="table-black">
                                <tr>


                                    <td align="center" bgcolor="#B4B4B4" class="style4">الكمية</td>
                                    <!--<td align="center" bgcolor="#B4B4B4" class="style4">الوحدة</td>

                                    <td align="center" bgcolor="#B4B4B4" class="style4">الباركود</td>-->
                                    <!--td align="center" bgcolor="#B4B4B4" class="style4">المخزن</td-->
                                    <td width="50%" align="center" bgcolor="#B4B4B4" class="style4">اسم المنتج</td>
                                    <td align="right" bgcolor="#B4B4B4" class="style4">م </td>
                                </tr>

                                <?php $_smarty_tpl->tpl_vars['x'] = new Smarty_variable(1, null, 0);?>
                                <?php  $_smarty_tpl->tpl_vars['mysellbilldetailData'.($_smarty_tpl->tpl_vars['i']->value)] = new Smarty_Variable; $_smarty_tpl->tpl_vars['mysellbilldetailData'.($_smarty_tpl->tpl_vars['i']->value)]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['sellbilldetailData'.($_smarty_tpl->tpl_vars['i']->value)]->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['mysellbilldetailData'.($_smarty_tpl->tpl_vars['i']->value)]->key => $_smarty_tpl->tpl_vars['mysellbilldetailData'.($_smarty_tpl->tpl_vars['i']->value)]->value){
$_smarty_tpl->tpl_vars['mysellbilldetailData'.($_smarty_tpl->tpl_vars['i']->value)]->_loop = true;
?>
                                <tr>



                                    <td align="center" class="style2 style1"> <?php echo $_smarty_tpl->tpl_vars['mysellbilldetailData'.($_smarty_tpl->tpl_vars['i']->value)]->value->sellbilldetailquantity;?>
 </td>
                                    <!--   <td align="center" class="style2 style1"><?php echo $_smarty_tpl->tpl_vars['mysellbilldetailData'.($_smarty_tpl->tpl_vars['i']->value)]->value->unitName;?>
 </td>

                                       <td align="center" class="style2 style1"><?php echo $_smarty_tpl->tpl_vars['mysellbilldetailData'.($_smarty_tpl->tpl_vars['i']->value)]->value->parcode;?>
</td>-->
                                    <!--td align="right" class="style2 style1"><?php echo $_smarty_tpl->tpl_vars['mysellbilldetailData'.($_smarty_tpl->tpl_vars['i']->value)]->value->storeName;?>
 </td-->
                                    <td align="right" class="style2 style1"><?php echo $_smarty_tpl->tpl_vars['mysellbilldetailData'.($_smarty_tpl->tpl_vars['i']->value)]->value->productName;?>
/<?php echo $_smarty_tpl->tpl_vars['mysellbilldetailData'.($_smarty_tpl->tpl_vars['i']->value)]->value->productCatName;?>
 </td>
                                    <td align="center" class="style2"><?php echo $_smarty_tpl->tpl_vars['x']->value;?>

                                    </td>
                                </tr>
                                <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'x', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['x']->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 } ?>
                            </table></td>
                    </tr>
                    <tr>

                        <td colspan="6"><hr /></td>
                    </tr>
                    <tr>
                        <td colspan="2"><table width="100%" border="0" cellpadding="2" cellspacing="7" class="table-black">

                                <tr>
                                    <!-----------الدين بعد ------------------->







                                    <td width="9%" align="center" bgcolor="#B4B4B4" class="style1">عدد الوحدات</td>

                                </tr>
                                <tr>

                                    <!-----------الدين بعد ------------------->








                                    <td align="center" class="style1">
                                        <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['mysellbilldetailDat'.($_smarty_tpl->tpl_vars['i']->value)]->value->sellQuantity;?>
<?php $_tmp6=ob_get_clean();?><?php if ($_tmp6<=0){?>
                                        <?php echo $_smarty_tpl->tpl_vars['quantity'.($_smarty_tpl->tpl_vars['i']->value)]->value;?>

                                        <?php }else{ ?>
                                        <?php echo $_smarty_tpl->tpl_vars['mysellbilldetailDat'.($_smarty_tpl->tpl_vars['i']->value)]->value->sellQuantity;?>

                                        <?php }?> </td>

                            </table></td>
                    </tr>
                    <tr>
                        <td height="130" colspan="6" align="right" valign="bottom"><span class="style1" style="direction:rtl"><strong><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->address;?>
</strong></span></td>
                    </tr>
                    <tr>
                        <td colspan="6"><p><span class="copywrites1">تصميم شركة جي تي فور 01110070882</span></p></td>
                    </tr>
                </table>

                <br><br>
                <div class="page-break"></div>
                <?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 } ?>




                <?php }else{ ?>

                <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
                <?php  $_smarty_tpl->tpl_vars['myallstor'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallstor']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allstor']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallstor']->key => $_smarty_tpl->tpl_vars['myallstor']->value){
$_smarty_tpl->tpl_vars['myallstor']->_loop = true;
?>

                <table width="97%" border="0" align="center" cellpadding="0" class="table-black"<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
<?php $_tmp7=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['storitr']->value;?>
<?php $_tmp8=ob_get_clean();?><?php if ($_tmp7<$_tmp8){?> class="page-breakx" <?php }?>cellspacing="0">
                    <tr>
                        <td width="148" height="115" align="left" valign="middle">&nbsp;</td>
                        <td width="142" colspan="2" align="right" valign="top">
                            <p><strong><img src="../views/default/images/upload/<?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->logo;?>
" alt="" width="122" height="75" /></strong></p> <br>
                            <?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->phone;?>
<br>
                        </td>
                    </tr>

                    <tr><td></td><td>
                            <table align="right" class="table-black">
                                <tr>
                                    <td   colspan="3" align="right" class="style1" dir="rtl">
                                        <h1  style="float:right; text-align:right">اذن صرف</h1>    </td>
                                </tr>



                                <tr <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[16]->billsettingsvalue;?>
<?php $_tmp9=ob_get_clean();?><?php if ($_tmp9==0){?>  <?php }else{ ?> style="display:none !important" <?php }?>>
                                    <td align="right">  <?php echo $_smarty_tpl->tpl_vars['sellbillData']->value->tempclientName;?>
</td>
                                    <td align="right"> / السيد  </td>

                                </tr>

                                <tr>
                                    <td align="right">  <?php echo $_smarty_tpl->tpl_vars['sellbillData']->value->sellbillsysdate;?>
</td>
                                    <td align="right"> : تاريخ البيان</td>
                                    <td>  </td>

                                </tr>

                                

                                <!-----------المخزن ------------------->
                                -
                                <tr>
                                    <td align="right">  <?php echo $_smarty_tpl->tpl_vars['myallstor']->value->storeName;?>
</td>
                                    <td align="right" > : اسم المخزن</td>
                                    <td>  </td>
                                </tr>

                            </table>
                        </td></tr>
                    <tr>


                        <td colspan="3" class="td"align="right">
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" dir="rtl" class="table-black">

                                <tr>
                                    <td align="center" bgcolor="#E8E8E8">م</td>

                                    <!--  <td align="center" bgcolor="#E8E8E8" class="wdt120">الباركود</td>-->

                                    <td align="center" bgcolor="#E8E8E8" c>اسم المنتج</td>
                                    <!--td align="center" bgcolor="#E8E8E8" c>المخزن </td-->



                                    <!--    <td align="center" bgcolor="#E8E8E8"  >الوحدة</td>-->
                                    <td align="center" bgcolor="#E8E8E8">العدد</td>





                                </tr>



                                <?php  $_smarty_tpl->tpl_vars['mysellbilldetailData'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['mysellbilldetailData']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['sellbilldetailData'.($_smarty_tpl->tpl_vars['i']->value)]->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['mysellbilldetailData']->index=-1;
foreach ($_from as $_smarty_tpl->tpl_vars['mysellbilldetailData']->key => $_smarty_tpl->tpl_vars['mysellbilldetailData']->value){
$_smarty_tpl->tpl_vars['mysellbilldetailData']->_loop = true;
 $_smarty_tpl->tpl_vars['mysellbilldetailData']->index++;
?>
                                <tr>
                                    <td align="center" ><?php echo $_smarty_tpl->tpl_vars['mysellbilldetailData']->index+1;?>
</td>
                                    <!--td align="center" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[20]->billsettingsvalue;?>
<?php $_tmp10=ob_get_clean();?><?php if ($_tmp10==0){?>  <?php }else{ ?> style="display:none !important" <?php }?>>

                                     <?php echo $_smarty_tpl->tpl_vars['mysellbilldetailData']->value->parcode;?>


                                    </td-->


                                    <td align="center">

                                        <?php echo $_smarty_tpl->tpl_vars['mysellbilldetailData']->value->productName;?>
/ <?php echo $_smarty_tpl->tpl_vars['mysellbilldetailData']->value->productCatName;?>


                                    </td>

                                    <!--td align="center"><?php echo $_smarty_tpl->tpl_vars['mysellbilldetailData']->value->storeName;?>
 </td-->


                                    <!--  <td align="center" >

                                        <?php echo $_smarty_tpl->tpl_vars['mysellbilldetailData']->value->unitName;?>


                                      </td>-->

                                    <td align="center">

                                        <?php echo $_smarty_tpl->tpl_vars['mysellbilldetailData']->value->sellbilldetailquantity;?>


                                    </td>












                                </tr>

                                <?php } ?>

                            </table>
                        </td>
                    </tr>


                    <tr>
                        <td height="54" colspan="3" align="right">
                            <table width="50%" border="0" align="left" cellpadding="0" cellspacing="0"  dir="rtl" class="td table-black">


                                <tr>
                                    <td>اجمالي  القطع</td>
                                    <td>
                                        <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['mysellbilldetailData']->value->sellQuantity;?>
<?php $_tmp11=ob_get_clean();?><?php if ($_tmp11<=0){?>
                                        <?php echo $_smarty_tpl->tpl_vars['quantity'.($_smarty_tpl->tpl_vars['i']->value)]->value;?>

                                        <?php }else{ ?>
                                        <?php echo $_smarty_tpl->tpl_vars['mysellbilldetailData']->value->sellQuantity;?>

                                        <?php }?>
                                    </td>
                                </tr>








                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" align="right"><p class="NEE"><strong><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->address;?>
</strong></p></td>
                    </tr>
                    <tr>
                        <td colspan="3" align="right"><p>&nbsp;</p>

                            <p><span class="copywrites"><span class="copywrites">تصميم شركة جي تي فور 01110070882...</span></span></p></td>
                    </tr>
                </table>


        </div>
        <?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 } ?>

        <?php }?>
    </b>
</div>
</body><?php }} ?>