| witam mam dziwny problem ktorego nie umiem opisac moze pokaze shota :/ 
 http://img515.ima...22uzu1.jpg
 
 nie wiem czemu news wchodzi pod panele :/ bardzo prosze o pomoc o to kod thema
 
 
 <?
 
 $body_text = "#767676";
 $body_bg = "#FFFFFF";
 $theme_width = "800px";
 $theme_width_l = "240px";
 $theme_width_r = "0px";
 
 function render_header($header_content) {
 global $theme_width,$settings;
 
 echo"
 <table cellpadding='0' cellspacing='0' width='764px' class='search' align='center'>
 <tr>
 <td width='475px'>
 <a href='".BASEDIR."'/index.php' class='black'>Strona g?ówna</a> |
 ";
 ?>
 
 <A href=# onClick="window.external.AddFavorite('http://-.pl', 'MlodySopot')" class='black'>Startuj z nami</a> |
 <A href=# onclick="this.style.behavior='url(#default#homepage)'; this.setHomePage('http://-.pl');" class='black'>Dodaj do ulubionych</a>
 
 <?
 echo "
 </td>
 <td>
 <form name='searchform' method='post' action='search.php'>
 Szukaj: <input type='text' name='stext' value='' class='textbox' style='width:200px'>
 <input type='submit' class='button' value='GO'>
 </form>
 </td>
 </tr>
 <tr><td align='center' colspan='2' height='3px'></td></tr>
 <tr>
 <td height='75px' valign='bottom' width='764px' class='top' colspan='2'>
 <table>
 <tr>
 ";
 
 
 $sres = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
 while($sdata = dbarray($sres)){
 $res = "<td width='125px' align='center'><a href='".$sdata['link_url']."' class='white'><b>".$sdata['link_name']."</b></a></td>";
 echo $res;
 }
 
 echo"
 </tr></table>
 </td>
 </tr>
 </table>
 <table width='764px' cellpadding='0' cellspacing='0' align='center' class='site' valign='top'>
 <tr><td align='center' valign='top'>
 ";
 }
 
 function render_footer($license=false) {
 global $theme_width,$locale,$settings;
 echo"
 </td></tr></table>
 <table cellpadding='0' cellspacing='0' width='764px' class='footer' align='center'>
 <tr>
 <td class='ftext' width='559px'>
 Serwis Pe?nomocnika Prezydenta Miasta Sopotu ds. Uzale?nie? <br>
 Strony m?odych Sopocian przygotowuje Platforma Medialna Polska
 </td>
 <td class='linkif' align='right' height='49px' width='205px'></td>
 </tr>
 </table>
 
 <table cellpadding='0' cellspacing='0' width='768px' height='23px' class='copy' align='center'>
 <tr>
 <td><a href='' class='white'><b>Link</b></a></td>
 <td align='right'>© 2007 MlodySopot.pl</td>
 
 </tr>
 </table>
 ";
 
 }
 
 
 function render_news($subject, $news, $info) {
 global $locale;
 echo"
 <table cellpadding='1' cellspacing='1' width='520px' class='str'>
 <tr>
 <td class='ns'>$subject</td>
 </tr>
 <tr>
 <td class='nt'>$news</td>
 </tr>
 <tr>
 <td class='ni' align='left'>
 ";
 echo openform("N",$info['news_id']).newsposter($info,"<br>").newsopts($info,"·").closeform("N",$info['news_id']);
 echo"
 </td>
 </tr>
 </table><P></P>";
 }
 
 function render_article($subject, $news, $info) {
 global $locale;
 
 echo"
 <table cellpadding='0' cellspacing='0' width='520px' class='str'>
 <tr>
 <td>$subject</td>
 </tr>
 <tr>
 <td>
 ";
 echo openform("N",$info['article_id']).newsposter($info,"<br>").newsopts($info,"·").closeform("N",$info['article_id']);
 echo"
 </td>
 </tr>
 <tr>
 <td>$news</td>
 </tr>
 </table><P></P>";
 }
 
 function opentable($title) {
 
 echo "
 <table width='492px' height='26px' cellpadding='0' cellspacing='0' align='right' valign='top'>
 <tr>
 <td width='492px' class='tbar'>
 $title
 </td>
 </tr>
 <tr><td width='492px' class='tresc'>
 ";
 }
 
 function closetable() {
 
 echo "
 </td></tr><tr><td height='5px'></td></tr></table>
 ";
 }
 
 function openside($title) {
 echo "
 <table width='240px' height='20px' cellpadding='0' cellspacing='0'>
 <tr>
 <td width='240px' class='menus'>
 $title
 </td>
 </tr>
 <tr><td width='240px' class='menu'>
 ";
 
 
 }
 
 function closeside() {
 
 echo "</td></tr></table><br>";
 }
 
 function opensidex($title,$open="on") {
 
 $boxname = str_replace(" ", "", $title);
 $box_img = $open == "on" ? "off" : "on";
 echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>
 <td class='panel-main'>$title<img src='".THEME."images/panel_$box_img.gif' name='b_$boxname' align='right' alt='' onclick=\"javascript:flipBox('$boxname')\"></td>
 </tr></table>
 <table width='100%' cellpadding='0' cellspacing='0'><tr>
 <td class='side-body'>
 <div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";
 }
 
 function closesidex() {
 
 echo "</div>
 </td>
 </tr>
 </table>\n";
 }
 
 function tablebreak() {
 
 echo "\n";
 }
 ?>
 
 
 bardzo prosze o pomoc
 
 Temat przenosze do innego dzia?u. Prosz? tak?e o zmian? nazwy tematu - Milka
 Edytowane przez Milka dnia 18.07.2007 18:14:08
 |