<?php /* Smarty version Smarty-3.1.11, created on 2025-01-19 17:06:55
         compiled from "../views/default/partnerview/show.html" */ ?>
<?php /*%%SmartyHeaderCode:813077400678d150f49fdd1-31586130%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7444aebf36997aba3ef95fb72b00621fb247a1b4' => 
    array (
      0 => '../views/default/partnerview/show.html',
      1 => 1672089200,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '813077400678d150f49fdd1-31586130',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'youtubes' => 0,
    'outputString' => 0,
    'partnerData' => 0,
    'partner' => 0,
    'i' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_678d150f5b36f4_29495207',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_678d150f5b36f4_29495207')) {function content_678d150f5b36f4_29495207($_smarty_tpl) {?>
<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#">خصائص عامة</a></li>
            <li><a href="partnerController.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="<?php echo $_smarty_tpl->tpl_vars['youtubes']->value[6]->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="partnerController.php" class="hidden-print"><input type="button"  id="submit" style="margin-left: 12px" class="btn btn-primary pull-left " value="إضافة جديد"/></a>
            </div>
            <div class="panel-heading">عرض الشركاء</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>
            </div>

            <!-- Table -->
            
            <form method="post" action="partnerController.php?do=executeOperation" onsubmit="if (Spry.Widget.Form.validate(this)) {
                  return countChoosenProducts('partnerController');
              } else {
                  return false;
              }">
                
                <table class="table table-black">
                    <thead>
                        <tr>
                            <th>
                                <input type="checkbox" name="checkAll" id="checkAll" class="hidden-print"/>
                            </th>
                            <th>اسم الشريك</th>
                            <th>قيمة الشراكة</th>
                            <th>نسبة الشراكة</th>
                            <th>مسحوبات الشريك </th>
                            <!-- <th>مسحوبات الشريك سحب</th> -->
                            <!-- <th>الاجمالى بين الايداع والسحب</th> -->
                            <th class="hidden-print">تعديل</th>
                            <th class="hidden-print">ايقاف</th>
                        </tr>
                    </thead>
                    <tbody>

                        <?php  $_smarty_tpl->tpl_vars['partner'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['partner']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['partnerData']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['partner']->key => $_smarty_tpl->tpl_vars['partner']->value){
$_smarty_tpl->tpl_vars['partner']->_loop = true;
?>
                        <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['partner']->value->conditions;?>
<?php $_tmp1=ob_get_clean();?><?php if ($_tmp1==1){?>
                        <tr class="danger"> <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['partner']->value->conditions;?>
<?php $_tmp2=ob_get_clean();?><?php if ($_tmp2==0){?>

                        <tr> <?php }}?>
                            <td>
                                <input type="checkbox" name="choosedItem[]" id="checked<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" class="choosenItem hidden-print" value="<?php echo $_smarty_tpl->tpl_vars['partner']->value->partnerid;?>
" />
                            </td>
                            <td><?php echo $_smarty_tpl->tpl_vars['partner']->value->partnername;?>
</td>
                            <td><?php echo $_smarty_tpl->tpl_vars['partner']->value->partnermoney;?>
</td>
                            <td><?php echo $_smarty_tpl->tpl_vars['partner']->value->partnerpercentage;?>
%</td>
                           <!--  <td><?php echo $_smarty_tpl->tpl_vars['partner']->value->totalone;?>
</td>
                            <td><?php echo $_smarty_tpl->tpl_vars['partner']->value->totaltwo;?>
</td> -->
                            <td><?php echo $_smarty_tpl->tpl_vars['partner']->value->totalall;?>
</td>
                            <td class="hidden-print"> <a href="partnerController.php?do=edit&partnerid=<?php echo $_smarty_tpl->tpl_vars['partner']->value->partnerid;?>
" type="button" class="btn btn-default btn-lg editicon"></a> </td>
                            <td class="hidden-print"> <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['partner']->value->conditions;?>
<?php $_tmp3=ob_get_clean();?><?php if ($_tmp3==1){?> <a href="partnerController.php?do=returndelete&partnerid=<?php echo $_smarty_tpl->tpl_vars['partner']->value->partnerid;?>
&action=<?php echo $_smarty_tpl->tpl_vars['partner']->value->dailyentryid;?>
" type="button" class="btn btn-default btn-lg correcticon"></a> <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['partner']->value->conditions;?>
<?php $_tmp4=ob_get_clean();?><?php if ($_tmp4==0){?> <a href="partnerController.php?do=tempdelete&partnerid=<?php echo $_smarty_tpl->tpl_vars['partner']->value->partnerid;?>
&action=<?php echo $_smarty_tpl->tpl_vars['partner']->value->dailyentryid;?>
" type="button" class="btn btn-default btn-lg removeicon"></a> <?php }}?> </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>
                        </div>
                    </div>
                    <div class="clearfix"></div>
                </div>
            </form>
            <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">طباعة</button>
                        </div>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
        </div>
    </div>
</div>

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