![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 3 Pomógł: 0 Dołączył: 13.03.2008 Ostrzeżenie: (0%) ![]() ![]() |
Mam 2 pliki musze zrobić z niego jeden. Poprostu ten drugi muszę umieścic zeby wyświetlał sie w tym pierwszym. Pierwszy to schemat strony drugi to kod składu drużyny. Oby dwa napewno są dobre!!!Da sie z tym cos zrobic?
![]() http://www.bartasp.superhost.pl/NJP/ SCHEMAT STRONY - Kod <? /*****************************************************/ /* jPORTAL - internetowy system portalowy */ /*****************************************************/ /* autor: Pawel 'jaco' Jaczewski */ /* email: info@websys.pl */ /*****************************************************/ include('config.php'); #=====================================================# if(isset($id)) { banner_click($id); } #=====================================================# function site_main() { global $id; $id = htmlspecialchars($id); main_title_open(); echo''; main_title_close(); main_text_open(); TUTAJ UMIEŚCIC KODDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD main_text_close(); } #=====================================================# $site_title = ''; $meta_info = ''; include("theme/$theme/index.php"); ?> TEN KOD CHCIAŁ BYM UMIEŚCIC W WYŻEJ WYMIENIONYM KODZIE kod składu drużyny sklad.php Kod <?
function bez_polaka($txt){ $win_a = array(185,230,234,179,241,243,156,159,191); $iso_a = array(177,230,234,179,241,243,182,188,191); $win_b = array(165,198,202,163,209,211,140,143,175); $iso_b = array(161,198,202,163,209,211,166,172,175); $bez_a = array(a,c,e,l,n,o,s,z,z); for($i=0;$i<count($bez_a);$i++){ $txt = str_replace(chr($win_a[$i]),$bez_a[$i],$txt); $txt = str_replace(chr($iso_a[$i]),$bez_a[$i],$txt); $txt = str_replace(chr($win_b[$i]),$bez_a[$i],$txt); $txt = str_replace(chr($iso_b[$i]),$bez_a[$i],$txt); } return $txt; } function getAge($bday, $bmonth, $byear){ if(date("n") > $bmonth){ $age = date("Y") - $byear; } elseif(date("n") == $bmonth){ if(date("j") >= $bday){ $age = date("Y") - $byear; } elseif(date("j") < $bday){ $age = date("Y") - $byear - 1; } } elseif(date("n") < $bmonth){ $age = date("Y") - $byear - 1; } return $age; } include("baseClass.php"); $db=baseConnect("localhost","bartasp_stats","notecadmina"); baseSelect("bartasp_notec"); if(is_numeric($_GET['id'])){ $d = tableSelect(array("data"),array("*"),array("WHERE",array("type=0 AND id={$_GET['id']}")),array("name")); $d = $d[0]; ?> <table cellpadding="0" cellspacing="0" border="0" style="width:100%"> <tr> <td align="center"> <table cellpadding="1" cellspacing="1" border="0" style="width:525px" class="tabela"> <tr> <td colspan="4" align="center"><span style="font-size:14px; color:#0033FF"><b><?=$d['name'] ?></b></span></td> </tr> <tr> <td colspan="2" height="5"></td> </tr> <tr><? $photo_ex = explode(" ",$d['name']); $zdjecie = strtolower(bez_polaka($photo_ex[0].'.jpg')); if(!file_exists('kadra/photos/'.$zdjecie)){ $zdjecie = 'anonim.jpg'; } ?> <td rowspan="9" width="140" align="center"><img src="http://bartasp.superhost.pl/NJP/kadra/photos/<?=$zdjecie ?>" border="0" alt=""></td> <td style="color:#222222">Miejsce urodzenia:</td> <td style="color:#222222"><b><?=$d['nation'] ?></b></td> <td rowspan="9" width="130" align="center"><img src="http://bartasp.superhost.pl/NJP/kadra/boisko.php?<?=$d['position1'] ?>" border="0" alt=""></td> </tr> <tr style="color:#333333"> <td>Data urodzenia:</td> <td><b><?=date("d-m-Y", strtotime($d['birth'])) ?></b></td> </tr> <tr style="color:#222222"> <td>Wiek:</td> <td><b><? $da = explode("-",$d['birth']); echo getAge($da[2],$da[1],$da[0]); ?></b></td> </tr> <tr style="color:#333333"> <td>Pozycja:</td><? $mnoga=array("Bramkarze","Obroñcy","Pomocnicy","Napastnicy"); $pojed=array("Bramkarz","Obroñca","Pomocnik","Napastnik"); ?> <td><b><?=str_replace($mnoga,$pojed,$d['position']) ?></b></td> </tr> <tr style="color:#222222"> <td>Noga:</td> <td><b><?=$d['foot'] ?></b></td> </tr> <tr style="color:#333333"> <td>Wzrost:</td> <td><b><?=$d['growth'] ?></b></td> </tr> <tr style="color:#222222"> <td>Waga:</td> <td><b><?=$d['weight'] ?></b></td> </tr> <tr> <td colspan="2"></td> </tr> </table> </td> </tr> </table> <? echo '<div id="stats">'."\n"; echo '<table cellpadding="0" cellspacing="0" border="0" style="width:100%;height:100%"><tr><td align="center" valign="middle">'."\n"; echo '<table cellpadding="2" cellspacing="1" border="0" style="width:480px">'."\n"; echo '<tr><td style="font-size:12px" colspan="6" height="40" valign="bottom">'; echo 'Statystyki z obecnego sezonu:'; echo '</td></tr>'."\n"; echo '<tr><td colspan="6"></td></tr>'."\n"; echo '<tr class="wierszciemny"><td align="center" width="80"><b>Mecze</b></td><td align="center" width="80"><b>Bramki</b></td><td align="center" width="80"><b>Asysty</b></td><td align="center" width="80"><b>¯ó³te k.</b></td><td align="center" width="80"><b>Czerwone k.</b></td></tr>'."\n"; echo '<tr class="wierszjasny"><td align="center" width="80"><b>'.$d['meets'].'</b></td><td align="center" width="80"><b>'.$d['goals'].'</b></td><td align="center" width="80"><b>'.$d['assists'].'</b></td><td align="center" width="80"><b>'.$d['yellow'].'</b></td><td align="center" width="80"><b>'.$d['red'].'</b></td></tr>'."\n"; echo '</table>'; echo '</div>'; } else{ $d = tableSelect(array("data"),array("*"),array("WHERE",array("type=0")),array("position,name")); ?> <div id="stats"> <table width="376" border="0" align="center"> <tr><td height="10" colspan="3"></td></tr> <? foreach($d as $val){ if($rem_pos != $val['position']){ $tabelka[strtolower(bez_polaka($val['position']))][] = '<tr style="background-color:#0000FF;text-align:center" class="tabela"><td style="text-align:left" colspan="3"><span style="font-size:13px"><b>'.$val['position'].'</b></span></td></tr>'."\n"; $rem_pos = $val['position']; } $tabelka[strtolower(bez_polaka($val['position']))][] = '<tr style="color:'.(($nrw++ % 2 == 0)?'#222222':'#333333').';text-align:center" class="tabela"><td style="text-align:left"><b>'.$val['name'].'</b></td><td><b>'.(($val['birth'] != "0000-00-00")?date("d.m.Y",strtotime($val['birth'])):'').'</b></td><td><a href="?id='.$val['id'].'" class="menu">>>></a></td></tr>'."\n"; } $pozycje = array('bramkarze','obroncy','pomocnicy','napastnicy'); foreach($pozycje as $pozycja){ if(count($tabelka[$pozycja]) > 0){ foreach((array)$tabelka[$pozycja] as $teer){ // :) echo $teer; } } } } baseClose($db); ?> </table> </div> Ten post edytował bartasp 13.03.2008, 18:57:13 |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 15.07.2025 - 19:52 |