From b8a4f08b92828db2ea6ec0e3d99267bcdb52d6d0 Mon Sep 17 00:00:00 2001 From: Irene Emelyanova Date: Tue, 7 Oct 2008 10:16:41 +0000 Subject: [PATCH] =?utf8?q?=D1=85=D0=93=D0=9B=D0=95=D0=9C=D0=95=D0=9C=D0=A5?= =?utf8?q?=D0=AA=20=D0=91=20=D0=AC=D0=AE=D0=90=D0=9A=D0=9D=D0=9C=D0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- templates/belstyle/1x1.gif | Bin 0 -> 37 bytes templates/belstyle/TODO | 17 ++ templates/belstyle/basic.css | 16 ++ templates/belstyle/belstyle.css | 260 +++++++++++++++++++++++++ templates/belstyle/common.js | 52 +++++ templates/belstyle/edit_forum.html | 38 ++++ templates/belstyle/edit_message.html | 41 ++++ templates/belstyle/edit_topic.html | 33 ++++ templates/belstyle/error.html | 13 ++ templates/belstyle/form.js | 4 + templates/belstyle/forum.html | 70 +++++++ templates/belstyle/login.html | 37 ++++ templates/belstyle/newforum.html | 33 ++++ templates/belstyle/newtopic.html | 31 +++ templates/belstyle/page.js | 276 +++++++++++++++++++++++++++ templates/belstyle/register.html | 63 ++++++ templates/belstyle/reply.html | 44 +++++ templates/belstyle/setrights.html | 35 ++++ templates/belstyle/topic.html | 146 ++++++++++++++ templates/belstyle/user.html | 35 ++++ templates/belstyle/userlist.html | 22 +++ 21 files changed, 1266 insertions(+) create mode 100644 templates/belstyle/1x1.gif create mode 100644 templates/belstyle/TODO create mode 100644 templates/belstyle/basic.css create mode 100644 templates/belstyle/belstyle.css create mode 100644 templates/belstyle/common.js create mode 100644 templates/belstyle/edit_forum.html create mode 100644 templates/belstyle/edit_message.html create mode 100644 templates/belstyle/edit_topic.html create mode 100644 templates/belstyle/error.html create mode 100644 templates/belstyle/form.js create mode 100644 templates/belstyle/forum.html create mode 100644 templates/belstyle/login.html create mode 100644 templates/belstyle/newforum.html create mode 100644 templates/belstyle/newtopic.html create mode 100644 templates/belstyle/page.js create mode 100644 templates/belstyle/register.html create mode 100644 templates/belstyle/reply.html create mode 100644 templates/belstyle/setrights.html create mode 100644 templates/belstyle/topic.html create mode 100644 templates/belstyle/user.html create mode 100644 templates/belstyle/userlist.html diff --git a/templates/belstyle/1x1.gif b/templates/belstyle/1x1.gif new file mode 100644 index 0000000000000000000000000000000000000000..ef1e9ec93dfbb6b87289df460fa144c0d3a857a3 GIT binary patch literal 37 pcmZ?wbhEHbWMp7uC}3bv{K>+|#lXOz1H?cPMg|5ZCKpBqYXD>y1NHy_ literal 0 HcmV?d00001 diff --git a/templates/belstyle/TODO b/templates/belstyle/TODO new file mode 100644 index 0000000..68eb83a --- /dev/null +++ b/templates/belstyle/TODO @@ -0,0 +1,17 @@ + Roadmap для client-side скриптов и дизайна ++ 1. Нормальный полноценный CSS и более приличные шаблоны темы и форума. ++ 2. Скрипт который по нажатию ссылки reply открывает форму прямо на + странице (находящуюся в
). + Форма должна открываться непосредственно под текущей ссылкой. vitus + +- 3. Аналогичный скрипт для ссылки login. (нафиг не надо) ++ 4. client-side проверка прав доступа done, safir ++ 5 скрытие элементов управления, + недоступных текущему пользователю. done, vitus + 6. Шаблоны остальных операций - по мере реализации оных. + 7. Операция цитирования реплики, на которую отвечаешь (вероятно, с + server-side поддержкой) ++ 8. Скрипт который при заполнении очередного поля аплоада картинки в + форме реплики, добавляет следующее пустое поле. vitus + 9 Скрипт подтверждения при нажатии на кнопку delete + (всплывающий div с кнопками да/нет как в ЖЖ) diff --git a/templates/belstyle/basic.css b/templates/belstyle/basic.css new file mode 100644 index 0000000..f602027 --- /dev/null +++ b/templates/belstyle/basic.css @@ -0,0 +1,16 @@ +/* Базовые элементы сообщений, ссылок на темы etc */ +body {background-color: #ccffcc;} +div.topic {background-color: #ffffcc; padding: 10px; +margin: 5px; border: 1px solid #777777;} +div.forum {background-color: #ffddcc; padding: 10px; margin: 10px; border: 1px solid #777777;} +div.message {background-color: #ffffcc; padding: 10px; margin: 10px; border: 1px solid #777777;} +div#replyform {background-color: #ccffcc; padding: 10px; border: 1px solid #777777;margin-top: 10px;} +/* Ссылки на пользователей разных классов */ +a.admin {color: #ff7777;} +a.moderator {color: #22aa22;} +a.user {color: #2222aa;} +.title {text-align: center;} +.fineprint {font-size: 8pt;} +q {font-style: italic;} +a.title {font-size: 150%; font-weight: bold; } + diff --git a/templates/belstyle/belstyle.css b/templates/belstyle/belstyle.css new file mode 100644 index 0000000..b2ec48b --- /dev/null +++ b/templates/belstyle/belstyle.css @@ -0,0 +1,260 @@ +P {FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif; + FONT-SIZE: 12px; color : black; text-align: justify; +} + +li {FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif; + FONT-SIZE: 12px; color : black; text-align: justify; +} + +.violettext {color: #9c30ce; FONT-WEIGHT: bold; +} + +.redtext {color: red; FONT-WEIGHT: bold; +} + +.greentext {color: green; FONT-WEIGHT: bold; +} + +.bluetext {color: blue; FONT-WEIGHT: bold; +} + +.email:before {content: "@ "; color: red; +font-size: 18px; +} + +.email {font-weight: normal; +} + +.icq:before {content: url("images/icq.gif") " ";} + +.icq {font-weight: normal; +} + +.skype:before {content: url("images/skype.gif") " ";} + +.skype {font-weight: normal; +} + +.mailagent:before {content: url("images/mailagent.gif") " ";} + +.mailagent {font-weight: normal; +} + +P.just {TEXT-ALIGN: justify;} + +.parchtable {border-collapse: collapse; border: 0px; +border-color: black; border-style: solid;} + +.parchtable tr td {padding: 10pt; background: url("http://www.belorya-rpg.ru/template/parchment.png")} + +.parchtable tr th {padding: 0pt; } + + +.chartable {border-collapse: collapse; border: 0px; +border-color: #522816; border-style: solid;} + +.chartable tr td {padding-right: 12px; padding-top: 3px; padding-bottom: 3px; padding-left: 12px; border-collapse: collapse; border: 0px; border-style: solid; FONT-FAMILY: Monotype Corsiva, serif; + FONT-SIZE: 17px; +COLOR: #324237; font-weight: normal; } + +.chartable tr th {padding: 0pt; border-collapse: collapse; border: 0px; border-style: solid;} + +.bigtable{border-collapse: collapse; border: 1px; +border-color: black; border-style: solid;} + +.bigtable tr td {padding: 0px; border-collapse: collapse; border: 1px; +border-color: black; border-style: solid;} + +.bigtable tr th {padding: 0px;} + +.zagtable {border-collapse: collapse; } + +.zagtable tr td {height: 110px; width: auto; TEXT-ALIGN: justify; font-family: Arial, Helvetica, +sans-serif; font-size: 12px; padding: 0pt; background: url("template/zagcenter1.png")} + +.zagtable tr th {width: 25px; height: 110px; TEXT-ALIGN: justify; font-family: Arial, Helvetica, +sans-serif; font-size: 12px; padding: 0pt; font-weight: bold;} + +A:link {TEXT-DECORATION: none; FONT-WEIGHT: bold; COLOR: #1d6f36; } + +A:visited {TEXT-DECORATION: none; FONT-WEIGHT: bold; COLOR: #522816; } + +A:active {TEXT-DECORATION: none; FONT-WEIGHT: bold; +} + +A:hover { + TEXT-DECORATION: underline; FONT-WEIGHT: bold; +} + +.Text { + font-family: Arial, Helvetica, sans-serif; + FONT-SIZE: 12px; + COLOR: #FFFFFF; + TEXT-ALIGN: justify; + margin-top : 5px; + margin-bottom : 5px; +} + +.Text:link { + FONT-FAMILY: Arial; + FONT-SIZE: 12px; + COLOR: #CA7A53; + TEXT-ALIGN: justify; +} + +.Text:hover { + FONT-FAMILY: Arial; + FONT-SIZE: 12px; + COLOR: #CA7A53; + TEXT-ALIGN: justify; +} + +.Text:visited { + FONT-FAMILY: Arial; + FONT-SIZE: 12px; + COLOR: #CA7A53; + TEXT-ALIGN: justify; +} + +.Text:active { + FONT-FAMILY: Arial; + FONT-SIZE: 12px; + COLOR: #D04B4B; + TEXT-ALIGN: justify; +} + +.shadowbox {position: relative; font-size: 28px; text-align: center;} +.headertext {font-size: 14px; font-family: Arial, Helvetica, sans-serif; +font-weight: bold; position: relative; top: 0; left: 0; color: +#ff7902;z-index: 2; TEXT-ALIGN: left;} +.headershadow {font-size: 14px; font-family: Arial, Helvetica, +sans-serif; font-weight: bold; position: absolute; top: 1px; left: 1px; +color: #666666; z-index: 1; TEXT-ALIGN: left;} + +.beltable {TEXT-ALIGN: justify; font-family: Arial, Helvetica, +sans-serif; font-size: 12px; border-collapse: collapse; border: 1px; +border-color: black; border-style: solid; } + +.beltable tr td {TEXT-ALIGN: justify; font-family: Arial, Helvetica, +sans-serif; font-size: 12px; padding: 5pt; border-collapse: collapse; border: 1px; +border-color: black; border-style: solid;} + +.beltable tr th {TEXT-ALIGN: justify; font-family: Arial, Helvetica, +sans-serif; font-size: 12px; padding: 5pt; border-collapse: collapse; border: 1px; +border-color: black; border-style: solid; font-weight: bold;} + +.topmenu {width: 160px; height: 30px; background: url("template/button2.png") no-repeat;} + +.topmenu a:link {display: block; padding-left: 7px; padding-right: 7px; +padding-top: 6px; padding-bottom: 7px; + FONT-SIZE: 17px; FONT-FAMILY: Monotype Corsiva, serif ; + COLOR: #324237; + font-weight: bold; + TEXT-DECORATION: none; + +} + +.topmenu a:visited {display: block; padding-left: 7px; padding-right: 7px; padding-top: 6px; padding-bottom: 7px; + FONT-SIZE: 17px; FONT-FAMILY: Monotype Corsiva, serif ; + COLOR: #324237; + font-weight: bold; + TEXT-DECORATION: none; +} + +.topmenu a:hover {display: block; padding-left: 7px; padding-right: 7px; +padding-top: 6px; padding-bottom: 7px; + FONT-SIZE: 17px; FONT-FAMILY: Monotype Corsiva, serif ; + COLOR: #324237; + font-weight: bold; + TEXT-DECORATION: underline; +} + +.topmenu a:active {display: block; padding-left: 7px; padding-right: 7px; +padding-top: 6px; padding-bottom: 7px; + FONT-SIZE: 17px; FONT-FAMILY: Monotype Corsiva, serif ; + COLOR: #324237; + font-weight: bold; + TEXT-DECORATION: none; +} + + + + +.submenu {margin-left: 160px; background-color: #cccccc; padding-top: 7px; padding-bottom: 7px; border: solid 2px; border-color: #dd9f64; float: right; position: absolute; background: url("template/green.png"); width: 215px;} +.submenu a:link {FONT-FAMILY: Arial, Helvetica, sans-serif ; FONT-SIZE: 12px; +color: #e1d3b9; padding-left: 20px; padding-right: 20px; TEXT-DECORATION: none; } + +.submenu a:visited {FONT-FAMILY: Arial, Helvetica, sans-serif ; FONT-SIZE: 12px; +color: #e1d3b9; padding-left: 20px; padding-right: 20px; TEXT-DECORATION: none; } + +.submenu a:hover {FONT-FAMILY: Arial, Helvetica, sans-serif ; FONT-SIZE: 12px; +color: #e1d3b9; padding-left: 20px; padding-right: 20px; TEXT-DECORATION: underline; } + +.submenu a:active {FONT-FAMILY: Arial, Helvetica, sans-serif ; FONT-SIZE: 12px; +color: #e1d3b9; padding-left: 20px; padding-right: 20px; TEXT-DECORATION: none; } + + + +P.head1 {color: #522816; FONT-FAMILY: Monotype Corsiva, serif ; FONT-SIZE: 22px; padding: 0 0 0 0; TEXT-ALIGN: center; FONT-WEIGHT: normal;} + +P.pagetitle{color: #522816; FONT-FAMILY: Monotype Corsiva, serif ; FONT-SIZE: 40px; TEXT-ALIGN: center; margin: 0px 0px 0px 0px ; FONT-WEIGHT: normal;} + +body {background: url("http://www.belorya-rpg.ru/template/green.png");} + +p.copyright {FONT-FAMILY: Arial, Helvetica, sans-serif ; FONT-SIZE: 10px; FONT-STYLE: italic; COLOR: #dd9f64; text-align: right; +} + +p.center {TEXT-ALIGN: center;} + +h1 {color: #522816; FONT-FAMILY: Monotype Corsiva, serif ; FONT-SIZE: 28pt; TEXT-ALIGN: center; font-weight: normal; margin: 0px 0px 0px 0px ;} + +p.line {text-align: center;} + +.hand { FONT-FAMILY: Monotype Corsiva, serif ; FONT-SIZE: 12pt; COLOR: #324237; FONT-WEIGHT: normal;} + +.up {FONT-FAMILY: Monotype Corsiva, serif ; FONT-SIZE: 12pt; COLOR: #324237; FONT-WEIGHT: normal; TEXT-ALIGN: right; TEXT-DECORATION: underline;} + +.up a {FONT-FAMILY: Monotype Corsiva, serif ; FONT-SIZE: 12pt; COLOR: #324237; FONT-WEIGHT: normal; TEXT-ALIGN: right; TEXT-DECORATION: underline;} + +.up a:visited {FONT-FAMILY: Monotype Corsiva, serif ; FONT-SIZE: 12pt; COLOR: #324237; FONT-WEIGHT: normal; TEXT-ALIGN: right; TEXT-DECORATION: underline;} + +.up a:hover {FONT-FAMILY: Monotype Corsiva, serif ; FONT-SIZE: 12pt; COLOR: #324237; FONT-WEIGHT: normal; TEXT-ALIGN: right; TEXT-DECORATION: underline;} + +.up a:active {FONT-FAMILY: Monotype Corsiva, serif ; FONT-SIZE: 12pt; COLOR: #324237; FONT-WEIGHT: normal; TEXT-ALIGN: right; TEXT-DECORATION: underline;} + +.left {ALIGN: left;} + +/* ??, ??? ????????? ? ?????? ?????? */ + + +.topic {background-color: #ffffcc; padding: 10px; +margin: 5px; border: 1px solid #777777; background: url("http://www.belorya-rpg.ru/template/parchment.png")} +div.forum {background-color: #ffddcc; padding: 10px; margin: 10px; border: 1px solid #777777;} +div.message {padding: 0px; margin: 0px; } +div#replyform {background-color: #ccffcc; padding: 10px; border: 1px solid #777777;margin-top: 10px;} +/* ?????? ?? ????????????? ?????? ??????? */ +a.admin {color: #ff7777;} +a.moderator {color: #22aa22;} +a.user {color: #2222aa;} +.title {color: #522816; FONT-FAMILY: Monotype Corsiva, serif ; FONT-SIZE: 40px;margin: 0px 0px 0px 0px ; FONT-WEIGHT: normal;} +.fineprint {font-size: 8pt;} +q {font-style: italic;} +a.title {font-size: 150%; font-weight: bold; } +.messagelist {padding: 0px 0px 0px 0px;} +.abstract{text-align: center;} +.userurl{width: 160px; height: 30px; background: url("http://www.belorya-rpg.ru/template/button2.png") no-repeat; border:1} +.author {FONT-FAMILY: Monotype Corsiva, serif ; FONT-SIZE: 18px; FONT-WEIGHT: bold;} +.user {FONT-FAMILY: Monotype Corsiva, serif ; FONT-SIZE: 21px; FONT-WEIGHT: normal; color: #2222aa; margin: 0px 0px 10px 0px;} + + +.forumtable {border-collapse: collapse; border: 3px; +border-color: #522816; border-style: solid; margin-bottom: 4pt;} + +.forumtable tr td {padding: 10pt; background: url("http://www.belorya-rpg.ru/template/parchment.png");} + +.forumtable tr th {TEXT-ALIGN: justify; font-weight: bold; +border-collapse: collapse; border: 2px; border-style: solid; border-top: +none; border-bottom: none; padding: 10pt; background: url("http://www.belorya-rpg.ru/template/parchment.png"); border-color: #522816; } + + +/* ????? ????????? ??, ??? ????????? ? ?????? ?????? */ diff --git a/templates/belstyle/common.js b/templates/belstyle/common.js new file mode 100644 index 0000000..be32d7a --- /dev/null +++ b/templates/belstyle/common.js @@ -0,0 +1,52 @@ +// Библиотека стандартных функций, используемых как в формах в форумного +// скрипта так и на страницах форума. + + +// Запрещает поле password в текущей форме если значение value текущего +// элемента не пусто. Используется в качестве обработчика onChange +// для поля openidsite. Пример использования +// + +Имя в URL +Аннотация +Формат +Картинка
+
+
+Удалить
+ + + + + + + + + diff --git a/templates/belstyle/edit_message.html b/templates/belstyle/edit_message.html new file mode 100644 index 0000000..c65e9f6 --- /dev/null +++ b/templates/belstyle/edit_message.html @@ -0,0 +1,41 @@ + + + +Still Life - Высказаться + + + + + + +

Тестовый форум Still Life

+

Редактирование сообщения

+
+ + + + + + + + +
Тема:
Текст:
Формат:
Картинка
+
+
+ +
+ + + diff --git a/templates/belstyle/edit_topic.html b/templates/belstyle/edit_topic.html new file mode 100644 index 0000000..d2644e1 --- /dev/null +++ b/templates/belstyle/edit_topic.html @@ -0,0 +1,33 @@ + + + +Still Life - Создать тему + + + + + + +

Тестовый форум Still Life

+
+ + + + + +
Название +
Имя в URL
Аннотация
Формат +
+
+ +
+ + + diff --git a/templates/belstyle/error.html b/templates/belstyle/error.html new file mode 100644 index 0000000..9dbb3a7 --- /dev/null +++ b/templates/belstyle/error.html @@ -0,0 +1,13 @@ + + + +Ошибка + + + + +

Тестовый форум Still Life

+

Произошла неустранимая ошибка

+
+ + diff --git a/templates/belstyle/form.js b/templates/belstyle/form.js new file mode 100644 index 0000000..4528b61 --- /dev/null +++ b/templates/belstyle/form.js @@ -0,0 +1,4 @@ +// Библиотека стандартных функций, используемых в формах форумного +// скрипта +// + diff --git a/templates/belstyle/forum.html b/templates/belstyle/forum.html new file mode 100644 index 0000000..2bf1aed --- /dev/null +++ b/templates/belstyle/forum.html @@ -0,0 +1,70 @@ + + + + +Still Life - Форум + + + + + + +Зарегистрироваться Войти +Создать тему +Создать форум +Редактировать +Права доступа +Уровень выше +В начало +Свежие сообщения +Профиль +Пользователи +

Тестовый форум Still Life

+
+

Корень форума

+
Создан
+
+
+
+

Подфорумы

+
+

+ + +
+Название форума Создан:
+
аннотация форума
+
+ + + + +
+
+

+
+
+

Темы

+
+Название темы Создана:
+# + +
+
аннотация темы
+Количество сообщений () +
+ + + + + +
+
+
+ + diff --git a/templates/belstyle/login.html b/templates/belstyle/login.html new file mode 100644 index 0000000..93e75db --- /dev/null +++ b/templates/belstyle/login.html @@ -0,0 +1,37 @@ + + + +Still Life - Вход + + + + + + +

Тестовый форум Still Life

+
+Зарегистрироватьcя + + + + + + + +
Имя пользователя: +
Сайт на котором вы зарегистрированы
Пароль:
Только с этого IP-адреса +
+ +
+ + + diff --git a/templates/belstyle/newforum.html b/templates/belstyle/newforum.html new file mode 100644 index 0000000..68482da --- /dev/null +++ b/templates/belstyle/newforum.html @@ -0,0 +1,33 @@ + + + +Still Life - Создать форум + + + + + + +

Тестовый форум Still Life

+

Создание подфорума

+
+ + + + + + + +
Название +
Имя в URL
Аннотация
Формат
Картинка
+
+ +
+ + + diff --git a/templates/belstyle/newtopic.html b/templates/belstyle/newtopic.html new file mode 100644 index 0000000..62516ef --- /dev/null +++ b/templates/belstyle/newtopic.html @@ -0,0 +1,31 @@ + + + +Still Life - Создать тему + + + + + + +

Тестовый форум Still Life

+
+ + + + + +
Название +
Имя в URL
Аннотация
Формат +
+
+ +
+ + + diff --git a/templates/belstyle/page.js b/templates/belstyle/page.js new file mode 100644 index 0000000..f321c31 --- /dev/null +++ b/templates/belstyle/page.js @@ -0,0 +1,276 @@ +// Библиотека стандартных функций, используемых на страницах форума +// +// Извлекает из кук имя текущего пользователя и возвращает его, а также +// сохраняет в глобальной переменной forumUser; +var forumUser; +var userStatus; +function getUserName() { + var cookietext =document.cookie; + var pos = cookietext.indexOf("sluser="); + if (pos == -1) { + return undefined; + } + var start = pos+7; + var end = cookietext.indexOf(";",start); + if (end == -1) end=cookietext.length; + var value= cookietext.substring(start,end); + forumUser = decodeURIComponent(value); + return forumUser; +} +// +// Шаблон страницы содержит два специальных тэга link с rel=forum-script +// и rel=forum-user-list +// Эта функция извлекает их в глобальные переменные forumScriptUrl +// и userListUrl; +var forumScriptUrl; +var userListUrl; +function getBaseURLs() { + var links=document.getElementsByTagName("link"); + for (i=0;i0) { + links[i].removeChild(links[i].childNodes[0]); + } + if (username.substring(0,7) == "http://") { + links[i].href=username; + username=username.substring(7,username.length); + } else { + links[i].href=userListUrl+"/" + username; + } + links[i].appendChild(document.createTextNode(username)); + links[i].className = userStatus; + } else if (links[i].href.substring(0,forumScriptUrl.length)== + forumScriptUrl && links[i].href.indexOf("login=")!=-1) { + while (links[i].childNodes.length>0) { + links[i].removeChild(links[i].childNodes[0]); + } + links[i].appendChild(document.createTextNode("Выйти")); + links[i].href=forumScriptUrl+"?logout=1"; + } + } +} + +// +// Добывает с сервера информацию о модераторах данного форума и +// возвращает user, moderator или admin в зависисмости от статуса +// указанного пользователя. +// +function getUserRights(user) { + var status="user"; + var xhr=getXMLHttpRequest(); + if(!xhr) return status; + // Strip http:// prefix from OpenID url + if (user.substring(0,7) == "http://") { + user=user.substring(7,user.length); + } + var hr=location.href.match(/^\w+:\/\/[^/]*\/([^?#]+)/); + if(hr==null) return status; + var depth=hr[1].split(/\//).length; + var re=new RegExp("\n\\\[\s*(admins|moderators|banned)\s*\\\]\s*[^[]*\n"+user+"\n","m"); + for(var path="",i=0;i +function showForm(link, formName) { + var id; + var action; + if (link.form) { + link = link.form; + id = link.elements["id"].value; + action = link.action; + } else { + var linktext=link.href; + // Разобрать параметры, получить значение id + var start =linktext.indexOf("id="); + if (start!=-1) { + start+=3; + var end = linktext.indexOf("&",start); + if (end==-1) end=linktext.length; + id = linktext.substring(start,end); + } + start=linktext.indexOf("?"); + action=linktext.substring(0,start); + } + var block = document.getElementById(formName); + var f = block.getElementsByTagName("form")[0]; + f.action=action; + if (id) { + f.elements["id"].value=id; + } + window.setTimeout(function() {f.elements["text"].focus();},250); + linktext = document.location.href; + var anchor = linktext.indexOf("#"); + if (anchor!=-1) { + linktext=linktext.substring(0,anchor); + } + document.location.href=linktext+"#replyform"; + return false; +} +function hideForm(formId) { + var block = document.getElementById(formId); + block.style.display = "none"; +} +/** +* Создаёт объект XMLHttpRequest, предварительно уничтожая существующий, +* если такой существует. +*/ +function getXMLHttpRequest() +{ + try { + return xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); + } catch (e) { + try { + return new ActiveXObject("Microsoft.XMLHTTP"); + } catch (E) { + if (typeof XMLHttpRequest!='undefined') + return new XMLHttpRequest(); + } + } + + return false; +} + diff --git a/templates/belstyle/register.html b/templates/belstyle/register.html new file mode 100644 index 0000000..419c7b5 --- /dev/null +++ b/templates/belstyle/register.html @@ -0,0 +1,63 @@ + + + +Still Life - регистрация пользователя + + + + + + +

Тестовый форум Still Life

+
+
+Имя: + +
+Пароль: + Только с этого IP-адреса +
+
+ +

Регистрация нового пользователя

+
+
+ + + + + + + + + + + + + + +
Имя
Пароль
Адрес E-Mail
Адрес ICQ
Адрес Jabber
Пол
Потолок
(в метрах)
Комментарий
(виден только
на странице
+пользователя)

АватарURL:
Или загрузить:
Подпись
(добавляется
ко всем
+сообщениям)

+ +
+ + + diff --git a/templates/belstyle/reply.html b/templates/belstyle/reply.html new file mode 100644 index 0000000..d1ed9dd --- /dev/null +++ b/templates/belstyle/reply.html @@ -0,0 +1,44 @@ + + + +Still Life - Высказаться + + + + + + +

Тестовый форум Still Life

+
+ + + + + + + + + + + +
Пользователь: Зарегистрироваться
+
Пароль:
Только с этого IP-адреса +
Тема:
Текст:
Формат:
Картинка
+
+ +
+ + + diff --git a/templates/belstyle/setrights.html b/templates/belstyle/setrights.html new file mode 100644 index 0000000..7ae096a --- /dev/null +++ b/templates/belstyle/setrights.html @@ -0,0 +1,35 @@ + + + +Установка прав доступа + + + + +

Права доступа

+
+

Права на вышележащие разделы:

+ + + + + + +
Права
АдминистраторыМодераторыЗапрещен доступ
+
+
+

Права на данный раздел:

+ + + + + + +
АдминистраторыМодераторыЗапрещен доступ
+
+
+ + + diff --git a/templates/belstyle/topic.html b/templates/belstyle/topic.html new file mode 100644 index 0000000..446091a --- /dev/null +++ b/templates/belstyle/topic.html @@ -0,0 +1,146 @@ + + + + +Белория RPG - Форум + + + + + + +
+ + + + + + + + + +
+ + +

+

+
+

Зарегистрироваться Войти +Редактировать +К списку тем + +

+ + + + +
+ +

Тестовая тема

+

Создана Irene 06.05.2008 +

+

Это такая тестовая тема +

+Высказаться +
+ +
+
+ + + + + + + + + + + + +
+
Автор
+
+
Статус: Тест
+
Email: test@test.ru
+ +
21.03.2008 17:02 +Тема сообщения (ссылка) (в ответ на) +
+
Это очень-очень-очень длинный текст сообщения P.head1 {color: #522816; FONT-FAMILY: Monotype Corsiva, serif ; FONT-SIZE: 22px; padding: 0 0 0 0; TEXT-ALIGN: center; FONT-WEIGHT: normal;} + +P.pagetitle{color: #522816; FONT-FAMILY: Monotype Corsiva, serif ; FONT-SIZE: 40px; TEXT-ALIGN: center; margin: 0px 0px 0px 0px ; FONT-WEIGHT: normal;} + +body {background: url("http://www.belorya-rpg.ru/template/green.png");} + +p.copyright {FONT-FAMILY: Arial, Helvetica, sans-serif ; FONT-SIZE: 10px; FONT-STYLE: italic; COLOR: #dd9f64; text-align: right; +} + +p.center {TEXT-ALIGN: center;} + +h1 {color: #522816; FONT-FAMILY: Monotype Corsiva, serif ; FONT-SIZE: 28pt; TEXT-ALIGN: center; font-weight: normal; margin: 0px 0px 0px 0px ;} + +p.line {text-align: center;} + +.hand { FONT-FAMILY: Monotype Corsiva, serif ; FONT-SIZE: 12pt; COLOR: #324237; FONT-WEIGHT: normal;} + +.up {FONT-FAMILY: Monotype Corsiva, serif ; FONT-SIZE: 12pt; COLOR: #324237; FONT-WEIGHT: normal; TEXT-ALIGN: right; TEXT-DECORATION: underline;} + +.up a {FONT-FAMILY: Monotype Corsiva, serif ; FONT-SIZE: 12pt; COLOR: #324237; FONT-WEIGHT: normal; TEXT-ALIGN: right; TEXT-DECORATION: underline;} + +.up a:visited {FONT-FAMILY: Monotype Corsiva, serif ; FONT-SIZE: 12pt; COLOR: #324237; FONT-WEIGHT: normal; TEXT-ALIGN: right; TEXT-DECORATION: underline;} + +.up a:hover {FONT-FAMILY: Monotype Corsiva, serif ; FONT-SIZE: 12pt; COLOR: #324237; FONT-WEIGHT: normal; TEXT-ALIGN: right; TEXT-DECORATION: underline;} +
+
+
+ + + + + + +
+
+
+
+
+
+ + + + + + + + + + + + +
Пользователь: Зарегистрироваться
+
Пароль:
Только с этого IP-адреса +
Тема:
Текст:
Формат:
Картинка
+ +
+
+
+
+ + diff --git a/templates/belstyle/user.html b/templates/belstyle/user.html new file mode 100644 index 0000000..a8d3f67 --- /dev/null +++ b/templates/belstyle/user.html @@ -0,0 +1,35 @@ + + + +Still Life - Вход + + + + + + +

Тестовый форум Still Life

+

Пользователь

+ +Редактировать
+ + + + + + + + + + + + + +
Статус
Зарегистрирован
Адрес E-Mail
Адрес ICQ
Адрес Jabber
Пол
Потолок
(в +метрах)
Комментарий
(виден только
на странице
+пользователя)
Подпись
(добавляется
ко всем
+сообщениям)
Сообщений(последнее +)
Тем(последняя +)
+ + diff --git a/templates/belstyle/userlist.html b/templates/belstyle/userlist.html new file mode 100644 index 0000000..7b69b2d --- /dev/null +++ b/templates/belstyle/userlist.html @@ -0,0 +1,22 @@ + + + +Still Life - Список пользователей + + + + + + +

Тестовый форум Still Life

+

Список пользователей

+ + + + +
ПользовательСтатусЗарегистрированСообщенийПоследнее
Редактировать
+ + -- 2.39.2