
<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">

                            <form action="{$hosturl}/controllers/{$controllname}.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="{$programesetting.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="{$programesetting.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="{$programesetting.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="{$programesetting.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="{$programesetting.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="{$programesetting.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="{$programesetting.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="{$programesetting.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="{$programesetting.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="{$programesetting.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="{$programesetting.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="{$programesetting.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="{$programesetting.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="{$programesetting.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="{$programesetting.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="{$programesetting.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="{$programesetting.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="{$programesetting.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="{$programesetting.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" {if $programesetting.alignttt eq -1}selected{/if}>Left</option>
                                                    <option value="0" {if $programesetting.alignttt eq 0}selected{/if}>Center</option>
                                                    <option value="1" {if $programesetting.alignttt eq 1}selected{/if}>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" {if $programesetting.ultrasound eq 0}selected{/if}>Simple form</option>
                                                    <option value="1" {if $programesetting.ultrasound eq 1}selected{/if}>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" {if $programesetting.patientnoaut eq 0}selected{/if}>automatic</option>
                                                    <option value="1" {if $programesetting.patientnoaut eq 1}selected{/if}>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" >{$programesetting.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="{$programesetting.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="{$programesetting.search_result_no}" min="0">
                                                <label for="form_control_1">No of search records   </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 ;
                                        }

                                    </style>

                                    <table  border="1">
                                        <tr>
                                            <th colspan="3" style="text-align: center;" >
                                                check elements  to show 
                                            </th>
                                        </tr>
                                        <tr>
                                            <td>
                                                <label 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" {if $programesetting.ishide eq 1}checked{/if} >
                                                    </span> 
                                                    Display patient data (instruction print )
                                                </label>
                                            </td>
                                            <td>
                                                <label 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" {if $programesetting.displaydoctorname eq 1}checked{/if} >
                                                    </span> 
                                                    Display Doctor name
                                                </label>
                                            </td>
                                            <td>
                                                <label 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"  {if $programesetting.entrydetails eq 1}checked{/if} >
                                                    </span> 
                                                    Entry Details (Add Patient control)
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <label 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"  {if $programesetting.infertility eq 1}checked{/if} >
                                                    </span> 
                                                    Infertility Btn (Gyna controller)
                                                </label>
                                            </td>
                                            <td>
                                                <label 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"  {if $programesetting.gynalmp eq 1}checked{/if} >
                                                    </span> 
                                                    LMP (Gyna controller)
                                                </label>
                                            </td>
                                            <td>
                                                <label 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" 
                                                               {if $programesetting.case_summary eq 1}checked{/if} >
                                                    </span> 
                                                    Case Summary Btn
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <label 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" 
                                                               {if $programesetting.national_id_req eq 1}checked{/if} >
                                                    </span> 
                                                    National Id Required ( Patient Profile )
                                                </label>
                                            </td>

                                            <td>
                                                <label 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" 
                                                               {if $programesetting.confirm_attend eq 1}checked{/if} >
                                                    </span> 
                                                    Attend Confirmation  ( Add Visits )
                                                </label>
                                            </td>

                                            <td>
                                                <label 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" 
                                                               {if $programesetting.birth_notify eq 1}checked{/if} >
                                                    </span> 
                                                    Birth Notify   (  Patient  Profile)
                                                </label>
                                            </td>
                                        </tr>

                                        <tr>
                                            <td>
                                                <label 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" 
                                                               {if $programesetting.visit_phones eq 1}checked{/if} >
                                                    </span> 
                                                    Patient Phone   ( Add  Visit)
                                                </label>
                                            </td>

                                            <td>
                                                <label 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" 
                                                               {if $programesetting.temp_patient eq 1}checked{/if} >
                                                    </span> 
                                                    Temp Patients
                                                </label>
                                            </td>

                                            <td>
                                                <label 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" 
                                                               {if $programesetting.barcode_print eq 1}checked{/if} >
                                                    </span> 
                                                    Print Barcode
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <label 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" 
                                                               {if $programesetting.voice_record eq 1}checked{/if} >
                                                    </span> 
                                                    Voice Records 
                                                </label>
                                            </td>

                                            <td>
                                                <label 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" 
                                                               {if $programesetting.whatsapp_sms eq 1}checked{/if} >
                                                    </span> 
                                                    WhatsApp Messages
                                                </label>
                                            </td>

                                            <td>
                                                <label 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" 
                                                               {if $programesetting.rfc eq 1}checked{/if} >
                                                    </span> 
                                                    RFC  Patient
                                                </label>
                                            </td>
                                        </tr>

                                        <tr>
                                            <td>
                                                <label 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" 
                                                               {if $programesetting.past_search eq 1}checked{/if} >
                                                    </span> 
                                                    Past Search
                                                </label>
                                            </td>

                                            <td>
                                                <label 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" 
                                                               {if $programesetting.diagnos_ant eq 1}checked{/if} >
                                                    </span> 
                                                    Diagnosis Show (Antenatal Controller)
                                                </label>
                                            </td>

                                            <td>
                                                <label 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" 
                                                               {if $programesetting.attend_today eq 1}checked{/if} >
                                                    </span> 
                                                    Attend Today  Button  ( Add Visits )
                                                </label>
                                            </td>

                                        </tr>
                                    </table>


                                    <table  class="table">
                                        <th colspan="6" style="text-align: center;" >
                                            <label>
                                                Patient History Controller Tabs
                                            </label>
                                        </th>
                                        </tr>
                                        <tr>
                                            <td>
                                                <label 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" {if $programesetting.menstrual eq 1}checked{/if} >
                                                    </span> 
                                                    Menstrual H
                                                </label>
                                            </td>
                                            <td>
                                                <label 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" {if $programesetting.contraception eq 1}checked{/if} >
                                                    </span> 
                                                    Contraception H
                                                </label>
                                            </td>
                                            <td>
                                                <label 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" {if $programesetting.obstetric eq 1}checked{/if} >
                                                    </span> 
                                                    Obstetric H
                                                </label>
                                            </td>
                                            <td>
                                                <label 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" {if $programesetting.family eq 1}checked{/if} >
                                                    </span> 
                                                    Family H
                                                </label>
                                            </td>

                                            <td>
                                                <label 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" {if $programesetting.past eq 1}checked{/if} >
                                                    </span> 
                                                    Past H
                                                </label>
                                            </td>
                                            <td>
                                                <label 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" {if $programesetting.medical eq 1}checked{/if} >
                                                    </span> 
                                                    Medical
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <label 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" {if $programesetting.surgical eq 1}checked{/if} >
                                                    </span> 
                                                    Surgical
                                                </label>
                                            </td>
                                            <td>
                                                <label 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" {if $programesetting.gynecological eq 1}checked{/if} >
                                                    </span> 
                                                    Gynecological
                                                </label>
                                            </td>

                                            <td>
                                                <label 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" {if $programesetting.art eq 1}checked{/if} >
                                                    </span> 
                                                    ART
                                                </label>
                                            </td>
                                            <td>
                                                <label 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" {if $programesetting.sexual eq 1}checked{/if} >
                                                    </span> 
                                                    Sexual H
                                                </label>
                                            </td>
                                            <td>
                                                <label 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" {if $programesetting.personal eq 1}checked{/if} >
                                                    </span> 
                                                    Personal  H
                                                </label>
                                            </td>
                                        </tr>
                                    </table>


                                    <table  border="1">
                                        <tr>
                                            <th colspan="6" 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"  {if $programesetting.head eq 0}checked{/if}>
                                                <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" {if $programesetting.head eq 1}checked{/if}>
                                                <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"  {if $programesetting.chest eq 0}checked{/if}>
                                                <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" {if $programesetting.chest eq 1}checked{/if}>
                                                <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>
                                        </tr>
                                        <tr>
                                            <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"  {if $programesetting.abdomen eq 0}checked{/if}>
                                                <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" {if $programesetting.abdomen eq 1}checked{/if}>
                                                <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>
                                            <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"  {if $programesetting.pelvis eq 0}checked{/if}>
                                                <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" {if $programesetting.pelvis eq 1}checked{/if}>
                                                <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>
                                        </tr>
                                        <tr>
                                            <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"  {if $programesetting.extremitis eq 0}checked{/if}>
                                                <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" {if $programesetting.extremitis eq 1}checked{/if}>
                                                <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>
                                                Patient History Controller Tabs
                                            </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" 
                                                       {if $programesetting.surgeon eq 1}checked{/if}>
                                                <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"
                                                       {if $programesetting.surgeon !=1 }checked{/if}>
                                                <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" 
                                                       {if $programesetting.triggering eq 1}checked{/if}>
                                                <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"
                                                       {if $programesetting.triggering !=1 }checked{/if}>
                                                <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" 
                                                       {if $programesetting.notes eq 1}checked{/if}>
                                                <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"
                                                       {if $programesetting.notes !=1 }checked{/if}>
                                                <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" 
                                                       {if $programesetting.ovum_tab eq 1}checked{/if}>
                                                <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"
                                                       {if $programesetting.ovum_tab !=1 }checked{/if}>
                                                <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" 
                                                       {if $programesetting.embro_tab eq 1}checked{/if}>
                                                <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"
                                                       {if $programesetting.embro_tab !=1 }checked{/if}>
                                                <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" 
                                                       {if $programesetting.others_tab eq 1}checked{/if}>
                                                <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"
                                                       {if $programesetting.others_tab !=1 }checked{/if}>
                                                <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 width="100%" border="1">

                                        <tr>
                                            <td scope="row"> 
                                                <label class="control-label" for="form_control_1">Program Version </label>
                                            </td>
                                            <td > 
                                                <input type="radio" id="system_type1" name="system_type" class="md-radiobtn" value="1" 
                                                       {if $programesetting.system_type eq 1}checked{/if}>
                                                <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></td>
                                            <td ><input type="radio" id="system_type2" name="system_type" class="md-radiobtn" value="2"
                                                        {if $programesetting.system_type eq 2}checked{/if}>
                                                <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>
                                            </td>
                                            <td>
                                                <input type="radio" id="system_type3" name="system_type" class="md-radiobtn" 
                                                       value="3"  {if $programesetting.system_type eq 3}checked{/if}>
                                                <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>
                                            </td>

                                            <td>
                                                <input type="radio" id="system_type4" name="system_type" class="md-radiobtn" 
                                                       value="4"  {if $programesetting.system_type eq 4}checked{/if}>
                                                <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>
                                            </td>
                                            <td></td>
                                        </tr>

                                        <tr>
                                            <td scope="row"> 
                                                <label class="control-label" for="form_control_1">Program Language </label>
                                            </td>
                                            <td > 
                                                <input type="radio" id="system_lang1" name="system_lang" class="md-radiobtn" value="1" 
                                                       {if $programesetting.system_lang eq 1}checked{/if}>
                                                <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></td>
                                            <td ><input type="radio" id="system_lang2" name="system_lang" class="md-radiobtn" value="2"
                                                        {if $programesetting.system_lang eq 2}checked{/if}>
                                                <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>
                                            </td>
                                            <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" 
                                                       {if $programesetting.rooms eq 1}checked{/if}>
                                                <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"
                                                       {if $programesetting.rooms eq 2}checked{/if}>
                                                <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>
                                        </tr>


                                        <tr>
                                            <td scope="row">  </td>
                                            <td></td>
                                            <td> </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"  {if $programesetting.simpleview eq 0}checked{/if}>
                                                <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" {if $programesetting.simpleview eq 1}checked{/if}>
                                                <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"  {if $programesetting.entryorder eq 0}checked{/if}>
                                                <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" {if $programesetting.entryorder eq 1}checked{/if}>
                                                <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"  {if $programesetting.investshow eq 0}checked{/if}>
                                                <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" {if $programesetting.investshow eq 1}checked{/if}>
                                                <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"  {if $programesetting.diagnosshow eq 0}checked{/if}>
                                                <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" {if $programesetting.diagnosshow eq 1}checked{/if}>
                                                <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"  {if $programesetting.prescriptioncashing eq 0}checked{/if}>
                                                <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" {if $programesetting.prescriptioncashing eq 1}checked{/if}>
                                                <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"  {if $programesetting.visitsform eq 0}checked{/if}>
                                                <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" {if $programesetting.visitsform eq 1}checked{/if}>
                                                <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"  {if $programesetting.hideid eq 0}checked{/if}>
                                                <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" {if $programesetting.hideid eq 1}checked{/if}>
                                                <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"  {if $programesetting.loginbar eq 1}checked{/if}>
                                                <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" {if $programesetting.loginbar eq 0}checked{/if}>
                                                <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"  {if $programesetting.visittype eq 0}checked{/if}>
                                                <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" {if $programesetting.visittype eq 1}checked{/if}>
                                                <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"  {if $programesetting.presquantity eq 0}checked{/if}>
                                                <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" {if $programesetting.presquantity eq 1}checked{/if}>
                                                <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_1">Organizations  Discount </label>
                                            </td>
                                            <td > 
                                                <input type="radio" id="organizations1" name="organizations" class="md-radiobtn" value="1" 
                                                       {if $programesetting.organizations eq 1}checked{/if}>
                                                <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></td>
                                            <td >
                                                <input type="radio" id="organizations0" name="organizations" class="md-radiobtn" value="0"
                                                       {if $programesetting.organizations !=1 }checked{/if}>
                                                <label for="organizations0"  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>

                                        <tr>
                                            <td scope="row"></td>
                                            <td></td>
                                            <td></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"  {if $programesetting.fin_doc_dept eq 0}checked{/if}>
                                                <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" {if $programesetting.fin_doc_dept eq 1}checked{/if}>
                                                <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="{$hosturl}/../upload/background/{$programesetting.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="{$programesetting.background}" />
                                    <input name="backgroundImageValue"  id="backgroundImageValue" type="hidden" value="1" />
                                    <input type="hidden" name="id" value="{$programesetting.id}">

                                    <center>
                                        <br />
                                        <div class="col-md-4"></div>
                                        <div class="col-md-2">
                                            <button type="button" class="btn default"><a href="{$hosturl}/controllers/{$controllname}.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>


