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