<?php /* Smarty version Smarty-3.1.11, created on 2024-11-14 07:28:18
         compiled from "../views/obgy/organizations/price_lists.html" */ ?>
<?php /*%%SmartyHeaderCode:48639032267358a72160754-39031615%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'cda679a182f161e4aa6464b91bbade6131af46b8' => 
    array (
      0 => '../views/obgy/organizations/price_lists.html',
      1 => 1721881426,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '48639032267358a72160754-39031615',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'notAll' => 0,
    'maintableName' => 0,
    'selectId' => 0,
    'alldata' => 0,
    'i' => 0,
    'mydata' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_67358a722b2733_98158790',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_67358a722b2733_98158790')) {function content_67358a722b2733_98158790($_smarty_tpl) {?>

<button type="button" class="btn btn-xs blue fright" id="addRowList" data-notAll="<?php echo $_smarty_tpl->tpl_vars['notAll']->value;?>
"
        data-tableName="<?php echo $_smarty_tpl->tpl_vars['maintableName']->value;?>
" data-selectId="<?php echo $_smarty_tpl->tpl_vars['selectId']->value;?>
"><i class="fa fa-plus"></i> إضافة</button>
<input type="hidden" id="listItr" value="<?php echo count($_smarty_tpl->tpl_vars['alldata']->value);?>
">
<div class="clearfix"></div>

<table  dir="rtl" class="wds100">
    <thead>
        <tr>
            <th class="txtc" rowspan="2">الاسم</th>
            <th class="txtc wds7" rowspan="2">حذف</th>
        </tr>
    </thead>
    <tbody  id="ListContainer">
        <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
        <?php  $_smarty_tpl->tpl_vars['mydata'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['mydata']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['alldata']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['mydata']->key => $_smarty_tpl->tpl_vars['mydata']->value){
$_smarty_tpl->tpl_vars['mydata']->_loop = true;
?>
        <tr>
            <td >
                <input type="text" class="form-control updateElement"  id="name<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"
                       data-itr="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['mydata']->value->id;?>
"  value='<?php echo $_smarty_tpl->tpl_vars['mydata']->value->name;?>
'
                       data-colName="name" data-tableName="<?php echo $_smarty_tpl->tpl_vars['maintableName']->value;?>
" >
            </td>
            <td>
                <a href="#" class="btn red fleft deleteelement" data-id="<?php echo $_smarty_tpl->tpl_vars['mydata']->value->id;?>
" data-link="visits" 
                   data-fun="delAjax" data-tableName="<?php echo $_smarty_tpl->tpl_vars['maintableName']->value;?>
"  style="padding: 2px 0px;width: 100%">
                    <i class="fa fa-times" ></i>
                </a>
            </td>
        </tr>
        <?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 } ?>
    </tbody>
</table><?php }} ?>