<?php /* Smarty version Smarty-3.1.11, created on 2023-10-28 19:55:44
         compiled from "../views/obgy/_role/edit.html" */ ?>
<?php /*%%SmartyHeaderCode:128425720364d12f8a571ef0-19452816%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a6b7fdc9968827270703ed29f22fea5ceef33ff1' => 
    array (
      0 => '../views/obgy/_role/edit.html',
      1 => 1679875426,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '128425720364d12f8a571ef0-19452816',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_64d12f8a608ef9_14739946',
  'variables' => 
  array (
    'shcontrollname' => 0,
    'breadcrumbs' => 0,
    'hosturl' => 0,
    'controllname' => 0,
    'role' => 0,
    'roles' => 0,
    'single' => 0,
    'drRoles' => 0,
    'indexVisitsRoles' => 0,
    'detections' => 0,
    'customDetections' => 0,
    'index_redirect' => 0,
    'external_labs' => 0,
    'voiceRecord' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_64d12f8a608ef9_14739946')) {function content_64d12f8a608ef9_14739946($_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="role_form">
                            <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>

                                <div class="row">
                                    <div class="form-group form-md-line-input has-info col-md-11">
                                        <div class="input-group">
                                            <span class="input-group-addon">
                                                <i class="fa fa-users"></i>
                                            </span>
                                            <input type="text" class="form-control" placeholder="Role name" name="name" value="<?php echo $_smarty_tpl->tpl_vars['role']->value->name;?>
">
                                            <label for="form_control_1">Role name </label>
                                        </div>
                                    </div>

                                    <i class="fa fa-question-circle inputDeclare col-md-1" data-content=' اسم القسم '></i> 
                                </div>

                                <div class="row">
                                    <div class="form-group form-md-line-input has-info col-md-11">
                                        <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-multiple noborder"   name="related_dr_depts[]" multiple >
                                                <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 (in_array($_smarty_tpl->tpl_vars['single']->value->id,$_smarty_tpl->tpl_vars['drRoles']->value)){?> selected="selected" <?php }?> ><?php echo $_smarty_tpl->tpl_vars['single']->value->name;?>
</option>
                                                <?php } ?>
                                            </select>
                                            <label for="form_control_1">Roles of  Members appear in doctors select  in  visits add </label>
                                        </div>
                                    </div>
                                    <i class="fa fa-question-circle inputDeclare col-md-1" 
                                       data-content=' الاقسام التى يظهر الاطباء خاصتها فى حقل الطبيب فى اضافة  زيارة عند اختيار القسم الجارى تعديله   '></i> 
                                </div>

                                <div class="row">
                                    <div class="form-group form-md-line-input has-info col-md-8">
                                        <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-multiple noborder"   
                                                     name="index_visits_depts[]" multiple >
                                                <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 (in_array($_smarty_tpl->tpl_vars['single']->value->id,$_smarty_tpl->tpl_vars['indexVisitsRoles']->value)){?> selected="selected" <?php }?> >
                                                    <?php echo $_smarty_tpl->tpl_vars['single']->value->name;?>
</option>
                                                <?php } ?>
                                            </select>
                                            <label for="form_control_1">Roles of  visits appear in index Page  </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-2">
                                        <div class="input-group">
                                            <input type="checkbox" class="form-control" name="index_visits_depts_all" value="1" 
                                                   <?php if ($_smarty_tpl->tpl_vars['role']->value->index_visits_depts_all==1){?> checked="" <?php }?>>
                                            <label for="form_control_1">Show All Visits  </label>
                                        </div>
                                    </div>

                                    <i class="fa fa-question-circle inputDeclare col-md-1" 
                                       data-content=' الاقسام التى تظهر زياراتها فى الصفحة الرئيسية   '></i> 
                                </div>


                                <div class="row">
                                    <div class="form-group form-md-line-input has-info col-md-8">
                                        <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="custom_detections[]">
                                                <option value=""></option>
                                                <?php  $_smarty_tpl->tpl_vars['single'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['single']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['detections']->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,$_smarty_tpl->tpl_vars['customDetections']->value)){?> selected="selected" <?php }?>><?php echo $_smarty_tpl->tpl_vars['single']->value->title;?>
</option>
                                                <?php } ?>
                                            </select>
                                            <label for="form_control_1">Show visits with custom detections in index page </label>
                                        </div>
                                    </div>

                                    <i class="fa fa-question-circle inputDeclare col-md-1" 
                                       data-content=' أنواع  الكشف المطلوب عرضها فى الصفحة الرئيسية بغض النظر عن القسم الخاص بالزيارة '></i> 
                                </div>

                                <div class="row">
                                    <div class="form-group form-md-line-input has-info col-md-5">
                                        <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"  
                                                     data-placeholder="Choose" name="redirect_to">
                                                <?php  $_smarty_tpl->tpl_vars['single'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['single']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['index_redirect']->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['role']->value->redirect_to==$_smarty_tpl->tpl_vars['single']->value->id){?> selected <?php }?> >
                                                    <?php echo $_smarty_tpl->tpl_vars['single']->value->name;?>
</option>
                                                <?php } ?>
                                            </select>
                                            <label for="form_control_1">Index Links Redirected To Control  </label>
                                        </div>
                                    </div>
                                    <i class="fa fa-question-circle inputDeclare col-md-1" 
                                       data-content='  المسار الذى يذهب اليه عند الضغط على اسم المريض فى الصفحة الرئيسية  '></i> 

                                    <div class="form-group form-md-line-input has-info col-md-5">
                                        <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"   
                                                     data-placeholder="Choose" name="external_lab">
                                                <option value=""></option>
                                                <?php  $_smarty_tpl->tpl_vars['single'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['single']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['external_labs']->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['role']->value->external_lab==$_smarty_tpl->tpl_vars['single']->value->id){?> selected <?php }?> ><?php echo $_smarty_tpl->tpl_vars['single']->value->name;?>
</option>
                                                <?php } ?>
                                            </select>
                                            <label for="form_control_1">External Labs  </label>
                                        </div>
                                    </div>

                                    <i class="fa fa-question-circle inputDeclare col-md-1" 
                                       data-content=' المعمل الخارجى الذى يمثله القسم   '></i> 
                                </div>

                                <div class="row">
                                    <div class="form-group form-md-line-input has-info col-md-5">
                                        <div class="input-group">
                                            <input type="checkbox" class="form-control" name="doctor_show" value="1" <?php if ($_smarty_tpl->tpl_vars['role']->value->doctor_show==1){?> checked="" <?php }?> >
                                            <label for="form_control_1">Show doctors select  in  visits add  </label>
                                        </div>
                                    </div>

                                    <i class="fa fa-question-circle inputDeclare col-md-1" 
                                       data-content=' عرض خانة الطبيب عند اختيار القسم فى اضافة زيارة   '></i> 

                                    <div class="form-group form-md-line-input has-info col-md-5">
                                        <div class="input-group">
                                            <input type="checkbox" class="form-control" name="screen_show" value="1" <?php if ($_smarty_tpl->tpl_vars['role']->value->screen_show==1){?> checked="" <?php }?>>
                                            <label for="form_control_1">Show in  screen   </label>
                                        </div>
                                    </div>

                                    <i class="fa fa-question-circle inputDeclare col-md-1" 
                                       data-content='  عرض على الشاشات  '></i> 
                                </div>

                                <div class="row">
                                    <div class="form-group form-md-line-input has-info col-md-5">
                                        <div class="input-group">
                                            <input type="checkbox" class="form-control" name="visit_show" value="1"  
                                                   <?php if ($_smarty_tpl->tpl_vars['role']->value->visit_show==1){?> checked="" <?php }?> >
                                            <label for="form_control_1">Show in  visits add  </label>
                                        </div>
                                    </div>

                                    <i class="fa fa-question-circle inputDeclare col-md-1" 
                                       data-content=' ظهور القسم فى خانة الاقسام فى اضافة زيارة   '></i> 

                                    <div class="form-group form-md-line-input has-info col-md-5">
                                        <div class="input-group">
                                            <input type="checkbox" class="form-control" name="doctor_visit_show" value="1"  
                                                   <?php if ($_smarty_tpl->tpl_vars['role']->value->doctor_visit_show==1){?> checked="" <?php }?> >
                                            <label for="form_control_1">Show in  Doctor visits Report  </label>
                                        </div>
                                    </div>

                                    <i class="fa fa-question-circle inputDeclare col-md-1" 
                                       data-content='  ظهور القسم فى خانة الاقسام فى تقرير زيارات الاطباء  '></i> 
                                </div>

                                <div class="row">
                                    <div class="form-group form-md-line-input has-info col-md-5">
                                        <div class="input-group">
                                            <input type="checkbox" class="form-control" name="is_doctor" value="1" 
                                                   <?php if ($_smarty_tpl->tpl_vars['role']->value->is_doctor==1){?> checked="" <?php }?>  >
                                            <label for="form_control_1">Is a  doctor  </label>
                                        </div>
                                    </div>

                                    <i class="fa fa-question-circle inputDeclare col-md-1" 
                                       data-content=' الاشخاص المنتمين لهذا القسم  => أطباء   '></i> 

                                    <div class="form-group form-md-line-input has-info col-md-5">
                                        <div class="input-group">
                                            <input type="checkbox" class="form-control" name="today_list" value="1" 
                                                   <?php if ($_smarty_tpl->tpl_vars['role']->value->today_list==1){?> checked="" <?php }?>  >
                                            <label for="form_control_1">Show in Today's List   </label>
                                        </div>
                                    </div>

                                    <i class="fa fa-question-circle inputDeclare col-md-1" 
                                       data-content='  اظهار القسم فى عرض Today List  '></i> 
                                </div>

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

                                    <i class="fa fa-question-circle inputDeclare col-md-1" 
                                       data-content=' الاشخاص المنتمين لهذا القسم يعرض الزيارات الخاصة بهم فقط فى الصفحة الرئيسية   '></i> 

                                    <div class="form-group form-md-line-input has-info col-md-5">
                                        <div class="input-group">
                                            <input type="checkbox" class="form-control" name="index_search" value="1" 
                                                   <?php if ($_smarty_tpl->tpl_vars['role']->value->index_search==1){?> checked="" <?php }?>>
                                            <label for="form_control_1">Show Only User Patients in index Search   </label>
                                        </div>
                                    </div>

                                    <i class="fa fa-question-circle inputDeclare col-md-1" 
                                       data-content='  الاشخاص المنتمين لهذا القسم يعرض لهم المرضى  الخاصين  بهم فقط كطبيب معالج  فى بحث  الصفحة الرئيسية      '></i> 
                                </div>

                                <div class="row">
                                    <div class="form-group form-md-line-input has-info col-md-11">
                                        <label class="col-md-3 txtl " style="color: black;">Visits in Financial Report  </label>
                                        <div class="col-md-9">
                                            <div class="radio-list">
                                                <label class="radio-inline">
                                                    <input type="radio" name="financial_visits" value="0" 
                                                           <?php if ($_smarty_tpl->tpl_vars['role']->value->financial_visits==0){?> checked="" <?php }?>>  All Visits </label>
                                                <label class="radio-inline">
                                                    <input type="radio" name="financial_visits" value="1" 
                                                           <?php if ($_smarty_tpl->tpl_vars['role']->value->financial_visits==1){?> checked="" <?php }?>>   Only My Department Visits </label>
                                                <label class="radio-inline">
                                                    <input type="radio" name="financial_visits" value="2" 
                                                           <?php if ($_smarty_tpl->tpl_vars['role']->value->financial_visits==2){?> checked="" <?php }?>>   Only My  Visits </label>
                                            </div>
                                        </div>
                                    </div>

                                    <i class="fa fa-question-circle inputDeclare col-md-1" 
                                       data-content=' يحدد الزيارات التى تظهر فى التقرير المالى للاشخاص المنتمين لهذا القسم   '></i> 
                                </div>

                                <input type="hidden" id="hasRecord" value="1" />
                                <input type="hidden" id="hasRecord" value="1" />
                                <div class="form-actions col-md-12">
                                    <div class="col-md-4">
                                        <div id="controls">
                                            <button class="recordButtom" id="recordButton">Record</button>
                                            <button class="recordButtom" id="pauseButton" disabled>Pause</button>
                                            <button class="recordButtom" id="stopButton" disabled>Stop</button>
                                        </div>

                                        <!--div id="formats">Format: start recording to see sample rate</div-->
                                    </div>

                                    <div class="col-md-6">
                                        <p><strong>Voice Record:</strong></p>
                                        <ol id="recordingsList">
                                            <?php if ($_smarty_tpl->tpl_vars['voiceRecord']->value==1){?> 
                                            <li>
                                                <audio controls  src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/rolerecords/<?php echo $_smarty_tpl->tpl_vars['role']->value->id;?>
.wav"> </audio>
                                            </li>
                                            <?php }?>
                                        </ol>
                                    </div>
                                </div>


                                <input type="hidden" id="id" name="id" value="<?php echo $_smarty_tpl->tpl_vars['role']->value->id;?>
" />
                                <input type="hidden" name="ptntid" id="ptntid" value="<?php echo $_smarty_tpl->tpl_vars['role']->value->id;?>
" />
                                <input type="hidden" name="dirName" id="dirName"   value="rolerecords"/>


                            </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 }} ?>