<?php /* Smarty version Smarty-3.1.11, created on 2024-08-17 09:11:25
         compiled from "../views/obgy/patients/new_patno.html" */ ?>
<?php /*%%SmartyHeaderCode:86636029866c03f0d1d3e58-56455721%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '0f1eec332502be06cd24634b62e982216b98f801' => 
    array (
      0 => '../views/obgy/patients/new_patno.html',
      1 => 1722920756,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '86636029866c03f0d1d3e58-56455721',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'orgPatNo' => 0,
    'organizations' => 0,
    'row' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66c03f0d251ca5_86699702',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66c03f0d251ca5_86699702')) {function content_66c03f0d251ca5_86699702($_smarty_tpl) {?><div class="row">
    <input type="hidden" id="newOrgPatNo" value="<?php echo $_smarty_tpl->tpl_vars['orgPatNo']->value->id;?>
"/>
    <div class="col-md-5">
        <div class="form-group form-md-line-input form-md-floating-label has-info">
            <input type="text"   class="form-control updateElement"
                   data-colName="patient_no" data-tableName="organizations_patient_no"
                   data-id="<?php echo $_smarty_tpl->tpl_vars['orgPatNo']->value->id;?>
"     value="<?php echo $_smarty_tpl->tpl_vars['orgPatNo']->value->patient_no;?>
"   />
            <label for="form_control_1" class="txtc">الرقم  </label>
        </div>
    </div>

    <div class="col-md-5">
        <div class="form-group form-md-line-input form-md-floating-label has-info">
            <select  class="form-control  updateElement" id="orgPatNoOrgId_<?php echo $_smarty_tpl->tpl_vars['orgPatNo']->value->id;?>
"
                     placeholder="اختر  "   data-tableName="organizations_patient_no"
                     data-colName="organization_id" data-id="<?php echo $_smarty_tpl->tpl_vars['orgPatNo']->value->id;?>
" >
                <option value="0" selected>لا يوجد </option>
                <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['organizations']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>
                <option value="<?php echo $_smarty_tpl->tpl_vars['row']->value->id;?>
" <?php if ($_smarty_tpl->tpl_vars['orgPatNo']->value->organization_id==$_smarty_tpl->tpl_vars['row']->value->id){?>selected<?php }?>  ><?php echo $_smarty_tpl->tpl_vars['row']->value->organization_name;?>
</option>
                <?php } ?>
            </select>
            <label for="form_control_1" class="txtc"> </label>
            <span class="input-group-addon go2r">تابع ل    </span>
        </div>
    </div>



    <div class="col-md-1" style="margin-top: 25px;">
        <a class="btn grey-cascade btn-xs deletemsgEX"
           data-tableName="organizations_patient_no"
           data-id="<?php echo $_smarty_tpl->tpl_vars['orgPatNo']->value->id;?>
" style=" float: left;" href="#"
           data-link="instruction" data-fn="delinst">  <i class="fa fa-close"></i>
        </a>
    </div>

</div>



<script type="text/javascript" >
    var id = $('#newOrgPatNo').val();
    $('#newOrgPatNo').remove();
    $("#orgPatNoOrgId_" + id).select2({placeholder: "Select", allowClear: true});
</script>
<?php }} ?>