![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 179 Pomógł: 1 Dołączył: 25.11.2006 Ostrzeżenie: (0%) ![]() ![]() |
Witam, w folderze znajduje się plik index.php oraz folder include, a w nim plik header.php
Strona wygląda tak, wszystko tam opisałem o co mi chodzi. http://x.nigras.info/v4/ w pliku index.php dałem taką komendę <? include("include/header.php"); ?> tekst zawarty w index.php, pojawia się na samym dole, co zrobić, by pokazał się z boku? Proszę o pomoc. Ten post edytował Cysiaczek 19.03.2008, 20:52:05
Powód edycji: zmieniłem temat (cysiaczek)
|
|
|
![]() |
![]()
Post
#2
|
|
![]() Grupa: Zarejestrowani Postów: 441 Pomógł: 71 Dołączył: 3.09.2007 Skąd: wrocław Ostrzeżenie: (0%) ![]() ![]() |
A w którym miejscu strony robisz include tego pliku ?
-------------------- |
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 910 Pomógł: 44 Dołączył: 20.02.2008 Skąd: Łódź Ostrzeżenie: (20%) ![]() ![]() |
daj caly kod indexu to bedzie łatwiej.
|
|
|
![]()
Post
#4
|
|
Grupa: Zarejestrowani Postów: 86 Pomógł: 1 Dołączył: 19.09.2006 Skąd: Wrocław Ostrzeżenie: (0%) ![]() ![]() |
To jest HTML, w którym miejscu includujesz w kodzie w tym się pojawia, nie ma komendy w php, która pozwoli Ci zdecydować o tym gdzie na stronie ma się pojawić includowany plik.
|
|
|
![]()
Post
#5
|
|
Grupa: Zarejestrowani Postów: 910 Pomógł: 44 Dołączył: 20.02.2008 Skąd: Łódź Ostrzeżenie: (20%) ![]() ![]() |
|
|
|
![]()
Post
#6
|
|
Grupa: Zarejestrowani Postów: 179 Pomógł: 1 Dołączył: 25.11.2006 Ostrzeżenie: (0%) ![]() ![]() |
Aktualnie index.php wygląda tak.
Wcześniej wyglądał tak.
|
|
|
![]()
Post
#7
|
|
Grupa: Zarejestrowani Postów: 910 Pomógł: 44 Dołączył: 20.02.2008 Skąd: Łódź Ostrzeżenie: (20%) ![]() ![]() |
i jaki jest rezultat?
|
|
|
![]()
Post
#8
|
|
Grupa: Zarejestrowani Postów: 179 Pomógł: 1 Dołączył: 25.11.2006 Ostrzeżenie: (0%) ![]() ![]() |
Wcześniej był napis na dole strony, teraz jest nad nią :/
|
|
|
![]()
Post
#9
|
|
Grupa: Zarejestrowani Postów: 910 Pomógł: 44 Dołączył: 20.02.2008 Skąd: Łódź Ostrzeżenie: (20%) ![]() ![]() |
Jak masz tabele w HTMLu to masz wiersze i komórki. Robisz sobie taka tabele na potrzeby twojej stronki. Wstawiasz tekst do komórek. I w tym miejscu gdzie chcesz wstawic include to wpisujesz do komurki <? include('include/header.php'); ?>. Ja tak robie na każdej stronie i mi działa.
|
|
|
![]()
Post
#10
|
|
Grupa: Zarejestrowani Postów: 179 Pomógł: 1 Dołączył: 25.11.2006 Ostrzeżenie: (0%) ![]() ![]() |
Plik header.php wygląda tak:
Kod <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <TITLE></TITLE> <meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <LINK HREF="style.css" TYPE="text/css" REL="stylesheet"> <script type="text/JavaScript"> <!-- function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> <BODY onLoad="MM_preloadImages('images/m1_1.gif','images/m2_1.gif','images/m3_1.gif','images/m4_1.gif','images/m5_1.gif')"> <table align="center" style=" border-left:#0F0F0F 1px solid; border-right:#0F0F0F 1px solid; height:100%"> <tr> <td style="width:766px; height:800px"> <table> <tr> <td style="width:766px; height:339px; background:url(images/bg_flash.gif) no-repeat left top "> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24" width="766" height="339"> <param name="movie" value="flash/header_v8.swf?button=1"> <param name="quality" value="high"> <param name="menu" value="false"> <!--[if !IE]> <--> <object data="flash/header_v8.swf?button=1" width="766" height="339" type="application/x-shockwave-flash"> <param name="quality" value="high"> <param name="menu" value="false"> <param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer"> FAIL (the browser should render some flash content, not this). </object> <!--> <![endif]--> </object> </td> </tr> <tr> <td style="width:766px; height:374px"> <table> <tr> <td style="width:280px; height:374px; background:#313333 url(images/px.gif) repeat-x left top"> <div style="margin-left:40px; margin-right:36px; text-align:justify"> <br style="line-height:48px"> <!-- REKLAMA --> <script type="text/javascript"><!-- google_ad_client = "pub-1586112902783329"; /* v4 */ google_ad_slot = "7517986658"; google_ad_width = 160; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <!-- KONIEC --> <br style="line-height:28px"> <br> </div> </td> <td style="width:486px; height:374px"> <table> <tr> <td style="width:40px; height:374px"></td> <td style="width:446px; height:374px"> <br style="line-height:50px"> <br> <br style="line-height:20px"> <table> <tr> <td style="width:22px; height:233px"> <br style="line-height:5px"> <br> <br style="line-height:12px"> <br> </td> <td style="width:387px; height:233px; text-align:justify"> <font color="#FFFF00" size="5">Co zrobić, by tekst, który znajduje się w index.php znalazł się TU?</font> <p> <br> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td style="width:766px; height:87px"> <table> <tr> <td style="width:766px; height:2px; background:url(images/bg_px.gif) no-repeat left top"></td> </tr> <tr> <td style="width:766px; height:85px"> <table> <tr> <td style="width:280px; height:85px; background:#161717"> <div class="footer"> <br style="line-height:16px"> Customer Service:<br> FAX: +1 800 559 6580 <br> E-mail: <a href="#">customers@companyname.com</a><br> </div> </td> <td style="width:486px; height:85px; background:#0E0F0F"> <div class="footer"> <br style="line-height:16px"> <b><a href="index.html">main page</a></b> <span>|</span> <b><a href="index-1.html">company</a></b> <span>|</span> <b><a href="index-2.html">SERVICES</a></b> <span>|</span> <b><a href="index-3.html">support</a></b> <span>|</span> <b><a href="index-4.html">CONTACTS</a></b><br> YourCompany.Com © 2007 | <span><a href="index-5.html"> Privacy Policy</a></span> </div> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td style="width:766px; height:100%"> <table style="height:100%"> <tr> <td style="width:280px; height:100%; background:#161717"></td> <td style="width:486px; height:100%; background:#0E0F0F"></td> </tr> </table> </td> </tr> </table> </BODY> </HTML> a tak index.php, jednak, tekst nadal jest na górze :/ Plik index.php
|
|
|
![]()
Post
#11
|
|
Grupa: Zarejestrowani Postów: 910 Pomógł: 44 Dołączył: 20.02.2008 Skąd: Łódź Ostrzeżenie: (20%) ![]() ![]() |
wiesz co zrob. dodaj do tabeli obramowanie i bedziesz widzial dlaczego.
|
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 19.07.2025 - 17:09 |