adm/style/simple_header.html
changeset 0 ceef6d64c21d
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/adm/style/simple_header.html	Wed Mar 07 16:41:10 2012 +0400
     1.3 @@ -0,0 +1,112 @@
     1.4 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
     1.5 +<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
     1.6 +<head>
     1.7 +
     1.8 +<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}" />
     1.9 +<meta http-equiv="Content-Style-Type" content="text/css" />
    1.10 +<meta http-equiv="Content-Language" content="{S_USER_LANG}" />
    1.11 +<meta http-equiv="imagetoolbar" content="no" />
    1.12 +<!-- IF META -->{META}<!-- ENDIF -->
    1.13 +<title>{PAGE_TITLE}</title>
    1.14 +
    1.15 +<link href="style/admin.css" rel="stylesheet" type="text/css" media="screen" />
    1.16 +
    1.17 +<script type="text/javascript">
    1.18 +// <![CDATA[
    1.19 +var jump_page = '{LA_JUMP_PAGE}:';
    1.20 +var on_page = '{ON_PAGE}';
    1.21 +var per_page = '{PER_PAGE}';
    1.22 +var base_url = '{A_BASE_URL}';
    1.23 +
    1.24 +/**
    1.25 +* Window popup
    1.26 +*/
    1.27 +function popup(url, width, height, name)
    1.28 +{
    1.29 +	if (!name)
    1.30 +	{
    1.31 +		name = '_popup';
    1.32 +	}
    1.33 +
    1.34 +	window.open(url.replace(/&amp;/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes, width=' + width);
    1.35 +	return false;
    1.36 +}
    1.37 +
    1.38 +/**
    1.39 +* Jump to page
    1.40 +*/
    1.41 +function jumpto()
    1.42 +{
    1.43 +	var page = prompt(jump_page, on_page);
    1.44 +
    1.45 +	if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0)
    1.46 +	{
    1.47 +		if (base_url.indexOf('?') == -1)
    1.48 +		{
    1.49 +			document.location.href = base_url + '?start=' + ((page - 1) * per_page);
    1.50 +		}
    1.51 +		else
    1.52 +		{
    1.53 +			document.location.href = base_url.replace(/&amp;/g, '&') + '&start=' + ((page - 1) * per_page);
    1.54 +		}
    1.55 +	}
    1.56 +}
    1.57 +
    1.58 +/**
    1.59 +* Set display of page element
    1.60 +* s[-1,0,1] = hide,toggle display,show
    1.61 +*/
    1.62 +function dE(n, s, type)
    1.63 +{
    1.64 +	if (!type)
    1.65 +	{
    1.66 +		type = 'block';
    1.67 +	}
    1.68 +
    1.69 +	var e = document.getElementById(n);
    1.70 +	if (!s)
    1.71 +	{
    1.72 +		s = (e.style.display == '') ? -1 : 1;
    1.73 +	}
    1.74 +	e.style.display = (s == 1) ? type : 'none';
    1.75 +}
    1.76 +
    1.77 +/**
    1.78 +* Mark/unmark checkboxes
    1.79 +* id = ID of parent container, name = name prefix, state = state [true/false]
    1.80 +*/
    1.81 +function marklist(id, name, state)
    1.82 +{
    1.83 +	var parent = document.getElementById(id);
    1.84 +	if (!parent)
    1.85 +	{
    1.86 +		return;
    1.87 +	}
    1.88 +
    1.89 +	var rb = parent.getElementsByTagName('input');
    1.90 +	
    1.91 +	for (var r = 0; r < rb.length; r++)
    1.92 +	{
    1.93 +		if (rb[r].name.substr(0, name.length) == name)
    1.94 +		{
    1.95 +			rb[r].checked = state;
    1.96 +		}
    1.97 +	}
    1.98 +}
    1.99 +
   1.100 +/**
   1.101 +* Find a member
   1.102 +*/
   1.103 +function find_username(url)
   1.104 +{
   1.105 +	popup(url, 760, 570, '_usersearch');
   1.106 +	return false;
   1.107 +}
   1.108 +
   1.109 +// ]]>
   1.110 +</script>
   1.111 +</head>
   1.112 +
   1.113 +<body class="{S_CONTENT_DIRECTION}">
   1.114 +
   1.115 +<div id="page-body" class="simple-page-body">