<?php /* Smarty version Smarty-3.1.11, created on 2023-08-24 16:33:15
         compiled from "..\views\obgy\_member\edit.html" */ ?>
<?php /*%%SmartyHeaderCode:2958064e76a2b6b1c21-47600358%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '07b69da7658f42221ddfe36d87aba495aac8526a' => 
    array (
      0 => '..\\views\\obgy\\_member\\edit.html',
      1 => 1679872472,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2958064e76a2b6b1c21-47600358',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'shcontrollname' => 0,
    'breadcrumbs' => 0,
    'hosturl' => 0,
    'controllname' => 0,
    'user' => 0,
    'roles' => 0,
    'single' => 0,
    'branches' => 0,
    'specials' => 0,
    'positions' => 0,
    'erpdb' => 0,
    'drs' => 0,
    'related_drs' => 0,
    'related_dr_all' => 0,
    'system_type' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_64e76a2bb3ce97_91417987',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_64e76a2bb3ce97_91417987')) {function content_64e76a2bb3ce97_91417987($_smarty_tpl) {?><!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
    <div class="page-content">
        <!-- BEGIN PAGE HEADER-->
        <h3 class="page-title">
            <?php echo $_smarty_tpl->tpl_vars['shcontrollname']->value;?>

        </h3>
        <div class="page-bar">
            <ul class="page-breadcrumb">
                <?php echo $_smarty_tpl->tpl_vars['breadcrumbs']->value;?>

            </ul>
        </div>
        <!-- END PAGE HEADER-->
        <!-- BEGIN PAGE CONTENT-->
        <div class="row">
            <div class="col-md-12">
                <div class="portlet light bg-inverse">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="icon-equalizer font-red-sunglo"></i>
                            <span class="caption-subject font-red-sunglo bold uppercase">Edit in <?php echo $_smarty_tpl->tpl_vars['shcontrollname']->value;?>
</span>
                        </div>
                        <div class="actions">
                            <a class="btn default btn-xs blue tooltips" href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=show" data-container="body" data-placement="top" data-original-title="Show">
                                <i class="icon-list"></i>
                                Show items
                            </a>
                        </div>
                    </div>
                    <div class="portlet-body form">
                        <!-- BEGIN FORM-->
                        <form action="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=updateit" method="post" 
                              class="form-horizontal" id="member_form" enctype="multipart/form-data">
                            <div class="form-body">
                                <div class="alert alert-danger display-hide">
                                    <button class="close" data-close="alert"></button>
                                    You have errors, see it again.
                                </div>
                                <div class="alert alert-success display-hide">
                                    <button class="close" data-close="alert"></button>
                                    You are good, GO ON.
                                </div>

                                <h3 class="form-section">My info</h3>
                                <div class="form-group form-md-line-input has-info">
                                    <div class="input-group">
                                        <span class="input-group-addon">
                                            <i class="fa fa-user-md"></i>
                                        </span>
                                        <input type="text" class="form-control" placeholder="My name" name="name" value="<?php echo $_smarty_tpl->tpl_vars['user']->value['name'];?>
">
                                        <label for="form_control_1">My name</label>
                                    </div>
                                </div>
                                <div class="form-group form-md-line-input has-info">
                                    <div class="input-group">
                                        <span class="input-group-addon">
                                            <i class="fa fa-envelope"></i>
                                        </span>
                                        <input type="text" class="form-control" placeholder="Email Address" name="emaile" id="email" value="<?php echo $_smarty_tpl->tpl_vars['user']->value['user_email'];?>
" data-edit="<?php echo $_smarty_tpl->tpl_vars['user']->value['user_email'];?>
">
                                        <label for="form_control_1">Email Address</label>
                                    </div>
                                    <div class="alert alert-warning display-hide" id="showerroremail">
                                        <button class="close" data-close="alert"></button>
                                        Use another one , this used before with other user.
                                    </div>
                                </div>

                                <div class="col-md-12">
                                    <div class="col-md-4">
                                        <div class="form-group form-md-line-input has-info">
                                            <div class="input-group">
                                                <span class="input-group-addon">
                                                    <i class="fa fa-users"></i>
                                                </span>
                                                <select class="form-control input-xlarge select2me input-sm select2-offscreen noborder" id="role" data-placeholder="Choose one" name="role">
                                                    <option value=""></option>
                                                    <?php  $_smarty_tpl->tpl_vars['single'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['single']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['roles']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['single']->key => $_smarty_tpl->tpl_vars['single']->value){
$_smarty_tpl->tpl_vars['single']->_loop = true;
?>
                                                    <option value="<?php echo $_smarty_tpl->tpl_vars['single']->value->id;?>
" <?php if ($_smarty_tpl->tpl_vars['single']->value->id==$_smarty_tpl->tpl_vars['user']->value['role_id']){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['single']->value->name;?>
</option>
                                                    <?php } ?>
                                                </select>
                                                <label for="form_control_1">Roles</label>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-md-4">
                                        <div class="form-group form-md-line-input has-info">
                                            <div class="input-group">
                                                <span class="input-group-addon">
                                                    <i class="fa fa-building"></i>
                                                </span>
                                                <select class="form-control input-xlarge select2me input-sm select2-offscreen noborder" multiple data-placeholder="Choose one" name="branch_id[]">
                                                    <option value=""></option>
                                                    <?php  $_smarty_tpl->tpl_vars['single'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['single']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['branches']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['single']->key => $_smarty_tpl->tpl_vars['single']->value){
$_smarty_tpl->tpl_vars['single']->_loop = true;
?>
                                                    <option value="<?php echo $_smarty_tpl->tpl_vars['single']->value->id;?>
" <?php if (in_array($_smarty_tpl->tpl_vars['single']->value->id,(explode(',',$_smarty_tpl->tpl_vars['user']->value['branch_id'])))){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['single']->value->name;?>
</option>
                                                    <?php } ?>
                                                </select>
                                                <label for="form_control_1">Branches</label>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-md-4" <?php if ($_smarty_tpl->tpl_vars['user']->value['role_id']==''){?>style="display: none;" <?php }?> id="specialDiv" >
                                        <div class="form-group form-md-line-input has-info">
                                            <div class="input-group">
                                                <span class="input-group-addon">
                                                    <i class="fa fa-users"></i>
                                                </span>
                                                <select class="form-control input-xlarge select2me input-sm select2-offscreen noborder"  id="special" data-placeholder="Choose one" name="special">
                                                    <option value=""></option>
                                                    <?php  $_smarty_tpl->tpl_vars['single'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['single']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['specials']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['single']->key => $_smarty_tpl->tpl_vars['single']->value){
$_smarty_tpl->tpl_vars['single']->_loop = true;
?>
                                                    <option value="<?php echo $_smarty_tpl->tpl_vars['single']->value->id;?>
" <?php if ($_smarty_tpl->tpl_vars['single']->value->id==$_smarty_tpl->tpl_vars['user']->value['specialid']){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['single']->value->name;?>
</option>
                                                    <?php } ?>
                                                </select>
                                                <label for="form_control_1">Specialization </label>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-md-4" <?php if ($_smarty_tpl->tpl_vars['user']->value['role_id']==''){?> style="display: none;" <?php }?> id="positionDiv" >
                                        <div class="form-group form-md-line-input has-info">
                                            <div class="input-group">
                                                <span class="input-group-addon">
                                                    <i class="fa fa-users"></i>
                                                </span>
                                                <select class="form-control input-xlarge select2me input-sm select2-offscreen noborder"  id="position" data-placeholder="Choose one" name="position">
                                                    <option value=""></option>
                                                    <?php  $_smarty_tpl->tpl_vars['single'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['single']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['positions']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['single']->key => $_smarty_tpl->tpl_vars['single']->value){
$_smarty_tpl->tpl_vars['single']->_loop = true;
?>
                                                    <option value="<?php echo $_smarty_tpl->tpl_vars['single']->value->id;?>
" <?php if ($_smarty_tpl->tpl_vars['single']->value->id==$_smarty_tpl->tpl_vars['user']->value['positionid']){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['single']->value->name;?>
</option>
                                                    <?php } ?>
                                                </select>
                                                <label for="form_control_1">Position</label>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-4" <?php if ($_smarty_tpl->tpl_vars['erpdb']->value==''){?> style="display: none;" <?php }?> id="erpSaveDiv" >
                                        <div class="form-group form-md-line-input has-info">
                                            <div class="input-group">
                                                <span class="input-group-addon">
                                                    <i class="fa fa-money"></i>
                                                </span>
                                                <input type="hidden" id="erpDBSave" name="erpDBSave" class="form-control input-xlarge input-sm noborder" data-placeholder="Select save ...">
                                                <input type="hidden" name="save" id="save" value="<?php echo $_smarty_tpl->tpl_vars['user']->value['erpsaveid'];?>
">
                                                <input type="hidden" name="erpdbsavename" id="erpdbsavename" value="<?php echo $_smarty_tpl->tpl_vars['user']->value['savename'];?>
">
                                                <label for="form_control_1">ERP Save</label>
                                            </div>
                                        </div>
                                    </div>

                                </div>

                                <div class="col-md-12">

                                    <div class="form-group form-md-line-input has-info col-md-7">
                                        <div class="input-group">
                                            <span class="input-group-addon">
                                                <i class="fa fa-users"></i>
                                            </span>
                                            <select multiple class="form-control input-xlarge select2me input-sm select2-offscreen noborder"   
                                                    data-placeholder="Choose" name="related_dr[]">
                                                <option value=""></option>
                                                <?php  $_smarty_tpl->tpl_vars['single'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['single']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['drs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['single']->key => $_smarty_tpl->tpl_vars['single']->value){
$_smarty_tpl->tpl_vars['single']->_loop = true;
?>
                                                <option value="<?php echo $_smarty_tpl->tpl_vars['single']->value['user_id'];?>
"  <?php if (in_array($_smarty_tpl->tpl_vars['single']->value['user_id'],$_smarty_tpl->tpl_vars['related_drs']->value)){?> selected="selected" <?php }?>><?php echo $_smarty_tpl->tpl_vars['single']->value['name'];?>
</option>
                                                <?php } ?>
                                            </select>
                                            <label for="form_control_1">Can Add Visits ToDoctors </label>
                                        </div>
                                    </div>

                                    <label class="wds10  fleft " style="text-align: center !important; margin-top: 20px;">OR  </label>

                                    <div class="form-group form-md-line-input has-info col-md-3">
                                        <div class="input-group">
                                            <input type="checkbox" class="form-control" name="related_dr_all" value="1" 
                                                   <?php if ($_smarty_tpl->tpl_vars['related_dr_all']->value==1){?> checked="" <?php }?> >
                                            <label for="form_control_1">To All Doctors  </label>
                                        </div>
                                    </div>

                                </div>

                                <div class="row">
                                    <div class="form-group form-md-line-input has-info col-md-6">
                                        <div>
                                            <input type="text" class="form-control" placeholder="رقم الترخيص" name="license_no" value="<?php echo $_smarty_tpl->tpl_vars['user']->value['license_no'];?>
" >
                                            <label for="form_control_1">رقم الترخيص  </label>
                                        </div>
                                    </div>

                                    <div class="form-group form-md-line-input has-info col-md-6">
                                        <div>
                                            <input type="text" class="form-control" placeholder="رقم القيد" name="register_no" value="<?php echo $_smarty_tpl->tpl_vars['user']->value['register_no'];?>
" >
                                            <label for="form_control_1"> رقم القيد</label>
                                        </div>
                                    </div>

                                </div>

                                <div class="col-md-6">
                                    <div class="form-group form-md-line-input has-info">
                                        <div class="input-group">
                                            <input type="checkbox" class="form-control" name="show_all_visits" value="1" 
                                                   <?php if ($_smarty_tpl->tpl_vars['user']->value['show_all_visits']==1){?> checked="" <?php }?> >
                                            <label for="form_control_1">Show All Visits in index Page  </label>
                                        </div>
                                    </div>
                                </div>

                                <div class="col-md-6">
                                    <div class="form-group form-md-line-input has-info">
                                        <div class="input-group">
                                            <input type="checkbox" class="form-control" name="tanks_settings" value="1" 
                                                   <?php if ($_smarty_tpl->tpl_vars['user']->value['tanks_settings']==1){?> checked="" <?php }?>>
                                            <label for="form_control_1">Show Tank Setting Btn in Embryos Lab Report </label>
                                        </div>
                                    </div>
                                </div>

                                <div id="loginInfoDiv" <?php if ($_smarty_tpl->tpl_vars['user']->value['positionid']==4||$_smarty_tpl->tpl_vars['user']->value['positionid']==5){?> style="display: none;"<?php }?>>
                                    <h3 class="form-section">Login info</h3>
                                    <div class="form-group form-md-line-input has-info">
                                        <div class="input-group">
                                            <span class="input-group-addon">
                                                <i class="fa fa-user"></i>
                                            </span>
                                            <input type="text" class="form-control" placeholder="Username" name="username" id="username" value="<?php echo $_smarty_tpl->tpl_vars['user']->value['user_name'];?>
" data-edit="<?php echo $_smarty_tpl->tpl_vars['user']->value['user_name'];?>
">
                                            <label for="form_control_1">Username</label>
                                        </div>
                                        <div class="alert alert-warning display-hide" id="showerrorusername">
                                            <button class="close" data-close="alert"></button>
                                            Use another one , this used before with other user.
                                        </div>
                                    </div>
                                    <div class="form-group form-md-line-input has-info">
                                        <div class="input-group">
                                            <span class="input-group-addon">
                                                <i class="fa fa-anchor"></i>
                                            </span>
                                            <input type="password" class="form-control" placeholder="New password" name="epassword" id="epassword">
                                            <label for="form_control_1">New password</label>
                                        </div>
                                    </div>
                                    <div class="form-group form-md-line-input has-info">
                                        <div class="input-group">
                                            <span class="input-group-addon">
                                                <i class="fa fa-anchor"></i>
                                            </span>
                                            <input type="password" class="form-control" placeholder="Confirm new password" name="econfirmpassword" id="confirmpassword" >
                                            <label for="form_control_1">Confirm new password</label>
                                        </div>
                                    </div>
                                </div>
                                <input type="hidden" id="id" name="id" value="<?php echo $_smarty_tpl->tpl_vars['user']->value['user_id'];?>
" />
                                <input type="hidden" name="oldpassword" value="<?php echo $_smarty_tpl->tpl_vars['user']->value['user_password_hash'];?>
" />

                                <?php if ($_smarty_tpl->tpl_vars['system_type']->value==2){?>
                                <div id="accountInfoDiv" class="col-md-12">

                                    <h3 class="form-section">Accounting info</h3>
                                    <div class="form-group form-md-line-input has-info col-md-4">
                                        <div>
                                            <input type="text" class="form-control" placeholder="Hour price "
                                                   name="hour_price" id="hour_price" required="" value="<?php echo $_smarty_tpl->tpl_vars['user']->value['hour_price'];?>
">
                                            <label for="hour_price">Hour price </label>
                                        </div>
                                    </div>
                                </div>
                                <?php }elseif($_smarty_tpl->tpl_vars['system_type']->value==3){?>
                                <div id="accountInfoDiv" class="col-md-12">

                                    <h3 class="form-section">Accounting info</h3>
                                    <!--div class="form-group form-md-line-input has-info col-md-4">
                                        <div>
                                            <input type="text" class="form-control" placeholder="Hour price "
                                                   name="normal_per" id="normal_per" required="" value="<?php echo $_smarty_tpl->tpl_vars['user']->value['normal_per'];?>
">
                                            <label for="normal_per">Normal  % </label>
                                        </div>
                                    </div-->

                                    <div class="form-group form-md-line-input has-info col-md-4">
                                        <div>
                                            <input type="text" class="form-control" placeholder="Hour price "
                                                   name="pulse_per" id="pulse_per" required="" value="<?php echo $_smarty_tpl->tpl_vars['user']->value['pulse_per'];?>
">
                                            <label for="pulse_per">Pulse  % </label>
                                        </div>
                                    </div>

                                    <div class="form-group form-md-line-input has-info col-md-4">
                                        <div>
                                            <input type="text" class="form-control" placeholder="Hour price "
                                                   name="session_per" id="session_per" required="" value="<?php echo $_smarty_tpl->tpl_vars['user']->value['session_per'];?>
">
                                            <label for="session_per">Session % </label>
                                        </div>
                                    </div>
                                </div>
                                <?php }?>

                                <div class="form-group form-md-line-input has-info" >
                                    <label class="col-md-2" for="form_control_1">Image</label>
                                    <div class="col-md-10" style="margin-bottom: 2%;">
                                        <div class="fileinput fileinput-new" data-provides="fileinput">
                                            <div class="fileinput-preview thumbnail" data-trigger="fileinput" style="width: 200px; height: 150px;">
                                                <img src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/mambers/<?php echo $_smarty_tpl->tpl_vars['user']->value['image'];?>
"/>
                                            </div>
                                            <input type="hidden" id="imageurl" name="imageurl" value="<?php echo $_smarty_tpl->tpl_vars['user']->value['image'];?>
" />
                                            <div>
                                                <span class="btn default btn-file">
                                                    <span class="fileinput-new"> Select image </span>
                                                    <span class="fileinput-exists"> Change </span>
                                                    <input type="file" name="memberImage" id="memberImage"  class=" form-control">
                                                </span> <a href="#" class="btn red fileinput-exists" data-dismiss="fileinput"> Remove </a> </div>
                                        </div>

                                    </div>
                                </div>

                            </div>
                            <div class="form-actions">
                                <div class="row">
                                    <div class="col-md-offset-3 col-md-4">
                                        <button type="submit" class="btn green">Update</button>
                                        <button type="button" class="btn default rtnshow" data-controll="<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
">Cancel</button>
                                    </div>
                                </div>
                            </div>
                        </form>
                        <!-- END FORM-->
                    </div>
                </div>
            </div>
        </div>
        <!-- END PAGE CONTENT-->
    </div>
</div>
<!-- END CONTENT --><?php }} ?>