Exemplo n.º 1
0
function drawTop($headcontent = false)
{
    global $_josh, $page, $user;
    ob_start('browser_output');
    error_debug('starting top', __FILE__, __LINE__);
    if ($_josh['db']['language'] == 'mysql') {
        url_header_utf8();
    }
    if (empty($page['helptext'])) {
        $page['helptext'] = getString('help_empty');
    }
    $return = draw_doctype() . draw_container('head', ($_josh['db']['language'] == 'mysql' ? draw_meta_utf8() : '') . draw_container('title', $page['title']) . draw_favicon(DIRECTORY_WRITE . '/favicon.png') . draw_css_src('/css/global.css', 'screen') . draw_css_src('/css/print.css', 'print') . draw_css_src('/css/ie.css', 'ie') . draw_css_src(DIRECTORY_WRITE . '/screen.css', 'screen') . lib_get('jquery') . draw_javascript_src() . draw_javascript_src('/js/global.js') . draw_css('
				#left table.left td.head, #left div.display div.title { background-color:#' . $page['color'] . '; }
				#left table.table th.table_title, #left form fieldset legend span, #left table.navigation { background-color:#' . $page['color'] . '; }
				#left table.navigation tr, #left form fieldset div.admin, #left table td.hilite { background-color:#' . $page['hilite'] . '; }
			') . draw_javascript('
			function confirmDelete(id) {
				if (confirm("' . getString('are_you_sure') . '")) {
					var newloc = "' . url_query_add(array('action' => 'delete', 'delete_id' => 'replaceme'), false) . '";
					location.href = newloc.replace("replaceme", id);
				}
			}
			function changeDept(id, user_id) {
				location.href="' . $_josh['request']['path_query'] . '&newDeptID=" + id + "&contactID=" + user_id;
			}
			') . drawSyndicateLink('bb') . $headcontent);
    $return .= draw_body_open() . '
		<div id="container">
			' . draw_div('banner', draw_img(DIRECTORY_WRITE . '/banner' . langExt() . '.png', $_SESSION['homepage'])) . '
			<div id="left">
				<div id="help">
					<div id="help_buttons">' . draw_link($_SESSION['homepage'], getString('home'), false, 'left') . draw_link('javascript:helpShow(' . user() . ')', getString('help_show'), false, array('class' => 'right' . ($user['help'] ? ' hidden' : false), 'id' => 'show_help_btn')) . draw_link('javascript:helpHide(' . user() . ')', getString('help_hide'), false, array('class' => 'right' . (!$user['help'] ? ' hidden' : false), 'id' => 'hide_help_btn'));
    if ($_SESSION['is_admin']) {
        if ($page['id']) {
            $return .= draw_link('/a/admin/page.php?id=' . $page['id'], getString('page_edit_info'), false, 'right');
        } else {
            $return .= draw_link('/a/admin/page.php?module_id=' . $page['module_id'] . '&modulette_id=' . $page['modulette_id'] . '&url=' . urlencode($_josh['request']['page']), 'Create Page Here', false, 'right');
        }
    }
    $return .= '</div><div id="help_text"';
    if (!$user['help']) {
        $return .= ' class="hidden"';
    }
    $return .= '>' . $page['helptext'] . '</div></div>';
    if ($_josh['request']['folder'] == 'helpdesk') {
        $return .= drawNavigationHelpdesk();
    }
    $return .= drawNavigation();
    $_josh['drawn']['top'] = true;
    error_debug('finished drawing top', __FILE__, __LINE__);
    return $return;
}
Exemplo n.º 2
0
<?php

include '../../include.php';
echo draw_doctype();
echo draw_container('head', draw_meta_utf8() . draw_container('title', 'Newsletter'));
?>
<body style="background-color:#fff;margin:0px;">
<div style="padding:15px;">
<table width="650" cellpadding="0" cellspacing="0" border="0" align="center" style="font-family:Arial,Helvetica,sans-serif; font-size:11px; line-height:16px;">
        <tr>
			<td width="85" height="117"><img src="http://members.sitesofconscience.org/a/soc-newsletter/header1.jpg" alt="header1" width="85" height="117" border="0"/></td>
			<td width="5" bgcolor="#8dc13f"><img src="http://members.sitesofconscience.org/a/soc-newsletter/spacer.png" width="5" height="5" border="0"/></td>
			<td width="85" height="117"><img src="http://members.sitesofconscience.org/a/soc-newsletter/header2.jpg" alt="header1" width="85" height="117" border="0"/></td>
			<td width="5" bgcolor="#8dc13f"><img src="http://members.sitesofconscience.org/a/soc-newsletter/spacer.png" width="5" height="5" border="0"/></td>
			<td width="85" height="117"><img src="http://members.sitesofconscience.org/a/soc-newsletter/header3.jpg" alt="header1" width="85" height="117" border="0"/></td>
			<td width="5" bgcolor="#8dc13f"><img src="http://members.sitesofconscience.org/a/soc-newsletter/spacer.png" width="5" height="5" border="0"/></td>
			<td width="380" bgcolor="#3397ba" align="center"><img src="http://members.sitesofconscience.org/a/soc-newsletter/newsletter-logo.png" alt="logo" width="380" height="117"/></td>
        </tr>
        <tr><td colspan="7" bgcolor="#8dc13f" height="5"><img src="http://members.sitesofconscience.org/a/soc-newsletter/spacer.png" width="5" height="5" border="0"/></td></tr>
        <tr>
			<td colspan="3" valign="top" style="padding:8px;">
				<!--left side bar-->
				<div style="margin:8px 0px 8px 0px;">
				
				<div style="color:#fff; background-color:#8dc13f;font-size:12px;font-weight:bold;padding:3px 8px 3px 8px;">Memory Issues in the News</div>
				<ul style="list-style-type:none; margin:10px 0px 10px 0px; padding:0px;">
				<li style="margin:0px 0px 5px 0px;padding:0px 0px 0px 8px;"><a style="color:#3397ba;" href="http://www.nytimes.com/2009/08/28/world/europe/28iht-moscow.html">Re-Stalinization of a Moscow Subway Station</a></li>
				<li style="margin:0px 0px 5px 0px;padding:0px 0px 0px 8px;"><a style="color:#3397ba;" href="http://www.google.com/hostednews/afp/article/ALeqM5jfpRI3pTnVJalXXbhQcyQmmOx5Kg">Russian Historians Fear Crackdown on Sensitive Research</a></li>
				<li style="margin:0px 0px 5px 0px;padding:0px 0px 0px 8px;"><a style="color:#3397ba;" href="http://www.nytimes.com/2009/10/31/world/europe/31russia.html?_r=2">Don't Gloss over Stalin's Crimes, Medvedev Says</a></li>
				<li style="margin:0px 0px 5px 0px;padding:0px 0px 0px 8px;"><a style="color:#3397ba;" href="http://www.latimes.com/news/nationworld/world/la-fg-russia-stalin2-2009nov02,0,2551543.story">Russia Reconsiders: Was Stalin Really so Bad?</a></li>
				<li style="margin:0px 0px 5px 0px;padding:0px 0px 0px 8px;"><a style="color:#3397ba;" href="http://women.timesonline.co.uk/tol/life_and_style/women/the_way_we_live/article6937923.ece">Russian Textbooks Attempt to Rewrite History</a></li>