<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Calendar"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "Calendar"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Calendar</title>
				<description><![CDATA[ Would you post the code fot the little calendar in the right lower corner?<br /> That would be great?<br /> <br /> Where can I find information about licensing when using your code in<br /> commercial webpages?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/848/2146.php</guid>
				<link>https://proxy2.de/forum/posts/preList/848/2146.php</link>
				<pubDate><![CDATA[Tue, 16 Jul 2002 13:29:15]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ That would be graet]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/848/2703.php</guid>
				<link>https://proxy2.de/forum/posts/preList/848/2703.php</link>
				<pubDate><![CDATA[Mon, 7 Oct 2002 23:32:17]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Obviously dont want to tell us]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/848/3323.php</guid>
				<link>https://proxy2.de/forum/posts/preList/848/3323.php</link>
				<pubDate><![CDATA[Tue, 17 Dec 2002 21:44:42]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Y'all need to start [b]thinking outside the box[/b]. If you haven't heard of Google, it is time for you to learn. It is one of the best search tools on the internet: [url]http://www.google.com/[/url]. Start using Google to find some of the answers y'all seek.<br /> <br /> Next... here is the code:<br /> [code]<br /> &lt;?php<br /> /* PHP Calendar Class Version 1.5.1 &#40;23 November 2002&#41;<br />       <br /> 	Copyright David Wilkinson 2000 - 2001. All Rights reserved.<br /> 	 <br /> 	Modifications&#58;<br /> 		Copyright T W Morris McGuire 2002. All right reserved.<br /> <br /> 		* - Code cleanup and simplifcation<br /> 		* - Server time zone offset variable<br /> 		* - Expanded CSS definitions<br /> 		* - Incorporated the extended class into the class file<br /> 		* - Additional internal documenttion<br />      <br />     This software may be used, modified and distributed freely<br />     providing this copyright notice remains intact at the head <br />     of the file.<br />     <br />     This software is freeware. The author accepts no liability for<br />     any loss or damages whatsoever incurred directly or indirectly <br />     from the use of this script. The author of this software makes <br />     no claims as to its fitness for any purpose whatsoever. If you <br />     wish to use this software you should first satisfy yourself that <br />     it meets your requirements.<br />     <br />     URL&#58;   http&#58;//www.cascade.org.uk/software/php/calendar/<br />     Email&#58; davidw@cascade.org.uk<br /> <br /> 	Style sheet example&#58;<br /> <br /> 		.calendarTable  &#123;  background-color&#58; #006600; border&#58; solid 1px #006600&#125;<br /> 		.calendarDays   &#123;  font-family&#58; Arial, Verdana, Geneva; font-size&#58; 10px;<br /> 			 background-color&#58; #FFF8DC; color&#58; #000000; font-style&#58; normal; width&#58; 19px;&#125;<br /> 		.calendarHeader &#123;  font-family&#58; Arial, Verdana, Geneva; font-size&#58; 9px;<br /> 		     background-color&#58; #DDDDBB; color&#58; #006600;&#125;<br /> 		.calendarNav    &#123;  font-family&#58; Arial, Verdana, Geneva; font-size&#58; 9px;<br />              background-color&#58; #006600; color&#58; #FFFFFF; font-style&#58; normal;<br /> 			 font-weight&#58; bold; height&#58; 18px;&#125;<br /> 		.calendarToday  &#123;  font-family&#58; Arial, Verdana, Geneva; font-size&#58; 10px;<br /> 			 background-color&#58; #00FF00; color&#58; #990000; font-weight&#58; bold;&#125;<br /> 		.calendarTop    &#123;  font-family&#58; Arial, Verdana, Geneva; font-size&#58; 11px;<br /> 			 background-color&#58; #006600; color&#58; #FFFFFF; font-style&#58; normal;<br /> 			 font-weight&#58; bold; height&#58; 18px;&#125;<br /> <br /> 	For examples of the calendar, see the above URL.<br /> <br /> 	To use the calendar&#58;<br /> 		<br /> 		1. Upload this code as 'class_calendar.php' &#40;after you have set the offset <br /> 			value for your server location&#41;<br /> 		2. Insert the CSS Style Sheet values into the file that will display the calendar<br /> 		3. Insert following block of code into the file that will display the calendar<br /> <br /> 		   &lt;!-- Calendar Start --&gt;<br /> 		   &lt;?php<br /> 		   // Construct a calendar to show the current month<br /> 		   require&#40;&quot;class_calendar.php&quot;&#41;;<br /> 		   $cal = new Calendar;<br /> 		   print $cal-&gt;getCurrentMonthView&#40;&#41;;<br /> 		   ?&gt;<br /> 		   &lt;!-- Calendar End   --&gt;<br /> <br /> 		4. Upload the file modified to display the calendar.<br /> 		5. For additional documentation, see the above URL.<br /> */<br /> <br /> <br /> class Calendar &#123;<br />  <br />     var $offset 	= 0;	/* Server Time Zone Offset, e.g. -1, +2 */<br /> <br />     /* <br />         The start day of the week. This is the day that appears in the first column<br />         of the calendar. Sunday = 0.<br />     */<br />     var $startDay 	= 0;<br /> <br />     /* <br />         The start month of the year. This is the month that appears in the first slot<br />         of the calendar in the year view. January = 1.<br />     */<br />     var $startMonth = 1;<br /> <br />     /*<br />         The labels to display for the days of the week. The first entry in this array<br />         represents Sunday.<br />     */<br />     var $dayNames 	= array&#40;&quot;Sun&quot;, &quot;Mon&quot;, &quot;Tue&quot;, &quot;Wed&quot;, &quot;Thu&quot;, &quot;Fri&quot;, &quot;Sat&quot;&#41;;<br />                             <br />     /*<br />         Constructor for the Calendar class<br />     */<br /> <br />     function Calendar&#40;&#41; &#123;<br />     &#125;<br />     <br />     /*<br />         Get the array of strings used to label the days of the week. This array contains seven <br />         elements, one for each day of the week. The first entry in this array represents Sunday. <br />     */<br />     function getDayNames&#40;&#41; &#123;<br />         return $this-&gt;dayNames;<br />     &#125;<br /> <br />     /*<br />         Set the array of strings used to label the days of the week. This array must contain seven <br />         elements, one for each day of the week. The first entry in this array represents Sunday. <br />     */<br />     function setDayNames&#40;$names&#41; &#123;<br />         $this-&gt;dayNames = $names;<br />     &#125;<br />    <br />     /* <br />         Gets the start day of the week. This is the day that appears in the first column<br />         of the calendar. Sunday = 0.<br />     */<br />     function getStartDay&#40;&#41; &#123;<br />         return $this-&gt;startDay;<br />     &#125;<br />     <br />     /* <br />         Sets the start day of the week. This is the day that appears in the first column<br />         of the calendar. Sunday = 0.<br />     */<br />     function setStartDay&#40;$day&#41; &#123;<br />         $this-&gt;startDay = $day;<br />     &#125;<br />     <br />     /* <br />         Gets the start month of the year. This is the month that appears first in the year<br />         view. January = 1.<br />     */<br />     function getStartMonth&#40;&#41; &#123;<br />         return $this-&gt;startMonth;<br />     &#125;<br />     <br />     /* <br />         Sets the start month of the year. This is the month that appears first in the year<br />         view. January = 1.<br />     */<br />     function setStartMonth&#40;$month&#41; &#123;<br />         $this-&gt;startMonth = $month;<br />     &#125;<br />     <br />     <br />     /*<br />         Return the URL to link to in order to display a calendar for a given month/year.<br />         You must override this method if you want to activate the &quot;forward&quot; and &quot;back&quot; <br />         feature of the calendar.<br />         <br />         Note&#58; If you return an empty string from this function, no navigation link will<br />         be displayed. This is the default behaviour.<br />         <br />         If the calendar is being displayed in &quot;year&quot; view, $month will be set to zero.<br />     */<br />     function getCalendarLink&#40;$month, $year&#41; &#123;<br />         return &quot;&quot;;<br />     &#125;<br />     <br />     /*<br />         Return the URL to link to  for a given date.<br />         You must override this method if you want to activate the date linking<br />         feature of the calendar.<br />         <br />         Note&#58; If you return an empty string from this function, no navigation link will<br />         be displayed. This is the default behaviour.<br />     */<br />     function getDateLink&#40;$day, $month, $year&#41; &#123;<br />         return &quot;&quot;;<br />     &#125;<br /> <br />     /*<br />         Return the HTML for the current month<br />     */<br />     function getCurrentMonthView&#40;&#41; &#123;<br />         $offset = $this-&gt;offset;<br />         $d = getdate&#40;time&#40;&#41; + $offset * 3600&#41;;<br />         return $this-&gt;getMonthHTML&#40;$d&#91;&quot;mon&quot;&#93;, $d&#91;&quot;year&quot;&#93;&#41;;<br />     &#125;<br /> <br />     /*<br />         Return the HTML for the current year<br />     */<br />     function getCurrentYearView&#40;&#41; &#123;<br />         $offset = $this-&gt;offset;<br />         $d = getdate&#40;time&#40;&#41; + $offset * 3600&#41;;<br />         return $this-&gt;getYearView&#40;$d&#91;&quot;year&quot;&#93;&#41;;<br />     &#125;<br />     <br />     /*<br />         Return the HTML for a specified month<br />     */<br />     function getMonthView&#40;$month, $year&#41; &#123;<br />         return $this-&gt;getMonthHTML&#40;$month, $year&#41;;<br />     &#125;<br /> <br />     /*<br />         Return the HTML for a specified year<br />     */<br />     function getYearView&#40;$year&#41; &#123;<br />         return $this-&gt;getYearHTML&#40;$year&#41;;<br />     &#125;<br />     <br />     /********************************************************************************<br />     <br />         The rest are private methods. No user-servicable parts inside.<br />         <br />         You shouldn't need to call any of these functions directly.<br />         <br />     *********************************************************************************/<br />     /*<br />         Calculate the number of days in a month.<br />     */<br />     function getDaysInMonth&#40;$month, $year&#41; &#123;<br />         if &#40;$month &lt; 1 || $month &gt; 12&#41; &#123;<br />             return 0;<br />         &#125;<br />         $d = date&#40;&quot;d&quot;, mktime&#40;0, 0, 0, $month+1, 0, $year&#41;&#41;;<br />         return $d;<br />     &#125;<br /> <br />     /*<br />         Generate the HTML for a given month<br />     */<br />     function getMonthHTML&#40;$m, $y, $showYear = 1&#41; &#123;<br />         <br />         $s = &quot;&quot;;<br />         <br />         $a = $this-&gt;adjustDate&#40;$m, $y&#41;;<br />         $month = $a&#91;0&#93;;<br />         $year = $a&#91;1&#93;;        <br />         <br />         $daysInMonth = $this-&gt;getDaysInMonth&#40;$month, $year&#41;;<br />         $timeStamp = mktime &#40;12, 0, 0, $month, 1, $year&#41;;<br />         $monthName  =  date&#40;&quot;F&quot;, $timeStamp&#41;;<br />         $date = getdate&#40;$timeStamp&#41;;<br />         $first = $date&#91;&quot;wday&quot;&#93;;<br /> <br />         $prev = $this-&gt;adjustDate&#40;$month - 1, $year&#41;;<br />         $next = $this-&gt;adjustDate&#40;$month + 1, $year&#41;;<br />     	<br />         if &#40;$showYear == 1&#41; &#123;<br />             $prevMonth = $this-&gt;getCalendarLink&#40;$prev&#91;0&#93;, $prev&#91;1&#93;&#41;;<br />             $nextMonth = $this-&gt;getCalendarLink&#40;$next&#91;0&#93;, $next&#91;1&#93;&#41;;<br />         &#125; else &#123;<br />             $prevMonth = &quot;&quot;;<br />             $nextMonth = &quot;&quot;;<br />         &#125;<br />     	<br />         $header = $monthName . &#40;&#40;$showYear &gt; 0&#41; ? &quot; &quot; . $year &#58; &quot;&quot;&#41;;<br />     	<br />         $s .= &quot;&lt;table class=\&quot;calendarTable\&quot; cellpadding=\&quot;2\&quot; cellspacing=\&quot;1\&quot;&gt;\n&quot;;<br />         $s .= &quot;&lt;tr&gt;\n&quot;;<br />         $s .= &quot;&lt;td align=\&quot;center\&quot; valign=\&quot;top\&quot; class=\&quot;calendarNav\&quot;&gt;&quot; . &#40;&#40;$prevMonth == &quot;&quot;&#41; ? &quot;&amp;nbsp;&quot; &#58; &quot;&lt;a href=\&quot;$prevMonth\&quot;&gt;&amp;lt;&amp;lt;&lt;/a&gt;&quot;&#41;  . &quot;&lt;/td&gt;\n&quot;;<br />         $s .= &quot;&lt;td align=\&quot;center\&quot; valign=\&quot;top\&quot; class=\&quot;calendarTop\&quot; colspan=\&quot;5\&quot;&gt;$header&lt;/td&gt;\n&quot;; <br />         $s .= &quot;&lt;td align=\&quot;center\&quot; valign=\&quot;top\&quot; class=\&quot;calendarNav\&quot;&gt;&quot; . &#40;&#40;$nextMonth == &quot;&quot;&#41; ? &quot;&amp;nbsp;&quot; &#58; &quot;&lt;a href=\&quot;$nextMonth\&quot;&gt;&amp;gt;&amp;gt;&lt;/a&gt;&quot;&#41;  . &quot;&lt;/td&gt;\n&quot;;<br />         $s .= &quot;&lt;/tr&gt;\n&quot;;<br />     	<br />         $s .= &quot;&lt;tr&gt;\n&quot;;<br />         for &#40;$i = 0; $i &lt; 7; $i++&#41; &#123;<br />             $s .= &quot;&lt;td align=\&quot;center\&quot; valign=\&quot;top\&quot; width=\&quot;14%\&quot; class=\&quot;calendarHeader\&quot;&gt;&quot; . $this-&gt;dayNames&#91;&#40;$this-&gt;startDay+$i&#41;%7&#93; . &quot;&lt;/td&gt;\n&quot;;<br />         &#125;<br />         $s .= &quot;&lt;/tr&gt;\n&quot;;<br /> <br />         // We need to work out what date to start at so that the first appears in the correct column<br />         $d = $this-&gt;startDay + 1 - $first;<br />         while &#40;$d &gt; 1&#41; &#123;<br />             $d -= 7;<br />         &#125;<br /> <br />         // Make sure we know when today is, so that we can use a different CSS style<br />         $offset = $this-&gt;offset;<br />         $today = getdate&#40;time&#40;&#41; + $offset * 3600&#41;;<br />     	<br />         while &#40;$d &lt;= $daysInMonth&#41; &#123;<br />             $s .= &quot;&lt;tr&gt;\n&quot;;       <br />     	    <br />             for &#40;$i = 0; $i &lt; 7; $i++&#41; &#123;<br />                 $class = &#40;$year == $today&#91;&quot;year&quot;&#93; &amp;&amp; $month == $today&#91;&quot;mon&quot;&#93; &amp;&amp; $d == $today&#91;&quot;mday&quot;&#93;&#41; ? &quot;calendarToday&quot; &#58; &quot;calendarDays&quot;;<br />     			$s .= &quot;&lt;td align=\&quot;right\&quot; valign=\&quot;top\&quot; class=\&quot;$class\&quot;&gt;&quot;;       <br />     			if &#40;$d &gt; 0 &amp;&amp; $d &lt;= $daysInMonth&#41; &#123;<br />     	    		$link = $this-&gt;getDateLink&#40;$d, $month, $year&#41;;<br />     	    		$s .= &#40;&#40;$link == &quot;&quot;&#41; ? $d &#58; &quot;&lt;a href=\&quot;$link\&quot;&gt;$d&lt;/a&gt;&quot;&#41;;<br />                 &#125; else &#123;<br />     	    		$s .= &quot;&amp;nbsp;&quot;;<br />     			&#125;<br />       			$s .= &quot;&lt;/td&gt;\n&quot;;       <br />         		$d++;<br />             &#125;<br />             $s .= &quot;&lt;/tr&gt;\n&quot;;    <br />         &#125;<br />     	<br />         $s .= &quot;&lt;/table&gt;\n&quot;;<br />         return $s;  	<br />     &#125;<br />     <br />     /*<br />         Generate the HTML for a given year<br />     */<br />     function getYearHTML&#40;$year&#41; &#123;<br />         $s = &quot;&quot;;<br />         $prev = $this-&gt;getCalendarLink&#40;0, $year - 1&#41;;<br />         $next = $this-&gt;getCalendarLink&#40;0, $year + 1&#41;;<br />         <br />         $s .= &quot;&lt;table class=\&quot;calendarTable\&quot; cellpadding=\&quot;2\&quot; cellspacing=\&quot;1\&quot;&gt;\n&quot;;<br />         $s .= &quot;&lt;tr&gt;&quot;;<br />         $s .= &quot;&lt;td align=\&quot;center\&quot; valign=\&quot;top\&quot; class=\&quot;calendarNav\&quot; align=\&quot;left\&quot;&gt;&quot; . &#40;&#40;$prev == &quot;&quot;&#41; ? &quot;&amp;nbsp;&quot; &#58; &quot;&lt;a href=\&quot;$prev\&quot;&gt;&amp;lt;&amp;lt;&lt;/a&gt;&quot;&#41;  . &quot;&lt;/td&gt;\n&quot;;<br />         $s .= &quot;&lt;td align=\&quot;center\&quot; valign=\&quot;top\&quot; class=\&quot;calendarTop\&quot;&gt;&quot; . &#40;&#40;$this-&gt;startMonth &gt; 1&#41; ? $year . &quot; - &quot; . &#40;$year + 1&#41; &#58; $year&#41; .&quot;&lt;/td&gt;\n&quot;;<br />         $s .= &quot;&lt;td align=\&quot;center\&quot; valign=\&quot;top\&quot; class=\&quot;calendarNav\&quot; align=\&quot;right\&quot;&gt;&quot; . &#40;&#40;$next == &quot;&quot;&#41; ? &quot;&amp;nbsp;&quot; &#58; &quot;&lt;a href=\&quot;$next\&quot;&gt;&amp;gt;&amp;gt;&lt;/a&gt;&quot;&#41;  . &quot;&lt;/td&gt;\n&quot;;<br />         $s .= &quot;&lt;/tr&gt;\n&quot;;<br /> <br />         $i = 0;<br />         while &#40;$i &lt; 12&#41; &#123;<br />             $s .= &quot;&lt;tr&gt;&quot;;<br />             for &#40;$j = 0; $j &lt; 3; $j++&#41; &#123;<br />                 $s .= &quot;&lt;td valign=\&quot;top\&quot; class=\&quot;calendarDays\&quot;&gt;\n&quot; . $this-&gt;getMonthHTML&#40;$i++ + $this-&gt;startMonth, $year, 0&#41; .&quot;&lt;/td&gt;\n&quot;;<br />             &#125;<br />             $s .= &quot;&lt;/tr&gt;\n&quot;;<br />         &#125;<br />              <br />         $s .= &quot;&lt;/table&gt;\n&quot;;<br />         return $s;<br />     &#125;<br /> <br />     /*<br />         Adjust dates to allow months &gt; 12 and &lt; 0. Just adjust the years appropriately.<br />         e.g. Month 14 of the year 2001 is actually month 2 of year 2002.<br />     */<br />     function adjustDate&#40;$month, $year&#41; &#123;<br />         $a = array&#40;&#41;;  <br />         $a&#91;0&#93; = $month;<br />         $a&#91;1&#93; = $year;<br />         <br />         while &#40;$a&#91;0&#93; &gt; 12&#41; &#123;<br />             $a&#91;0&#93; -= 12;<br />             $a&#91;1&#93;++;<br />         &#125;<br />         <br />         while &#40;$a&#91;0&#93; &lt;= 0&#41; &#123;<br />             $a&#91;0&#93; += 12;<br />             $a&#91;1&#93;--;<br />         &#125;<br />         <br />         return $a;<br />     &#125;<br /> &#125;<br /> <br /> class MyCalendar extends Calendar &#123;<br /> <br />     /*<br />        Redisplay the current page, but parameters to set the new month and year<br />     */<br />     <br />     function getCalendarLink&#40;$month, $year&#41; &#123;<br />         $s = getenv&#40;'SCRIPT_NAME'&#41;;<br />         return &quot;$s?month=$month&amp;year=$year&quot;;<br />     &#125;<br /> &#125;<br /> <br /> ?&gt;<br /> <br /> [/code]<br /> <br /> If you don't understand the code, don't use it. If you don't understand PHP, don't use it.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/848/3338.php</guid>
				<link>https://proxy2.de/forum/posts/preList/848/3338.php</link>
				<pubDate><![CDATA[Thu, 19 Dec 2002 10:24:14]]> GMT</pubDate>
				<author><![CDATA[ twmm]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ how rude!!!<br /> <br /> <a class="snap_shots" href="http://www.phptools4u.com/scripts/calendrier/?lang=english" target="_blank" rel="nofollow">http://www.phptools4u.com/scripts/calendrier/?lang=english</a>]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/848/4036.php</guid>
				<link>https://proxy2.de/forum/posts/preList/848/4036.php</link>
				<pubDate><![CDATA[Tue, 25 Feb 2003 13:07:57]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Is this the calendar that you are talking about<br /> <br /> [url]http://www.avianosaints.com/ct.php[/url]<br /> <br /> if so, download the calendar code, and my file (ct.php) in a zip.<br /> <br /> [url]http://www.avianosaints.com/ct.zip[/url]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/848/4039.php</guid>
				<link>https://proxy2.de/forum/posts/preList/848/4039.php</link>
				<pubDate><![CDATA[Tue, 25 Feb 2003 17:02:19]]> GMT</pubDate>
				<author><![CDATA[ Jared]]></author>
			</item>
	</channel>
</rss>