
<div class="page-content-wrapper">
    <div class="page-content">
        <div class="row clinick">
            <div class="col-md-12">
                <!-- BEGIN EXAMPLE TABLE PORTLET-->
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="fa fa-user"></i>Program Setting
                        </div>
                    </div>
                    <div class="portlet-body">

                        <!--Begin Semen-->

                        <div class="row">
                            <input type="hidden" id="controllName" value="instruction"/>
                            <form action="{$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 class="col-md-2">
                                            <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                <input type="text" class="form-control updateElement positiveNo"
                                                       value="{$programesetting.visits_limit}"
                                                       data-id="{$programesetting.id}" data-tableName="programesetting"
                                                       data-colName="visits_limit"  >
                                                <label for="form_control_1">Visits Limit / Month   </label>

                                            </div>
                                        </div>


                                    </div>


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

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

                                        .bf{
                                            border-left: none ;
                                        }

                                        .br{
                                            border-right: none ;
                                        }

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

                                    </style>

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

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

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

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

                                            <td>
                                                <label class="fleft " for="temp_patient"   data-toggle="popover" data-trigger="hover" 
                                                       data-placement="bottom" data-content=" Birth Notify in Patients">
                                                    <span>
                                                        <input type="checkbox"   id="temp_patient"   value="1" name="temp_patient" 
                                                               {if $programesetting.temp_patient eq 1}checked{/if} >
                                                    </span> 
                                                    Temp Patients
                                                </label>
                                            </td>

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

                                            <td>
                                                <label class="fleft " for="whatsapp_sms"   data-toggle="popover" data-trigger="hover" 
                                                       data-placement="bottom" data-content=" Whatsapp Msg">
                                                    <span>
                                                        <input type="checkbox"   id="whatsapp_sms"   value="1" name="whatsapp_sms" 
                                                               {if $programesetting.whatsapp_sms eq 1}checked{/if} >
                                                    </span> 
                                                    WhatsApp Messages
                                                </label>
                                            </td>

                                            <td>
                                                <label class="fleft " for="rfc"   data-toggle="popover" data-trigger="hover" 
                                                       data-placement="bottom" data-content="  RFC Patient">
                                                    <span>
                                                        <input type="checkbox"   id="rfc"   value="1" name="rfc" 
                                                               {if $programesetting.rfc eq 1}checked{/if} >
                                                    </span> 
                                                    RFC  Patient
                                                </label>
                                            </td>

                                            <td>
                                                <label class="fleft " for="past_search"   data-toggle="popover" data-trigger="hover" 
                                                       data-placement="bottom" data-content="  Past Search ">
                                                    <span>
                                                        <input type="checkbox"   id="past_search"   value="1" name="past_search" 
                                                               {if $programesetting.past_search eq 1}checked{/if} >
                                                    </span> 
                                                    Past Search
                                                </label>
                                            </td>
                                        </tr>

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

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

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

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

                                        <tr>
                                            <td>
                                                <label class="fleft " for="printserial"   data-toggle="popover" data-trigger="hover" 
                                                       data-placement="bottom" data-content=" Print Receipt in Add Visits">
                                                    <span>
                                                        <input type="checkbox"   id="printserial"   value="1" name="printserial" 
                                                               {if $programesetting.printserial eq 1}checked{/if} >
                                                    </span> 
                                                    Print Receipt
                                                </label>
                                            </td>

                                            <td>
                                                <label class="fleft " for="branches"   data-toggle="popover" data-trigger="hover" 
                                                       data-placement="bottom" data-content=" Activate Branches">
                                                    <span>
                                                        <input type="checkbox"   id="branches"   value="1" name="branches" 
                                                               {if $programesetting.branches eq 1}checked{/if} >
                                                    </span> 
                                                    Activate Branches
                                                </label>
                                            </td>
                                            <td>
                                                <label class="fleft " for="regions"   data-toggle="popover" data-trigger="hover" 
                                                       data-placement="bottom" data-content=" Activate Regions">
                                                    <span>
                                                        <input type="checkbox"   id="regions"   value="1" name="regions" 
                                                               {if $programesetting.regions eq 1}checked{/if} >
                                                    </span> 
                                                    Activate Regions
                                                </label>
                                            </td>
                                            <td>
                                                <label class="fleft " for="advance_payment"   data-toggle="popover" data-trigger="hover" 
                                                       data-placement="bottom" data-content="Advanced Payments">
                                                    <span>
                                                        <input type="checkbox"   id="advance_payment"   value="1" name="advance_payment" 
                                                               {if $programesetting.advance_payment eq 1}checked{/if} >
                                                    </span> 
                                                    Advanced Payments
                                                </label>
                                            </td>

                                        </tr>

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

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

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

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

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

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

                                    <table  class="table">
                                        <tr>
                                            <th class="txtc" colspan="7">  Patient Profile  </th>
                                        </tr>
                                        <tr>
                                            {assign var="i" value="1"}
                                            {foreach $programesetting2 as $setting }
                                            {assign var="xx" value="{$setting->colum_name}"}
                                            <td>
                                                <label class="fleft " for="{$setting->colum_name}"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content=" ">
                                                    <span>
                                                        <input type="checkbox" id="{$setting->colum_name}"  value="1" 
                                                               name="{$setting->colum_name}"
                                                               {if $programesettingex->$xx eq 1}checked{/if} >
                                                    </span> 
                                                    {$setting->show_name}
                                                </label>
                                            </td>
                                            {assign var="i" value={$i+1}}

                                            {if $i == 8 }
                                            {assign var="i" value="1"}
                                        </tr>
                                        <tr>
                                            {/if}
                                            {/foreach}
                                        </tr>
                                    </table>


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

                                            <td>
                                                <label class="fleft " for="past"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Past H Tab ">
                                                    <span>
                                                        <input type="checkbox" id="past"  value="1" name="past" {if $programesetting.past eq 1}checked{/if} >
                                                    </span> 
                                                    Past H
                                                </label>
                                            </td>
                                            <td>
                                                <label class="fleft " for="medical"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Medical Tab ">
                                                    <span>
                                                        <input type="checkbox" id="medical"  value="1" name="medical" {if $programesetting.medical eq 1}checked{/if} >
                                                    </span> 
                                                    Medical
                                                </label>
                                            </td>

                                            <td>
                                                <label class="fleft " for="surgical"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Surgical Tab ">
                                                    <span>
                                                        <input type="checkbox" id="surgical"  value="1" name="surgical" {if $programesetting.surgical eq 1}checked{/if} >
                                                    </span> 
                                                    Surgical
                                                </label>
                                            </td>
                                            <td>
                                                <label class="fleft " for="gynecological"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Gynecological Tab ">
                                                    <span>
                                                        <input type="checkbox" id="gynecological"  value="1" name="gynecological" {if $programesetting.gynecological eq 1}checked{/if} >
                                                    </span> 
                                                    Gynecological
                                                </label>
                                            </td>

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


                                    <table class="table">
                                        <tr>
                                            <th colspan="9" style="text-align: center;" >
                                                Examination Controller
                                            </th>
                                        </tr>
                                        <tr>
                                            <td scope="row"><label class="control-label" for="form_control_1">Head and neck</label></td>
                                            <td class="br"><input type="radio" id="head0" name="head" class="  md-radiobtn" value="0"  {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>

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

                                        </tr>
                                        <tr>


                                            <td scope="row">
                                                <label class="control-label" for="form_control_1">Pelvis</label>
                                            </td>
                                            <td class="br">
                                                <input type="radio" id="pelvis0" name="pelvis" class="  md-radiobtn" value="0"  {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>

                                            <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>
                                                Ovum Pick UP / Embryo Transfer
                                            </label>
                                        </th>
                                        </tr>
                                        <tr>
                                            <th> 
                                                <label class="control-label" for="form_control_1">Operation  Surgeon </label>
                                            </th>
                                            <td>
                                                <input type="radio" id="surgeon1" name="surgeon" class="md-radiobtn" value="1" 
                                                       {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 class="table m0">
                                        <tr>
                                            <th class="wds18"> Program Version</th>
                                            <td class="wds35"> 
                                                <div class="md-radio-inline">
                                                    <div class="md-radio fleft">
                                                        <input type="radio" id="system_type1" name="system_type" class="md-radiobtn" value="1" 
                                                               {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>
                                                    </div>

                                                    <div class="md-radio fleft">
                                                        <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>
                                                    </div>

                                                    <div class="md-radio fleft">
                                                        <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>
                                                    </div>

                                                    <div class="md-radio fleft">
                                                        <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>
                                                    </div>

                                                </div>
                                            </td>

                                            <th class="wds18"> Program Language   </th>
                                            <td > 
                                                <div class="md-radio-inline">
                                                    <div class="md-radio fleft">
                                                        <input type="radio" id="system_lang1" name="system_lang" class="md-radiobtn" value="1" 
                                                               {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>
                                                    </div>

                                                    <div class="md-radio fleft">
                                                        <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>
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>


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

                                                    <div class="md-radio fleft">
                                                        <input type="radio" id="org_in2" name="org_in" value="2"
                                                               class="md-radiobtn updateElement"  data-id="{$programesetting.id}"
                                                               data-tableName="programesetting"    data-colName="org_in"
                                                               {if $programesetting.org_in  == 2 }checked{/if}>
                                                               <label for="org_in2"  data-toggle="popover" data-trigger="hover"
                                                               data-placement="bottom" data-content="">
                                                            <span></span>
                                                            <span class="check"></span>
                                                            <span class="box"></span>
                                                            Patient Profile </label>
                                                    </div>
                                                </div>
                                            </td>

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

                                                    <div class="md-radio fleft">
                                                        <input type="radio" id="price_in2" name="price_in" class="md-radiobtn updateElement"
                                                               data-id="{$labSetting->id}" data-tableName="programesettinglab" value="restdetectionvalue"
                                                               data-colName="price_in"   {if $labSetting->price_in eq 'restdetectionvalue'}checked{/if}>
                                                        <label for="price_in2">
                                                            <span></span>
                                                            <span class="check"></span>
                                                            <span class="box"></span>
                                                            Rest
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>


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

                                                    <div class="md-radio fleft">
                                                        <input type="radio" id="organizations1" name="organizations" class="md-radiobtn" value="1"
                                                               {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>
                                                    </div>

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

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

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

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


                                    </table>

                                    <table class="table">
                                        <tr>
                                            <td>
                                                <label class="control-label" for="form_control_1">Rooms Chart </label>
                                            </td>
                                            <td > 
                                                <input type="radio" id="rooms1" name="rooms" 
                                                       class="md-radiobtn" value="1" 
                                                       {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>
                                            <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_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>


