Xaraya / Postnuke CVS Notices - Message

Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites

View Statistics - Next Notice - Previous Notice

Directory filter : [ all ] / postnuke_modules / postcalendar / pntemplates / default / views / month [ view in CVS ]

Date Directory [filter] File(s) [view] Author [filter]
07 Sep 2002 15:42:03postnuke_modules/postcalendar/pntemplates/default/views/monthdefault.html,NONE,1.1 default_view.html,1.13,NONERoger Raymond
 template cleanup

Update of /home/cvsroot/postnuke_modules/postcalendar/pntemplates/default/views/month
In directory ns7.hostnuke.net:/tmp/cvs-serv30038/pntemplates/default/views/month

Added Files:
	default.html 
Removed Files:
	default_view.html 
Log Message:
template cleanup


--- NEW FILE: default.html ---
[-*Smarty*-]
[-config_load file="default.conf" section="MonthView"-]

<style>
div.highlightNormal:hover {
    background-color:lightblue;
}
div.highlightCurrentDay:hover {
    background-color:lightblue; 
}
td.calDay:hover {
    background-color:#f6f6f6; 
}
td.calDayCurrent:hover {
    background-color:#f6c606; 
}
</style>
[-pc_date_select day="on" view="on" year="on" month="on" form="on"-]
<!-- main navigation -->
<table border="0" cellpadding="1" cellspacing="0" width="100%" bgcolor="[-$bgcolor2-]"><tr><td>
    <table border="0" cellpadding="5" cellspacing="0" width="100%" bgcolor="[-$bgcolor1-]">
        <tr>
            <td width="10" align="left" valign="top">
                <center><img src="modules/[-$ModuleDirectory-]/pnimages/admin.gif"></center>
            </td>
            <td align="center" valign="middle">
                <font class="pn-logo">[-$ModuleName-]</font>
                <p style="color: [-$bgcolor2-]">
                [ <a href="[-pc_url action="day"-]">[-$DayView-]</a> ]
                [ <a href="[-pc_url action="week"-]">[-$WeekView-]</a> ]
                [ <a href="[-pc_url action="month"-]">[-$MonthView-]</a> ]
                [ <a href="[-pc_url action="year"-]">[-$YearView-]</a> ]
                [ <a href="[-pc_url action="submit"-]">[-$Submit-]</a> ]
                [ <a href="[-pc_url action="search"-]">[-$Search-]</a> ]
                </p>
            </td>
            <td align="center" valign="top">
                Legend:<br />
                <table border="0" cellpadding="4" cellspacing="2">
                    <tr>
                    [-foreach name=categories from=$category item=cat-]
                        <td bgcolor="[-$cat.color-]">
                           <font color="#000000">[-$cat.name-]</font>
                        </td>
                        [-if ($smarty.foreach.categories.iteration + 1) % 3 eq 1-]
                        </tr><tr>
                        [-/if-]
                    [-/foreach-]
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</td></tr></table>

<!-- month navigation tables -->
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="[-#TableBorderColor#-]"><tr><td>
    <table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="[-#TableBackgroundColor#-]">
        <tr>
            <td class="pn-title" width="25%" align="left" valign="middle"><a href="[-$PrevMonthURL-]" style="text-decoration:none;">&lt;&lt;</a></td>
            <td class="pn-title" width="50%" align="center" valign="middle">[-$CurrentMonth-]</td>
            <td class="pn-title" width="25%" align="right" valign="middle"><a href="[-$NextMonthURL-]" style="text-decoration:none;">&gt;&gt;</a></td>
        </tr>
    </table>
</td></tr></table>

<!-- event data display tables -->
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="[-#TableBorderColor#-]"><tr><td>  
    <table width="100%" border="0" cellpadding="0" cellspacing="1">
        <tr>
            [-foreach from=$DayNames item=day-]
            <td align="center" valign="middle"><font color="[-#DayNameColor#-]">[-$day-]</font></td>
            [-/foreach-]
        </tr>
        <tr>
        [-foreach name=dates item=events key=current_date from=$EventsByDate-]
            [-assign var="dayname" value=$current_date|date_format:"%w"-]
            [-assign var="day" value=$current_date|date_format:"%d"|string_format:"%1d"-]
            [-assign var="month" value=$current_date|date_format:"%m"|string_format:"%1d"-]
            [-assign var="year" value=$current_date|date_format:"%Y"|string_format:"%4d"-]
        
        [-if $createrow eq 1-]
        <tr>
        [-assign var="createrow" value="0"-]
        [-/if-]
        [-if $current_date < $month_view_start || $current_date > $month_view_end-]
            <td width="[-math equation="100/7" format="%02d"-]%" height="50" align="left" valign="top" bgcolor="[-#PrevMonthCellColor#-]">
                <table width="100%" border="0" cellpadding="2" cellspacing="0"><tr>
                <td nowrap align="left" valign="top">
                <a href="[-pc_event_url view=day date=$current_date-]" 
                   style="text-decoration:none;">[-$current_date|date_format:"%d"-]</a>
            [-if $smarty.foreach.dates.iteration eq 1-]
                [<a href="[-pc_event_url view=week date=$current_date-]" style="text-decoration:none;">week</a>]
            [-/if-]
                </td></tr></table>
            </td>
        [-else-]
            [-if $current_date eq $today_date-]
            <td width="[-math equation="100/7" format="%02d"-]%" height="50" align="left" valign="top" bgcolor="[-#CurrentDayHighlightColor#-]" class="calDayCurrent">
            [-else-]
            <td width="[-math equation="100/7" format="%02d"-]%" height="50" align="left" valign="top" bgcolor="[-#CurrentMonthCellColor#-]" class="calDay">
            [-/if-]
                <table width="100%" border="0" cellpadding="2" cellspacing="0"><tr>
                <td nowrap align="left" valign="top">
                    <a href="[-pc_event_url view=day date=$current_date-]"
                       style="text-decoration:none;"><font color="#CC6600"><b>[-$current_date|date_format:"%d"-]</b></font></a>
                [-if $smarty.foreach.dates.iteration % 7 eq 1-]
                    [<a href="[-pc_event_url view=week date=$current_date-]" style="text-decoration:none;">week</a>]
                [-/if-]
                </td>
                <td width="100%" align="right" valign="top">
                    <a href="[-pc_event_url view=submit date=$current_date-]" style="text-decoration:none;"><img 
                     src="[-$ImagePath-]new.gif" width="10" height="10" border="0" /></a>
                </td>
                </tr></table>
                [-foreach name=eventloop key=id item=event from=$events-]
                    <div style="margin: 2px; padding: 2px; border:1px solid [-$event.catcolor-];" 
                    [-strip-]
                        [-if $current_date eq $today_date-]
                           class="highlightCurrentDay"
                        [-else-]
                           class="highlightNormal"
                        [-/if-]
                        >
                            [-if $EventsOpenInNewWindow eq true-]
                            <a href="javascript:opencal([-$event.eid-]);"
                            [-else-]
                            <a href="[-pc_event_url view=details eid=$event.eid-]"
                            [-/if-]
                    [-/strip-]
                    
                            [-if $usepopups eq 1-]
                            [-strip-]   
                            onmouseover="return overlib('[-$event.startTime|date_format:"%I:%M"-]<br />
                                [-if $event.alldayevent eq 1-]
                                    duration: allday<br /><br />
                                [-else-]
                                    duration: [-$event.duration_hours-] hours [-$event.duration_minutes-] minutes<br /><br />
                                [-/if-]
                            [-$event.title|escape:"quotes"-]<br />[-$event.hometext|escape:"quotes"-]');"
                            [-/strip-]   
                            onmouseout="return nd();"
                            [-/if-]      
                           >[-$event.title-]</a>
                    
                        </div>
                [-/foreach-]
            </td>
        [-/if-]
        [-if ($smarty.foreach.dates.iteration + 1) % 7 eq 1-]
            </tr><!-- new row -->
            [-assign var="createrow" value="1"-]
        [-/if-]
        [-/foreach-]
        [-if $createrow != 1-]
        </tr>
        [-/if-]
    </table>
</td></tr></table>

--- default_view.html DELETED ---


Directory filter : [ all ] / postnuke_modules / postcalendar / pntemplates / default / views / month [ view in CVS ]

View Statistics - Next Notice - Previous Notice


Visit Developer Site - Browse CVS Repository Syndicate via backend.rss
(max. once per hour please)
Powered by CVSNotice 0.1.3