<meta charset="utf8">
<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
    <div class="page-content">
        <!--go-->
        <!-- BEGIN PAGE HEADER--  >
        <h3 class="page-title">
            {$shcontrollname}
        </h3>
        <div class="page-bar">
            <ul class="page-breadcrumb">
                {$breadcrumbs}
            </ul>
        </div>
        <!-- END PAGE HEADER-->
        <!-- BEGIN PAGE CONTENT-->
        <div class="row">
            <div class="col-md-12 ">

                <!-- BEGIN SAMPLE FORM PORTLET-->
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption fleft">Operation Waiting List  </div>
                        <div class="tools fright">
                            <a href="#" class="collapse" title="تصغير / تكبير"></a>
                        </div>
                    </div>
                    <div class="portlet-body form">

                        <!--<form method="post">-->
                        <div class="form-body">
                            <div class="clinick">
                                <div class="row">

                                    <form action="#" id="myvisitform" method="post" class="awval">

                                        <table class="table table-bordered  table-hover" style="margin-bottom: 0px;">
                                            <tr>
                                                <th style="width: 15%;">Date</th>
                                                <th style="width: 10%;">Patient No</th>
                                                <th>Patient Name  </th>
                                                <th style="width: 25%;">Operation</th>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <input class="form-control   datepicker edited"  readonly
                                                           type="text"  id="opdate" name="opdate" required value="{$today}">
                                                </td>
                                                <td>
                                                    <input type="text"  id="statusNoVisit"      
                                                           class="form-control  txtc searchPatVisit positiveNo " >
                                                </td>
                                                <td>
                                                    <input type="hidden" class="form-control"    id="patientvisitidW" 
                                                           name="patientid"  >
                                                </td>
                                                <td>
                                                    <select   multiple="" class="form-control"  id="operationW" 
                                                              data-celtable="operation" name="operationW[]"  >
                                                        <option value="">choose</option>
                                                        {foreach $operations as $data}
                                                        <option value="{$data->id}" >{$data->title}</option>
                                                        {/foreach}
                                                        <option value="-2"  class="deleteselect">Delete</option>
                                                    </select>
                                                </td>
                                            </tr>
                                        </table>

                                        <table class="table table-bordered  table-hover" style="margin-bottom: 0px;">
                                            <tr>
                                                <th style="width: 25%;">Place</th>
                                                <th>Notes</th>
                                                <th></th>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <select   class="form-control"  id="placeW" 
                                                              data-celtable="place"  name="placeW" >
                                                        <option value="">choose</option>
                                                        {foreach $places as $data}
                                                        <option value="{$data->id}" >{$data->title}</option>
                                                        {/foreach}
                                                        <option value="-2"  class="deleteselect">Delete</option>
                                                    </select>
                                                </td>
                                                <td>
                                                    <input type="text" name="notes" id="notes"    class="form-control txtc ">
                                                </td>

                                                <td>
                                                    <a class=" bg-blue btn " id="saveNewOpV" >Save </a>
                                                    <a class=" bg-green btn  " id="saveEditOpV" 
                                                       data-visitId="0" style="display: none; ">Save </a>
                                                    <a class=" bg-red btn " id="cancelEditOpV" 
                                                       data-visitId="0" style="display: none;  ">Cancel</a>

                                                    <input type="hidden"  name="editView"  id="editView"  value="0">
                                                    <input type="hidden"  name="mVisitId"  id="mVisitId"  value="0">
                                                    <input type="hidden" id="controllname"  value="{$controllname}" />
                                                </td>
                                            </tr>
                                        </table>
                                    </form>
                                </div>
                            </div>
                        </div>
                        <!--</form>-->
                    </div>
                </div>
            </div>

            <div class="col-md-12 ">
                <div class="todayvisit" >
                    <div class="portlet box blue">
                        <div class="portlet-title">
                            <div class="caption fleft">
                                Operation Waiting List
                            </div>
                            <div class="tools fright">
                                <a href="#" class="collapse" title="تصغير / تكبير"></a>
                            </div>
                        </div>
                        <div class="portlet-body form"> 
                            <div class="table-toolbar" style="margin-bottom: 0;">
                                <div class="row" style="margin: 10px !important;">

                                    <div class="col-md-2">
                                        <div class="form-group">
                                            <label class="control-label ls2">Patient No   </label>
                                            <input type="text"  id="statusNoRemote"  
                                                   class="form-control  txtc searchPatRemote positiveNo " >
                                        </div>
                                    </div>

                                    <div class="col-md-5">
                                        <div class="form-group">
                                            <label class="control-label ls2">Patient Name   </label>
                                            <input type="hidden" class="form-control"    id="patientIdRemote"  >
                                        </div>
                                    </div>

                                    <div class="col-md-2">
                                        <div class="form-group">
                                            <label class=" control-label ls2">Date From   </label>
                                            <input type="text"  id="date_from" value="{$today}" 
                                                   class=" form-control  datepicker"   placeholder="التاريخ من "/>
                                        </div>
                                    </div>

                                    <div class="col-md-2">
                                        <div class="form-group">
                                            <label class="control-label ls2">Date To    </label>
                                            <input type="text"  id="date_to" value="{$today}" 
                                                   class=" form-control  datepicker"    placeholder="التاريخ إلى"/>                                                    
                                        </div>
                                    </div>
                                    <a class=" bg-blue btn " style="margin-top: 18px;" id="searchOpV" >Search </a>

                                </div>
                            </div>
                            <div id="visitNew">

                            </div>
                        </div>
                    </div>
                    <!--                                           
                </div>
                    <!-- END SAMPLE FORM PORTLET-->
                </div>
                <!-- END SAMPLE FORM PORTLET-->
            </div>

            <!-- END PAGE CONTENT-->
        </div>
    </div>
    <!-- END CONTENT -->
    <!--<div class="modal fade" id="detectionforview" tabindex="-1" role="basic" aria-hidden="true">
    
    </div>-->
    <div class="bootbox modal fade bootbox-alert in" tabindex="-1" role="dialog" aria-hidden="false"  id="edit_detectionforview">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                    <h4 class="modal-title"> Edit </h4>
                </div>
                <div class="modal-body">
                    <div class="portlet-body form">
                        <form action="" id="" method="post" class="form-horizontal  emptyform" >
                            <div class="form-body">
                                <!------===========================================------->
                                <div>
                                    <div id="detectionforview" class=""> </div>
                                </div>


                                <!------===========================================------->
                                <div class="modal-footer">
                                    <!--                                <button type="button" class="btn green" id="editmodel_submit"> Update </button>-->
                                    <button type="button" id="amountcloseinput"   class="btn default" data-dismiss="modal">Close</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <!-- /.modal-content -->
            </div>
        </div>
    </div>

    <div id="editModalDiv"></div>
    <div id="waitingListDiv"> </div>