Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Header su topais

Parašė gremlinaz· 2008 Geg. 5 12:05:34
#1

Gal kas galite sukoduot theme.php kad butu top siuntiniai ir new siuntiniai tam tikroje vietoje.... Cia header




Reik kad new ir top butu tose lentelese O stai theme.php . Is anksto dekoju...Paciam niekaip neiseina uzkodint
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#6aa311";
$body_bg = "#000000";
$theme_width = "950";
$theme_width_l = "175";
$theme_width_r = "175";

function render_header($header_content) {

global $theme_width;

echo "<table class='forumline' align='center' width='950' cellspacing='0' cellpadding='0'><tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'><tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'><tr><td class='header' width='100%'><table align=center width=950 height=299 background='".THEME."images/header_01.jpg' border=0 cellspacing=0 cellpadding=0></div>
</td>

<script type='text/javascript'>LKT_init();</script></td></tr></table></td></tr></table><table width='100%' cellpadding='2' bgcolor='#F9F9F9' cellspacing='0' border='0'>\n";

}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</td>
</tr>
</table>
<table cellSpacing='0' cellPadding='2' width='100%' border='0' background='".THEME."images/footer.gif' style='border-right: solid #c1d2ec 1px; border-left: solid #c1d2ec 1px;'>
<td width='20%' height='40' class='white' align='left'><b><a href='http://php-fusion.co.uk' target='_blank'></a></b></td>
<td width='40%' class='white' align='center'><b><center>Copyright &copy; 2008</center></b></td><td width='26%' class='white' align='right'><b><a href=''></a></b></td><div align='center'></tr></table></td></tr></table></div>\n";

}

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

echo "<table border='0' style=': 1px solid #000000' cellspacing='1' width='100%' cellpadding='3'>
<tr><td background='".THEME."images/cellpic_news.gif' height='30'><font class='block-title'><a name='news_".$info['news_id']."' id='news_".$info['news_id']."'></a>$subject</font></td></tr>
</table>
<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr><td><table width='100%' cellpadding='0' cellspacing='0'>
<tr><td class='main-body'>$news</td></tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr><td class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," &middot;").newsopts($info,"&middot;").closeform("N",$info['news_id']);
echo "</td></tr>
</table>
</td></tr>
</table>\n";

}

function render_article($subject, $article, $info) {
   
echo "<table border='0' cellspacing='1' width='100%' cellpadding='3'>
<tr><td background='".THEME."images/cellpic_news.gif' height='30'><font class='block-title'>$subject</font></td></tr>
</table>
<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr><td><table width='100%' cellpadding='0' cellspacing='0'>
<tr><td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td></tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr><td class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," &middot;").articleopts($info,"&middot;").closeform("A",$info['article_id']);
echo "</td></tr>
</table>
</td></tr>
</table>\n";

}

function opentable($title) {

echo "<table width='100%' cellpadding='3' cellspacing='1' style='border: 1px solid #c1d2ec'>
<tr><td bgcolor='#ffffff' background='".THEME."images/cellpic1.gif' height='25'><font class='head-title'>$title</font></td></tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr><td class='main-body'>\n";

}

function closetable() {

echo "</td>
</tr>
</table>\n";

}

function openside($title) {
   
echo "<table border='0' style='border: 1px solid #c1d2ec' cellspacing='1' width='100%' cellpadding='3'>
<tr><td height='27' width='100%' background='".THEME."images/cellpic3.gif'><font class='block-title'>$title</font></td></tr>
<tr><td bgcolor='#ffffff' class='side-body' width='100%'>\n";

}

function closeside() {

echo "</td></tr></table>\n";
tablebreak();

}

function opensidex($title,$state="on") {

$boxname = str_replace(" ", "", $title);
echo "<table border='0' style='border: 1px solid #c1d2ec' cellspacing='1' width='100%' cellpadding='3'>
<tr>
<td height='27' width='100%' background='".THEME."images/cellpic3.gif'><font class='block-title'>$title</font></td>
<td height='27' width='120%' background='".THEME."images/cellpic3.gif'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";

}

function closesidex() {

echo "</div>
</td>
</tr>
</table>\n";
tablebreak();

}

function tablebreak() {

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

}
?>



Redagavo gremlinaz· 2008 Geg. 5 12:05:47

Parašė Enzo· 2008 Geg. 5 12:05:36
#2

paveiksliuką į code tagus dėk

Parašė gremlinaz· 2008 Geg. 5 12:05:09
#3

Ok. Ydejau... Padesit kas? :?

Parašė bad_user· 2008 Geg. 5 12:05:15
#4

Už dyka tikrai nedarysiu :)

Parašė gremlinaz· 2008 Geg. 5 12:05:51
#5

Gaila padaryT? Tau cia 5 min darbas :D

Parašė bad_user· 2008 Geg. 5 12:05:18
#6

Žinau bet tingiu. :)

Parašė gremlinaz· 2008 Geg. 5 12:05:56
#7

davai SoNG c| +10

Parašė bad_user· 2008 Geg. 5 12:05:29
#8

Tingiu aš tau karpyti ir pan. Neturėsiu ką veikti padarysi. Nori greičiau mokėk :D

Parašė gremlinaz· 2008 Geg. 5 12:05:25
#9

:( Lauksiu....

Parašė Vilme· 2008 Geg. 5 12:05:12
#10

Tu geriau paprasyk kad kasnors pamokintu kodint ir pats mokesi nereiks kitu prasyt ;)

Parašė gremlinaz· 2008 Geg. 5 12:05:20
#11

Tu geriau paprasyk kad kasnors pamokintu kodint ir pats mokesi nereiks kitu prasyt


Pamokykit kas nors kodint :D

Parašė Vilme· 2008 Geg. 5 12:05:58
#12

Nu aisku uz lt pamokintu,man reik kad kas nors pamokintut kodint,del kainos turetumem susitart ;)

Parašė gremlinaz· 2008 Geg. 5 13:05:39
#13

Neinam offtopic... Kas galit padarykit kaip paprasiau c| Dekoju is anksto.... O del kodinimo, tai reiks kita tema kurt ir ieskot kas pades :D

Parašė Vilme· 2008 Geg. 5 13:05:22
#14

Ok baigiam,kuriu tema del kodinimo :D

Parašė gremlinaz· 2008 Geg. 5 15:05:43
#15

PLz kas nors, ziaurei reik....

Parašė EHF· 2008 Geg. 5 15:05:14
#16

pats pasidaryk ---> https://webdnd.com/readarticle.p...cle_id=100

Parašė Toonis· 2008 Geg. 5 15:05:38
#17

Sumoki - sukuriu. :)

Parašė gremlinaz· 2008 Geg. 5 19:05:02
#18

aš įdėt tai įdėjau, o vat jos patumt jau negaliu..... Padėkit kas.... Vat kas išėjo pažiūrėkit...

Parašė gremlinaz· 2008 Geg. 7 12:05:29
#19

Please kas nors (sorry už flood, foruma atgaivinu)

Parašė Vilme· 2008 Geg. 7 12:05:07
#20

Foruma galima atgaivint ir paprasciau be flood !!!
Tiesiog sena post nukopini ir istrini o paskui parasai nauja ;)

Parašė Enzo· 2008 Geg. 7 12:05:06
#21

Ten kur paddomg right ir padding top derink prie savo headerio, t.y. keisk skaičius ir žiūrėk kur pasislenka


echo"<tr><td height=50 class='nuorodos' align='center' style='padding-right:50px; padding-top:130px;'><br>";




Dėk juos šitaip:

echo"<tr><td height=50 class='nuorodos' align='center' style='padding-right:50px; padding-top:130px;'><br>";
echo"<table width='50%'><tr>";

echo"<td width='40%'>";
 $result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,5");
 if (dbrows($result) != 0) {
  echo "<table width='100%'>";
  while ($data = dbarray($result)) {
   echo "<tr>
    <td class='small'>
     <img src='".THEME."images/bullet.gif'>
     <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 23)."</a>
    </td>
    <td align='right'>".$data['download_count']."</td>
   </tr>";
  }
  echo "</table>";
 } else {
  echo "<div style='text-align:center'>".$locale['004']."</div>\n";
 }

echo "</td><td width='60%' style='padding-left:80px;' >";

$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,5");
   if (dbrows($result) != 0) {
echo "<table  width='100%'>";
      while ($data = dbarray($result)) {
         echo "<tr>
            <td class='small'>
                    <img src='".THEME."images/bullet.gif'>
               <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 23)."</a>
            </td>
            <td align='right'>".$data['download_count']."</td>
         </tr>";
      }
      echo "</table>";
   } else {
      echo "<div style='text-align:center'>".$locale['004']."</div>\n";
   }

echo "</tr>
</table>";

echo "</td></tr>
<tr></tr>
<tr><td height=31></td></tr>
</table>
";