<meta charset="utf8" />
<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
    <div class="page-content">
        <div class="row">
            <h1>Database Setting</h1>
            <!--span>
                clean all tables from database if you are sure click at
            </span>
            <a class="btn btn-danger clntbls"  data-loading-text="Loading..." data-all="0">Clean all tables</a-->
            <br />
            <br />
            <br />
            <br />
            <span>
                Prepare Empty Database
            </span>
            <a class="btn btn-danger clntblsdefault"  data-loading-text="Loading..." data-all="1">Clean all tables</a>



            <br />
            <br />
            <br />
            <br />
            <span>
                erp database.
            </span>
            <input class="form-control" type="text" id="erpDB" value="{$programesetting->erpdb}" name="erpDB" style="text-transform: none;width: 50%;display: inline;" data-placement="bottom" data-content="100" title="optional it is need only to communicate with erp system if needed">
            <a class="btn btn-success saveErpDB"  data-loading-text="Loading...">save</a>
            <br />
            <br />
            <br />
            <br />
            <span>
                erp save.
            </span>
            <input type="hidden" id="erpDBSave" name="erpDBSave" data-placeholder="Select save ..." style="width: 40%!important"/>
            <input type="hidden" name="save" id="save" value="{$programesetting->erpdbsave}"/>
            <input type="hidden" name="erpdbsavename" id="erpdbsavename" value="{$programesetting->erpdbsavename}"/>
            <a class="btn btn-success saveErpSave"  data-loading-text="Loading...">save</a>
            <br />
            <br />
            <br />
            <br />
            <span>
                erp visa account.
            </span>
            <input type="hidden" id="erpDBVisaAccount" name="erpDBVisaAccount" data-placeholder="Select account ..." style="width: 40%!important"/>
            <input type="hidden" name="erpDBVisaAccountId" id="erpDBVisaAccountId" value="{$programesetting->erpdbvisaaccount}"/>
            <input type="hidden" name="erpDBVisaAccountName" id="erpDBVisaAccountName" value="{$programesetting->erpdbvisaaccountname}"/>
            <a class="btn btn-success saveERPDBVisaAccount"  data-loading-text="Loading...">save</a>
            <br />
            <br />
            <br />
            <br />
            <span>
                Add all patients to ERP
            </span>
            <a class="btn btn-success syncPatientsToERP"  data-loading-text="Loading...">GO</a>
            <br />
            <br />
            <br />
            <br />
            <span>
                Add all detections to ERP
            </span>
            <a class="btn btn-success syncDetectionsToERP"  data-loading-text="Loading...">GO</a>
            <br />
            <br />
            <br />
            <br />
            <span>
                Add all doctors to ERP
            </span>
            <a class="btn btn-success syncDoctorsToERP"  data-loading-text="Loading...">GO</a>
            <br />
            <br />
            <br />
            <br />
            <span>
                Add all Investigation "Lab." to ERP
            </span>
            <a class="btn btn-success syncInvestigationsToERP"  data-loading-text="Loading...">GO</a>


        </div>
    </div>
</div>
<!-- END CONTENT -->
