author | Dan |
Wed, 11 Jul 2007 15:36:01 -0400 | |
changeset 66 | 52017732bc20 |
parent 57 | b354deeaa4c4 |
child 71 | 21770a1a5213 |
permissions | -rw-r--r-- |
0 | 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} • {SITE_NAME}</title> |
|
5 |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> |
|
6 |
<link rel="stylesheet" type="text/css" href="{SCRIPTPATH}/includes/clientside/css/enano-shared.css" /> |
|
7 |
<link id="mdgCss" rel="stylesheet" href="{SCRIPTPATH}/themes/{THEME_ID}/css/{STYLE_ID}.css" type="text/css" /> |
|
8 |
{JS_DYNAMIC_VARS} |
|
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 |
{ADDITIONAL_HEADERS} |
|
12 |
||
13 |
<script type="text/javascript"> |
|
14 |
||
15 |
function collapseSidebar(side) |
|
16 |
{ |
|
17 |
elem = document.getElementById(side+'-sidebar'); |
|
18 |
if(!elem) return; |
|
19 |
counter = document.getElementById(side+'-sidebar-showbutton'); |
|
20 |
if(elem.style.display=='none') |
|
21 |
{ |
|
22 |
elem.style.display = 'block'; |
|
23 |
counter.style.display = 'none'; |
|
24 |
elem.parentNode.style.width = '156px'; |
|
57
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
25 |
if ( !KILL_SWITCH ) |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
26 |
{ |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
27 |
createCookie(side+'_sidebar', 'open', 365); |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
28 |
} |
0 | 29 |
} else { |
30 |
elem.style.display = 'none'; |
|
31 |
counter.style.display = 'block'; |
|
32 |
elem.parentNode.style.width = '25px'; |
|
57
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
33 |
if ( !KILL_SWITCH ) |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
34 |
{ |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
35 |
createCookie(side+'_sidebar', 'collapsed', 365); |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
36 |
} |
0 | 37 |
} |
38 |
} |
|
39 |
||
40 |
/* |
|
41 |
window.onload = function() { |
|
42 |
if(typeof readCookie == 'function') |
|
43 |
{ |
|
44 |
if(readCookie('left_sidebar') =='collapsed') collapseSidebar('left'); |
|
45 |
if(readCookie('right_sidebar')=='collapsed') collapseSidebar('right'); |
|
46 |
} |
|
47 |
if(typeof mdgInnerLoader == 'function') |
|
48 |
mdgInnerLoader(); |
|
49 |
} |
|
50 |
*/ |
|
51 |
||
57
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
52 |
if ( typeof(KILL_SWITCH) != 'undefined' ) |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
53 |
{ |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
54 |
if ( !KILL_SWITCH ) |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
55 |
{ |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
56 |
var oxygenSidebarSetup = function() { |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
57 |
if(typeof readCookie == 'function') |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
58 |
{ |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
59 |
if(readCookie('left_sidebar') =='collapsed') collapseSidebar('left'); |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
60 |
if(readCookie('right_sidebar')=='collapsed') collapseSidebar('right'); |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
61 |
} |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
62 |
}; |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
63 |
addOnloadHook(oxygenSidebarSetup); |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
64 |
} |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
65 |
} |
22
d0314575e2f0
More preliminary l10n work; userpage portal style basics implemented
Dan
parents:
0
diff
changeset
|
66 |
|
0 | 67 |
function ajaxRenameInline() |
68 |
{ |
|
57
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
69 |
if ( KILL_SWITCH ) |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
70 |
return false; |
0 | 71 |
// This trick is _so_ vBulletin... |
72 |
elem = document.getElementById('h2PageName'); |
|
73 |
if(!elem) return; |
|
74 |
elem.style.display = 'none'; |
|
75 |
name = elem.innerHTML; |
|
76 |
textbox = document.createElement('input'); |
|
77 |
textbox.type = 'text'; |
|
78 |
textbox.value = name; |
|
79 |
textbox.id = 'pageheading'; |
|
80 |
textbox.size = name.length + 7; |
|
81 |
textbox.onkeyup = function(e) { if(!e) return; if(e.keyCode == 13) ajaxRenameInlineSave(); if(e.keyCode == 27) ajaxRenameInlineCancel(); }; |
|
82 |
elem.parentNode.insertBefore(textbox, elem); |
|
83 |
document.onclick = ajaxRenameInlineCancel; |
|
84 |
} |
|
85 |
function ajaxRenameInlineSave() |
|
86 |
{ |
|
87 |
elem1 = document.getElementById('h2PageName'); |
|
88 |
elem2 = document.getElementById('pageheading'); |
|
89 |
if(!elem1 || !elem2) return; |
|
90 |
value = elem2.value; |
|
91 |
elem2.parentNode.removeChild(elem2); // just destroy the thing |
|
92 |
elem1.innerHTML = value; |
|
93 |
elem1.style.display = 'block'; |
|
94 |
if(!value || value=='') return; |
|
95 |
ajaxPost(stdAjaxPrefix+'&_mode=rename', 'newtitle='+escape(value), function() { |
|
96 |
if(ajax.readyState == 4) { |
|
97 |
alert(ajax.responseText); |
|
98 |
} |
|
99 |
}); |
|
100 |
} |
|
101 |
function ajaxRenameInlineCancel(e) |
|
102 |
{ |
|
103 |
elem1 = document.getElementById('h2PageName'); |
|
104 |
elem2 = document.getElementById('pageheading'); |
|
105 |
if(!elem1 || !elem2) return; |
|
106 |
if ( e.target ) |
|
107 |
{ |
|
108 |
if(e.target == elem2) |
|
109 |
return; |
|
110 |
} |
|
111 |
//value = elem2.value; |
|
112 |
elem2.parentNode.removeChild(elem2); // just destroy the thing |
|
113 |
//elem1.innerHTML = value; |
|
114 |
elem1.style.display = 'block'; |
|
115 |
document.onclick = null; |
|
116 |
} |
|
117 |
</script> |
|
118 |
||
119 |
</head> |
|
120 |
<body> |
|
121 |
<table border="0" cellspacing="0" cellpadding="3" id="enano-master" width="100%"> |
|
122 |
<tr> |
|
123 |
<!-- BEGIN sidebar_left --> |
|
124 |
<td class="mdgSidebarHolder" valign="top"> |
|
125 |
<div id="left-sidebar"> |
|
126 |
{SIDEBAR_LEFT} |
|
127 |
</div> |
|
128 |
<div id="left-sidebar-showbutton" style="display: none; position: fixed; top: 3px; left: 3px;"> |
|
129 |
<input type="button" onclick="collapseSidebar('left');" value=">>" /> |
|
130 |
</div> |
|
131 |
</td> |
|
132 |
<!-- END sidebar_left --> |
|
133 |
<td valign="top"> |
|
134 |
<table border="0" width="100%" cellspacing="0" cellpadding="0"> |
|
135 |
||
136 |
<tr><td id="mdg-tl"></td><td id="mdg-top"></td><td id="mdg-tr"></td></tr> |
|
137 |
||
138 |
<tr><td id="mdg-l"></td><td> |
|
139 |
<table border="0" width="100%" id="title" cellspacing="0" cellpadding="0"> |
|
140 |
<tr> |
|
141 |
<td id="mainhead"><h2><a href="{SCRIPTPATH}/{ADMIN_SID_QUES}">{SITE_NAME}</a></h2><h4>{SITE_DESC}</h4></td> |
|
142 |
</tr> |
|
143 |
</table> |
|
144 |
</td><td id="mdg-r"></td></tr> |
|
145 |
||
146 |
<tr><td id="mdg-brl"></td><td style="background-color: #FFFFFF;"></td><td id="mdg-brr"></td></tr> |
|
147 |
||
32
4d87aad3c4c0
Finished everything on the TODO list (yay!); several CSS cleanups; tons more changes in this commit - see the patch for details
Dan
parents:
22
diff
changeset
|
148 |
<tr> |
4d87aad3c4c0
Finished everything on the TODO list (yay!); several CSS cleanups; tons more changes in this commit - see the patch for details
Dan
parents:
22
diff
changeset
|
149 |
<td id="mdg-bl"></td> |
4d87aad3c4c0
Finished everything on the TODO list (yay!); several CSS cleanups; tons more changes in this commit - see the patch for details
Dan
parents:
22
diff
changeset
|
150 |
<td class="menu_bg"> |
0 | 151 |
<div class="menu_nojs" id="pagebar_main"> |
152 |
<div class="label">Page tools</div> |
|
153 |
{TOOLBAR} |
|
154 |
<ul> |
|
155 |
{TOOLBAR_EXTRAS} |
|
156 |
</ul> |
|
32
4d87aad3c4c0
Finished everything on the TODO list (yay!); several CSS cleanups; tons more changes in this commit - see the patch for details
Dan
parents:
22
diff
changeset
|
157 |
<span class="menuclear"></span> |
0 | 158 |
</div> |
159 |
</td><td id="mdg-br"></td></tr> |
|
160 |
<tr><td id="mdg-ml"></td><td style="background-color: #FFFFFF;"> |
|
161 |
<div class="pad"><div class="contentDiv"> |
|
162 |
<div style="float: right;"> |
|
163 |
<image alt=" " src="{SCRIPTPATH}/images/spacer.gif" id="ajaxloadicon" /> |
|
164 |
</div> |
|
165 |
<h2 <!-- BEGIN auth_rename --> ondblclick="ajaxRenameInline();" title="Double-click to rename this page" <!-- END auth_rename --> id="h2PageName">{PAGE_NAME}</h2> |
|
166 |
<div id="ajaxEditContainer"> |