
<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">
                            <i class="fa fa-edit"></i> Previous ART trials
                        </div>
                        <div class="actions">
                            <a href="{$hosturl}/controllers/monitoring.php?ac=index&patientid={$patientid}" class="btn btn-default btn-sm">
                                Monitoring sheet
                            </a>
                        </div>
                    </div>

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

                        {foreach $monitorSheets as $data}
                        <table class="table table-striped table-hover table-bordered">
                            <thead>
                                <tr>
                                    <th rowspan="2">
                                        Type
                                    </th>
                                    <th rowspan="2">
                                        Date
                                    </th>
                                    <th rowspan="2">
                                        Place
                                    </th>
                                    <th rowspan="2">
                                        Protocol
                                    </th>
                                    <th rowspan="2">
                                        No. of Amp
                                    </th>
                                    <th colspan="4">
                                        No. of oocytes
                                    </th>
                                    <th colspan="2">
                                        No. of ET
                                    </th>
                                    <th colspan="2">
                                        Cryo-preserved E.
                                    </th>
                                    <th rowspan="2">
                                        P4
                                    </th>
                                    <th rowspan="2">
                                        Outcome
                                    </th>
                                </tr>
                                <tr>
                                    <th>
                                        Total
                                    </th>
                                    <th>
                                        MI
                                    </th>
                                    <th>
                                        MII
                                    </th>
                                    <th>
                                        GV
                                    </th>
                                    <th>
                                        Total
                                    </th>
                                    <th>
                                        G1
                                    </th>
                                    <th>
                                        Day
                                    </th>
                                    <th>
                                        W0
                                    </th>
                                </tr>
                            </thead>
                            <tbody>

                                <tr>
                                    <td>
                                        {$data->procedure}
                                    </td>
                                    <td style="padding: 3px;">
                                        <div align="center">
                                            <a href="{$hosturl}/controllers/monitoring.php?ac=trialdetail&patientid={$patientid}&id={$data->id}">
                                                {$data->monitordate}
                                            </a>
                                        </div>

                                    </td>
                                    <td>
                                        <input type="text" class="form-control updateElement" data-id="{$data->id}" data-colName="place" data-tableName="mointoringsheet" value="{$data->place}" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$data->place}" />
                                    </td>
                                    <td>
                                        {$data->protocol}
                                    </td>
                                    <td>
                                        <input type="text" class="form-control updateElement" data-id="{$data->id}" data-colName="amp" data-tableName="mointoringsheet" value="{$data->amp}" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$data->amp}" />
                                    </td>
                                    <td>
                                        <input type="text" class="form-control updateElement" data-id="{$data->id}" data-colName="oocytestotal" data-tableName="mointoringsheet" value="{$data->oocytestotal}" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$data->oocytestotal}" />
                                    </td>
                                    <td>
                                        <input type="text" class="form-control updateElement" data-id="{$data->id}" data-colName="oocytesm1" data-tableName="mointoringsheet" value="{$data->oocytesm1}" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$data->oocytesm1}" />
                                    </td>
                                    <td>
                                        <input type="text" class="form-control updateElement" data-id="{$data->id}" data-colName="oocytesm2" data-tableName="mointoringsheet" value="{$data->oocytesm2}" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$data->oocytesm2}" />
                                    </td>
                                    <td>
                                        <input type="text" class="form-control updateElement" data-id="{$data->id}" data-colName="oocytesgv" data-tableName="mointoringsheet" value="{$data->oocytesgv}" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$data->oocytesgv}" />
                                    </td>
                                    <td>
                                        <input type="text" class="form-control updateElement" data-id="{$data->id}" data-colName="ettotal" data-tableName="mointoringsheet" value="{$data->ettotal}" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$data->ettotal}" />
                                    </td>
                                    <td>
                                        <input type="text" class="form-control updateElement" data-id="{$data->id}" data-colName="etg1" data-tableName="mointoringsheet" value="{$data->etg1}" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$data->etg1}" />
                                    </td>
                                    <td>
                                        <input type="text" class="form-control updateElement" data-id="{$data->id}" data-colName="cyroday" data-tableName="mointoringsheet" value="{$data->cyroday}" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$data->cyroday}" />
                                    </td>
                                    <td>
                                        <input type="text" class="form-control updateElement" data-id="{$data->id}" data-colName="cyrow" data-tableName="mointoringsheet" value="{$data->cyrow}" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$data->cyrow}" />
                                    </td>
                                    <td>
                                        <input type="text" class="form-control updateElement" data-id="{$data->id}" data-colName="p4" data-tableName="mointoringsheet" value="{$data->p4}" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$data->p4}" />
                                    </td>
                                    <td>
                                        <input type="text" class="form-control updateElement" data-id="{$data->id}" data-colName="outcome" data-tableName="mointoringsheet" value="{$data->outcome}" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$data->outcome}" />
                                    </td>
                                </tr>

                                <tr>
                                    <th>Notes</th>
                                    <td colspan="14">
                                        <textarea class="form-control txtc updateElement" rows="1" data-id="{$data->id}" 
                                                  data-colName="notes" data-tableName="mointoringsheet" placeholder="Enter more text"
                                                  data-toggle="popover" data-trigger="hover" data-placement="bottom" 
                                                  data-content="{$data->notes}">{$data->notes}
                                        </textarea>
                                    </td>
                                </tr>



                            </tbody>
                        </table>
                        {/foreach}




                        <div class="clearfix"></div>
                    </div>
                </div>
            </div>
        </div>

    </div>

</div>

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


