bou
05-17-2007, 08:58 PM
Hi, i need your help to modify the calendar.php file.
I would want that the month and the year is above days.
I tried to modify the calendar.php file on this part :
<tr>
<td colspan='31' class='td-calendar-navi'>
<a href='$PHP_SELF?curr_month=$prev_month&curr_year=$ prev_year&showimage=$prev_image_id'>«</a>
$asc_mon-$curr_year
<a href='$PHP_SELF?curr_month=$next_month&curr_year=$ next_year&showimage=$next_image_id'>»</a>
</td>
</tr>
to put it here :
// first day of month
$first_day_month = date("w", mktime(0,0,0,$curr_month,1,$curr_year));
$cal_hz .= "<table class='table-calendar' cellspacing='0'>
<tr>
<td colspan='31' class='td-calendar-navi'>
<a href='$PHP_SELF?curr_month=$prev_month&curr_year=$ prev_year&showimage=$prev_image_id'>«</a>
$asc_mon-$curr_year
<a href='$PHP_SELF?curr_month=$next_month&curr_year=$ next_year&showimage=$next_image_id'>»</a>
</td>
</tr>
<tr>";
That works but there is only a year which displays, the month does not appear.
Anybody would know how to help me?
Thanks ;)
I would want that the month and the year is above days.
I tried to modify the calendar.php file on this part :
<tr>
<td colspan='31' class='td-calendar-navi'>
<a href='$PHP_SELF?curr_month=$prev_month&curr_year=$ prev_year&showimage=$prev_image_id'>«</a>
$asc_mon-$curr_year
<a href='$PHP_SELF?curr_month=$next_month&curr_year=$ next_year&showimage=$next_image_id'>»</a>
</td>
</tr>
to put it here :
// first day of month
$first_day_month = date("w", mktime(0,0,0,$curr_month,1,$curr_year));
$cal_hz .= "<table class='table-calendar' cellspacing='0'>
<tr>
<td colspan='31' class='td-calendar-navi'>
<a href='$PHP_SELF?curr_month=$prev_month&curr_year=$ prev_year&showimage=$prev_image_id'>«</a>
$asc_mon-$curr_year
<a href='$PHP_SELF?curr_month=$next_month&curr_year=$ next_year&showimage=$next_image_id'>»</a>
</td>
</tr>
<tr>";
That works but there is only a year which displays, the month does not appear.
Anybody would know how to help me?
Thanks ;)