Please help. I already had my booking calendar added to my site last week and the calendar showed up but now only the booking form is showing up but the calendar does not seem to show. I've tried a lot of fixes and nothing seems to work. Please help.

------------------------------------------------------------

<?php 
include_once "includes/header.php";

include "includes/db_connect.php";

include "includes/paging.php";

include "Calendar.php";



if(!isset($_SESSION['user_id']) && !isset($_SESSION['user_name']) && !isset($_SESSION['user_fname']) && !isset($_SESSION['user_lname']) && !isset($_SESSION['user_email'])  && !isset($_SESSION['user_type']))

{

 header("location:signin.php"); 

}



$paypal_url='https://www.sandbox.paypal.com/cgi-bin/webscr'; // Test Paypal API URL

$paypal_id='sales@rentxs.com.au'; // Business email ID



?>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" href="css/colorbox.css" />

<script src="js/jquery.min.js"></script>
<script src="js/jquery.colorbox-min.js"></script>
<!-- <script>
            jQuery(document).ready(function () {
                jQuery('a.gallery').colorbox({ opacity:0.5 , rel:'group1' });
            });
        </script>-->
<script>
        $(document).ready(function(){
            //Examples of how to assign the ColorBox event to elements
            $(".group1").colorbox({rel:'group1'});
            $(".group2").colorbox({rel:'group2', transition:"fade"});
            $(".group3").colorbox({rel:'group3', transition:"none", width:"75%", height:"75%"});
            $(".group4").colorbox({rel:'group4', slideshow:true});
            $(".ajax").colorbox();
            $(".youtube").colorbox({iframe:true, innerWidth:425, innerHeight:344});
            $(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
            $(".inline").colorbox({inline:true, width:"50%"});
            $(".callbacks").colorbox({
                onOpen:function(){ alert('onOpen: colorbox is about to open'); },
                onLoad:function(){ alert('onLoad: colorbox has started to load the targeted content'); },
                onComplete:function(){ alert('onComplete: colorbox has displayed the loaded content'); },
                onCleanup:function(){ alert('onCleanup: colorbox has begun the close process'); },
                onClosed:function(){ alert('onClosed: colorbox has completely closed'); }
            });

            //Example of preserving a JavaScript event for inline calls.
            $("#click").click(function(){ 
                $('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
                return false;
            });
        });
        </script>


<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/user.js"></script>
<script type="text/javascript" src="js/checkuser.js"></script>
<!--body content-->
<div class="body-content-bg">
  <?php include_once "includes/index_left_menu.php"; ?>
  <?php
  $prod_refid=$_REQUEST['refid'];
  $productsql="select * from products where prod_refid='$prod_refid'";
  $resquery = @mysql_query($productsql);
  $resproduct_fetch=mysql_fetch_array($resquery);
  $image_path="products/";
  $thumb_path="products/thumb/";

  $product_id=$resproduct_fetch['product_id'];
  $prod_refid=$resproduct_fetch['prod_refid'];
  $product_image=$resproduct_fetch['product_image'];
  $product_name=$resproduct_fetch['product_name'];
  $prod_country=$resproduct_fetch['prod_country'];
  $price_range=$resproduct_fetch['price_range'];
  $pamount = number_format($price_range, 2, '.', '');
  $price_hour=$resproduct_fetch['price_hour'];
  $price_hour = number_format($price_hour, 2, '.', '');
  $price_week=$resproduct_fetch['price_week'];
  $price_week = number_format($price_week, 2, '.', '');
  $price_month=$resproduct_fetch['price_month'];
  $price_month =number_format($price_month, 2, '.', '');
 //$pamount = number_format(((float)$price_range),2);
  $deposit=$resproduct_fetch['deposit'];
  $deposit = number_format($deposit, 2, '.', '');
  $prod_userid=$resproduct_fetch['prod_userid'];
  $prod_usertype=$resproduct_fetch['prod_usertype'];
  $prod_desc=$resproduct_fetch['prod_desc'];
  $prod_minduration=$resproduct_fetch['prod_minduration'];
  $prod_maxduration=$resproduct_fetch['prod_maxduration'];
  $prod_avail_days=$resproduct_fetch['prod_avail_days'];
  $prod_paymethod=$resproduct_fetch['prod_paymethod'];

  $cntry_sql=mysql_query("select country,countrycode,country_abbr from country where countryid ='".$prod_country."' and country_status='0'");

            $cntry_fetch=mysql_fetch_array($cntry_sql);

            $user_sql=mysql_query("select country,state,city,firstname,lastname,address1,address2,postalcode,companyname,userid from userregister where userid ='".$prod_userid."' and status='1'");
            $userfetch=mysql_fetch_array($user_sql);

  ?>
  <div class="regisrer-bg">
    <div class="product-details">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="298" align="left" valign="top" style="border:solid 0px #F95E30;">

           <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center" style="padding-top:10px">
           <tr>
           <td>
         <a class="group3"  href='<?php echo $image_path.$product_image; ?>' title="<?php echo $product_name; ?>"> 



        <?php  if($product_image!='') {  ?>
        <img src="<?php echo $image_path.$product_image; ?>" width="231" height="199"   style="border:solid 2px #DDDDDD;"/>
        <?php } else {  ?>
        <img src="images/no.jpeg" width="239" height="245" border="0" />
        <?php } ?>

         </a>
           </td>
           </tr>


           <tr>
           <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <?php
        $pimage_sql=mysql_query("select * from products_image where product_id='$product_id' and product_image_status='0' and product_image != '$product_image'  ");
        $pimage_count=mysql_num_rows($pimage_sql);
        $i=1;
        ?>
              <?php while($pimage_fetch=mysql_fetch_array($pimage_sql))
                {
                    $show_subimage=$pimage_fetch['product_image'];
                    $show_imageid =$pimage_fetch['productimage_id'];
                    $show_image_userid =$pimage_fetch['product_userid'];
                    $show_productid =$pimage_fetch['product_id'];

                    if(($i%5==1) || ($i==0))
                        {
                        ?>
              <tr>
                <?php
                         }
                        ?>
                <td width="30%" align="left" valign="top"><table border="0" cellpadding="2" cellspacing="2">
                    <tr>
                      <td>
                       <a class="group3" href='<?php echo $image_path.$show_subimage; ?>' title="<?php echo $product_name; ?>">
                      <img src="<?php echo $image_path.$show_subimage;?>" width="50" height="50"   style="border:solid 2px #EAEAEA;"/> </a></td>
                    </tr>

                  </table></td>
                <?php
                        if(($i%5==0) || ($i==0))
                        {
                        ?>
              </tr>

              <?php
                         }
                        ?>
              <?php 
                $i++;
                }
            ?>


            </table>

           </td>
           </tr>


           </table>


          </td>
         <td colspan="5" align="left" valign="middle" style="padding:0px 20px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="left" valign="top" style="padding-bottom:20px;"><?php echo $product_name; ?></td>
              </tr>
              <tr>
                <td align="left" valign="top"><div class="product-cost">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">

                      <?php 
                     // echo $pamount; 
                      if($pamount!='0.00') {  ?>
                      <tr>
                        <td align="left" valign="top">Price :</td>
                        <td align="right" valign="top"><span><?php echo $resproduct_fetch['price_status']." ".$pamount; ?> / Day</span></td>
                      </tr>
                      <?php } else if($price_hour!='0.00') { ?>
                       <tr>
                        <td align="left" valign="top">Price :</td>
                        <td align="right" valign="top"><span><?php echo $resproduct_fetch['price_status']." ".$price_hour; ?> / Hour</span></td>
                      </tr>
                       <?php } else if($price_week!='0.00') { ?>
                        <tr>
                        <td align="left" valign="top">Price :</td>
                        <td align="right" valign="top"><span><?php echo $resproduct_fetch['price_status']." ".$price_week; ?> / Week</span></td>
                      </tr>
                        <?php } else if($price_month!='0.00') { ?>
                         <tr>
                        <td align="left" valign="top">Price :</td>
                        <td align="right" valign="top"><span><?php echo $resproduct_fetch['price_status']." ".$price_month; ?> / Month</span></td>
                      </tr>
                       <?php } else { ?>
                         <tr>
                        <td align="left" valign="top">Price :</td>
                        <td align="right" valign="top"><span><?php echo "Nil"; ?></span></td>
                      </tr>
                      <?php } ?>
                    </table>
                  </div>
                  <div class="product-cost">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td align="left" valign="top">Item Code :</td>
                        <td align="right" valign="top"><span> <?php echo $prod_refid; ?> </span></td>
                      </tr>
                    </table>
                  </div>
                  <div class="product-cost">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td align="left" valign="top">Location :</td>
                        <td align="right" valign="top"><span><?php echo $userfetch['city'];?> (<?php echo $cntry_fetch['country']; ?>)</span></td>
                      </tr>
                    </table>
                  </div>
                  <div class="product-cost">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td align="left" valign="top">Owner :</td>
                        <td align="right" valign="top"><span><a href="user_details.php?u_id=<?php echo $userfetch['userid']; ?>"><?php echo $userfetch['firstname']." ".$userfetch['lastname'];?></a></span></td>
                      </tr>
                    </table>
                  </div>


                      <?php if($prod_usertype=='2') { ?>
                       <div class="product-cost">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td align="left" valign="top">Company :</td>
                        <td align="right" valign="top"><span>
                         <?php echo $userfetch['companyname']; ?>
                         </span></td>
                      </tr>
              </table>
                  </div>
            <?php } ?>
                      <!--<tr>
                        <td align="left" valign="top">Account :</td>
                        <td align="right" valign="top"><span>
                          <?php if($prod_usertype=='1')
            {
                $pusertype="Individual";
            }
            else
            {
                $pusertype="Company";
            }
        echo $pusertype;
    ?>
                          </span></td>
                      </tr>-->

                  <div class="product-cost">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td align="center" valign="top"><?php 
    if(!isset($_SESSION['user_id']) && !isset($_SESSION['user_name']) && !isset($_SESSION['user_fname']) && !isset($_SESSION['user_lname']) && !isset($_SESSION['user_email'])  && !isset($_SESSION['user_type']))
        { 
         ?>
                     <!--     <a href="signin.php"><img src="images/reserve-now.png" width="120" height="30" border="0" /></a>    <a href="signin.php"><img src="images/ask_ques.png" width="120" height="30" border="0" /></a> -->
                          <?php 
        }
        else
        {
            if($prod_userid!=$_SESSION['user_id'])
            {

        ?>
                  <!--        <a href="contact_renter.php?refid=<?php echo $prod_refid; ?>&ctype=2"><img src="images/reserve-now.png" width="120" height="30" border="0" /></a>    <a href="contact_renter.php?refid=<?php echo $prod_refid; ?>&ctype=1"><img src="images/ask_ques.png" width="120" height="30" border="0" /></a>-->
                          <?php
            }
            else
            {
            ?>
                          <!--<a href="javascript:void(0);" onClick="return display_alert();"><img src="images/reserve-now.png" width="120" height="30" border="0" /></a>    <a href="javascript:void(0);" onclick="return display_alert2();"><img src="images/ask_ques.png" width="120" height="30" border="0" /></a> -->
                          <?php


            }
        }
        ?>
                        </td>
                      </tr>
                    </table>
                  </div>


                  <div class="product-cost">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td align="center" valign="top"><!--<a href="http://maps.google.com/?q=loc:1600 Pennsylvania Avenue NW Washington, DC 20500" target="new">-->

                        <?php
                        if($userfetch[address2]!='')
                        {
                            $address3=$userfetch[address1].','.$userfetch[address2];

                        }
                        else
                        {
                            $address3=$userfetch[address1];
                        }

                        ?>

                        <a href="http://maps.google.com/?q=loc:+<?php echo $address3?>+<?php echo $userfetch[city]?>+<?php echo $userfetch[state]?>+<?php echo $cntry_fetch[country]?>+<?php echo $userfetch[postalcode]?>" target="new">
                        <!--<img src="images/locate-this-item.png" width="120" height="30" border="0" /></a></td>-->
                      </tr>
                    </table>
                  </div>

                </td>
              </tr>
            </table></td>
        </tr>
        <tr>

        <td align=center>  <tr>
        <td align="left" valign="top" style="padding-bottom:0px;"><strong><u>Price</u></strong></td>
      </tr>
                      <tr>
                        <td rowspan="4" align="left" valign="top"><div class="prices">
                          <table width="100%" border="0" cellspacing="0" cellpadding="0" >
                            <tr>
                              <td align="left" valign="middle" width="45%" ><strong>Daily Price</strong></td>
                              <td width="5%">:</td>
                              <td align="left" valign="middle" width="50%"><?php if($pamount!='0.00')  echo $resproduct_fetch['price_status']." ".$pamount; else echo "Nill";?></td>
                            </tr>
                          </table>
                        </div>
                          <div class="prices">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0" >
                              <tr>
                                <td align="left" valign="middle" width="45%"><strong>Hourly Price</strong></td>
                                <td width="5%">:</td>
                                <td align="left" valign="middle" width="50%"><?php if($price_hour!='0.00')  echo $resproduct_fetch['price_status']." ".$price_hour;  else echo "Nill";?></td>
                              </tr>
                            </table>
                          </div>
                          <div class="prices">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0" >
                              <tr>
                                <td align="left" valign="middle" width="45%"><strong>Weekly Price</strong></td>
                                <td width="5%">:</td>
                                <td align="left" valign="middle" width="50%"><?php if($price_week!='0.00')  echo $resproduct_fetch['price_status']." ".$price_week;  else echo "Nill";?></td>
                              </tr>
                            </table>
                          </div>
                          <div class="prices">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0" >
                              <tr>
                                <td align="left" valign="middle" width="45%"><strong>Monthly Price</strong></td>
                                <td width="5%">:</td>
                                <td align="left" valign="middle" width="50%"><?php if($price_month!='0.00')  echo $resproduct_fetch['price_status']." ".$price_month;  else echo "Nill";?></td>
                              </tr>
                            </table>
                            <p> </p></td>
  <td width="39" rowspan="5" align=center> </td>
  <td width="12" rowspan="5" align=center> </td>
  <td width="206">Deposit</td>
  <td width="11" align="left" valign="middle"><span>:</span></td>
  <td width="147"><span>
    <?php if($deposit!='0.00') echo $resproduct_fetch['price_status']." ".$deposit; else echo "Nill";?>
  </span></td>
                      </tr>
                      <tr>
                        <td>Accepted Payments</td>
                        <td align="left" valign="middle"><span>:</span></td>
                        <td><span><?php echo $prod_paymethod;?></span></td>
                      </tr>
                      <tr>
                        <td>Minimum Duration</td>
                        <td align="left" valign="middle"><span>:</span></td>
                        <td><span><?php echo $prod_minduration;?> day</span></td>
                      </tr>
                      <tr>
                        <td>Maximum Duration</td>
                        <td align="left" valign="middle"><span>:</span></td>
                        <td><span><?php echo $prod_maxduration;?> days</span></td>
                      </tr>
                      <tr>
                        <td align="left" valign="top"> </td>
                        <td colspan="3"> </td>
                      </tr>
</table>
<!--recently rented products-->
      <div class="body-right">
        <!--rental from individual-->
        <div class="recently-rental-produts">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<table width="603" border="0">
  <tr>
    <td width="597"><span style="padding:5px 5px 15px 0px;"><strong><u>Days Available</u></strong><br />
        <span>
        <?php //echo $prod_avail_days;
                    $daysavail="";
                    $days= explode(',', $prod_avail_days);
                    foreach($days as $val)
                    {
                        if($val=='1')
                        {
                         $showday="Sunday";
                        }
                        else if($val=='2')
                        {
                         $showday="Monday";
                        }
                        else if($val=='3')
                        {
                         $showday="Tuesday";
                        }
                        else if($val=='4')
                        {
                         $showday="Wednesday";
                        }
                        else if($val=='5')
                        {
                         $showday="Thursday";
                        }
                        else if($val=='6')
                        {
                         $showday="Friday";
                        }
                        else if($val=='7')
                        {
                         $showday="Saturday";
                        }

                        if($daysavail!='')
                        {   
                            $daysavail=$daysavail." - ".$showday;
                        }
                        else
                        {
                            $daysavail=$showday;
                        }
                    }

                    echo $daysavail;

                ?>
    </span></span></td>
  </tr>
</table>
<table width="537" border="0">
  <tr>  
  <script src="script.js"></script>
    <td width="358"><table width="600" border="0" bgcolor="#eeeeee">
      <form action="book.php" method="post" name="calendar" id="calendar" onsubmit="">
        <input type="hidden" name="date1" />
        <input type="hidden" name="date2" />
        <tr>
          <td><table border="0" width="100%" cellspacing="0" cellpadding="0"  align="center">
            <tr>
              <td width="30%" style="font-size:8pt">pick start date</td>
              <td width="31%" style="font-size:8pt">pick end date</td>
              <td  rowspan="2" align="right" ><table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td align="left" valign="top" style="font-size:8pt"></td>
                </tr>
                <tr>
                  <td align="left" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="24" align="left" valign="top"><input name="complete2" type="submit" value="Continue" /></td>
                    </tr>
                  </table></td>
                </tr>
              </table></td>
            </tr>
            <tr>
              <td><select name="day3">
                <option value="01">01</option>
                <option value="02">02</option>
                <option value="03">03</option>
                <option value="04">04</option>
                <option value="05">05</option>
                <option value="06">06</option>
                <option value="07">07</option>
                <option value="08">08</option>
                <option value="09">09</option>
                <option value="10">10</option>
                <option value="11">11</option>
                <option value="12">12</option>
                <option value="13">13</option>
                <option value="14">14</option>
                <option value="15">15</option>
                <option value="16">16</option>
                <option value="17">17</option>
                <option value="18">18</option>
                <option value="19">19</option>
                <option value="20">20</option>
                <option value="21">21</option>
                <option value="22">22</option>
                <option value="23">23</option>
                <option value="24">24</option>
                <option value="25">25</option>
                <option value="26">26</option>
                <option value="27">27</option>
                <option value="28">28</option>
                <option value="29">29</option>
                <option value="30">30</option>
                <option value="31">31</option>
              </select>
                <select name="month3">
                  <option value="01">Jan</option>
                  <option value="02">Feb</option>
                  <option value="03">Mar</option>
                  <option value="04">Apr</option>
                  <option value="05">May</option>
                  <option value="06">Jun</option>
                  <option value="07">Jul</option>
                  <option value="08">Aug</option>
                  <option value="09">Sep</option>
                  <option value="10">Oct</option>
                  <option value="11">Nov</option>
                  <option value="12">Dec</option>
                </select>
                <select name="year3">
                  <?

for($ci=$i=date('Y');$i<=$ci+10;$i++) {

  print "          <option value=\"$i\">$i</option>\n";

}

?>
                </select></td>
              <td><select name="day3">
                <option value="01">01</option>
                <option value="02">02</option>
                <option value="03">03</option>
                <option value="04">04</option>
                <option value="05">05</option>
                <option value="06">06</option>
                <option value="07">07</option>
                <option value="08">08</option>
                <option value="09">09</option>
                <option value="10">10</option>
                <option value="11">11</option>
                <option value="12">12</option>
                <option value="13">13</option>
                <option value="14">14</option>
                <option value="15">15</option>
                <option value="16">16</option>
                <option value="17">17</option>
                <option value="18">18</option>
                <option value="19">19</option>
                <option value="20">20</option>
                <option value="21">21</option>
                <option value="22">22</option>
                <option value="23">23</option>
                <option value="24">24</option>
                <option value="25">25</option>
                <option value="26">26</option>
                <option value="27">27</option>
                <option value="28">28</option>
                <option value="29">29</option>
                <option value="30">30</option>
                <option value="31">31</option>
              </select>
                <select name="month3">
                  <option selected="selected" value="01">Jan</option>
                  <option value="02">Feb</option>
                  <option value="03">Mar</option>
                  <option value="04">Apr</option>
                  <option value="05">May</option>
                  <option value="06">Jun</option>
                  <option value="07">Jul</option>
                  <option value="08">Aug</option>
                  <option value="09">Sep</option>
                  <option value="10">Oct</option>
                  <option value="11">Nov</option>
                  <option value="12">Dec</option>
                </select>
                <select name="year3">
                  <?

for($ci=$i=date('Y');$i<=$ci+10;$i++) {

  print "          <option value=\"$i\">$i</option>\n";

}

?>
                </select></td>
            </tr>
            <tr>
              <td colspan="3"><table width="100%" border="0" cellspacing="1" cellpadding="0">
                <tr>
                  <td colspan="3" align="left" valign="top" style="font-size:8pt"><strong>Roll cursor over calendar to view prices. Price per

                    week:
                    <input name="temp_price2" type="text" class="hiddenprice" readonly="readonly" width="12" size="12" value="n/a" />
                  </strong></td>
                </tr>
                <tr>
                  <td colspan="3" style="font-size:8pt;"><table>
                    <tr height="11pt">
                      <td bgcolor="#bbbbbb" style="height:11pt;width:11pt;"> </td>
                      <td style="font-size:8pt;">Unavailable</td>
                      <td bgcolor="red" style="height:11pt;width:11pt;"> </td>
                      <td style="font-size:8pt;">Booked</td>
                      <td bgcolor="green" style="height:11pt;width:11pt;"> </td>
                      <td style="font-size:8pt;">Available</td>
                      <td bgcolor="navy" style="height:11pt;width:11pt;"> </td>
                      <td style="font-size:8pt;">No price set</td>
                    </tr>
                  </table></td>
                </tr>
              </table></td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td align="center"><?



print "<table cellpadding=1 cellspacing=0 border=0>";

for($i=0;$i<3;$i++) {

  print "<tr>";

  for($j=0;$j<4;$j++) {

    print "<td>";

    $cal->SetDate($month,$year);

    $cal->Show();

    $month++;

    if ($month==13) {

      $month=1;

      $year++;

    }

    print "</td>";

  }

  print "</tr>";

}

print "</table>";



if ($page>1) {

  $prev=$page-1;

  print "<a class=\"link\" href=\"".$_SERVER['PHP_SELF']."?p=$prev\">Prev</a> ";

}

if ($page>=1) {


  $next=$page+1;

  print "<a class=\"link\" href=\"".$_SERVER['PHP_SELF']."?p=$next\">Next</a>";

}

?></td>
        </tr>
      </form>
    </table></td>

  </tr>
</table>
<tr>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <!--<tr>
          <td style="padding:5px 0px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="45%">Price</td>
              <td width="5%" align="left" valign="middle"><span>:</span> </td>
              <td width="50%"><span><?php echo $pamount;?> (PLN)</span></td>
            </tr>
          </table></td>
        </tr>-->
                <!--     <tr>
                         <td align="left" valign="top" style="padding-bottom:0px;">Price</td>
                    </tr>

                    <tr>
                      <td align="left" valign="top"><div class="prices">
                          <table width="100%" border="0" cellspacing="0" cellpadding="0" >

                            <tr>
                              <td align="left" valign="middle" width="16%" >Daily Price</td>
                              <td width="1%">:</td>
                              <td align="left" valign="middle" width="11%"><?php if($pamount!='0.00')  echo $resproduct_fetch['price_status']." ".$pamount; else echo "Nill";?> </td>
                              <td align="left" valign="middle" width="1%"> </td>
                              <td align="left" valign="middle" width="22%">Accepted Payments</td>
                              <td align="left" valign="middle" width="1%"> </td>
                              <td align="left" valign="middle" width="19%"> </td>
                              <td align="left" valign="middle" width="29%"> </td>
                            </tr>



                          </table>
                        </div>
                        <div class="prices">
                          <table width="100%" border="0" cellspacing="0" cellpadding="0" >
                            <tr>
                              <td align="left" valign="middle" width="16%">Hourly Price</td>
                              <td width="1%">:</td>
                              <td align="left" valign="middle" width="11%"><?php if($price_hour!='0.00')  echo $resproduct_fetch['price_status']." ".$price_hour;  else echo "Nill";?> </td>
                              <td align="left" valign="middle" width="1%"> </td>
                              <td align="left" valign="middle" width="22%">Maximum Duration</td>
                              <td align="left" valign="middle" width="1%"> </td>
                              <td align="left" valign="middle" width="19%"><td width="50%"><span><?php echo $prod_maxduration;?> days</span></td></td>
                              <td align="left" valign="middle" width="29%"> </td>
                            </tr>
                          </table>
                        </div>
                        <div class="prices">
                          <table width="100%" border="0" cellspacing="0" cellpadding="0" >
                            <tr>
                              <td align="left" valign="middle" width="16%">Weekly Price</td>
                              <td width="1%">:</td>
                              <td align="left" valign="middle" width="11%"><?php if($price_week!='0.00')  echo $resproduct_fetch['price_status']." ".$price_week;  else echo "Nill";?> </td>
                              <td align="left" valign="middle" width="1%"> </td>
                              <td align="left" valign="middle" width="22%"> </td>
                              <td align="left" valign="middle" width="1%"> </td>
                              <td align="left" valign="middle" width="19%"> </td>
                              <td align="left" valign="middle" width="29%"> </td>
                            </tr>
                          </table>
                        </div>
                        <div class="prices">
                          <table width="100%" border="0" cellspacing="0" cellpadding="0" >
                            <tr>
                              <td align="left" valign="middle" width="16%">Monthly Price</td>
                              <td width="1%">:</td>
                              <td align="left" valign="middle" width="83%"><?php if($price_month!='0.00')  echo $resproduct_fetch['price_status']." ".$price_month;  else echo "Nill";?></td>
                            </tr>
                          </table>
                        </div></td>
                    </tr>
                  </table></td>
              </tr>  -->
              <tr>

                <td align=center>

  <?



print "<table cellpadding=1 cellspacing=0 border=0>";

for($i=0;$i<3;$i++) {

  print "<tr>";

  for($j=0;$j<4;$j++) {

    print "<td>";

    $cal->SetDate($month,$year);

    $cal->Show();

    $month++;

    if ($month==13) {

      $month=1;

      $year++;

    }

    print "</td>";

  }

  print "</tr>";

}

print "</table>";



if ($page>1) {

  $prev=$page-1;

  print "<a class=\"link\" href=\"".$_SERVER['PHP_SELF']."?p=$prev\">Prev</a> ";

}

if ($page>=1) {

  $next=$page+1;

  print "<a class=\"link\" href=\"".$_SERVER['PHP_SELF']."?p=$next\">Next</a>";

}

?>
              </tr>
          </table>
<!--recently rented products-->
      <div class="body-right">
        <!--rental from individual-->
        <div class="recently-rental-produts-bg">
          <div class="profile-inner-head">
            <div class="progile-inner-head">
              <p><?php



class Calendar

{

  var $Month;

  var $Year;



  function Calendar($month=0,$year=0)

  {

    if ($month==0) $month=date("n");

    if ($year ==0) $year=date("Y");



    $this->Month = $month;

    $this->Year = $year;

  }



  function SetDate($month,$year)

  {

    $this->Month = $month;

    $this->Year = $year;

  }



  function Show()

  {

    $month = $this->Month;

    $year = $this->Year;



    $days = date ("d", mktime (0,0,0,$month+1,0,$year));

    $month_name = $this->GetMonthName($month);

    $week_num = 1;



    print "<table border=0 cellpadding=3 cellspacing=1 class=\"cal_bg\">\n";

    print "<tr class=\"cal_header\">\n";

    print "  <td align=center colspan=7>$month_name $year</td>\n</tr>\n";



    print "<tr class=\"cal_header\">\n";

    foreach(split(",","S,M,T,W,T,F,S") as $w) print "  <td align=center>$w</td>\n";

    print "</tr>\n";



    $day_of_week = date ("w", mktime (0,0,0,$month,1,$year));

    //if ($day_of_week == 0) $day_of_week = 7;



    print "<tr>\n";

    for ($i = 1; $i <= $day_of_week; $i++) print "  <td class=\"cal_white\"> </td>\n";



    for($day=1; $day <= $days; $day++)

    {

      $info = $this->GetCellInfo($month,$day,$year,false);



      if (isset($info['value'])) $data_value=$info['value'];

      else $data_value = $day;



      $attrs = array();

      if (isset($info['attr']) && is_array($info['attr'])) {

        foreach($info['attr'] as $k) {

          foreach($k as $k1=>$v) {

            $attrs[] = "$k1=\"$v\"";

          }

        }

      } else {

        $attrs[]="class=\"cal_unavail\"";

      }



      $attr_value=join(" ",$attrs);



      print "  <td $attr_value>$data_value</td>\n";

      if ($day_of_week == 6)

      {

        print "</tr>\n<tr>\n";

        $week_num++;

      }

      $day_of_week++; if ($day_of_week==7) $day_of_week=0;

    }

    for ($i = $day_of_week; $i <= 6; $i++) print "  <td class=\"cal_white\"> </td>\n";

    print "</tr>\n";



    if ($week_num == 5)

    {

      print "<tr>\n";

      for ($i = 0; $i < 7; $i++) print "  <td class=\"cal_white\"> </td>\n";

      print "</tr>\n";

    }



    print "</table>\n";

  }



  function GetCellInfo($month,$day,$year) {

    return array();

  }



  function GetMonthName($next_month)

  {

    $months=array(

     "January",

     "February",

     "March",

     "April",

     "May",

     "June",

     "July",

     "August",

     "September",

     "October",

     "November",

     "December"

    );



    return $months[$next_month - 1];

  }

}



?></p></p>
            </div>

          </div>
          <div class="recently-rental-produts"></div>
        </div>
        <!--rental from individual-->
</div>


<!--body content-->
<?php include_once "includes/footer.php"; ?>

Recommended Answers

All 3 Replies

ehehehe.. You post more than 1000 lines of code, and expect people to be able to see what the issue is?

Please.. Redo your question, post relevant code, and then, and I talk for myself, I'll look at it.

Just a good piece of advice.

I agree. People are not going to review 1000 lines. Post the code you pinned as the problem

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.