[pidget-cvs] pidget/src/styles/blueskies pPage.inc,NONE,1.1
Brought to you by:
lkehresman
From: <lke...@us...> - 2003-10-15 16:17:31
|
Update of /cvsroot/pidget/pidget/src/styles/blueskies In directory sc8-pr-cvs1:/tmp/cvs-serv24329/blueskies Added Files: pPage.inc Log Message: Added the beginnings of a new style: Blue Skies --- NEW FILE: pPage.inc --- <?php include_once("pStyle.inc"); class pPageStyle extends pStyle { public function RenderStyle() { $body = $this->Widget->GetLayout()->GetRenderValue(); $scripts = pPageHandler::GetJS(); $inits = pPageHandler::GetInit(); echo "<!-- Generated by p, the PHP Toolkit -->\n"; echo "<html>\n"; echo "<head>\n"; if ($scripts || $inits) { echo "<script language=\"javascript\">\n"; echo $scripts; echo $inits; echo "</script>\n"; } echo "<style>\n"; echo " BODY { background: url(".PIDGET_STYLES."/blueskies/images/blueskies.jpg); }\n"; echo pPageHandler::GetCSS(); echo "</style>\n"; echo "</head>\n"; echo "<body"; if ($inits) echo " onLoad=\"pPageInit();\""; echo ">\n"; echo "<table width=100% height=100%><tr><td align=center valign=middle>\n"; echo "<table cellpadding=10 cellspacing=0"; echo " style=\"border: 1px solid black\"><tr><td bgcolor=\"#c3c5da\">\n"; echo $body; echo "</td></tr></table>\n"; echo "</td></tr></table>\n"; echo "</body>\n"; echo "</html>\n"; } } ?> |