Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [problem]htlm/php-fusion, news nad panelami
Kamils2
post 19.07.2007, 07:53:04
Post #1





Grupa: Zarejestrowani
Postów: 158
Pomógł: 0
Dołączył: 13.09.2006
Skąd: Puławy

Ostrzeżenie: (0%)
-----


witam mam dziwny problem ktorego nie umiem opisac moze pokaze shota :/

http://img515.imageshack.us/img515/8130/beztytu322uzu1.jpg

nie wiem czemu news wchodzi pod panele :/ bardzo prosze o pomoc o to kod thema

  1. <?
  2.  
  3. $body_text = "#767676";
  4. $body_bg = "#FFFFFF";
  5. $theme_width = "800px";
  6. $theme_width_l = "240px";
  7. $theme_width_r = "0px";
  8.  
  9. function render_header($header_content) {
  10. global $theme_width,$settings;
  11.  
  12.  echo"
  13.  <table cellpadding='0' cellspacing='0' width='764px' class='search' align='center'>
  14.  <tr>
  15.  <td width='475px'>
  16.  <a href='".BASEDIR."'/index.php' class='black'>Strona główna</a> |
  17.  ";
  18.  ?>
  19.  
  20.  <A href=# onClick="window.external.AddFavorite('http://-.pl', 'MlodySopot')" class='black'>Startuj z nami</a> |
  21.  <A href=# onclick="this.style.behavior='url(#default#homepage)'; this.setHomePage('http://-.pl');" class='black'>Dodaj do ulubionych</a>
  22.  
  23.  <?
  24.  echo "
  25.  </td>
  26.  <td>
  27.  <form name='searchform' method='post' action='search.php'>
  28.  Szukaj: <input type='text' name='stext' value='' class='textbox' style='width:200px'>
  29.  <input type='submit' class='button' value='GO'>
  30.  </form>
  31.  </td>
  32.  </tr>
  33.  <tr><td align='center' colspan='2' height='3px'></td></tr>
  34.  <tr>
  35. <td height='75px' valign='bottom' width='764px' class='top' colspan='2'>
  36. <table>
  37. <tr>
  38. ";
  39.  
  40.  
  41. $sres = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
  42. while($sdata = dbarray($sres)){
  43. $res = "<td width='125px' align='center'><a href='".$sdata['link_url']."' class='white'><b>".$sdata['link_name']."</b></a></td>";
  44. echo $res;
  45. }
  46.  
  47.  echo"
  48.  </tr></table>
  49. </td>
  50. </tr>
  51. </table>
  52.  <table width='764px' cellpadding='0' cellspacing='0' align='center' class='site' valign='top'>
  53.  <tr><td align='center' valign='top'>
  54.  ";
  55. }
  56.  
  57. function render_footer($license=false) {
  58. global $theme_width,$locale,$settings;
  59. </td></tr></table>
  60.  <table cellpadding='0' cellspacing='0' width='764px' class='footer' align='center'>
  61.  <tr>
  62.  <td class='ftext' width='559px'>
  63.  Serwis Pełnomocnika Prezydenta Miasta Sopotu ds. Uzależnień <br>
  64.  Strony młodych Sopocian przygotowuje Platforma Medialna Polska
  65.  </td>
  66.  <td class='linkif' align='right' height='49px' width='205px'></td>
  67.  </tr>
  68.  </table>
  69.  
  70.  <table cellpadding='0' cellspacing='0' width='768px' height='23px' class='copy' align='center'>
  71.  <tr>
  72.  <td><a href='' class='white'><b>Link</b></a></td>
  73.  <td align='right'>Š 2007 MlodySopot.pl</td>
  74.  
  75.  </tr>
  76.  </table>
  77.  ";
  78.  
  79. }
  80.  
  81.  
  82. function render_news($subject, $news, $info) {
  83. global $locale;
  84. <table cellpadding='1' cellspacing='1' width='520px' class='str'>
  85. <tr>
  86. <td class='ns'>$subject</td>
  87. </tr>
  88. <tr>
  89. <td class='nt'>$news</td>
  90. </tr>
  91. <tr>
  92. <td class='ni' align='left'>
  93. ";
  94. echo openform("N",$info['news_id']).newsposter($info,"<br>").newsopts($info,"ˇ").closeform("N",$info['news_id']);
  95. </td>
  96. </tr>
  97. </table><P></P>";
  98. }
  99.  
  100. function render_article($subject, $news, $info) {
  101. global $locale;
  102.  
  103. <table cellpadding='0' cellspacing='0' width='520px' class='str'>
  104. <tr>
  105. <td>$subject</td>
  106. </tr>
  107. <tr>
  108. <td>
  109. ";
  110. echo openform("N",$info['article_id']).newsposter($info,"<br>").newsopts($info,"ˇ").closeform("N",$info['article_id']);
  111. </td>
  112. </tr>
  113. <tr>
  114. <td>$news</td>
  115. </tr>
  116. </table><P></P>";
  117. }
  118.  
  119. function opentable($title) {
  120.  
  121.  echo "
  122.  <table width='492px' height='26px' cellpadding='0' cellspacing='0' align='right' valign='top'>
  123.  <tr>
  124.  <td width='492px' class='tbar'>
  125.  $title
  126.  </td>
  127.  </tr>
  128.  <tr><td width='492px' class='tresc'>
  129.  ";
  130. }
  131.  
  132. function closetable() {
  133.  
  134. echo "
  135. </td></tr><tr><td height='5px'></td></tr></table>
  136. ";
  137. }
  138.  
  139. function openside($title) {
  140.  echo "
  141.  <table width='240px' height='20px' cellpadding='0' cellspacing='0'>
  142.  <tr>
  143.  <td width='240px' class='menus'>
  144.  $title
  145.  </td>
  146.  </tr>
  147.  <tr><td width='240px' class='menu'>
  148.  ";
  149.  
  150.  
  151. }
  152.  
  153. function closeside() {
  154.  
  155. echo "</td></tr></table><br>";
  156. }
  157.  
  158. function opensidex($title,$open="on") {
  159.  
  160. $boxname = str_replace(" ", "", $title);
  161. $box_img = $open == "on" ? "off" : "on";
  162. echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>
  163. <td class='panel-main'>$title<img src='".THEME."images/panel_$box_img.gif' name='b_$boxname' align='right' alt='' onclick="java script:flipBox('$boxname')"></td>
  164. </tr></table>
  165. <table width='100%' cellpadding='0' cellspacing='0'><tr>
  166. <td class='side-body'>
  167. <div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">n";
  168. }
  169.  
  170. function closesidex() {
  171.  
  172. echo "</div>
  173. </td>
  174. </tr>
  175. </table>n";
  176. }
  177.  
  178. function tablebreak() {
  179.  
  180. echo "n";
  181. }
  182. ?>


bardzo prosze o pomoc
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 18.07.2025 - 16:15