
<style type="text/css">
   .yellow{
   background: yellow;
   }
   .red{
   background: #d40404;
   color: #fff
   }
   h2{
   text-align: center;
   }
   hr{
   margin: 10px 40%;
   border: 1px solid;
   }
   .toggle{
   font-weight: 800;max-width: 130px;
   }
   .rowtoggle{
   padding-bottom: 10px;
   }
   .thhead{
   background: #fff !important;
   color: red !important
   }
   .addappend{
   color: red;
   }
   .colorred{
   color: red;
   font-size: 14px
   }
   .hr{
   margin: 20px 17%;
   border: 1px dotted;
   }
   .tdcolor{
   background: #aaa; border: 1px solid #000 !important;
   }
   td,th{
   border: 1px solid #000 !important;text-align: center !important; vertical-align: none !important; 
   }
   input{
   border: none !important;
   }
   table{
   width: 100% !important;
   padding: 0px 20px;
   }
   .hidetable{
      display: none;
   }
</style>
<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> ANC Sheet
                  </div>
                  <div class="actions">
                  </div>
               </div>
               <div class="portlet-body form">
                  <form   class="form-horizontal  emptyform" >
                     <input type="hidden" id="id" name="id" value="{$id}" />
                     <input type="hidden" id="controllname" name="id" value="{$controllname}" />
                     <!-- <input type="hidden" id="tablep"  value="infertilitysheet" /> -->
                     <div class="form-body">
                      
                        <h2 > <a href="{$hosturl}/controllers/Ancsheet.php?ac=Index&amp;patientid={$patientid}" >
                                  ANC Sheet  </a> </h2>
                        <hr>
                        <table class="table table-bordered">
                           <tbody>
                              <tr>
                                 <th  >date</th>
                                  <th  >detail</th>
                                  <th  ></th>
                              </tr>
                              {foreach $ancsheet as $single}
                              <tr class="rowancsheet{$single->id}">
                                  
                                 <td >{$single->historytoday}</td>
                                 <td > <a href="{$hosturl}/controllers/Ancsheet.php?ac=historys&amp;patientid={$single->patientid}&amp;ancsheetid={$single->id}" class="btn btn-default btn-sm">
                               detail Archive
                                  </a></td>
                                   <td width="5%">
                                     <a class="btn grey-cascade btn-xs deleterow" data-id="{$single->id}"  data-table="ancsheet">
                                         <i class="fa fa-close"></i>
                                     </a>
                                 </td>

                              </tr>
                                 {/foreach}
                           </tbody>
                        </table>
                       
                        <div class="form-group">
                           <div class="col-md-1"></div>
                           <div class="col-md-8">
                           </div>
                        </div>
                     </div>
                  </form>
               </div>
            </div>
         </div>
      </div>
   </div>
</div>

