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_official / html / modules / groups / pntemplates [ view in CVS ]

Date Directory [filter] File(s) [view] Author [filter]
07 Aug 2002 04:01:44postnuke_official/html/modules/groups/pntemplatesuser-display.pnd,NONE,1.1st.ego
 template for user display function. c&p from Example module

Update of /home/cvsroot/postnuke_official/html/modules/groups/pntemplates
In directory ns7.hostnuke.net:/tmp/cvs-serv24853/html/modules/groups/pntemplates

Added Files:
	user-display.pnd 
Log Message:
template for user display function. c&p from Example module


--- NEW FILE: user-display.pnd ---

<!-- common user menu for this module - remove link to the current function -->

<table border="0" width="100%">

    <!-- the variables used in this menu come from template_user_menu() -->

    <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-menulabel_view; </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 />

<!-- the specific template for the current function comes here -->

<!-- some status given by the function using this template -->

<pnt:if condition="!empty($status)">
    <strong>&pnt-var-status;</strong>
</pnt:if>

<table border="1" cellpadding="5" cellspacing="0">
    <tr>
        <th> &pnt-var-someheader; </th>
    </tr>

    <!-- Loop over all the items given by the function. Since $data['items']
         is preset to an empty array, we don't need to use an if/else
         structure like we do in user-display.pnd -->
    <!-- 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;



Directory filter : [ all ] / postnuke_official / html / modules / groups / pntemplates [ 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