[phpMP-CVS] CVS: phpMP/modules usercp.php,1.6,1.7
Status: Pre-Alpha
Brought to you by:
heimidal
From: Brian R. <hei...@us...> - 2002-07-25 20:50:11
|
Update of /cvsroot/phpmp/phpMP/modules In directory usw-pr-cvs1:/tmp/cvs-serv26475/modules Modified Files: usercp.php Log Message: Fully integrated Smarty (finally). Blocks now work (and quite well, too). Went ahead and split header and fotter from main template, plus added the module template. Index: usercp.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/modules/usercp.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** usercp.php 21 Jul 2002 21:43:33 -0000 1.6 --- usercp.php 25 Jul 2002 20:50:07 -0000 1.7 *************** *** 4,21 **** class Module { ! ! var $pagetitle; function Init() { - $this->pagetitle = "User Control Panel"; } function MakeContent() { ! global $Template; ! $Template->Blocking('BeginBig', array(PAGETITLE => $this->pagetitle)); ! print "This is a test...<br>This is only a test...<br>\n"; - $Template->Blocking('EndBig'); } } --- 4,41 ---- class Module { ! ! var $module_content; function Init() { } function MakeContent() { ! global $MPCONF; ! $this->module_content .= '<table width="100%" cellspacing="0" cellpadding="0">' . "\n"; ! $this->module_content .= ' <tr>' . "\n"; ! $this->module_content .= ' <td height="20" class="tabletitle">' . "\n"; ! $this->module_content .= " <table width=\"100%\" class=\"tabletitle\" bordercolor=\"black\" background=\"{$MPCONF['TPL']['uri']}/templates/{$MPCONF['TPL']['tpl_name']}/images/navbg.gif\">" . "\n"; ! $this->module_content .= ' <tr>' . "\n"; ! $this->module_content .= ' <td width="100%" class="tabletitle" bordercolor=black>' . "\n"; ! $this->module_content .= " <font color=white><small>.:: {$MPCONF['TPL']['sitename']} :: User Control Panel ::.</small></font>" . "\n"; ! $this->module_content .= ' </td>' . "\n"; ! $this->module_content .= ' </tr>' . "\n"; ! $this->module_content .= ' </table>' . "\n"; ! $this->module_content .= ' </td>' . "\n"; ! $this->module_content .= ' </tr>' . "\n"; ! $this->module_content .= ' <tr>' . "\n"; ! $this->module_content .= ' <td>' . "\n"; ! $this->module_content .= ' <table width="100%" class="tableborder" bordercolor=black>' . "\n"; ! $this->module_content .= ' <tr>' . "\n"; ! $this->module_content .= ' <td>' . "\n"; ! $this->module_content .= ' Right now, this is all complete filler. Eventually, the User Control Panel will be contained here. C-ya when it\'s done!' . "\n"; ! $this->module_content .= ' </td>' . "\n"; ! $this->module_content .= ' </tr>' . "\n"; ! $this->module_content .= ' </table>' . "\n"; ! $this->module_content .= ' </td>' . "\n"; ! $this->module_content .= ' </tr>' . "\n"; ! $this->module_content .= '</table>' . "\n"; } } |