Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Tło w PHP
Forum PHP.pl > Forum > PHP
Twistek
Ema

Mam pytanie jak ustawić obraz jako tło strony w PHP

to jest kod strony:

  1. <? require "header.php";?>
  2.  
  3. <div id="showform">
  4. <div id="wrapper">
  5. <p>
  6. <font color="#CC0000"><b><?=$config[SiteName]?></b></font> nielimitowane rozmiary zdjec ( 200 MB opcjonalnie ) , dostepne rozszerzenia gif,jpg,jpeg,png,bmp i wszystko za darmo
  7. <font color="#CC0000"><b></b></font>!
  8. </p>
  9. <div class="featured"><br />
  10.  
  11. <?
  12. $queryx = "select i.filename as filename, i.tn_filename as tn_filename, i.filepath as filepath, i.added as add_dt, i.ip as ip, i.filesize as filesize, sum(ih.kb) as bandwidth, count( ih.filename ) as ctr from images i left outer join imagehits ih on i.filename = ih.filename where i.prv='0' group by filename order by rand() limit 1";
  13. $resultx = mysql_query($queryx) or die("Query failedx."); while ($line = mysql_fetch_array($resultx)) { ?>
  14. <a href="view.php?filename=<?=$line[filename]?>">
  15. <img src="<?=$line[filepath].$line[tn_filename]?>" alt="<?=$line[filename]?>" title="<?=$line[filename]?>" class="featured" border="0" />
  16. </a>
  17. <?}?>
  18. </div>
  19.  
  20. <div id="right">
  21.  
  22. <? if ($uploads == 0) {
  23.  
  24. echo "<center><b><br><br><br>Dodawanie zostalo wylaczone tymczasowo przez administratora</center></b>";
  25. }
  26.  
  27. else if ($uploads == 1 && !$auth_id) {
  28.  
  29. echo "<center><b><br><br><br>Musisz <a href=\"register.php\" title=\"Register\">zarejestrowac</a> zanim bedziesz mogl przesylac zdjecia</center></b>";
  30. }
  31.  
  32. else { ?>
  33. <p class="title"><input type="radio" id="url1" name="url" value="1" checked="checked" onClick="return uploadfile('url1');" />z komputera&nbsp;&nbsp;
  34. <?if($auth_id>0 && $config[MemberUpload]=="1"){?><input type="radio" id="url2" name="url" value="2" onClick="return uploadfile('url2');" />z linku<br />
  35. <?}if(!$auth_id && $config[GuestUpload]=="1"){?>
  36. <input type="radio" id="url2" name="url" value="2" onClick="return uploadfile('url2');" />z linku<br />
  37. <?}?>
  38. </p><br />
  39. <div id="showfl">
  40. <form name="newupload" id="newupload" method="post" target="formsubmit1" action="inc/uploader.php" enctype="multipart/form-data" onSubmit="return show_loading();">
  41. <input type="hidden" id="countfld" value="" />
  42. <div id="loading" ></div>
  43. <?php /* <div id="loading" name="loading"></div> */ ?>
  44. <iframe name="formsubmit1" width="500" height="100" id="formsubmit1"></iframe>
  45. <div style="display:block;" id="f0"><input type="file" class="input2" size="50" name="thefile0" /><br /></div>
  46. <div style="display:none;" id="f1"><input type="file" class="input2" size="50" name="thefile1" /><br /></div>
  47. <div style="display:none;" id="f2"><input type="file" class="input2" size="50" name="thefile2" /><br /></div>
  48. <div style="display:none;" id="f3"><input type="file" class="input2" size="50" name="thefile3" /><br /></div>
  49. <div style="display:none;" id="f4"><input type="file" class="input2" size="50" name="thefile4" /><br /></div>
  50. <div style="display:none;" id="f5"><input type="file" class="input2" size="50" name="thefile5" /><br /></div>
  51. <div style="display:none;" id="f6"><input type="file" class="input2" size="50" name="thefile6" /><br /></div>
  52. <div style="display:none;" id="f7"><input type="file" class="input2" size="50" name="thefile7" /><br /></div>
  53. <div style="display:none;" id="f8"><input type="file" class="input2" size="50" name="thefile8" /><br /></div>
  54. <div style="display:none;" id="f9"><input type="file" class="input2" size="50" name="thefile9" /><br /></div>
  55. <div style="display:none;" id="f10"><input type="file" class="input2" size="50" name="thefile10" /><br /></div>
  56. <div style="display:none;" id="f11"><input type="file" class="input2" size="50" name="thefile11" /><br /></div>
  57. <div style="display:none;" id="f12"><input type="file" class="input2" size="50" name="thefile12" /><br /></div>
  58. <div style="display:none;" id="f13"><input type="file" class="input2" size="50" name="thefile13" /><br /></div>
  59. <div style="display:none;" id="f14"><input type="file" class="input2" size="50" name="thefile14" /><br /></div>
  60.  
  61. <br />
  62. <p><font color="#CC0000">Maksymalny rozmiar zdjecia</font>: <span class="body"><?= $max_file_size_mb ?> MB</span></p>
  63. <br />
  64. <p><font color="#CC0000">Dozwolone rozszerzenia</font>: <span class="body"><?= $valid_mime_types_display ?></span></p>
  65. <br> <? if ($config[AcceptTerms]=="1"){ ?>
  66. <p><font color="#CC0000"> Akceptuje regulamin*</font>: <span class="body"><input type="checkbox" name="tos" value="agree"> <a href="terms.php" class="toplinks">czytaj</a></span></p>
  67. <br><? } ?>
  68. <p><font color="#CC0000">Prywatny</font>: <span class="body"><input type="checkbox" name="prv" value="1" /> dostep dozdjecia masz tylko Ty i osoby posiadajace bezposrednik link.</span></p>
  69. <br />
  70. <div class="buttons">
  71. <a href="java script:void(0);" onClick="return showfile();"><img src="i/+.jpg" alt="+" class="+" title="Dodaj jeszcze jedno zdjecie" /></a>&nbsp; <input id="submit1" name="submit" value="Upload" type="image" src="i/upload.jpg" title="Wyslij wybrane zdjecia" alt="Wyslij" />
  72. </div>
  73. </form>
  74. </div>
  75. <div id="showurl">
  76. <form name="newupload" id="newupload1" method="post" target="formsubmit" action="inc/uploaderurl.php" enctype="multipart/form-data" onSubmit="return show_loading1();">
  77. <input type="hidden" id="countfldu" value="" />
  78. <?php /* <div id="loading1" name="loading"></div> */ ?>
  79. <div id="loading1"></div>
  80. <iframe name="formsubmit" width="500" height="100" id="formsubmit"></iframe>
  81. <div style="display:block;" id="u0"><b>URL :</b><input type="text" class="input2" size="50" name="thefile0" /><br /></div>
  82. <div style="display:none;" id="u1"><input type="text" class="input2" size="50" name="thefile1" /><br /></div>
  83. <div style="display:none;" id="u2"><input type="text" class="input2" size="50" name="thefile2" /><br /></div>
  84. <div style="display:none;" id="u3"><input type="text" class="input2" size="50" name="thefile3" /><br /></div>
  85. <div style="display:none;" id="u4"><input type="text" class="input2" size="50" name="thefile4" /><br /></div>
  86. <div style="display:none;" id="u5"><input type="text" class="input2" size="50" name="thefile5" /><br /></div>
  87. <div style="display:none;" id="u6"><input type="text" class="input2" size="50" name="thefile6" /><br /></div>
  88. <div style="display:none;" id="u7"><input type="text" class="input2" size="50" name="thefile7" /><br /></div>
  89. <div style="display:none;" id="u8"><input type="text" class="input2" size="50" name="thefile8" /><br /></div>
  90. <div style="display:none;" id="u9"><input type="text" class="input2" size="50" name="thefile9" /><br /></div>
  91. <div style="display:none;" id="u10"><input type="text" class="input2" size="50" name="thefile10" /><br /></div>
  92. <div style="display:none;" id="u11"><input type="text" class="input2" size="50" name="thefile11" /><br /></div>
  93. <div style="display:none;" id="u12"><input type="text" class="input2" size="50" name="thefile12" /><br /></div>
  94. <div style="display:none;" id="u13"><input type="text" class="input2" size="50" name="thefile13" /><br /></div>
  95. <div style="display:none;" id="u14"><input type="text" class="input2" size="50" name="thefile14" /><br /></div>
  96.  
  97. <br />
  98. <p><font color="#CC0000">Maksymalny rozmiar zdjecia</font>: <span class="body"><?= $max_file_size_mb ?> MB</span></p>
  99. <br />
  100. <p><font color="#CC0000">Dozwolone rozszerzenia</font>: <span class="body"><?= $valid_mime_types_display ?></span></p>
  101. <br> <? if ($config[AcceptTerms]=="1"){ ?>
  102. <p><font color="#CC0000">Warunki korzystania</font>: <span class="body"><input type="checkbox" name="tos" value="agree"> akceptuje <a href="terms.php" class="toplinks"> regulamin</a></span></p>
  103. <br><? } ?>
  104. <p><font color="#CC0000">Prywatne</font>: <span class="body"><input type="checkbox" name="prv" value="1" /> </span></p>
  105. <br />
  106. <div class="buttons">
  107. <a href="java script:void(0);" onClick="return showfileu();"><img src="i/+.jpg" alt="+" class="+" /></a>&nbsp; <input id="submit" name="submit" value="Upload" type="image" src="i/upload.jpg" alt="upload" />
  108. </div>
  109. </form>
  110. </div>
  111.  
  112. <?}?>
  113.  
  114. </div>
  115. <p class="float"></p>
  116. </div>
  117.  
  118. <?if (($ads == "1" && !$auth_id) || ($ads == "2") ) { ?> <center><br /><br /><br /> <?=$config[footer]?> </center> <br /><br /> <?}?>
  119.  
  120. </div>
  121. <div id="showoutput">
  122. </div>
  123. <? require "footer.php"; ?>


i moje pytanie brzmi gdzie i co mam wstawić aby obraz z "...i/tlo.jpg "
był tłem strony ? wink.gif
Van Pytel
To jest żart? Bierzesz się za php, a nie znasz się na html?
http://utnij.net/enr
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.