styles/subsilver2/template/overall_header.html
author indvdum (gotoindvdum[at]gmail[dot]com)
Sat, 10 Mar 2012 00:11:31 +0400
changeset 14 88d35b740f20
parent 0 ceef6d64c21d
permissions -rw-r--r--
HG ignore
     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     2 <html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
     3 <head>
     4 
     5 <meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
     6 <meta http-equiv="content-language" content="{S_USER_LANG}" />
     7 <meta http-equiv="content-style-type" content="text/css" />
     8 <meta http-equiv="imagetoolbar" content="no" />
     9 <meta name="resource-type" content="document" />
    10 <meta name="distribution" content="global" />
    11 <meta name="keywords" content="" />
    12 <meta name="description" content="" />
    13 {META}
    14 <title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>
    15 
    16 <!-- IF S_ENABLE_FEEDS -->
    17 	<!-- IF S_ENABLE_FEEDS_OVERALL --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {SITENAME}" href="{U_FEED}" /><!-- ENDIF -->
    18 	<!-- IF S_ENABLE_FEEDS_NEWS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_NEWS}" href="{U_FEED}?mode=news" /><!-- ENDIF -->
    19 	<!-- IF S_ENABLE_FEEDS_FORUMS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_ALL_FORUMS}" href="{U_FEED}?mode=forums" /><!-- ENDIF -->
    20 	<!-- IF S_ENABLE_FEEDS_TOPICS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_TOPICS_NEW}" href="{U_FEED}?mode=topics" /><!-- ENDIF -->
    21 	<!-- IF S_ENABLE_FEEDS_TOPICS_ACTIVE --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_TOPICS_ACTIVE}" href="{U_FEED}?mode=topics_active" /><!-- ENDIF -->
    22 	<!-- IF S_ENABLE_FEEDS_FORUM and S_FORUM_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FORUM} - {FORUM_NAME}" href="{U_FEED}?f={S_FORUM_ID}" /><!-- ENDIF -->
    23 	<!-- IF S_ENABLE_FEEDS_TOPIC and S_TOPIC_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_TOPIC} - {TOPIC_TITLE}" href="{U_FEED}?f={S_FORUM_ID}&amp;t={S_TOPIC_ID}" /><!-- ENDIF -->
    24 <!-- ENDIF -->
    25 
    26 <link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />
    27 
    28 <script type="text/javascript">
    29 // <![CDATA[
    30 <!-- IF S_USER_PM_POPUP and S_NEW_PM -->
    31 	popup('{UA_POPUP_PM}', 400, 225, '_phpbbprivmsg');
    32 <!-- ENDIF -->
    33 
    34 function popup(url, width, height, name)
    35 {
    36 	if (!name)
    37 	{
    38 		name = '_popup';
    39 	}
    40 
    41 	window.open(url.replace(/&amp;/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes,width=' + width);
    42 	return false;
    43 }
    44 
    45 function jumpto()
    46 {
    47 	var page = prompt('{LA_JUMP_PAGE}:', '{ON_PAGE}');
    48 	var per_page = '{PER_PAGE}';
    49 	var base_url = '{A_BASE_URL}';
    50 
    51 	if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0)
    52 	{
    53 		if (base_url.indexOf('?') == -1)
    54 		{
    55 			document.location.href = base_url + '?start=' + ((page - 1) * per_page);
    56 		}
    57 		else
    58 		{
    59 			document.location.href = base_url.replace(/&amp;/g, '&') + '&start=' + ((page - 1) * per_page);
    60 		}
    61 	}
    62 }
    63 
    64 /**
    65 * Find a member
    66 */
    67 function find_username(url)
    68 {
    69 	popup(url, 760, 570, '_usersearch');
    70 	return false;
    71 }
    72 
    73 /**
    74 * Mark/unmark checklist
    75 * id = ID of parent container, name = name prefix, state = state [true/false]
    76 */
    77 function marklist(id, name, state)
    78 {
    79 	var parent = document.getElementById(id);
    80 	if (!parent)
    81 	{
    82 		eval('parent = document.' + id);
    83 	}
    84 
    85 	if (!parent)
    86 	{
    87 		return;
    88 	}
    89 
    90 	var rb = parent.getElementsByTagName('input');
    91 	
    92 	for (var r = 0; r < rb.length; r++)
    93 	{
    94 		if (rb[r].name.substr(0, name.length) == name)
    95 		{
    96 			rb[r].checked = state;
    97 		}
    98 	}
    99 }
   100 
   101 <!-- IF ._file -->
   102 
   103 	/**
   104 	* Play quicktime file by determining it's width/height
   105 	* from the displayed rectangle area
   106 	*
   107 	* Only defined if there is a file block present.
   108 	*/
   109 	function play_qt_file(obj)
   110 	{
   111 		var rectangle = obj.GetRectangle();
   112 
   113 		if (rectangle)
   114 		{
   115 			rectangle = rectangle.split(',')
   116 			var x1 = parseInt(rectangle[0]);
   117 			var x2 = parseInt(rectangle[2]);
   118 			var y1 = parseInt(rectangle[1]);
   119 			var y2 = parseInt(rectangle[3]);
   120 
   121 			var width = (x1 < 0) ? (x1 * -1) + x2 : x2 - x1;
   122 			var height = (y1 < 0) ? (y1 * -1) + y2 : y2 - y1;
   123 		}
   124 		else
   125 		{
   126 			var width = 200;
   127 			var height = 0;
   128 		}
   129 
   130 		obj.width = width;
   131 		obj.height = height + 16;
   132 
   133 		obj.SetControllerVisible(true);
   134 
   135 		obj.Play();
   136 	}
   137 <!-- ENDIF -->
   138 
   139 // ]]>
   140 </script>
   141 </head>
   142 <body class="{S_CONTENT_DIRECTION}">
   143 
   144 <a name="top"></a>
   145 
   146 <div id="wrapheader">
   147 
   148 	<div id="logodesc">
   149 		<table width="100%" cellspacing="0">
   150 		<tr>
   151 			<td><a href="{U_INDEX}">{SITE_LOGO_IMG}</a></td>
   152 			<td width="100%" align="center"><h1>{SITENAME}</h1><span class="gen">{SITE_DESCRIPTION}</span></td>
   153 		</tr>
   154 		</table>
   155 	</div>
   156 
   157 	<div id="menubar">
   158 		<table width="100%" cellspacing="0">
   159 		<tr>
   160 			<td class="genmed">
   161 				<!-- IF not S_IS_BOT --><a href="{U_LOGIN_LOGOUT}"><img src="{T_THEME_PATH}/images/icon_mini_login.gif" width="12" height="13" alt="*" /> {L_LOGIN_LOGOUT}</a>&nbsp;<!-- ENDIF -->
   162 				<!-- IF U_RESTORE_PERMISSIONS --> &nbsp;<a href="{U_RESTORE_PERMISSIONS}"><img src="{T_THEME_PATH}/images/icon_mini_login.gif" width="12" height="13" alt="*" /> {L_RESTORE_PERMISSIONS}</a><!-- ENDIF -->
   163 				<!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN --> &nbsp;<span style="color: red;">{L_BOARD_DISABLED}</span><!-- ENDIF -->
   164 				<!-- IF not S_IS_BOT -->
   165 					<!-- IF S_USER_LOGGED_IN -->
   166 						<!-- IF S_DISPLAY_PM --> &nbsp;<a href="{U_PRIVATEMSGS}"><img src="{T_THEME_PATH}/images/icon_mini_message.gif" width="12" height="13" alt="*" /> {PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a><!-- ENDIF -->
   167 					<!-- ELSEIF S_REGISTER_ENABLED and not (S_SHOW_COPPA or S_REGISTRATION) --> &nbsp;<a href="{U_REGISTER}"><img src="{T_THEME_PATH}/images/icon_mini_register.gif" width="12" height="13" alt="*" /> {L_REGISTER}</a>
   168 					<!-- ENDIF -->
   169 				<!-- ENDIF -->
   170 			</td>
   171 			<td class="genmed" align="{S_CONTENT_FLOW_END}">
   172 				<a href="{U_FAQ}"><img src="{T_THEME_PATH}/images/icon_mini_faq.gif" width="12" height="13" alt="*" /> {L_FAQ}</a>
   173 				<!-- IF S_DISPLAY_SEARCH -->&nbsp; &nbsp;<a href="{U_SEARCH}"><img src="{T_THEME_PATH}/images/icon_mini_search.gif" width="12" height="13" alt="*" /> {L_SEARCH}</a><!-- ENDIF -->
   174 				<!-- IF not S_IS_BOT -->
   175 					<!-- IF S_DISPLAY_MEMBERLIST -->&nbsp; &nbsp;<a href="{U_MEMBERLIST}"><img src="{T_THEME_PATH}/images/icon_mini_members.gif" width="12" height="13" alt="*" /> {L_MEMBERLIST}</a><!-- ENDIF -->
   176 					<!-- IF S_USER_LOGGED_IN -->&nbsp; &nbsp;<a href="{U_PROFILE}"><img src="{T_THEME_PATH}/images/icon_mini_profile.gif" width="12" height="13" alt="*" /> {L_PROFILE}</a><!-- ENDIF -->
   177 				<!-- ENDIF -->
   178 			</td>
   179 		</tr>
   180 		</table>
   181 	</div>
   182 
   183 	<div id="datebar">
   184 		<table width="100%" cellspacing="0">
   185 		<tr>
   186 			<td class="gensmall"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ENDIF --></td>
   187 			<td class="gensmall" align="{S_CONTENT_FLOW_END}">{CURRENT_TIME}<br /></td>
   188 		</tr>
   189 		</table>
   190 	</div>
   191 
   192 </div>
   193 
   194 <div id="wrapcentre">
   195 
   196 	<!-- IF S_DISPLAY_SEARCH -->
   197 	<p class="searchbar">
   198 		<span style="float: {S_CONTENT_FLOW_BEGIN};"><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a> | <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></span>
   199 		<!-- IF S_USER_LOGGED_IN or S_LOAD_UNREADS -->
   200 		<span style="float: {S_CONTENT_FLOW_END};"><!-- IF S_LOAD_UNREADS --><a href="{U_SEARCH_UNREAD}">{L_SEARCH_UNREAD}</a><!-- IF S_USER_LOGGED_IN --> | <!-- ENDIF --><!-- ENDIF --><!-- IF S_USER_LOGGED_IN --><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a> | <a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a><!-- ENDIF --></span>
   201 		<!-- ENDIF -->
   202 	</p>
   203 	<!-- ENDIF -->
   204 
   205 	<br style="clear: both;" />
   206 
   207 	<!-- INCLUDE breadcrumbs.html -->
   208 
   209 	<br />