Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
111111111111111.doc
Скачиваний:
2
Добавлен:
01.05.2025
Размер:
8 Мб
Скачать
☆

5.4 Стратегія маркетингу.

Для успішного супроводження програмного продукту на ринку та досягнення запланованого об'єму продаж необхідно ретельно спланувати рекламну компанію, котра дала б можливість усім потенційним користувачам дізнатись про існування та переваги розробленого програмного продукту. Рекламна компанія буде проводиться засобами електронної комерції, на IRC; та сайтах з новинами.

Але для початку рекламна компанія обмежиться розсилкою електронних листів потенційним покупцям. В листах буде знаходитись детальна інформація проданий програмний продукт, що досить зручно та вигідно. Також у листі вказується адреса домашнього сайту розробника, де можна буде внести свої пропозиції.

Витрати на розробку наведені у таблиці 5.5 Таблиця 5.5. – Розрахунок трудових витрат

Найменування операції

Кількість годин

Проектування

80

Кодування

60

Налагодження

40

Тестування

50

Супроводження

50

Всього

280

Трудовитрати, які потребують для розробки програмного продукту складають 280 годин.

  1. Розрахуємо час роботи на машині - 60 + 40 + 50 + 50= 200 годин.

  2. Розрахуємо немашинний час = 80 годин.

  3. Розрахуємо вартість машинного часу (електроенергія)

Велектр.ен. = машинний час * потужність машини* тариф

Велектр.ен.= 200 годин * 0,35 КВтчас * 1,02 грн. = 84грн.

  1. Розрахуємо заробітну плату розробника програмного продукту. Витрачений час на розробку програмного продукту – 245 годин, тариф за годину роботи – 40,00 грн., звідси 40,00 грн. * 280год. = 11200 грн.

  2. Додаткова заробітна плата (20-50% від основної ЗП)

11200 грн. * 0,4= 4480 грн.

Відрахування на соціальні потреби (38% від ФОП)

(4480 грн. +11200 грн.) * 0,38 = 5958,4 грн.

Накладні витрати (40-100% від ФОП):

15680 грн. * 0,4 = 6272 грн.

  1. Розрахуємо вартість матеріалів (Таблиця 5.6 Витрати на матеріали)

Таблиця 5.6 – Витрати на матеріали

Матеріали

Кількість,

шт.

Ціна за одиницю, грн.

Вартість, грн.

Папір

150

0,10

15,00

Файл

155

0,3

46,5

Папка

1

5,00

5,00

Ручка

1

2,00

2,00

Заправка картриджа

1

60,00

60,00

Флеш накопичувач

1

70,00

70,00

Всього

198,5

Суму витрат на розробку програмного продукту занесемо в таблицю 5.7. витрати на розробку програмного продукту.

Таблиця 5.7 – Витрати на розробку програмного продукту.

Статті витрат

Вартість, грн.

Матеріали

198,5

Вартість електроенергії

84

Основна заробітна плата

11200

Додаткова заробітна плата (20-50% від ФОП)

4480

Соціальні відрахування (38% від ФОП)

5958

Накладні витрати (40-100% від ФОП)

6272

Продовження таблиці 5.7

Виробнича собівартість

28194

Невиробничі витрати (3% від виробничої с/в)

846

Всього

29040

  1. Розрахуємо витрати на адаптацію(накладні витрати програмного продукту, 3-10% від виробничої собівартості ПП)

28194 грн. * 0,03 = 846 грн.

  1. Визначимо повну собівартість розробленого програмного продукту.

28194 грн. + 846 грн. = 29040 грн.

  1. Розрахуємо прибуток (30% від повної собівартості)

29040 грн. * 0,3 = 8712грн.

Ціна: 8712 грн. + 1122 грн. =9834 грн.

Максимальна ціна програмного продукту розраховується за формулою:

Цmax = (собівартість + кредит + 1,2 Прибуток) = грн.

Цmax = (29040 + 6000 + 1,19* 9834) =46783грн.

5.5 Фінансовий план.

Цей розділ узагальнює і систематизує всі матеріали попередніх розділів та представляє їх у вартісному вираженні.

З урахуванням раніш визначених витрат на розробку програмного продукту заповнюємо таблицю 5.9 – Таблиця доходів та витрат

Таблиця 5.8 – Доходів та витрат

Показники

Витрати до поч. реалізації

1 рік

2 рік

Всього

Обсяг продаж (шт.)

70

70

140

Доходи від реалізації (грн)

35000

35000

70000

Продовження таблиці 5.8

  1. Постійні витрати

- Матеріали

198

-

-

198

- Електроенергія

84

-

-

84

- Основна зарплата

11200

-

-

11200

- Додаткова зарплата

44800

-

-

44800

-Соціальні відрахування

5958

-

-

5958

- Накладні витрати

6272

-

-

6272

- Кредит

6000

-

-

6000

- Відсоток за кредит

1200

1200

Всього постійних витрат:

28192

-

1200

29392

Змінні витрати

Обслуговування

3000

3000

6000

Всього змінних витрат:

-

3000

3000

6000

Всього витрат:

28192

3000

4200

34192

Прибуток:

-28192

32000

30800

34608

Податок на прибуток

-

6080

5852

11932

Чистий прибуток:

-28192

25920

24948

22676

Будуємо графік беззбитковості та розраховуємо точку беззбитковості програмного продукту.

=62 шт.

Рисунок 5.1 - графік беззбитковості

Висновки

Формування інформаційного освітнього середовища та інтеграція його в інформаційний освітній простір є закономірним кроком у розвитку інформатизації освіти.

Даний сайт орієнтований на студентів та абітурієнтів. З його допомогою користувачі зможуть отримувати необхідну інформацію і задавати свої питання на форумі. При розміщенні його в глобальній мережі географія розповсюдження зросте.

При розробці web-сайту були проаналізовані сучасні web-технології, що дозволяють створювати інтерактивні web-сторінки. Найбільш придатною для виконання поставленого завдання виявилась Joomla 2.0.9.

У даному проекті я визначила цільову аудиторію, для якої призначений сайт, виявила вимоги сайту, яким він повинен відповідати, зареєструвала доменне ім'я для сайту і вибрала хостинг. Спланувала структуру, розробила дизайн і верстку макета, наповнила сайт необхідним контентом, протестувала сайт і опублікували в інтернеті, в результаті чого сайт вийшов цілком собі легким і простим у сприйнятті.

Всі основні труднощі стосувалися тільки технічних проблем, зокрема це стосувалося розробки концепції і дизайну сайту.

Розроблений сайт задовольняє всім вимогам, поставленим на етапі постановки завдання. При розробці web-сайту були використані готові модулі голосування, форуму і галереї також був створений модуль розкладу занять та модуль календар подій, які були успішно впроваджені в структуру web-сайту.

В якості подальшого вдосконалення web-сайту представляється можливим розробка модулів доступу до систем дистанційної освіти. Так само можливе доопрацювання інтерфейсу сайту з метою подальшого підвищення його інформативності, привабливості і зручності.

Перелік посилань

  1. http://wiki.likt590.ru/doku.php/tema:obrazovatelnye_vozmozhnosti_interneta.

  2. http://www.ict.edu.ru/ft/004084/afonin.pdf.

  3. Р.Н. Абалуев, “Интернет-технологии в образовании”, 2002.

  4. http://azbukalinux.narod.ru/azbuka/history_and_distr/history.html.

  5. -http://ru.wikipedia.org/wiki/Ubuntu#cite_note.

  6. Громов А.И., Сафин М.Я. Основы информатики вычислительной техники: Учеб. пособие.-изд. 2-е, перераб. – М.: Издательство РУДН, 2004.

  7. Колесниченко С., Шишигин И. Аппаратные средства PC. BHV 2003.

  8. Пасько В. Ваш ноутбук. Самоучитель. – М., 2007.

  9. Колисничснко Д.Н., “движок для вашего сайта cms joomla!”, 2008.

  10. «CMS Drupal. Система управления содержимым сайта».

  11. http://ua.textreferat.com/referat-7609-1.html.

  12. http://validator.w3.org/.

  13. Д. Ван Огородников А. Твой ноутбук. Путеводитель по работе с мобильным компьютером. – Изд-во: Питер, 2007.

  14. Брукшир Дж. Информатика и вычислительная техника [Текст].7-е изд. / Дж. Брукшир. – СПБ.:Питер, 2004.-620 с. Информатика: Учебник / под ред. Проф. Н.В. Макаровой. – М.: Финансы и статистика, 2007.

  15. Могилев А.В. Информатика: Учеб. пособие для пед. вузов/ Могилев А.В., Пак Н.И., Хеннер Е.К.: Под ред. Е.К. Хеннера. – М.: Академия, 2001.

  16. В.Ц.Жидецький-Охорона працікористувачів компютерів. Львів "Афіша",2000-174с.

  17. В.П.Кучерявий, Ю.Є.Павлюк, А.Д.Кузик,С.В.Кучерявий-Охорона праці. Львів "Оріяна Нова", 2007-368с.

  18. В.Ц.Жидецький , В.С. Джигирей, О.В.Мельников-Основи охорони праці:Львів"Афіша", 2001-349с.

Додаток А (Лістинг програми на 39 сторінках)

editor.css

/ / style content

body

{

background: // style background

url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAABmJLR0QA/wD/AP+gvaeTAAAAW0lEQVRoge3PAQ2AMADAsHNNV4EP/EvgJp7QkFXBdt3PescPzK8DTmlE04imEU0jmkY0jWga0TSiaUTTiKYRTSOaRjSNaBrRNKJpRNOIphFNI5pGNI1oGtE0otm7fQJGMEMqewAAAABJRU5ErkJggg==), #875511

url('../images/page.png') fixed; //фонове зображення

margin: 0 auto; //величина відступу

font-size: 13px; //розмір шрифту

font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif; //шрифт

font-weight: normal; //висота шрифту

font-style: normal; //стиль

min-height: 100%;//мінімальна висота

left: 0;

top: 0;

cursor: default;

}

/ / Table Styles

table

{

font-size: 13px;

font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;

font-weight: normal;

font-style: normal;

}

/ / style headlines

h1, h2, h3, h4, h5, h6, p, a, ul, ol, li

{

margin: 0;

padding: 0;

}

body

{

text-align: left;

}

/ / link style

body, li, table, a, a:link, a:visited, a.visited, a:hover, a.hovered

{

font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;

text-align: left;

line-height: 175%;

}

/ / paragraph style

p

{

margin: 13px 0;

}

//style of fonts of links according to headlings

h1, h1 a, h1 a:link, h1 a:visited, h1 a:hover, h2, h2 a, h2 a:link, h2 a:visited, h2 a:hover, h3, h3 a, h3 a:link, h3 a:visited, h3 a:hover, h4, h4 a, h4 a:link, h4 a:visited, h4 a:hover, h5, h5 a, h5 a:link, h5 a:visited, h5 a:hover, h6, h6 a, h6 a:link, h6 a:visited, h6 a:hover

{

font-size: 22px;

font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;

font-weight: normal;

font-style: normal;

line-height: 120%;

}

/ / style active links

a, a:link

{

font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;

text-decoration: none;

color: #FB8D34;

}

/ / style of visited links

a:visited, a.visited

{

font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;

text-decoration: none;

color: #FB8D34;

}

/ / style element when given away

a:hover, a.hover

{

font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;

text-decoration: underline;

color: #D93B18;

}

/ * style header * /

h1

{

color: #FAFAFA;

margin: 10px 0 0;

font-size: 26px;

font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;

}

h1 a, h1 a:link, h1 a:hover, h1 a:visited

{

font-size: 26px;

font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;

}

h2

{

color: #FAFAFA;

margin: 10px 0 0;

font-size: 22px;

font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;

}

h2 a, h2 a:link, h2 a:hover, h2 a:visited

{

font-size: 22px;

font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;

}

h3

{

color: #FAFAFA;

margin: 10px 0 0;

font-size: 20px;

font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;

}

h3 a, h3 a:link, h3 a:hover, h3 a:visited

{

font-size: 20px;

font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;

}

h4

{

color: #FFFFFF;

margin: 10px 0 0;

font-size: 18px;

font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;

}

h4 a, h4 a:link, h4 a:hover, h4 a:visited

{

font-size: 18px;

font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;

}

h5

{

color: #FFFFFF;

margin: 10px 0 0;

font-size: 15px;

font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;

}

h5 a, h5 a:link, h5 a:hover, h5 a:visited

{

font-size: 15px;

font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;

}

h6

{

color: #969696;

margin: 10px 0 0;

font-size: 13px;

font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;

}

h6 a, h6 a:link, h6 a:hover, h6 a:visited

{

font-size: 13px;

font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;

}

/ * style navigation bar and copyright * /

header, footer, nav

{

-webkit-background-origin: border !important;

-moz-background-origin: border !important;

background-origin: border-box !important;

}

header, footer, nav

{

display: block;

-webkit-box-sizing: border-box;

-moz-box-sizing: border-box;

box-sizing: border-box;

}

/ * list style * /

ul

{

list-style-type: none;

}

ol

{

list-style-position: inside;

}

html, body

{

height: 100%;

}

body

{

padding: 0;

margin: 0;

color: #FFFFFF;

}

.clearfix:before, .clearfix:after

{

content: "";

display: table;

}

.clearfix:after

{

clear: both;

}

/ / style forms

form

{

padding: 0 !important;

margin: 0 !important;

}

table.position

{

position: relative;

width: 100%;

table-layout: fixed;

}

li h1, li h1

{

margin: 1px;

}

li h2, li h2

{

margin: 1px;

}

li h3, li h3

{

margin: 1px;

}

li h4, li h4

{

margin: 1px;

}

li h5, li h5

{

margin: 1px;

}

li h6, li h6

{

margin: 1px;

}

li p, li p

{

margin: 1px;

}

/ * style input and select methods*/

input, select, textarea

{

vertical-align: middle;

font-size: 13px;

font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;

font-weight: normal;

font-style: normal;

}

input[type="text"], input[type="password"], input[type="email"], input[type="url"], textarea

{

background: #E0E0E0;

-webkit-border-radius: 4px;

-moz-border-radius: 4px;

border-radius: 4px;

border: 1px solid #C7C7C7;

margin: 0 auto;

}

input[type="text"], input[type="password"], input[type="email"], input[type="url"], textarea

{

width: 100%;

padding: 4px 0;

color: #000000 !important;

font-size: 13px;

font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;

font-weight: normal;

font-style: normal;

}

/ * Style images * /

a img

{

border: 0;

}

body img

{

margin: 7px 7px 7px 7px;

}

body table

{

border-collapse: collapse;

margin: 1px;

}

body th, body td

{

padding: 2px;

border: solid 1px #828282;

vertical-align: top;

text-align: left;

}

body th

{

text-align: center;

vertical-align: middle;

padding: 7px;

}

pre

{

overflow: auto;

padding: 0.1em;

}

.image-caption-wrapper

{

padding: 7px 7px 7px 7px;

-webkit-box-sizing: border-box;

-moz-box-sizing: border-box;

box-sizing: border-box;

}

.image-caption-wrapper img

{

margin: 0 !important;

-webkit-box-sizing: border-box;

-moz-box-sizing: border-box;

box-sizing: border-box;

}

.image-caption-wrapper p

{

font-size: 80%;

text-align: right;

margin: 0;

}

ul>li:before

{

content: url('../images/postbullets.png');

margin-right: 6px;

bottom: 2px;

position: relative;

display: inline-block;

vertical-align: middle;

font-size: 0;

line-height: 0;

}

.opera ul>li:before

{

bottom: 0;

}

li

{

font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;

color: #FFFFFF;

margin: 3px 0 0 11px;

}

ul>li, ol

{

padding: 0;

}

ul>li

{

padding-left: 16px;

}

ul>li:before

{

margin-left: -16px;

}

ol, ul

{

margin: 1em 0 1em 11px;

}

li ol, li ul

{

margin: 0.5em 0 0.5em 11px;

}

li

{

margin: 3px 0 0 0;

}

ol>li

{

overflow: visible;

}

ul>li

{

overflow-x: visible;

overflow-y: hidden;

}

/ * style the form * /

blockquote

{

background: #F5D6AD url('../images/postquote.png') no-repeat scroll;

padding: 10px 10px 10px 47px;

margin: 10px 0 0 25px;

color: #0D0D0D;

font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;

font-weight: normal;

font-style: italic;

text-align: left;

overflow: auto;

clear: both;

}

blockquote a, blockquote a, blockquote a:link, blockquote a:link, blockquote a:visited, blockquote a:visited, blockquote a:hover, blockquote a:hover

{

color: #0D0D0D;

font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;

font-weight: normal;

font-style: italic;

text-align: left;

}

blockquote p, blockquote p

{

margin: 0;

margin: 5px 0;

}

/* Compatibility rules for the default TinyMCE skin: */

td

{

color: inherit;

font-family: inherit;

font-size: inherit;

margin: inherit;

}

abbr

{

border-bottom: 0px none;

}

cite

{

border-bottom: 0px none;

}

body

{

border-collapse: collapse;

}

Functions.php

<?php

defined('_JEXEC') or die;

if (!defined('_ARTX_FUNCTIONS')) {

define('_ARTX_FUNCTIONS', 1);

$GLOBALS['artx_settings'] = array(

'block' => array('has_header' => true),

'menu' => array('show_submenus' => true),

'vmenu' => array('show_submenus' => true, 'simple' => false)

);

require_once dirname(__FILE__) . '/library/Artx.php';

/**

* Decorates an article or block with the art-post style.

*

* Elements of the $data array:

* 'classes'

* 'header-text'

* 'header-icon'

* 'header-link'

* 'metadata-header-icons'

* 'metadata-footer-icons'

* 'content'

*/

/* for closed article*/

function artxPost($data)

{

if (is_string($data))

$data = array('content' => $data);

$classes = isset($data['classes']) && strlen($data['classes']) ? $data['classes'] : '';

artxFragmentBegin("<article class=\"art-post" . $classes . "\">");

artxFragmentBegin("<div class=\"art-postmetadataheader\">");

artxFragmentBegin("<h2 class=\"art-postheader\">");

if (isset($data['header-text']) && strlen($data['header-text'])) {

if (isset($data['header-link']) && strlen($data['header-link']))

artxFragmentContent('<a href="' . $data['header-link'] . '">' . $data['header-text'] . '</a>');

else

artxFragmentContent($data['header-text']);

}

artxFragmentEnd("</h2>");

artxFragmentEnd("</div>");

artxFragmentBegin("<div class=\"art-postheadericons art-metadata-icons\">");

if (isset($data['metadata-header-icons']) && count($data['metadata-header-icons']))

foreach ($data['metadata-header-icons'] as $icon)

artxFragment('', $icon, '', ' | ');

artxFragmentEnd("</div>");

artxFragmentBegin("<div class=\"art-postcontent clearfix\">");

if (isset($data['content']) && strlen($data['content']))

artxFragmentContent(artxPostprocessPostContent($data['content']));

artxFragmentEnd("</div>");

artxFragmentBegin("<div class=\"art-postmetadatafooter\">");

artxFragmentBegin("<div class=\"art-postfootericons art-metadata-icons\">");

if (isset($data['metadata-footer-icons']) && count($data['metadata-footer-icons']))

foreach ($data['metadata-footer-icons'] as $icon)

artxFragment('', $icon, '', ' | ');

artxFragmentEnd("</div>");

artxFragmentEnd("</div>");

return artxFragmentEnd("</article>", '', true);

}

/*for block alocation*/

function artxBlock($caption, $content, $classes = '')

{

$hasCaption = ($GLOBALS['artx_settings']['block']['has_header']

&& null !== $caption && strlen(trim($caption)) > 0);

$hasContent = (null !== $content && strlen(trim($content)) > 0);

if (!$hasCaption && !$hasContent)

return '';

artxFragmentBegin("<div class=\"art-block clearfix" . $classes . "\">");

artxFragmentBegin("<div class=\"art-blockheader\"><h3 class=\"t\">");

artxFragmentContent($caption);

artxFragmentEnd("</h3></div>");

artxFragmentBegin("<div class=\"art-blockcontent\">");

artxFragmentContent(artxPostprocessBlockContent($content));

artxFragmentEnd("</div>");

return artxFragmentEnd("</div>", '', true);

}

/*for definition of the block of the menu*/

function artxVMenuBlock($caption, $content, $classes = '')

{

$hasCaption = (null !== $caption && strlen(trim($caption)) > 0);

$hasContent = (null !== $content && strlen(trim($content)) > 0);

if (!$hasCaption && !$hasContent)

return '';

artxFragmentBegin("<div class=\"art-vmenublock clearfix" . $classes . "\">");

artxFragmentBegin("<div class=\"art-vmenublockheader\"><h3 class=\"t\">");

artxFragmentContent($caption);

artxFragmentEnd("</h3></div>");

artxFragmentBegin("<div class=\"art-vmenublockcontent\">");

artxFragmentContent(artxPostprocessBlockContent($content));

artxFragmentEnd("</div>");

return artxFragmentEnd("</div>", '', true);

}

/*for way establishment*/

function artxUrlToHref($url)

{

$result = '';

$p = parse_url($url);

if (isset($p['scheme']) && isset($p['host'])) {

$result = $p['scheme'] . '://';

if (isset($p['user'])) {

$result .= $p['user'];

if (isset($p['pass']))

$result .= ':' . $p['pass'];

$result .= '@';

}

$result .= $p['host'];

if (isset($p['port']))

$result .= ':' . $p['port'];

if (!isset($p['path']))

$result .= '/';

}

if (isset($p['path']))

$result .= $p['path'];

if (isset($p['query'])) {

$result .= '?' . str_replace('&', '&', $p['query']);

}

if (isset($p['fragment']))

$result .= '#' . $p['fragment'];

return $result;

}

/**

* Searches $content for tags and returns information about each found tag.

*

* Created to support button replacing process, e.g. wrapping submit/reset

* inputs and buttons with artisteer style.

*

* When all the $name tags are found, they are processed by the $filter specified.

* Filter is applied to the attributes. When an attribute contains several values

* (e.g. class attribute), only tags that contain all the values from filter

* will be selected. E.g. filtering by the button class will select elements

* with class="button" and class="button validate".

*

* Parsing does not support nested tags. Looking for span tags in

* <span>1<span>2</span>3</span> will return <span>1<span>2</span> and

* <span>2</span>.

*

* @return array of text fragments and tag information: position, length,

* name, attributes, raw_open_tag, body.

*/

function artxFindTags($content, $filters)

{

$result = array('');

$index = 0;

$position = 0;

$name = implode('|', array_keys($filters));

$name = str_replace('*', '\w+', $name);

// search for open tag

if (preg_match_all(

'~<(' . $name . ')\b(?:\s+[^\s]+\s*=\s*(?:"[^"]+"|\'[^\']+\'|[^\s>]+))*\s*/?' . '>~i', $content,

$tagMatches, PREG_OFFSET_CAPTURE | PREG_SET_ORDER))

{

foreach ($tagMatches as $tagMatch) {

$rawMatch = $tagMatch[0][0];

$name = $tagMatch[1][0];

$normalName = strtolower($name);

$tag = array('name' => $name, 'position' => $tagMatch[0][1]);

$openTagTail = (strlen($rawMatch) > 1 && '/' == $rawMatch[strlen($rawMatch) - 2])

? '/>' : '>';

// different instructions for paired and unpaired tags

switch ($normalName)

{

case 'input':

case 'img':

case 'br':

$tag['paired'] = false;

$tag['length'] = strlen($tagMatch[0][0]);

$tag['body'] = null;

$tag['close'] = 2 == strlen($openTagTail);

break;

default:

$closeTag = '</' . $name . '>';

$closeTagLength = strlen($closeTag);

$tag['paired'] = true;

$end = strpos($content, $closeTag, $tag['position']);

if (false === $end)

continue;

$openTagLength = strlen($tagMatch[0][0]);

$tag['body'] = substr($content, $tag['position'] + $openTagLength,

$end - $openTagLength - $tag['position']);

$tag['length'] = $end + $closeTagLength - $tag['position'];

break;

}

// parse attributes

$rawAttributes = trim(substr($tagMatch[0][0], strlen($name) + 1,

strlen($tagMatch[0][0]) - strlen($name) - 1 - strlen($openTagTail)));

$attributes = array();

if (preg_match_all('~([^=\s]+)\s*=\s*(?:(")([^"]+)"|(\')([^\']+)\'|([^\s]+))~',

$rawAttributes, $attributeMatches, PREG_SET_ORDER))

{

foreach ($attributeMatches as $attrMatch) {

$attrName = $attrMatch[1];

$attrDelimeter = (isset($attrMatch[2]) && '' !== $attrMatch[2])

? $attrMatch[2]

: ((isset($attrMatch[4]) && '' !== $attrMatch[4])

? $attrMatch[4] : '');

$attrValue = (isset($attrMatch[3]) && '' !== $attrMatch[3])

? $attrMatch[3]

: ((isset($attrMatch[5]) && '' !== $attrMatch[5])

? $attrMatch[5] : $attrMatch[6]);

if ('class' == $attrName)

$attrValue = explode(' ', preg_replace('~\s+~', ' ', $attrValue));

$attributes[$attrName] = array('delimeter' => $attrDelimeter,

'value' => $attrValue);

}

}

// apply filter to attributes

$passed = true;

$filter = isset($filters[$normalName])

? $filters[$normalName]

: (isset($filters['*']) ? $filters['*'] : array());

foreach ($filter as $key => $value) {

$criteria = is_array($value) ? $value : array($value);

for ($c = 0; $c < count($criteria) && $passed; $c++) {

$crit = $criteria[$c];

if ('' == $crit) {

// attribute should be empty

if ('class' == $key) {

if (isset($attributes[$key]) && count($attributes[$key]['value']) != 0) {

$passed = false;

break;

}

} else {

if (isset($attributes[$key]) && strlen($attributes[$key]['value']) != 0) {

$passed = false;

break;

}

}

} else if ('!' == $crit) {

// attribute should be not set or empty

if ('class' == $key) {

if (!isset($attributes[$key]) || count($attributes[$key]['value']) == 0) {

$passed = false;

break;

}

} else {

if (!isset($attributes[$key]) || strlen($attributes[$key]['value']) == 0) {

$passed = false;

break;

}

}

} else if ('!' == $crit[0]) {

// * attribute should not contain value

// * if attribute is empty, it does not contain value

if ('class' == $key) {

if (isset($attributes[$key]) && count($attributes[$key]['value']) != 0

&& in_array(substr($crit, 1), $attributes[$key]['value']))

{

$passed = false;

break;

}

} else {

if (isset($attributes[$key]) && strlen($attributes[$key]['value']) != 0

&& $crit == $attributes[$key]['value'])

{

$passed = false;

break;

}

}

} else {

// * attribute should contain value

// * if attribute is empty, it does not contain value

if ('class' == $key) {

if (!isset($attributes[$key]) || count($attributes[$key]['value']) == 0) {

$passed = false;

break;

}

if (!in_array($crit, $attributes[$key]['value'])) {

$passed = false;

break;

}

} else {

if (!isset($attributes[$key]) || strlen($attributes[$key]['value']) == 0) {

$passed = false;

break;

}

if ($crit != $attributes[$key]['value']) {

$passed = false;

break;

}

}

}

}

if (!$passed)

break;

}

if (!$passed)

continue;

// finalize tag info constrution

$tag['attributes'] = $attributes;

$result[$index] = substr($content, $position, $tag['position'] - $position);

$position = $tag['position'] + $tag['length'];

$index++;

$result[$index] = $tag;

$index++;

}

}

$result[$index] = $position < strlen($content) ? substr($content, $position) : '';

return $result;

}

/**

* Converts tag info created by artxFindTags back to text tag.

*

* @return string

*/

function artxTagInfoToString($info)

{

$result = '<' . $info['name'];

if (isset($info['attributes']) && 0 != count($info['attributes'])) {

$attributes = '';

foreach ($info['attributes'] as $key => $value)

$attributes .= ' ' . $key . '=' . $value['delimeter']

. (is_array($value['value']) ? implode(' ', $value['value']) : $value['value'])

. $value['delimeter'];

$result .= $attributes;

}

if ($info['paired']) {

$result .= '>';

$result .= $info['body'];

$result .= '</' . $info['name'] . '>';

} else

$result .= ($info['close'] ? ' /' : '') . '>';

return $result;

}

/**

* Decorates the specified tag with artisteer button style.

*

* @param string $name tag name that should be decorated

* @param array $filter select $name tags with attributes matching $filter

* @return $content with replaced $name tags

*/

function artxReplaceButtons($content, $filter = array('input' => array('class' => 'button')))

{

$result = '';

foreach (artxFindTags($content, $filter) as $tag) {

if (is_string($tag))

$result .= $tag;

else {

$tag['attributes']['class']['value'][] = 'art-button';

$result .= artxTagInfoToString($tag);

}

}

return $result;

}

function artxLinkButton($data = array())

{

return '<a class="' . (isset($data['classes']) && isset($data['classes']['a']) ? $data['classes']['a'] . ' ' : '')

. 'art-button" href="' . $data['link'] . '">' . $data['content'] . '</a>';

}

function artxHtmlFixFormAction($content)

{

if (preg_match('~ action="([^"]+)" ~', $content, $matches, PREG_OFFSET_CAPTURE)) {

$content = substr($content, 0, $matches[0][1])

. ' action="' . artxUrlToHref($matches[1][0]) . '" '

. substr($content, $matches[0][1] + strlen($matches[0][0]));

}

return $content;

}

function artxTagBuilder($tag, $attributes = array(), $content = '') {

$result = '<' . $tag;

foreach ($attributes as $name => $value) {

if (is_string($value)) {

if (!empty($value))

$result .= ' ' . $name . '="' . $value . '"';

} else if (is_array($value)) {

$values = array_filter($value);

if (count($values))

$result .= ' ' . $name . '="' . implode(' ', $value) . '"';

}

}

$result .= '>' . $content . '</' . $tag . '>';

return $result;

}

$artxFragments = array();

function artxFragmentBegin($head = '')

{

global $artxFragments;

$artxFragments[] = array('head' => $head, 'content' => '', 'tail' => '');

}

function artxFragmentContent($content = '')

{

global $artxFragments;

$artxFragments[count($artxFragments) - 1]['content'] = $content;

}

function artxFragmentEnd($tail = '', $separator = '', $return = false)

{

global $artxFragments;

$fragment = array_pop($artxFragments);

$fragment['tail'] = $tail;

$content = trim($fragment['content']);

if (count($artxFragments) == 0) {

if ($return)

return (trim($content) == '') ? '' : ($fragment['head'] . $content . $fragment['tail']);

echo (trim($content) == '') ? '' : ($fragment['head'] . $content . $fragment['tail']);

} else {

$result = (trim($content) == '') ? '' : ($fragment['head'] . $content . $fragment['tail']);

$fragment =& $artxFragments[count($artxFragments) - 1];

$fragment['content'] .= (trim($fragment['content']) == '' ? '' : $separator) . $result;

}

}

function artxFragment($head = '', $content = '', $tail = '', $separator = '', $return = false)

{

global $artxFragments;

if ($head != '' && $content == '' && $tail == '' && $separator == '') {

$content = $head;

$head = '';

} elseif ($head != '' && $content != '' && $tail == '' && $separator == '') {

$separator = $content;

$content = $head;

$head = '';

}

artxFragmentBegin($head);

artxFragmentContent($content);

artxFragmentEnd($tail, $separator, $return);

}

function artxPostprocessBlockContent($content)

{

return artxPostprocessContent($content);

}

function artxPostprocessPostContent($content)

{

$config = JFactory::getConfig();

$sef = method_exists($config, 'getValue') ? $config->getValue('config.sef') : $sef = $config->get('config.sef');

if ($sef)

$content = str_replace('background:url(images/', 'background:url(' . JURI::base(true) . '/images/', $content);

return artxPostprocessContent($content);

}

function artxPostprocessContent($content)

{

$content = artxReplaceButtons($content, array('input' => array('class' => array('button', '!art-button')),

'button' => array('class' => array('button', '!art-button'))));

return $content;

}

}

Blog_item.php

/*template of a separate material from the blog section*/

<?php

defined('_JEXEC') or die;

JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');

JHtml::_('behavior.tooltip');

JHtml::core();

Artx::load("Artx_Content");

$component = new ArtxContent($this, $this->params);

$article = $component->article('category', $this->item, $this->item->params);

$params = $article->getArticleViewParameters();

if (strlen($article->title)) {

$params['header-text'] = $this->escape($article->title);

if (strlen($article->titleLink))

$params['header-link'] = $article->titleLink;

}

// Change the order of ""if"" statements to change the order of article metadata header items.

if (strlen($article->created))

$params['metadata-header-icons'][] = "<span class=\"art-postdateicon\">" . $article->createdDateInfo($article->created) . "</span>";

if (strlen($article->modified))

$params['metadata-header-icons'][] = "<span class=\"art-postdateicon\">" . $article->modifiedDateInfo($article->modified) . "</span>";

if (strlen($article->published))

$params['metadata-header-icons'][] = "<span class=\"art-postdateicon\">" . $article->publishedDateInfo($article->published) . "</span>";

if (strlen($article->author))

$params['metadata-header-icons'][] = "<span class=\"art-postauthoricon\">" . $article->authorInfo($article->author, $article->authorLink) . "</span>";

if ($article->editIconVisible)

$params['metadata-header-icons'][] = $article->editIcon();

if (strlen($article->hits))

$params['metadata-header-icons'][] = $article->hitsInfo($article->hits);

// Build article content

$content = '';

if (!$article->introVisible)

$content .= $article->event('afterDisplayTitle');

$content .= $article->event('beforeDisplayContent');

if (strlen($article->images['intro']['image']))

$content .= $article->image($article->images['intro']);

$content .= $article->intro($article->intro);

if (strlen($article->readmore))

$content .= $article->readmore($article->readmore, $article->readmoreLink);

$content .= $article->event('afterDisplayContent');

$params['content'] = $content;

// Change the order of ""if"" statements to change the order of article metadata footer items.

if (strlen($article->category))

$params['metadata-footer-icons'][] = "<span class=\"art-postcategoryicon\">"

. $article->categories($article->parentCategory, $article->parentCategoryLink, $article->category, $article->categoryLink)

. "</span>";

// Render article

echo $article->article($params);

featured/ default_item.php

<?php

defined('_JEXEC') or die;

Artx::load("Artx_Content");

$component = new ArtxContent($this, $this->params);

$article = $component->article('featured', $this->item, $this->item->params);

$params = $article->getArticleViewParameters();

if (strlen($article->title)) {

$params['header-text'] = $this->escape($article->title);

if (strlen($article->titleLink))

$params['header-link'] = $article->titleLink;

}

// Change the order of ""if"" statements to change the order of article metadata header items.

if (strlen($article->created))

$params['metadata-header-icons'][] = "<span class=\"art-postdateicon\">" . $article->createdDateInfo($article->created) . "</span>";

if (strlen($article->modified))

$params['metadata-header-icons'][] = "<span class=\"art-postdateicon\">" . $article->modifiedDateInfo($article->modified) . "</span>";

if (strlen($article->published))

$params['metadata-header-icons'][] = "<span class=\"art-postdateicon\">" . $article->publishedDateInfo($article->published) . "</span>";

if (strlen($article->author))

$params['metadata-header-icons'][] = "<span class=\"art-postauthoricon\">" . $article->authorInfo($article->author, $article->authorLink) . "</span>";

if ($article->editIconVisible)

$params['metadata-header-icons'][] = $article->editIcon();

if (strlen($article->hits))

$params['metadata-header-icons'][] = $article->hitsInfo($article->hits);

// Build article content

$content = '';

if (!$article->introVisible)

$content .= $article->event('afterDisplayTitle');

$content .= $article->event('beforeDisplayContent');

if (strlen($article->images['intro']['image']))

$content .= $article->image($article->images['intro']);

$content .= $article->intro($article->intro);

if (strlen($article->readmore))

$content .= $article->readmore($article->readmore, $article->readmoreLink);

$content .= $article->event('afterDisplayContent');

$params['content'] = $content;

// Change the order of ""if"" statements to change the order of article metadata footer items.

if (strlen($article->category))

$params['metadata-footer-icons'][] = "<span class=\"art-postcategoryicon\">"

. $article->categories($article->parentCategory, $article->parentCategoryLink, $article->category, $article->categoryLink)

. "</span>";

// Render article

echo $article->article($params);

article/default.php

<?php

defined('_JEXEC') or die;

require_once dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'functions.php';

JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');

Artx::load("Artx_Content");

$component = new ArtxContent($this, $this->params);

$article = $component->article('article', $this->item, $this->item->params, array('print' => $this->print));

echo $component->beginPageContainer('item-page');

if (strlen($article->pageHeading))

echo $component->pageHeading($article->pageHeading);

$params = $article->getArticleViewParameters();

if (strlen($article->title)) {

$params['header-text'] = $this->escape($article->title);

if (strlen($article->titleLink))

$params['header-link'] = $article->titleLink;

}

// Change the order of ""if"" statements to change the order of article metadata header items.

if (strlen($article->created))

$params['metadata-header-icons'][] = "<span class=\"art-postdateicon\">" . $article->createdDateInfo($article->created) . "</span>";

if (strlen($article->modified))

$params['metadata-header-icons'][] = "<span class=\"art-postdateicon\">" . $article->modifiedDateInfo($article->modified) . "</span>";

if (strlen($article->published))

$params['metadata-header-icons'][] = "<span class=\"art-postdateicon\">" . $article->publishedDateInfo($article->published) . "</span>";

if (strlen($article->author))

$params['metadata-header-icons'][] = "<span class=\"art-postauthoricon\">" . $article->authorInfo($article->author, $article->authorLink) . "</span>";

if ($article->editIconVisible)

$params['metadata-header-icons'][] = $article->editIcon();

if (strlen($article->hits))

$params['metadata-header-icons'][] = $article->hitsInfo($article->hits);

// Build article content

$content = '';

if ('above full article' === $article->paginationPosition)

$content .= $article->pagination();

if (!$article->introVisible)

$content .= $article->event('afterDisplayTitle');

$content .= $article->event('beforeDisplayContent');

if (strlen($article->toc))

$content .= $article->toc($article->toc);

if (strlen($article->text)) {

if (strlen($article->images['fulltext']['image']))

$content .= $article->image($article->images['fulltext']);

if ('above text' === $article->paginationPosition)

$content .= $article->pagination();

$content .= $article->text($article->text);

if ('below text' === $article->paginationPosition)

$content .= $article->pagination();

if ($article->showLinks)

$content .= $this->loadTemplate('links');

}

if ($article->introVisible)

$content .= $article->intro($article->intro);

if (strlen($article->readmore))

$content .= $article->readmore($article->readmore, $article->readmoreLink);

if ('below full article' === $article->paginationPosition)

$content .= $article->pagination();

$content .= $article->event('afterDisplayContent');

$params['content'] = $content;

// Change the order of ""if"" statements to change the order of article metadata footer items.

if (strlen($article->category))

$params['metadata-footer-icons'][] = "<span class=\"art-postcategoryicon\">"

. $article->categories($article->parentCategory, $article->parentCategoryLink, $article->category, $article->categoryLink)

. "</span>";

// Render article

echo $article->article($params);

echo $component->endPageContainer();

modmeny/default.php

<?php

defined('_JEXEC') or die;

require_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'functions.php';

// Note: it is important to remove spaces between elements.

$tag = ($params->get('tag_id') != NULL) ? ' id="' . $params->get('tag_id') . '"' : '';

if (isset($attribs['name']) && $attribs['name'] == 'position-1') {

$menutype = 'horizontal';

$start = $params->get('startLevel');

// check if it is necessary to render subitems:

$subitems = $GLOBALS['artx_settings']['menu']['show_submenus'] && 1 == $params->get('showAllChildren');

// true - skip the current node, false - render the current node.

$skip = false;

echo '<ul class="art-hmenu"' . $tag . '>';

foreach ($list as $i => & $item) {

if ($skip) {

if ($item->shallower) {

if (($item->level - $item->level_diff) <= $limit) {

echo '</li>' . str_repeat('</ul></li>', $limit - $item->level + $item->level_diff);

$skip = false;

}

}

continue;

}

$class = 'item-' . $item->id;

$class .= $item->id == $active_id ? ' current' : '';

$class .= ('alias' == $item->type

&& in_array($item->params->get('aliasoptions'), $path)

|| in_array($item->id, $path)) ? ' active' : '';

$class .= $item->deeper ? ' deeper' : '';

$class .= $item->parent ? ' parent' : '';

echo '<li class="' . $class . '">';

// Render the menu item.

switch ($item->type) {

case 'separator':

case 'url':

case 'component':

require JModuleHelper::getLayoutPath('mod_menu', 'default_' . $item->type);

break;

default:

require JModuleHelper::getLayoutPath('mod_menu', 'default_url');

break;

}

if ($item->deeper) {

if (!$subitems) {

$limit = $item->level;

$skip = true;

continue;

}

echo '<ul>';

}

elseif ($item->shallower)

echo '</li>' . str_repeat('</ul></li>', $item->level_diff);

else

echo '</li>';

}

echo '</ul>';

} else if (0 === strpos($params->get('moduleclass_sfx'), 'art-vmenu') || false !== strpos($params->get('moduleclass_sfx'), ' art-vmenu')) {

$menutype = 'vertical';

$start = $params->get('startLevel');

// check if it is necessary to render subitems:

$subitems = $GLOBALS['artx_settings']['vmenu']['show_submenus'] && 1 == $params->get('showAllChildren');

// true - skip the current node, false - render the current node.

$skip = false;

// limit of rendering - skip items when a level is exceeding the limit.

$limit = $start;

echo '<ul class="art-vmenu"' . $tag . '>';

foreach ($list as $i => & $item) {

if ($skip) {

if ($item->shallower) {

if (($item->level - $item->level_diff) <= $limit) {

echo '</li>' . str_repeat('</ul></li>', $limit - $item->level + $item->level_diff);

$skip = false;

}

}

continue;

}

$class = 'item-' . $item->id;

$class .= $item->id == $active_id ? ' current' : '';

$class .= ('alias' == $item->type

&& in_array($item->params->get('aliasoptions'), $path)

|| in_array($item->id, $path)) ? ' active' : '';

$class .= $item->deeper ? ' deeper' : '';

$class .= $item->parent ? ' parent' : '';

echo '<li class="' . $class . '">';

// Render the menu item.

switch ($item->type) {

case 'separator':

case 'url':

case 'component':

require JModuleHelper::getLayoutPath('mod_menu', 'default_' . $item->type);

break;

default:

require JModuleHelper::getLayoutPath('mod_menu', 'default_url');

break;

}

if ($item->deeper) {

if (!$subitems) {

$limit = $item->level;

$skip = true;

continue;

}

echo '<ul' . ($subitems && in_array($item->id, $path) ? ' class="active"' : '') . '>';

}

elseif ($item->shallower)

echo '</li>' . str_repeat('</ul></li>', $item->level_diff);

else

echo '</li>';

}

echo '</ul>';

} else {

$menutype = 'default';

echo '<ul class="menu' . $params->get('class_sfx') . '"' . $tag . '>';

foreach ($list as $i => &$item) {

$class = 'item-' . $item->id;

$class .= $item->id == $active_id ? ' current' : '';

$class .= ('alias' == $item->type

&& in_array($item->params->get('aliasoptions'), $path)

|| in_array($item->id, $path)) ? ' active' : '';

$class .= $item->deeper ? ' deeper' : '';

$class .= $item->parent ? ' parent' : '';

echo '<li class="' . $class . '">';

// Render the menu item.

switch ($item->type) {

case 'separator':

case 'url':

case 'component':

require JModuleHelper::getLayoutPath('mod_menu', 'default_'.$item->type);

break;

default:

require JModuleHelper::getLayoutPath('mod_menu', 'default_url');

break;

}

if ($item->deeper)

echo '<ul>';

elseif ($item->shallower)

echo '</li>' . str_repeat('</ul></li>', $item->level_diff);

else

echo '</li>';

}

echo '</ul>';

}

component.php

<?php

defined('_JEXEC') or die;

?>

<!DOCTYPE html>

<html dir="ltr" lang="<?php echo $document->language; ?>">

<head>

<jdoc:include type="head" />

<link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/system/css/system.css" type="text/css" />

<link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/system/css/general.css" type="text/css" />

<link rel="stylesheet" href="<?php echo $this->baseurl . '/templates/' . $this->template; ?>/css/print.css" type="text/css" />

</head>

<body class="contentpane">

<jdoc:include type="message" />

<jdoc:include type="component" />

</body>

</html>

Index.php

<?php

defined('_JEXEC') or die;

require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'functions.php';

// Create alias for $this object reference:

$document = $this;

// Shortcut for template base url:

$templateUrl = $document->baseurl . '/templates/' . $document->template;

Artx::load("Artx_Page");

// Initialize $view:

$view = $this->artx = new ArtxPage($this);

// Decorate component with Artisteer style:

$view->componentWrapper();

JHtml::_('behavior.framework', true);

?>

<!DOCTYPE html>

<html dir="ltr" lang="<?php echo $document->language; ?>">

<head>

<jdoc:include type="head" />

<link rel="stylesheet" href="<?php echo $document->baseurl; ?>/templates/system/css/system.css" />

<link rel="stylesheet" href="<?php echo $document->baseurl; ?>/templates/system/css/general.css" />

script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->

<link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/template.css" media="screen">

<!--[if lte IE 7]><link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/template.ie7.css" media="screen" /><![endif]-->

<script>if ('undefined' != typeof jQuery) document._artxJQueryBackup = jQuery;</script>

<script src="<?php echo $templateUrl; ?>/jquery.js"></script>

<script>jQuery.noConflict();</script>

<script src="<?php echo $templateUrl; ?>/script.js"></script>

<script>if-

<body>

<div id="art-main">

<div class="art-sheet clearfix">

<header class="art-header clearfix"><?php echo $view->position('position-30', 'art-nostyle'); ?>

<div class="art-shapes">

<h1 class="art-headline" data-left="46.21%">

<a href="<?php echo $document->baseurl; ?>/"><?php echo $this->params->get('siteTitle'); ?></a>

</h1>

<h2 class="art-slogan" data-left="47.69%"><?php echo $this->params->get('siteSlogan'); ?></h2>

</div>

</header>

<?php if ($view->containsModules('position-1', 'position-28', 'position-29')) : ?>

<nav class="art-nav clearfix">

<?php if ($view->containsModules('position-28')) : ?>

<div class="art-hmenu-extra1"><?php echo $view->position('position-28'); ?></div>

<?php endif; ?>

<?php if ($view->containsModules('position-29')) : ?>

<div class="art-hmenu-extra2"><?php echo $view->position('position-29'); ?></div>

<?php endif; ?>

<?php echo $view->position('position-1'); ?>

</nav>

<?php endif; ?>

<?php echo $view->position('position-15', 'art-nostyle'); ?>

<?php echo $view->positions(array('position-16' => 33, 'position-17' => 33, 'position-18' => 34), 'art-block'); ?>

<div class="art-layout-wrapper clearfix">

<div class="art-content-layout">

<div class="art-content-layout-row">

<?php if ($view->containsModules('position-7', 'position-4', 'position-5')) : ?>

<div class="art-layout-cell art-sidebar1 clearfix">

<?php echo $view->position('position-7', 'art-block'); ?>

<?php echo $view->position('position-4', 'art-block'); ?>

<?php echo $view->position('position-5', 'art-block'); ?>

</div>

<?php endif; ?>

<div class="art-layout-cell art-content clearfix">

<?php

echo $view->position('position-19', 'art-nostyle');

if ($view->containsModules('position-2'))

echo artxPost($view->position('position-2'));

echo $view->positions(array('position-20' => 50, 'position-21' => 50), 'art-article');

echo $view->position('position-12', 'art-nostyle');

echo artxPost(array('content' => '<jdoc:include type="message" />', 'classes' => ' art-messages'));

echo '<jdoc:include type="component" />';

echo $view->position('position-22', 'art-nostyle');

echo $view->positions(array('position-23' => 50, 'position-24' => 50), 'art-article');

echo $view->position('position-25', 'art-nostyle');

?>

</div>

<?php if ($view->containsModules('position-6', 'position-8', 'position-3')) : ?>

<div class="art-layout-cell art-sidebar2 clearfix">

<?php echo $view->position('position-6', 'art-block'); ?>

<?php echo $view->position('position-8', 'art-block'); ?>

<?php echo $view->position('position-3', 'art-block'); ?>

</div>

<?php endif; ?>

</div>

</div>

</div>

<?php echo $view->positions(array('position-9' => 33, 'position-10' => 33, 'position-11' => 34), 'art-block'); ?>

<?php echo $view->position('position-26', 'art-nostyle'); ?>

<footer class="art-footer clearfix"><?php echo $view->position('position-27', 'art-nostyle'); ?></footer>

</div>

<p class="art-page-footer">

<span id="art-footnote-links"> </span>

</p>

</div>

<?php echo $view->position('debug'); ?>

</body>

</html>

Classroom/default.php

/*it is used by default for table and data read-out formation classroom*/

<?php

defined('_JEXEC') or die;

?>

<div id="classroom">

<h1><?php echo $this->item->name ?></h1>

<div class="classroom_box">

<div class="dsc">

<?php echo JHTML::_('content.prepare', $this->item->description ); ?>

</div>

<div class="clr"></div>

</div>

</div>

Classroom/default.xml

/*template for the sake of appearences classroom*/

<?xml version="1.0" encoding="utf-8"?>

<metadata>

<layout hidden="true" />

</metadata>

Sot/default.php

/*it is used by default for table and data read-out formation sot*/

<?php

defined('_JEXEC') or die;

$document = JFactory::getDocument();

$document->addScript(JURI::base() . 'media/com_sschedule/js/jquery-1.6.1.min.js');

$document->addScript(JURI::base() . 'media/com_sschedule/js/jquery-noconflict.js');

$document->addScript(JURI::base() . 'media/com_sschedule/js/sot.js');

?>

<div id="sotselect">

<h1><?php echo $this->params->get('titlehead'); ?></h1>

<form action="<?php echo htmlspecialchars(JFactory::getURI()->toString()); ?>" method="post" name="searchForm">

<fieldset>

<div class="titleselect"><?php echo JText::_('COM_SSCHEDULE_SOT_SELECT_CLASS');?></div>

<table class="changes">

<tbody>

<tr>

<td><?php echo $this->form->getLabel('teacherid'); ?><?php echo $this->form->getInput('teacherid'); ?></td>

<td><?php echo $this->form->getLabel('day'); ?><?php echo $this->form->getInput('day'); ?></td>

<td>

<button type="submit" id="submit"><?php echo JText::_('COM_SSCHEDULE_SOT_LABEL_SUBMIT'); ?></button>

</td>

</tr>

</tbody>

</table>

</fieldset>

<?php echo JHtml::_( 'form.token' ); ?>

</form>

</div>

<div id="dayid" style="display:none;"><?php echo $this->params->get('dayid'); ?></div>

<div id="teacherid" style="display:none;"><?php echo $this->params->get('teacherid'); ?></div>

<div id="scr" style="display:none;"><?php echo $this->params->get('scr'); ?></div>

<div id="scl" style="display:none;"><?php echo $this->params->get('scl'); ?></div>

<div id="soc_content">

<div>

Sot/default.xml

/*template for the sake of appearences sot*/

<?xml version="1.0" encoding="utf-8"?>

<metadata>

<layout title="COM_SSCHEDULE_SOT_VIEW_DEFAULT_TITLE">

<message>

COM_SSCHEDULE_SOT_VIEW_DEFAULT_DESC

</message>

</layout>

<fields name="params" addfieldpath="/administrator/components/com_sschedule/models/fields">

<fieldset name="sot" label="COM_SSCHEDULE_SOT_FIELDSET_LABEL">

<field name="titlehead"

type="text"

default="Schedule of teacher"

label="COM_SSCHEDULE_TITLE_LABEL"

description="COM_SSCHEDULE_TITLE_DESC"

size="40" />

<field

name="teacherid"

type="sql"

default=""

label="COM_SSCHEDULE_SOT_SELECT_TEACHER_LABEL"

description="COM_SSCHEDULE_SOT_SELECT_TEACHER_DESC"

query="SELECT id , name FROM #__sschedule_teachers order by name"

key_field="id" value_field="name"

/>

<field

label="COM_SSCHEDULE_SOT_DAY_LABEL"

description="COM_SSCHEDULE_SOT_DAY_DESC"

name="dayid"

type="days"

/>

<field

name="scl"

type="radio"

default="0"

label="COM_SSCHEDULE_SOT_SCL_LABEL"

description="COM_SSCHEDULE_SOT_SCL_DESC"

>

<option value="0">JNO</option>

<option value="1">JYES</option>

</field>

<field

name="scr"

type="radio"

default="0"

label="COM_SSCHEDULE_SOT_SCR_LABEL"

description="COM_SSCHEDULE_SOT_SCR_DESC"

>

<option value="0">JNO</option>

<option value="1">JYES</option>

</field>

</fieldset>

</fields>

</metadata>

Scwt/default.php

/*it is used by default for table and data read-out formation scwt*/

<?php

defined('_JEXEC') or die;

require_once JPATH_COMPONENT_ADMINISTRATOR . '/helpers/day.php';

$scl = $this->escape($this->params->get('scl',0));

$scr = $this->escape($this->params->get('scr',0));

?>

<?php if (empty($this->items)): ?>

<p><?php echo JText::_('COM_SSCHEDULE_SCWT_NOT_DATA'); ?></p>

<?php else : ?>

<div id="soc">

<h1><?php echo $this->params->get('titlehead'); ?></h1>

<?php $n = count($this->items); ?>

<?php $title_tmp = null; ?>

<?php for ($i = 0; $i < $n; $i++): ?>

<?php $item = &$this->items [$i]; ?>

<?php $kow = &$this->items [$i + 1]; ?>

<?php if ($title_tmp != $item->day): ?>

<div class="headtab">

<div><?php echo SscheduleHelperDay::getDayText($item->day); ?></div>

</div>

<table>

<thead>

<tr>

<th class="nobg" scope="col"><?php echo JText::_('COM_SSCHEDULE_SCWT_TIME'); ?></th>

<th scope="col"><?php echo JText::_('COM_SSCHEDULE_SCWT_LESSON'); ?></th>

<th scope="col"><?php echo JText::_('COM_SSCHEDULE_SCWT_CLASSROOM'); ?></th>

<th scope="col"><?php echo JText::_('COM_SSCHEDULE_SCWT_CLASS'); ?></th>

</tr>

</thead>

<tbody>

<?php endif; ?>

<tr>

<th class="specalt" abbr="<?php echo $item->time; ?>" scope="row"><?php echo $item->time; ?></th>

<td><?php echo $item->lesson; ?></td>

<td>

<?php if ($scr == 1): ?>

<a href="<?php echo JRoute::_('index.php?option=com_sschedule&view=classroom&id='.(int) $item->classroomid) ?>" ><?php echo $item->classroom ?></a>

<?php else: ?>

<?php echo $item->classroom; ?>

<?php endif; ?>

</td>

<td>

<?php if ($scl == 1): ?>

<a href="<?php echo JRoute::_('index.php?option=com_sschedule&view=class&id='.(int) $item->classid) ?>" ><?php echo $item->class ?></a>

<?php else: ?>

<?php echo $item->class; ?>

<?php endif; ?>

</td>

</tr>

<?php if (is_object($kow)): ?>

<?php if (($kow->day != $item->day)): ?>

</tbody></table>

<?php endif; ?>

<?php else: ?>

</tbody></table>

<?php endif; ?>

<?php $title_tmp = $item->day; ?>

<?php endfor; ?>

</div>

<?php endif; ?>

Scwt/default.xml

/*template for the sake of appearences scw*/

<?xml version="1.0" encoding="utf-8"?>

<metadata>

<layout title="COM_SSCHEDULE_SCWT_VIEW_DEFAULT_TITLE">

<message>

COM_SSCHEDULE_SCWT_VIEW_DEFAULT_DESC

</message>

</layout>

<fields name="params" addfieldpath="/administrator/components/com_sschedule/models/fields">

<fieldset name="scwt" label="COM_SSCHEDULE_SCWT_FIELDSET_LABEL" >

<field name="titlehead"

type="text"

default="Teacher"

label="COM_SSCHEDULE_TITLE_LABEL"

description="COM_SSCHEDULE_TITLE_DESC"

size="40" />

<field

name="teacherid"

type="sql"

default=""

label="COM_SSCHEDULE_SCWT_SELECT_TEACHER_LABEL"

description="COM_SSCHEDULE_SCWT_SELECT_TEACHER_DESC"

query="SELECT id , name FROM #__sschedule_teachers order by name"

key_field="id" value_field="name" />

<field

name="scl"

type="radio"

default="0"

label="COM_SSCHEDULE_SCWT_SCL_LABEL"

description="COM_SSCHEDULE_SCWT_SCL_DESC"

>

<option value="0">JNO</option>

<option value="1">JYES</option>

</field>

<field

name="scr"

type="radio"

default="0"

label="COM_SSCHEDULE_SCWT_SCR_LABEL"

description="COM_SSCHEDULE_SCWT_SCR_DESC"

>

<option value="0">JNO</option>

<option value="1">JYES</option>

</field>

</fieldset>

</fields>

</metadata>

Sotlist/default.php

/*it is used by default for table and data read-out formation sotlist*/

<?php

defined('_JEXEC') or die;

require_once JPATH_COMPONENT_ADMINISTRATOR . '/helpers/day.php';

$scr = $this->escape($this->state->get('sschedule.scr'));

$scl = $this->escape($this->state->get('sschedule.scl'));

?>

<?php if (empty($this->items)): ?>

<p><?php echo JText::_('COM_SSCHEDULE_SOT_NOT_DATA'); ?></p>

<?php else: ?>

<div id="sot">

<?php $n = count($this->items); ?>

<?php $title_tmp = null; ?>

<?php for ($i = 0; $i < $n; $i++): ?>

<?php $item = &$this->items [$i]; ?>

<?php $kow = &$this->items [$i + 1]; ?>

<?php if ($title_tmp != $item->day): ?>

<div class="headtab">

<div><?php echo $item->teacher. ' -- '. SscheduleHelperDay::getDayText($item->day); ?></div>

</div>

<table>

<thead>

<tr>

<th class="nobg" scope="col"><?php echo JText::_('COM_SSCHEDULE_SOT_TIME'); ?></th>

<th scope="col"><?php echo JText::_('COM_SSCHEDULE_SOT_LESSON'); ?></th>

<th scope="col"><?php echo JText::_('COM_SSCHEDULE_SOT_CLASSROOM'); ?></th>

<th scope="col"><?php echo JText::_('COM_SSCHEDULE_SOT_CLASS'); ?></th>

</tr>

</thead>

<tbody>

<?php endif; ?>

<tr>

<th class="specalt" abbr="<?php echo $item->time; ?>" scope="row"><?php echo $item->time; ?></th>

<td><?php echo $item->lesson; ?></td>

<td>

<?php if ($scr == 1): ?>

<a href="<?php echo JRoute::_('index.php?option=com_sschedule&view=classroom&id='.(int) $item->classroomid) ?>" ><?php echo $item->classroom ?></a>

<?php else: ?>

<?php echo $item->classroom; ?>

<?php endif; ?>

</td>

<td>

<?php if ($scl == 1): ?>

<a href="<?php echo JRoute::_('index.php?option=com_sschedule&view=class&id='.(int) $item->classid) ?>" ><?php echo $item->class ?></a>

<?php else: ?>

<?php echo $item->class; ?>

<?php endif; ?>

</td>

</tr>

<?php if (is_object($kow)): ?>

<?php if (($kow->day != $item->day)): ?>

</tbody></table>

<?php endif; ?>

<?php else: ?>

</tbody></table>

<?php endif; ?>

<?php $title_tmp = $item->day; ?>

<?php endfor; ?>

</div>

<?php endif; ?>

Sotlist/default.xml

/*template for the sake of appearences sotlist*/

<?xml version="1.0" encoding="utf-8"?>

<metadata>

<layout hidden="true" />

</metadata>

Soc/default.php

/*it is used by default for table and data read-out formation soc*/

<?php

defined('_JEXEC') or die;

$document = JFactory::getDocument();

$document->addScript(JURI::base() . 'media/com_sschedule/js/jquery-1.6.1.min.js');

$document->addScript(JURI::base() . 'media/com_sschedule/js/jquery-noconflict.js');

$document->addScript(JURI::base() . 'media/com_sschedule/js/soc.js');

?>

<div id="socselect">

<h1><?php echo $this->params->get('titlehead'); ?></h1>

<form action="<?php echo htmlspecialchars(JFactory::getURI()->toString()); ?>" method="post" name="searchForm">

<fieldset>

<div class="titleselect"><?php echo JText::_('COM_SSCHEDULE_SOC_SELECT_CLASS');?></div>

<table class="changes">

<tbody>

<tr>

<td><?php echo $this->form->getLabel('classid'); ?><?php echo $this->form->getInput('classid'); ?></td>

<td><?php echo $this->form->getLabel('day'); ?><?php echo $this->form->getInput('day'); ?></td>

<td>

<button type="submit" id="submit"><?php echo JText::_('COM_SSCHEDULE_SOC_LABEL_SUBMIT'); ?></button>

</td>

</tr>

</tbody>

</table>

</fieldset>

<?php echo JHtml::_( 'form.token' ); ?>

</form>

</div>

<div id="dayid" style="display:none;"><?php echo $this->params->get('dayid'); ?></div>

<div id="classid" style="display:none;"><?php echo $this->params->get('classid'); ?></div>

<div id="st" style="display:none;"><?php echo $this->params->get('st'); ?></div>

<div id="sc" style="display:none;"><?php echo $this->params->get('sc'); ?></div>

<div id="soc_content">

<div>

Soc/default.xml

/*template for the sake of appearences soc*/

<?xml version="1.0" encoding="utf-8"?>

<metadata>

<layout title="COM_SSCHEDULE_SOC_VIEW_DEFAULT_TITLE">

<message>

COM_SSCHEDULE_SOC_VIEW_DEFAULT_DESC

</message>

</layout>

<fields name="params" addfieldpath="/administrator/components/com_sschedule/models/fields">

<fieldset name="soc" label="COM_SSCHEDULE_SOC_FIELDSET_LABEL">

<field name="titlehead"

type="text"

default="Schedule of class"

label="COM_SSCHEDULE_TITLE_LABEL"

description="COM_SSCHEDULE_TITLE_DESC"

size="40" />

<field

name="classid"

type="sql"

default=""

label="COM_SSCHEDULE_SOC_SELECT_CLASS_LABEL"

description="COM_SSCHEDULE_SOC_SELECT_CLASS_DESC"

query="SELECT id , name FROM #__sschedule_classes order by name"

key_field="id" value_field="name"

/>

<field

label="COM_SSCHEDULE_SOC_DAY_LABEL"

description="COM_SSCHEDULE_SOC_DAY_DESC"

name="dayid"

type="days"

/>

<field

name="st"

type="radio"

default="0"

label="COM_SSCHEDULE_SOC_ST_LABEL"

description="COM_SSCHEDULE_SOC_ST_DESC"

>

<option value="0">JNO</option>

<option value="1">JYES</option>

</field>

<field

name="sc"

type="radio"

default="0"

label="COM_SSCHEDULE_SOC_SC_LABEL"

description="COM_SSCHEDULE_SOC_SC_DESC"

>

<option value="0">JNO</option>

<option value="1">JYES</option>

</field>

</fieldset>

</fields>

</metadata>

Soclist/default.php

/*it is used by default for table and data read-out formation soclist*/

<?php

defined('_JEXEC') or die;

require_once JPATH_COMPONENT_ADMINISTRATOR . '/helpers/day.php';

$sc = $this->escape($this->state->get('sschedule.sc'));

$st = $this->escape($this->state->get('sschedule.st'));

?>

<?php if (empty($this->items)): ?>

<p><?php echo JText::_('COM_SSCHEDULE_SOC_NOT_DATA'); ?></p>

<?php else: ?>

<div id="soc">

<?php $n = count($this->items); ?>

<?php $title_tmp = null; ?>

<?php for ($i = 0; $i < $n; $i++): ?>

<?php $item = &$this->items [$i]; ?>

<?php $kow = &$this->items [$i + 1]; ?>

<?php if ($title_tmp != $item->day): ?>

<div class="headtab">

<div><?php echo $item->class. ' -- '. SscheduleHelperDay::getDayText($item->day); ?></div>

</div>

<table>

<thead>

<tr>

<th class="nobg" scope="col"><?php echo JText::_('COM_SSCHEDULE_SOC_TIME'); ?></th>

<th scope="col"><?php echo JText::_('COM_SSCHEDULE_SOC_LESSON'); ?></th>

<th scope="col"><?php echo JText::_('COM_SSCHEDULE_SOC_CLASSROOM'); ?></th>

<th scope="col"><?php echo JText::_('COM_SSCHEDULE_SOC_TEACHER'); ?></th>

</tr>

</thead>

<tbody>

<?php endif; ?>

<tr>

<th class="specalt" abbr="<?php echo $item->time; ?>" scope="row"><?php echo $item->time; ?></th>

<td><?php echo $item->lesson; ?></td>

<td>

<?php if ($sc == 1): ?>

<a href="<?php echo JRoute::_('index.php?option=com_sschedule&view=classroom&id='.(int) $item->classroomid) ?>" ><?php echo $item->classroom ?></a>

<?php else: ?>

<?php echo $item->classroom; ?>

<?php endif; ?>

</td>

<td>

<?php if ($st == 1): ?>

<a href="<?php echo JRoute::_('index.php?option=com_sschedule&view=teacher&id='.(int) $item->teacherid) ?>" ><?php echo $item->teacher ?></a>

<?php else: ?>

<?php echo $item->teacher; ?>

<?php endif; ?>

</td>

</tr>

<?php if (is_object($kow)): ?>

<?php if (($kow->day != $item->day)): ?>

</tbody></table>

<?php endif; ?>

<?php else: ?>

</tbody></table>

<?php endif; ?>

<?php $title_tmp = $item->day; ?>

<?php endfor; ?>

</div>

<?php endif; ?>

Soclist.default.xml

/*template for the sake of appearences soclist*/

<?xml version="1.0" encoding="utf-8"?>

<metadata>

<layout hidden="true" />

</metadata>

Teachers/default.php

/*it is used by default for table and data read-out formation teachers*/

<?php

defined('_JEXEC') or die;

?>

<h1><?php echo $this->params->get('titlehead'); ?></h1>

<div id="teachers">

<div>

<img src="media/com_sschedule/images/teachers.png" alt="teachers" />

</div>

<?php if ($this->params->get('show_links') == '0'): ?>

<?php foreach ($this->items as $item): ?>

<?php $url = JRoute::_('index.php?option=com_sschedule&view=teacher&id=' . $item->id); ?>

<div class="teachers_box">

<a href="<?php echo $url; ?>">

<img src="<?php echo JURI::base() . $item->image ?>" />

</a>

<p><?php echo $item->name .' '.$item->first_name; ?></p>

</div>

<?php endforeach ?>

<?php else: ?>

<?php foreach ($this->items as $item): ?>

<div class="teachers_box">

<img src="<?php echo JURI::base() . $item->image ?>" />

<p><?php echo $item->name .' '.$item->first_name; ?></p>

</div>

<?php endforeach ?>

<?php endif;?>

</div>

<div class="clr"></div>

Teachers/default.xml

/*template for the sake of appearencesteachers*/

<?xml version="1.0" encoding="utf-8"?>

<metadata>

<layout title="COM_SSCHEDULE_TEACHERS_VIEW_DEFAULT_TITLE">

<message>

COM_SSCHEDULE_TEACHERS_VIEW_DEFAULT_DESC

</message>

</layout>

<fields name="params">

<fieldset name="teachers" label="COM_SSCHEDULE_TEACHERS_FIELDSET_LABEL">

<field

name="show_links"

type="radio"

default="0"

label="COM_SSCHEDULE_TEACHERS_SHOW_LINKS"

description="COM_SSCHEDULE_TEACHERS_SHOW_LINKS_DESC"

>

<option value="0">JYES</option>

<option value="1">JNO</option>

</field>

<field name="titlehead"

type="text"

default="Teachers"

label="COM_SSCHEDULE_TITLE_LABEL"

description="COM_SSCHEDULE_TITLE_DESC"

size="40" />

</fieldset>

</fields>

</metadata>

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]