static function AdminHtml() { global $page; $page->head_script .= 'var gp_bodyashtml = true;'; self::StandardHeaders(); echo '<!DOCTYPE html><html class="admin_body"><head><meta charset="UTF-8" />'; gpOutput::getHead(); echo '</head>'; echo '<body class="gpbody">'; echo GetMessages(); $page->GetGpxContent(); echo '</body>'; echo '</html>'; gpOutput::HeadContent(); }
color:#aaa; } .progress li{ padding: 5px 20px 5px 0; } .formtable td, .formtable th{ padding: 5px 20px 5px 0; text-align:left; vertical-align:top; } </style> <?php gpOutput::getHead(); ?> </head> <body> <div class="wrapper"> <h1>gpEasy Updater</h1> <?php $page->GetContent(); ?> </div>
/** * Send only the messages and content as a simple html document * @static */ function BodyAsHTML() { global $page, $gp_admin_html; $page->head_script .= 'var gp_bodyashtml = true;'; header('Content-Type: text/html; charset=utf-8'); echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'; echo '<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en">'; echo '<head>'; gpOutput::getHead(); echo '</head>'; echo '<body class="gpbody">'; GetMessages(); if ($page->pagetype == 'admin_display') { $gp_admin_html = ''; // we don't want two gp_admin_html areas echo '<div id="gp_admin_html">'; $page->GetGpxContent(); echo '</div>'; } else { $page->GetGpxContent(); } echo '</body>'; echo '</html>'; gpOutput::HeadContent(); }