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 NoticeDirectory filter : [ all ] / postnuke_official / html / modules / template / pntemplates [ view in CVS ]
| Date | Directory [filter] | File(s) [view] | Author [filter] |
| 01 Aug 2002 18:23:56 | postnuke_official/html/modules/template/pntemplates | user-display.pnd,NONE,1.1 user-main.pnd,NONE,1.1 user-view.pnd,NONE,1.1 | Mike |
| add user templates for template module | |||
Update of /home/cvsroot/postnuke_official/html/modules/template/pntemplates
In directory ns7.hostnuke.net:/tmp/cvs-serv30371
Added Files:
user-display.pnd user-main.pnd user-view.pnd
Log Message:
add user templates for template module
--- NEW FILE: user-display.pnd ---
<!-- common menu for this module - remove the link to the current function -->
<table border="0" width="100%">
<!-- the variables used in the menu come from template_usermenu() -->
<tr><th align="center">&pnt-var-menutitle;</th></tr>
<tr><td>
<table border="0" width="100%"><tr align="center" valign="middle">
<!-- a link to a particular menu item -->
<td><a href="&pnt-var-menulinkview;">&pnt-var-menulabelview;</a></td>
<!-- more menu items come here... -->
<!-- Note : you can also specify simple links directly with blocklayout
template tags : e.g. &pnt-modurl-template-user-view; -->
</tr></table>
</td></tr>
</table>
<br />
<!-- some status given by the function using this template -->
<strong>&pnt-var-status;</strong>
<!-- some item variables given by the function using this template -->
<table border="0" cellspacing="0" cellpadding="5">
<tr>
<td align="right">&pnt-var-namelabel; : </td>
<!-- display depends on another variable specified by the function -->
<pnt:if condition="!empty($bold)">
<td><strong>&pnt-var-namevalue;</strong></td>
<pnt:else>
<td>&pnt-var-namevalue;</td>
</pnt:else>
</pnt:if>
</tr>
<tr>
<td align="right">&pnt-var-numberlabel; : </td>
<td>&pnt-var-numbervalue;</td>
</tr>
</table>
<br />
<!-- add the output from display hooks here -->
&pnt-var-hookoutput;
--- NEW FILE: user-main.pnd ---
<!-- common menu for this module - remove the link to the current function -->
<table border="0" width="100%">
<!-- the variables used in the menu come from template_usermenu() -->
<tr><th align="center">&pnt-var-menutitle;</th></tr>
<tr><td>
<table border="0" width="100%"><tr align="center" valign="middle">
<!-- a link to a particular menu item -->
<td><a href="&pnt-var-menulinkview;">&pnt-var-menulabelview;</a></td>
<!-- more menu items come here... -->
<!-- Note : you can also specify simple links directly with blocklayout
template tags : e.g. &pnt-modurl-template-user-view; -->
</tr></table>
</td></tr>
</table>
<br />
<!-- some variable filled in by the function using this template -->
<center><strong> &pnt-var-welcome; </strong></center>
--- NEW FILE: user-view.pnd ---
<!-- common menu for this module - remove the link to the current function -->
<table border="0" width="100%">
<!-- the variables used in the menu come from template_usermenu() -->
<tr><th align="center">&pnt-var-menutitle;</th></tr>
<tr><td>
<table border="0" width="100%"><tr align="center" valign="middle">
<!-- since this is the menu item we're on, we only show the label -->
<td>&pnt-var-menulabelview;</td>
<!-- more menu items come here... -->
<!-- Note : you can also specify simple links directly with blocklayout
template tags : e.g. &pnt-modurl-template-user-view; -->
</tr></table>
</td></tr>
</table>
<br />
<!-- some status given by the function using this template -->
<strong>&pnt-var-status;</strong>
<table border="0" width="100%">
<!-- loop over all the items given by the function -->
<!-- Note : when you specify a prefix="item", the individual variable
names ("name" and "link" in this case) are renamed to "item_..."
("item_name" and "item_link" here). This makes is easier for
template designer, e.g. when you have several loops with different
variables in the same template -->
<pnt:loop name="items" prefix="item">
<tr align="center"><td>
<!-- we only show a link if the item link variable is not empty -->
<pnt:if condition="empty($item_link)">
&pnt-var-item_name;
<pnt:else>
<a href="&pnt-var-item_link;">&pnt-var-item_name;</a>
</pnt:else>
</pnt:if>
</td></tr>
</pnt:loop>
</table>
<br />
<!-- add the pager here -->
&pnt-var-pager;
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 |