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 |
|
|
46 |
function ajaxRenameInline()
|
|
47 |
{
|
|
48 |
// This trick is _so_ vBulletin...
|
|
49 |
elem = document.getElementById('h2PageName');
|
|
50 |
if(!elem) return;
|
|
51 |
elem.style.display = 'none';
|
|
52 |
name = elem.innerHTML;
|
|
53 |
textbox = document.createElement('input');
|
|
54 |
textbox.type = 'text';
|
|
55 |
textbox.value = name;
|
|
56 |
textbox.id = 'pageheading';
|
|
57 |
textbox.size = name.length + 7;
|
|
58 |
textbox.onkeyup = function(e) { if(!e) return; if(e.keyCode == 13) ajaxRenameInlineSave(); if(e.keyCode == 27) ajaxRenameInlineCancel(); };
|
|
59 |
elem.parentNode.insertBefore(textbox, elem);
|
|
60 |
document.onclick = ajaxRenameInlineCancel;
|
|
61 |
}
|
|
62 |
function ajaxRenameInlineSave()
|
|
63 |
{
|
|
64 |
elem1 = document.getElementById('h2PageName');
|
|
65 |
elem2 = document.getElementById('pageheading');
|
|
66 |
if(!elem1 || !elem2) return;
|
|
67 |
value = elem2.value;
|
|
68 |
elem2.parentNode.removeChild(elem2); // just destroy the thing
|
|
69 |
elem1.innerHTML = value;
|
|
70 |
elem1.style.display = 'block';
|
|
71 |
if(!value || value=='') return;
|
|
72 |
ajaxPost(stdAjaxPrefix+'&_mode=rename', 'newtitle='+escape(value), function() {
|
|
73 |
if(ajax.readyState == 4) {
|
|
74 |
alert(ajax.responseText);
|
|
75 |
}
|
|
76 |
});
|
|
77 |
}
|
|
78 |
function ajaxRenameInlineCancel(e)
|
|
79 |
{
|
|
80 |
elem1 = document.getElementById('h2PageName');
|
|
81 |
elem2 = document.getElementById('pageheading');
|
|
82 |
if(!elem1 || !elem2) return;
|
|
83 |
if ( e.target )
|
|
84 |
{
|
|
85 |
if(e.target == elem2)
|
|
86 |
return;
|
|
87 |
}
|
|
88 |
//value = elem2.value;
|
|
89 |
elem2.parentNode.removeChild(elem2); // just destroy the thing
|
|
90 |
//elem1.innerHTML = value;
|
|
91 |
elem1.style.display = 'block';
|
|
92 |
document.onclick = null;
|
|
93 |
}
|
|
94 |
</script>
|
|
95 |
|
|
96 |
</head>
|
|
97 |
<body>
|
|
98 |
<table border="0" cellspacing="0" cellpadding="3" id="enano-master" width="100%">
|
|
99 |
<tr>
|
|
100 |
<!-- BEGIN sidebar_left -->
|
|
101 |
<td class="mdgSidebarHolder" valign="top">
|
|
102 |
<div id="left-sidebar">
|
|
103 |
{SIDEBAR_LEFT}
|
|
104 |
</div>
|
|
105 |
<div id="left-sidebar-showbutton" style="display: none; position: fixed; top: 3px; left: 3px;">
|
|
106 |
<input type="button" onclick="collapseSidebar('left');" value=">>" />
|
|
107 |
</div>
|
|
108 |
</td>
|
|
109 |
<!-- END sidebar_left -->
|
|
110 |
<td valign="top">
|
|
111 |
<table border="0" width="100%" cellspacing="0" cellpadding="0">
|
|
112 |
|
|
113 |
<tr><td id="mdg-tl"></td><td id="mdg-top"></td><td id="mdg-tr"></td></tr>
|
|
114 |
|
|
115 |
<tr><td id="mdg-l"></td><td>
|
|
116 |
<table border="0" width="100%" id="title" cellspacing="0" cellpadding="0">
|
|
117 |
<tr>
|
|
118 |
<td id="mainhead"><h2><a href="{SCRIPTPATH}/{ADMIN_SID_QUES}">{SITE_NAME}</a></h2><h4>{SITE_DESC}</h4></td>
|
|
119 |
</tr>
|
|
120 |
</table>
|
|
121 |
</td><td id="mdg-r"></td></tr>
|
|
122 |
|
|
123 |
<tr><td id="mdg-brl"></td><td style="background-color: #FFFFFF;"></td><td id="mdg-brr"></td></tr>
|
|
124 |
|
|
125 |
<tr><td id="mdg-bl"></td><td>
|
|
126 |
<div class="menu_nojs" id="pagebar_main">
|
|
127 |
<div class="label">Page tools</div>
|
|
128 |
{TOOLBAR}
|
|
129 |
<ul>
|
|
130 |
{TOOLBAR_EXTRAS}
|
|
131 |
</ul>
|
|
132 |
<span class="menuclear"> </span>
|
|
133 |
</div>
|
|
134 |
</td><td id="mdg-br"></td></tr>
|
|
135 |
<tr><td id="mdg-ml"></td><td style="background-color: #FFFFFF;">
|
|
136 |
<div class="pad"><div class="contentDiv">
|
|
137 |
<div style="float: right;">
|
|
138 |
<image alt=" " src="{SCRIPTPATH}/images/spacer.gif" id="ajaxloadicon" />
|
|
139 |
</div>
|
|
140 |
<h2 <!-- BEGIN auth_rename --> ondblclick="ajaxRenameInline();" title="Double-click to rename this page" <!-- END auth_rename --> id="h2PageName">{PAGE_NAME}</h2>
|
|
141 |
<div id="ajaxEditContainer">
|