![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 7 Pomógł: 0 Dołączył: 4.12.2006 Ostrzeżenie: (0%) ![]() ![]() |
Witam jestem adminem na stronie firmowej.
Autor strony zrezygnował z działalności i nie mam do kogo zwrocić sie o pomoc. Znam html, ale php niestety nie. Problem mam taki: strona firmowa wygląda tak: FIRMOWA STRONA, a chciałbym aby wyglądała tak FIRMOWA STRONA HTML. Oto lista plików na serwerze: LISTA PLIKÓW NA SERWERZE Funkcje menu left zapewne trzeb edytować. Oto gdzie ją znalazlem: layout1.php layout_f.php menu_dzialu_l1 - znajdujący sie folderze loyout. Podam pokoleji funkcje: layout1.php Kod <? function printLayout() { global $EN; print '<html>'; print head_1(); print ' <body> <table width="768" cellpadding="0" cellspacing="0" border="0" align="center" height="100%"> <tr> <td style="background-image: url(\'images/k1.gif\');" width="1"> </td> <td width="766" height="100%"> <table border="0" cellpadding="0" cellspacing="0" width="766" height="100%">'; print page_top_1(); print ' <tr > <td height="100%" width="100%" style="background-image: url(\'images/back.jpg\');"> <table height="100%"> <tr> <td width="230"> <div style="padding-left:10px; padding-top:10px">'; print menu_left_1(); print ' </div> </td> <td width="536" height="100%"> <div style="padding:20px; padding-top:10px" class="main">'; print zz($EN['page']['tekst']); print ' </div> </td> </tr> <tr> <td colspan="2" align="center"> <div style="padding:10px" class="bottom"> © 2005 Solar Int Sp. z o.o., wszystkie prawa zastrzeżone. Wykonanie: <a href="http://www.laventhar.pl" class=bottom target="_blank">Laventhar Consulting</a>. </div> </td> </tr> </table> </td> </tr> </table> </td> <td style="background-image: url(\'images/k1.gif\');" width="1"> </td> </tr> </table> </body></html>'; //if ($_GET['n'] == 121) print $EN['page']['tekst']; } ?> layout_f.php Kod <? function head_1() { global $EN; $t .= '<head>'; $vs = array( array("title", "<title>", "</title>"), array("metaopis", "<meta name=\"Description\" content=\"", "\">"), array("keywords", "<meta name=\"Keywords\" content=\"", "\">")); foreach($vs as $v) { $t1 = ($EN['page'][$v[0]]) ? $EN['page'][$v[0]] : $EN['www'][$v[0]]; $t .= $v[1] . stripslashes(zz($t1)) . $v[2] ."\n"; } $t .= '<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> <meta http-equiv="content-language" content="pl"> <META name="Author" content="Laventhar Consulting"> <META name="Robots" content="index, follow" > <META name="revisit-after" content="7 Day" > <meta http-equiv="Content-Style-Type" content="text/css"> <LINK HREF="style.css" TYPE="text/css" REL="stylesheet"> <link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon"> '; $t .= ' <script language="JavaScript"> <!-- Begin function movepic(img_name,img_src) { document[img_name].src=img_src; } // End --> </SCRIPT>'; $t .= '</HEAD>'; return $t; } function page_top_1() { $t .= '<tr>'; $t .= '<td width="100%" style="background-image: url(\'images/head.jpg\');" height="130">'; $t .= '<table cellpadding="0" cellspacing="0"> <tr>'; $t .= '<td width=255>'; $t .= '<a href="index.php"><img width="255" height="130" src="images/blank.gif" border="0"></a>'; $t .= '</td>'; $t .= '<td width=366>'; $t .= menu_top_1(); $t .= '</td>'; $t .= '<td width="70">'; $t .= '<div align="center" style="padding-top: 20px" class="top">'; $t .= 'katalog<br /><br /> <a href="images/katalog_SolarInt.pdf" class="top" target="_blank"><img border="0" src="images/pdf_icon.gif"></a>'; $t .= '</div> </td>'; $t .= '<td width="75">'; $t .= '<div align="center" style="padding-top: 20px" class="top">'; $t .= 'Firma w TV<br /><br /> <a href="index.php?n=121" class="top"><img border="0" src="images/wmp.gif"></a>'; $t .= '</div> </td>'; $t .= '</tr></table>'; $t .= '</td>'; $t .= '</tr>'; return $t; } function menu_top_1() { global $EN; $t .= '<div align="center" style="padding-top:25px; line-height:30px;">'; if ($EN['menu_top']) foreach($EN['menu_top'] as $el) if ($el['lang']) { $class = ($el['id'] == $_GET['n']) ? "top1" : "top"; $t1[] = '<a href="index.php?n=' . $el['id'] . '" class="'.$class.'">'. zz($el['lang']). '</a>'; } $t .= join(" ", $t1); $t .= '</div>'; return $t; } function menu_left_1() { global $EN; $srcs = array(1 => "menu1.jpg", 2 => "menu8.jpg", 3 => "menu7.jpg", 4 => "menu10.jpg"); $srcs1 = array(1 => "menu1b.jpg", 2 => "menu8b.jpg", 3 => "menu7b.jpg", 4 => "menu10b.jpg"); $t .= '<table width="200" cellpadding=0 cellspacing=0>'; if ($EN['menu_dzial1']) foreach($EN['menu_dzial1'] as $el) if ($el['lang']) { $i++; if ($i <= 4) { $t1 = '<tr>'; $t1 .= '<td width="110" style="text-align: left" class="middle">'; $class = ($el['id'] == $_GET['n']) ? "left1" : "left"; $t1 .= '<a href="index.php?n=' . $el['id'] . '" class="'.$class.'">'. zz($el['lang']). ' </a>'; $t1 .= '</td>'; $t1 .= '<td width="90" align=right>'; $src = ($el['id'] == $_GET['n']) ? $srcs1[$i] : $srcs[$i]; $t1 .= '<a href="index.php?n=' . $el['id'] . '" onmouseover="movepic(\'img'.$i.'\',\'images/'.$srcs1[$i].'\')" onmouseout="movepic(\'img'.$i.'\',\'images/'.$src.'\')">'; $t1 .= '<img width=80 height=80 border="0" src="images/'.$src.'" name="img'.$i.'"></a>'; $t1 .= '</td>'; $t1 .= '</tr>'; $t2[] = $t3; } } if ($t2) { $t1 = '<tr><td height=5></td></tr><tr><td colspan="2" style="background-image: url(\'images/line.gif\'); margin-top:5px" width="100%" height="1"> </td></tr><tr><td height=5></td></tr>'; $t .= join($t1, $t2); } $t .= '</table>'; return $t; } ?> menu_dzialu_l1 Kod <? if ($EN['menu_dzial1']) { ?> Zobacz więcej na poniższych podstronach: <div style="margin-left:px; margin-top:14px;"><img alt="" border="0" src="images/2-line1.jpg"></div> <? foreach($EN['menu_dzial1'] as $el) if ($el['lang']) { print '<div align="left" class="h1_text" style="margin-left:px; margin-top:8px">'; print '<img alt="" src="images/arrow2.jpg" hspace="0" vspace="0" border="0" align="left" style="margin-right:8px; margin-top:3px">'; print '<a href="index.php?n='.$el['id'].'" class="h1_text"><strong>'.$el['lang'].'</strong></a></div>'; if ($EN['menu_dzial2'][$el['id']]) foreach($EN['menu_dzial2'][$el['id']] as $el1) { print '<div align="left" class="h1_text" style="margin-left: 12px; margin-top:8px">'; print '<img alt="" src="images/arrow2.jpg" hspace="0" vspace="0" border="0" align="left" style="margin-right:8px; margin-top:3px">'; print '<a href="index.php?n='.$el1['id'].'" class="h1_text"><strong>'.$el1['lang'].'</strong></a></div>'; } } } ?> Z góry dziękuję za jaką kolwiek pomoc. Ten post edytował ALIASpl 4.12.2006, 14:06:49 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 19.08.2025 - 16:18 |