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 / example / pntemplates [ view in CVS ]

Date Directory [filter] File(s) [view] Author [filter]
07 Aug 2002 01:31:43postnuke_official/html/modules/example/pntemplatesadmin-config.pnd,NONE,1.1 admin-delete.pnd,NONE,1.1 admin-main.pnd,NONE,1.1 admin-menu.pnd,NONE,1.1 admin-modify.pnd,NONE,1.1 admin-modifyconfig.pnd,NONE,1.1 admin-new.pnd,NONE,1.1 admin-view.pnd,NONE,1.1 user-display.pnd,NONE,1.1 user-main.pnd,NONE,1.1 uMike
 "new" example module

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

Added Files:
	admin-config.pnd admin-delete.pnd admin-main.pnd 
	admin-menu.pnd admin-modify.pnd admin-modifyconfig.pnd 
	admin-new.pnd admin-view.pnd user-display.pnd user-main.pnd 
	user-menu.pnd user-view.pnd 
Log Message:
"new" example module


--- NEW FILE: admin-config.pnd ---
<table cellspacing="0" cellpadding="1" width="100%" border="0">
</table>
--- NEW FILE: admin-delete.pnd ---

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

<table border="0" width="100%" cellspacing="1" cellpadding="8">

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

    <tr>
        <th align="center">&pnt-var-menutitle;</th>
    </tr>
    <tr><td>
        <table border="0" width="100%" cellspacing="1" cellpadding="8">
        <tr align="center" valign="middle">

        <!-- links to particular menu items -->

        <!-- Simple URLs can be specified directly in the template -->

        <td><a href="&pnt-modurl-example-admin-new;">&pnt-var-menulabel_new;</a></td>
        <td><a href="&pnt-modurl-example-admin-view;">&pnt-var-menulabel_view;</a></td>
        <td><a href="&pnt-modurl-example-admin-modifyconfig;">&pnt-var-menulabel_config;</a></td>

        <!-- more menu items come here... -->

        <!-- Note : you can also specify the links in example_admin_menu()
             and pass them on as variables : e.g. &pnt-var-menulink_view; -->
        </tr>
        </table>
    </td></tr>
</table>
<br />

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


<center>&pnt-var-confirmtext;</center><br />

<center>
<form method="post" action="&pnt-modurl-example-admin-delete;">
    <input type="hidden" name="authid" value="&pnt-var-authid;" />
    <input type="hidden" name="confirm" value="true" />
    <input type="hidden" name="exid" value="&pnt-var-exid;" />

    <table border="0" width="300">
        <tr>
            <td>
                &pnt-var-itemid;:
            </td>
            <td>
                &pnt-var-exid;
            </td>
        </tr>
        <tr>
            <td>
                &pnt-var-namelabel;:
            </td>
            <td>
                &pnt-var-namevalue;
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center"><br />
                    <input type="submit" value="&pnt-var-confirmbutton;" align="middle" />
            </td>
        </tr>
    </table>
</form>
</center>

--- NEW FILE: admin-main.pnd ---

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

<table border="0" width="100%" cellspacing="1" cellpadding="8">

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

    <tr>
        <th align="center">&pnt-var-menutitle;</th>
    </tr>
    <tr><td>
        <table border="0" width="100%" cellspacing="1" cellpadding="8">
        <tr align="center" valign="middle">

        <!-- links to particular menu items -->

        <!-- Simple URLs can be specified directly in the template -->

        <td><a href="&pnt-modurl-example-admin-new;">&pnt-var-menulabel_new;</a></td>
        <td><a href="&pnt-modurl-example-admin-view;">&pnt-var-menulabel_view;</a></td>
        <td><a href="&pnt-modurl-example-admin-modifyconfig;">&pnt-var-menulabel_config;</a></td>

        <!-- more menu items come here... -->

        <!-- Note : you can also specify the links in example_admin_menu()
             and pass them on as variables : e.g. &pnt-var-menulink_view; -->
        </tr>
        </table>
    </td></tr>
</table>
<br />

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

<!-- some variable filled in by the admin function using this template -->

<center><strong> &pnt-var-welcome; </strong></center>


--- NEW FILE: admin-menu.pnd ---

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

<table border="0" width="100%" cellspacing="1" cellpadding="8">

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

    <tr>
        <th align="center">&pnt-var-menutitle;</th>
    </tr>
    <tr><td>
        <table border="0" width="100%" cellspacing="1" cellpadding="8">
        <tr align="center" valign="middle">

        <!-- links to particular menu items -->

        <!-- Simple URLs can be specified directly in the template -->

        <td><a href="&pnt-modurl-example-admin-new;">&pnt-var-menulabel_new;</a></td>
        <td><a href="&pnt-modurl-example-admin-view;">&pnt-var-menulabel_view;</a></td>
        <td><a href="&pnt-modurl-example-admin-modifyconfig;">&pnt-var-menulabel_config;</a></td>

        <!-- more menu items come here... -->

        <!-- Note : you can also specify the links in example_admin_menu()
             and pass them on as variables : e.g. &pnt-var-menulink_view; -->
        </tr>
        </table>
    </td></tr>
</table>
<br />

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


--- NEW FILE: admin-modify.pnd ---
<table width="100%" border="0" cellspacing="1" cellpadding="8">
    <tr>
        <th colspan="3" align="center">Example Administration</th>
    </tr>
    <tr>
<!-- TODO : waiting for pnt:ml* stuff to work again -->
        <td><a href="&pnt-modurl-example-admin-new;"><?php echo _NEWEXAMPLE ?></a></td>
        <td><a href="&pnt-modurl-example-admin-view;"><?php echo _VIEWEXAMPLE ?></a></td>
        <td><a href="&pnt-modurl-example-admin-modifyconfig;"><?php echo _EDITEXAMPLECONFIG ?></a></td>
    </tr>
</table>
<br />

<table width="100%" border="0" cellspacing="1" cellpadding="8">
<!--
    // Start form - note the use of pnModURL() to create the recipient URL of
    // this form.  All URLs should be generated through pnModURL() to ensure
    // compatibility with future versions of PostNuke
-->
<form method="post" action="&pnt-modurl-example-admin-update;">
<!--
    // Add an authorisation ID - this adds a hidden field in the form that
    // contains an authorisation ID.  The authorisation ID is very important in
    // preventing certain attacks on the website
-->
    <input type="hidden" name="authid" value="&pnt-var-authid;" />
    <input type="hidden" name="exid" value="&pnt-var-item.exid;" />

<tr><td>&pnt-var-namelabel;</td>
<td><input type="text" name="name" size=32 maxlength=32 value="&pnt-var-item.name;"></td></tr>

<tr><td>&pnt-var-numberlabel;</td>
<td><input type="text" name="number" size=5 maxlength=5 value="&pnt-var-item.number;"></td></tr>

<tr><td colspan="2" align="center">
    <input type="submit" value="&pnt-var-updatebutton;"></td></tr>
</form>

</table>
<br />


--- NEW FILE: admin-modifyconfig.pnd ---

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

<table border="0" width="100%" cellspacing="1" cellpadding="8">

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

    <tr>
        <th align="center">&pnt-var-menutitle;</th>
    </tr>
    <tr><td>
        <table border="0" width="100%" cellspacing="1" cellpadding="8">
        <tr align="center" valign="middle">

        <!-- links to particular menu items -->

        <!-- Simple URLs can be specified directly in the template -->

        <td><a href="&pnt-modurl-example-admin-new;">&pnt-var-menulabel_new;</a></td>
        <td><a href="&pnt-modurl-example-admin-view;">&pnt-var-menulabel_view;</a></td>
        <td> <strong>&pnt-var-menulabel_config;</strong> </td>

        <!-- more menu items come here... -->

        <!-- Note : you can also specify the links in example_admin_menu()
             and pass them on as variables : e.g. &pnt-var-menulink_view; -->
        </tr>
        </table>
    </td></tr>
</table>
<br />

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

<table width="100%" border="0" cellspacing="1" cellpadding="8">
<!--
    // Start form - note the use of pnModURL() to create the recipient URL of
    // this form.  All URLs should be generated through pnModURL() to ensure
    // compatibility with future versions of PostNuke
-->
<form method="post" action="&pnt-modurl-example-admin-updateconfig;">
<!--
    // Add an authorisation ID - this adds a hidden field in the form that
    // contains an authorisation ID.  The authorisation ID is very important in
    // preventing certain attacks on the website
-->
    <input type="hidden" name="authid" value="&pnt-var-authid;" />

<tr><td>&pnt-var-boldlabel;</td>
<td><input type="checkbox" name="bold" value="1" &pnt-var-boldchecked;></td></tr>

<tr><td>&pnt-var-itemslabel;</td>
<td><input type="text" name="itemsperpage" size=3 maxlength=3 value="&pnt-var-itemsvalue;"></td></tr>

<tr><td>&pnt-var-shorturlslabel;</td>
<td><input type="checkbox" name="shorturls" value="1" &pnt-var-shorturlschecked;></td></tr>

<tr><td colspan="2" align="center">
    <input type="submit" value="&pnt-var-updatebutton;"></td></tr>
</form>

</table>
<br />
 

--- NEW FILE: admin-new.pnd ---

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

<table border="0" width="100%" cellspacing="1" cellpadding="8">

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

    <tr>
        <th align="center">&pnt-var-menutitle;</th>
    </tr>
    <tr><td>
        <table border="0" width="100%" cellspacing="1" cellpadding="8">
        <tr align="center" valign="middle">

        <!-- links to particular menu items -->

        <!-- Simple URLs can be specified directly in the template -->

        <td> <strong>&pnt-var-menulabel_new;</strong> </td>
        <td><a href="&pnt-modurl-example-admin-view;">&pnt-var-menulabel_view;</a></td>
        <td><a href="&pnt-modurl-example-admin-modifyconfig;">&pnt-var-menulabel_config;</a></td>

        <!-- more menu items come here... -->

        <!-- Note : you can also specify the links in example_admin_menu()
             and pass them on as variables : e.g. &pnt-var-menulink_view; -->
        </tr>
        </table>
    </td></tr>
</table>
<br />

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

<table width="100%" border="0" cellspacing="1" cellpadding="8">
<!--
    // Start form - note the use of pnModURL() to create the recipient URL of
    // this form.  All URLs should be generated through pnModURL() to ensure
    // compatibility with future versions of PostNuke
-->
<form method="post" action="&pnt-modurl-example-admin-create;">
<!--
    // Add an authorisation ID - this adds a hidden field in the form that
    // contains an authorisation ID.  The authorisation ID is very important in
    // preventing certain attacks on the website
-->
    <input type="hidden" name="authid" value="&pnt-var-authid;" />

<tr><td>&pnt-var-namelabel;</td>
<td><input type="text" name="name" size=32 maxlength=32></td></tr>

<tr><td>&pnt-var-numberlabel;</td>
<td><input type="text" name="number" size=5 maxlength=5></td></tr>

<tr><td colspan="2" align="center">
    <input type="submit" value="&pnt-var-addbutton;"></td></tr>
</form>

</table>
<br />


--- NEW FILE: admin-view.pnd ---

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

<table border="0" width="100%" cellspacing="1" cellpadding="8">

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

    <tr>
        <th align="center">&pnt-var-menutitle;</th>
    </tr>
    <tr><td>
        <table border="0" width="100%" cellspacing="1" cellpadding="8">
        <tr align="center" valign="middle">

        <!-- links to particular menu items -->

        <!-- Simple URLs can be specified directly in the template -->

        <td><a href="&pnt-modurl-example-admin-new;">&pnt-var-menulabel_new;</a></td>

        <!-- Note : we remove the link to this admin function here -->

        <td> <strong>&pnt-var-menulabel_view;</strong> </td>
        <td><a href="&pnt-modurl-example-admin-modifyconfig;">&pnt-var-menulabel_config;</a></td>

        <!-- more menu items come here... -->

        <!-- Note : you can also specify the links in example_admin_menu()
             and pass them on as variables : e.g. &pnt-var-menulink_view; -->
        </tr>
        </table>
    </td></tr>
</table>
<br />

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

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

<strong>&pnt-var-status;</strong>

<table width="100%" border="1" cellspacing="0" cellpadding="4">
    <tr>
        <th>&pnt-var-namelabel;</th>
        <th>&pnt-var-numberlabel;</th>
        <th>&pnt-var-optionslabel;</th>
    </tr>
    <pnt:loop name="items">
    <tr>
        <td>&pnt-var-name;</td>
        <td>&pnt-var-number;</td>
        <td>
           <pnt:if condition="empty($editurl)">
               &pnt-var-edittitle;
               <pnt:else>
                   <a href="&pnt-var-editurl;">&pnt-var-edittitle;</a>
               </pnt:else>
           </pnt:if>
           |
           <pnt:if condition="empty($deleteurl)">
               &pnt-var-deletetitle;
               <pnt:else>
                   <a href="&pnt-var-deleteurl;">&pnt-var-deletetitle;</a>
               </pnt:else>
           </pnt:if>
        </td>
    </tr>
    </pnt:loop>
</table>
<br />

<!-- add the pager here -->
&pnt-var-pager;


--- 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 example_user_menu() -->

    <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-menulink_view;">&pnt-var-menulabel_view;</a></td>

        <!-- more menu items come here... -->

        <!-- Note : you can also specify simple links directly with blocklayout
             template tags : e.g. &pnt-modurl-example-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 -->

<!-- Note : we use an if/else structure here, either to show a status *or*
     to show the details of a particular item -->

<pnt:if condition="!empty($status)">
    <strong>&pnt-var-status;</strong>
<pnt:else>
<!-- some item variables given by the function using this template -->

<table border="0" cellspacing="0" cellpadding="5">
    <tr>
        <td align="right">&pnt-var-name_label; : </td>

        <!-- display depends on another variable specified by the function -->

        <pnt:if condition="!empty($is_bold)">
            <td><strong>&pnt-var-name_value;</strong> (in bold now)</td>
            <pnt:else>
                <td>&pnt-var-name_value; (not in bold now)</td>
            </pnt:else>
        </pnt:if>
    </tr>
    <tr>
        <td align="right">&pnt-var-number_label; : </td>
        <td>&pnt-var-number_value;</td>
    </tr>
</table>
<br />

<!-- add the output from display hooks here -->
&pnt-var-hookoutput;

</pnt:else>
</pnt:if>


--- NEW FILE: user-main.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 example_user_menu() -->

    <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-menulink_view;">&pnt-var-menulabel_view;</a></td>

        <!-- more menu items come here... -->

        <!-- Note : you can also specify simple links directly with blocklayout
             template tags : e.g. &pnt-modurl-example-user-view; -->
        </tr></table>
    </td></tr>
</table>
<br />

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

<!-- some variable filled in by the function using this template -->

<center><strong> &pnt-var-welcome; </strong></center>


--- NEW FILE: user-menu.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 example_user_menu() -->

    <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-menulink_view;">&pnt-var-menulabel_view;</a></td>

        <!-- more menu items come here... -->

        <!-- Note : you can also specify simple links directly with blocklayout
             template tags : e.g. &pnt-modurl-example-user-view; -->
        </tr></table>
    </td></tr>
</table>
<br />

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


--- NEW FILE: user-view.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 example_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-example-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 / example / 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