Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: kod

Parašė sasunokas· 2009 Rugp. 14 21:08:02
#1

Sveiki kas gali padet su kodavimu man riekia kad paspaudus ant paveiksliuko header_01.jpg atidaritu news.php

<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#444444";
$body_bg = "#ffffff";
$theme_width = "767";
$theme_width_l = "210";
$theme_width_r = "210";

function render_header($header_content) {

global $theme_width;

echo "<table colspan='3' align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table width='755' height='279' border='0' cellpadding='0' cellspacing='0'>
   <tr>
      <td colspan='4'>
         <img src='".THEME."images/header_01.jpg' width='755' height='9' alt=''></td>
   </tr>
   <tr>
      <td colspan='3'>
         <img src='".THEME."images/header_02.jpg' width='513' height='72' alt=''></td>
      <td>
         <img src='".THEME."images/header_03.jpg' width='242' height='72' alt=''></td>
   </tr>
   <tr>
      <td rowspan='7'>
         <img src='".THEME."images/header_04.jpg' width='50' height='197' alt=''></td>
      <td>
         <img src='".THEME."images/header_05.jpg' width='186' height='36' alt=''></td>
      <td colspan='2' rowspan='7'>
         <img src='".THEME."images/header_06.jpg' width='519' height='197' alt=''></td>
   </tr>
   <tr>
      <td>
         <img src='".THEME."images/header_07.jpg' width='186' height='25' alt=''></td>
   </tr>
   <tr>
      <td>
         <img src='".THEME."images/header_08.jpg' width='186' height='28' alt=''></td>
   </tr>
   <tr>
      <td>
         <img src='".THEME."images/header_09.jpg' width='186' height='27' alt=''></td>
   </tr>
   <tr>
      <td>
         <img src='".THEME."images/header_10.jpg' width='186' height='27' alt=''></td>
   </tr>
   <tr>
      <td>
         <img src='".THEME."images/header_11.jpg' width='186' height='28' alt=''></td>
   </tr>
   <tr>
      <td>
         <img src='".THEME."images/header_12.jpg' width='186' height='26' alt=''></td>
   </tr>
   <tr>
      <td>
         <img src='".THEME."images/spacer.gif' width='50' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='186' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='277' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='242' height='1' alt=''></td>
   </tr>
</table>\n";


tablebreak();

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";

}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
tablebreak();
echo "<table colspan='3' cellpadding='0' cellspacing='0' width='100%'>
<tr><td><img src='".THEME."images/footer.gif' alt='' width='764' height='8'></td></tr>
<tr><td class='footer' width='100%' align='center'><br><a href='".BASEDIR."index.php' class='side'>Pradinis</a>  &nbsp;|&nbsp;  <a href='".BASEDIR."downloads.php' class='side'>Muzika</a>  &nbsp;|&nbsp;  <a href='".BASEDIR."forum/' class='side'>Forumas</a>  &nbsp;|&nbsp;  <a href='".BASEDIR."about.php' class='side'>Apie mus</a>  &nbsp;|  &nbsp;<a href='".BASEDIR."contact.php' class='side'>Kontaktai</a>  &nbsp;|  &nbsp;<a href='".BASEDIR."friends.php' class='side'>Draugai</a>  &nbsp;|  &nbsp;<a href='".BASEDIR."advertisiment.php' class='side'>Reklama</a><br><br>
Dizainas: <a href='skype:mantiz_14?chat'>frix</a> | Sistema: <a href='http://php-fusion.co.uk'>PHP-Fusion</a><br></td></tr>
</table>
</td>
</tr>
</table>\n";

}

function render_news($subject, $news, $info) {

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><img src='".THEME."images/table_01.png'></td>
<td class='capmain' height='3' align='left' valign='middle' width='100%'>$subject</td>
<td><img src='".THEME."images/table_03.png' ></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td class='main-body'>
$news
</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td align='right' class='news-footer'>\n";
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."news.php?readmore=".$info['news_id']."'>Skaityti daugiau</a>";
echo "</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr><td><img src='".THEME."images/table_06.png'></td><td background='".THEME."images/table_07.png' width='100%'></td><td><img src='".THEME."images/table_08.png'></td></tr>
</table>\n";

}

function render_article($subject, $article, $info) {
   
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td><img src='".THEME."images/table_01.png'></td>
<td class='capmain' height='3' align='left' valign='middle' width='100%'>$subject</td>
<td><img src='".THEME."images/table_03.png' ></td>
</tr>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td width='100%' align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info,"<br>").articleopts($info,"&middot;").closeform("A",$info['article_id']);
echo "</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr><td><img src='".THEME."images/table_06.png'></td><td background='".THEME."images/table_07.png' width='100%'></td><td><img src='".THEME."images/table_08.png'></td></tr>
</table>
</td>
</tr>
</table>\n";

}

function opentable($title) {

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><img src='".THEME."images/table_01.png'></td>
<td class='capmain' height='3' align='left' valign='middle' width='100%'>$title</td>
<td><img src='".THEME."images/table_03.png' ></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td class='main-body'>\n";

}

function closetable() {

echo "</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr>
<td><img src='".THEME."images/table_06.png'></td>
<td background='".THEME."images/table_07.png' width='100%'></td>
<td><img src='".THEME."images/table_08.png'></td>
</tr>
</table>\n";

}

function openside($title) {
   
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><img src='".THEME."images/table_1.png'></td>
<td class='scapmain' height='37' align='left' valign='middle' width='100%'>$title</td>
<td><img src='".THEME."images/table_3.png' ></td>
</tr>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td class='side-body'>
\n";

}

function closeside() {

echo "
</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr>
<td><img src='".THEME."images/table_06.png'></td>
<td background='".THEME."images/table_07.png' width='100%'></td>
<td><img src='".THEME."images/table_08.png'></td>
</tr>
</table>\n";

}


function tablebreak() {

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr><td height='8'></td></tr>
</table>\n";

}
?>



Redagavo sasunokas· 2009 Rugp. 14 21:08:24