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 / postcalendar [ view in CVS ]
| Date | Directory [filter] | File(s) [view] | Author [filter] |
| 03 Oct 2002 23:52:07 | postnuke_modules/postcalendar | pnadmin.php,1.35,1.36 smarty_plugins.php,1.12,1.13 | Roger Raymond |
| template cleanup | |||
Update of /home/cvsroot/postnuke_modules/postcalendar
In directory ns7.hostnuke.net:/tmp/cvs-serv4028
Modified Files:
pnadmin.php smarty_plugins.php
Log Message:
template cleanup
Index: pnadmin.php
===================================================================
RCS file: /home/cvsroot/postnuke_modules/postcalendar/pnadmin.php,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** pnadmin.php 3 Oct 2002 17:16:13 -0000 1.35
--- pnadmin.php 3 Oct 2002 23:52:05 -0000 1.36
***************
*** 1561,1565 ****
$templatelist = array();
-
$handle = opendir('modules/'.$pcDir.'/pntemplates');
while($f=readdir($handle))
--- 1561,1564 ----
Index: smarty_plugins.php
===================================================================
RCS file: /home/cvsroot/postnuke_modules/postcalendar/smarty_plugins.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** smarty_plugins.php 3 Oct 2002 04:54:45 -0000 1.12
--- smarty_plugins.php 3 Oct 2002 23:52:05 -0000 1.13
***************
*** 301,314 ****
sort($viewlist);
$tcount = count($viewlist);
! $options = array();
$selected = $tplview;
for($t=0;$t<$tcount;$t++) {
! $options[$t]['id'] = str_replace('.html','',$viewlist[$t]);
! $options[$t]['selected'] = ($selected == str_replace('.html','',$viewlist[$t]));
! $options[$t]['name'] = str_replace('.html','',$viewlist[$t]);
}
if(!isset($args['label'])) $args['label'] = _PC_TPL_VIEW_SUBMIT;
! $submit = '<input type="submit" valign="middle" name="submit" value="'.$args['label'].'" />';
if($args['form'] === true) {
$fstart = $output->FormStart(pnModURL('PostCalendar','user','view'));
--- 301,315 ----
sort($viewlist);
$tcount = count($viewlist);
! $options = '<select name="tplview" class="'.$args['class'].'">';
$selected = $tplview;
for($t=0;$t<$tcount;$t++) {
! $id = str_replace('.html','',$viewlist[$t]);
! $sel = $selected == $id ? 'selected' : '';
! $options .= "<option name=\"$id\" $sel>$id</option>";
}
+ $options .= '</select>';
if(!isset($args['label'])) $args['label'] = _PC_TPL_VIEW_SUBMIT;
! $submit = '<input type="submit" valign="middle" name="submit" value="'.$args['label'].'" class="'.$args['class'].'" />';
if($args['form'] === true) {
$fstart = $output->FormStart(pnModURL('PostCalendar','user','view'));
***************
*** 317,323 ****
// build the form
! if(count($options) > 1) {
echo $fstart;
! echo $output->FormSelectMultiple('tplview', $options);
echo $output->FormHidden('Date',$Date);
echo $output->FormHidden('viewtype',$viewtype);
--- 318,324 ----
// build the form
! if($t > 1) {
echo $fstart;
! echo $options;
echo $output->FormHidden('Date',$Date);
echo $output->FormHidden('viewtype',$viewtype);
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 |