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_modules / articles / pntemplates [ view in CVS ]
| Date | Directory [filter] | File(s) [view] | Author [filter] |
| 05 Aug 2002 01:43:15 | postnuke_modules/articles/pntemplates | admin-pubtypes.pnd,NONE,1.1 admin-main.pnd,1.1,1.2 admin-modify.pnd,1.2,1.3 admin-modifyconfig.pnd,1.1,1.2 admin-new.pnd,1.2,1.3 admin-view.pnd,1.3,1.4 | Mike |
| admin changes for pub types etc. | |||
Update of /home/cvsroot/postnuke_modules/articles/pntemplates
In directory ns7.hostnuke.net:/tmp/cvs-serv25244
Modified Files:
admin-main.pnd admin-modify.pnd admin-modifyconfig.pnd
admin-new.pnd admin-view.pnd
Added Files:
admin-pubtypes.pnd
Log Message:
admin changes for pub types etc.
--- NEW FILE: admin-pubtypes.pnd ---
<table width="100%" border="0" cellspacing="1" cellpadding="8">
<tr>
<th colspan="4" align="center"><pnt:var name="menu.title" /></th>
</tr>
<tr>
<td><a href="&pnt-modurl-articles-admin-new;"><pnt:var name="menu.new" /></a></td>
<td><a href="&pnt-modurl-articles-admin-view;"><pnt:var name="menu.view" /></a></td>
<td><a href="&pnt-modurl-articles-admin-modifyconfig;"><pnt:var name="menu.modifyconfig" /></a></td>
<td><pnt:var name="menu.pubtypes" /></td>
</tr>
</table>
<br />
<pnt:var name="status" />
<pnt:if condition="isset($action) && $action == 'new'">
<center><strong><pnt:var name="labels.title" /></strong></center>
<form method="POST" action="&pnt-var-link;">
<input type="hidden" name="authid" value="&pnt-var-authid;">
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
<td align="right"><pnt:var name="labels.name" /> :</td>
<td><input type="text" name="name" value="" size="20" maxlength="20"></td>
</tr>
<tr>
<td align="right"><pnt:var name="labels.descr" /> :</td>
<td><input type="text" name="descr" value="" size="50" maxlength="250"></td>
</tr>
<tr>
<td align="right"><pnt:var name="labels.fields" /> :</td>
<td><pnt:var name="labels.explanation" /></td>
</tr>
<pnt:loop name="fields">
<tr>
<td align="right">&pnt-var-name;</td>
<td><input type="text" name="config[&pnt-var-name;]" value="&pnt-var-descr;" /></td>
</tr>
</pnt:loop>
<tr>
<td colspan="2" align="center"><br><input type="submit" value="&pnt-var-submitbutton;"></td>
</tr>
</table>
</form>
</pnt:if>
<pnt:if condition="isset($action) && $action == 'modify'">
<center><strong><pnt:var name="labels.title" /></strong></center>
<form method="POST" action="&pnt-var-link;">
<input type="hidden" name="authid" value="&pnt-var-authid;">
<input type="hidden" name="ptid" value="&pnt-var-ptid;">
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
<td align="right"><pnt:var name="labels.name" /> :</td>
<td>&pnt-var-item.name;</td>
</tr>
<tr>
<td align="right"><pnt:var name="labels.descr" /> :</td>
<td><input type="text" name="descr" value="&pnt-var-item.descr;" size="50" maxlength="250"></td>
</tr>
<tr>
<td align="right"><pnt:var name="labels.fields" /> :</td>
<td><pnt:var name="labels.explanation" /></td>
</tr>
<pnt:loop name="fields">
<tr>
<td align="right">&pnt-var-name;</td>
<td><input type="text" name="config[&pnt-var-name;]" value="&pnt-var-descr;" /></td>
</tr>
</pnt:loop>
<tr>
<td colspan="2" align="center"><br><input type="submit" value="&pnt-var-submitbutton;"></td>
</tr>
</table>
</form>
</pnt:if>
<pnt:if condition="isset($action) && $action == 'delete'">
<center><strong><pnt:var name="labels.title" /></strong></center>
<form method="POST" action="&pnt-var-link;">
<input type="hidden" name="authid" value="&pnt-var-authid;">
<input type="hidden" name="ptid" value="&pnt-var-ptid;">
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
<td align="right"><pnt:var name="labels.name" /> :</td>
<td>&pnt-var-item.name;</td>
</tr>
<tr>
<td align="right"><pnt:var name="labels.descr" /> :</td>
<td>&pnt-var-item.descr;</td>
</tr>
<tr>
<td colspan="2" align="center"><br><input type="submit" value="&pnt-var-submitbutton;"></td>
</tr>
</table>
</form>
</pnt:if>
<pnt:if condition="isset($pubtypes)">
<table width="100%" border="1" cellpadding="5">
<tr>
<th><pnt:var name="labels.name" /></th>
<th><pnt:var name="labels.descr" /></th>
<th><pnt:var name="labels.options" /></th>
</tr>
<pnt:loop name="pubtypes">
<tr>
<td>&pnt-var-name;</td>
<td>&pnt-var-descr;</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>
<tr>
<td> </td>
<td> </td>
<td><a href="&pnt-var-newurl;">&pnt-var-newtitle;</a></td>
</tr>
</table>
</pnt:if>
<br />
Index: admin-main.pnd
===================================================================
RCS file: /home/cvsroot/postnuke_modules/articles/pntemplates/admin-main.pnd,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** admin-main.pnd 28 Jul 2002 17:32:07 -0000 1.1
--- admin-main.pnd 5 Aug 2002 01:43:12 -0000 1.2
***************
*** 2,6 ****
<table width="100%" border="0" cellspacing="1" cellpadding="8">
<tr>
! <th colspan="3" align="center"><pnt:var name="menu.title" /></th>
</tr>
<tr>
--- 2,6 ----
<table width="100%" border="0" cellspacing="1" cellpadding="8">
<tr>
! <th colspan="4" align="center"><pnt:var name="menu.title" /></th>
</tr>
<tr>
***************
*** 8,11 ****
--- 8,12 ----
<td><a href="&pnt-modurl-articles-admin-view;"><pnt:var name="menu.view" /></a></td>
<td><a href="&pnt-modurl-articles-admin-modifyconfig;"><pnt:var name="menu.modifyconfig" /></a></td>
+ <td><a href="&pnt-modurl-articles-admin-pubtypes;"><pnt:var name="menu.pubtypes" /></a></td>
</tr>
</table>
Index: admin-modify.pnd
===================================================================
RCS file: /home/cvsroot/postnuke_modules/articles/pntemplates/admin-modify.pnd,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** admin-modify.pnd 29 Jul 2002 14:57:32 -0000 1.2
--- admin-modify.pnd 5 Aug 2002 01:43:12 -0000 1.3
***************
*** 2,6 ****
<table width="100%" border="0" cellspacing="1" cellpadding="8">
<tr>
! <th colspan="3" align="center"><pnt:var name="menu.title" /></th>
</tr>
<tr>
--- 2,6 ----
<table width="100%" border="0" cellspacing="1" cellpadding="8">
<tr>
! <th colspan="4" align="center"><pnt:var name="menu.title" /></th>
</tr>
<tr>
***************
*** 8,11 ****
--- 8,12 ----
<td><a href="&pnt-modurl-articles-admin-view;"><pnt:var name="menu.view" /></a></td>
<td><a href="&pnt-modurl-articles-admin-modifyconfig;"><pnt:var name="menu.modifyconfig" /></a></td>
+ <td><a href="&pnt-modurl-articles-admin-pubtypes;"><pnt:var name="menu.pubtypes" /></a></td>
</tr>
</table>
***************
*** 14,18 ****
<br />
! <table width="100%" border="0" cellspacing="1" cellpadding="8">
<!--
// Start form - note the use of pnModURL() to create the recipient URL of
--- 15,19 ----
<br />
! <table width="100%" border="1" cellspacing="1" cellpadding="8">
<!--
// Start form - note the use of pnModURL() to create the recipient URL of
***************
*** 29,32 ****
--- 30,34 ----
<input type="hidden" name="aid" value="&pnt-var-aid;" />
+ <input type="hidden" name="ptid" value="&pnt-var-ptid;" />
<tr align="left" valign="middle">
***************
*** 40,61 ****
</tr>
! <pnt:if condition="$ptid != 2">
<tr align="left" valign="middle">
! <td><pnt:var name="labels.author" /></td>
<td><pnt:var name="item.author" /></td>
</tr>
</pnt:if>
<tr align="left" valign="middle">
<td><pnt:var name="labels.title" /></td>
! <td><input type="text" name="title" value="&pnt-var-item.title;" size="60" /></td>
</tr>
! <pnt:if condition="$ptid != 2">
<tr align="left" valign="middle">
! <td><pnt:var name="labels.date" /></td>
<td><pnt:var name="item.date" /> // TODO: use calendar ?</td>
</tr>
<tr align="left" valign="middle">
<td><pnt:var name="labels.summary" /></td>
--- 42,67 ----
</tr>
! <pnt:if condition="!empty($labels['authorid'])">
<tr align="left" valign="middle">
! <td><pnt:var name="labels.authorid" /></td>
<td><pnt:var name="item.author" /></td>
</tr>
</pnt:if>
+ <pnt:if condition="!empty($labels['title'])">
<tr align="left" valign="middle">
<td><pnt:var name="labels.title" /></td>
! <td><input type="text" name="title" value="&pnt-var-item.title;" size="50" /></td>
</tr>
+ </pnt:if>
! <pnt:if condition="!empty($labels['pubdate'])">
<tr align="left" valign="middle">
! <td><pnt:var name="labels.pubdate" /></td>
<td><pnt:var name="item.date" /> // TODO: use calendar ?</td>
</tr>
+ </pnt:if>
+ <pnt:if condition="!empty($labels['summary'])">
<tr align="left" valign="middle">
<td><pnt:var name="labels.summary" /></td>
***************
*** 64,81 ****
</pnt:if>
<tr align="left" valign="middle">
! <td><pnt:var name="labels.body" /></td>
! <td> </td>
</tr>
<tr align="left" valign="middle">
! <td><input type="radio" name="bodytype" value="text" checked /><pnt:var name="labels.bodytext" /></td>
<td><textarea name="bodytext" wrap="soft" rows="20" cols="50"><pnt:var name="item.bodytext" /></textarea></td>
</tr>
<tr align="left" valign="middle">
! <td><input type="radio" name="bodytype" value="file" /><pnt:var name="labels.bodyfile" /></td>
<td><input type="file" name="bodyfile" size="40" /></td>
</tr>
<tr align="left" valign="middle">
--- 70,125 ----
</pnt:if>
+ <pnt:if condition="!empty($labels['notes'])">
<tr align="left" valign="middle">
! <td><pnt:var name="labels.notes" /></td>
! <td><textarea name="notes" wrap="soft" rows="2" cols="50">&pnt-var-item.notes;</textarea></td>
</tr>
+ </pnt:if>
+ <pnt:if condition="!empty($labels['status'])">
<tr align="left" valign="middle">
! <td><pnt:var name="labels.status" /></td>
! <td>
! <select name="status">
! <pnt:loop name="labels.statusoptions">
! <pnt:if condition="$item['status'] == $nr">
! <option value="&pnt-var-nr;" selected>&pnt-var-label;
! <pnt:else>
! <option value="&pnt-var-nr;">&pnt-var-label;
! </pnt:else>
! </pnt:if>
! </pnt:loop>
! </select>
! </td>
! </tr>
! </pnt:if>
!
! <pnt:if condition="!empty($labels['bodytext'])">
! <tr align="left" valign="middle">
! <td><pnt:if condition="!empty($labels['bodyfile'])">
! <input type="radio" name="bodytype" value="text" checked />
! <pnt:else>
! <input type="hidden" name="bodytype" value="text" />
! </pnt:else>
! </pnt:if>
! <pnt:var name="labels.bodytext" />
! </td>
<td><textarea name="bodytext" wrap="soft" rows="20" cols="50"><pnt:var name="item.bodytext" /></textarea></td>
</tr>
+ </pnt:if>
+ <pnt:if condition="!empty($labels['bodyfile'])">
<tr align="left" valign="middle">
! <td><pnt:if condition="!empty($labels['bodytext'])">
! <input type="radio" name="bodytype" value="file" />
! <pnt:else>
! <input type="hidden" name="bodytype" value="file" />
! </pnt:else>
! </pnt:if>
! <pnt:var name="labels.bodyfile" />
! </td>
<td><input type="file" name="bodyfile" size="40" /></td>
</tr>
+ </pnt:if>
<tr align="left" valign="middle">
***************
*** 84,88 ****
</tr>
! <tr><td colspan="2" align="center">
<input type="submit" value="&pnt-var-labels.update;"></td></tr>
--- 128,132 ----
</tr>
! <tr align="left" valign="middle"><td colspan="2" align="center">
<input type="submit" value="&pnt-var-labels.update;"></td></tr>
Index: admin-modifyconfig.pnd
===================================================================
RCS file: /home/cvsroot/postnuke_modules/articles/pntemplates/admin-modifyconfig.pnd,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** admin-modifyconfig.pnd 28 Jul 2002 19:59:40 -0000 1.1
--- admin-modifyconfig.pnd 5 Aug 2002 01:43:12 -0000 1.2
***************
*** 2,6 ****
<table width="100%" border="0" cellspacing="1" cellpadding="8">
<tr>
! <th colspan="3" align="center"><pnt:var name="menu.title" /></th>
</tr>
<tr>
--- 2,6 ----
<table width="100%" border="0" cellspacing="1" cellpadding="8">
<tr>
! <th colspan="4" align="center"><pnt:var name="menu.title" /></th>
</tr>
<tr>
***************
*** 8,11 ****
--- 8,12 ----
<td><a href="&pnt-modurl-articles-admin-view;"><pnt:var name="menu.view" /></a></td>
<td><pnt:var name="menu.modifyconfig" /></td>
+ <td><a href="&pnt-modurl-articles-admin-pubtypes;"><pnt:var name="menu.pubtypes" /></a></td>
</tr>
</table>
Index: admin-new.pnd
===================================================================
RCS file: /home/cvsroot/postnuke_modules/articles/pntemplates/admin-new.pnd,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** admin-new.pnd 29 Jul 2002 14:57:32 -0000 1.2
--- admin-new.pnd 5 Aug 2002 01:43:12 -0000 1.3
***************
*** 2,6 ****
<table width="100%" border="0" cellspacing="1" cellpadding="8">
<tr>
! <th colspan="3" align="center"><pnt:var name="menu.title" /></th>
</tr>
<tr>
--- 2,6 ----
<table width="100%" border="0" cellspacing="1" cellpadding="8">
<tr>
! <th colspan="4" align="center"><pnt:var name="menu.title" /></th>
</tr>
<tr>
***************
*** 8,11 ****
--- 8,12 ----
<td><a href="&pnt-modurl-articles-admin-view;"><pnt:var name="menu.view" /></a></td>
<td><a href="&pnt-modurl-articles-admin-modifyconfig;"><pnt:var name="menu.modifyconfig" /></a></td>
+ <td><a href="&pnt-modurl-articles-admin-pubtypes;"><pnt:var name="menu.pubtypes" /></a></td>
</tr>
</table>
***************
*** 13,17 ****
<center><strong><pnt:var name="labels.header" /></strong></center>
<br />
! Publication Type :<br />
<pnt:loop name="pubfilters">
<pnt:if condition="empty($plink)">
--- 14,18 ----
<center><strong><pnt:var name="labels.header" /></strong></center>
<br />
! Publication Type :
<pnt:loop name="pubfilters">
<pnt:if condition="empty($plink)">
***************
*** 48,57 ****
</tr>
<tr align="left" valign="middle">
<td><pnt:var name="labels.title" /></td>
! <td><input type="text" name="title" value="" size="60" /></td>
</tr>
! <pnt:if condition="$ptid != 2">
<tr align="left" valign="middle">
<td><pnt:var name="labels.summary" /></td>
--- 49,60 ----
</tr>
+ <pnt:if condition="!empty($labels['title'])">
<tr align="left" valign="middle">
<td><pnt:var name="labels.title" /></td>
! <td><input type="text" name="title" value="" size="50" /></td>
</tr>
+ </pnt:if>
! <pnt:if condition="!empty($labels['summary'])">
<tr align="left" valign="middle">
<td><pnt:var name="labels.summary" /></td>
***************
*** 60,72 ****
</pnt:if>
<tr align="left" valign="middle">
! <td><input type="radio" name="bodytype" value="text" checked /><pnt:var name="labels.bodytext" /></td>
<td><textarea name="bodytext" wrap="soft" rows="20" cols="50"></textarea></td>
</tr>
<tr align="left" valign="middle">
! <td><input type="radio" name="bodytype" value="file" /><pnt:var name="labels.bodyfile" /></td>
<td><input type="file" name="bodyfile" size="40" /></td>
</tr>
<tr align="left" valign="middle">
--- 63,93 ----
</pnt:if>
+ <pnt:if condition="!empty($labels['bodytext'])">
<tr align="left" valign="middle">
! <td><pnt:if condition="!empty($labels['bodyfile'])">
! <input type="radio" name="bodytype" value="text" checked />
! <pnt:else>
! <input type="hidden" name="bodytype" value="text" />
! </pnt:else>
! </pnt:if>
! <pnt:var name="labels.bodytext" />
! </td>
<td><textarea name="bodytext" wrap="soft" rows="20" cols="50"></textarea></td>
</tr>
+ </pnt:if>
+ <pnt:if condition="!empty($labels['bodyfile'])">
<tr align="left" valign="middle">
! <td><pnt:if condition="!empty($labels['bodytext'])">
! <input type="radio" name="bodytype" value="file" />
! <pnt:else>
! <input type="hidden" name="bodytype" value="file" />
! </pnt:else>
! </pnt:if>
! <pnt:var name="labels.bodyfile" />
! </td>
<td><input type="file" name="bodyfile" size="40" /></td>
</tr>
+ </pnt:if>
<tr align="left" valign="middle">
Index: admin-view.pnd
===================================================================
RCS file: /home/cvsroot/postnuke_modules/articles/pntemplates/admin-view.pnd,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** admin-view.pnd 28 Jul 2002 20:26:09 -0000 1.3
--- admin-view.pnd 5 Aug 2002 01:43:12 -0000 1.4
***************
*** 3,7 ****
<table width="100%" border="0" cellspacing="1" cellpadding="8">
<tr>
! <th colspan="3" align="center"><pnt:var name="menu.title" /></th>
</tr>
<tr>
--- 3,7 ----
<table width="100%" border="0" cellspacing="1" cellpadding="8">
<tr>
! <th colspan="4" align="center"><pnt:var name="menu.title" /></th>
</tr>
<tr>
***************
*** 9,17 ****
<td><pnt:var name="menu.view" /></td>
<td><a href="&pnt-modurl-articles-admin-modifyconfig;"><pnt:var name="menu.modifyconfig" /></a></td>
</tr>
</table>
<br />
! Publication Type :<br />
<pnt:loop name="pubfilters">
<pnt:if condition="empty($plink)">
--- 9,18 ----
<td><pnt:var name="menu.view" /></td>
<td><a href="&pnt-modurl-articles-admin-modifyconfig;"><pnt:var name="menu.modifyconfig" /></a></td>
+ <td><a href="&pnt-modurl-articles-admin-pubtypes;"><pnt:var name="menu.pubtypes" /></a></td>
</tr>
</table>
<br />
! <pnt:var name="labels.pubtype" /> :
<pnt:loop name="pubfilters">
<pnt:if condition="empty($plink)">
***************
*** 24,27 ****
--- 25,44 ----
</pnt:loop>
<br />
+
+ <pnt:if condition="!empty($labels['status'])">
+ <br />
+ <pnt:var name="labels.status" /> :
+ <pnt:loop name="statusfilters">
+ <pnt:if condition="empty($slink)">
+ &pnt-var-stitle;
+ <pnt:else>
+ <a href="&pnt-var-slink;">&pnt-var-stitle;</a>
+ </pnt:else>
+ </pnt:if>
+
+ </pnt:loop>
+ <br />
+ </pnt:if>
+
<br />
// TODO : allow viewing per category etc.
***************
*** 31,35 ****
<tr>
<th><pnt:var name="labels.title" /></th>
! <th><pnt:var name="labels.pubdate" /></th>
<th><pnt:var name="labels.options" /></th>
</tr>
--- 48,54 ----
<tr>
<th><pnt:var name="labels.title" /></th>
! <pnt:if condition="!empty($labels['pubdate'])">
! <th><pnt:var name="labels.pubdate" /></th>
! </pnt:if>
<th><pnt:var name="labels.options" /></th>
</tr>
***************
*** 37,41 ****
<tr>
<td>&pnt-var-title;</td>
! <td>&pnt-var-pubdate;</td>
<td>
<pnt:if condition="empty($editurl)">
--- 56,62 ----
<tr>
<td>&pnt-var-title;</td>
! <pnt:if condition="!empty($labels['pubdate'])">
! <td>&pnt-var-pubdate;</td>
! </pnt:if>
<td>
<pnt:if condition="empty($editurl)">
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 |