admin.tpl
7.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<html>
<head>
<title>Àäìèíêà</title>
<META name="description" content="Àäìèíêà" lang="ru">
<META name="keywords" content="Àäìèíêà">
<META http-equiv=content-type content="text/html; charset=windows-1251">
<link href="{$smarty.const.URL}style_admin.css" rel="stylesheet" type="text/css">
<script language="javascript" type="text/javascript" src="{$smarty.const.URL}js/tiny_mce/tiny_mce.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="{$smarty.const.URL}js/calendar/calendar-system.css" title="win2k-cold-1" />
<script type="text/javascript" src="{$smarty.const.URL}js/calendar/calendar.js"></script>
<script type="text/javascript" src="{$smarty.const.URL}js/calendar/lang/cal-ru.js"></script>
<script type="text/javascript" src="{$smarty.const.URL}js/calendar/calendar-setup.js"></script>
{if $rules_info_one.action}
<script type="text/javascript">
<!--
{literal}
function ajaxfilemanager(field_name, url, type, win) {
var ajaxfilemanagerurl = "{/literal}{$smarty.const.URL}{literal}js/tiny_mce/plugins/ajaxfilemanager/ajaxfilemanager.php";
switch (type) {
case "image":
break;
case "media":
break;
case "flash":
break;
case "file":
break;
default:
return false;
}
var fileBrowserWindow = new Array();
fileBrowserWindow["file"] = ajaxfilemanagerurl;
fileBrowserWindow["title"] = "Ajax File Manager";
fileBrowserWindow["width"] = "782";
fileBrowserWindow["height"] = "440";
fileBrowserWindow["close_previous"] = "no";
tinyMCE.openWindow(fileBrowserWindow, {
window : win,
input : field_name,
resizable : "yes",
inline : "yes",
editor_id : tinyMCE.getWindowArg("editor_id")
});
return false;
}
{/literal}
//-->
</script>
{literal}
<script type="text/javascript">
<!--
tinyMCE.init({
mode : "exact",
elements : "text,text_rus,params,doc",
theme : "advanced",
plugins : "table,advhr,advimage,advlink,flash,paste,fullscreen,noneditable,contextmenu",
theme_advanced_buttons1_add_before : "newdocument,separator",
theme_advanced_buttons1_add : "fontselect,fontsizeselect",
theme_advanced_buttons2_add : "separator,forecolor,backcolor,liststyle",
theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,",
theme_advanced_buttons3_add_before : "tablecontrols,separator",
theme_advanced_buttons3_add : "flash,advhr,separator,fullscreen",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
extended_valid_elements : "hr[class|width|size|noshade]",
file_browser_callback : "ajaxfilemanager",
content_css : "{/literal}{$smarty.const.URL}{literal}main.css",
paste_use_dialog : false,
theme_advanced_resizing : true,
theme_advanced_resize_horizontal : true,
apply_source_formatting : true,
force_br_newlines : true,
force_p_newlines : false,
relative_urls : false
});
//-->
</script>
{/literal}
{/if}
{literal}
<script language="JavaScript">
<!--
function openWin(path) {
myWin= open(path, "displayWindow",
"width=650,height=400,status=yes,toolbar=no,menubar=no,scrollbars=yes");
myWin.focus();
}
function topic(obj){
if(obj.title.value!='')return true;
else alert("Çàïîëíèòå âñå ïîëÿ!");
return false;
}
function popup_forum(forumID) {
myWin= open("/forum_comment.php?forumID="+forumID, "displayWindow",
"width=600,height=300,status=no,toolbar=no,menubar=no");
}
function del(url){
if(confirm("Óäàëèòü?")){
document.location=url;
return true;
}return false;
}
// -->
</script>
{/literal}
<script>{literal}
function check(n){
var div = document.getElementById('check_box')
var elems = div.getElementsByTagName('input');
for(var i=0; i<elems.length; i++){
if(elems[i].id==n)continue;
var reg=eval('/'+n+'/');
if(reg.test(elems[i].id)){
result = (elems[i].checked ? false : true);
elems[i].checked = result;
}
}
return true;
}
{/literal}</script>
</head>
<body bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0" marginheight="0" marginwidth="0" bgcolor="#ffffff">
<table cellpadding="1" cellspacing="0" border="0" background="#ffffff" width="100%" height="100%">
<tr height="100%">
<td width="230">
<table cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr><td class="bord"></td></tr>
<tr><td height="100%" valign="top">
<table cellpadding="0" cellspacing="0" width="100%">
<tr><td class="left_hot"><font color="#1273C4"><b>Ñèñòåìà àäìèíèñòðèðîâàíèÿ<br>ñàéòà</b></font></td></tr>
<tr><td align="center"><img src="{$smarty.const.URL}img/admin/logo_artweb.jpg" border="0" width="189" height="118"></td></tr>
<tr><td align="center"> </td></tr>
<tr><td align="center"><input type="button" value="Âûõîä" class="submit_red" onClick="document.location='{$smarty.const.URL}admin.php?exit'"></td></tr>
<tr><td align="center"><img src="{$smarty.const.URL}img/admin/hr1.jpg" height="3" width="189" border="0"></td></tr>
<tr><td class="left_hot">
<table cellpadding="2" cellspacing="0">
{section name=i loop=$rules}
<tr><td>{if $rules[i]._level>1}{str_repeat value=" " count=$rules[i]._level}{/if}<a href="{$smarty.const.URL}admin.php?action={$rules[i].action}"><font color="{if $rules_info_one.action eq $rules[i].action}#1373C9{else}#6D6C71{/if}"><b>{$rules[i].name|stripslashes}</b></font></a></td></tr>
{/section}
</table>
</td></tr>
</table>
</td></tr>
<tr><td class="bord"></td></tr>
</table>
</td>
<td>
<table cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr><td class="bord" align="right"><a href="{$smarty.const.URL}admin.php?action=rules" id="link1">Óïðàâëåíèå ñòðàíèöàìè</a></td></tr>
<tr><td height="100%" class="content_site" valign="top">
<h1>{$rules_info_one.name}</h1>
{include file="error.tpl"}
{include file="$tpl"}
</td></tr>
<tr><td class="bord"></td></tr>
</table>
</td>
</tr>
</table>
<!--
Ðàçðàáîòàíî ñòóäèåé "ÀðòÂåá"
Ïðîãðàììèðîâàíèå Áîðèñåíêî Ïàâåë Ñåðãååâè÷ (Programming Borisenko Paul Sergeevich)
-->