<?php /* Smarty version Smarty-3.1.11, created on 2024-08-15 11:33:04
         compiled from "../views/obgy/organizations/refer_edit.html" */ ?>
<?php /*%%SmartyHeaderCode:125883747666bdbd401c5dd6-66202665%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '9fb8670330c82fbe76be0d75ac0cc610a9ae05e2' => 
    array (
      0 => '../views/obgy/organizations/refer_edit.html',
      1 => 1722746644,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '125883747666bdbd401c5dd6-66202665',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'hosturl' => 0,
    'controllname' => 0,
    'refer' => 0,
    'price_lists' => 0,
    'one' => 0,
    'sales_persons' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66bdbd402729c3_25954620',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66bdbd402729c3_25954620')) {function content_66bdbd402729c3_25954620($_smarty_tpl) {?><style>
    table {
        font-family: arial, sans-serif;
        border-collapse: collapse;
        width: 100%;
        table-layout: fixed
    }

    td, th {
        border: 1px solid #000000;
        text-align: center;
        padding: 2px;
    }

    tr:nth-child(even) {
        background-color: #dddddd;
    }
</style>


<div class="page-content-wrapper">
    <div class="page-content">
        <div class="row">
            <div class="col-md-12 clinick invz" >
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">

                            <i class="fa fa-user"></i>Doctors
                        </div>
                        <div class="actions">
                            <a href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=refer_show"
                               class="btn btn-default btn-sm">
                                Show </a>
                        </div>
                    </div>

                    <div class="portlet-body all">
                        <div class="row">
                            <div class="portlet-body form">
                                <form action="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=refer_update" method="post">
                                    <div class="form-body">
                                        <div class="portlet box grey-cascade">
                                            <div class="portlet-body">
                                                <div class="row">
                                                    <table>
                                                        <tbody>
                                                            <tr>
                                                                <th class="wds20">Id</th>
                                                                <td>
                                                                    <input type="text" class="form-control " name="refer_id" value="<?php echo $_smarty_tpl->tpl_vars['refer']->value->refer_id;?>
"  required />
                                                                </td>
                                                            </tr>

                                                            <tr>
                                                                <th>Name</th>
                                                                <td>
                                                                    <input type="text" class="form-control " name="name" value="<?php echo $_smarty_tpl->tpl_vars['refer']->value->name;?>
" required />
                                                                </td>
                                                            </tr>

                                                            <tr>
                                                                <th>Phone No.</th>
                                                                <td>
                                                                    <input type="text" class="form-control " name="phone" value="<?php echo $_smarty_tpl->tpl_vars['refer']->value->phone;?>
" />
                                                                </td>
                                                            </tr>

                                                            <tr>
                                                                <th>Location</th>
                                                                <td>
                                                                    <input type="text" class="form-control " name="location" value="<?php echo $_smarty_tpl->tpl_vars['refer']->value->location;?>
" />
                                                                </td>
                                                            </tr>

                                                            <tr>
                                                                <th>Cash Transfer % </th>
                                                                <td>
                                                                    <input type="text" class="form-control " name="cash_transfer" value="<?php echo $_smarty_tpl->tpl_vars['refer']->value->cash_transfer;?>
" />
                                                                </td>
                                                            </tr>

                                                            <tr>
                                                                <th>Email</th>
                                                                <td>
                                                                    <input type="text" class="form-control " name="email" value="<?php echo $_smarty_tpl->tpl_vars['refer']->value->email;?>
" />
                                                                </td>

                                                            </tr>

                                                            <tr>
                                                                <th>Dr Specialist Group</th>
                                                                <td>
                                                                    <input type="text" class="form-control " name="specialist_group" value="<?php echo $_smarty_tpl->tpl_vars['refer']->value->specialist_group;?>
" />
                                                                </td>
                                                            </tr>

                                                            <tr>
                                                                <th>Price List</th>
                                                                <td>
                                                                    <select  class="form-control select2h"  name="price_list">
                                                                        <option value="">choose</option>
                                                                        <?php  $_smarty_tpl->tpl_vars['one'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['one']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['price_lists']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['one']->key => $_smarty_tpl->tpl_vars['one']->value){
$_smarty_tpl->tpl_vars['one']->_loop = true;
?>
                                                                        <option value="<?php echo $_smarty_tpl->tpl_vars['one']->value['id'];?>
" <?php if ($_smarty_tpl->tpl_vars['refer']->value->price_list==$_smarty_tpl->tpl_vars['one']->value['id']){?> selected <?php }?> ><?php echo $_smarty_tpl->tpl_vars['one']->value['name'];?>
</option>
                                                                        <?php } ?>
                                                                    </select> 
                                                                </td>
                                                            </tr>

                                                            <tr>
                                                                <th>Sales Person</th>
                                                                <td>
                                                                    <select  class="form-control sales_persons"  name="sales_persons"
                                                                             id="sales_persons">
                                                                        <option value="">choose</option>
                                                                        <?php  $_smarty_tpl->tpl_vars['one'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['one']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['sales_persons']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['one']->key => $_smarty_tpl->tpl_vars['one']->value){
$_smarty_tpl->tpl_vars['one']->_loop = true;
?>
                                                                        <option value="<?php echo $_smarty_tpl->tpl_vars['one']->value['id'];?>
"  <?php if ($_smarty_tpl->tpl_vars['refer']->value->sales_persons==$_smarty_tpl->tpl_vars['one']->value['id']){?> selected <?php }?> ><?php echo $_smarty_tpl->tpl_vars['one']->value['name'];?>
</option>
                                                                        <?php } ?>
                                                                        <option value="-1" class="deleteoptincompo">تعديل </option>
                                                                    </select>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </div>
                                            </div>
                                        </div>

                                    </div>


                                    <div class="form-actions">
                                        <div class="row">
                                            <div class="col-md-offset-3 col-md-4 fright">
                                                <input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['refer']->value->id;?>
"  />
                                                <button type="submit" class="btn green">Save</button>
                                                <a href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=refer_show"
                                                   class="btn default">
                                                    Cancel </a>
                                            </div>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>



<div  id="editModalDiv"></div><?php }} ?>