author | Dan |
Sat, 07 Jul 2007 16:43:38 -0400 | |
changeset 50 | 5e9bb8b7bbdf |
parent 32 | 4d87aad3c4c0 |
child 57 | b354deeaa4c4 |
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'; |
|
25 |
createCookie(side+'_sidebar', 'open', 365); |
|
26 |
} else { |
|
27 |
elem.style.display = 'none'; |
|
28 |
counter.style.display = 'block'; |
|
29 |
elem.parentNode.style.width = '25px'; |
|
30 |
createCookie(side+'_sidebar', 'collapsed', 365); |
|
31 |
} |
|
32 |
} |
|
33 |
||
34 |
/* |
|
35 |
window.onload = function() { |
|
36 |
if(typeof readCookie == 'function') |
|
37 |
{ |
|
38 |
if(readCookie('left_sidebar') =='collapsed') collapseSidebar('left'); |
|
39 |
if(readCookie('right_sidebar')=='collapsed') collapseSidebar('right'); |
|
40 |
} |
|
41 |
if(typeof mdgInnerLoader == 'function') |
|
42 |
mdgInnerLoader(); |
|
43 |
} |
|
44 |
*/ |
|
45 |
||
22
d0314575e2f0
More preliminary l10n work; userpage portal style basics implemented
Dan
parents:
0
diff
changeset
|
46 |
addOnloadHook(function() { |
d0314575e2f0
More preliminary l10n work; userpage portal style basics implemented
Dan
parents:
0
diff
changeset
|
47 |
if(typeof readCookie == 'function') |
d0314575e2f0
More preliminary l10n work; userpage portal style basics implemented
Dan
parents:
0
diff
changeset
|
48 |
{ |
d0314575e2f0
More preliminary l10n work; userpage portal style basics implemented
Dan
parents:
0
diff
changeset
|
49 |
if(readCookie('left_sidebar') =='collapsed') collapseSidebar('left'); |
d0314575e2f0
More preliminary l10n work; userpage portal style basics implemented
Dan
parents:
0
diff
changeset
|
50 |
if(readCookie('right_sidebar')=='collapsed') collapseSidebar('right'); |
d0314575e2f0
More preliminary l10n work; userpage portal style basics implemented
Dan
parents:
0
diff
changeset
|
51 |
} |
d0314575e2f0
More preliminary l10n work; userpage portal style basics implemented
Dan
parents:
0
diff
changeset
|
52 |
}); |
d0314575e2f0
More preliminary l10n work; userpage portal style basics implemented
Dan
parents:
0
diff
changeset
|
53 |
|
0 | 54 |
function ajaxRenameInline() |
55 |
{ |
|
56 |
// This trick is _so_ vBulletin... |
|
57 |
elem = document.getElementById('h2PageName'); |
|
58 |
if(!elem) return; |
|
59 |
elem.style.display = 'none'; |
|
60 |
name = elem.innerHTML; |
|
61 |
textbox = document.createElement('input'); |
|
62 |
textbox.type = 'text'; |
|
63 |
textbox.value = name; |
|
64 |
textbox.id = 'pageheading'; |
|
65 |
textbox.size = name.length + 7; |
|
66 |
textbox.onkeyup = function(e) { if(!e) return; if(e.keyCode == 13) ajaxRenameInlineSave(); if(e.keyCode == 27) ajaxRenameInlineCancel(); }; |
|
67 |
elem.parentNode.insertBefore(textbox, elem); |
|
68 |
document.onclick = ajaxRenameInlineCancel; |
|
69 |
} |
|
70 |
function ajaxRenameInlineSave() |
|
71 |
{ |
|
72 |
elem1 = document.getElementById('h2PageName'); |
|
73 |
elem2 = document.getElementById('pageheading'); |
|
74 |
if(!elem1 || !elem2) return; |
|
75 |
value = elem2.value; |
|
76 |
elem2.parentNode.removeChild(elem2); // just destroy the thing |
|
77 |
elem1.innerHTML = value; |
|
78 |
elem1.style.display = 'block'; |
|
79 |
if(!value || value=='') return; |
|
80 |
ajaxPost(stdAjaxPrefix+'&_mode=rename', 'newtitle='+escape(value), function() { |
|
81 |
if(ajax.readyState == 4) { |
|
82 |
alert(ajax.responseText); |
|
83 |
} |
|
84 |
}); |
|
85 |
} |
|
86 |
function ajaxRenameInlineCancel(e) |
|
87 |
{ |
|
88 |
elem1 = document.getElementById('h2PageName'); |
|
89 |
elem2 = document.getElementById('pageheading'); |
|
90 |
if(!elem1 || !elem2) return; |
|
91 |
if ( e.target ) |
|
92 |
{ |
|
93 |
if(e.target == elem2) |
|
94 |
return; |
|
95 |
} |
|
96 |
//value = elem2.value; |
|
97 |
elem2.parentNode.removeChild(elem2); // just destroy the thing |
|
98 |
//elem1.innerHTML = value; |
|
99 |
elem1.style.display = 'block'; |
|
100 |
document.onclick = null; |
|
101 |
} |
|
102 |
</script> |
|
103 |
||
104 |
</head> |
|
105 |
<body> |
|
106 |
<table border="0" cellspacing="0" cellpadding="3" id="enano-master" width="100%"> |
|
107 |
<tr> |
|
108 |
<!-- BEGIN sidebar_left --> |
|
109 |
<td class="mdgSidebarHolder" valign="top"> |
|
110 |
<div id="left-sidebar"> |
|
111 |
{SIDEBAR_LEFT} |
|
112 |
</div> |
|
113 |
<div id="left-sidebar-showbutton" style="display: none; position: fixed; top: 3px; left: 3px;"> |
|
114 |
<input type="button" onclick="collapseSidebar('left');" value=">>" /> |
|
115 |
</div> |
|
116 |
</td> |
|
117 |
<!-- END sidebar_left --> |
|
118 |
<td valign="top"> |
|
119 |
<table border="0" width="100%" cellspacing="0" cellpadding="0"> |
|
120 |
||
121 |
<tr><td id="mdg-tl"></td><td id="mdg-top"></td><td id="mdg-tr"></td></tr> |
|
122 |
||
123 |
<tr><td id="mdg-l"></td><td> |
|
124 |
<table border="0" width="100%" id="title" cellspacing="0" cellpadding="0"> |
|
125 |
<tr> |
|
126 |
<td id="mainhead"><h2><a href="{SCRIPTPATH}/{ADMIN_SID_QUES}">{SITE_NAME}</a></h2><h4>{SITE_DESC}</h4></td> |
|
127 |
</tr> |
|
128 |
</table> |
|
129 |
</td><td id="mdg-r"></td></tr> |
|
130 |
||
131 |
<tr><td id="mdg-brl"></td><td style="background-color: #FFFFFF;"></td><td id="mdg-brr"></td></tr> |
|
132 |
||
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
|
133 |
<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
|
134 |
<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
|
135 |
<td class="menu_bg"> |
0 | 136 |
<div class="menu_nojs" id="pagebar_main"> |
137 |
<div class="label">Page tools</div> |
|
138 |
{TOOLBAR} |
|
139 |
<ul> |
|
140 |
{TOOLBAR_EXTRAS} |
|
141 |
</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
|
142 |
<span class="menuclear"></span> |
0 | 143 |
</div> |
144 |
</td><td id="mdg-br"></td></tr> |
|
145 |
<tr><td id="mdg-ml"></td><td style="background-color: #FFFFFF;"> |
|
146 |
<div class="pad"><div class="contentDiv"> |
|
147 |
<div style="float: right;"> |
|
148 |
<image alt=" " src="{SCRIPTPATH}/images/spacer.gif" id="ajaxloadicon" /> |
|
149 |
</div> |
|
150 |
<h2 <!-- BEGIN auth_rename --> ondblclick="ajaxRenameInline();" title="Double-click to rename this page" <!-- END auth_rename --> id="h2PageName">{PAGE_NAME}</h2> |
|
151 |
<div id="ajaxEditContainer"> |