<?php
setlocale
(LC_TIME'it_IT');
include(
'./calendario.class');
$cal = new Calendario();
?>
<HTML>
<HEAD>
    <TITLE>CalendarioClass - A PHP class useful to create calendars and organizers - Una classe PHP per creare calendari e agende.</TITLE>
</HEAD>
<BODY>
<h1>CalendarioClass</h1>
<p><A HREF="/pdfbarcode">Do you want to use barcodes in your PDF documents? Check <b>PDFBarcode</b>!</A></p>
<P>
Questa classe aiuta nella creazione di calendari e agende. E' altamente configurabile, permettendo di scegliere di quanti giorni e` composta una settimana, quando la settimana inizia, come deve essere l'output HTML e cosi` via. E` prevista anche la gestione delle festivita`.<br>
La documentazione e` disponibile sia in <A HREF="DOCUMENTATION">inglese</A> che in <A HREF="DOCUMENTATION.ITA">italiano</A>.<br><br>
<b>Documentation available both in <A HREF="DOCUMENTATION">English</A> and in <A HREF="DOCUMENTATION.ITA">Italian</A></b>.
</P>
<P><B><A HREF="#donazioni">Vai qui per una donazione</A></B> e <A HREF="#perche">leggi qui sul 'perche` donare'</A>. Grazie.
<P><B><A HREF="#donazioni">Go here for a donation</A></B> and <A HREF="#perche">read here about 'why donate'</A>. Thanks.
<P>Download disponibile su questo sito o presso<br>
<UL>
<LI><A HREF="http://valeryo76.users.phpclasses.org">PHP Classes Repository</A>
<LI><a href="http://php.resourceindex.com"><img src="http://php.resourceindex.com/images/linking/156x28A.gif" width=156 height=28 alt="The PHP Resource Index" border=0></a>
<LI><A HREF="http://freshmeat.net/projects/calendarioclass/">Freshmeat</A>
<LI><A HREF="http://www.script-index.com/">Script-Index.com</A>
<LI><A HREF="http://www.phpbank.net/description.php?id=876&start=0">PhpBank.net</A>
<LI><A HREF="http://www.scriptsearch.com/details/8855.html">ScriptSearch.com</A>
<LI><A href="http://sourceforge.net/projects/calendarioclass/"> <IMG src="http://sourceforge.net/sflogo.php?group_id=84870&amp;type=5" width="210" height="62" border="0" alt="SourceForge.net Logo" /></A>
</UL>
<!------------------START----------------------->
<form action="http://www.phpbank.net/exrate.php" method="POST" target="_blank">
<input type="hidden" name="id" value="876">
<table BORDER="0" CELLSPACING="0" bgcolor="#000000">
<tr><td><table border="0" cellspacing="0" width="100%" bgcolor="#C0C0C0" cellpadding="3">
<tr><td align="center"><font face="arial, verdana" size="2" color="#333333">
<b>Rate this Program</b></font>
<table border="0" cellspacing="3" cellpadding="0">
<tr><td align="center"><select name="new" size="1">
<option value selected>-- Select One --</option>
<option value="5">Excellent</option>
<option value="4">Very Good</option>
<option value="3">Good</option>
<option value="2">Fair</option>
<option value="1">Poor</option>
</select></td></tr>
<tr><td align="center">
<input type="submit" value="PhpBank.net" style="font-weight:bold; color:#666666">
</td></tr>
</table>
</td></tr></table>
</td></tr>
</table></form>
<!-------------------END-----------------------> 
<P>Lista dei file a disposizione:</P>
<UL>
<?php
include('./FILES');
?>
</UL>
<h2>Esempi</h2>
<P ALIGN="CENTER"><b>&raquo;&raquo;<A HREF="#perpetuo">Vedi un calendario perpetuo a 3 mesi con agenda.</A>&laquo;&laquo;</b></P>
<P>Mese di <?=$cal->MonthName()?> <?=$cal->Year()?>
<?=$cal
->ShowMonth();?>
<p>
Mese successivo (<?=$cal->MonthName(1)?> <?=$cal->Year(1)?>)
<?=$cal->ShowMonth(1);?>
<P>
Visualizziamo dicembre 2003 con colori diversi
<?
$cal
->SetTimeStamp(1070233200);
$cal->BGCellColor '#8AC6F8';
$cal->BGCellColorToday '#024070';
$cal->BGCellColorBlank '#FFFFFF';
$cal->ShowMonth();

$cal->SetTimeStamp(time());
$cal->WeekStart 0;
$cal->HowManyDays 6;
?>
<P>Mese di <?=$cal->MonthName()?> <?=$cal->Year()?> con una settimana di 6 giorni a partire dalla domenica
<?
$cal
->ShowMonth();
$cal->ShowBlanks 0;
?>
<P>
O senza i giorni in eccesso
<?
$cal
->ShowMonth();
unset(
$cal);

$cal = new Calendario(
        array(
                
MonthShift=> $ms,
                
TimeStamp => $ts,
                
Link => 'agenda.php?ts=',
                
TableWidth => '200',
                
TableBorder => '1',
                
BGCellColor => '#8AC6F8',
                
BGCellColorToday => '#024070',
                
BGCellColorBlank => '#FFFFFF',
                
FontFace => 'Arial, Verdana',
                
FontFaceToday => 'Arial, Verdana',
                
FontFaceBlank => 'Arial, Verdana',
                
FontFaceHolidays => 'Arial, Verdana',
                
FontColorToday => '#FFFFFF',
                
FontColorBlank => '#024070',
                
WeekStart => 1,
                
HowManyDays => 7,
        ));
?>
<A NAME="perpetuo">
<P>Un calendario perpetuo con agenda...</P>
<TABLE WIDTH="100%" ALIGN="CENTER" BORDER=1>
  <TR>
    <TD ALIGN="CENTER" VALIGN="TOP">
    <A HREF="<?=$PHP_SELF?>?ms=<?=$cal->MonthShift-1?>#perpetuo">&lt;&lt;</A>
    </TD>
    <TD ALIGN="CENTER" VALIGN="TOP">
    <A HREF="<?=$PHP_SELF?>?ms=0#perpetuo">Mese corrente</A>
    </TD>
    <TD ALIGN="CENTER" VALIGN="TOP">
    <A HREF="<?=$PHP_SELF?>?ms=<?=$cal->MonthShift+1?>#perpetuo">&gt;&gt;</A>
    </TD>
  </TR>
  <TR>
    <TD ALIGN="CENTER" VALIGN="TOP">
    <FONT FACE="Arial, Verdana">Mese di <?=$cal->MonthName(-1)?> <?=$cal->Year(-1)?></FONT>
    <?=$cal->ShowMonth(-1);?>
    </TD>
    <TD ALIGN="CENTER" VALIGN="TOP">
    <FONT FACE="Arial, Verdana">Mese di <?=$cal->MonthName()?> <?=$cal->Year()?></FONT>
    <?=$cal->ShowMonth();?>
    </TD>
    <TD ALIGN="CENTER" VALIGN="TOP">
    <FONT FACE="Arial, Verdana">Mese di <?=$cal->MonthName(1)?> <?=$cal->Year(1)?></FONT>
    <?=$cal->ShowMonth(1);?>
    </TD>
  </TR>
</TABLE>
<P>&nbsp;</P>
<A NAME="donazioni">
<TABLE ALIGN="CENTER" WIDTH="100%" BORDER=1>
  <TR>
    <TD VALIGN="TOP">
<B>Donazioni</b><br>
<br>
Se apprezzate il mio lavoro vi invito a fare una piccola donazione
usando <A HREF="https://www.paypal.com/xclick/business=valerio%40grana.to&item_name=CalendarioClass+Donation&item_number=CalendarioClass&no_shipping=1&no_note=1&tax=0&currency_code=EUR">PayPal</A> su http://www.grana.to/CalendarioClass o inviandomi
direttamente qualche euro a<br>
<br>
Valerio Granato<br>
c/o LiveNET S.r.l.<br>
Centro Direzionale di Napoli Is. A7 Sc. C<br>
I-80139 Naples (Italy)<br>
<br>
<A HREF="#perche">Perche` donare?</A>
<CENTER>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="valerio@grana.to">
<input type="hidden" name="item_name" value="CalendarioClass Donation">
<input type="hidden" name="item_number" value="CalendarioClass">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="tax" value="0">
<input type="image" src="https://www.paypal.com/images/x-click-butcc-donate.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>
</CENTER>
    </TD>
    <TD VALIGN="TOP">
<b>Donations</b><br>
<br>
If you appreciate my work please make a little donation using <A HREF="https://www.paypal.com/xclick/business=valerio%40grana.to&item_name=CalendarioClass+Donation&item_number=CalendarioClass&no_shipping=1&no_note=1&tax=0&currency_code=EUR">PayPal</A>
on http://www.grana.to/CalendarioClass or directly sending euros to<br>
<br>
Valerio Granato<br>
c/o LiveNET S.r.l.<br>
Centro Direzionale di Napoli Is. A7 Sc. C<br>
I-80139 Naples (Italy)<br>
<br>
<A HREF="#perche">Why donate?</A>
<CENTER>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="valerio@grana.to">
<input type="hidden" name="item_name" value="CalendarioClass Donation">
<input type="hidden" name="item_number" value="CalendarioClass">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="tax" value="0">
<input type="image" src="https://www.paypal.com/images/x-click-butcc-donate.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>
</CENTER>
    </TD>
  </TR>
</TABLE>
<P>&nbsp;</P>
<A NAME="perche">
<TABLE ALIGN="CENTER" WIDTH="100%" BORDER=1>
  <TR>
    <TD VALIGN="TOP">
<b>Perche` donare?</B><br>
<br>
Il mio lavoro e` fare il programmatore e, quando scrivo uno script
che penso possa essere utile ad altri, lo metto a disposizione
gratuitamente a tutti.<br>
<br>
I soldi che ricevo con le donazioni vengono usati per aiutare persone
che ne hanno bisogno. Attualmente non do` i soldi delle
donazioni ad associazioni umanitarie o simili (ne do` gia` del mio);
semplicemente prendo le banconote, le metto in una busta e le do`
a persone che hanno problemi di soldi.<br>
Cosi` se guadagnate con il mio lavoro o pensate che abbia un valore
che volete corrispondermi, donate e aiuterete qualcuno.
    </TD>
    <TD VALIGN="TOP">
<b>Why donate?</b><br>
<br>
I work as a programmer and, when I write a script I think is useful
to others, I make it available to everyone for free.<br>
<br>
Money I receive via donations is used to support people I know
need it. Currently I don't give money received via donations to
humanitarian associations or similar (I give of mine for them);
I simply take banknotes, put them in an envelope and give it
to a person I know have money needs.<br>
So if you gain money using my work, or think it have a value
you would to pay, please donate and you'll help someone.
    </TD>
  </TR>
</TABLE>

</BODY>
</HTML>