Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #2429 > unrolled thread
| Started by | Co <vonclausowitz@gmail.com> |
|---|---|
| First post | 2011-07-03 08:13 -0700 |
| Last post | 2011-07-03 17:01 -0400 |
| Articles | 13 — 4 participants |
Back to article view | Back to comp.lang.php
show events in calendar Co <vonclausowitz@gmail.com> - 2011-07-03 08:13 -0700
Re: show events in calendar Luuk <Luuk@invalid.lan> - 2011-07-03 18:40 +0200
Re: show events in calendar Co <vonclausowitz@gmail.com> - 2011-07-03 09:52 -0700
Re: show events in calendar Luuk <Luuk@invalid.lan> - 2011-07-03 19:24 +0200
Re: show events in calendar Co <vonclausowitz@gmail.com> - 2011-07-03 10:32 -0700
Re: show events in calendar Luuk <Luuk@invalid.lan> - 2011-07-03 19:43 +0200
Re: show events in calendar Co <vonclausowitz@gmail.com> - 2011-07-03 10:56 -0700
Re: show events in calendar Jerry Stuckle <jstucklex@attglobal.net> - 2011-07-03 14:19 -0400
Re: show events in calendar Co <vonclausowitz@gmail.com> - 2011-07-03 12:00 -0700
Re: show events in calendar The Natural Philosopher <tnp@invalid.invalid> - 2011-07-03 21:22 +0100
Re: show events in calendar Jerry Stuckle <jstucklex@attglobal.net> - 2011-07-03 17:02 -0400
Re: show events in calendar Co <vonclausowitz@gmail.com> - 2011-07-03 14:43 -0700
tRe: show events in calendar Jerry Stuckle <jstucklex@attglobal.net> - 2011-07-03 17:01 -0400
| From | Co <vonclausowitz@gmail.com> |
|---|---|
| Date | 2011-07-03 08:13 -0700 |
| Subject | show events in calendar |
| Message-ID | <18841eca-e34d-47e6-91ca-eec95b035948@fv14g2000vbb.googlegroups.com> |
Hi All,
I got me some code to show a month calendar and I have a database with
events.
Now I want to show the events on the calendar. When there is an event
on day X I want
the number to be bold and on a mouse over display the details of the
event.
Can anyone help me with this?
here is my code:
<< I didn't put all the code which builds the calendar >>
// Build the heading portion of the calendar table
echo "<table class=\"maintable\">\n".
"<tr class='headline'>\n".
"<td colspan=\"7\">\n".
"<table align=\"center\">\n".
"<tr class='headline'>\n".
"<td colspan=\"2\" width=\"75\" align=\"left\">$previous_link</td>
\n".
"<td colspan=\"3\" width=\"150\" align=\"center\">$month_name
$year</td>\n".
"<td colspan=\"2\" width=\"75\" align=\"right\">$next_link</td>
\n".
"</tr>\n".
"</table>\n".
"</td>\n".
"<tr class='mainrow'>\n".
"<td>S</td><td>M</td><td>T</td><td>W</td><td>T</td><td>F</
td><td>S</td>\n".
"</tr>\n";
// Now we break each key of the array
// into a week and create a new table row for each
// week with the days of that week in the table data
$i = 0;
while (list(, $week) = each($weeks))
{
echo "<tr class='mainrow'>\n";
while (list(, $d) = each($week)){
if($i < $offset_count){
//$day_link = "<a href=\"".$_SERVER['PHP_SELF']."?
date=".mktime(0, 0, 0, $month -1, $d, $year)."\">$d</a>";
echo "<td class=\"nonmonthdays\">$day_link</td>\n";
}
if(($i >= $offset_count) && ($i < ($num_weeks * 7) - $outset))
{
$datecount=mktime(0, 0, 0, $month -1, $d, $year);
$day_link = "<A href=\"javascript:popWin('editcalendar.php?
ID=$datecount', 350, 400)\">$d</a>";
if($date == mktime(0, 0, 0, $month, $d, $year)){
echo "<td><A href=\"javascript:popWin('editcalendar.php?
ID=$datecount', 350, 400)\"><font color='red'><b>$d</b></font></a></
td>\n";
} else {
echo "<td class=\"days\">$day_link</td>\n";
}
} elseif(($outset > 0)) {
if(($i >= ($num_weeks * 7) - $outset)){
$day_link = "";
echo "<td class=\"nonmonthdays\">$day_link</td>\n";
}
}
$i++;
}
echo "</tr>\n";
}
// Close out your table and that's it!
echo "<tr class='headline'><td colspan='7' class='days'> </td></
tr>";
echo '</table>';
Regards
Marco
[toc] | [next] | [standalone]
| From | Luuk <Luuk@invalid.lan> |
|---|---|
| Date | 2011-07-03 18:40 +0200 |
| Message-ID | <4e109b67$0$21861$e4fe514c@news2.news.xs4all.nl> |
| In reply to | #2429 |
On 03-07-2011 17:13, Co wrote: > Hi All, > > I got me some code to show a month calendar and I have a database with > events. You do mean, you COPIED some code.... see: http://www.sitepoint.com/forums/php-34/where-should-i-place-421942.html > > Regards > Marco Start learning to program in PHP, get some knowledge about HTML, and you can find out how this should be done easily.... -- Luuk
[toc] | [prev] | [next] | [standalone]
| From | Co <vonclausowitz@gmail.com> |
|---|---|
| Date | 2011-07-03 09:52 -0700 |
| Message-ID | <74f5acc9-bca5-4698-a8de-d9c4e36926ba@c41g2000yqm.googlegroups.com> |
| In reply to | #2431 |
On 3 jul, 18:40, Luuk <L...@invalid.lan> wrote: > On 03-07-2011 17:13, Co wrote: > > > Hi All, > > > I got me some code to show a month calendar and I have a database with > > events. > > You do mean, you COPIED some code.... > see:http://www.sitepoint.com/forums/php-34/where-should-i-place-421942.html > > > > > Regards > > Marco > > Start learning to program in PHP, > get some knowledge about HTML, > and you can find out how this should be done easily.... > > -- > Luuk I didn't know there was a law against the copying of code. Anyway that's not the page where I got it from but I see you know Google. I thought a newsgroup was about people with knowledge helping those without. Apparently you are only here to humiliate people. You think any great guitarist never played other people's music? bedankt voor je hulp Marco
[toc] | [prev] | [next] | [standalone]
| From | Luuk <Luuk@invalid.lan> |
|---|---|
| Date | 2011-07-03 19:24 +0200 |
| Message-ID | <4e10a5b3$0$21777$e4fe514c@news2.news.xs4all.nl> |
| In reply to | #2432 |
On 03-07-2011 18:52, Co wrote: > I thought a newsgroup was about people with knowledge helping those > without. > Apparently you are only here to humiliate people. This place is here to help people to learn, Not to write code for people who are too lazy to learn. -- Luuk
[toc] | [prev] | [next] | [standalone]
| From | Co <vonclausowitz@gmail.com> |
|---|---|
| Date | 2011-07-03 10:32 -0700 |
| Message-ID | <a7895515-fadd-4161-a59e-4023f1b8f36e@h17g2000yqn.googlegroups.com> |
| In reply to | #2433 |
On 3 jul, 19:24, Luuk <L...@invalid.lan> wrote: > On 03-07-2011 18:52, Co wrote: > > > I thought a newsgroup was about people with knowledge helping those > > without. > > Apparently you are only here to humiliate people. > > This place is here to help people to learn, > > Not to write code for people who are too lazy to learn. > > -- > Luuk and who are you to judge people? don't pretend you know people after a few lines of text. people like you get us killed in battle. Marco
[toc] | [prev] | [next] | [standalone]
| From | Luuk <Luuk@invalid.lan> |
|---|---|
| Date | 2011-07-03 19:43 +0200 |
| Message-ID | <4e10aa4b$0$21780$e4fe514c@news2.news.xs4all.nl> |
| In reply to | #2434 |
On 03-07-2011 19:32, Co wrote: > On 3 jul, 19:24, Luuk <L...@invalid.lan> wrote: >> On 03-07-2011 18:52, Co wrote: >> >>> I thought a newsgroup was about people with knowledge helping those >>> without. >>> Apparently you are only here to humiliate people. >> >> This place is here to help people to learn, >> >> Not to write code for people who are too lazy to learn. >> >> -- >> Luuk > > and who are you to judge people? > don't pretend you know people after a few lines of text. > people like you get us killed in battle. > > Marco Have a nice life, I will try to stop doing anything with questions you ask... ;) -- Luuk
[toc] | [prev] | [next] | [standalone]
| From | Co <vonclausowitz@gmail.com> |
|---|---|
| Date | 2011-07-03 10:56 -0700 |
| Message-ID | <ed50ce41-1f05-4850-a130-8d181c5992f2@gh5g2000vbb.googlegroups.com> |
| In reply to | #2435 |
On 3 jul, 19:43, Luuk <L...@invalid.lan> wrote:
> On 03-07-2011 19:32, Co wrote:
>
>
>
>
>
>
>
>
>
> > On 3 jul, 19:24, Luuk <L...@invalid.lan> wrote:
> >> On 03-07-2011 18:52, Co wrote:
>
> >>> I thought a newsgroup was about people with knowledge helping those
> >>> without.
> >>> Apparently you are only here to humiliate people.
>
> >> This place is here to help people to learn,
>
> >> Not to write code for people who are too lazy to learn.
>
> >> --
> >> Luuk
>
> > and who are you to judge people?
> > don't pretend you know people after a few lines of text.
> > people like you get us killed in battle.
>
> > Marco
>
> Have a nice life,
> I will try to stop doing anything with questions you ask...
>
> ;)
>
> --
> Luuk
I managed to highlight the days on which an event is planned by
querying the database:
if(($i >= $offset_count) && ($i < ($num_weeks * 7) - $outset))
{
$datecount=mktime(0, 0, 0, $month -1, $d, $year);
$day_link = "<A href=\"javascript:popWin('editcalendar.php?ID=
$datecount', 350, 400)\">$d</a>";
$query = "SELECT * FROM bl_calender";
$r = mysql_query ($query) or die ("Query error: ".mysql_error());
while($row=mysql_fetch_array($r)) {//Array or records stored in
$row
if($row['dateclass']==$datecount) {
$day_link = "<A href=\"javascript:popWin('editcalendar.php?ID=
$datecount', 350, 400)\"><FONT style='BACKGROUND-COLOR: yellow'>$d</
font></a>";}
}
if($date == mktime(0, 0, 0, $month, $d, $year)){
echo "<td><A href=\"javascript:popWin('editcalendar.php?
ID=$datecount', 350, 400)\"><font color='red'><b>$d</b></font></a></
td>\n";
} else {
echo "<td class=\"days\">$day_link</td>\n";
}
} elseif(($outset > 0)) {
if(($i >= ($num_weeks * 7) - $outset)){
$day_link = "";
echo "<td class=\"nonmonthdays\">$day_link</td>\n";
}
}
$i++;
}
echo "</tr>\n";
}
// Close out your table and that's it!
echo "<tr class='headline'><td colspan='7' class='days'> </td></
tr>";
echo '</table>';
The strange thing is that the current day should be red but only in
July in this case.
However when I browse to another month there day 3 is also in red.
Marco
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2011-07-03 14:19 -0400 |
| Message-ID | <iuqbqv$8cp$1@dont-email.me> |
| In reply to | #2429 |
On 7/3/2011 11:13 AM, Co wrote:
> Hi All,
>
> I got me some code to show a month calendar and I have a database with
> events.
> Now I want to show the events on the calendar. When there is an event
> on day X I want
> the number to be bold and on a mouse over display the details of the
> event.
>
> Can anyone help me with this?
> here is my code:
> << I didn't put all the code which builds the calendar>>
>
> // Build the heading portion of the calendar table
> echo "<table class=\"maintable\">\n".
> "<tr class='headline'>\n".
> "<td colspan=\"7\">\n".
> "<table align=\"center\">\n".
> "<tr class='headline'>\n".
> "<td colspan=\"2\" width=\"75\" align=\"left\">$previous_link</td>
> \n".
> "<td colspan=\"3\" width=\"150\" align=\"center\">$month_name
> $year</td>\n".
> "<td colspan=\"2\" width=\"75\" align=\"right\">$next_link</td>
> \n".
> "</tr>\n".
> "</table>\n".
> "</td>\n".
> "<tr class='mainrow'>\n".
> "<td>S</td><td>M</td><td>T</td><td>W</td><td>T</td><td>F</
> td><td>S</td>\n".
> "</tr>\n";
>
> // Now we break each key of the array
> // into a week and create a new table row for each
> // week with the days of that week in the table data
>
> $i = 0;
> while (list(, $week) = each($weeks))
> {
>
> echo "<tr class='mainrow'>\n";
> while (list(, $d) = each($week)){
>
> if($i< $offset_count){
> //$day_link = "<a href=\"".$_SERVER['PHP_SELF']."?
> date=".mktime(0, 0, 0, $month -1, $d, $year)."\">$d</a>";
> echo "<td class=\"nonmonthdays\">$day_link</td>\n";
> }
> if(($i>= $offset_count)&& ($i< ($num_weeks * 7) - $outset))
> {
> $datecount=mktime(0, 0, 0, $month -1, $d, $year);
> $day_link = "<A href=\"javascript:popWin('editcalendar.php?
> ID=$datecount', 350, 400)\">$d</a>";
> if($date == mktime(0, 0, 0, $month, $d, $year)){
> echo "<td><A href=\"javascript:popWin('editcalendar.php?
> ID=$datecount', 350, 400)\"><font color='red'><b>$d</b></font></a></
> td>\n";
> } else {
> echo "<td class=\"days\">$day_link</td>\n";
> }
> } elseif(($outset> 0)) {
> if(($i>= ($num_weeks * 7) - $outset)){
> $day_link = "";
> echo "<td class=\"nonmonthdays\">$day_link</td>\n";
> }
> }
> $i++;
> }
> echo "</tr>\n";
> }
>
> // Close out your table and that's it!
> echo "<tr class='headline'><td colspan='7' class='days'> </td></
> tr>";
> echo '</table>';
>
>
> Regards
> Marco
Luuk is right. We help those who help themselves. Copying code from
another site is fine - all of us do it.
The difference is - we UNDERSTAND what the code does. If you want to be
a web developer, you must learn HTML, a server-side language such as
PHP, SQL if you're going to use a database, and almost certainly a
client-side language such as javascript.
Your questions here show you have made no attempt to even understand the
differences between technologies and people are rapidly losing interest
in trying to help you. Your attitude is completing the alienation of
others.
Good luck. You're going to need it.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[toc] | [prev] | [next] | [standalone]
| From | Co <vonclausowitz@gmail.com> |
|---|---|
| Date | 2011-07-03 12:00 -0700 |
| Message-ID | <26b60dd0-f238-4299-8e58-59058c596a67@t9g2000vbv.googlegroups.com> |
| In reply to | #2437 |
On 3 jul, 20:19, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> On 7/3/2011 11:13 AM, Co wrote:
>
>
>
>
>
>
>
>
>
> > Hi All,
>
> > I got me some code to show a month calendar and I have a database with
> > events.
> > Now I want to show the events on the calendar. When there is an event
> > on day X I want
> > the number to be bold and on a mouse over display the details of the
> > event.
>
> > Can anyone help me with this?
> > here is my code:
> > << I didn't put all the code which builds the calendar>>
>
> > // Build the heading portion of the calendar table
> > echo "<table class=\"maintable\">\n".
> > "<tr class='headline'>\n".
> > "<td colspan=\"7\">\n".
> > "<table align=\"center\">\n".
> > "<tr class='headline'>\n".
> > "<td colspan=\"2\" width=\"75\" align=\"left\">$previous_link</td>
> > \n".
> > "<td colspan=\"3\" width=\"150\" align=\"center\">$month_name
> > $year</td>\n".
> > "<td colspan=\"2\" width=\"75\" align=\"right\">$next_link</td>
> > \n".
> > "</tr>\n".
> > "</table>\n".
> > "</td>\n".
> > "<tr class='mainrow'>\n".
> > "<td>S</td><td>M</td><td>T</td><td>W</td><td>T</td><td>F</
> > td><td>S</td>\n".
> > "</tr>\n";
>
> > // Now we break each key of the array
> > // into a week and create a new table row for each
> > // week with the days of that week in the table data
>
> > $i = 0;
> > while (list(, $week) = each($weeks))
> > {
>
> > echo "<tr class='mainrow'>\n";
> > while (list(, $d) = each($week)){
>
> > if($i< $offset_count){
> > //$day_link = "<a href=\"".$_SERVER['PHP_SELF']."?
> > date=".mktime(0, 0, 0, $month -1, $d, $year)."\">$d</a>";
> > echo "<td class=\"nonmonthdays\">$day_link</td>\n";
> > }
> > if(($i>= $offset_count)&& ($i< ($num_weeks * 7) - $outset))
> > {
> > $datecount=mktime(0, 0, 0, $month -1, $d, $year);
> > $day_link = "<A href=\"javascript:popWin('editcalendar.php?
> > ID=$datecount', 350, 400)\">$d</a>";
> > if($date == mktime(0, 0, 0, $month, $d, $year)){
> > echo "<td><A href=\"javascript:popWin('editcalendar.php?
> > ID=$datecount', 350, 400)\"><font color='red'><b>$d</b></font></a></
> > td>\n";
> > } else {
> > echo "<td class=\"days\">$day_link</td>\n";
> > }
> > } elseif(($outset> 0)) {
> > if(($i>= ($num_weeks * 7) - $outset)){
> > $day_link = "";
> > echo "<td class=\"nonmonthdays\">$day_link</td>\n";
> > }
> > }
> > $i++;
> > }
> > echo "</tr>\n";
> > }
>
> > // Close out your table and that's it!
> > echo "<tr class='headline'><td colspan='7' class='days'> </td></
> > tr>";
> > echo '</table>';
>
> > Regards
> > Marco
>
> Luuk is right. We help those who help themselves. Copying code from
> another site is fine - all of us do it.
>
> The difference is - we UNDERSTAND what the code does. If you want to be
> a web developer, you must learn HTML, a server-side language such as
> PHP, SQL if you're going to use a database, and almost certainly a
> client-side language such as javascript.
>
> Your questions here show you have made no attempt to even understand the
> differences between technologies and people are rapidly losing interest
> in trying to help you. Your attitude is completing the alienation of
> others.
>
> Good luck. You're going to need it.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================
> Your questions here show you have made no attempt to even understand the
> differences between technologies
Ah another wise man who brags about helping people but in fact all he
does is
telling them they are no good and scaring them of. Why do you waste
the energy
in the first place. Just ignore the Q if you don't agree with it.
Show a little more respect and people will respect you back.
If I didn't make an attempt to understand then tell me why I got this
thing
working without any help.
> Start learning to program in PHP,
> get some knowledge about HTML,
> and you can find out how this should be done easily....
I just did.
Marco
[toc] | [prev] | [next] | [standalone]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2011-07-03 21:22 +0100 |
| Message-ID | <iuqj1t$hmo$1@news.albasani.net> |
| In reply to | #2438 |
Co wrote: > On 3 jul, 20:19, Jerry Stuckle <jstuck...@attglobal.net> wrote: >> The difference is - we UNDERSTAND what the code does. If you want to be >> a web developer, you must learn HTML, a server-side language such as >> PHP, SQL if you're going to use a database, and almost certainly a >> client-side language such as javascript. > > Ah another wise man who brags about helping people but in fact all he > does is > telling them they are no good and scaring them of. Why do you waste > the energy > in the first place. Just ignore the Q if you don't agree with it. > Show a little more respect and people will respect you back. > > If I didn't make an attempt to understand then tell me why I got this > thing > working without any help. > Because you are about 30 points higher IQ than jerrykins. Most people are.
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2011-07-03 17:02 -0400 |
| Message-ID | <iuqlch$6h6$2@dont-email.me> |
| In reply to | #2439 |
On 7/3/2011 4:22 PM, The Natural Philosopher wrote: > Co wrote: >> On 3 jul, 20:19, Jerry Stuckle <jstuck...@attglobal.net> wrote: > >>> The difference is - we UNDERSTAND what the code does. If you want to be >>> a web developer, you must learn HTML, a server-side language such as >>> PHP, SQL if you're going to use a database, and almost certainly a >>> client-side language such as javascript. > >> >> Ah another wise man who brags about helping people but in fact all he >> does is >> telling them they are no good and scaring them of. Why do you waste >> the energy >> in the first place. Just ignore the Q if you don't agree with it. >> Show a little more respect and people will respect you back. >> >> If I didn't make an attempt to understand then tell me why I got this >> thing >> working without any help. >> > > Because you are about 30 points higher IQ than jerrykins. > > Most people are. So says the troll who is afraid to use his real name - we might find out he's really a ditch digger who got fired because he couldn't figure out which end of the shovel to use. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | Co <vonclausowitz@gmail.com> |
|---|---|
| Date | 2011-07-03 14:43 -0700 |
| Message-ID | <e066b3df-cda0-4300-a043-9c007c5aa13b@u30g2000vby.googlegroups.com> |
| In reply to | #2439 |
On 3 jul, 22:22, The Natural Philosopher <t...@invalid.invalid> wrote: > Co wrote: > > On 3 jul, 20:19, Jerry Stuckle <jstuck...@attglobal.net> wrote: > >> The difference is - we UNDERSTAND what the code does. If you want to be > >> a web developer, you must learn HTML, a server-side language such as > >> PHP, SQL if you're going to use a database, and almost certainly a > >> client-side language such as javascript. > > > Ah another wise man who brags about helping people but in fact all he > > does is > > telling them they are no good and scaring them of. Why do you waste > > the energy > > in the first place. Just ignore the Q if you don't agree with it. > > Show a little more respect and people will respect you back. > > > If I didn't make an attempt to understand then tell me why I got this > > thing > > working without any help. > > Because you are about 30 points higher IQ than jerrykins. > > Most people are. Because you are about 30 points higher IQ than jerrykins. I guess you mean jerry cans and that calls himself The Natural Philosopher. As soon as you have something meaningful to add to the discussion I'd be happy to listen. There is no need to call people names because it says more about themselves. Marco
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2011-07-03 17:01 -0400 |
| Subject | tRe: show events in calendar |
| Message-ID | <iuqlag$6h6$1@dont-email.me> |
| In reply to | #2438 |
On 7/3/2011 3:00 PM, Co wrote:
> On 3 jul, 20:19, Jerry Stuckle<jstuck...@attglobal.net> wrote:
>> On 7/3/2011 11:13 AM, Co wrote:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>> Hi All,
>>
>>> I got me some code to show a month calendar and I have a database with
>>> events.
>>> Now I want to show the events on the calendar. When there is an event
>>> on day X I want
>>> the number to be bold and on a mouse over display the details of the
>>> event.
>>
>>> Can anyone help me with this?
>>> here is my code:
>>> << I didn't put all the code which builds the calendar>>
>>
>>> // Build the heading portion of the calendar table
>>> echo "<table class=\"maintable\">\n".
>>> "<tr class='headline'>\n".
>>> "<td colspan=\"7\">\n".
>>> "<table align=\"center\">\n".
>>> "<tr class='headline'>\n".
>>> "<td colspan=\"2\" width=\"75\" align=\"left\">$previous_link</td>
>>> \n".
>>> "<td colspan=\"3\" width=\"150\" align=\"center\">$month_name
>>> $year</td>\n".
>>> "<td colspan=\"2\" width=\"75\" align=\"right\">$next_link</td>
>>> \n".
>>> "</tr>\n".
>>> "</table>\n".
>>> "</td>\n".
>>> "<tr class='mainrow'>\n".
>>> "<td>S</td><td>M</td><td>T</td><td>W</td><td>T</td><td>F</
>>> td><td>S</td>\n".
>>> "</tr>\n";
>>
>>> // Now we break each key of the array
>>> // into a week and create a new table row for each
>>> // week with the days of that week in the table data
>>
>>> $i = 0;
>>> while (list(, $week) = each($weeks))
>>> {
>>
>>> echo "<tr class='mainrow'>\n";
>>> while (list(, $d) = each($week)){
>>
>>> if($i< $offset_count){
>>> //$day_link = "<a href=\"".$_SERVER['PHP_SELF']."?
>>> date=".mktime(0, 0, 0, $month -1, $d, $year)."\">$d</a>";
>>> echo "<td class=\"nonmonthdays\">$day_link</td>\n";
>>> }
>>> if(($i>= $offset_count)&& ($i< ($num_weeks * 7) - $outset))
>>> {
>>> $datecount=mktime(0, 0, 0, $month -1, $d, $year);
>>> $day_link = "<A href=\"javascript:popWin('editcalendar.php?
>>> ID=$datecount', 350, 400)\">$d</a>";
>>> if($date == mktime(0, 0, 0, $month, $d, $year)){
>>> echo "<td><A href=\"javascript:popWin('editcalendar.php?
>>> ID=$datecount', 350, 400)\"><font color='red'><b>$d</b></font></a></
>>> td>\n";
>>> } else {
>>> echo "<td class=\"days\">$day_link</td>\n";
>>> }
>>> } elseif(($outset> 0)) {
>>> if(($i>= ($num_weeks * 7) - $outset)){
>>> $day_link = "";
>>> echo "<td class=\"nonmonthdays\">$day_link</td>\n";
>>> }
>>> }
>>> $i++;
>>> }
>>> echo "</tr>\n";
>>> }
>>
>>> // Close out your table and that's it!
>>> echo "<tr class='headline'><td colspan='7' class='days'> </td></
>>> tr>";
>>> echo '</table>';
>>
>>> Regards
>>> Marco
>>
>> Luuk is right. We help those who help themselves. Copying code from
>> another site is fine - all of us do it.
>>
>> The difference is - we UNDERSTAND what the code does. If you want to be
>> a web developer, you must learn HTML, a server-side language such as
>> PHP, SQL if you're going to use a database, and almost certainly a
>> client-side language such as javascript.
>>
>> Your questions here show you have made no attempt to even understand the
>> differences between technologies and people are rapidly losing interest
>> in trying to help you. Your attitude is completing the alienation of
>> others.
>>
>> Good luck. You're going to need it.
>>
>
>> Your questions here show you have made no attempt to even understand the
>> differences between technologies
>
> Ah another wise man who brags about helping people but in fact all he
> does is
> telling them they are no good and scaring them of. Why do you waste
> the energy
> in the first place. Just ignore the Q if you don't agree with it.
> Show a little more respect and people will respect you back.
>
> If I didn't make an attempt to understand then tell me why I got this
> thing
> working without any help.
>
Yup, I help people WHO TRY TO HELP THEMSELVES. You have shown NO
INDICATION OF DOING THIS.
And I don't need "respect" from people like you. If you want someone to
so your work for you, get out your checkbook. This isn't a place to get
free consulting or training.
>> Start learning to program in PHP,
>> get some knowledge about HTML,
>> and you can find out how this should be done easily....
>
> I just did.
>
> Marco
Obviously not - or you wouldn't be asking these questions here. You
don't even understand the differences between the technologies and which
ones are appropriate for your questions.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.php
csiph-web