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

Date Directory [filter] File(s) [view] Author [filter]
02 Aug 2002 22:10:37postnuke_official/html/modules/template/pntemplatesadmin-delete.pnd,1.2,1.3 admin-main.pnd,1.1,1.2 admin-menu.pnd,1.1,1.2 admin-modifyconfig.pnd,1.3,1.4 admin-new.pnd,1.3,1.4 admin-view.pnd,1.4,1.5 user-display.pnd,1.2,1.3 user-view.pnd,1.2,1.3Mike
 template changes that go with coding changes

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

Modified Files:
	admin-delete.pnd admin-main.pnd admin-menu.pnd 
	admin-modifyconfig.pnd admin-new.pnd admin-view.pnd 
	user-display.pnd user-view.pnd 
Log Message:
template changes that go with coding changes


Index: admin-delete.pnd
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/template/pntemplates/admin-delete.pnd,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** admin-delete.pnd	8 Jul 2002 07:08:22 -0000	1.2
--- admin-delete.pnd	2 Aug 2002 22:10:35 -0000	1.3
***************
*** 1,21 ****
- <table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="pn-color"><tr><td>
-     <table width="100%" border="0" cellspacing="1" cellpadding="8" bgcolor="pn-color"><tr><td>
  
!          //DRACOS: this might be a widget. 
!             // Add confirmation to output.  Note that this uses a pnHTML helper
!         // function to produce the requested confirmation in a standard
!         // fashion.  This not only cuts down on code within the module but
!         // allows it to be altered in future without the module developer
!         // having to worry about it
!         $output->ConfirmAction(_CONFIRMTEMPLATEDELETE,
!                                pnModURL('template',
!                                         'admin',
!                                         'delete'),
!                                _CANCELTEMPLATEDELETE,
!                                pnModURL('template',
!                                         'admin',
!                                         'view'),
!                                array('tid' => $tid));
  
!     </td></tr></table>
! </td></tr></table><br />
\ No newline at end of file
--- 1,68 ----
  
! <!-- 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 template_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-template-admin-new;">&pnt-var-menulabel_new;</a></td>
!         <td><a href="&pnt-modurl-template-admin-view;">&pnt-var-menulabel_view;</a></td>
!         <td><a href="&pnt-modurl-template-admin-modifyconfig;">&pnt-var-menulabel_config;</a></td>
! 
!         <!-- more menu items come here... -->
! 
!         <!-- Note : you can also specify the links in template_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-template-admin-delete;">
!     <input type="hidden" name="authid" value="&pnt-var-authid;" />
!     <input type="hidden" name="confirm" value="true" />
!     <input type="hidden" name="tid" value="&pnt-var-tid;" />
! 
!     <table border="0" width="300">
!         <tr>
!             <td>
!                 &pnt-var-itemid;:
!             </td>
!             <td>
!                 &pnt-var-tid;
!             </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>

Index: admin-main.pnd
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/template/pntemplates/admin-main.pnd,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** admin-main.pnd	22 Jul 2002 21:35:41 -0000	1.1
--- admin-main.pnd	2 Aug 2002 22:10:35 -0000	1.2
***************
*** 1,13 ****
! <table width="100%" border="0" cellspacing="1" cellpadding="8">
!     <tr>
!         <th colspan="3" align="center">Template Administration</th>
!     </tr>
      <tr>
! <!-- TODO : waiting for pnt:ml* stuff to work again -->
!         <td><a href="&pnt-modurl-template-admin-new;"><?php echo _NEWTEMPLATE ?></a></td>
!         <td><a href="&pnt-modurl-template-admin-view;"><?php echo _VIEWTEMPLATE ?></a></td>
!         <td><a href="&pnt-modurl-template-admin-modifyconfig;"><?php echo _EDITTEMPLATECONFIG ?></a></td>
      </tr>
  </table>
  <br />
  
--- 1,38 ----
! 
! <!-- 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 template_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-template-admin-new;">&pnt-var-menulabel_new;</a></td>
+         <td><a href="&pnt-modurl-template-admin-view;">&pnt-var-menulabel_view;</a></td>
+         <td><a href="&pnt-modurl-template-admin-modifyconfig;">&pnt-var-menulabel_config;</a></td>
+ 
+         <!-- more menu items come here... -->
+ 
+         <!-- Note : you can also specify the links in template_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>
  

Index: admin-menu.pnd
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/template/pntemplates/admin-menu.pnd,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** admin-menu.pnd	8 Jul 2002 07:01:23 -0000	1.1
--- admin-menu.pnd	2 Aug 2002 22:10:35 -0000	1.2
***************
*** 1,9 ****
! <table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="pn-color"><tr><td>
!     <table width="100%" border="0" cellspacing="1" cellpadding="8" bgcolor="pn-color"><tr><td>
!         <table><tr>
!             <td>pnModURL('template','admin','new'),_NEWTEMPLATE)>/td>
!             <td>pnModURL('template','admin','view'),_VIEWTEMPLATE)>/td>
!             <td>pnModURL('template','admin','modifyconfig'),_EDITTEMPLATECONFIG)>/td>
!         </tr></table>    
!     </td></tr></table>
! </td></tr></table><br />
\ No newline at end of file
--- 1,34 ----
! 
! <!-- 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 template_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-template-admin-new;">&pnt-var-menulabel_new;</a></td>
!         <td><a href="&pnt-modurl-template-admin-view;">&pnt-var-menulabel_view;</a></td>
!         <td><a href="&pnt-modurl-template-admin-modifyconfig;">&pnt-var-menulabel_config;</a></td>
! 
!         <!-- more menu items come here... -->
! 
!         <!-- Note : you can also specify the links in template_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 -->
! 

Index: admin-modifyconfig.pnd
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/template/pntemplates/admin-modifyconfig.pnd,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** admin-modifyconfig.pnd	1 Aug 2002 21:10:51 -0000	1.3
--- admin-modifyconfig.pnd	2 Aug 2002 22:10:35 -0000	1.4
***************
*** 1,14 ****
! <table width="100%" border="0" cellspacing="1" cellpadding="8">
!     <tr>
!         <th colspan="3" align="center">Template Administration</th>
!     </tr>
      <tr>
! <!-- TODO : waiting for pnt:ml* stuff to work again -->
!         <td><a href="&pnt-modurl-template-admin-new;"><?php echo _NEWTEMPLATE ?></a></td>
!         <td><a href="&pnt-modurl-template-admin-view;"><?php echo _VIEWTEMPLATE ?></a></td>
!         <td><a href="&pnt-modurl-template-admin-modifyconfig;"><?php echo _EDITTEMPLATECONFIG ?></a></td>
      </tr>
  </table>
  <br />
  
  <table width="100%" border="0" cellspacing="1" cellpadding="8">
--- 1,35 ----
! 
! <!-- 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 template_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-template-admin-new;">&pnt-var-menulabel_new;</a></td>
+         <td><a href="&pnt-modurl-template-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 template_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">

Index: admin-new.pnd
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/template/pntemplates/admin-new.pnd,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** admin-new.pnd	22 Jul 2002 21:35:41 -0000	1.3
--- admin-new.pnd	2 Aug 2002 22:10:35 -0000	1.4
***************
*** 1,14 ****
! <table width="100%" border="0" cellspacing="1" cellpadding="8">
!     <tr>
!         <th colspan="3" align="center">Template Administration</th>
!     </tr>
      <tr>
! <!-- TODO : waiting for pnt:ml* stuff to work again -->
!         <td><strong><?php echo _NEWTEMPLATE ?></strong></td>
!         <td><a href="&pnt-modurl-template-admin-view;"><?php echo _VIEWTEMPLATE ?></a></td>
!         <td><a href="&pnt-modurl-template-admin-modifyconfig;"><?php echo _EDITTEMPLATECONFIG ?></a></td>
      </tr>
  </table>
  <br />
  
  <table width="100%" border="0" cellspacing="1" cellpadding="8">
--- 1,35 ----
! 
! <!-- 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 template_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-template-admin-view;">&pnt-var-menulabel_view;</a></td>
+         <td><a href="&pnt-modurl-template-admin-modifyconfig;">&pnt-var-menulabel_config;</a></td>
+ 
+         <!-- more menu items come here... -->
+ 
+         <!-- Note : you can also specify the links in template_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">

Index: admin-view.pnd
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/template/pntemplates/admin-view.pnd,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** admin-view.pnd	28 Jul 2002 12:43:29 -0000	1.4
--- admin-view.pnd	2 Aug 2002 22:10:35 -0000	1.5
***************
*** 1,16 ****
! <table width="100%" border="0" cellspacing="1" cellpadding="8">
!     <tr>
!         <th colspan="3" align="center">Template Administration</th>
!     </tr>
      <tr>
! <!-- TODO : waiting for pnt:ml* stuff to work again -->
!         <td><a href="&pnt-modurl-template-admin-new;"><?php echo _NEWTEMPLATE ?></a></td>
!         <td><a href="&pnt-modurl-template-admin-view;"><?php echo _VIEWTEMPLATE ?></a></td>
!         <td><a href="&pnt-modurl-template-admin-modifyconfig;"><?php echo _EDITTEMPLATECONFIG ?></a></td>
      </tr>
  </table>
  <br />
  
! <table width="100%" border="0" cellspacing="1" cellpadding="8">
      <tr>
          <th>&pnt-var-namelabel;</th>
--- 1,44 ----
! 
! <!-- 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 template_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-template-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-template-admin-modifyconfig;">&pnt-var-menulabel_config;</a></td>
+ 
+         <!-- more menu items come here... -->
+ 
+         <!-- Note : you can also specify the links in template_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>
***************
*** 41,43 ****
--- 69,74 ----
  </table>
  <br />
+ 
+ <!-- add the pager here -->
+ &pnt-var-pager;
  

Index: user-display.pnd
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/template/pntemplates/user-display.pnd,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** user-display.pnd	2 Aug 2002 15:20:33 -0000	1.2
--- user-display.pnd	2 Aug 2002 22:10:35 -0000	1.3
***************
*** 27,32 ****
  <!-- some status given by the function using this template -->
  
! <strong>&pnt-var-status;</strong>
  
  <!-- some item variables given by the function using this template -->
  
--- 27,36 ----
  <!-- 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 -->
  
***************
*** 53,55 ****
--- 57,62 ----
  <!-- add the output from display hooks here -->
  &pnt-var-hookoutput;
+ 
+ </pnt:else>
+ </pnt:if>
  

Index: user-view.pnd
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/template/pntemplates/user-view.pnd,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** user-view.pnd	2 Aug 2002 15:20:33 -0000	1.2
--- user-view.pnd	2 Aug 2002 22:10:35 -0000	1.3
***************
*** 27,31 ****
  <!-- some status given by the function using this template -->
  
! <strong>&pnt-var-status;</strong>
  
  <table border="1" cellpadding="5" cellspacing="0">
--- 27,33 ----
  <!-- 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">
***************
*** 34,38 ****
      </tr>
  
!     <!-- 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_..."
--- 36,42 ----
      </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_..."


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