本文整理汇总了PHP中HTML_Page2::addBodyContent方法的典型用法代码示例。如果您正苦于以下问题:PHP HTML_Page2::addBodyContent方法的具体用法?PHP HTML_Page2::addBodyContent怎么用?PHP HTML_Page2::addBodyContent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HTML_Page2
的用法示例。
在下文中一共展示了HTML_Page2::addBodyContent方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Map
</table>
';
$map = new Map();
$map->drawMap($row["pro_east"],$row["pro_north"]);
$map->addLocator($row["pro_east"],$row["pro_north"]);
$render .= $map->renderMap();
}
}
*/
$page = new HTML_Page2($page_defaults);
$page->setTitle("Postcode Tools");
$page->addStyleSheet(getDefaultCss());
$page->addStyleDeclaration('pre { color:#000000; }');
$page->addScript('js/global.js');
$page->addScript('js/scriptaculous/prototype.js');
$page->addBodyContent($header_and_menu);
$page->addBodyContent('<div id="content">');
$page->addBodyContent('<h4>Address Tools</h4>');
/*
$page->addBodyContent('<p>This page is for editing and correcting manually added addresses, and for replacing incorrectoly chosen
addresses for property we are marketing, client addresses, and contact addresses.</p>
<p>You should see the address record below, this address will either be obtained from the Royal Mail, or be manually entered.</p>
<p>Addresses are entered manually becuase either the correct address is not in the Royal Mail database, or the user is too lazy to
make an effort. Every manually entered address needs to be searched again to see if it is present in the Royal Mail database, and
if it is, the Royal Mail address should be used instead of the manually entered one. If the address is not present, then we need
to enter the map location, and to do this we find the nearest property and use that map location.</p>
<p>Step 1: the address shown immediately below is the one we are working on. Please use the form to try and find that address in
the royal Mail database. If you find it, click the save changes button, and then click the link entitled "Replace Deal Property"
below</p>');
*/
$page->addBodyContent($valid);
示例2:
function _renderForm(&$page)
{
$pageName = $page->getAttribute('name');
$tabPreview = array_slice($page->controller->_tabs, -2, 1);
$tab = ' ';
$p = new HTML_Page2(array('lineend' => PHP_EOL, 'tab' => $tab, 'doctype' => 'XHTML 1.0 Strict', 'language' => 'en', 'cache' => 'false'));
$p->disableXmlProlog();
$p->setTitle('PEAR::HTML_Progress2 - Generator');
$p->setMetaData('author', 'Laurent Laville');
$styles = '
body {
background-color: #7B7B88;
font-family: Verdana, Arial, helvetica;
font-size: 10pt;
}
h1 {
color: #FFC;
text-align: center;
}
.maintable {
width: 100%;
border-width: 0;
border-style: thin dashed;
border-color: #D0D0D0;
background-color: #EEE;
cellspacing: 2;
cellspadding: 3;
}
th {
text-align: center;
color: #FFC;
background-color: #AAA;
white-space: nowrap;
}
input {
font-family: Verdana, Arial, helvetica;
}
input.flat {
border-style: solid;
border-width: 2px 2px 0 2px;
border-color: #996;
}
';
// on preview tab, add progress bar javascript and stylesheet
if ($pageName == $tabPreview[0][0]) {
$pb = $page->controller->createProgressBar();
$pb->setTab($tab);
$p->addStyleDeclaration($styles . $pb->getStyle());
$p->addScriptDeclaration($pb->getScript());
$pbElement =& $page->getElement('progressBar');
$pbElement->setText($pb->toHtml() . '<br /><br />');
} else {
$p->addStyleDeclaration($styles);
}
$formTemplate = "\n<form{attributes}>" . "\n<table style=\"font-size: 8pt;\" class=\"maintable\">" . "\n{content}" . "\n</table>" . "\n</form>";
$headerTemplate = "\n<tr>" . "\n\t<th colspan=\"2\">" . "\n\t\t{header}" . "\n\t</th>" . "\n</tr>";
$elementTemplate = "\n\t<tr>" . "\n\t\t<td align=\"right\" valign=\"top\" width=\"30%\">" . "<!-- BEGIN required --><span style=\"color: #ff0000\">*</span><!-- END required -->" . "<b>{label}</b></td>" . "\n\t\t<td valign=\"top\" align=\"left\">" . "<!-- BEGIN error --><span style=\"color: #ff0000\">{error}</span><br /><!-- END error -->" . "\t{element}</td>" . "\n\t</tr>";
$groupTemplate = "<table><tr>{content}</tr></table>";
$groupElementTemplate = "<td>{element}<br />" . "<span style=\"font-size:10px;\">" . "<span class=\"label\">{label}</span>" . "</span></td>";
$renderer =& $page->defaultRenderer();
$renderer->setFormTemplate($formTemplate);
$renderer->setHeaderTemplate($headerTemplate);
$renderer->setElementTemplate($elementTemplate);
$renderer->setGroupTemplate($groupTemplate, 'name');
$renderer->setGroupElementTemplate($groupElementTemplate, 'name');
$page->accept($renderer);
$p->addBodyContent($renderer->toHtml());
$p->display();
}
示例3: CalendarPopup
if ($dea_type == 'Sales' && ($dea_status == 'Under Offer' || $dea_status == 'Exchanged' || $dea_status == 'Completed')) {
$page->addScriptDeclaration('
document.write(getCalendarStyles());
var popcaldea_exchdate = new CalendarPopup("popCalDivdea_exchdate");
var popcaldea_compdate = new CalendarPopup("popCalDivdea_compdate");
');
}
if ($dea_type == 'Lettings') {
$page->addScriptDeclaration('
document.write(getCalendarStyles());
var popcaldea_available = new CalendarPopup("popCalDivdea_available");
');
}
$page->addScriptDeclaration($additional_js);
$page->setBodyAttributes(array('onLoad' => $onLoad));
$page->addBodyContent($header_and_menu);
$page->addBodyContent('<div id="content">');
//$page->addBodyContent($navbar);
$page->addBodyContent($navbar);
$page->addBodyContent($form->renderForm());
if ($msg) {
$page->addBodyContent($msg);
}
//$page->addBodyContent($render);
$page->addBodyContent('</div>');
//$page->addBodyContent('<a href="changeLog.php?scope=deal&dea_id='.$dea_id.'">Log</a>');
$page->display();
exit;
} elseif ($_GET["action"] == "update") {
/*
extra actions required:
示例4: array
} else {
$form->addData($formData, $_GET);
$form->addHtml($form->addDiv($form->makeField("submit", "", "", "Save Changes", array('class' => 'submit'))));
}
$form->addHtml($form->addDiv($form->makeField("button", "", "", "Skip if Address Unknown", array('onClick' => 'document.location.href = \'?' . $_SERVER['QUERY_STRING'] . '&stage=viewing_address&skip=skip\'', 'class' => 'submit'))));
$form->addHtml("</fieldset>\n");
$form->addHtml("</div>\n");
$navbar_array = array('back' => array('title' => 'Back', 'label' => 'Back', 'link' => urldecode($searchLink)), 'search' => array('title' => 'Property Search', 'label' => 'Property Search', 'link' => 'property_search.php'));
$navbar = navbar2($navbar_array);
$page->setTitle("Arrange Viewing");
$page->addStyleSheet('css/styles.css');
$page->addScript('js/global.js');
$page->addScript('js/scriptaculous/prototype.js');
$page->addScriptDeclaration($additional_js);
$page->setBodyAttributes(array('onLoad' => $onLoad));
$page->addBodyContent($header_and_menu);
$page->addBodyContent('<div id="content">');
$page->addBodyContent($navbar);
$page->addBodyContent($form->renderForm());
$page->addBodyContent('</div>');
$page->display();
exit;
} else {
// validate second form, but this is only required is posctcode lookup isnt used
if (!$_GET["pro_pro_id"]) {
$result = new Validate();
$results = $result->process($formData1, $_GET);
$db_data2 = $results['Results'];
if (is_array($results['Results'])) {
$return = http_build_query($results['Results']);
}
示例5: getSelectionId
new Effect.Fade("floating_message");
}
-->
</script><div id="notify"><div id="floating_message">' . urldecode($_GET["msg"]) . '</div></div>';
}
$navbar_array = array('back' => array('title' => 'Back', 'label' => 'Back', 'link' => $searchLink), 'search' => array('title' => 'Contact Search', 'label' => 'Contact Search', 'link' => 'contact.php'));
$navbar = navbar2($navbar_array);
$page->setTitle("Contact > {$con_fname} {$con_sname}");
$page->addStyleSheet(getDefaultCss());
$page->addScript('js/global.js');
$page->addScript('js/scriptaculous/prototype.js');
$page->addScript('js/scriptaculous/scriptaculous.js');
$page->addScriptDeclaration($additional_js);
$page->setBodyAttributes(array('onLoad' => $onLoad));
//,'onKeyPress'=>'keyPressShowDiv(event.keyCode)'
$page->addBodyContent($header_and_menu);
$page->addBodyContent('<div id="content">');
$page->addBodyContent($navbar);
$page->addBodyContent($form->renderForm());
$page->addBodyContent('</div>');
$page->addBodyContent('<div id="hint"></div><script type="text/javascript">
new Ajax.Autocompleter("con_company","hint","ajax_contact.php",{afterUpdateElement : getSelectionId});
function getSelectionId(text, li) {
document.getElementById(\'com_id\').value = li.id;
var msg = \'Do you want to update this contact with company info?\';
var url = \'' . $_SERVER['SCRIPT_NAME'] . '?' . $_SERVER['QUERY_STRING'] . '&new_com_id=\'+li.id;
//if (confirm(msg)) {
//alert(url);
document.location.href = url;
//}
}
示例6: date
</tr>
<tr>
<td><a href="appointment_search.php?action=advanced_search&status=Active&branch=' . $to_pass["branch"] . '&date_from=' . date('d/m/Y') . '&date_to=' . date('d/m/Y') . '&searchLink=' . $_SERVER['PHP_SELF'] . urlencode('?' . $_SERVER['QUERY_STRING']) . '">Active: ' . $countActive . '</a></td>
</tr>
<tr>
<td><a href="appointment_search.php?action=advanced_search&status=Cancelled&branch=' . $to_pass["branch"] . '&date_from=' . date('d/m/Y') . '&date_to=' . date('d/m/Y') . '&searchLink=' . $_SERVER['PHP_SELF'] . urlencode('?' . $_SERVER['QUERY_STRING']) . '">Cancelled: ' . $countCancelled . '</a></td>
</tr>
<tr>
<td><a href="appointment_search.php?action=advanced_search&status=Deleted&branch=' . $to_pass["branch"] . '&date_from=' . date('d/m/Y') . '&date_to=' . date('d/m/Y') . '&searchLink=' . $_SERVER['PHP_SELF'] . urlencode('?' . $_SERVER['QUERY_STRING']) . '">Deleted: ' . $countDeleted . '</a></td>
</tr>
</table>
</div>
';
$render .= '</td>
</tr>
</table>';
$onLoad = 'writeCalHeight(\'cal_iframe\',\'' . $allDayDivHeight . '\');';
$onResize = 'writeCalHeight(\'cal_iframe\',\'' . $allDayDivHeight . '\');';
$page = new HTML_Page2($page_defaults);
$page->setTitle("Calendar");
$page->addStyleSheet(getDefaultCss());
$page->addScript('js/global.js');
$page->addScript(GLOBAL_URL . 'js/overlib/overlibmws.js');
$page->setBodyAttributes(array('onResize' => $onResize));
//'onLoad'=>$onLoad,
$page->addBodyContent($header_and_menu);
$page->addBodyContent('<div id="content_cal">');
$page->addBodyContent($render);
$page->addBodyContent('</div>');
$page->addBodyContent('<script type="text/javascript"> window.onLoad = ' . $onLoad . ' </script>');
$page->display();
示例7: Sales
<td>' . preg_replace("/\\([a-z0-9\\ ]+\\)/", "", $row["pro_addr"]) . '</td>
<td class="nowrap">' . $row["use_name"] . '</td>
<td><a href="appointment_edit.php?app_id=' . $row["app_id"] . '&searchLink=' . $_SERVER['SCRIPT_NAME'] . '?' . $_SERVER['QUERY_STRING'] . '"><img src="/images/sys/admin/icons/edit-icon.png" width="16" height="16" border="0" alt="View Appointment" /></a></td>
<td><a href="/admin4/appointment/feedback/id/id=' . $row["d2a_id"] . '"><img src="/images/sys/admin/icons/comment_add.gif" width="16" height="16" border="0" alt="Leave Feedback" /></a></td>
</tr>
';
$countLettings++;
}
}
$feedback = '
<h1>Missing Feedback Sales (' . $countSales . ')</h1>
<table border="0" cellpadding="5" cellspacing="0">
' . $feedback . '</table>';
$feedback2 = '
<h1>Missing Feedback Lettings (' . $countLettings . ')</h1>
<table border="0" cellpadding="5" cellspacing="0">
' . $feedback2 . '</table>';
}
$page = new HTML_Page2($page_defaults);
$page->setTitle("Leave Feedback");
$page->addStyleSheet(getDefaultCss());
$page->addScriptDeclaration($js);
$page->addScript('js/global.js');
$page->addBodyContent($header_and_menu);
$page->addBodyContent('<div id="home"><table width="100%" cellpadding="10"><tr valign="top"><td width="50%">');
$page->addBodyContent($feedback);
$page->addBodyContent('</td><td width="50%">');
$page->addBodyContent($feedback2);
$page->addBodyContent('</td></tr></table>');
$page->addBodyContent('</div>');
$page->display();
示例8: Validate
</td>
</tr>';
}
$form->addHtml('<table width="600" cellpadding="5" cellspacing="0">' . $html . '</table>');
$form->addHtml("</fieldset>\n");
}
/////////////////////////////////////////////////////////////////////////////////
// start a new page
$page = new HTML_Page2($page_defaults);
$page->setTitle("Directory > Edit");
$page->addStyleSheet(GLOBAL_URL . 'css/styles.css');
$page->addScript(GLOBAL_URL . 'js/global.js');
$page->addScript(GLOBAL_URL . 'js/scriptaculous/prototype.js');
$page->addScriptDeclaration($source['js']);
$page->setBodyAttributes(array('onLoad' => $source['onload']));
$page->addBodyContent('<div id="content">');
$page->addBodyContent($menu);
$page->addBodyContent('<p><a href="edit.php?dir_id=' . $dir_id . '">Back</a>');
$page->addBodyContent($form->renderForm());
$page->addBodyContent('</div>');
$page->display();
} else {
$result = new Validate();
$results = $result->process($formData1, $_POST);
if ($results['Errors']) {
echo error_message($results['Errors'], urlencode($return));
exit;
}
#print_r($_POST);
#print_r($_FILES);
require_once "HTTP/Upload.php";
示例9: dTree
d = new dTree(\'d\');
d.config.closeSameLevel = true;
d.config.useIcons = false;
d.config.useLines = false;
d.config.useCookies = false;
d.add(1,-1,\'Directory\');
' . $js_tree . '
document.write(d);
//-->
</script>
';
$form->addHtml("<fieldset>\n");
$form->addLegend('Browse Tree');
$form->addHtml('<div id="inset">' . $render . '</div>');
$form->addHtml("</fieldset>\n");
$form->addHtml("</div>\n");
// start a new page
$page = new HTML_Page2($page_defaults);
$page->setTitle("Edit Directory Node");
$page->addStyleSheet(GLOBAL_URL . 'css/styles.css');
$page->addScript(GLOBAL_URL . 'js/global.js');
$page->addStyleSheet('dtree.css');
$page->addScript('dtree.js');
$page->addBodyContent('<div id="content">');
$page->addBodyContent($menu);
$page->addBodyContent($form->renderForm());
$page->addBodyContent('</div>');
$page->display();
示例10: getSelectionId
$form->ajaxPostcode("by_freetext", "pro");
$form->addField("hidden", "p2c_type", "", 'Work');
$form->addHtml("</fieldset>\n");
// start a new page
$page = new HTML_Page2($page_defaults);
$navbar_array = array('back' => array('title' => 'Back', 'label' => 'Back', 'link' => $searchLink), 'search' => array('title' => 'Contact Search', 'label' => 'Contact Search', 'link' => 'contact.php'));
$navbar = navbar2($navbar_array);
$page->setTitle("New Contact");
$page->addStyleSheet(getDefaultCss());
$page->addScript('js/global.js');
$page->addScript('js/scriptaculous/prototype.js');
$page->addScript('js/scriptaculous/scriptaculous.js');
$page->addScriptDeclaration($additional_js);
$page->setBodyAttributes(array('onLoad' => $onLoad));
//,'onKeyPress'=>'keyPressShowDiv(event.keyCode)'
$page->addBodyContent($header_and_menu);
$page->addBodyContent('<div id="content">');
$page->addBodyContent($navbar);
$page->addBodyContent($form->renderForm());
$page->addBodyContent('</div>');
$page->addBodyContent('<div id="hint"></div><script type="text/javascript">
new Ajax.Autocompleter("con_company","hint","ajax_contact.php",{afterUpdateElement : getSelectionId});
function getSelectionId(text, li) {
var url = \'' . $_SERVER['SCRIPT_NAME'] . '?' . $_SERVER['QUERY_STRING'] . '&new_com_id=\'+li.id;
document.location.href = url;
}
</script>');
$page->display();
} else {
// if form is submitted
//print_r($_POST);
示例11: Map
';
$map = new Map();
$map->drawMap($row["pro_east"], $row["pro_north"]);
$map->addLocator($row["pro_east"], $row["pro_north"]);
$render .= $map->renderMap();
}
}
$page = new HTML_Page2($page_defaults);
$page->setTitle("Postcode Tools");
$page->addStyleSheet(getDefaultCss());
$page->addStyleDeclaration('pre { color:#000000; }');
$page->addScript('js/global.js');
$page->addScript('js/scriptaculous/prototype.js');
$page->addBodyContent($header_and_menu);
$page->addBodyContent('<div id="home">');
$page->addBodyContent('<h4>Address Tools</h4>');
/*
$page->addBodyContent('<p>This page is for editing and correcting manually added addresses, and for replacing incorrectoly chosen
addresses for property we are marketing, client addresses, and contact addresses.</p>
<p>You should see the address record below, this address will either be obtained from the Royal Mail, or be manually entered.</p>
<p>Addresses are entered manually becuase either the correct address is not in the Royal Mail database, or the user is too lazy to
make an effort. Every manually entered address needs to be searched again to see if it is present in the Royal Mail database, and
if it is, the Royal Mail address should be used instead of the manually entered one. If the address is not present, then we need
to enter the map location, and to do this we find the nearest property and use that map location.</p>
<p>Step 1: the address shown immediately below is the one we are working on. Please use the form to try and find that address in
the royal Mail database. If you find it, click the save changes button, and then click the link entitled "Replace Deal Property"
below</p>');
*/
$page->addBodyContent($prop);
示例12:
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// | PHP Version 4 |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997 - 2004 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 3.0 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available at through the world-wide-web at |
// | http://www.php.net/license/3_0.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Author: Klaus Guenther <klaus@capitalfocus.org> |
// +----------------------------------------------------------------------+
//
// $Id$
require_once 'HTML/Page2.php';
// With no initial settings, the following defaults are set:
// -> lineends = unix (\12)
// -> doctype = XHTML 1.0 Transitional
// (if set to "none", doctype and language are not set)
// -> language = en
// -> cache = false
$page = new HTML_Page2();
// Page title defaults to "New XHTML 1.0 Transitional Compliant Page"
$page->addBodyContent('<h1>Headline</h1>');
$page->addBodyContent('<p>Copyright 2003 The PHP Group</p>');
$bodyContent = $page->getBodyContent();
echo $bodyContent;
示例13: while
<table>
';
while ($row = $q->fetchRow()) {
$clients .= '
<tr class="trOff" onMouseOver="trOver(this)" onMouseOut="trOut(this)" onClick="trClick(\'client_edit.php?cli_id=' . $row["cli_id"] . '&searchLink=' . $_SERVER['SCRIPT_NAME'] . '?' . $_SERVER['QUERY_STRING'] . '\')">
<td height="16">' . $row["cli_name"] . '<br />' . $row["pro_addr"] . '</td>
<td>' . $row["tel"] . '</td>
<td>Sales: ' . $row["cli_sales"] . '<br />Lettings: ' . $row["cli_lettings"] . '</td>
</tr>
';
}
$clients .= '</table>
</div>';
}
$renderLeft .= '<div>' . $clients . '</div>';
$render = '
<h4>Applicants</h4>
<p style="margin-left:10px"><a href="client_search.php">Search Applicants</a></p>
<p style="margin-left:10px"><a href="applicant_add.php">New Applicant</a></p>
';
$page = new HTML_Page2($page_defaults);
$page->setTitle("Applicants");
$page->addStyleSheet(getDefaultCss());
$page->addScript('js/global.js');
$page->addBodyContent($header_and_menu);
$page->addBodyContent('<div id="home">');
$page->addBodyContent($render);
$page->addBodyContent('<div class="home Right">' . $renderRight . '</div>');
$page->addBodyContent('<div class="home Left">' . $renderLeft . '</div>');
$page->addBodyContent('</div>');
$page->display();
示例14: urlencode
$form->addField("hidden", "searchLink", "", urlencode($searchLink));
$form->addHtml("<fieldset>\n");
$form->addHtml('<div class="block-header">Mailshot</div>');
$form->addHtml('<div id="' . $formName . '">');
$form->addHtml('<p class="appInfo">' . $count . ' matching clients found</p>');
$form->addHtml($form->addRow('select', 'mailshot_type', 'Type', '', '', $mailshot_types, ''));
$form->addHtml($form->addDiv($form->makeField("submit", $formName, "", "Send Now!", array('class' => 'submit'))));
$form->addHtml('</div>');
$form->addHtml("</fieldset>\n");
$navbar_array = array('back' => array('title' => 'Back', 'label' => 'Back', 'link' => $searchLink), 'search' => array('title' => 'Property Search', 'label' => 'Property Search', 'link' => 'property_search.php'));
$navbar = navbar2($navbar_array);
$page = new HTML_Page2($page_defaults);
$page->setTitle("Mailshot");
$page->addStyleSheet(getDefaultCss());
$page->addScript('js/global.js');
$page->addBodyContent($header_and_menu);
$page->addBodyContent('<div id="content">');
$page->addBodyContent($navbar);
$page->addBodyContent($form->renderForm());
$page->addBodyContent('<a href="/admin4/instruction/customMailshot/id/' . $_GET['dea_id'] . '">Custom Mailshot</a>');
$page->addBodyContent('</div>');
$page->display();
exit;
} elseif ($_POST["action"] == "send") {
$mailshot_type = $_POST["mailshot_type"];
// mailshot sent, add to database
$db_data["mai_deal"] = $dea_id;
$db_data["mai_type"] = $mailshot_type;
$db_data["mai_count"] = $count;
$db_data["mai_user"] = $_SESSION["auth"]["use_id"];
$db_data["mai_date"] = $date_mysql;
示例15: Weeks
<td><a href="http://www.xteleurope.com" target="_blank">Xtel Europe</a> - 01342 335000</td>
<td>Xtel now handle all billing and technical issues instead of BT </td>
</tr>
<tr valign="top" bgcolor="#CCCCCC">
<td colspan="3"><strong>Mobile Phones</strong></td>
</tr>
<tr valign="top">
<td>o2</td>
<td>Mike Rogerson - 01928 702 308<br> <a href="mailto:mike.rogerson@o2.com">mike.rogerson@o2.com</a>
</td>
<td>Lost or stolen phones must be cancelled. </td>
</tr>
<tr valign="top">
<td>T-Mobile</td>
<td>Jonathon Weeks (3b Direct)<br>
0151 335 3600 </td>
<td>Lost or stolen phones must be cancelled. </td>
</tr>
</table>';
$navbar_array = array('back' => array('title' => 'Back', 'label' => 'Back', 'link' => $_GET["searchLink"]), 'search' => array('title' => 'Property Search', 'label' => 'Property Search', 'link' => '../property_search.php'));
$navbar = navbar2($navbar_array);
$page = new HTML_Page2($page_defaults);
$page->setTitle("Technical Support Contacts");
$page->addStyleSheet('../css/styles.css');
$page->addScript('../js/global.js');
$page->addBodyContent($header_and_menu);
$page->addBodyContent('<div id="content_wide">');
$page->addBodyContent($navbar);
$page->addBodyContent($render);
$page->addBodyContent('</div>');
$page->display();