
<?php 

  $noofdays = date('t', time()); 
  $timestamp = strtotime(date('01-m-Y'));
  $startDay =date('N',$timestamp);
  for ($i=1; $i < $startDay ; $i++) {
?>
  <li><div class="ip_month_inner_date"><span></span></div></li>
<?php
  }
  for ($i=1; $i <= $noofdays; $i++) { 
  

    
?>
  <li><div class="ip_month_inner_date">

          <span><?php echo$i ?></span>
          <?php 
          for ($j=0; $j < $noofdays; $j++) 
          { 
              if(!empty($month_appointment[$j])&&($month_appointment[$j]['day']==$i))
              { 
              ?> 
              <div class="selected">
                  <strong><?php echo $month_appointment[$j]['count'] ?></strong>
                  <p class="uppercase"><?php load_language('consultation');?></p>
                  <p class="uppercase"><?php load_language('appointment');?></p>
              </div>
               
              <?php
              } 
          }
          ?>
         
                        
      </div>
  </li>
<?php
  
}
?>
                       
                     <!--   <li><div class="ip_month_inner_date"><span>01</span></div></li>
                      <li><div class="ip_month_inner_date selected"><span>02</span><strong>7</strong>
                        <p>CONSULTATION</p>
                        <p>APPOINTMENT</p></div></li>
                      <li><div class="ip_month_inner_date"><span>03</span></div></li> -->
                     <!--  <li><div class="ip_month_inner_date selected"><span>04</span><strong>10</strong>
                        <p>CONSULTATION</p>
                        <p>APPOINTMENT</p></div></li> -->
                     <!--  <li><div class="ip_month_inner_date"><span>05</span></div></li>
                      <li><div class="ip_month_inner_date"><span>06</span></div></li>
                      <li><div class="ip_month_inner_date selected"><strong>5</strong>
                        <p>CONSULTATION</p>
                        <p>APPOINTMENT</p>
                        <span>07</span></div></li> -->
                    