tak wywoluje
plik z funkcjami
function menu_lewe()
{
("SELECT * FROM menu_lewe ORDER BY id LIMIT 0,15");
{
print"<a href='http://worcester.pl/".$wiersz['link']."'>".$wiersz['tytul']."</a><br />"; }
}
/////////////////////////////////////// WIADOMOSCI NA GLOWNEJ STRONIE ////////////
function news_home()
{
print"<div class='title'>Wiadomość z UK & Worcestershire</div> <br />";
("SELECT * FROM news ORDER BY ID DESC LIMIT 0,7");
{
print"<a href='news/".$wiersz['ID'].",".$wiersz['link'].".html'>".$wiersz['tytul']."</a><br />"; }
print"<a href='http://www.worcester.pl/news/'>Archiwum Aktualnosci</a>"; }
/////////////////////////////////////// STOPKA WSZEDZIE ////////////////////////////
function footer()
{
$link = "link";
("SELECT * FROM footer");
{
print" <a href='ask.php?link=" .$wiersz['link']. "'>" .$wiersz['tytul']. "</a> |"; }
print"<br /><br /><br /><br /><br />"; }
//////////////////////////////////// GALERIA NA GŁOWNEJ STRONIE//////////////////////
function gallery_home()
{
("SELECT * FROM gallery ID LIMIT 0,5");
{
print"<a href='gallery/=".$wiersz['ID']."'><img src='gallery/worcester/".$wiersz['ID'].".JPG' width='151' border='0' height='75'></a>"; }
}
////////////////////////////////// o serwisie ///////////////////////////////////////
function ask($link)
{
if (isset($_POST[$link])) {
("SELECT tytul_strony , tresc FROM footer WHERE link='$link'");
{
print"<b>".$kod['tytul_strony']."</b><br /><br />".$kod['tresc']."<br />"; }}
else{
print"Podana strona nie istnieje"; }
}
plik ask
require_once('function/function.php');
lacz_bd();
$page_title = 'tytul strony';
include "templates/header.html";
include "templates/header_top.html";
print"<tr><td>";
?>
<script language='JavaScript' type='text/javascript' src='http://www.iiads.eu/adx.js'></script>
<script language='JavaScript' type='text/javascript'>
<!--
if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
document.write ("http://www.iiads.eu/adjs.php?n=" + phpAds_random);
document.write ("&what=zone:1");
document.write ("&exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&referer=" + escape(document.referrer));
document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://www.iiads.eu/adclick.php?n=a9320cbb' target='_blank'><img src='http://www.iiads.eu/adview.php?what=zone:1&n=a9320cbb' border='0' alt=''></a></noscript>
<?
include"templates/top_spacer.html";
<td width='15' bgcolor='#e8e7e2'> </td>
<td width='204' bgcolor='#dbdbcf' class='left_column' valign='top'>"; menu_lewe();
print"</td><td width='336' class='news_home' bgcolor='#e8e7e2'>"; ask
($link); print"</td><td width='204' class='right_column' bgcolor='#dbdbcf'></td> <td width='22' bgcolor='#e8e7e2'> </td>
</tr></table>";
include"templates/footer.html";
plik stopki
<table width="781" cellpadding="0" cellspacing="0" align="center" bgcolor="#e8e7e2"> <td width="775" align="center">
<? footer(); ?>
Ten post edytował imashjan82 8.04.2010, 00:04:39