
<div class="page-content-wrapper">
    <div class="page-content all">
        <div class="row ">
            <div class="col-md-12" style="padding-right: 0px; padding-left: 0px;">
                <div class="portlet box blue">
                    <div class="portlet-title" style="height: 5px">
                        <div class="caption">
                            Examination
                        </div>
                        <div class="actions">
                            <a href="javascript:;" class="btn btn-default btn-sm" id="and_exam_add">
                                Add New</a>
                        </div>

                    </div>
                    <div class="portlet-body check_heigt_and_make_new_class" id="justfordrugs" >
                        <div class="table-toolbar">

                        </div>
                        <table class="table table-striped table-hover table-bordered" id="and_exam_table">
                            <thead>

                                <tr>
                                    <th class="col-md-2" style="width: 100px;">
                                        Date
                                    </th>
                                    <th style="width: 60%;">
                                        details
                                    </th>
                                    <th style="width: 20%;">
                                        Notes
                                    </th>
                                    <th style="width: 5px;">
                                        Delete
                                    </th>
                                    {if $ProgramesettingData->displaydoctorname eq 1}
                                    <th style="width: 5px;">
                                        Doctor
                                    </th>
                                    {/if}
                                </tr>
                            </thead>
                            <tbody>
                                {foreach $elements as $element }
                                <tr>
                                    <td>
                                        <input type="text" class="form-control datepicker updateElement" readonly="" placeholder="Date" data-colName="date" data-id="{$element->id}"  data-tableName="andexamination" value="{$element->date}"/>
                                    </td>
                                    <td>
                                        <table class="table table-striped table-hover table-bordered">
                                            <tr>
                                                <th style="width: 13%;">  </th>
                                                <th> Right </th>
                                                <th> Left </th>
                                            </tr>
                                            <tr>
                                                <th> Tests </th>
                                                <td>
                                                    <input type="text" class="form-control updateElement" placeholder="testes" data-colName="testesr" data-id="{$element->id}"  data-tableName="andexamination" value="{$element->testesr}">
                                                </td>
                                                <td>
                                                    <input type="text" class="form-control updateElement" placeholder="testes" data-colName="testesl" data-id="{$element->id}"  data-tableName="andexamination" value="{$element->testesl}">
                                                </td>
                                            </tr>
                                            <tr>
                                                <th> epid </th>
                                                <td>
                                                    <input type="text" class="form-control updateElement" placeholder="epid" data-colName="epidr" data-id="{$element->id}"  data-tableName="andexamination" value="{$element->epidr}">
                                                </td>
                                                <td>
                                                    <input type="text" class="form-control updateElement" placeholder="epid" data-colName="epidl" data-id="{$element->id}"  data-tableName="andexamination" value="{$element->epidl}">
                                                </td>
                                            </tr>
                                            <tr>
                                                <th> vas </th>
                                                <td>
                                                    <input type="text" class="form-control updateElement" placeholder="vas" data-colName="vasr" data-id="{$element->id}"  data-tableName="andexamination" value="{$element->vasr}">
                                                </td>
                                                <td>
                                                    <input type="text" class="form-control updateElement" placeholder="vas" data-colName="vasl" data-id="{$element->id}"  data-tableName="andexamination" value="{$element->vasl}">
                                                </td>
                                            </tr>
                                            <tr>
                                                <th> cord </th>
                                                <td>
                                                    <input type="text" class="form-control updateElement" placeholder="cord" data-colName="cordr" data-id="{$element->id}"  data-tableName="andexamination" value="{$element->cordr}">
                                                </td>
                                                <td>
                                                    <input type="text" class="form-control updateElement" placeholder="cord" data-colName="cordl" data-id="{$element->id}"  data-tableName="andexamination" value="{$element->cordl}">
                                                </td>
                                            </tr>
                                        </table>   
                                    </td>
                                    <td>
                                        <textarea class="form-control txtc updateElement" rows="3" data-colName="notes" data-id="{$element->id}"  data-tableName="andexamination" placeholder="Notes here ...." data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$element->notes}">{$element->notes}</textarea>
                                    </td>

                                    <td>
                                        <a class="btn grey-cascade btn-xs deletemsgEX" data-id="{$element->id}" style=" float: left;" href="#" data-link="and_examination" data-fn="del" data-tableName="andexamination">
                                            <i class="fa fa-close"></i>
                                        </a>
                                    </td>
                                    {if $ProgramesettingData->displaydoctorname eq 1}
                                    <td class="bold">
                                        {$element->doctorName}
                                    </td>
                                    {/if}
                                </tr>
                                {/foreach}
                            </tbody>
                        </table>



                    </div>
                </div>
            </div>
        </div>
    </div>

</div>
<input type="hidden" id="patientId" value="{$patientid}"/>
<input type="hidden" id="controllName" value="{$controllname}"/>
<!----#########################################################################  model ##############################################################################################################--->
