<?php /* Smarty version Smarty-3.1.11, created on 2024-11-23 02:18:50
         compiled from "../views/obgy/programesetting/add.html" */ ?>
<?php /*%%SmartyHeaderCode:56342032867411f6a62ac95-36498221%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '10b636c757ec51bc44e6b5155f1f55f9a8df126c' => 
    array (
      0 => '../views/obgy/programesetting/add.html',
      1 => 1721880358,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '56342032867411f6a62ac95-36498221',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'hosturl' => 0,
    'controllname' => 0,
    'programesetting' => 0,
    'programesetting2' => 0,
    'setting' => 0,
    'xx' => 0,
    'programesettingex' => 0,
    'i' => 0,
    'labSetting' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_67411f6a8455f5_76050598',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_67411f6a8455f5_76050598')) {function content_67411f6a8455f5_76050598($_smarty_tpl) {?>
<div class="page-content-wrapper">
    <div class="page-content">
        <div class="row clinick">
            <div class="col-md-12">
                <!-- BEGIN EXAMPLE TABLE PORTLET-->
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="fa fa-user"></i>Program Setting
                        </div>
                    </div>
                    <div class="portlet-body">

                        <!--Begin Semen-->

                        <div class="row">
                            <input type="hidden" id="controllName" value="instruction"/>
                            <form action="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=addit" method="post" enctype="multipart/form-data">
                                <div class="form-body">

                                    <div class="portlet-title tbox2">
                                        <div class="caption font-blue col-md-12 txtc">
                                            <span class="caption-subject bold uppercase txtc">General Setting</span>
                                        </div>

                                    </div>


                                    <div class="row">

                                        <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 edited" id="centername" name="centername" value="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['centername'];?>
">
                                                <label for="form_control_1">Medical laboratory name</label>
                                            </div>
                                        </div>

                                        <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" id="doctorname" name="doctorname" value="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['doctorname'];?>
">
                                                <label for="form_control_1">Doctor's name</label>
                                            </div>
                                        </div>

                                        <div class="col-md-2">
                                            <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                <input type="text" class="form-control" id="phone" name="phone"  value="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['phone'];?>
">
                                                <label for="form_control_1">Phone</label>
                                            </div>
                                        </div>

                                    </div>
                                    <br/>
                                    <div class="row">

                                        <div class="col-md-3">
                                            <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                <input type="text" class="form-control" id="address" name="address" value="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['address'];?>
">
                                                <label for="form_control_1">Address</label>
                                            </div>
                                        </div>
                                        <div class="col-md-3">
                                            <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                <input type="text" class="form-control" id="spacial" name="spacial" value="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['spacial'];?>
">
                                                <label for="form_control_1">Specialization</label>
                                            </div>
                                        </div>



                                        <div class="col-md-3">
                                            <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                <input type="text" class="form-control" id="email" name="email" value="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['email'];?>
">
                                                <label for="form_control_1">Email</label>
                                            </div>
                                        </div>

                                        <div class="col-md-3">
                                            <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                <input type="text" class="form-control" id="password" name="password" value="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['password'];?>
">
                                                <label for="form_control_1">password</label>
                                            </div>
                                        </div>

                                    </div>
                                    <!-- <div class="widget-main-title" style="border-bottom-style: solid;   margin-top: 40px; color: #337AB7;"></div>-->
                                    <br/>
                                    <div class="portlet-title tbox2">
                                        <div class="caption font-blue col-md-12 txtc">
                                            <span class="caption-subject bold uppercase txtc">Properties and Printing</span>
                                        </div>

                                    </div>

                                    <br/>
                                    <div class="row">


                                        <div class="col-md-2 wds10">
                                            <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                <input type="text" class="form-control" name="addshours" id="addshours" value="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['addshours'];?>
" min="0">
                                                <label for="form_control_1">Extra time </label>

                                            </div>
                                        </div>

                                        <div class="col-md-2 wds25">
                                            <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                <input type="text" class="form-control" name="backupdriver" id="backupdriver" value="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['backupdriver'];?>
">
                                                <label for="form_control_1">Project Partition </label>

                                            </div>
                                        </div>

                                        <div class="col-md-2 wds10">
                                            <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                <input type="text" class="form-control hourPicker notPop" name="start_hour" 
                                                       id="start_hour" 
                                                       value="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['start_hour'];?>
">
                                                <label for="form_control_1">Start Hour  </label>

                                            </div>
                                        </div>

                                        <div class="col-md-2 wds10">
                                            <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                <input type="text" class="form-control hourPicker notPop" name="end_hour" 
                                                       id="end_hour" 
                                                       value="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['end_hour'];?>
">
                                                <label for="form_control_1">End Hour  </label>

                                            </div>
                                        </div>

                                        <div class="col-md-2">
                                            <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                <input type="text" class="form-control" name="above" value="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['above'];?>
">
                                                <label for="form_control_1">Print Margin Top</label>
                                                <span class="input-group-addon">CM</span>
                                            </div>
                                        </div>

                                        <div class="col-md-2 wds19">
                                            <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                <input type="text" class="form-control" name="buttom" value="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['buttom'];?>
">
                                                <label for="form_control_1">Print Margin Buttom </label>
                                                <span class="input-group-addon">CM</span>

                                            </div>
                                        </div>

                                        <div class="col-md-2">
                                            <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                <input type="text" class="form-control" id="form_control_1" placeholder="Enter fontsizear" name="fontsizear" value="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['fontsizear'];?>
">
                                                <label for="form_control_1">Arabic font size </label>
                                                <span class="input-group-addon">Pixel</span>

                                            </div>
                                        </div>

                                        <div class="col-md-2">
                                            <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                <input type="text" class="form-control" id="form_control_1" placeholder="Enter fontsizeen" name="fontsizeen"  value="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['fontsizeen'];?>
">
                                                <label for="form_control_1">English font size </label>
                                                <span class="input-group-addon">Pixel</span>

                                            </div>
                                        </div>

                                        <div class="col-md-2">
                                            <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                <input type="text" class="form-control" name="above2" value="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['above2'];?>
">
                                                <label for="form_control_1">P Margin Top 2</label>
                                                <span class="input-group-addon">CM</span>
                                            </div>
                                        </div>

                                        <div class="col-md-2">
                                            <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                <input type="text" class="form-control" name="buttom2" value="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['buttom2'];?>
">
                                                <label for="form_control_1">P Margin Buttom 2 </label>
                                                <span class="input-group-addon">CM</span>

                                            </div>
                                        </div>

                                        <div class="col-md-2">
                                            <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                <input type="text" class="form-control"  placeholder="Enter fontsizear" name="fontsizear2" value="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['fontsizear2'];?>
">
                                                <label for="form_control_1">Ar font size 2 </label>
                                                <span class="input-group-addon">Pixel</span>

                                            </div>
                                        </div>

                                        <div class="col-md-2">
                                            <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                <input type="text" class="form-control"  placeholder="Enter fontsizeen" name="fontsizeen2"  value="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['fontsizeen2'];?>
">
                                                <label for="form_control_1">En font size 2 </label>
                                                <span class="input-group-addon">Pixel</span>

                                            </div>
                                        </div>


                                    </div>
                                    <br/>
                                    <div class="row">

                                        <div class="col-md-4">
                                            <div class="form-group form-md-line-input has-info">
                                                <select class="bs-select form-control"   name="alignttt" id="alignttt">
                                                    <option value="-1" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['alignttt']==-1){?>selected<?php }?>>Left</option>
                                                    <option value="0" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['alignttt']==0){?>selected<?php }?>>Center</option>
                                                    <option value="1" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['alignttt']==1){?>selected<?php }?>>Right</option>
                                                </select>
                                                <label for="form_control_1">Alignment</label>
                                            </div>
                                        </div>

                                        <div class="col-md-4">
                                            <div class="form-group form-md-line-input has-info">
                                                <select class="bs-select form-control"  name="ultrasound" id="ultrasound">
                                                    <option value="0" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['ultrasound']==0){?>selected<?php }?>>Simple form</option>
                                                    <option value="1" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['ultrasound']==1){?>selected<?php }?>>Complete form</option>
                                                </select>
                                                <label for="form_control_1">Ultrasound</label>
                                            </div>
                                        </div>


                                        <div class="col-md-4">
                                            <div class="form-group form-md-line-input has-info">
                                                <select class="bs-select form-control"  name="patientnoaut" id="patientnoaut">
                                                    <option value="0" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['patientnoaut']==0){?>selected<?php }?>>automatic</option>
                                                    <option value="1" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['patientnoaut']==1){?>selected<?php }?>>manual</option>
                                                </select>
                                                <label for="form_control_1">Patient number</label>
                                            </div>
                                        </div>


                                        <div class="form-group col-md-12 ">
                                            <label class="col-md-2 txtl" for="form_control_1">Whatsapp Message</label>
                                            <div class="col-md-10">
                                                <textarea class="form-control has-info " rows="2" placeholder="Enter message" 
                                                          name="whatsapp_txt" ><?php echo $_smarty_tpl->tpl_vars['programesetting']->value['whatsapp_txt'];?>
</textarea>
                                                <div class="form-control-focus">
                                                </div>
                                            </div>
                                        </div>



                                    </div>



                                    <br/>
                                    <div class="row">

                                        <div class="col-md-2">
                                            <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                <input type="text" class="form-control" name="search_letters_no" 
                                                       value="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['search_letters_no'];?>
" min="0">
                                                <label for="form_control_1">No of search Letters </label>

                                            </div>
                                        </div>

                                        <div class="col-md-2">
                                            <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                <input type="text" class="form-control" name="search_result_no" 
                                                       value="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['search_result_no'];?>
" min="0">
                                                <label for="form_control_1">No of search records   </label>

                                            </div>
                                        </div>

                                        <div class="col-md-2">
                                            <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                <input type="text" class="form-control updateElement positiveNo"
                                                       value="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['visits_limit'];?>
"
                                                       data-id="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['id'];?>
" data-tableName="programesetting"
                                                       data-colName="visits_limit"  >
                                                <label for="form_control_1">Visits Limit / Month   </label>

                                            </div>
                                        </div>


                                    </div>


                                    <style>
                                        .table{
                                            margin-top: 20px;
                                            width: 100%;
                                        }

                                        td, th {
                                            padding:6px 10px !important;
                                        }
                                        table .popover {
                                            display: none !important;
                                        }
                                        tr:nth-of-type(odd) {
                                            //    background-color: #C6D7F2;
                                        }
                                        .mr9{
                                            margin-right: 9%;
                                        }

                                        .bf{
                                            border-left: none ;
                                        }

                                        .br{
                                            border-right: none ;
                                        }

                                        .m0{
                                            margin-top: 0px !important;
                                            margin-bottom: 0px !important;
                                        }

                                    </style>

                                    <table class="table">
                                        <tr>
                                            <th colspan="4" style="text-align: center;" >
                                                check elements  to show 
                                            </th>
                                        </tr>
                                        <tr>
                                            <td>
                                                <label class="fleft " for="ishide"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show patient data in instruction print">
                                                    <span>
                                                        <input type="checkbox" id="ishide"  value="1" name="ishide" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['ishide']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Display patient data (instruction print )
                                                </label>
                                            </td>
                                            <td>
                                                <label class="fleft " for="displaydoctorname"   data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show doctor name">
                                                    <span>
                                                        <input type="checkbox"   id="displaydoctorname"   value="1" name="displaydoctorname" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['displaydoctorname']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Display Doctor name
                                                </label>
                                            </td>
                                            <td>
                                                <label class="fleft " for="entrydetails"   data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show entry Details in apatient add">
                                                    <span>
                                                        <input type="checkbox"   id="entrydetails"   value="1" name="entrydetails"  <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['entrydetails']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Entry Details (Add Patient control)
                                                </label>
                                            </td>
                                            <td>
                                                <label class="fleft " for="infertility"   data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show infertility button  in Gyna">
                                                    <span>
                                                        <input type="checkbox"   id="infertility"   value="1" name="infertility"  <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['infertility']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Infertility Btn (Gyna controller)
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <label class="fleft " for="gynalmp"   data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show LMP in Gyna">
                                                    <span>
                                                        <input type="checkbox"   id="gynalmp"   value="1" name="gynalmp"  <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['gynalmp']==1){?>checked<?php }?> >
                                                    </span> 
                                                    LMP (Gyna controller)
                                                </label>
                                            </td>
                                            <td>
                                                <label class="fleft " for="case_summary"   data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Case Summary Btn">
                                                    <span>
                                                        <input type="checkbox"   id="case_summary"   value="1" name="case_summary" 
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['case_summary']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Case Summary Btn
                                                </label>
                                            </td>

                                            <td>
                                                <label class="fleft " for="national_id_req"   data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="National Id Required in patient profile">
                                                    <span>
                                                        <input type="checkbox"   id="national_id_req"   value="1" name="national_id_req" 
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['national_id_req']==1){?>checked<?php }?> >
                                                    </span> 
                                                    National Id Required ( Patient Profile )
                                                </label>
                                            </td>

                                            <td>
                                                <label class="fleft " for="confirm_attend"   data-toggle="popover" data-trigger="hover" 
                                                       data-placement="bottom" data-content=" Attend Confirmation in Visits">
                                                    <span>
                                                        <input type="checkbox"   id="confirm_attend"   value="1" name="confirm_attend" 
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['confirm_attend']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Attend Confirmation  ( Add Visits )
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <label class="fleft " for="birth_notify"   data-toggle="popover" data-trigger="hover" 
                                                       data-placement="bottom" data-content=" Birth Notify in Patients">
                                                    <span>
                                                        <input type="checkbox"   id="birth_notify"   value="1" name="birth_notify" 
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['birth_notify']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Birth Notify   (  Patient  Profile)
                                                </label>
                                            </td>

                                            <td>
                                                <label class="fleft " for="visit_phones"   data-toggle="popover" data-trigger="hover" 
                                                       data-placement="bottom" data-content=" Birth Notify in Patients">
                                                    <span>
                                                        <input type="checkbox"   id="visit_phones"   value="1" name="visit_phones" 
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['visit_phones']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Patient Phone   ( Add  Visit)
                                                </label>
                                            </td>

                                            <td>
                                                <label class="fleft " for="temp_patient"   data-toggle="popover" data-trigger="hover" 
                                                       data-placement="bottom" data-content=" Birth Notify in Patients">
                                                    <span>
                                                        <input type="checkbox"   id="temp_patient"   value="1" name="temp_patient" 
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['temp_patient']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Temp Patients
                                                </label>
                                            </td>

                                            <td>
                                                <label class="fleft " for="barcode_print"   data-toggle="popover" data-trigger="hover" 
                                                       data-placement="bottom" data-content=" Birth Notify in Patients">
                                                    <span>
                                                        <input type="checkbox"   id="barcode_print"   value="1" name="barcode_print" 
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['barcode_print']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Print Barcode
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <label class="fleft " for="voice_record"   data-toggle="popover" data-trigger="hover" 
                                                       data-placement="bottom" data-content=" voice record">
                                                    <span>
                                                        <input type="checkbox"   id="voice_record"   value="1" name="voice_record" 
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['voice_record']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Voice Records 
                                                </label>
                                            </td>

                                            <td>
                                                <label class="fleft " for="whatsapp_sms"   data-toggle="popover" data-trigger="hover" 
                                                       data-placement="bottom" data-content=" Whatsapp Msg">
                                                    <span>
                                                        <input type="checkbox"   id="whatsapp_sms"   value="1" name="whatsapp_sms" 
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['whatsapp_sms']==1){?>checked<?php }?> >
                                                    </span> 
                                                    WhatsApp Messages
                                                </label>
                                            </td>

                                            <td>
                                                <label class="fleft " for="rfc"   data-toggle="popover" data-trigger="hover" 
                                                       data-placement="bottom" data-content="  RFC Patient">
                                                    <span>
                                                        <input type="checkbox"   id="rfc"   value="1" name="rfc" 
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['rfc']==1){?>checked<?php }?> >
                                                    </span> 
                                                    RFC  Patient
                                                </label>
                                            </td>

                                            <td>
                                                <label class="fleft " for="past_search"   data-toggle="popover" data-trigger="hover" 
                                                       data-placement="bottom" data-content="  Past Search ">
                                                    <span>
                                                        <input type="checkbox"   id="past_search"   value="1" name="past_search" 
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['past_search']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Past Search
                                                </label>
                                            </td>
                                        </tr>

                                        <tr>
                                            <td>
                                                <label class="fleft " for="diagnos_ant"   data-toggle="popover" data-trigger="hover" 
                                                       data-placement="bottom" data-content="  Diagnosis Show (Antenatal Controller) ">
                                                    <span>
                                                        <input type="checkbox"   id="diagnos_ant"   value="1" name="diagnos_ant" 
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['diagnos_ant']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Diagnosis Show (Antenatal Controller)
                                                </label>
                                            </td>

                                            <td>
                                                <label class="fleft " for="diagnos_gyna"   data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="">
                                                    <span>
                                                        <input type="checkbox"   id="diagnos_gyna"   value="1" name="diagnos_gyna"  <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['diagnos_gyna']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Diagnosis Show (Gyna Controller)
                                                </label>
                                            </td>

                                            <td>
                                                <label class="fleft " for="attend_today"   data-toggle="popover" data-trigger="hover" 
                                                       data-placement="bottom" data-content=" Show Attend Today  Button in Visits">
                                                    <span>
                                                        <input type="checkbox"   id="attend_today"   value="1" name="attend_today" 
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['attend_today']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Attend Today  Button  ( Add Visits )
                                                </label>
                                            </td>

                                            <td>
                                                <label class="fleft " for="refer_doctor"   data-toggle="popover" data-trigger="hover" 
                                                       data-placement="bottom" data-content=" Show Refer Doctor Select in Add Visits">
                                                    <span>
                                                        <input type="checkbox"   id="refer_doctor"   value="1" name="refer_doctor_sett" 
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['refer_doctor']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Refer Doctor Select   ( Add Visits )
                                                </label>
                                            </td>
                                        </tr>

                                        <tr>
                                            <td>
                                                <label class="fleft " for="printserial"   data-toggle="popover" data-trigger="hover" 
                                                       data-placement="bottom" data-content=" Print Receipt in Add Visits">
                                                    <span>
                                                        <input type="checkbox"   id="printserial"   value="1" name="printserial" 
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['printserial']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Print Receipt
                                                </label>
                                            </td>

                                            <td>
                                                <label class="fleft " for="branches"   data-toggle="popover" data-trigger="hover" 
                                                       data-placement="bottom" data-content=" Activate Branches">
                                                    <span>
                                                        <input type="checkbox"   id="branches"   value="1" name="branches" 
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['branches']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Activate Branches
                                                </label>
                                            </td>
                                            <td>
                                                <label class="fleft " for="regions"   data-toggle="popover" data-trigger="hover" 
                                                       data-placement="bottom" data-content=" Activate Regions">
                                                    <span>
                                                        <input type="checkbox"   id="regions"   value="1" name="regions" 
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['regions']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Activate Regions
                                                </label>
                                            </td>
                                            <td>
                                                <label class="fleft " for="advance_payment"   data-toggle="popover" data-trigger="hover" 
                                                       data-placement="bottom" data-content="Advanced Payments">
                                                    <span>
                                                        <input type="checkbox"   id="advance_payment"   value="1" name="advance_payment" 
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['advance_payment']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Advanced Payments
                                                </label>
                                            </td>

                                        </tr>

                                        <tr>
                                            <td>
                                                <label class="fleft " for="visit_period"   data-toggle="popover" data-trigger="hover"
                                                       data-placement="bottom" data-content=" Activate Time  Periods">
                                                    <span>
                                                        <input type="checkbox"   id="visit_period"   value="1" name="visit_period"
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['visit_period']==1){?>checked<?php }?> >
                                                    </span>
                                                    Time  Periods (Add Visit )
                                                </label>
                                            </td>

                                            <td>
                                                <label class="fleft " for="pay_btn"   data-toggle="popover" data-trigger="hover"
                                                       data-placement="bottom" data-content=" Show Pay Btn ">
                                                    <span>
                                                        <input type="checkbox"   id="pay_btn"   value="1"
                                                               data-id="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['id'];?>
" class="updateElementCheck"
                                                               data-tableName="programesetting"    data-colName="pay_btn"
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['pay_btn']==1){?>checked<?php }?> >
                                                    </span>
                                                    Pay Button (Add Visit )
                                                </label>
                                            </td>

                                            <td>
                                                <label class="fleft " for="chronic"   data-toggle="popover" data-trigger="hover"
                                                       data-placement="bottom" data-content=" Show Pay Btn ">
                                                    <span>
                                                        <input type="checkbox"   id="chronic"   value="1"
                                                               data-id="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['id'];?>
" class="updateElementCheck"
                                                               data-tableName="programesetting"    data-colName="chronic"
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['chronic']==1){?>checked<?php }?> >
                                                    </span>
                                                    Chronic  (Gyna controller)
                                                </label>
                                            </td>

                                            <td>
                                                <label class="fleft " for="next_visit"   data-toggle="popover" data-trigger="hover"
                                                       data-placement="bottom" data-content=" Show Pay Btn ">
                                                    <span>
                                                        <input type="checkbox"   id="next_visit"   value="1"
                                                               data-id="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['id'];?>
" class="updateElementCheck"
                                                               data-tableName="programesetting"    data-colName="next_visit"
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['next_visit']==1){?>checked<?php }?> >
                                                    </span>
                                                    Next Visit  (Gyna controller)
                                                </label>
                                            </td>
                                        </tr>

                                        <tr>
                                            <td>
                                                <label class="fleft " for="icsi_btn"   data-toggle="popover" data-trigger="hover"
                                                       data-placement="bottom" data-content=" Show Pay Btn ">
                                                    <span>
                                                        <input type="checkbox"   id="icsi_btn"   value="1"
                                                               data-id="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['id'];?>
" class="updateElementCheck"
                                                               data-tableName="programesetting"    data-colName="icsi_btn"
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['icsi_btn']==1){?>checked<?php }?> >
                                                    </span>
                                                    ICSI Btn  (Gyna controller)
                                                </label>
                                            </td>

                                            <td>
                                                <label class="fleft " for="inner_invests"   data-toggle="popover" data-trigger="hover"
                                                       data-placement="bottom" data-content=" Show Pay Btn ">
                                                    <span>
                                                        <input type="checkbox"   id="inner_invests"   value="1"
                                                               data-id="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['id'];?>
" class="updateElementCheck"
                                                               data-tableName="programesetting"    data-colName="inner_invests"
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['inner_invests']==1){?>checked<?php }?> >
                                                    </span>
                                                    Inner Invests  (Add Lab Visit)
                                                </label>
                                            </td>
                                        </tr>
                                    </table>

                                    <table  class="table">
                                        <tr>
                                            <th class="txtc" colspan="7">  Patient Profile  </th>
                                        </tr>
                                        <tr>
                                            <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable("1", null, 0);?>
                                            <?php  $_smarty_tpl->tpl_vars['setting'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['setting']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['programesetting2']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['setting']->key => $_smarty_tpl->tpl_vars['setting']->value){
$_smarty_tpl->tpl_vars['setting']->_loop = true;
?>
                                            <?php $_smarty_tpl->tpl_vars["xx"] = new Smarty_variable(((string)$_smarty_tpl->tpl_vars['setting']->value->colum_name), null, 0);?>
                                            <td>
                                                <label class="fleft " for="<?php echo $_smarty_tpl->tpl_vars['setting']->value->colum_name;?>
"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content=" ">
                                                    <span>
                                                        <input type="checkbox" id="<?php echo $_smarty_tpl->tpl_vars['setting']->value->colum_name;?>
"  value="1" 
                                                               name="<?php echo $_smarty_tpl->tpl_vars['setting']->value->colum_name;?>
"
                                                               <?php if ($_smarty_tpl->tpl_vars['programesettingex']->value->{$_smarty_tpl->tpl_vars['xx']->value}==1){?>checked<?php }?> >
                                                    </span> 
                                                    <?php echo $_smarty_tpl->tpl_vars['setting']->value->show_name;?>

                                                </label>
                                            </td>
                                            <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
<?php $_tmp1=ob_get_clean();?><?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable($_tmp1, null, 0);?>

                                            <?php if ($_smarty_tpl->tpl_vars['i']->value==8){?>
                                            <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable("1", null, 0);?>
                                        </tr>
                                        <tr>
                                            <?php }?>
                                            <?php } ?>
                                        </tr>
                                    </table>


                                    <table  class="table">
                                        <tr>
                                            <th colspan="11" style="text-align: center;" >
                                                <label>
                                                    Patient History Controller Tabs
                                                </label>
                                            </th>
                                        </tr>
                                        <tr>
                                            <td>
                                                <label class="fleft " for="menstrual"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Menstrual H Tab ">
                                                    <span>
                                                        <input type="checkbox" id="menstrual"  value="1" name="menstrual" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['menstrual']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Menstrual H
                                                </label>
                                            </td>
                                            <td>
                                                <label class="fleft " for="contraception"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Contraception H Tab ">
                                                    <span>
                                                        <input type="checkbox" id="contraception"  value="1" name="contraception" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['contraception']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Contraception H
                                                </label>
                                            </td>
                                            <td>
                                                <label class="fleft " for="obstetric"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Obstetric H Tab ">
                                                    <span>
                                                        <input type="checkbox" id="obstetric"  value="1" name="obstetric" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['obstetric']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Obstetric H
                                                </label>
                                            </td>
                                            <td>
                                                <label class="fleft " for="family"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Family H Tab ">
                                                    <span>
                                                        <input type="checkbox" id="family"  value="1" name="family" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['family']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Family H
                                                </label>
                                            </td>

                                            <td>
                                                <label class="fleft " for="past"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Past H Tab ">
                                                    <span>
                                                        <input type="checkbox" id="past"  value="1" name="past" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['past']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Past H
                                                </label>
                                            </td>
                                            <td>
                                                <label class="fleft " for="medical"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Medical Tab ">
                                                    <span>
                                                        <input type="checkbox" id="medical"  value="1" name="medical" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['medical']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Medical
                                                </label>
                                            </td>

                                            <td>
                                                <label class="fleft " for="surgical"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Surgical Tab ">
                                                    <span>
                                                        <input type="checkbox" id="surgical"  value="1" name="surgical" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['surgical']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Surgical
                                                </label>
                                            </td>
                                            <td>
                                                <label class="fleft " for="gynecological"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Gynecological Tab ">
                                                    <span>
                                                        <input type="checkbox" id="gynecological"  value="1" name="gynecological" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['gynecological']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Gynecological
                                                </label>
                                            </td>

                                            <td>
                                                <label class="fleft " for="art"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show ART Tab ">
                                                    <span>
                                                        <input type="checkbox" id="art"  value="1" name="art" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['art']==1){?>checked<?php }?> >
                                                    </span> 
                                                    ART
                                                </label>
                                            </td>
                                            <td>
                                                <label class="fleft " for="sexual"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Sexual H  Tab ">
                                                    <span>
                                                        <input type="checkbox" id="sexual"  value="1" name="sexual" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['sexual']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Sexual H
                                                </label>
                                            </td>
                                            <td>
                                                <label class="fleft " for="personal"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Personal  H Tab ">
                                                    <span>
                                                        <input type="checkbox" id="personal"  value="1" name="personal" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['personal']==1){?>checked<?php }?> >
                                                    </span> 
                                                    Personal  H
                                                </label>
                                            </td>
                                        </tr>
                                    </table>


                                    <table class="table">
                                        <tr>
                                            <th colspan="9" style="text-align: center;" >
                                                Examination Controller
                                            </th>
                                        </tr>
                                        <tr>
                                            <td scope="row"><label class="control-label" for="form_control_1">Head and neck</label></td>
                                            <td class="br"><input type="radio" id="head0" name="head" class="  md-radiobtn" value="0"  <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['head']==0){?>checked<?php }?>>
                                                                  <label  for="head0" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Head and neck as a drop down list">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Select </label>
                                            </td>
                                            <td class="bf">
                                                <input type="radio" id="head1" name="head" class="  md-radiobtn" value="1" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['head']==1){?>checked<?php }?>>
                                                       <label  for="head1" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Head and neck as a textbox">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Text </label></td>
                                            <td scope="row">
                                                <label class="control-label" for="form_control_1">Chest and heart</label>
                                            </td>
                                            <td class="br">
                                                <input type="radio" id="chest0" name="chest" class="  md-radiobtn" value="0"  <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['chest']==0){?>checked<?php }?>>
                                                       <label   for="chest0" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Chest and heart as a drop down list">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Select </label>

                                            </td>
                                            <td class="bf">

                                                <input type="radio" id="chest1" name="chest" class="  md-radiobtn" value="1" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['chest']==1){?>checked<?php }?>>
                                                       <label   for="chest1" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Chest and heart as a textbox">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Text </label>
                                            </td>

                                            <td scope="row"><label class="control-label" for="form_control_1">Abdomen</label></td>
                                            <td class="br"><input type="radio" id="abdomen0" name="abdomen" class="  md-radiobtn" value="0"  <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['abdomen']==0){?>checked<?php }?>>
                                                                  <label  for="abdomen0" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Abdomen as a drop down list">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Select </label>
                                            </td>
                                            <td class="bf">
                                                <input type="radio" id="abdomen1" name="abdomen" class="  md-radiobtn" value="1" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['abdomen']==1){?>checked<?php }?>>
                                                       <label  for="abdomen1" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Abdomen as a textbox">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Text </label></td>

                                        </tr>
                                        <tr>


                                            <td scope="row">
                                                <label class="control-label" for="form_control_1">Pelvis</label>
                                            </td>
                                            <td class="br">
                                                <input type="radio" id="pelvis0" name="pelvis" class="  md-radiobtn" value="0"  <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['pelvis']==0){?>checked<?php }?>>
                                                       <label   for="pelvis0" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Pelvis as a drop down list">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Select </label>

                                            </td>
                                            <td class="bf">

                                                <input type="radio" id="pelvis1" name="pelvis" class="  md-radiobtn" value="1" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['pelvis']==1){?>checked<?php }?>>
                                                       <label   for="pelvis1" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Pelvis as a textbox">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Text </label>
                                            </td>

                                            <td scope="row"><label class="control-label" for="form_control_1">Extremities</label></td>
                                            <td class="br"><input type="radio" id="extremitis0" name="extremitis" class="  md-radiobtn" value="0"  <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['extremitis']==0){?>checked<?php }?>>
                                                                  <label  for="extremitis0" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Extremities as a drop down list">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Select </label>
                                            </td>
                                            <td class="bf">
                                                <input type="radio" id="extremitis1" name="extremitis" class="  md-radiobtn" value="1" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['extremitis']==1){?>checked<?php }?>>
                                                       <label  for="extremitis1" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Extremities as a textbox">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Text </label></td>
                                            <td scope="row">
                                            </td>
                                            <td class="br">


                                            </td>
                                            <td class="bf">


                                            </td>
                                        </tr>
                                    </table>

                                    <table class="table">
                                        <th colspan="9" style="text-align: center;" >
                                            <label>
                                                Ovum Pick UP / Embryo Transfer
                                            </label>
                                        </th>
                                        </tr>
                                        <tr>
                                            <th> 
                                                <label class="control-label" for="form_control_1">Operation  Surgeon </label>
                                            </th>
                                            <td>
                                                <input type="radio" id="surgeon1" name="surgeon" class="md-radiobtn" value="1" 
                                                       <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['surgeon']==1){?>checked<?php }?>>
                                                       <label for="surgeon1"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    hide </label></td>
                                            <td>
                                                <input type="radio" id="surgeon0" name="surgeon" class="md-radiobtn" value="0"
                                                       <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['surgeon']!=1){?>checked<?php }?>>
                                                       <label for="surgeon2"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    show  </label></td>

                                            <th>
                                                <label class="control-label" for="form_control_1">Operation  Triggering </label>
                                            </th>
                                            <td>
                                                <input type="radio" id="triggering1" name="triggering" class="md-radiobtn" value="1" 
                                                       <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['triggering']==1){?>checked<?php }?>>
                                                       <label for="triggering1"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    hide </label></td>
                                            <td>
                                                <input type="radio" id="triggering0" name="triggering" class="md-radiobtn" value="0"
                                                       <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['triggering']!=1){?>checked<?php }?>>
                                                       <label for="triggering2"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    show  </label>
                                            </td>

                                            <th>
                                                <label class="control-label" for="form_control_1">Operation  Notes </label>
                                            </th>
                                            <td> 
                                                <input type="radio" id="notes1" name="notes" class="md-radiobtn" value="1" 
                                                       <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['notes']==1){?>checked<?php }?>>
                                                       <label for="notes1"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    hide </label>
                                            </td>
                                            <td>
                                                <input type="radio" id="notes0" name="notes" class="md-radiobtn" value="0"
                                                       <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['notes']!=1){?>checked<?php }?>>
                                                       <label for="notes2"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    show  </label>
                                            </td>
                                        </tr><!-- comment -->

                                        <tr>
                                            <th> Operation  Ovum Tab  </th>
                                            <td> 
                                                <input type="radio" id="ovum_tab1" name="ovum_tab" class="md-radiobtn" value="1" 
                                                       <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['ovum_tab']==1){?>checked<?php }?>>
                                                       <label for="ovum_tab1"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    hide </label></td>
                                            <td >
                                                <input type="radio" id="ovum_tab0" name="ovum_tab" class="md-radiobtn" value="0"
                                                       <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['ovum_tab']!=1){?>checked<?php }?>>
                                                       <label for="ovum_tab2"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    show  </label>
                                            </td>

                                            <th> Operation  Embro Tab  </th>

                                            <td > 
                                                <input type="radio" id="embro_tab1" name="embro_tab" class="md-radiobtn" value="1" 
                                                       <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['embro_tab']==1){?>checked<?php }?>>
                                                       <label for="embro_tab1"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    hide </label>
                                            </td>
                                            <td >
                                                <input type="radio" id="embro_tab0" name="embro_tab" class="md-radiobtn" value="0"
                                                       <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['embro_tab']!=1){?>checked<?php }?>>
                                                       <label for="embro_tab2"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    show  </label>
                                            </td>

                                            <th> Operation  others Tab  </th>

                                            <td > 
                                                <input type="radio" id="others_tab1" name="others_tab" class="md-radiobtn" value="1" 
                                                       <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['others_tab']==1){?>checked<?php }?>>
                                                       <label for="others_tab1"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    hide </label>
                                            </td>
                                            <td >
                                                <input type="radio" id="others_tab0" name="others_tab" class="md-radiobtn" value="0"
                                                       <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['others_tab']!=1){?>checked<?php }?>>
                                                       <label for="others_tab0"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    show  </label>
                                            </td>
                                        </tr>

                                    </table>

                                    <table class="table m0">
                                        <tr>
                                            <th class="wds18"> Program Version</th>
                                            <td class="wds35"> 
                                                <div class="md-radio-inline">
                                                    <div class="md-radio fleft">
                                                        <input type="radio" id="system_type1" name="system_type" class="md-radiobtn" value="1" 
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['system_type']==1){?>checked<?php }?>>
                                                               <label for="system_type1"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="">
                                                            <span></span>
                                                            <span class="check"></span>
                                                            <span class="box"></span>
                                                            Center </label>
                                                    </div>

                                                    <div class="md-radio fleft">
                                                        <input type="radio" id="system_type2" name="system_type" class="md-radiobtn" value="2"
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['system_type']==2){?>checked<?php }?>>
                                                               <label for="system_type2"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="">
                                                            <span></span>
                                                            <span class="check"></span>
                                                            <span class="box"></span>
                                                            Share  </label>
                                                    </div>

                                                    <div class="md-radio fleft">
                                                        <input type="radio" id="system_type3" name="system_type" class="md-radiobtn" 
                                                               value="3"  <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['system_type']==3){?>checked<?php }?>>
                                                               <label for="system_type3"  data-toggle="popover" data-trigger="hover" data-placement="bottom" 
                                                               data-content="">
                                                            <span></span>
                                                            <span class="check"></span>
                                                            <span class="box"></span>
                                                            Beauty  </label>
                                                    </div>

                                                    <div class="md-radio fleft">
                                                        <input type="radio" id="system_type4" name="system_type" class="md-radiobtn" 
                                                               value="4"  <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['system_type']==4){?>checked<?php }?>>
                                                               <label for="system_type4"  data-toggle="popover" data-trigger="hover" data-placement="bottom" 
                                                               data-content="">
                                                            <span></span>
                                                            <span class="check"></span>
                                                            <span class="box"></span>
                                                            Hospital  </label>
                                                    </div>

                                                </div>
                                            </td>

                                            <th class="wds18"> Program Language   </th>
                                            <td > 
                                                <div class="md-radio-inline">
                                                    <div class="md-radio fleft">
                                                        <input type="radio" id="system_lang1" name="system_lang" class="md-radiobtn" value="1" 
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['system_lang']==1){?>checked<?php }?>>
                                                               <label for="system_lang1"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="">
                                                            <span></span>
                                                            <span class="check"></span>
                                                            <span class="box"></span>
                                                            Gyna </label>
                                                    </div>

                                                    <div class="md-radio fleft">
                                                        <input type="radio" id="system_lang2" name="system_lang" class="md-radiobtn" value="2"
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['system_lang']==2){?>checked<?php }?>>
                                                               <label for="system_lang2"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="">
                                                            <span></span>
                                                            <span class="check"></span>
                                                            <span class="box"></span>
                                                            Public  </label>
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>


                                        <tr>
                                            <th class="wds18"> Organizations  In     </th>
                                            <td class="wds35"> 
                                                <div class="md-radio-inline">
                                                    <div class="md-radio fleft">
                                                        <input type="radio" id="org_in1" name="org_in" value="1"
                                                               class="md-radiobtn updateElement"  data-id="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['id'];?>
"
                                                               data-tableName="programesetting"    data-colName="org_in"
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['org_in']==1){?>checked<?php }?>>
                                                               <label for="org_in1"  data-toggle="popover" data-trigger="hover"
                                                               data-placement="bottom" data-content="">
                                                            <span></span>
                                                            <span class="check"></span>
                                                            <span class="box"></span>
                                                            Add Visit   </label>
                                                    </div>

                                                    <div class="md-radio fleft">
                                                        <input type="radio" id="org_in2" name="org_in" value="2"
                                                               class="md-radiobtn updateElement"  data-id="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['id'];?>
"
                                                               data-tableName="programesetting"    data-colName="org_in"
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['org_in']==2){?>checked<?php }?>>
                                                               <label for="org_in2"  data-toggle="popover" data-trigger="hover"
                                                               data-placement="bottom" data-content="">
                                                            <span></span>
                                                            <span class="check"></span>
                                                            <span class="box"></span>
                                                            Patient Profile </label>
                                                    </div>
                                                </div>
                                            </td>

                                            <th class="wds18"> Price In     </th>
                                            <td>
                                                <div class="md-radio-inline">
                                                    <div class="md-radio fleft">
                                                        <input type="radio" id="price_in1" name="price_in" class="md-radiobtn updateElement"
                                                               data-id="<?php echo $_smarty_tpl->tpl_vars['labSetting']->value->id;?>
" data-tableName="programesettinglab" value="detectionvalue_cash"
                                                               data-colName="price_in"   <?php if ($_smarty_tpl->tpl_vars['labSetting']->value->price_in=='detectionvalue_cash'){?>checked<?php }?>>
                                                        <label for="price_in1">
                                                            <span></span>
                                                            <span class="check"></span>
                                                            <span class="box"></span>
                                                            Cash </label>
                                                    </div>

                                                    <div class="md-radio fleft">
                                                        <input type="radio" id="price_in2" name="price_in" class="md-radiobtn updateElement"
                                                               data-id="<?php echo $_smarty_tpl->tpl_vars['labSetting']->value->id;?>
" data-tableName="programesettinglab" value="restdetectionvalue"
                                                               data-colName="price_in"   <?php if ($_smarty_tpl->tpl_vars['labSetting']->value->price_in=='restdetectionvalue'){?>checked<?php }?>>
                                                        <label for="price_in2">
                                                            <span></span>
                                                            <span class="check"></span>
                                                            <span class="box"></span>
                                                            Rest
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>


                                        <tr>
                                            <th class="wds18"> Organizations  Discount    </th>
                                            <td class="wds35">
                                                <div class="md-radio-inline">

                                                    <div class="md-radio fleft">
                                                        <input type="radio" id="organizations1" name="organizations" class="md-radiobtn" value="1"
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['organizations']==1){?>checked<?php }?>>
                                                               <label for="organizations1"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="">
                                                            <span></span>
                                                            <span class="check"></span>
                                                            <span class="box"></span>
                                                            hide </label>
                                                    </div>

                                                    <div class="md-radio fleft">
                                                        <input type="radio" id="organizations2" name="organizations" class="md-radiobtn" value="2"
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['organizations']==2){?>checked<?php }?>>
                                                               <label for="organizations2"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="">
                                                            <span></span>
                                                            <span class="check"></span>
                                                            <span class="box"></span>
                                                            Simple View  </label>
                                                    </div>

                                                    <div class="md-radio fleft">
                                                        <input type="radio" id="organizations3" name="organizations" class="md-radiobtn" value="3"
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['organizations']==3){?>checked<?php }?>>
                                                               <label for="organizations3"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="">
                                                            <span></span>
                                                            <span class="check"></span>
                                                            <span class="box"></span>
                                                            Complete View  </label>
                                                    </div>
                                                </div>
                                            </td>

                                            <th class="wds18"> Tanks  Style    </th>
                                            <td>
                                                <div class="md-radio-inline">
                                                    <div class="md-radio fleft">
                                                        <input type="radio" id="tanks_view1" name="tanks_view" class="md-radiobtn" value="1"
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['tanks_view']==1){?>checked<?php }?>>
                                                               <label for="tanks_view1"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="">
                                                            <span></span>
                                                            <span class="check"></span>
                                                            <span class="box"></span>
                                                            Style 1  </label>
                                                    </div>

                                                    <div class="md-radio fleft">
                                                        <input type="radio" id="tanks_view2" name="tanks_view" class="md-radiobtn" value="2"
                                                               <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['tanks_view']==2){?>checked<?php }?>>
                                                               <label for="tanks_view2"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="">
                                                            <span></span>
                                                            <span class="check"></span>
                                                            <span class="box"></span>
                                                            Style 2   </label>
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>


                                    </table>

                                    <table class="table">
                                        <tr>
                                            <td>
                                                <label class="control-label" for="form_control_1">Rooms Chart </label>
                                            </td>
                                            <td > 
                                                <input type="radio" id="rooms1" name="rooms" 
                                                       class="md-radiobtn" value="1" 
                                                       <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['rooms']==1){?>checked<?php }?>>
                                                       <label for="rooms1"  data-toggle="popover" data-trigger="hover" 
                                                       data-placement="bottom" data-content="">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Vertical </label>
                                            </td>
                                            <td >
                                                <input type="radio" id="rooms2" name="rooms" 
                                                       class="md-radiobtn" value="2"
                                                       <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['rooms']==2){?>checked<?php }?>>
                                                       <label for="rooms2"  data-toggle="popover" data-trigger="hover" 
                                                       data-placement="bottom" data-content="">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Horizontal  </label>
                                            </td>
                                            <td scope="row"><label class="control-label" for="form_control_1">Program  Show</label></td>
                                            <td><input type="radio" id="simpleview0" name="simpleview" class="md-radiobtn" value="0"  <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['simpleview']==0){?>checked<?php }?>>
                                                       <label for="simpleview0"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show program complete view">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Complete </label></td>
                                            <td><input type="radio" id="simpleview1" name="simpleview" class="md-radiobtn" value="1" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['simpleview']==1){?>checked<?php }?>>
                                                       <label for="simpleview1" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show program simple view">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Simple </label></td>
                                        </tr>
                                        <tr>
                                            <td scope="row"><label class="control-label" for="form_control_1">Entry order</label></td>
                                            <td><input type="radio" id="entryorder0" name="entryorder" class="md-radiobtn" value="0"  <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['entryorder']==0){?>checked<?php }?>>
                                                       <label for="entryorder0" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="!!!!!!!!">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Disable </label></td>
                                            <td><input type="radio" id="entryorder1" name="entryorder" class="md-radiobtn" value="1" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['entryorder']==1){?>checked<?php }?>>
                                                       <label for="entryorder1" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="!!!!!!!!">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Enable </label></td>

                                            <td scope="row"><label class="control-label" for="form_control_1">Investigation  show</label></td>
                                            <td><input type="radio" id="investshow0" name="investshow" class="md-radiobtn" value="0"  <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['investshow']==0){?>checked<?php }?>>
                                                       <label for="investshow0" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show investigation with tabs">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Tabs </label></td>
                                            <td><input type="radio" id="investshow1" name="investshow" class="md-radiobtn" value="1" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['investshow']==1){?>checked<?php }?>>
                                                       <label for="investshow1" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show investigation without tabs">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    No Tabs </label></td>
                                        </tr>
                                        <tr>
                                            <td scope="row"><label class="control-label" for="form_control_1">Diagnosis show</label></td>
                                            <td><input type="radio" id="diagnosshow0" name="diagnosshow" class="md-radiobtn" value="0"  <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['diagnosshow']==0){?>checked<?php }?>>
                                                       <label for="diagnosshow0" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show diagnosis as a drop down list">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Select </label></td>
                                            <td><input type="radio" id="diagnosshow1" name="diagnosshow" class="md-radiobtn" value="1" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['diagnosshow']==1){?>checked<?php }?>>
                                                       <label for="diagnosshow1" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show diagnosis as a textbox">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Text </label></td>

                                            <td scope="row"><label class="control-label" for="form_control_1">Prescription Cashing</label></td>
                                            <td><input type="radio" id="prescriptioncashing0" name="prescriptioncashing" class="md-radiobtn" value="0"  <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['prescriptioncashing']==0){?>checked<?php }?>>
                                                       <label for="prescriptioncashing0" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="disable cashing">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Disable </label></td>
                                            <td><input type="radio" id="prescriptioncashing1" name="prescriptioncashing" class="md-radiobtn" value="1" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['prescriptioncashing']==1){?>checked<?php }?>>
                                                       <label for="prescriptioncashing1" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="enable cashing">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Enable </label></td>
                                        </tr>
                                        <tr>
                                            <td scope="row"><label class="control-label" for="form_control_1">Today Visits Display </label></td>
                                            <td><input type="radio" id="visitsform0" name="visitsform" class="md-radiobtn" value="0"  <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['visitsform']==0){?>checked<?php }?>>
                                                       <label for="visitsform0" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="display visits to clinic">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Clinic  </label></td>
                                            <td><input type="radio" id="visitsform1" name="visitsform" class="md-radiobtn" value="1" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['visitsform']==1){?>checked<?php }?>>
                                                       <label for="visitsform1" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="display visits to hospital">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Hospital </label></td>

                                            <td scope="row"><label class="control-label" for="form_control_2">Prescription Print </label></td>
                                            <td><input type="radio" id="hideId0" name="hideId" class="md-radiobtn" value="0"  <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['hideid']==0){?>checked<?php }?>>
                                                       <label for="hideId0" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="display Patient id in print">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Show Id  </label></td>
                                            <td><input type="radio" id="hideId1" name="hideId" class="md-radiobtn" value="1" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['hideid']==1){?>checked<?php }?>>
                                                       <label for="hideId1" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="hide Patient id in print">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Hide Id </label></td>
                                        </tr>

                                        <tr>
                                            <td scope="row"><label class="control-label" for="form_control_2">Login Bar </label></td>
                                            <td><input type="radio" id="loginbar1" name="loginbar" class="md-radiobtn" value="1"  <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['loginbar']==1){?>checked<?php }?>>
                                                       <label for="loginbar1" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="display login bar">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Show  </label></td>
                                            <td><input type="radio" id="loginbar0" name="loginbar" class="md-radiobtn" value="0" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['loginbar']==0){?>checked<?php }?>>
                                                       <label for="loginbar0" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="hide login bar">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Hide </label></td>

                                            <td scope="row"><label class="control-label" for="form_control_2">Visit type </label></td>
                                            <td><input type="radio" id="visittype0" name="visittype" class="md-radiobtn" value="0"  <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['visittype']==0){?>checked<?php }?>>
                                                       <label for="visittype0" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="External visits in rays and lab department">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    External  </label></td>
                                            <td><input type="radio" id="visittype1" name="visittype" class="md-radiobtn" value="1" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['visittype']==1){?>checked<?php }?>>
                                                       <label for="visittype1" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="Internal visits in rays and lab department">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Internal </label></td>
                                        </tr>


                                        <tr>
                                            <td scope="row"><label class="control-label" for="form_control_2">drug quantity </label></td>
                                            <td><input type="radio" id="presquantity0" name="presquantity" class="md-radiobtn" value="0"  <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['presquantity']==0){?>checked<?php }?>>
                                                       <label for="presquantity0" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="hide drug quantity in prescriptions">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    No  </label></td>
                                            <td><input type="radio" id="presquantity1" name="presquantity" class="md-radiobtn" value="1" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['presquantity']==1){?>checked<?php }?>>
                                                       <label for="presquantity1" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show drug quantity in prescriptions">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Yes </label></td>


                                            <td scope="row">
                                                <label class="control-label" for="form_control_2"> Dr Dept in Fin. Report  </label></td>
                                            <td><input type="radio" id="fin_doc_dept0" name="fin_doc_dept" class="md-radiobtn" 
                                                       value="0"  <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['fin_doc_dept']==0){?>checked<?php }?>>
                                                       <label for="fin_doc_dept0" data-toggle="popover" data-trigger="hover" 
                                                       data-placement="bottom" data-content="hide drug quantity in prescriptions">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    No  </label></td>
                                            <td><input type="radio" id="fin_doc_dept1" name="fin_doc_dept" class="md-radiobtn" 
                                                       value="1" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value['fin_doc_dept']==1){?>checked<?php }?>>
                                                       <label for="fin_doc_dept1" data-toggle="popover" data-trigger="hover" 
                                                       data-placement="bottom" data-content="show drug quantity in prescriptions">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Yes </label></td>


                                        </tr>



                                        <tr>
                                            <td scope="row"></td>
                                            <td></td>
                                            <td></td>


                                            <td scope="row">
                                                <label for="exampleInputFile2" class="control-label"> Background </label>
                                            </td>
                                            <td colspan="2">
                                                <div class="fileinput fileinput-new" data-provides="fileinput">
                                                    <div class="fileinput-preview thumbnail fleft" data-trigger="fileinput" style="width: 40px; height: 37px;">
                                                        <img src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/background/<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['background'];?>
" id="backgroundImage"  />
                                                    </div>
                                                    <div class="fleft">
                                                        <span class="btn default btn-file"> <span class="fileinput-new"> Upload Image</span> <span class="fileinput-exists"> Change </span>
                                                            <input type="file" name="bgfile" id="background" >
                                                        </span>
                                                        <a href="#" class="btn red fileinput-exists" data-dismiss="fileinput"> Delete</a>
                                                    </div>
                                                    <a href="javascript:;" class="btn red" id="deleteBackground"> <i class="fa fa-close" ></i></a>
                                                </div>
                                            </td>

                                        </tr>

                                    </table>


                                    <input name="bimageurl"  id="bimageurl" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['background'];?>
" />
                                    <input name="backgroundImageValue"  id="backgroundImageValue" type="hidden" value="1" />
                                    <input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value['id'];?>
">

                                    <center>
                                        <br />
                                        <div class="col-md-4"></div>
                                        <div class="col-md-2">
                                            <button type="button" class="btn default"><a href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php">Cancel</a></button>
                                        </div>

                                        <div class="col-md-2">
                                            <button type="submit" class="btn blue">Submit</button>
                                        </div>
                                        <div class="clearfix"></div>
                                        <br />
                                        <div class="clearfix"></div>
                                    </center>







                            </form>

                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>


<?php }} ?>