<?php /* Smarty version Smarty-3.1.11, created on 2024-03-13 19:24:23
         compiled from "../views/default/typesview/show.html" */ ?>
<?php /*%%SmartyHeaderCode:169117931565f1e147b29815-74070193%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '711603c214271994717497b4fe8aa27ed20d8567' => 
    array (
      0 => '../views/default/typesview/show.html',
      1 => 1693253996,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '169117931565f1e147b29815-74070193',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'message' => 0,
    'youtubes' => 0,
    'allbranches' => 0,
    'i' => 0,
    'data' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_65f1e147bbc867_04080190',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_65f1e147bbc867_04080190')) {function content_65f1e147bbc867_04080190($_smarty_tpl) {?>

<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#"> صيانه</a></li>
            <li><a href="typeClientController.php?do=show"> نوع العميل </a></li>
            <li class="active"> عرض نوع العميل</li>

        </ol>


        <div class="panel panel-default panel-m">

            <div class="panel-heading" style="padding:5px 15px 15px">
                <h3 class="panel-title" style="display: inline-block;"> عرض نوع العميل <br />
                    <?php if ($_smarty_tpl->tpl_vars['message']->value!=''){?>
                    <?php echo $_smarty_tpl->tpl_vars['message']->value;?>

                    <?php }?></h3>
                <a href="<?php echo $_smarty_tpl->tpl_vars['youtubes']->value[14]->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="typeClientController.php" class="hidden-print"><input type="button"  id="submit" style="margin-left: 12px" class="btn btn-primary pull-left " value="إضافة جديد"/></a>
            </div> class="btn btn-primary pull-left " value="إضافة جديد"/></a>
            </div>

        <hr/>



        <table class="table table-black dataTableClass">
            <thead>
                <tr>
                    <th  class="hidden-print">
                        <input type="checkbox" name="checkAll" id="checkAll"/></th>
                    <th> نوع العميل</th>

                    <th>التاريخ</th>

                    <th class="hidden-print">تعديل</th>
                    <th class="hidden-print"> ايقاف</th>
                    <th class="hidden-print"> حذف نهائى </th>
                </tr>
            </thead>
            <tbody>
                <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
                <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allbranches']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value){
$_smarty_tpl->tpl_vars['data']->_loop = true;
?>


                <tr class="noprint">
                    <td class="hidden-print">
                        <input type="checkbox" name="choosedItem[]" id="checked<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" class="choosenItem" value="" /></td>
                    <td><?php echo $_smarty_tpl->tpl_vars['data']->value->typeName;?>
</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['data']->value->typeDate;?>
</td>


                    <td class="hidden-print"> <a href="typeClientController.php?do=edit&id=<?php echo $_smarty_tpl->tpl_vars['data']->value->typeId;?>
" type="button" class="btn btn-default btn-lg editicon"></a> </td>

                    <td class="hidden-print"> <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->conditions;?>
<?php $_tmp1=ob_get_clean();?><?php if ($_tmp1==0){?> <a href="typeClientController.php?do=tempdelete&id=<?php echo $_smarty_tpl->tpl_vars['data']->value->typeId;?>
" type="button" class="btn btn-default btn-lg removeicon"></a> <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->conditions;?>
<?php $_tmp2=ob_get_clean();?><?php if ($_tmp2==1){?> <a href="typeClientController.php?do=returndelete&id=<?php echo $_smarty_tpl->tpl_vars['data']->value->typeId;?>
" type="button" class="btn btn-default btn-lg correcticon"></a> <?php }}?> </td>
                    <td  class="hidden-print"> <a href="typeClientController.php?do=delete&id=<?php echo $_smarty_tpl->tpl_vars['data']->value->typeId;?>

                                                  " name="dd" type="button" class="btn btn-default btn-lg deleteicon conformdel1" data-position=""  onClick="if (confirm(' متأكد انك تريد الحذف ؟') == false)
                                                              return false;"></a></td>

                </tr>
                <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable($_smarty_tpl->tpl_vars['i']->value+1, null, 0);?>
                <?php } ?>

            </tbody>

        </table>
        </div>

        <div class="clearfix"></div>
        <hr />


        <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 class="clearfix"></div>
    </div>

</div>
<?php }} ?>