Список использованных источников. Для удаления данных, которые могли бы выдать какую-либо информацию о том, какой софт был использован при написании сайта Работа с PHP кодом
Для удаления данных, которые могли бы выдать какую-либо информацию о том, какой софт был использован при написании сайта, я редактировал файл под названием document.php [7].
Для этого идем в папку libraries/joomla/document/document.php, находим 78 строку:
public $_generator = 'Разработано Студией Дениска Продакшен';
Далее libraries/joomla/document/html/renderer/head.php 51 строка
$buffer.= $tab. '<meta http-equiv="'.$name.'" content="'. htmlspecialchars($content). '" />'. $lnEnd;
Заменяем на: $buffer.=$tab.'<meta http-equiv="'. $name.'" content=" Разработано Студией Дениска Продакшен " />'. $lnEnd;
Также необходимо изменить файл: libraries/joomla/document/html/renderer/head.php 67строка :
$generator = $document->getGenerator();
if ($generator) {$buffer.= $tab. ''. $lnEnd;}
ЗАКЛЮЧЕНИЕ
В процессе выполнения курсовой работы были освоены и закреплены на практике несколько современных web-разработок (HTML, CSS), и одна из популярнейших на данный момент web-платформ – Joomla.
Используя эту платформу, сайт получился современным, стильным и многофункциональным. Пользователь данного сайта может ознакомиться с последними новостями в мире клуба Real Madrid Club de Fútbol. В его распоряжение большое количество информационных статей, инструкций.
Проанализировав существующие способы для создания сайта, мной использовался следующий инструментарий:
- язык HTML;
- язык web-программирования PHP;
- основы работы с SQL-базами данных;
- базы данных MySQL;
- визуальный web-редактор Adobe Dreamweaver cs6;
- локальный сервер Denver.
1. Воробьев А.В. Пособие для начинающего разработчика сайтов // Образование: исследовано в мире [Электрон, ресурс] / Рос. акад.научных достижений. – М.: joomla.org, 2010–2014. – Режим доступа: http://joomla-master.org/
2. Марьянов Д.С. Проектирование сайтов на Joomla // Образование: исследовано в мире [Электрон, ресурс] / Рос. акад. научных достижений. – М.: joomlaportal.ru/, 2010–2014. – Режим доступа: http://joomlaportal.ru/
3. Муртазин А.П. Локальный сервер Denver // Образование: исследовано в мире [Электрон, ресурс] / Рос. акад. научных достижений. – М.: denwer.ru /,
2010–2014. – Режим доступа: http://www.denwer.ru/
4. Петровский А.В. CSS. Adobe Dreamweaver cs6 // Образование: исследовано в мире [Электрон, ресурс] / Рос. акад. научных достижений. – М.: css.ru/, 2010–2014. – Режим доступа: http://css.ru/
5. Чернышевский В.С. Joomla для новчиков // Образование: исследовано в мире [Электрон, ресурс] / Рос. акад. научных достижений. – М.: joomla-html.ru/, 2010–2014. – Режим доступа: http://joomlaportal-html.ru/, 2010–2014.
6. Эримов С.И. Основа языка CSS // Образование: исследовано в мире [Электрон, ресурс] / Рос. акад. научных достижений. – М.: cssproger.ru/, 2010–2014. – Режим доступа: http://cssproger.ru/
7. Якимащенко Ж.А. Основы PHP. Joomla и PHP // Образование: исследовано в мире [Электрон, ресурс] / Рос. акад. научных достижений. – М.: php.ru/, 2010–2014. – Режим доступа: http://php.ru/
ПРИЛОЖЕНИЕ А Index.php
<?php
/** * @package Joomla.Site * @subpackage Templates.beez_20 * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt
*/ // No direct access defined('_JEXEC') or die; // check modules $showRightColumn = ($this->countModules('position-3') or $this->countModules('position-6') or $this->countModules('position-8')); $showbottom = ($this->countModules('position-9') or $this->countModules('position-10') or $this->countModules('position-11')); $showleft = ($this->countModules('position-4') or $this->countModules('position-7') or $this->countModules('position-5')); if ($showRightColumn==0 and $showleft==0) { $showno = 0; } JHtml::_('behavior.framework', true); // get params $color = $this->params->get('templatecolor'); $logo = $this->params->get('logo'); $navposition = $this->params->get('navposition'); $app = JFactory::getApplication(); $doc = JFactory::getDocument(); $templateparams = $app->getTemplate(true)->params; $doc->addScript($this->baseurl.'/templates/'.$this->template.'/javascript/md_stylechanger.js', 'text/javascript', true); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language;?>" lang="<?php echo $this->language;?>" dir="<?php echo $this->direction;?>" > <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/<?php echo $this->template;?>/css/position.css" type="text/css" media="screen,projection" /> <link rel="stylesheet" href="<?php echo $this->baseurl?>/templates/<?php echo $this->template;?>/css/layout.css" type="text/css" media="screen,projection" /> <link rel="stylesheet" href="<?php echo $this->baseurl?>/templates/<?php echo $this->template;?>/css/print.css" type="text/css" media="print" /> <?php $files = JHtml::_('stylesheet', 'templates/'.$this->template.'/css/general.css', null, false, true); if ($files): if (!is_array($files)): $files = array($files); endif; foreach($files as $file): ?> <link rel="stylesheet" href="<?php echo $file;?>" type="text/css" /> <?php endforeach; endif; ?> <link rel="stylesheet" href="<?php echo $this->baseurl?>/templates/<?php echo $this->template;?>/css/<?php echo htmlspecialchars($color);?>.css" type="text/css" /> <?php if ($this->direction == 'rtl'):?> <link rel="stylesheet" href="<?php echo $this->baseurl?>/templates/<?php echo $this->template;?>/css/template_rtl.css" type="text/css" /> <?php if (file_exists(JPATH_SITE. '/templates/beez_20/css/'. $color. '_rtl.css')):?> <link rel="stylesheet" href="<?php echo $this->baseurl?>/templates/<?php echo $this->template;?>/css/<?php echo $color?>_rtl.css" type="text/css" /> <?php endif;?> <?php endif;?>
<!--[if lte IE 6]> <link href="<?php echo $this->baseurl?>/templates/<?php echo $this->template;?>/css/ieonly.css" rel="stylesheet" type="text/css" /> <?php if ($color=="personal"):?> <style type="text/css"> #line { width:98%; } .logoheader { height:200px; } #header ul.menu { display:block!important; width:98.2%; } </style> <?php endif;?> <![endif]--> <!--[if IE 7]> <link href="<?php echo $this->baseurl?>/templates/<?php echo $this->template;?>/css/ie7only.css" rel="stylesheet" type="text/css" /> <![endif]--> <script type="text/javascript" src="<?php echo $this->baseurl?>/templates/<?php echo $this->template;?>/javascript/hide.js"></script> <script type="text/javascript"> var big ='<?php echo (int)$this->params->get('wrapperLarge');?>%'; var small='<?php echo (int)$this->params->get('wrapperSmall');?>%'; var altopen='<?php echo JText::_('TPL_BEEZ2_ALTOPEN', true);?>'; var altclose='<?php echo JText::_('TPL_BEEZ2_ALTCLOSE', true);?>'; var bildauf='<?php echo $this->baseurl?>/templates/<?php echo $this->template;?>/images/plus.png'; var bildzu='<?php echo $this->baseurl?>/templates/<?php echo $this->template;?>/images/minus.png'; var rightopen='<?php echo JText::_('TPL_BEEZ2_TEXTRIGHTOPEN', true);?>'; var rightclose='<?php echo JText::_('TPL_BEEZ2_TEXTRIGHTCLOSE');?>'; var fontSizeTitle='<?php echo JText::_('TPL_BEEZ2_FONTSIZE');?>'; var bigger='<?php echo JText::_('TPL_BEEZ2_BIGGER');?>'; var reset='<?php echo JText::_('TPL_BEEZ2_RESET');?>'; var smaller='<?php echo JText::_('TPL_BEEZ2_SMALLER');?>'; var biggerTitle='<?php echo JText::_('TPL_BEEZ2_INCREASE_SIZE');?>'; var resetTitle='<?php echo JText::_('TPL_BEEZ2_REVERT_STYLES_TO_DEFAULT');?>'; var smallerTitle='<?php echo JText::_('TPL_BEEZ2_DECREASE_SIZE');?>'; </script>
</head> <body>
<div id="all"> <div id="back"> <div id="header"> <div class="logoheader"> <h1 id="logo"> <a class="aaa" href="http://moto.ru"> <?php if ($logo):?> <img src="<?php echo $this->baseurl?>/<?php echo htmlspecialchars($logo);?>" alt="<?php echo htmlspecialchars($templateparams->get('sitetitle'));?>" /> </a> <?php endif;?> <?php if (!$logo):?> <?php echo htmlspecialchars($templateparams->get('sitetitle'));?> <?php endif;?> </div><!-- end logoheader --> <ul class="skiplinks"> <li><a href="#main" class="u2"><?php echo JText::_('TPL_BEEZ2_SKIP_TO_CONTENT');?></a></li> <li><a href="#nav" class="u2"><?php echo JText::_('TPL_BEEZ2_JUMP_TO_NAV');?></a></li> <?php if($showRightColumn):?> <li><a href="#additional" class="u2"><?php echo JText::_('TPL_BEEZ2_JUMP_TO_INFO');?></a></li> <?php endif;?> </ul> <h2 class="unseen"><?php echo JText::_('TPL_BEEZ2_NAV_VIEW_SEARCH');?></h2> <h3 class="unseen"><?php echo JText::_('TPL_BEEZ2_NAVIGATION');?></h3> <jdoc:include type="modules" name="position-1" /> <div id="line"> <div id="fontsize"></div> <h3 class="unseen"><?php echo JText::_('TPL_BEEZ2_SEARCH');?></h3> <jdoc:include type="modules" name="position-0" /> </div> <!-- end line --> </div><!-- end header --> <div id="<?php echo $showRightColumn? 'contentarea2': 'contentarea';?>"> <div id="breadcrumbs"> <jdoc:include type="modules" name="position-2" /> </div> <?php if ($navposition=='left' and $showleft):?> <div class="left1 <?php if ($showRightColumn==NULL){ echo 'leftbigger';}?>" id="nav"> <jdoc:include type="modules" name="position-7" style="beezDivision" headerLevel="3" /> <jdoc:include type="modules" name="position-4" style="beezHide" headerLevel="3" state="0 " /> <jdoc:include type="modules" name="position-5" style="beezTabs" headerLevel="2" id="3" /> </div><!-- end navi --> <?php endif;?> <div id="<?php echo $showRightColumn? 'wrapper': 'wrapper2';?>" <?php if (isset($showno)){echo 'class="shownocolumns"';}?>> <div id="main"> <?php if ($this->countModules('position-12')):?> <div id="top"><jdoc:include type="modules" name="position-12" /> </div> <?php endif;?> <jdoc:include type="message" /> <jdoc:include type="component" />
</div><!-- end main --> </div><!-- end wrapper --> <?php if ($showRightColumn):?> <h2 class="unseen"> <?php echo JText::_('TPL_BEEZ2_ADDITIONAL_INFORMATION');?>
</h2> <div id="close"> <a href="#" onclick="auf('right')"> <span id="bild"> <?php echo JText::_('TPL_BEEZ2_TEXTRIGHTCLOSE');?></span></a> </div>
<div id="right"> <a id="additional">
</a> <jdoc:include type="modules" name="position-6" style="beezDivision" headerLevel="3"/> <jdoc:include type="modules" name="position-8" style="beezDivision" headerLevel="3" /> <jdoc:include type="modules" name="position-3" style="beezDivision" headerLevel="3" /> </div><!-- end right --> <?php endif;?> <?php if ($navposition=='center' and $showleft):?> <div class="left <?php if ($showRightColumn==NULL){ echo 'leftbigger';}?>" id="nav" > <jdoc:include type="modules" name="position-7" style="beezDivision" headerLevel="3" /> <jdoc:include type="modules" name="position-4" style="beezHide" headerLevel="3" state="0 " /> <jdoc:include type="modules" name="position-5" style="beezTabs" headerLevel="2" id="3" /> </div><!-- end navi --> <?php endif;?> <div class="wrap"></div> </div> <!-- end contentarea --> </div><!-- back --> </div><!-- all --> <div id="footer-outer"> <?php if ($showbottom):?> <div id="footer-inner"> <div id="bottom"> <div class="box box1"> <jdoc:include type="modules" name="position-9" style="beezDivision" headerlevel="3" />
</div> <div class="box box2"> <jdoc:include type="modules" name="position-10" style="beezDivision" headerlevel="3" />
</div> <div class="box box3"> <jdoc:include type="modules" name="position-11" style="beezDivision" headerlevel="3" />
</div> </div> </div> <?php endif;?> <div id="footer-sub"> <div id="footer"> <jdoc:include type="modules" name="position-14" />
<p> Выполнил студент группы 063101 Кононович А.И.<!--<?php echo JText::_('TPL_BEEZ2_POWERED_BY');?> <a href="http://www.joomla.org/">Joomla!®</a>--> </p>
</div><!-- end footer --> </div> </div>
<jdoc:include type="modules" name="debug" /> </body> </html>
ПРИЛОЖЕНИЕ Б Style.css * @author (Angie Radtke) */ /* not ready */ /* ########################## general ########################### */ @font-face { font-family: 'Titillium Maps'; src: url("../fonts/TitilliumMaps29L002.eot"); src: local('Titillium Maps'), local('TitilliumMaps'), url("../fonts/TitilliumMaps29L002.otf") format("opentype"), url("../fonts/TitilliumMaps29L002.woff") format("woff"); } body { background: #ccc; color: #333; font-family: arial, helvetica, sans-serif; } #all { color: #333; border: solid 0px; padding-top: 7px; background: #fff url(../images/personal/grey_bg.png) repeat-x } a:link,a:visited { color: #333 } a:hover,a:active,a:focus { background: #990000; color: #FFF; } ul li a.u2:focus,p a.u2:active { background-color: #000; color: #FFF; } input:focus { border: solid 2px; } fieldset { border: solid 0px #ccc } .article-info { color: #444 } .article-info dd span { color: #444; border-right: solid 0px; background: #eee } /* ########################## back ########################### */ #back { } /* ########################## logo ########################### */ #logo span { color: #fff } #all #header { padding-top: 2.8em; }
.logoheader { background: #171818 URL(../images/personal/personal2.png) no-repeat top left; color: #fff; min-height: 159px; margin: 0em 10px 0 10px; } * html.logoheader { height: 168px; } h1#logo { font-family: 'Titillium Maps', Arial; padding: 1em 20px 20px 10px; text-transform: uppercase; font-weight: normal; margin-top: 0; } h1#logo span { margin-top: 10px; text-transform: none; } #line { top: 110px } /* ########################## header ########################### */ #header { background: #fff; } /* ++++++++++++++ lists, skiplinks ++++++++++++++ */ #header ul { width: 600px; } #header ul { max-width: 1030px; right: 10px } #header ul li a:link,#header ul li a:visited { background: #fff; color: #333; border: 0; border-left: solid 1px #eee; } #header ul li a:hover,#header ul li a:active,#header ul li a:focus { background: #990000; color: #fff; } #header ul li.active a:link,#header ul li.active a:visited { background: #222; color: #fff; } #header ul li.active a:hover,#header ul li.active a:active,#header ul li.active a:focus { background: #990000; color: #fff; } #header ul.skiplinks { width: 100% } .skiplinks,.skiplinks li { border: solid 0px #000; } .skiplinks li a.u2:active,.skiplinks li a.u2:focus { background: #990000!important; color: #fff!important; border: solid 1px; top: 0 } /* ++++++++++++++ fontsize ++++++++++++++ */ #fontsize { background: #171818; color: #eee } #fontsize p a:link,#fontsize p a:visited { color: #eee } #fontsize p a:hover,#fontsize p a:active,#fontsize p a:focus { background: #900; color: #fff } #fontsize h3 { color: #fff; } /* ++++++++++++++ search ++++++++++++++ */ #header form.inputbox { background: url(../images/header-bg.gif) repeat-x; } #header form.inputbox:focus { border: solid 2px #000; } #header form.button { border: solid 1px #ddd; background: #fff; color: #171818 } /* ########################## contentarea ########################### */ #contentarea,#contentarea2 { background: #fff } /* ########################## breadcrumbs ########################### */ #breadcrumbs { color: #333; } #breadcrumbs span { color: #333; } #breadcrumbs span a:link,#breadcrumbs span a:visited { background: #fff; color: #333; } #breadcrumbs span a:hover,#breadcrumbs span a:active,#breadcrumbs span a:focus { background: #990000; color: #fff; } /* ########################## navigation column ########################### */ .module_content { border: solid 1px #ddd; /*background:#f8f8f8*/ } .moduletable_js { border: solid 0px #ddd; } #right.moduletable_js { border: 0 } #nav h3 { border-bottom: solid 1px #ddd; font-family: 'Titillium Maps', Arial; } h3.js_heading { border-bottom: solid 1px #ddd; color: #333!important; background: #eee; font-family: 'Titillium Maps', Arial; } h3.js_heading span.backh { border: solid 0px #000 } h3.js_heading span.backh1 { } h3.js_heading a { border: 0 } h3.js_heading a img { border: 0 } h3.js_heading a.opencloselink:hover,h3.js_heading a.opencloselink:active,h3.js_heading a.opencloselink:focus { background: none } #right h3 { color: #fff; } #right h3 span.backh { } #right h3 span.backh2 { background: #fff; color: #222; border-bottom: solid 1px #ddd } #right h3 span.backh3 { } h3.js_heading a:link,h3.js_heading a:visited,h3.js_heading a:hover,h3.js_heading a:active,h3.js_heading a:focus { }
#nav h3.js_heading a:focus { } #nav form { color: #000; } #nav form a:hover,#nav form a:active,#nav form a:focus { color: #fff; background: #990000; text-decoration: none } /* ++++++++++++++ first level ++++++++++++++ */ #nav.moduletable-example ul.menu { background: #fff; border: 0; } ul.menu { border: 0; background: #fff /* url(../images/nature/nav_level_1.gif) repeat-x */; border: solid 0px #eee; }
.module_content ul.menu { border: 0; } ul.menu li { border-bottom: solid 1px #ddd; } ul.menu li a { } ul.menu li a:link,ul.menu li a:visited { color: #444; background: url(../images/nature/karo.gif) 5px 12px no-repeat }
ul.menu li.active a:link,ul.menu li.active a:visited { color: #444; } ul.menu li a:hover,ul.menu li a:active,ul.menu li a:focus,ul.menu li.active a:hover,ul.menu li.active a:active,ul.menu li.active a:focus { background: #990000; color: #fff; }
/* ++++++++++++++ second level ++++++++++++++ */ ul.menu li ul { border: solid 0px #eee; } ul.menu li ul li { border: solid 0px #000; background: #fff; } ul.menu li.active ul li a:link,ul.menu li.active ul li a:visited { color: #000; border: 0; border-bottom: solid 1px #fff; background: #e8e8e8; } ul.menu li.active ul li.active a:link,ul.menu li.active ul li.active a:visited { border: 0; color: #333; border-bottom: solid 1px #fff; } ul.menu li.active ul li a:hover,ul.menu li.active ul li a:active,ul.menu li.active ul li a:focus { background: #990000!important; color: #fff!important; } /* ++++++++++++++ third level ++++++++++++++ */ ul.menu li ul li ul { border: 0!important; background: #f5f5f5!important; }
ul.menu li.active ul li.active ul li a:link,ul.menu li.active ul li.active ul li a:visited { background: #f5f5f5; border-bottom: solid 1px #fff; color: #444 }
ul.menu li.active ul li.active ul li.active a:link,ul.menu li.active ul li.active ul li.active a:visited { color: #333; } /* ++++++++++++++ fourth level ++++++++++++++ */ ul.menu li ul li ul li ul { border: solid 1px #eee!important; padding-top: 10px!important; padding-bottom: 10px!important; background: #fff url(../images/nature/level4.png) repeat-x!important; } ul.menu li.active ul li.active ul li.active ul li a:link,ul.menu li.active ul li.active ul li.active ul li a:visited { font-weight: normal; padding: 3px 2px 3px 40px; font-size: 0.9em; background: #fff url(../images/nature/arrow_small.png) no-repeat 30px 5px; color: #444 } ul.menu li.active ul li.active ul li.active ul li.active a:link,ul.menu li.active ul li.active ul li.active ul li.active a:visited { font-weight: bold } /* ########################## content - main ########################### */ #main {
} #main a:link,#main a:visited { } #main a:hover,#main a:active,#main a:focus { background: #990000; color: #fff; } #main th a:hover,#main th a:active,#main th a:focus { background: #333; color: #fff; } .items-row { background: #fff } .items-row h2 { border-bottom: solid 1px #ddd; border-top: solid 1px #ddd; color: #000 } .column-1,.column-2 { border: solid 0px; } .item-separator { border: solid 0px #333333; } #main ul li {
} .small { border: solid 0; } ul#archive-items li { border-bottom: solid 1px #ddd }
/* ++++++++++++++ images ++++++++++++++ */ .image-left { border: solid 1px #ddd; padding: 2px } .image-right { border: solid 1px #ddd; padding: 2px } /* ++++++++++++++ leading ++++++++++++++ */ .items-leading { } /* ++++++++++++++++++++ headings +++++++++++++ */ #main h1 { color: #444; border-top: solid 1px #ddd; border-bottom: solid 1px #ddd; font-family: 'Titillium Maps', Arial; } /* h1 on frontpage */ #main.blog-featured h1 { border-top: solid 0px #ddd; border-bottom: solid 0px #ddd; } .items-row h2 { border-top: solid 1px #ddd; border-bottom: solid 1px #ddd; } .items-leading h2 { color: #333; } #main h2 { color: #333; font-family: 'Titillium Maps', Arial; } #main h2 a { color: #333 } /* ++++++++++++++ readmore ++++++++++++++ */ .readmore a:link,.readmore a:visited,a.readmore:link,a.readmore:visited { color: #444; background: #eee url(../images/nature/arrow1.gif) repeat-x left top; border: solid 1px #ddd; } .readmore a:hover,.readmore a:active,.readmore a:focus,a.readmore a:hover,a.readmore a:active,a.readmore a:focus { background: #555 url(../images/nature/arrow2.gif) no-repeat left 6px !important; color: #fff; } a.readmore:hover,a.readmore:active,a.readmore:focus { background: #555; color: #fff; } /* ++++++++++++++ icons ++++++++++++++ */ .actions img { border: 0; } /* ++++++++++++++ items-more ++++++++++++++ */ #main.items-more h3 { border-bottom: solid 1px #ddd; border-top: solid 1px #ddd; color: #444; } #main.items-more ol { color: #000; } #main.items-more ol li a { background: #FFFFFF url(../images/personal/arrow2_grey.png) no-repeat 0px center; color: #990000 } #main.items-more ol li a:hover,#main.items-more ol li a:active,#main.items-more ol li a:focus { background: #990000; color: #fff; } /* ++++++++++++++ pagination ++++++++++++++ */ #main.pagination { border-top: solid 1px #ddd; } /* ++++++++++++++ article index ++++++++++++++ */ table.contenttoc { border: solid 1px #ccc; } /* ########################## right column ########################### */ #right { border: solid 0px #e6e6e6; background: #fff } #right.moduletable { color: #000; border: solid 0px #ccc } #right h3 { } #right h4 { color: #000; border: solid 0; } #right ul { border: solid 0 #ccc; color: #000; } #right ul li a:link,#right ul li a:visited { color: #000; } #right ul li a:hover,#right ul li a:active,#right ul li a:focus { background: #990000; color: #fff; } /* ++++++++++++++ button for closing right column ++++++++++++++ */ #close span { color: #000; } /* ########################## modules ########################### */ /* ++++++++++++++ mostread, latest news ++++++++++++++ */ .mostread li a:link,.mostread li a:visited,.latestnews li a:link,.latestnews li a:visited { background: url(../images/personal/arrow2_grey.png) 2px 7px no-repeat; } .mostread li a:hover,.latestnews li a:hover,.mostread li a:active,.latestnews li a:active,.mostread li a:focus,.latestnews li a:focus { background: #555 url(../images/arrow_white_grey.png) 2px 7px no-repeat !important; } /* ++++++++++++++ newsfeed ++++++++++++++ */ ul.newsfeed { border: solid 0px #000; } .newsfeed-item { border-bottom: solid 1px #ddd; } .newsfeed-item h5 a { } /* ++++++++++++++ newsflash ++++++++++++++ */ /* newsflash horizontal */ ul.newsflash-horiz { background: #F5F5F5 url(../images/nature/box.png) repeat-x; border: 1px solid #EEEEEE; } ul.newsflash-horiz li { border: solid 0px #eee; background: #f5f5f5; } ul.newsflash-horiz li h4 { font-family: 'Titillium Maps', Arial; } /* newsflash vertical */ .newsflash-vert { } /* ++++++++++++++ banner ++++++++++++++ */ .banneritem { border: 0 } .banneritem a { background: none } .banneritem a img { background: none; border: 0 } /* ++++++++++++++ login ++++++++++++++ */ fieldset.input { border: 0; } input.button,button.button { /* background:#990000; color:#fff;*/ background: #FFFFFF url(../images/nature/arrow1.gif) no-repeat left top; border: 1px solid #DDDDDD; color: #444444; } /* ++++++++++++++ tabs/ slide ++++++++++++++ */ ul.tabs { border: solid 1px #ddd; border-bottom: 0; background: #f5f5f5 url(../images/nature/box.png) repeat-x; } ul.tabs li { background: #f5f5f5 url(../images/nature/box.png) repeat-x; border-right: solid 1px #ddd } ul.tabs li a:link,ul.tabs li a:visited { color: #333; } ul.tabs li a:hover,ul.tabs li a:active,ul.tabs li a:focus { color: #000 } .tabcontent { border: solid 1px #ddd; background: #fff; color: #000; } .tabcontent.linkclosed { color: #000; border-bottom: solid 1px #e5e5e5; } ul.tabs li a.linkopen { background: #fff; color: #333; border: 0 } ul.tabs li a.linkclosed:hover,ul.tabs li a.linkclosed:active,ul.tabs li a.linkclosed:focus,ul.tabs li a.linkopen:hover,ul.tabs li a.linkopen:active,ul.tabs li a.linkopen:focus { background: #555; color: #fff }
/* ++++++++++++++ category-module ++++++++++++++ */ #right.category-module h4 a:link,#right.category-module h4 a:visited { color: #330000 } #right.category-module h4 a:hover,#right.category-module h4 a:active,#right.category-module h4 a:focus { color: #fff } .category-module li { border-bottom: solid 1px #ddd; } .category-module li li { border: 0 } /* ########################## search ########################### */ .searchintro img { border: 0px } .inputbox:focus { border: solid 2px #000; } .word { background: #fff; border: solid 0px #ccc; } .word input { background: #fff; border: solid 1px #999; color: #333; } .only { border: solid 1px #ccc; } .phrases { color: #000; border: solid 1px #ccc; }
/* ++++++++++++++ selects ++++++++++++++ */ .phrases.inputbox { background: #fff; color: #000; } .phrases.inputbox option { background: #f5f5f5; border-bottom: solid 1px #ccc; } .phrases.inputbox option a:hover { background: #C00; border-color: #CFD0D6; color: #fff; } /* ++++++++++++++ search results ++++++++++++++++++ */ dl.search-results { background: #f5f5f5; } dl.search-results dt.result-title { border-top: dotted 1px #ddd } dl.search-results dd.result-url { border-bottom: solid 5px #fff; color: #115599; } dl.search-results dd.result-created { border-bottom: solid 5px #fff; } /* ########################## forms ########################### */ /* ++++++++++++++ form validation ++++++++++++++ */ .invalid { border-color: red!important; } label.invalid { color: red; } /* ########################## user profile ########################### */ #users-profile-core,#users-profile-custom { border: solid 1px #ccc; } #member-profile fieldset { border: solid 1px #ccc; } /* ########################## tables ########################### */ table { border: solid 1px #ddd } tbody { } tr.odd,.cat-list-row1 { background: url(../images/news.gif) repeat-x; } table.newsfeeds td,table.weblinks td { } table.weblinks th,table.newsfeeds th,table.category th,table.jlist-table th { background: #444; } table.weblinks th a,table.newsfeeds th a,table.category th a,table.jlist-table th a { color: #fff } td.table_footer { background: #ddd url(../images/table_footer.gif) bottom left repeat-x; } td.counter { } td.num,td.hits { } td p { } table.category th a img { border: solid 0px; } /* for opera */ tr,td { border: solid 1px #ddd } fieldset.filters { border: 0; } /* ########################## contacts ########################### */ .contact form { background: #fff; color: #000; } .contact input { background: #fff; color: #000; } .contact.button { } .contact input.invalid,.contact textarea.invalid { border: solid 2px red; } .contact label.invalid { color: red; } /* ++++++++++++++ Error Message contact form ++++++++++++++ */ p.error { color: #044b63; background: #eee; border-top: 3px solid #044b63; border-bottom: 3px solid #044b63; } body.contentpane { background: #fff; } /* ########################## footer ########################### */ #footer { /* background:url(../images/footer_bg.gif) repeat-x;*/ background: #333333 url(../images/personal/tabs_back.png) repeat-x; color: #fff; border-top: solid 0px #ccc; } #footer-inner { background: #f5f5f5 url(../images/personal/footer.jpg) repeat-x left bottom; border-top: solid 1px #ddd } #footer a { color: #fff; } #bottom a img { border: 0} .box h3 { font-family: 'Titillium Maps', Arial; } /* ########################## editor ########################### */ .contentpaneopen_edit img { border: 0 } form.editor fieldset { border: solid 1px #ccc; } /* ++++++++++++++ edit ++++++++++++++ */ form#adminForm { border: solid 0px #000 } form#adminForm fieldset { border: solid 1px #ddd } /* ++++++++++++++ tooltip ++++++++++++++ */ .tip { border: solid 1px #333; background: #ffffcc; } /*-------------------------------*/ .australia { background: #f5f5f5 url(../images/nature/koala.png) top right no-repeat; border: solid 1px #ddd } .australia h3 { font-family: 'Titillium Maps', Arial; } table.pagenav,table.pagenav tr,table.pagenav td { border: 0!important } /* ++++++++++++++ flashupload ++++++++++++++ */ .hide { display: none; }
ПРИЛОЖЕНИЕ В Шаблон страницы ошибки
<?php /** * @package Joomla.Site * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */
defined('_JEXEC') or die; $params = JFactory::getApplication()->getTemplate(true)->params; $logo = $params->get('logo'); $showRightColumn = 0; $showleft = 0; $showbottom = 0;
// get params $color = $params->get('templatecolor'); $navposition = $params->get('navposition');
//get language and direction $doc = JFactory::getDocument(); $this->language = $doc->language; $this->direction = $doc->direction; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language;?>" lang="<?php echo $this->language;?>" dir="<?php echo $this->direction;?>"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="language" content="<?php echo $this->language;?>" />
<title><?php echo $this->error->getCode();?> - <?php echo $this->title;?></title> <?php if ($this->error->getCode()>=400 && $this->error->getCode() < 500) {?>
<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/<?php echo $this->template;?>/css/position.css" type="text/css" media="screen,projection" /> <link rel="stylesheet" href="<?php echo $this->baseurl?>/templates/<?php echo $this->template;?>/css/layout.css" type="text/css" media="screen,projection" /> <link rel="stylesheet" href="<?php echo $this->baseurl?>/templates/<?php echo $this->template;?>/css/print.css" type="text/css" media="Print" /> <link rel="stylesheet" href="<?php echo $this->baseurl?>/templates/<?php echo $this->template;?>/css/<?php echo htmlspecialchars($color);?>.css" type="text/css" /> <?php $files = JHtml::_('stylesheet', 'templates/'.$this->template.'/css/general.css', null, false, true); if ($files): if (!is_array($files)): $files = array($files); endif; foreach($files as $file): ?> <link rel="stylesheet" href="<?php echo $file;?>" type="text/css" /> <?php endforeach; endif; ?> <link rel="stylesheet" href="<?php echo $this->baseurl?>/templates/<?php echo $this->template;?>/css/<?php echo htmlspecialchars($color);?>.css" type="text/css" /> <?php if ($this->direction == 'rtl'):?> <link rel="stylesheet" href="<?php echo $this->baseurl?>/templates/<?php echo $this->template;?>/css/template_rtl.css" type="text/css" /> <?php if (file_exists(JPATH_SITE. '/templates/'.$this->template.'/css/'. $color. '_rtl.css')):?> <link rel="stylesheet" href="<?php echo $this->baseurl?>/templates/<?php echo $this->template;?>/css/<?php echo $color?>_rtl.css" type="text/css" /> <?php endif;?> <?php endif;?> <!--[if lte IE 6]> <link href="<?php echo $this->baseurl?>/templates/<?php echo $this->template;?>/css/ieonly.css" rel="stylesheet" type="text/css" /> <![endif]--> <!--[if IE 7]> <link href="<?php echo $this->baseurl?>/templates/<?php echo $this->template;?>/css/ie7only.css" rel="stylesheet" type="text/css" /> <![endif]-->
<style type="text/css"> <!-- #errorboxbody {margin:30px} #errorboxbody h2 {font-weight:normal; font-size:1.5em} #searchbox {background:#eee; padding:10px; margin-top:20px; border:solid 1px #ddd } --> </style>
</head>
<body>
<div id="all"> <div id="back">
<div id="header">
<div class="logoheader"> <?php $params = JFactory::getApplication()->getTemplate(true)->params; $logo = $params->get('logo'); ?>
<?php jimport('joomla.application.module.helper');?>
<h1 id="logo">
<?php if ($logo):?> <img src="<?php echo $this->baseurl?>/<?php echo htmlspecialchars($logo);?>" alt="<?php echo htmlspecialchars($params->get('sitetitle'));?>" /> <?php endif;?> <?php if (!$logo):?> <?php echo htmlspecialchars($params->get('sitetitle'));?> <?php endif;?> <span class="header1"> <?php echo htmlspecialchars($params->get('sitedescription'));?> </span></h1> </div><!-- end logoheader -->
<ul class="skiplinks"> <li><a href="#wrapper2" class="u2"><?php echo JText::_('TPL_BEEZ2_SKIP_TO_ERROR_CONTENT');?></a></li> <li><a href="#nav" class="u2"><?php echo JText::_('TPL_BEEZ2_ERROR_JUMP_TO_NAV');?></a></li>
</ul> <div id="line"></div>
</div><!-- end header -->
<div id="contentarea2" >
<div class="left1" id="nav">
<h2 class="unseen"><?php echo JText::_('TPL_BEEZ2_NAVIGATION');?></h2> <?php $module = JModuleHelper::getModule('menu'); echo JModuleHelper::renderModule($module);?>
</div>
<!-- end navi --> <div id="wrapper2"> <div id="errorboxbody"> <h2><?php echo JText::_('JERROR_AN_ERROR_HAS_OCCURRED');?><br /> <?php echo JText::_('JERROR_LAYOUT_PAGE_NOT_FOUND');?></h2> <?php if (JModuleHelper::getModule('search')):?> <div id="searchbox"> <h3 class="unseen"><?php echo JText::_('TPL_BEEZ2_SEARCH');?></h3> <p><?php echo JText::_('JERROR_LAYOUT_SEARCH');?></p> <?php $module = JModuleHelper::getModule('search'); echo JModuleHelper::renderModule($module);?> </div> <?php endif;?> <div> <p><a href="<?php echo $this->baseurl;?>/index.php" title="<?php echo JText::_('JERROR_LAYOUT_GO_TO_THE_HOME_PAGE');?>"><?php echo JText::_('JERROR_LAYOUT_HOME_PAGE');?></a></p> </div>
<h3><?php echo JText::_('JERROR_LAYOUT_PLEASE_CONTACT_THE_SYSTEM_ADMINISTRATOR');?></h3>
<h2>#<?php echo $this->error->getCode();?> <?php echo $this->error->getMessage();?></h2> <br />
</div><!-- end wrapper --> </div><!-- end contentarea -->
<?php if ($this->debug): echo $this->renderBacktrace(); endif;?>
</div> <!--end all -->
</div> </div> <div id="footer-outer">
<div id="footer-sub">
<div id="footer"> <p> <?php echo JText::_('TPL_BEEZ2_POWERED_BY');?> <a href="http://www.joomla.org/">Joomla!®</a> </p>
</div><!-- end footer --> </div><!-- end footer-sub -->
</div> </body> </html> <?php } else {?> <?php if (!isset($this->error)) { $this->error = JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR')); $this->debug = false; } ?> <link rel="stylesheet" href="<?php echo $this->baseurl;?>/templates/system/css/error.css" type="text/css" /> </head> <body> <div class="error"> <div id="outline"> <div id="errorboxoutline"> <div id="errorboxheader"> <?php echo $this->title;?></div> <div id="errorboxbody"> <p><strong><?php echo JText::_('JERROR_LAYOUT_NOT_ABLE_TO_VISIT');?></strong></p> <ol> <li><?php echo JText::_('JERROR_LAYOUT_AN_OUT_OF_DATE_BOOKMARK_FAVOURITE');?></li> <li><?php echo JText::_('JERROR_LAYOUT_SEARCH_ENGINE_OUT_OF_DATE_LISTING');?></li> <li><?php echo JText::_('JERROR_LAYOUT_MIS_TYPED_ADDRESS');?></li> <li><?php echo JText::_('JERROR_LAYOUT_YOU_HAVE_NO_ACCESS_TO_THIS_PAGE');?></li> <li><?php echo JText::_('JERROR_LAYOUT_REQUESTED_RESOURCE_WAS_NOT_FOUND');?></li> <li><?php echo JText::_('JERROR_LAYOUT_ERROR_HAS_OCCURRED_WHILE_PROCESSING_YOUR_REQUEST');?></li> </ol> <p><strong><?php echo JText::_('JERROR_LAYOUT_PLEASE_TRY_ONE_OF_THE_FOLLOWING_PAGES');?></strong></p>
<ul> <li><a href="<?php echo $this->baseurl;?>/index.php" title="<?php echo JText::_('JERROR_LAYOUT_GO_TO_THE_HOME_PAGE');?>"><?php echo JText::_('JERROR_LAYOUT_HOME_PAGE');?></a></li> <li><a href="<?php echo $this->baseurl;?>/index.php?option=com_search" title="<?php echo JText::_('JERROR_LAYOUT_SEARCH_PAGE');?>"><?php echo JText::_('JERROR_LAYOUT_SEARCH_PAGE');?></a></li>
</ul>
<p><?php echo JText::_('JERROR_LAYOUT_PLEASE_CONTACT_THE_SYSTEM_ADMINISTRATOR');?>.</p> <div id="techinfo"> <p><?php echo $this->error->getMessage();?></p> <p> <?php if ($this->debug): echo $this->renderBacktrace(); endif;?> </p> </div> </div> </div> </div> </div> </body> </html>
<?php }?>
Дата добавления: 2015-08-31 ; Просмотров: 269 ; Нарушение авторских прав? ; Мы поможем в написании вашей работы!
Нам важно ваше мнение! Был ли полезен опубликованный материал? Да | Нет