0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
<body>';}function template_body_above(){ global $context, $settings, $options, $scripturl, $txt, $modSettings; echo !empty($settings['forum_width']) ? '<div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '', ' <div id="header"><div class="frame"> '; // the upshrink image, right-floated echo ' <div id="siteslogan" class="floatright">' . $settings['site_slogan'] . '</div> <div id="upper_section" class="middletext"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '> <div class="user">'; // If the user is logged in, display stuff like their name, new messages, etc. if ($context['user']['is_logged']) { if (!empty($context['user']['avatar'])) echo ' <p class="avatar">', $context['user']['avatar']['image'], '</p>'; echo ' <ul class="reset"> <li class="greeting">', $txt['hello_member_ndt'], ' <span><a href="', $scripturl, '?action=pm','">', $context['user']['name'] , '[/url]</span></li> <li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '[/url]</li> <li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '[/url]</li>'; // Is the forum in maintenance mode? if ($context['in_maintenance'] && $context['user']['is_admin']) echo ' <li class="notice">', $txt['maintain_mode_on'], '</li>'; // Are there any members waiting for approval? if (!empty($context['unapproved_members'])) echo ' <li>', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=admin;area=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '[/url] ', $txt['approve_members_waiting'], '</li>'; if (!empty($context['open_mod_reports']) && $context['show_open_reports']) echo ' <li><a href="', $scripturl, '?action=moderate;area=reports">', sprintf($txt['mod_reports_waiting'], $context['open_mod_reports']), '[/url]</li>'; echo ' </ul>'; } // Otherwise they're a guest - this time ask them to either register or login - lazy bums... elseif (!empty($context['show_login_bar'])) { echo ' <script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script> <form id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '> <div class="info">', sprintf($txt['welcome_guest'], $txt['guest_title']), '</div> <input type="text" name="user" size="10" class="input_text" /> <input type="password" name="passwrd" size="10" class="input_password" /> <select name="cookielength"> <option value="60">', $txt['one_hour'], '</option> <option value="1440">', $txt['one_day'], '</option> <option value="10080">', $txt['one_week'], '</option> <option value="43200">', $txt['one_month'], '</option> <option value="-1" selected="selected">', $txt['forever'], '</option> </select> <input type="submit" value="', $txt['login'], '" class="button_submit" /> <div class="info">', $txt['quick_login_dec'], '</div>'; if (!empty($modSettings['enableOpenID'])) echo ' <input type="text" name="openid_identifier" id="openid_url" size="25" class="input_text openid_login" />'; echo ' <input type="hidden" name="hash_passwrd" value="" /> </form>'; } echo ' </div> <div class="news normaltext"> <form id="search_form" action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '"> <a href="', $scripturl, '"><img src="', $settings['images_url'], '/nlogo.png" style="margin: 2px;" alt="" />[/url] <span class="smalltext">', $context['current_time'], '</span> <input type="text" name="search" value="" class="input_text" /> <input type="submit" name="submit" value="', $txt['search'], '" class="button_submit" /> <input type="hidden" name="advanced" value="0" />'; // Search within current topic? if (!empty($context['current_topic'])) echo ' <input type="hidden" name="topic" value="', $context['current_topic'], '" />'; // If we're on a certain board, limit it to this board . elseif (!empty($context['current_board'])) echo ' <input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />'; echo '</form>'; echo ' </div> </div> <br class="clear" />';