History

Show Presentation
 
 -158_BU100606
Home • .Templates • sivusto2005 • -158_BU100606
 
<!--#rem this template produces both the little month view calendar and the big one-->
<!--#if expr="<X-FC-URL-PARAMETER tyyppi LENGTH> > 0 && <X-FC-URL-PARAMETER tyyppi ESCAPED>==pikkukalenteri"-->
<!--x158 small-->
<!--#set var="FORMID" value="158"-->


<!--set var="EMPTYDAYCOLOR" value="#CCCCCC" -->
<!--set var="TODAYCOLOR" value="#CCFFCC" -->
<!--set var="EVENTDAYCOLOR" value="#FFCCFF" -->
<!--set var="REGULARDAYCOLOR" value="#CCCCFF" -->
<!--#set var="TEMPLATES" value="sivusto2005" -->
<!--set var="HEADINGCOLOR" value="#BBBBDD" -->

<!--#if expr="<X-FC-URL-PARAMETER includedfromphp LENGTH> > 0"-->
<div>
        <a href="<X-FC-URL-PARAMETER baseurl><X-FC-URL-PARAMETER kalenteri>/<X-FC-URL-PARAMETER kuukausi>/<X-FC-FIELD 1402 DATE,"%D">">&laquo;</a>
        <a href="<X-FC-URL-PARAMETER baseurl><X-FC-URL-PARAMETER kalenteri>/<X-FC-URL-PARAMETER kuukausi>/<X-FC-FIELD 1400 DATE,"%D">"><X-FC-FIELD 1400 DATE,"%B %Y"></a>
        <a href="<X-FC-URL-PARAMETER baseurl><X-FC-URL-PARAMETER kalenteri>/<X-FC-URL-PARAMETER kuukausi>/<X-FC-FIELD 1403 DATE,"%D">">&raquo;</a>
</div>
<!--#else-->
<div>
        <a href="?kalenteri=kuukausi&amp;pvm=<X-FC-FIELD 1402 DATE,"%D">">&laquo;</a>
        <a href="?kalenteri=kuukausi&amp;pvm=<X-FC-FIELD 1400 DATE,"%D">"><X-FC-FIELD 1400 DATE,"%B %Y"></a>
        <a href="?kalenteri=kuukausi&amp;pvm=<X-FC-FIELD 1403 DATE,"%D">">&raquo;</a>
</div>
<!--#endif-->




<table cellspacing="0" cellpadding="2" border="0">
<tr>
<!--#rem tulostaa listan viikonpäivistä -->
<!--#set var="WEEKDAY" value="-1" -->
<!--#while expr="++$WEEKDAY<7" -->
        <td class="dayheading" align="center"><X-FC-FIELD `1000 + $WEEKDAY` DATE,"%a"></td>
<!--#endwhile -->
<!--#rem END tulostaa listan viikonpäivistä -->
</tr>
<!--#set var="ABSDAYNUM" value="0"-->
<!--#set var="DONE" value="0"-->
<!--#while expr="$DONE == 0"-->
        <tr><!--#set var="WEEKDAY" value="-1"-->
        <!--#while expr="++$WEEKDAY < 7"-->
                <!--#if expr="<X-FC-FIELD `1000 + $ABSDAYNUM` DATE,"%m"> != <X-FC-FIELD 1400 DATE, "%m">"-->
                        <!--#rem tulosta tyhjä päivä-solu -->
                        <td class="emptyday">&nbsp;</td>
                <!--#else-->
                        <!--#rem tulosta tavallinen päivä-solu -->
                        <td class="<!--#if expr="<X-FC-FIELD `1000+$ABSDAYNUM` DATE,"%D">==<X-FC-FIELD 1401 DATE,"%D">"-->today <!--#endif--><!--#if expr="<X-FC-CALENDAR-ITEM $ABSDAYNUM NITEMS>"-->eventday<!--#else-->regularday<!--#endif-->" align="center">
                                <!--#if expr="<X-FC-CALENDAR-ITEM $ABSDAYNUM NITEMS>"-->
                                        <!--#rem tapahtumia on -->
<!--#if expr="<X-FC-URL-PARAMETER includedfromphp LENGTH> > 0"-->
<a href="<X-FC-URL-PARAMETER baseurl><X-FC-URL-PARAMETER kalenteri>/<X-FC-URL-PARAMETER paiva>/<X-FC-FIELD `1000 + $ABSDAYNUM` DATE,"%D">">
<!--#else-->
                                        <a href="?kalenteri=paiva&amp;pvm=<X-FC-FIELD `1000 + $ABSDAYNUM` DATE,"%D">">
<!--#endif-->
                                                <!--#if expr="<X-FC-FIELD `1000+$ABSDAYNUM` DATE,"%D">==<X-FC-FIELD 1401 DATE,"%D">"--><b><X-FC-FIELD `1000 +$ABSDAYNUM` DATE,"%#e"></b><!--#else--><X-FC-FIELD `1000 +$ABSDAYNUM` DATE,"%#e">
                                                <!--#endif-->
                                        </a>
                                <!--#else-->
                                        <!--#rem tapahtumia ei ole -->
                                        <X-FC-FIELD `1000 +$ABSDAYNUM` DATE,"%#e">
                                <!--#endif-->
                        </td>
                <!--#endif-->
                <!--#set var="ABSDAYNUM" expr="$ABSDAYNUM+1"-->
        <!--#endwhile -->
        </tr>
        <!--#if expr="$ABSDAYNUM >= 42 || <X-FC-FIELD `1000 + $ABSDAYNUM` DATE,"%m"> != <X-FC-FIELD 1400 DATE,"%m">"-->
                <!--#set var="DONE" value="1"-->
        <!--#endif-->
<!--#endwhile-->
</table>





















<!--#elif expr="<X-FC-URL-PARAMETER tyyppi LENGTH> > 0 && <X-FC-URL-PARAMETER tyyppi ESCAPED>==kuukausikalenteri"-->
<!--x158 big-->
<!--#set var="FORMID" value="158"-->


<!--set var="EMPTYDAYCOLOR" value="#CCCCCC" -->
<!--set var="TODAYCOLOR" value="#CCFFCC" -->
<!--set var="EVENTDAYCOLOR" value="#FFCCFF" -->
<!--set var="REGULARDAYCOLOR" value="#CCCCFF" -->
<!--#set var="TEMPLATES" value="sivusto2005" -->
<!--set var="HEADINGCOLOR" value="#BBBBDD" -->


<!--#if expr="<X-FC-URL-PARAMETER includedfromphp LENGTH> > 0"-->
<table class="otsikkorivi">
 <tr>
   <td class="otsikkosolu">
     <h2>
            <a href="<X-FC-URL-PARAMETER baseurl><X-FC-URL-PARAMETER kalenteri>/<X-FC-URL-PARAMETER kuukausi>/<X-FC-FIELD 1402 DATE,"%D">" class="headingtwolink">&laquo;</a>
            <img src="/Icons/spacer10x10.gif" alt="" width="10" height="10" border="0"/>
            <X-FC-FIELD 1400 DATE,"%B %Y">
            <img src="/Icons/spacer10x10.gif" alt="" width="10" height="10" border="0"/>
            <a href="<X-FC-URL-PARAMETER baseurl><X-FC-URL-PARAMETER kalenteri>/<X-FC-URL-PARAMETER kuukausi>/<X-FC-FIELD 1403 DATE,"%D">" class="headingtwolink">&raquo;</a>
          </h2>
   </td>
   <td class="nakymasolu">
     <span class="calendartoolbar">
       <a href="<X-FC-URL-PARAMETER baseurl><X-FC-URL-PARAMETER kalenteri>/<X-FC-URL-PARAMETER paiva>/<X-FC-FIELD 1400 DATE,"%D">"><img src="http://www.tietotori.fi/.templates/sivusto2005/d11185.png"></a>
          <a href="<X-FC-URL-PARAMETER baseurl><X-FC-URL-PARAMETER kalenteri>/<X-FC-URL-PARAMETER viikko>/<X-FC-FIELD 1400 DATE,"%D">"><img src="http://www.tietotori.fi/.templates/sivusto2005/d11184.png"></a>
       <a href="<X-FC-URL-PARAMETER baseurl><X-FC-URL-PARAMETER kalenteri>/<X-FC-URL-PARAMETER kuukausi>/<X-FC-FIELD 1400 DATE,"%D">"><img src="http://www.tietotori.fi/.templates/sivusto2005/d11182.png"></a>
     </span>
   </td>
  </tr>
</table>


<table class="calendar monthview">
 <tr>
       <th class="weeknr">V.</th>
                <!--#set var="WEEKDAY" value="-1"-->
                <!--#while expr="++$WEEKDAY < 7"-->
                        <th><X-FC-FIELD `1000 + $WEEKDAY` DATE,"%A"></th>
                <!--#endwhile-->
 </tr>
<!--#set var="ABSDAYNUM" value="0"-->
<!--#set var="DONE" value="0"-->
<!--#while expr="$DONE == 0"-->
        <tr><!--#set var="WEEKDAY" value="-1"-->
        <td class="weeknr" rowspan="2"><a href="<X-FC-URL-PARAMETER baseurl><X-FC-URL-PARAMETER kalenteri>/<X-FC-URL-PARAMETER viikko>/<X-FC-FIELD `1000 + $ABSDAYNUM` DATE,"%D">"><X-FC-FIELD `1000 + $ABSDAYNUM` DATE,"%#U"></a></td>
        <!--#rem tulosta pvm-solut-->
        <!--#while expr="++$WEEKDAY < 7"-->
                <!--#if expr="<X-FC-FIELD `1000 + $ABSDAYNUM` DATE,"%m"> != <X-FC-FIELD 1400 DATE, "%m">"-->
                        <!--#rem tulosta edellisen/seuraavan kuukauden pvmsolu -->
                        <!--#if expr="<X-FC-CALENDAR-ITEM $ABSDAYNUM NITEMS>"-->
                                <!--#rem linkillinen -->
                                <td class="day empty"><a href="<X-FC-URL-PARAMETER baseurl><X-FC-URL-PARAMETER kalenteri>/<X-FC-URL-PARAMETER paiva>/<X-FC-FIELD `1000 +$ABSDAYNUM` DATE,"%D">"><X-FC-FIELD `1000 +$ABSDAYNUM` DATE,"%#e"></a></td>
                        <!--#else-->
                                <!--#rem linkitön -->
                                <td class="day empty"><X-FC-FIELD `1000 +$ABSDAYNUM` DATE,"%#e"></td>
                        <!--#endif-->
                <!--#else-->
                        <!--#rem tulosta tavallinen pvmsolu -->
                        <!--#if expr="<X-FC-CALENDAR-ITEM $ABSDAYNUM NITEMS>"-->
                                <!--#rem linkillinen -->
                                <td class="day<!--#if expr="<X-FC-FIELD `1000+$ABSDAYNUM` DATE,"%D">==<X-FC-FIELD 1401 DATE,"%D">"--> today<!--#else--> regular<!--#endif-->"><a href="<X-FC-URL-PARAMETER baseurl><X-FC-URL-PARAMETER kalenteri>/<X-FC-URL-PARAMETER paiva>/<X-FC-FIELD `1000 +$ABSDAYNUM` DATE,"%Y%m%d">"><X-FC-FIELD `1000 +$ABSDAYNUM` DATE,"%#e"></a></td>
                        <!--#else-->
                                <!--#rem linkitön -->
                                <td class="day <!--#if expr="<X-FC-FIELD `1000+$ABSDAYNUM` DATE,"%D">==<X-FC-FIELD 1401 DATE,"%D">"-->today<!--#else-->regular<!--#endif-->"><X-FC-FIELD `1000 +$ABSDAYNUM` DATE,"%#e"></td>
                        <!--#endif-->
                <!--#endif-->
                <!--#set var="ABSDAYNUM" expr="$ABSDAYNUM+1"-->
        <!--#endwhile -->
        </tr>
        <!--#rem tulosta sisältösolut-->
        <!--#set var="ABSDAYNUM" expr="$ABSDAYNUM-7"-->
        <tr><!--#set var="WEEKDAY" value="-1"-->
        <!--#while expr="++$WEEKDAY < 7"-->
                                <!--#if expr="<X-FC-CALENDAR-ITEM $ABSDAYNUM NITEMS>"-->
                                        <td class="event<!--#if expr="<X-FC-FIELD `1000+$ABSDAYNUM` DATE,"%D">==<X-FC-FIELD 1401 DATE,"%D">"--> today<!--#else--> regular<!--#endif-->">
                                                <!--#set var="INDEX" expr="-1"-->
                                                <!--#while expr="++$INDEX < <X-FC-CALENDAR-ITEM `$ABSDAYNUM` NITEMS>"-->
                                                        <a href="<X-FC-URL-PARAMETER baseurl><X-FC-URL-PARAMETER kalenteri>/<X-FC-URL-PARAMETER paiva>/<X-FC-FIELD `1000 +$ABSDAYNUM` DATE,"%Y%m%d">">
                                                        <!--#if expr="<X-FC-CALENDAR-ITEM `$ABSDAYNUM`.`$INDEX` CONTINUED>"-->
                                                                <!--#rem tapahtuma jatkuu edelliseltä päivältä-->
                                                                (jatk.)
                                                        <!--#elif expr="<X-FC-CALENDAR-ITEM `$ABSDAYNUM`.`$INDEX` ALLDAYEVENT> == 0"-->
                                                                <X-FC-CALENDAR-ITEM `$ABSDAYNUM`.`$INDEX` START "%#H:%M">
                                                        <!--#endif-->
                                                                <X-FC-CALENDAR-ITEM `$ABSDAYNUM`.`$INDEX` COLUMN[Subject] STRING>
                                                        </a>
                                                        <!--#if expr="($INDEX + 1) < <X-FC-CALENDAR-ITEM `$ABSDAYNUM` NITEMS>"-->
                                                                <br />
                                                        <!--#endif-->
                                                <!--#endwhile-->
                                        </td>
                                <!--#else-->
                                        <!--#rem tapahtumia ei ole -->
                                        <td class="event empty<!--#if expr="<X-FC-FIELD `1000+$ABSDAYNUM` DATE,"%D">==<X-FC-FIELD 1401 DATE,"%D">"--> today<!--#endif-->">&nbsp;</td>
                                <!--#endif-->
                <!--#set var="ABSDAYNUM" expr="$ABSDAYNUM+1"-->
        <!--#endwhile -->
        </tr>


        <!--#if expr="$ABSDAYNUM >= 42 || <X-FC-FIELD `1000 + $ABSDAYNUM` DATE,"%m"> != <X-FC-FIELD 1400 DATE,"%m">"-->
                <!--#set var="DONE" value="1"-->
        <!--#endif-->
<!--#endwhile-->
 </tr>
</table>

<!--#else-->
<table class="otsikkorivi">
 <tr>
   <td class="otsikkosolu">
     <h2>
            <a href="?kalenteri=kuukausi&amp;pvm=<X-FC-FIELD 1402 DATE,"%D">">&laquo;</a>
            <img src="/Icons/spacer10x10.gif" alt="" width="10" height="10" border="0"/>
            <X-FC-FIELD 1400 DATE,"%B %Y">
            <img src="/Icons/spacer10x10.gif" alt="" width="10" height="10" border="0"/>
            <a href="?kalenteri=kuukausi&amp;pvm=<X-FC-FIELD 1403 DATE,"%D">">&raquo;</a>
          </h2>
   </td>
   <td class="nakymasolu">
     <span class="calendartoolbar">
       <a href="?kalenteri=paiva&amp;pvm=<X-FC-FIELD 1400 DATE,"%D">"><img src="/.templates/sivusto2005/d11185.png"></a>
          <a href="?kalenteri=viikko&amp;pvm=<X-FC-FIELD 1400 DATE,"%D">"><img src="/.templates/sivusto2005/d11184.png"></a>
       <a href="?kalenteri=kuukausi&amp;pvm=<X-FC-FIELD 1400 DATE,"%D">"><img src="/.templates/sivusto2005/d11182.png"></a>
     </span>
   </td>
  </tr>
</table>


<table class="calendar monthview">
 <tr>
       <th class="weeknr">V.</th>
                <!--#set var="WEEKDAY" value="-1"-->
                <!--#while expr="++$WEEKDAY < 7"-->
                        <th><X-FC-FIELD `1000 + $WEEKDAY` DATE,"%A"></th>
                <!--#endwhile-->
 </tr>
<!--#set var="ABSDAYNUM" value="0"-->
<!--#set var="DONE" value="0"-->
<!--#while expr="$DONE == 0"-->
        <tr><!--#set var="WEEKDAY" value="-1"-->
        <td class="weeknr" rowspan="2"><a href="?kalenteri=viikko&amp;pvm=<X-FC-FIELD `1000 + $ABSDAYNUM` DATE,"%D">"><X-FC-FIELD `1000 + $ABSDAYNUM` DATE,"%#U"></a></td>
        <!--#rem tulosta pvm-solut-->
        <!--#while expr="++$WEEKDAY < 7"-->
                <!--#if expr="<X-FC-FIELD `1000 + $ABSDAYNUM` DATE,"%m"> != <X-FC-FIELD 1400 DATE, "%m">"-->
                        <!--#rem tulosta edellisen/seuraavan kuukauden pvmsolu -->
                        <!--#if expr="<X-FC-CALENDAR-ITEM $ABSDAYNUM NITEMS>"-->
                                <!--#rem linkillinen -->
                                <td class="day empty"><a href="?kalenteri=paiva&amp;pvm=<X-FC-FIELD `1000 +$ABSDAYNUM` DATE,"%D">"><X-FC-FIELD `1000 +$ABSDAYNUM` DATE,"%#e"></a></td>
                        <!--#else-->
                                <!--#rem linkitön -->
                                <td class="day empty"><X-FC-FIELD `1000 +$ABSDAYNUM` DATE,"%#e"></td>
                        <!--#endif-->
                <!--#else-->
                        <!--#rem tulosta tavallinen pvmsolu -->
                        <!--#if expr="<X-FC-CALENDAR-ITEM $ABSDAYNUM NITEMS>"-->
                                <!--#rem linkillinen -->
                                <td class="day<!--#if expr="<X-FC-FIELD `1000+$ABSDAYNUM` DATE,"%D">==<X-FC-FIELD 1401 DATE,"%D">"--> today<!--#else--> regular<!--#endif-->"><a href="?kalenteri=paiva&amp;pvm=<X-FC-FIELD `1000 +$ABSDAYNUM` DATE,"%Y%m%d">"><X-FC-FIELD `1000 +$ABSDAYNUM` DATE,"%#e"></a></td>
                        <!--#else-->
                                <!--#rem linkitön -->
                                <td class="day <!--#if expr="<X-FC-FIELD `1000+$ABSDAYNUM` DATE,"%D">==<X-FC-FIELD 1401 DATE,"%D">"-->today<!--#else-->regular<!--#endif-->"><X-FC-FIELD `1000 +$ABSDAYNUM` DATE,"%#e"></td>
                        <!--#endif-->
                <!--#endif-->
                <!--#set var="ABSDAYNUM" expr="$ABSDAYNUM+1"-->
        <!--#endwhile -->
        </tr>
        <!--#rem tulosta sisältösolut-->
        <!--#set var="ABSDAYNUM" expr="$ABSDAYNUM-7"-->
        <tr><!--#set var="WEEKDAY" value="-1"-->
        <!--#while expr="++$WEEKDAY < 7"-->
                                <!--#if expr="<X-FC-CALENDAR-ITEM $ABSDAYNUM NITEMS>"-->
                                        <td class="event<!--#if expr="<X-FC-FIELD `1000+$ABSDAYNUM` DATE,"%D">==<X-FC-FIELD 1401 DATE,"%D">"--> today<!--#else--> regular<!--#endif-->">
                                                <!--#set var="INDEX" expr="-1"-->
                                                <!--#while expr="++$INDEX < <X-FC-CALENDAR-ITEM `$ABSDAYNUM` NITEMS>"-->
                                                        <a href="?kalenteri=paiva&amp;pvm=<X-FC-FIELD `1000 +$ABSDAYNUM` DATE,"%Y%m%d">">
                                                        <!--#if expr="<X-FC-CALENDAR-ITEM `$ABSDAYNUM`.`$INDEX` CONTINUED>"-->
                                                                <!--#rem tapahtuma jatkuu edelliseltä päivältä-->
                                                                (jatk.)
                                                        <!--#elif expr="<X-FC-CALENDAR-ITEM `$ABSDAYNUM`.`$INDEX` ALLDAYEVENT> == 0"-->
                                                                <X-FC-CALENDAR-ITEM `$ABSDAYNUM`.`$INDEX` START "%#H:%M">
                                                        <!--#endif-->
                                                                <X-FC-CALENDAR-ITEM `$ABSDAYNUM`.`$INDEX` COLUMN[Subject] STRING>
                                                        </a>
                                                        <!--#if expr="($INDEX + 1) < <X-FC-CALENDAR-ITEM `$ABSDAYNUM` NITEMS>"-->
                                                                <br />
                                                        <!--#endif-->
                                                <!--#endwhile-->
                                        </td>
                                <!--#else-->
                                        <!--#rem tapahtumia ei ole -->
                                        <td class="event empty<!--#if expr="<X-FC-FIELD `1000+$ABSDAYNUM` DATE,"%D">==<X-FC-FIELD 1401 DATE,"%D">"--> today<!--#endif-->">&nbsp;</td>
                                <!--#endif-->
                <!--#set var="ABSDAYNUM" expr="$ABSDAYNUM+1"-->
        <!--#endwhile -->
        </tr>


        <!--#if expr="$ABSDAYNUM >= 42 || <X-FC-FIELD `1000 + $ABSDAYNUM` DATE,"%m"> != <X-FC-FIELD 1400 DATE,"%m">"-->
                <!--#set var="DONE" value="1"-->
        <!--#endif-->
<!--#endwhile-->
 </tr>
</table>
<!--#endif-->
<!--#endif-->