<pre>
 
The dozcalendar v1.0 is a date and time functions that are used todether
 
to build that colums and rowsof the calendar, I.E
 
from sunday whih is 0, to saterday which is 6.
 
 
I am still working on version 1.2 which will be more advanced and easy to use than this one.
 
 
When you use the class, you only include the class.calendar.php and then call
 
 
$DOZCALENDAR->calendar();       OR      $DOZCALENDAR->calendar(2005,7);
 
 
Parameters
 
-------------------------------------------------------------------
 
year and month, optional, when you need a calendar of a month/year
 
either than the oneyou are on.
 
--------------------------------------------------------------------
 
####################################################################
 
 
Return
 
----------------------------------------------------------------------
 
This is the layout of the calender results
 
<table width=250>
 
<tr><td> </td><td> </td><td> </td><td> </td><td> </td><td>1</td><td>2</td></tr>
 
<tr><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td></tr>
 
<tr><td>10</td><td>11</td><td>12</td><td>13</td><td>14</td><td>15</td><td>16</td></tr>
 
<tr><td>17</td><td>18</td><td>19</td><td>20</td><td>21</td><td>22</td><td>23</td></tr>
 
<tr><td>24</td><td>25</td><td>26</td><td>27</td><td>28</td><td>29</td><td>30</td></tr>
 
<tr><td>31</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
 
        </table>
 
<pre>
 
The results insite php script looks like this:
 
 
Array   (   array(0,0,0,0,0,1,2),
 
            array(3,4,5,6,7,8,9),
 
            array(10,11,12,13,14,15,16),
 
            array(17,18,19,20,21,22,23),
 
            array(24,24,26,27,28,29,30),
 
            array(31,0,0,0,0,0,0),
 
        );
 
 
so all you do, is that you manipilate the arrays to draw your calendar.
 
 
Here is one of my example script.
 
 
        $calenderval=$DOZCALENDAR->calendar();
 
        foreach($calenderval as $array)
 
        {
 
            echo '<tr>';
 
            foreach($array as $rows=>$days)
 
            {
 
                echo '<td>';
 
                $data=($days)?$days:' ';
 
                echo $data.'</td>';
 
            }
 
            echo "</tr>\n";
 
        }
 
 
    -------------------------------------------------------------------------------------
 
                            Good Luck!!!
 
    ------------------------------------------------------------------------------------
 
    <a href="mailto:[email protected]?subject=Calendar_Class">Email me</a>
 
    #####################################################################################
 
    
 
</pre>
 
 
 
 |