themes/stpatty/simple-header.tpl
changeset 0 902822492a68
child 1227 bdac73ed481e
equal deleted inserted replaced
-1:000000000000 0:902822492a68
       
     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
       
     2 <html>
       
     3   <head>
       
     4     <title>{PAGE_NAME} &bull; {SITE_NAME}</title>
       
     5     <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
       
     6     {JS_DYNAMIC_VARS}
       
     7     <link id="mdgCss" rel="stylesheet" type="text/css" href="{SCRIPTPATH}/themes/{THEME_ID}/css/{STYLE_ID}.css" />
       
     8     <link id="mdgCss" rel="stylesheet" type="text/css" href="{SCRIPTPATH}/themes/{THEME_ID}/css-simple/{STYLE_ID}.css" />
       
     9     <!-- This script automatically loads the other 15 JS files -->
       
    10     <script type="text/javascript" src="{SCRIPTPATH}/includes/clientside/static/enano-lib-basic.js"></script>
       
    11     <!--[if IE]>
       
    12     <link rel="stylesheet" type="text/css" href="{SCRIPTPATH}/themes/{THEME_ID}/css-extra/ie-fixes.css" />
       
    13     <![endif]-->
       
    14     <script type="text/javascript">
       
    15     // <![CDATA[
       
    16       function ajaxRenameInline()
       
    17       {
       
    18         // This trick is _so_ vBulletin...
       
    19         elem = document.getElementById('pagetitle');
       
    20         if(!elem) return;
       
    21         elem.style.display = 'none';
       
    22         name = elem.innerHTML;
       
    23         textbox = document.createElement('input');
       
    24         textbox.type = 'text';
       
    25         textbox.value = name;
       
    26         textbox.id = 'pageheading';
       
    27         textbox.size = name.length + 7;
       
    28         textbox.onkeyup = function(e) { if(!e) return; if(e.keyCode == 13) ajaxRenameInlineSave(); if(e.keyCode == 27) ajaxRenameInlineCancel(); };
       
    29         elem.parentNode.insertBefore(textbox, elem);
       
    30       }
       
    31       function ajaxRenameInlineSave()
       
    32       {
       
    33         elem1 = document.getElementById('pagetitle');
       
    34         elem2 = document.getElementById('pageheading');
       
    35         if(!elem1 || !elem2) return;
       
    36         value = elem2.value;
       
    37         elem2.parentNode.removeChild(elem2); // just destroy the thing
       
    38         elem1.innerHTML = value;
       
    39         elem1.style.display = 'block';
       
    40         if(!value || value=='') return;
       
    41         ajaxPost(stdAjaxPrefix+'&_mode=rename', 'newtitle='+escape(value), function() {
       
    42           if(ajax.readyState == 4) {
       
    43             alert(ajax.responseText);
       
    44           }
       
    45         });
       
    46       }
       
    47       function ajaxRenameInlineCancel()
       
    48       {
       
    49         elem1 = document.getElementById('pagetitle');
       
    50         elem2 = document.getElementById('pageheading');
       
    51         if(!elem1 || !elem2) return;
       
    52         //value = elem2.value;
       
    53         elem2.parentNode.removeChild(elem2); // just destroy the thing
       
    54         //elem1.innerHTML = value;
       
    55         elem1.style.display = 'block';
       
    56         if(!value || value=='') return;
       
    57       }
       
    58       // ]]>
       
    59     </script>
       
    60     {ADDITIONAL_HEADERS}
       
    61   </head>
       
    62   <body>
       
    63     <div id="bg">
       
    64       <table border="0" id="stretcher" cellspacing="0" cellpadding="0"><tr><td valign="middle" id="stretcher-main">
       
    65       <div id="rap">
       
    66         <div id="title">
       
    67           <img id="clover" src="{SCRIPTPATH}/themes/{THEME_ID}/images/clover.png" alt=" " />
       
    68           <h1>{PAGE_NAME}</h1>
       
    69         </div>
       
    70         <div id="sidebar">
       
    71           
       
    72         </div>
       
    73         <div id="maincontent">
       
    74           <div style="float: right;">
       
    75             <img alt=" " src="{SCRIPTPATH}/images/spacer.gif" id="ajaxloadicon" />
       
    76           </div>
       
    77           <div id="ajaxEditContainer">
       
    78