|
|||
Додаток А (Основа)Index. php <? include (" blocks/bd. php" ); /*baza*/ $result = mysql_query (" SELECT title, meta_d, meta_k, text FROM settings WHERE page='index'", $db); $myrow = mysql_fetch_array ($result); ? > <! DOCTYPE html PUBLIC " -//W3C//DTD XHTML 1. 0 Strict//EN" " http: //www. w3. org/TR/xhtml1/DTD/xhtml1-strict. dtd" > < html xmlns=" http: //www. w3. org/1999/xhtml" > < head> < meta name=" description" content=" <? echo $myrow ['meta_d']; ? > " /> < meta name=" keywords" content=" <? echo $myrow ['meta_k']; ? > " />
< title> Рада молодих вчених< /title> < meta http-equiv=" Content-Type" content=" text/html; charset=UTF-8" /> < link rel=" stylesheet" type=" text/css" href=" css/style. css" media=" screen" />
< script type=" text/javascript" src=" js/jquery. js" > < /script> < script type=" text/javascript" src=" js/hoverIntent. js" > < /script>
< script type=" text/javascript" src=" js/superfish. js" > < /script>
< script type=" text/javascript" >
jQuery(function(){ jQuery('ul. sf-menu'). superfish(); }); < /script> < /head> < body> <! --кепка--> <? include (" blocks/header. php" );? > <! --менюха-->
<? include (" blocks/menu. php" );? >
< br /> < div align=" center" >
<! -- slider SWF --> < div id=" flashmo_slider" > < br /> < br /> < a href=" http: //www. adobe. com/go/getflashplayer" > < img src=" http: //www. adobe. com/images/shared/download_buttons/get_flash_player.gif" alt=" Get Adobe Flash player" height=" 30" /> < /a> < br /> < br /> < /div>
<! -- slider SWF -->
< /div> < script type=" text/javascript" src=" swfobject. js" > < /script> < script type=" text/javascript" > var flashvars = {}; flashvars. xml_file = " flashmo_240_photo_list. xml"; var params = {}; var attributes = {}; attributes. id = " slider"; swfobject. embedSWF(" flashmo_240_touch_scroller. swf", " flashmo_slider", " 940", " 400", " 9. 0. 0", false, flashvars, params, attributes); < /script> <! -- embedding SWF -->
< /head> < body> < div id=" main" > <! --хрень справа--> <? include (" blocks/right. php" );? >
< div id=" leftside" > <? echo $myrow ['text']; ? > < div class=" date" >
< /div> < /div> < /div> <! --подлючаем нижний графический элемент--> <? include (" blocks/footer. php" ); ? > < /div> < /body> < /html>
Bd. php <? php if (empty($_SESSION['login']) or empty($_SESSION['id'])) { session_start(); } $db = mysql_connect (" localhost", " php", " 12345" ); mysql_select_db(" php", $db);? > lefttd. php < meta http-equiv=" Content-Type" content=" text/html; charset=utf-8" /> < td class=" left" > < form action=" http: //localhost/it/testreg. php" method=" post" name=" enter" > <? if (isset($_SESSION['user'])){ echo " < p> Ласкаво просимо! < br> Вы вiйшли як: < br> ". $_SESSION['user']. " < /p> "; }? > < p > < center> < input name=" submit" type=" submit" value=" Вийти" /> < /center> < /p> < /form>
< p align=" center" class=" title" > Новини< /p> < div id=" coolmenu" > < a href=" new_lesson. php" > Добавити< /a> < a href=" edit_lesson. php" > Редагувати< /a> < a href=" del_lesson. php" > Видалити< /a> < /div> < /br> < /br>
< p align=" center" class=" title" > Інформація< /p> < div id=" coolmenu" > < a href=" new_lesson. php" > Добавити< /a> < a href=" edit_lesson. php" > Редагувати< /a> < a href=" del_lesson. php" > Видалити< /a> < /div> < /br> < /br>
< p align=" center" class=" title" > Коментарі< /p> < div id=" coolmenu" > < a href=" new_lesson. php" > Добавити< /a> < a href=" edit_lesson. php" > Редагувати< /a> < a href=" del_lesson. php" > Видалити< /a> < /div> < /br> < /br>
< p align=" center" class=" title" > Тексты< /p> < div id=" coolmenu" > < a href=" edit_text. php" > Редагувати< /a> < /div> < /br> < /br> < /td>
header. php < tr> < td> < a href=" http: //localhost/it" > < img src=" images/header.jpg" height=" 100" /> < /a> < /td> < /tr> fooder. php < tr> < td> < img src=" images/footer.jpg" height=" 18" /> < /td> < /tr>
|
|||
|