function drawBottom() { global $_josh, $modules, $helpdeskOptions, $helpdeskStatus, $modulettes, $page; $return = ' </div> <div id="right"> <div id="tools"> <a class="right button" href="/index.php?action=logout">' . getString('log_out') . '</a> ' . getString('hello') . ' <a href="/staff/view.php?id=' . $_SESSION['user_id'] . '"><b>' . $_SESSION['full_name'] . '</b></a>'; //search $return .= '<form name="search" accept-charset="utf-8" method="get" action="/staff/search.php" onsubmit="javascript:return doSearch(this);"> <input type="text" name="q" placeholder="' . getString('staff_search') . '"/> </form>'; //channel or language selectors if (getOption('channels')) { //$return .= draw_form_select('channel_id', 'SELECT id, title' . langExt() . ' title FROM channels WHERE is_active = 1 AND is_private = 0 ORDER BY precedence', $_SESSION['channel_id'], false, 'channels', 'url_query_set(\'channel_id\', this.value)', getString('networks_view_all')); $return .= draw_form_select('channel_id', 'SELECT c.id, c.title' . langExt() . ' title FROM channels c WHERE c.is_active = 1 AND (c.is_private = 0 OR (SELECT COUNT(*) FROM users_to_channels u2c WHERE u2c.channel_id = c.id AND u2c.user_id = ' . user() . ') > 0) ORDER BY precedence', $_SESSION['channel_id'], false, 'channels', 'url_query_set(\'channel_id\', this.value)', getString('networks_view_all')); } if (getOption('languages')) { $return .= draw_form_select('language_id', 'SELECT id, title FROM languages ORDER BY title', $_SESSION['language_id'], true, 'languages', 'url_query_set(\'language_id\', this.value)'); } //links $links = db_table('SELECT title' . langExt() . ' title, url FROM links WHERE is_active = 1 ORDER BY precedence'); foreach ($links as &$l) { $l = draw_link($l['url'], $l['title'], true); } $return .= draw_div('#links', draw_container('h3', getString('links')) . (admin() ? draw_link('/a/admin/links.php', getString('edit'), false, array('class' => 'right button')) : false) . draw_list($links)); $return .= '</div>'; foreach ($modules as $m) { $return .= ' <table class="right ' . $m['folder'] . '" cellspacing="1"> <tr> <td colspan="2" class="head" style="background-color:#' . $m['color'] . ';"> <a href="/' . $m['folder'] . '/" class="left">' . $m['title'] . '</a> ' . draw_img('/images/arrows-new/' . format_boolean($m['is_closed'], 'up|down') . '.png', url_query_add(array('module' => $m['id']), false)) . ' </td> </tr>'; if (!$m['is_closed']) { include DIRECTORY_ROOT . DIRECTORY_SEPARATOR . $m['folder'] . DIRECTORY_SEPARATOR . 'pallet.php'; } $return .= '</table>'; } $return .= '</div> <div id="footer">'; //if (admin()) $return .= 'page rendered in ' . format_time_exec() . '<br/>'; $return .= getString('copyright') . '<br/>'; if (getOption('legal')) { $return .= draw_link('/login/legal.php', getString('legal_title')); } $return .= '</div></div> <div id="subfooter"></div> </body> </html>'; //record pageview if ($page['id'] && user()) { db_query('INSERT INTO pages_views ( page_id, user_id, timestamp ) VALUES ( ' . $page['id'] . ', ' . user('NULL') . ', GETDATE() )'); } return $return; }
$holidays[24] = "Christmas"; } if (date("w", mktime(0, 0, 0, 12, 25, $_GET['year'])) == 0) { $holidays[26] = "Christmas"; } //obscure possibility that new year's is on a saturday; take friday off (score) if (date("w", mktime(0, 0, 0, 12, 31, $_GET['year'])) == 5) { $holidays[31] = "New Year's"; } } } echo drawTableStart(); echo drawHeaderRow($_josh['months'][$_GET['month'] - 1] . " " . $_GET['year'], 7, getString('add_new'), "#bottom"); echo '<tr>'; foreach ($_josh['days'] as $day) { echo draw_container('th', $day, 'c'); } echo '</tr>'; // === OUTER LOOP: WEEKS ==================================================== for ($week = 1, $thisday = 1; $thisday < $lastday; $week++) { ?> <tr class="calendar"><?php // === INNER LOOP: DAYS====================================================== for ($day = 1; $day <= 7; $day++) { $thisday = 7 * ($week - 1) + $day - $firstday; if ($thisday > 0 && $thisday <= $lastday) { $bgcolor = "#ffffff"; if ($_GET['year'] == $_josh['year'] && $_GET['month'] == $_josh['month'] && $thisday == $_josh['today']) { $bgcolor = "#fffceo"; } if (isset($holidays[$thisday])) {
<?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>
function addGroup($text = "") { global $rows; $rows .= draw_container("tr", draw_container("td", $text, array("colspan" => 2)), array("class" => "group")); }
<?php $pageIsPublic = true; include "../include.php"; echo drawSimpleTop(getString('legal_title')); echo drawMessage(draw_container('h1', getString('legal_title')) . getString('legal_message')); echo drawSimpleBottom();
<?php $result = db_query('SELECT id, title' . langExt() . ' title, is_admin, replies FROM bb_topics t ' . getChannelsWhere('bb_topics', 't', 'topic_id') . ' ORDER BY thread_date DESC', 4); if (db_found($result)) { while ($r = db_fetch($result)) { $return .= draw_container('tr', '<td width="90%"><a href="/' . $m["folder"] . '/topic.php?id=' . $r["id"] . '">' . format_string($r["title"], 39) . '</a></td> <td width="10%" align="center">' . $r["replies"] . '</td>', $r["is_admin"] == 1 ? array('class' => 'admin') : false); } } else { $return .= drawEmptyResult("No topics added yet.", 2); }