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] |
02 Oct 2002 19:32:13 | postnuke_modules/postcalendar | pnuser.php,1.60,1.61 pnuserapi.php,1.110,1.111 smarty_plugins.php,1.6,1.7 | Roger Raymond |
template cleanup |
Update of /home/cvsroot/postnuke_modules/postcalendar In directory ns7.hostnuke.net:/tmp/cvs-serv26292 Modified Files: pnuser.php pnuserapi.php smarty_plugins.php Log Message: template cleanup Index: pnuser.php =================================================================== RCS file: /home/cvsroot/postnuke_modules/postcalendar/pnuser.php,v retrieving revision 1.60 retrieving revision 1.61 diff -C2 -d -r1.60 -r1.61 *** pnuser.php 2 Oct 2002 17:03:22 -0000 1.60 --- pnuser.php 2 Oct 2002 19:32:11 -0000 1.61 *************** *** 51,56 **** { if (!pnSecAuthAction(0, 'PostCalendar::', '::', ACCESS_READ)) { ! $output->Text(_POSTCALENDARNOAUTH); ! return $output->GetOutput(); } --- 51,55 ---- { if (!pnSecAuthAction(0, 'PostCalendar::', '::', ACCESS_READ)) { ! return _POSTCALENDARNOAUTH; } *************** *** 75,90 **** if(!isset($Date) || empty($Date)) { - //$Date = $jumpmonth.'/'.$jumpday.'/'.$jumpyear; $Date = "$jumpyear$jumpmonth$jumpday"; } ! $output = new pnHTML(); ! $output->SetInputMode(_PNH_VERBATIMINPUT); ! ! //$output->Text(postcalendar_usermenu(array('Date'=>$Date))); ! $output->Text(postcalendar_user_display(array('viewtype'=>$viewtype,'Date'=>$Date))); ! $output->Text(postcalendar_footer()); ! ! return $output->GetOutput(); } --- 74,81 ---- if(!isset($Date) || empty($Date)) { $Date = "$jumpyear$jumpmonth$jumpday"; } ! return postcalendar_user_display(array('viewtype'=>$viewtype,'Date'=>$Date)) . postcalendar_footer(); } *************** *** 107,124 **** } ! $imgsrc = '<img src="images/global/print.gif" border="0" alt="print" />'; ! ! switch ($viewtype) { ! case 'day': case 'week': case 'month': case 'year': ! $out = '<p align="right"><a href="modules.php?op=modload&name=PostCalendar&file=print&date='.$Date.'&viewtype='.$viewtype.'">'.$imgsrc.'</a></p>'; $out .= pnModAPIFunc('PostCalendar','user','buildView',array('Date'=>$Date,'viewtype'=>$viewtype)); break; case 'details': ! $out = '<p align="right"><a href="modules.php?op=modload&name=PostCalendar&file=print&date='.$Date.'&viewtype=event&eid='.$eid.'">'.$imgsrc.'</a></p>'; $out .= pnModAPIFunc('PostCalendar','user','eventDetail',array('eid'=>$eid)); break; } --- 98,115 ---- } ! switch ($viewtype) ! { case 'day': case 'week': case 'month': case 'year': ! $out = "\n\n<!-- START user_display -->\n\n"; $out .= pnModAPIFunc('PostCalendar','user','buildView',array('Date'=>$Date,'viewtype'=>$viewtype)); + $out .= "\n\n<!-- END user_display -->\n\n"; break; case 'details': ! $out = "\n\n<!-- START user_display -->\n\n"; $out .= pnModAPIFunc('PostCalendar','user','eventDetail',array('eid'=>$eid)); + $out .= "\n\n<!-- END user_display -->\n\n"; break; } Index: pnuserapi.php =================================================================== RCS file: /home/cvsroot/postnuke_modules/postcalendar/pnuserapi.php,v retrieving revision 1.110 retrieving revision 1.111 diff -C2 -d -r1.110 -r1.111 *** pnuserapi.php 2 Oct 2002 17:03:22 -0000 1.110 --- pnuserapi.php 2 Oct 2002 19:32:11 -0000 1.111 *************** *** 502,507 **** // Parse the template //================================================================= $output->Text($tpl->fetch($template_name.'/views/'.$viewtype.'/'.$template_view_load.'.html')); ! //================================================================= // Output the time taken to do all this stuff --- 502,508 ---- // Parse the template //================================================================= + $output->Text("\n\n<!-- TEMPLATE START -->\n\n"); $output->Text($tpl->fetch($template_name.'/views/'.$viewtype.'/'.$template_view_load.'.html')); ! $output->Text("\n\n<!-- TEMPLATE END -->\n\n"); //================================================================= // Output the time taken to do all this stuff Index: smarty_plugins.php =================================================================== RCS file: /home/cvsroot/postnuke_modules/postcalendar/smarty_plugins.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** smarty_plugins.php 2 Oct 2002 12:42:56 -0000 1.6 --- smarty_plugins.php 2 Oct 2002 19:32:11 -0000 1.7 *************** *** 55,86 **** switch($args['action']) { case 'submit' : ! echo pnModURL('PostCalendar','user','submit',array('tplview'=>$template_view,'Date'=>$Date)); break; case 'submit-admin' : ! echo pnModURL('PostCalendar','admin','submit',array('tplview'=>$template_view,'Date'=>$Date)); break; case 'search' : ! echo pnModURL('PostCalendar','user','search'); break; case 'day' : ! echo pnModURL('PostCalendar','user','view',array('tplview'=>$template_view,'viewtype'=>'day','Date'=>$Date)); break; case 'week' : ! echo pnModURL('PostCalendar','user','view',array('tplview'=>$template_view,'viewtype'=>'week','Date'=>$Date)); break; case 'month' : ! echo pnModURL('PostCalendar','user','view',array('tplview'=>$template_view,'viewtype'=>'month','Date'=>$Date)); break; case 'year' : ! echo pnModURL('PostCalendar','user','view',array('tplview'=>$template_view,'viewtype'=>'year','Date'=>$Date)); break; case 'detail' : ! if(!isset($args['eid'])) { ! } else { ! echo pnModURL('PostCalendar','user','view',array('tplview'=>$template_view,'viewtype'=>'details','eid'=>$args['eid'])); } break; } } function postcalendar_smarty_pcDateFormat($args) --- 55,107 ---- switch($args['action']) { case 'submit' : ! $link = pnModURL('PostCalendar','user','submit',array('tplview'=>$template_view,'Date'=>$Date)); break; case 'submit-admin' : ! $link = pnModURL('PostCalendar','admin','submit',array('tplview'=>$template_view,'Date'=>$Date)); break; case 'search' : ! $link = pnModURL('PostCalendar','user','search'); break; case 'day' : ! if(isset($args['print'])) { ! $link = "modules.php?op=modload&name=PostCalendar&file=print&Date=$Date&tplview=$template_view&viewtype=day"; ! } else { ! $link = pnModURL('PostCalendar','user','view',array('tplview'=>$template_view,'viewtype'=>'day','Date'=>$Date)); ! } break; case 'week' : ! if(isset($args['print'])) { ! $link = "modules.php?op=modload&name=PostCalendar&file=print&Date=$Date&tplview=$template_view&viewtype=week"; ! } else { ! $link = pnModURL('PostCalendar','user','view',array('tplview'=>$template_view,'viewtype'=>'week','Date'=>$Date)); ! } break; case 'month' : ! if(isset($args['print'])) { ! $link = "modules.php?op=modload&name=PostCalendar&file=print&Date=$Date&tplview=$template_view&viewtype=month"; ! } else { ! $link = pnModURL('PostCalendar','user','view',array('tplview'=>$template_view,'viewtype'=>'month','Date'=>$Date)); ! } break; case 'year' : ! if(isset($args['print'])) { ! $link = "modules.php?op=modload&name=PostCalendar&file=print&Date=$Date&tplview=$template_view&viewtype=year"; ! } else { ! $link = pnModURL('PostCalendar','user','view',array('tplview'=>$template_view,'viewtype'=>'year','Date'=>$Date)); ! } break; case 'detail' : ! if(isset($args['eid'])) { ! if(isset($args['print'])) { ! $link = "modules.php?op=modload&name=PostCalendar&file=print&Date=$Date&tplview=$template_view&viewtype=details&eid=$args[eid]"; ! } else { ! $link = pnModURL('PostCalendar','user','view',array('tplview'=>$template_view,'viewtype'=>'details','eid'=>$args['eid'])); ! } } else { ! $link = ''; } break; } + echo $link; } function postcalendar_smarty_pcDateFormat($args) *************** *** 218,222 **** $viewselect = $output->FormSelectMultiple('viewtype', $sel_data); } ! $jumpsubmit = $output->FormSubmit(_PC_JUMP_MENU_SUBMIT); if($args['form'] === true) { $fstart = $output->FormStart(pnModURL('PostCalendar','user','view')); --- 239,244 ---- $viewselect = $output->FormSelectMultiple('viewtype', $sel_data); } ! if(!isset($args['label'])) $args['label'] = _PC_JUMP_MENU_SUBMIT; ! $jumpsubmit = '<input type="submit" valign="middle" name="submit" value="'.$args['label'].'" />'; if($args['form'] === true) { $fstart = $output->FormStart(pnModURL('PostCalendar','user','view'));
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 |