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

                        <!--Begin Semen-->

                        <div class="row">

                            <form action="{$hosturl}/controllers/{$controllname}.php?ac=addit" method="post" enctype="multipart/form-data">
                                <div class="form-body">

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

                                    </div>


                                    <div class="row">

                                        <div class="col-md-6">
                                            <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-6">
                                            <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>
                                    <br/>
                                    <div class="row">

                                        <div class="col-md-4">
                                            <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-4">
                                            <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-4">
                                            <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 class="col-md-6">
                                            <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-6">
                                            <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-3">
                                            <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-3">
                                            <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-3">
                                            <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-3">
                                            <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">Mysql Path  </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="fontsizear" placeholder="Enter fontsizear" name="fontsizear" value="{$programesetting.fontsizear}">
                                                <label for="fontsizear">Arabic font size </label>
                                                <span class="input-group-addon">Pixel</span>

                                            </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="fontsizeen" placeholder="Enter fontsizeen" name="fontsizeen"  value="{$programesetting.fontsizeen}">
                                                <label for="fontsizeen">English font size </label>
                                                <span class="input-group-addon">Pixel</span>

                                            </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="namefontsize" placeholder="Enter Patient Name font size" name="namefontsize"  value="{$programesetting.namefontsize}">
                                                <label for="namefontsize">Patient Name font size </label>
                                                <span class="input-group-addon">Pixel</span>

                                            </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" name="phppath" id="phppath" value="{$programesetting.phppath}">
                                                <label for="form_control_1">Php Path  </label>

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









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

                                        .bf{
                                            border-left: none ;
                                        }

                                        .br{
                                            border-right: none ;
                                        }

                                    </style>


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

                                        <tr>
                                            <td>
                                                <label for="infertility"   data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show infertility button  in Gyna">
                                                    <span>
                                                        <input type="checkbox"   id="infertility"   value="1" name="infertility"  {if $programesetting.infertility eq 1}checked{/if} >
                                                    </span> 
                                                    Infertility Btn (Gyna controller)
                                                </label>
                                            </td>
                                            <td>
                                                <label for="patient_doctor"   data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show patient's doctor  in patient add and edit ">
                                                    <span>
                                                        <input type="checkbox"   id="patient_doctor"   value="1" name="patient_doctor"  {if $programesetting.patient_doctor eq 1}checked{/if} >
                                                    </span> 
                                                    Patient's Doctor  (Add Patient  controller)
                                                </label>
                                            </td>
                                        </tr>

                                        <tr>
                                            <td>
                                                <label for="visit_period"   data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="">
                                                    <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 for="print_diag"   data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="">
                                                    <span>
                                                        <input type="checkbox"   id="print_diag"   value="1" name="print_diag"  {if $programesetting.print_diag eq 1}checked{/if} >
                                                    </span> 
                                                    Print  Diagnosis (prescription print  )
                                                </label>
                                            </td>
                                        </tr>


                                        <tr>
                                            <td>
                                                <label for="previous_marriage"   data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="">
                                                    <span>
                                                        <input type="checkbox"   id="previous_marriage"   value="1" name="previous_marriage"  {if $programesetting.previous_marriage eq 1}checked{/if} >
                                                    </span> 
                                                    Previous Marriage (Add Patient )
                                                </label>
                                            </td>
                                            <td>
                                            </td>
                                        </tr>


                                    </table>


                                    <table  border="1">
                                        <tr>
                                            <th colspan="4" style="text-align: center;" >
                                                <label>
                                                    Patient History Controller Tabs
                                                </label>
                                            </th>
                                        </tr>
                                        <tr>
                                            <td>
                                                <label for="menstrual"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Menstrual H Tab ">
                                                    <span>
                                                        <input type="checkbox" id="menstrual"  value="1" name="menstrual" {if $programesetting.menstrual eq 1}checked{/if} >
                                                    </span> 
                                                    Menstrual H
                                                </label>
                                            </td>
                                            <td>
                                                <label for="contraception"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Contraception H Tab ">
                                                    <span>
                                                        <input type="checkbox" id="contraception"  value="1" name="contraception" {if $programesetting.contraception eq 1}checked{/if} >
                                                    </span> 
                                                    Contraception H
                                                </label>
                                            </td>
                                            <td>
                                                <label for="obstetric"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Obstetric H Tab ">
                                                    <span>
                                                        <input type="checkbox" id="obstetric"  value="1" name="obstetric" {if $programesetting.obstetric eq 1}checked{/if} >
                                                    </span> 
                                                    Obstetric H
                                                </label>
                                            </td>
                                            <td>
                                                <label for="family"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Family H Tab ">
                                                    <span>
                                                        <input type="checkbox" id="family"  value="1" name="family" {if $programesetting.family eq 1}checked{/if} >
                                                    </span> 
                                                    Family H
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>  
                                            <td>
                                                <label for="past"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Past H Tab ">
                                                    <span>
                                                        <input type="checkbox" id="past"  value="1" name="past" {if $programesetting.past eq 1}checked{/if} >
                                                    </span> 
                                                    Past H
                                                </label>
                                            </td>
                                            <td>
                                                <label for="medical"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Medical Tab ">
                                                    <span>
                                                        <input type="checkbox" id="medical"  value="1" name="medical" {if $programesetting.medical eq 1}checked{/if} >
                                                    </span> 
                                                    Medical
                                                </label>
                                            </td>
                                            <td>
                                                <label for="surgical"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Surgical Tab ">
                                                    <span>
                                                        <input type="checkbox" id="surgical"  value="1" name="surgical" {if $programesetting.surgical eq 1}checked{/if} >
                                                    </span> 
                                                    Surgical
                                                </label>
                                            </td>
                                            <td>
                                                <label for="gynecological"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Gynecological Tab ">
                                                    <span>
                                                        <input type="checkbox" id="gynecological"  value="1" name="gynecological" {if $programesetting.gynecological eq 1}checked{/if} >
                                                    </span> 
                                                    Gynecological
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <label for="art"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show ART Tab ">
                                                    <span>
                                                        <input type="checkbox" id="art"  value="1" name="art" {if $programesetting.art eq 1}checked{/if} >
                                                    </span> 
                                                    ART
                                                </label>
                                            </td>
                                            <td>
                                                <label for="art_external"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show ART External  Tab ">
                                                    <span>
                                                        <input type="checkbox" id="art_external"  value="1" name="art_external" {if $programesetting.art_external eq 1}checked{/if} >
                                                    </span> 
                                                    ART External
                                                </label>
                                            </td>
                                            <td>
                                                <label for="art_internal"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show ART  Internal Tab ">
                                                    <span>
                                                        <input type="checkbox" id="art_internal"  value="1" name="art_internal" {if $programesetting.art_internal eq 1}checked{/if} >
                                                    </span> 
                                                    ART Internal 
                                                </label>
                                            </td>
                                            <td>
                                            </td>
                                        </tr>
                                    </table>

                                    <table  border="1">
                                        <tr>
                                            <th colspan="4"  style="text-align: center;" >
                                                Blood Bar
                                            </th>
                                        </tr>
                                        <tr>
                                            <td>
                                                <label for="btype"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Wife Blood Type ">
                                                    <span>
                                                        <input type="checkbox" id="btype"  value="1" name="btype" {if $programesetting.btype eq 1}checked{/if} >
                                                    </span> 
                                                    Wife Blood Type
                                                </label>
                                            </td>
                                            <td>
                                                <label for="hbtype"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Husband Blood Type">
                                                    <span>
                                                        <input type="checkbox" id="hbtype"  value="1" name="hbtype" {if $programesetting.hbtype eq 1}checked{/if} >
                                                    </span> 
                                                    Husband Blood Type
                                                </label>
                                            </td>

                                            <td>
                                                <label for="risk"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Risks">
                                                    <span>
                                                        <input type="checkbox" id="risk"  value="1" name="risk" {if $programesetting.risk eq 1}checked{/if} >
                                                    </span> 
                                                    Risks
                                                </label>
                                            </td>
                                            <td>
                                                <label for="notes"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Notes">
                                                    <span>
                                                        <input type="checkbox" id="notes"  value="1" name="notes" {if $programesetting.notes eq 1}checked{/if} >
                                                    </span> 
                                                    Notes 
                                                </label>
                                            </td>
                                        </tr>
                                    </table>

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

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

                                                <input type="radio" id="chest1" name="chest" class="  md-radiobtn" value="1" {if $programesetting.chest eq 1}checked{/if}>
                                                <label   for="chest1" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Chest and heart as a textbox">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Text </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td scope="row"><label class="control-label" for="form_control_1">Abdomen</label></td>
                                            <td class="br"><input type="radio" id="abdomen0" name="abdomen" class="  md-radiobtn" value="0"  {if $programesetting.abdomen eq 0}checked{/if}>
                                                <label  for="abdomen0" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Abdomen as a drop down list">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Select </label>
                                            </td>
                                            <td class="bf">
                                                <input type="radio" id="abdomen1" name="abdomen" class="  md-radiobtn" value="1" {if $programesetting.abdomen eq 1}checked{/if}>
                                                <label  for="abdomen1" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Abdomen as a textbox">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Text </label></td>
                                            <td scope="row">
                                                <label class="control-label" for="form_control_1">Pelvis</label>
                                            </td>
                                            <td class="br">
                                                <input type="radio" id="pelvis0" name="pelvis" class="  md-radiobtn" value="0"  {if $programesetting.pelvis eq 0}checked{/if}>
                                                <label   for="pelvis0" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Pelvis as a drop down list">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Select </label>

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

                                                <input type="radio" id="pelvis1" name="pelvis" class="  md-radiobtn" value="1" {if $programesetting.pelvis eq 1}checked{/if}>
                                                <label   for="pelvis1" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Pelvis as a textbox">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Text </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td scope="row"><label class="control-label" for="form_control_1">Extremities</label></td>
                                            <td class="br"><input type="radio" id="extremitis0" name="extremitis" class="  md-radiobtn" value="0"  {if $programesetting.extremitis eq 0}checked{/if}>
                                                <label  for="extremitis0" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Extremities as a drop down list">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Select </label>
                                            </td>
                                            <td class="bf">
                                                <input type="radio" id="extremitis1" name="extremitis" class="  md-radiobtn" value="1" {if $programesetting.extremitis eq 1}checked{/if}>
                                                <label  for="extremitis1" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show Extremities as a textbox">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Text </label></td>
                                            <td scope="row">
                                            </td>
                                            <td class="br">


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


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


                                    <table  border="1">

                                        <tr>
                                            <td scope="row">
                                                <label class="control-label" for="form_control_1">Program  Type</label>
                                            </td>
                                            <td class="br">
                                                <input type="radio" id="programview0" name="programview" class="  md-radiobtn" value="0"  {if $programesetting.programview eq 0}checked{/if}>
                                                <label  for="programview0"  data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show general clinic ">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    General  Clinic </label>
                                            </td>
                                            <td class="bf">
                                                <input type="radio" id="programview1" name="programview" class="  md-radiobtn" value="1" {if $programesetting.programview eq 1}checked{/if}>
                                                <label  for="programview1" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="show gynecology clinic">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Gynecology Clinic </label>
                                            </td>
                                            <td></td>
                                            <td class="br"></td>
                                            <td class="bf"></td>
                                        </tr>


                                        <tr>
                                            <td scope="row"><label class="control-label" for="form_control_1">Program  Show</label></td>
                                            <td class="br">
                                                <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 class="bf">

                                                <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>
                                            <td scope="row"><label class="control-label" for="form_control_1">Today Visits Display </label></td>
                                            <td class="br">
                                                <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 class="bf">
                                                <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>
                                        </tr>
                                        <tr>
                                            <td scope="row"><label class="control-label" for="form_control_1">Entry order</label></td>
                                            <td class="br"><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 class="bf">
                                                <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">Diagnosis show</label>
                                            </td>
                                            <td class="br">
                                                <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 class="bf">

                                                <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>
                                        </tr>
                                        <tr>
                                            <td scope="row"><label class="control-label" for="form_control_1">Investigation  show</label></td>
                                            <td class="br"><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 class="bf">
                                                <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>
                                            <td scope="row"><label class="control-label" for="form_control_1">Prescription Cashing</label></td>
                                            <td class="br"><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 class="bf">
                                                <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_2">Prescription Print </label>
                                            </td>
                                            <td class="br">
                                                <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 class="bf">
                                                <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>

                                            <td scope="row">
                                                <label class="control-label" for="form_control_2">Total balance</label>
                                            </td>
                                            <td class="br">
                                                <input type="radio" id="balance0" name="balance" class="  md-radiobtn" value="0"  {if $programesetting.balance eq 0}checked{/if}>
                                                <label  for="balance0" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="prevent paying  bill in installments">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Deactivate  </label>
                                            </td>
                                            <td class="bf">
                                                <input type="radio" id="balance1" name="balance" class="  md-radiobtn" value="1" {if $programesetting.balance eq 1}checked{/if}>
                                                <label  for="balance1" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="allow paying  bill in installments ">
                                                    <span></span>
                                                    <span class="check"></span>
                                                    <span class="box"></span>
                                                    Activate </label>
                                            </td>
                                        </tr>

                                        <tr>
                                            <td scope="row">
                                                <label for="exampleInputFile2" class="control-label"> Background </label>
                                            </td>
                                            <td class="br">
                                                <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>
                                                </div>
                                            </td>
                                            <td class="bf">
                                                <button type="button" class="btn default">
                                                    <a href="javascript:;" id="deleteBackground"> Delete background</a>
                                                </button>
                                            </td>
                                            <td scope="row">
                                                <label for="exampleInputFile2" class="control-label"> GT Image </label>
                                                <span class="error">( 1164px*476px )</span>
                                            </td>
                                            <td class="br">
                                                <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/gtimage/{$programesetting.gtimage}" id="gtimage"  />
                                                    </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="gtimage" id="gtimage" >
                                                        </span>
                                                        <a href="#" class="btn red fileinput-exists" data-dismiss="fileinput"> Delete</a>
                                                    </div>
                                                </div>
                                            </td>
                                            <td class="bf"></td>
                                        </tr>


                                    </table>



                                    <input name="bimageurl"  id="bimageurl" type="hidden" value="{$programesetting.background}" />
                                    <input name="bimageurl"  id="gtimageold" type="hidden" value="{$programesetting.gtimage}" />
                                    <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>


