adm/style/simple_header.html
changeset 0 ceef6d64c21d
equal deleted inserted replaced
-1:000000000000 0:ceef6d64c21d
       
     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.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-Style-Type" content="text/css" />
       
     7 <meta http-equiv="Content-Language" content="{S_USER_LANG}" />
       
     8 <meta http-equiv="imagetoolbar" content="no" />
       
     9 <!-- IF META -->{META}<!-- ENDIF -->
       
    10 <title>{PAGE_TITLE}</title>
       
    11 
       
    12 <link href="style/admin.css" rel="stylesheet" type="text/css" media="screen" />
       
    13 
       
    14 <script type="text/javascript">
       
    15 // <![CDATA[
       
    16 var jump_page = '{LA_JUMP_PAGE}:';
       
    17 var on_page = '{ON_PAGE}';
       
    18 var per_page = '{PER_PAGE}';
       
    19 var base_url = '{A_BASE_URL}';
       
    20 
       
    21 /**
       
    22 * Window popup
       
    23 */
       
    24 function popup(url, width, height, name)
       
    25 {
       
    26 	if (!name)
       
    27 	{
       
    28 		name = '_popup';
       
    29 	}
       
    30 
       
    31 	window.open(url.replace(/&amp;/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes, width=' + width);
       
    32 	return false;
       
    33 }
       
    34 
       
    35 /**
       
    36 * Jump to page
       
    37 */
       
    38 function jumpto()
       
    39 {
       
    40 	var page = prompt(jump_page, on_page);
       
    41 
       
    42 	if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0)
       
    43 	{
       
    44 		if (base_url.indexOf('?') == -1)
       
    45 		{
       
    46 			document.location.href = base_url + '?start=' + ((page - 1) * per_page);
       
    47 		}
       
    48 		else
       
    49 		{
       
    50 			document.location.href = base_url.replace(/&amp;/g, '&') + '&start=' + ((page - 1) * per_page);
       
    51 		}
       
    52 	}
       
    53 }
       
    54 
       
    55 /**
       
    56 * Set display of page element
       
    57 * s[-1,0,1] = hide,toggle display,show
       
    58 */
       
    59 function dE(n, s, type)
       
    60 {
       
    61 	if (!type)
       
    62 	{
       
    63 		type = 'block';
       
    64 	}
       
    65 
       
    66 	var e = document.getElementById(n);
       
    67 	if (!s)
       
    68 	{
       
    69 		s = (e.style.display == '') ? -1 : 1;
       
    70 	}
       
    71 	e.style.display = (s == 1) ? type : 'none';
       
    72 }
       
    73 
       
    74 /**
       
    75 * Mark/unmark checkboxes
       
    76 * id = ID of parent container, name = name prefix, state = state [true/false]
       
    77 */
       
    78 function marklist(id, name, state)
       
    79 {
       
    80 	var parent = document.getElementById(id);
       
    81 	if (!parent)
       
    82 	{
       
    83 		return;
       
    84 	}
       
    85 
       
    86 	var rb = parent.getElementsByTagName('input');
       
    87 	
       
    88 	for (var r = 0; r < rb.length; r++)
       
    89 	{
       
    90 		if (rb[r].name.substr(0, name.length) == name)
       
    91 		{
       
    92 			rb[r].checked = state;
       
    93 		}
       
    94 	}
       
    95 }
       
    96 
       
    97 /**
       
    98 * Find a member
       
    99 */
       
   100 function find_username(url)
       
   101 {
       
   102 	popup(url, 760, 570, '_usersearch');
       
   103 	return false;
       
   104 }
       
   105 
       
   106 // ]]>
       
   107 </script>
       
   108 </head>
       
   109 
       
   110 <body class="{S_CONTENT_DIRECTION}">
       
   111 
       
   112 <div id="page-body" class="simple-page-body">