PageRenderTime 41ms CodeModel.GetById 2ms app.highlight 28ms RepoModel.GetById 1ms app.codeStats 1ms

/upload/templates/default/page_header.tpl

http://torrentpier2.googlecode.com/
Smarty Template | 669 lines | 626 code | 43 blank | 0 comment | 33 complexity | e1ad6f6ac6c47aef4a02feab866726aa MD5 | raw file
  1<!DOCTYPE html>
  2<html>
  3<head>
  4<title><!-- IF PAGE_TITLE -->{PAGE_TITLE} :: {SITENAME}<!-- ELSE -->{SITENAME}<!-- ENDIF --></title>
  5<meta http-equiv="Content-Type" content="text/html; charset={L_CONTENT_ENCODING}" />
  6<meta http-equiv="Content-Style-Type" content="text/css" />
  7{META}
  8<link rel="stylesheet" href="{STYLESHEET}?v={$bb_cfg['css_ver']}" type="text/css">
  9<link rel="icon" type="image/png" href="{SITE_URL}images/logo/logo_big.png" />
 10<link rel="shortcut icon" href="{SITE_URL}favicon.ico" type="image/x-icon">
 11<link rel="search" type="application/opensearchdescription+xml" href="{SITE_URL}opensearch_desc.xml" title="{SITENAME} (Forum)" />
 12<link rel="search" type="application/opensearchdescription+xml" href="{SITE_URL}opensearch_desc_bt.xml" title="{SITENAME} (Tracker)" />
 13
 14<script type="text/javascript" src="{SITE_URL}misc/js/jquery.pack.js?v={$bb_cfg['js_ver']}"></script>
 15<script type="text/javascript" src="{SITE_URL}misc/js/main.js?v={$bb_cfg['js_ver']}"></script>
 16
 17<!-- IF INCLUDE_BBCODE_JS -->
 18<script type="text/javascript" src="{SITE_URL}misc/js/bbcode.js?v={$bb_cfg['js_ver']}"></script>
 19<script type="text/javascript">
 20	window.BB = {};
 21	window.encURL = encodeURIComponent;
 22</script>
 23<script type="text/javascript">
 24var postImg_MaxWidth = screen.width - {POST_IMG_WIDTH_DECR_JS};
 25var postImgAligned_MaxWidth = Math.round(screen.width/3);
 26var attachImg_MaxWidth = screen.width - {ATTACH_IMG_WIDTH_DECR_JS};
 27var ExternalLinks_InNewWindow = '{EXT_LINK_NEW_WIN}';
 28var hidePostImg = false;
 29
 30function copyText_writeLink(node)
 31{
 32	if (!is_ie) return;
 33	document.write('<p style="float: right;"><a class="txtb" onclick="if (ie_copyTextToClipboard('+node+')) alert(\'{L_CODE_COPIED}\'); return false;" href="#">{L_CODE_COPY}</a></p>');
 34}
 35function initPostBBCode(context)
 36{
 37	$('span.post-hr', context).html('<hr align="left" />');
 38	initCodes(context);
 39	initQuotes(context);
 40	initExternalLinks(context);
 41	initPostImages(context);
 42	initSpoilers(context);
 43	initMedia(context);
 44}
 45function initCodes(context)
 46{
 47	$('div.c-body', context).each(function(){
 48		var $c = $(this);
 49		$c.before('<div class="c-head"><b>{L_CODE}:</b></div>');
 50	});
 51}
 52function initQuotes(context)
 53{
 54	$('div.q', context).each(function(){
 55		var $q = $(this);
 56		var name = $(this).attr('head');
 57		var q_title = (name ? '<b>'+name+'</b> {L_WROTE}:' : '<b>{L_QUOTE}</b>');
 58		if ( quoted_pid = $q.children('u.q-post:first').text() ) {
 59			var on_this_page = $('#post_'+quoted_pid).length;
 60			var href = (on_this_page) ? '#'+ quoted_pid : './viewtopic.php?p='+ quoted_pid +'#'+ quoted_pid;
 61			q_title += ' <a href="'+ href +'" title="{L_GOTO_QUOTED_POST}"><img src="{SITE_URL}templates/default/images/icon_latest_reply.gif" class="icon2" alt="" /></a>';
 62		}
 63		$q.before('<div class="q-head">'+ q_title +'</div>');
 64	});
 65}
 66function initPostImages(context)
 67{
 68	if (hidePostImg) return;
 69	var $in_spoilers = $('div.sp-body var.postImg', context);
 70	$('var.postImg', context).not($in_spoilers).each(function(){
 71		var $v = $(this);
 72		var src = $v.attr('title');
 73		var $img = $('<img src="'+ src +'" class="'+ $v.attr('class') +'" alt="pic" />');
 74		$img = fixPostImage($img);
 75		var maxW = ($v.hasClass('postImgAligned')) ? postImgAligned_MaxWidth : postImg_MaxWidth;
 76		$img.bind('click', function(){ return imgFit(this, maxW); });
 77		if (user.opt_js.i_aft_l) {
 78			$('#preload').append($img);
 79			var loading_icon = '<a href="'+ src +'" target="_blank"><img src="{SITE_URL}images/pic_loading.gif" alt="" /></a>';
 80			$v.html(loading_icon);
 81			if ($.browser.msie) {
 82				$v.after('<wbr>');
 83			}
 84			$img.one('load', function(){
 85				imgFit(this, maxW);
 86				$v.empty().append(this);
 87			});
 88		}
 89		else {
 90			$img.one('load', function(){ imgFit(this, maxW) });
 91			$v.empty().append($img);
 92			if ($.browser.msie) {
 93				$v.after('<wbr>');
 94			}
 95		}
 96	});
 97}
 98function initSpoilers(context)
 99{
100	$('div.sp-body', context).each(function(){
101		var $sp_body = $(this);
102		var name = $.trim(this.title) || '{L_SPOILER_HEAD}';
103		this.title = '';
104		var $sp_head = $('<div class="sp-head folded clickable">'+ name +'</div>');
105		$sp_head.insertBefore($sp_body).click(function(e){
106			if (!$sp_body.hasClass('inited')) {
107				initPostImages($sp_body);
108				var $sp_fold_btn = $('<div class="sp-fold clickable">[{L_SPOILER_CLOSE}]</div>').click(function(){
109					$.scrollTo($sp_head, { duration:200, axis:'y', offset:-200 });
110					$sp_head.click().animate({opacity: 0.1}, 500).animate({opacity: 1}, 700);
111				});
112				$sp_body.prepend('<div class="clear"></div>').append('<div class="clear"></div>').append($sp_fold_btn).addClass('inited');
113			}
114			if (e.shiftKey) {
115				e.stopPropagation();
116				e.shiftKey = false;
117				var fold = $(this).hasClass('unfolded');
118				$('div.sp-head', $($sp_body.parents('td')[0])).filter( function(){ return $(this).hasClass('unfolded') ? fold : !fold } ).click();
119			}
120			else {
121				$(this).toggleClass('unfolded');
122				$sp_body.slideToggle('fast');
123			}
124		});
125	});
126}
127function initExternalLinks(context)
128{
129	var context = context || 'body';
130	if (ExternalLinks_InNewWindow) {
131		$("a.postLink:not([href*='"+ window.location.hostname +"/'])", context).attr({ target: '_blank' });
132	}
133}
134function fixPostImage($img)
135{
136	var banned_image_hosts = /imagebanana|hidebehind/i;  // imageshack
137	var src = $img[0].src;
138	if (src.match(banned_image_hosts)) {
139		$img.wrap('<a href="'+ this.src +'" target="_blank"></a>').attr({ src: "{SITE_URL}images/tr_oops.gif", title: "{L_SCREENSHOTS_RULES}" });
140	}
141	return $img;
142}
143function initMedia(context)
144{
145	var apostLink = $('a.postLink', context);
146	for (var i = 0; i < apostLink.length; i++) {
147		var link = apostLink[i];
148		if (typeof link.href != 'string') {
149			continue;
150		}
151		if (/^http(?:s|):\/\/www.youtube.com\/watch\?(.*)?(&?v=([a-z0-9\-_]+))(.*)?|http:\/\/youtu.be\/.+/i.test(link.href)) {
152			var a = document.createElement('span');
153			a.className = 'YTLink';
154			a.innerHTML = '<span title="{L_PLAY_ON_CURPAGE}" class="YTLinkButton">&#9658;</span>';
155			window.addEvent(a, 'click', function (e) {
156				var vhref = e.target.nextSibling.href.replace(/^http(?:s|):\/\/www.youtube.com\/watch\?(.*)?(&?v=([a-z0-9\-_]+))(.*)?|http:\/\/youtu.be\//ig, "http://www.youtube.com/embed/$3");
157				var text  = e.target.nextSibling.innerText != "" ? e.target.nextSibling.innerText : e.target.nextSibling.href;
158				$('#Panel_youtube').remove();
159				ypanel('youtube', {
160					title: '<b>' + text + '</b>',
161					resizing: 0,
162					width: 862,
163					height: 550,
164					content: '<iframe width="853" height="510" frameborder="0" allowfullscreen="" src="' + vhref + '?wmode=opaque"></iframe>'
165				});
166			});
167			link.parentNode.insertBefore(a, link);
168			a.appendChild(link);
169		}
170	}
171}
172$(document).ready(function(){
173	$('div.post_wrap, div.signature').each(function(){ initPostBBCode( $(this) ) });
174});
175</script>
176<!-- ENDIF / INCLUDE_BBCODE_JS -->
177<script type="text/javascript">
178var BB_ROOT       = "{#BB_ROOT}";
179var cookieDomain  = "{$bb_cfg['cookie_domain']}";
180var cookiePath    = "{$bb_cfg['script_path']}";
181var cookieSecure  = {$bb_cfg['cookie_secure']};
182var cookiePrefix  = "{$bb_cfg['cookie_prefix']}";
183var LOGGED_IN     = {LOGGED_IN};
184var InfoWinParams = 'HEIGHT=510,resizable=yes,WIDTH=780';
185
186var user = {
187	opt_js: {USER_OPTIONS_JS},
188
189	set: function(opt, val, days, reload) {
190		this.opt_js[opt] = val;
191		setCookie('opt_js', $.toJSON(this.opt_js), days);
192		if (reload) {
193			window.location.reload();
194		}
195	}
196}
197<!-- IF SHOW_JUMPBOX -->
198$(document).ready(function(){
199	$("div.jumpbox").html('\
200		<span id="jumpbox-container"> \
201		<select id="jumpbox"> \
202			<option id="jumpbox-title" value="-1">&nbsp;&raquo;&raquo; {L_JUMPBOX_TITLE} &nbsp;</option> \
203		</select> \
204		</span> \
205		<input id="jumpbox-submit" type="button" class="lite" value="{L_GO}" /> \
206	');
207	$('#jumpbox-container').one('click', function(){
208		$('#jumpbox-title').html('&nbsp;&nbsp; {L_LOADING} ... &nbsp;');
209		var jumpbox_src = '{AJAX_HTML_DIR}' + ({LOGGED_IN} ? 'jumpbox_user.html' : 'jumpbox_guest.html');
210		$(this).load(jumpbox_src);
211		$('#jumpbox-submit').click(function(){ window.location.href='{FORUM_URL}'+$('#jumpbox').val(); });
212	});
213});
214<!-- ENDIF -->
215
216var ajax = new Ajax('{SITE_URL}{$bb_cfg['ajax_url']}', 'POST', 'json');
217
218function getElText (e)
219{
220	var t = '';
221	if (e.textContent !== undefined) { t = e.textContent; } else if (e.innerText !== undefined) { t = e.innerText; } else { t = jQuery(e).text(); }
222	return t;
223}
224function escHTML (txt)
225{
226	return txt.replace(/</g, '&lt;');
227}
228<!-- IF USE_TABLESORTER -->
229$(document).ready(function() {
230	$('.tablesorter').tablesorter();
231});
232<!-- ENDIF -->
233
234function cfm (txt)
235{
236	return window.confirm(txt);
237}
238function post2url (url, params) {
239	params = params || {};
240	var f = document.createElement('form');
241	f.setAttribute('method', 'post');
242	f.setAttribute('action', url);
243	params['form_token'] = '{FORM_TOKEN}';
244	for (var k in params) {
245		var h = document.createElement('input');
246		h.setAttribute('type', 'hidden');
247		h.setAttribute('name', k);
248		h.setAttribute('value', params[k]);
249		f.appendChild(h);
250	}
251	document.body.appendChild(f);
252	f.submit();
253	return false;
254}
255</script>
256
257<!--[if gte IE 7]><style type="text/css">
258input[type="checkbox"] { margin-bottom: -1px; }
259</style><![endif]-->
260
261<!--[if IE]><style type="text/css">
262.post-hr { margin: 2px auto; }
263.fieldsets div > p { margin-bottom: 0; }
264</style><![endif]-->
265
266<!-- IF INCLUDE_DEVELOP_JS -->
267<script type="text/javascript">
268var dev = true;
269function OpenInEditor ($file, $line)
270{
271	$editor_path = '{EDITOR_PATH}';
272	$editor_args = '{EDITOR_ARGS}';
273
274	$url = BB_ROOT +'develop/open_editor.php';
275	$url += '?prog='+ $editor_path +'&args='+ $editor_args.sprintf($file, $line);
276
277	window.open($url,'','height=1,width=1,left=1,top=1,resizable=yes,scrollbars=no,toolbar=no');
278}
279</script>
280<!-- ENDIF / INCLUDE_DEVELOP_JS -->
281<style type="text/css">
282	.menu-sub, #ajax-loading, #ajax-error, var.ajax-params, .sp-title, .q-post { display: none; }
283</style>
284</head>
285
286<body>
287<!-- IF EDITABLE_TPLS -->
288<div id="editable-tpl-input" style="display: none;">
289	<span class="editable-inputs nowrap" style="display: none;">
290		<input type="text" class="editable-value" />
291		<input type="button" class="editable-submit" value="&raquo;" style="width: 30px; font-weight: bold;" />
292		<input type="button" class="editable-cancel" value="x" style="width: 30px;" />
293	</span>
294</div>
295<div id="editable-tpl-yesno-select" style="display: none;">
296	<span class="editable-inputs nowrap" style="display: none;">
297		<select class="editable-value"><option value="1">{L_YES}</option><option value="0">{L_NO}</option></select>
298		<input type="button" class="editable-submit" value="&raquo;" style="width: 30px; font-weight: bold;" />
299		<input type="button" class="editable-cancel" value="x" style="width: 30px;" />
300	</span>
301</div>
302<div id="editable-tpl-yesno-radio" style="display: none;">
303	<span class="editable-inputs nowrap" style="display: none;">
304		<label><input class="editable-value" type="radio" name="editable-value" value="1" />{L_YES}</label>
305		<label><input class="editable-value" type="radio" name="editable-value" value="0" />{L_NO}</label>&nbsp;
306		<input type="button" class="editable-submit" value="&raquo;" style="width: 30px; font-weight: bold;" />
307		<input type="button" class="editable-cancel" value="x" style="width: 30px;" />
308	</span>
309</div>
310<div id="editable-tpl-yesno-gender" style="display: none;">
311	<span class="editable-inputs nowrap" style="display: none;">
312		<label><input class="editable-value" type="radio" name="editable-value" value="1">{$lang['GENDER_SELECT'][1]}</label>
313		<label><input class="editable-value" type="radio" name="editable-value" value="2">{$lang['GENDER_SELECT'][2]}</label>&nbsp;
314		<label><input class="editable-value" type="radio" name="editable-value" value="0">{$lang['GENDER_SELECT'][0]}</label>
315		<input type="button" class="editable-submit" value="&raquo;" style="width: 30px; font-weight: bold;">
316		<input type="button" class="editable-cancel" value="x" style="width: 30px;">
317	</span>
318</div>
319<!-- ENDIF / EDITABLE_TPLS -->
320
321<!-- IF PAGINATION -->
322<div class="menu-sub" id="pg-jump">
323	<table cellspacing="1" cellpadding="4">
324	<tr><th>{L_GO_TO_PAGE}</th></tr>
325	<tr><td>
326		<form method="get" onsubmit="return go_to_page();">
327			<input id="pg-page" type="text" size="5" maxlength="4" />
328			<input type="submit" value="{L_GO}"/>
329		</form>
330	</td></tr>
331	</table>
332</div>
333<script type="text/javascript">
334function go_to_page ()
335{
336	var page_num = (parseInt( $('#pg-page').val() ) > 1) ? $('#pg-page').val() : 1;
337	var pg_start = (page_num - 1) * {PG_PER_PAGE};
338	window.location = '{PG_BASE_URL}&start=' + pg_start;
339	return false;
340}
341</script>
342<!-- ENDIF -->
343
344<div id="ajax-loading"></div><div id="ajax-error"></div>
345<div id="preload" style="position: absolute; overflow: hidden; top: 0; left: 0; height: 1px; width: 1px;"></div>
346
347<div id="body_container">
348
349<!--******************-->
350<!-- IF SIMPLE_HEADER -->
351<!--==================-->
352
353<style type="text/css">body { background: #E3E3E3; min-width: 10px; }</style>
354
355<!--=================-->
356<!-- ELSEIF IN_ADMIN -->
357<!--=================-->
358
359<!--======-->
360<!-- ELSE -->
361<!--======-->
362
363<script type="text/javascript">
364if (top != self) {
365	allowed_self = /^(translate\.googleusercontent\.com)$/;
366	if (!self.location.hostname.match(allowed_self)) {
367		$(function(){
368			$('body').html('<center><h1><br /><br />{L_YOU_ARE_BEING_CHEATED}&nbsp;'+ self.location.hostname +'</h1></center>');
369		});
370	}
371}
372</script>
373
374<!--page_container-->
375<div id="page_container">
376<a name="top"></a>
377
378<!--page_header-->
379<div id="page_header">
380
381<!--main_nav-->
382<div id="main-nav" <!-- IF HAVE_NEW_PM -->class="new-pm"<!-- ENDIF --> style="height: 17px;">
383	<table width="100%" cellpadding="0" cellspacing="0">
384	<tr>
385		<td class="nowrap">
386			<a href="{U_INDEX}"><b>{L_HOME}</b></a><span style="color:#CDCDCD;">|</span>
387			<a href="{U_TRACKER}"><b>{L_TRACKER}</b></a><span style="color:#CDCDCD;">|</span>
388			<a href="{U_SEARCH}"><b>{L_SEARCH}</b></a><span style="color:#CDCDCD;">|</span>
389			<a href="{U_TERMS}"><b style="color: #993300;">{L_TERMS}</b></a><span style="color:#CDCDCD;">|</span>
390			<a href="{U_GROUP_CP}"><b>{L_USERGROUPS}</b></a><span style="color:#CDCDCD;">|</span>
391			<a href="{U_MEMBERLIST}"><b>{L_MEMBERLIST}</b></a><span style="color:#CDCDCD;">|</span>
392		</td>
393		<td class="nowrap" align="right">
394			<!-- BEGIN switch_report_list -->
395				<a href="{U_REPORT_LIST}" class="mainmenu">{REPORT_LIST}</a> &#0183;
396			<!-- END switch_report_list -->
397			<!-- BEGIN switch_report_list_new -->
398				<strong><a href="{U_REPORT_LIST}" class="mainmenu">{REPORT_LIST} &#0183; </a></strong>
399			<!-- END switch_report_list_new -->
400
401			<!-- IF LOGGED_IN -->
402				<!-- IF HAVE_NEW_PM || HAVE_UNREAD_PM -->
403					<a href="{U_READ_PM}" class="new-pm-link"><b>{L_PRIVATE_MESSAGES}: {PM_INFO}</b></a>
404				<!-- ELSE -->
405					<a href="{U_PRIVATEMSGS}"><b>{L_PRIVATE_MESSAGES}: {PM_INFO}</b></a>
406				<!-- ENDIF -->
407			<!-- ENDIF -->
408		</td>
409	</tr>
410	</table>
411</div>
412<!--/main_nav-->
413
414<!--logo-->
415<div id="logo">
416	<!--<h1>{SITENAME}</h1>
417	<h6>{SITE_DESCRIPTION}</h6> -->
418	<a href="{U_INDEX}"><img src="images/logo/logo_me.png" alt="{SITENAME}" /></a>
419</div>
420<!--/logo-->
421
422<!-- IF LOGGED_IN -->
423<script type="text/javascript">
424ajax.index_data = function(tz) {
425	ajax.exec({
426		action  : 'index_data',
427		mode    : 'change_tz',
428		tz      : tz
429	});
430};
431ajax.callback.index_data = function(data) {};
432$(document).ready(function() {
433	x = new Date();
434	tz = -x.getTimezoneOffset()/60;
435	if (tz != <?php echo $bb_cfg['board_timezone']?>)
436	{
437		ajax.index_data(tz);
438	}
439});
440</script>
441
442<!--logout-->
443<div class="topmenu">
444<table width="100%" cellpadding="0" cellspacing="0">
445<tr>
446	<td width="40%">
447		{L_USER_WELCOME} &nbsp;<b class="med">{THIS_USER}</b>&nbsp; [ <a href="{U_LOGIN_LOGOUT}" onclick="return confirm('{L_CONFIRM_LOGOUT}');">{L_LOGOUT}</a> ]
448	</td>
449	<td style="padding: 2px;">
450		<div>
451			<form id="quick-search" action="" method="post" onsubmit="$(this).attr('action', $('#search-action').val());">
452				<input type="hidden" name="max" value="1" />
453				<input type="hidden" name="to" value="1" />
454				<input id="search-text" type="text" name="nm" placeholder="{L_SEARCH_S}" required />
455				<select id="search-action">
456					<option value="tracker.php#results" selected="selected"> {L_TRACKER_S} </option>
457					<option value="search.php"> {L_FORUM_S} </option>
458				</select>
459				<input type="submit" class="med" value="{L_SEARCH}" style="width: 55px;" />
460			</form>
461		</div>
462	</td>
463	<td width="50%" class="tRight">
464		<!-- BEGIN switch_report_general -->
465		<a href="{U_WRITE_REPORT}">{L_WRITE_REPORT}</a> &#0183;
466		<!-- END switch_report_general -->
467		<a href="{U_OPTIONS}"><b>{L_OPTIONS}</b></a> &#0183;
468		<a href="{U_CUR_DOWNLOADS}">{L_PROFILE}</a> <a href="#dls-menu" class="menu-root menu-alt1">&#9660;</a> &#0183;
469		<a href="{U_SEARCH_SELF_BY_LAST}">{L_SEARCH_SELF}</a>
470	</td>
471</tr>
472</table>
473</div>
474<!--/logout-->
475
476<div class="menu-sub" id="dls-menu">
477	<div class="menu-a bold nowrap">
478		<a class="med" href="{U_TRACKER}?rid={SESSION_USER_ID}#results">{L_CUR_UPLOADS}</a>
479		<a class="med" href="{U_SEARCH}?dlu={SESSION_USER_ID}&dlc=1">{L_SEARCH_DL_COMPLETE_DOWNLOADS}</a>
480		<a class="med" href="{U_SEARCH}?dlu={SESSION_USER_ID}&dlw=1">{L_SEARCH_DL_WILL_DOWNLOADS}</a>
481		<a class="med" href="{U_WATCHED_TOPICS}">{L_WATCHED_TOPICS}</a>
482	</div>
483</div>
484<!-- ELSE -->
485
486<!--login form-->
487<div class="topmenu">
488	<table width="100%" cellpadding="0" cellspacing="0">
489		<tr>
490			<td class="tCenter pad_2">
491				<a href="{U_REGISTER}" id="register_link"><b>{L_REGISTER}</b></a> &#0183;
492					<form action="{S_LOGIN_ACTION}" method="post">
493						{L_USERNAME}: <input type="text" name="login_username" size="12" tabindex="1" accesskey="l" />
494						{L_PASSWORD}: <input type="password" name="login_password" size="12" tabindex="2" />
495						<label title="{L_AUTO_LOGIN}"><input type="checkbox" name="autologin" value="1" tabindex="3" checked="checked" />{L_REMEMBER}</label>&nbsp;
496						<input type="submit" name="login" value="{L_LOGIN}" tabindex="4" />
497					</form> &#0183;
498				<a href="{U_SEND_PASSWORD}">{L_FORGOTTEN_PASSWORD}</a>
499			</td>
500		</tr>
501	</table>
502</div>
503<!--/login form-->
504<!-- ENDIF -->
505
506</div>
507<!--/page_header-->
508
509<!--menus-->
510
511<!-- IF SHOW_ONLY_NEW_MENU -->
512<div class="menu-sub" id="only-new-options">
513	<table cellspacing="1" cellpadding="4">
514	<tr>
515		<th>{L_DISPLAYING_OPTIONS}</th>
516	</tr>
517	<tr>
518		<td>
519			<fieldset id="show-only">
520			<legend>{L_SHOW_ONLY}</legend>
521			<div class="pad_4">
522				<label>
523					<input id="only_new_posts" type="checkbox" <!-- IF ONLY_NEW_POSTS_ON -->{CHECKED}<!-- ENDIF -->
524						onclick="
525							user.set('only_new', ( this.checked ? {ONLY_NEW_POSTS} : 0 ), 365, true);
526							$('#only_new_topics').attr('checked', 0);
527						" />{L_ONLY_NEW_POSTS}
528				</label>
529				<label>
530					<input id="only_new_topics" type="checkbox" <!-- IF ONLY_NEW_TOPICS_ON -->{CHECKED}<!-- ENDIF -->
531						onclick="
532							user.set('only_new', ( this.checked ? {ONLY_NEW_TOPICS} : 0 ), 365, true);
533							$('#only_new_posts').attr('checked', 0);
534						" />{L_ONLY_NEW_TOPICS}
535				</label>
536			</div>
537			</fieldset>
538			<!-- IF USER_HIDE_CAT -->
539			<fieldset id="user_hide_cat">
540			<legend>{L_HIDE_CAT}</legend>
541			<div id="h-cat-ctl" class="pad_4 nowrap">
542				<form autocomplete="off">
543					<!-- BEGIN h_c -->
544					<label><input class="h-cat-cbx" type="checkbox" value="{h_c.H_C_ID}" {h_c.H_C_CHEKED} />{h_c.H_C_TITLE}</label>
545					<!-- END h_c -->
546				</form>
547				<div class="spacer_6"></div>
548				<div class="tCenter">
549					<!-- IF H_C_AL_MESS -->
550					<input style="width: 100px;" type="button" onclick="$('input.h-cat-cbx').attr('checked',false); $('input#sec_h_cat').click(); return false;" value="{L_RESET}">
551					<!-- ENDIF -->
552					<input id="sec_h_cat" type="button" onclick="set_h_cat();" style="width: 100px;" value="{L_SUBMIT}">
553					<script type="text/javascript">
554					function set_h_cat ()
555					{
556						h_cats = [];
557						$.each($('input.h-cat-cbx:checked'), function(i,el){
558							h_cats.push( $(this).val() );
559						});
560						user.set('h_cat', h_cats.join('-'), 365, true);
561					}
562					</script>
563				</div>
564			</div>
565			</fieldset>
566			<!-- ENDIF -->
567		</td>
568	</tr>
569	</table>
570</div><!--/only-new-options-->
571<!-- ENDIF / SHOW_ONLY_NEW_MENU -->
572
573<!--/menus-->
574
575<!--page_content-->
576<div id="page_content">
577<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
578<tr><!-- IF SHOW_SIDEBAR1 -->
579	<!--sidebar1-->
580	<td id="sidebar1">
581		<div id="sidebar1-wrap">
582			<!-- IF SHOW_BT_USERDATA --><div id="user_ratio">
583				<h3>{L_USER_RATIO}</h3>
584				<table cellpadding="0">
585					<!-- IF not AVATAR_DISALLOWED --><div align="center">{THIS_AVATAR}</div><!-- ENDIF -->
586					<!-- IF AVATAR_DISALLOWED --><div align="center">{L_AVATAR_DISABLE}</div><!-- ENDIF -->
587					<tr><td>{L_USER_RATIO}</td><td><!-- IF DOWN_TOTAL_BYTES gt MIN_DL_BYTES --><b>{USER_RATIO}</b><!-- ELSE --><b>{L_NONE}</b> (DL < {MIN_DL_FOR_RATIO})<!-- ENDIF --></td></tr>
588					<tr><td>{L_DOWNLOADED}</td><td class="leechmed"><b>{DOWN_TOTAL}</b></td></tr>
589					<tr><td>{L_UPLOADED}</td><td class="seedmed"><b>{UP_TOTAL}</b></td></tr>
590					<tr><td>{L_RELEASED}</td><td class="seedmed">{RELEASED}</td></tr>
591					<tr><td>{L_BONUS}</td><td class="seedmed">{UP_BONUS}</td></tr>
592					<!-- IF $bb_cfg['seed_bonus_enabled'] --><tr><td>{L_SEED_BONUS}</td><td><a href="profile.php?mode=bonus"><span class="points bold">{POINTS}</span></a></td></tr><!-- ENDIF -->
593				</table>
594			</div><!-- ENDIF -->
595			<?php if (!empty($bb_cfg['sidebar1_static_content_path'])) include($bb_cfg['sidebar1_static_content_path']); ?>
596			<img width="210" class="spacer" src="{SPACER}" alt="" />
597		</div><!--/sidebar1-wrap-->
598	</td><!--/sidebar1-->
599<!-- ENDIF -->
600
601<!--main_content-->
602<td id="main_content">
603	<div id="main_content_wrap">
604		<div id="latest_news">
605			<table cellspacing="0" cellpadding="0" width="100%">
606				<tr>
607					<!-- IF SHOW_LATEST_NEWS -->
608					<td width="50%">
609						<h3>{L_LATEST_NEWS}</h3>
610						<table cellpadding="0">
611							<!-- BEGIN news -->
612							<tr>
613								<td><div class="news_date">{news.NEWS_TIME}</div></td>
614								<td width="100%">
615									<div class="news_title<!-- IF news.NEWS_IS_NEW --> new<!-- ENDIF -->"><a href="{TOPIC_URL}{news.NEWS_TOPIC_ID}">{news.NEWS_TITLE}</a></div>
616								</td>
617							</tr>
618							<!-- END news -->
619						</table>
620					</td>
621					<!-- ENDIF -->
622
623					<!-- IF SHOW_NETWORK_NEWS -->
624						<td width="50%">
625						<h3>{L_NETWORK_NEWS}</h3>
626						<table cellpadding="0">
627							<!-- BEGIN net -->
628							<tr>
629								<td><div class="news_date">{net.NEWS_TIME}</div></td>
630								<td width="100%">
631									<div class="news_title<!-- IF net.NEWS_IS_NEW --> new<!-- ENDIF -->"><a href="{TOPIC_URL}{net.NEWS_TOPIC_ID}">{net.NEWS_TITLE}</a></div>
632								</td>
633							</tr>
634							<!-- END net -->
635						</table>
636					</td>
637					<!-- ENDIF -->
638				</tr>
639			</table>
640		</div>
641
642<!-- IF AD_BLOCK_200 -->
643	<div id="ad-200">{AD_BLOCK_200}</div><!--/ad-200-->
644<!-- ELSEIF AD_BLOCK_100 -->
645	<div id="ad-100">{AD_BLOCK_100}</div><!--/ad-100-->
646<!-- ENDIF / AD_BLOCK_100 -->
647
648<!--=======================-->
649<!-- ENDIF / COMMON_HEADER -->
650<!--***********************-->
651
652<!-- IF ERROR_MESSAGE -->
653<div class="info_msg_wrap">
654<table class="error">
655	<tr><td><div class="msg">{ERROR_MESSAGE}</div></td></tr>
656</table>
657</div>
658<!-- ENDIF / ERROR_MESSAGE -->
659
660<!-- IF INFO_MESSAGE -->
661<div class="info_msg_wrap">
662<table class="info_msg">
663	<tr><td><div class="msg">{INFO_MESSAGE}</div></td></tr>
664</table>
665</div>
666<!-- ENDIF / INFO_MESSAGE -->
667
668<!-- page_header.tpl END -->
669<!-- module_xx.tpl START -->