Navigacija

Vartotojų tinkle

Prisijungusių svečių: 138
Prisijungusių narių: 0
Prisijungusių narių nėra

Registruoti nariai: 25,964
Naujausias narys: laleceylan50

Naujausi straipsniai

Paskutiniai nariai

Bruksnys 6 dienos
laleceylan50 2 savaitės
minimukas 2 savaitės
N-20 5 savaitės
Reikalas 5 savaitės
Rytis 6 savaitės
DjArtas 7 savaitės
WolfHammer 7 savaitės
Nostesi17 savaitės
Wisedocs18 savaitės
asdasdddz21 savaitės
Paslapties K...22 savaitės
Audrius_1725 savaitės
Simbijanas37 savaitės
Karinacraft38 savaitės
Žmogus41 savaitės
Darexs48 savaitės
Nepas48 savaitės
keistuole50 savaitės
Gizmis52 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 216.73.216.14
Naujienų: 529
Straipsnių: 235
Temų: 52,590
Postų: 522,550
Postų pask. parą: 0
Shout'ų pask. parą: 0
P.S.C. pask. parą: 0
Nuorodų kataloge: 13

Lankomumo Statistika

Peržiūrų šiandien: 22

Iš viso peržiūrų: 22948724

Prisijungti

REGISTRUOTIS
Nario vardas

Slaptažodis



Pamiršai slaptažodį?
Paprašyk naujo

Aktyvuoti save

Šaukykla

Jei norite rašyti žinutes, turite prisijungti.

minimukas
2026 Vas. 21 08:02:25
oi oi akinanti šypsen yra dar cia gyvu? akinanti šypsen

N-20
2026 Vas. 6 21:02:05
O mes dar gyvi šypsosi)

WolfHammer
2026 Sau. 25 01:01:35
drovus

Žmogus
2025 Geg. 31 10:05:18
Kas geresnio? šypsosi

Nepas
2025 Bal. 9 17:04:13
drovus

Šaukyklos archyvas

Apklausa

Ar esate patenkinti lietuviško vertimo kokybe?

Taip!

Taip, bet yra ką taisyti (parašysiu komentaruose)

Ne

Norėdamas balsuoti turite prisijungti.
Archyvas
Reklama 400x60
Header perkodavimas
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Bendri PHP-F klausimai

Autorius: Mandello Peržiūrų: 1461      Spausdinti temą
2010 Bir. 12 23:06:03          1 žinutė iš 3
Spausdinti pranešimą
Gal kas zinote kaip perkoduoti header kad jis nebutu sukrapytas?

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

// theme settings
$body_text = "#4a4a4a";
$body_bg = "#232323";
$theme_width = "900";
$theme_width_l = "192";
$theme_width_r = "192";

function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink,$db_prefix;

echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%' align='center'>
<tr>
<td>
<table width='900' height='348' border='0' cellpadding='0' cellspacing='0'align='center'>
   <tr>
      <td rowspan='3' align='center'>
         <img src='".THEME."images/header/0_01.gif' width='582' height='281' alt=''></td>
      <td colspan='2' align='left'>
         <img src='".THEME."images/header/0_02.gif' width='318' height='30' alt=''></td>
   </tr>
   <tr>
      <td colspan='2' class='vartotojo_zona' align='left'>";
      include_once"".THEME."vartotojo_zona.php";
      echo "</td>
   </tr>
   <tr>
      <td colspan='2' align='left'>
         <img src='".THEME."images/header/0_04.gif' width='318' height='76' alt='' align='center'></td>
   </tr>
   <tr>
      <td colspan='2' style='height: 50px; width: 650px;' align='center'>";
         include_once"".THEME."nuorodos.php";
         echo "</td>
      <td class='data' align='left'><span style='padding-left:10px;'>".ucwords(showdate($settings['subheaderdate'], time()))."</span></td>
   </tr>
   <tr>
      <td colspan='3' align='center'>\n";
echo "         <img src='".THEME."images/header/0_07.gif' width='900' height='16' alt=''>
      </td>
   </tr>";

echo "<br><center><img src='http://www.part.lt/img/d92647a3a21fd9d751b07df92ac146ab854.jpg' width='750' height='100'></center><br>

   <tr>
      <td align='center'>
         <img src='".THEME."images/header/spacer.gif' width='582' height='0' alt=''></td>
      <td align='center'>
         <img src='".THEME."images/header/spacer.gif' width='68' height='0' alt=''></td>
      <td align='left'>
         <img src='".THEME."images/header/spacer.gif' width='250' height='0' alt=''></td>
   </tr>
</table>




IMG:




Jai kas galit tai as noriu si header ideti nesukarpyta.

2010 Bir. 12 23:06:29          2 žinutė iš 3
Spausdinti pranešimą
nu tai padaryk

echo "<img src='images/header.jpg' border='0'>";

nolife.lt / c-s.lt
2010 Bir. 12 23:06:04          3 žinutė iš 3
Spausdinti pranešimą
Kurioj vietoj? Nes man error ismeta. Duosiu via skoda index.php ir atsiusk pilna jai gali.
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#4a4a4a";
$body_bg = "#232323";
$theme_width = "900";
$theme_width_l = "192";
$theme_width_r = "192";

function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink,$db_prefix;

echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%' align='center'>
<tr>
<td>
<table width='900' height='348' border='0' cellpadding='0' cellspacing='0'align='center'>
   <tr>
      <td rowspan='3' align='center'>
         <img src='".THEME."images/header/0_01.gif' width='582' height='281' alt=''></td>
      <td colspan='2' align='left'>
         <img src='".THEME."images/header/0_02.gif' width='318' height='30' alt=''></td>
   </tr>
   <tr>
      <td colspan='2' class='vartotojo_zona' align='left'>";
      include_once"".THEME."vartotojo_zona.php";
      echo "</td>
   </tr>
   <tr>
      <td colspan='2' align='left'>
         <img src='".THEME."images/header/0_04.gif' width='318' height='76' alt='' align='center'></td>
   </tr>
   <tr>
      <td colspan='2' style='height: 50px; width: 650px;' align='center'>";
         include_once"".THEME."nuorodos.php";
         echo "</td>
      <td class='data' align='left'><span style='padding-left:10px;'>".ucwords(showdate($settings['subheaderdate'], time()))."</span></td>
   </tr>
   <tr>
      <td colspan='3' align='center'>\n";
echo "         <img src='".THEME."images/header/0_07.gif' width='900' height='16' alt=''>
      </td>
   </tr>";

echo "<br><center><img src='http://www.part.lt/img/d92647a3a21fd9d751b07df92ac146ab854.jpg' width='750' height='100'></center><br>

   <tr>
      <td align='center'>
         <img src='".THEME."images/header/spacer.gif' width='582' height='0' alt=''></td>
      <td align='center'>
         <img src='".THEME."images/header/spacer.gif' width='68' height='0' alt=''></td>
      <td align='left'>
         <img src='".THEME."images/header/spacer.gif' width='250' height='0' alt=''></td>
   </tr>
</table>
</td>
</tr>
</table>\n";


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";
echo "<table align='center' cellpadding='0' cellspacing='0' width='900' class='footer'>
<tr>
<td align='left' style='padding-left: 70px; padding-bottom: 50px;'>Sprendimas <a href='http://www.e-studija.lt' target='_blank' style='color:#d96400; font-weight: bold;'>E-Studija</a></td>
<td align='center' style='padding-bottom:40px; padding-right: 50px;' width='0'>\n";
include THEME."skaitliukas.php";
echo "</td>
<td align='right' style='padding-right: 70px; padding-bottom: 50px;'>TVS: <a href='http://www.php-fusion.co.uk' target='_blank' style='color:#d96400; font-weight: bold;'>PHP-Fusion</a></td>
</tr>
</table>
</td>
</tr>
</table>\n";


















































}

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

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='center-top-left'><img src='".THEME."images/blank.gif' width='18' height='41' alt='' style='display:block'></td>
<td class='center-top-center1'><img src='".THEME."images/blank.gif' width='1' height='41' alt='' style='display:block'></td>
<td width='100%' class='center-top-center2'>$subject</td>
<td class='center-top-center1'><img src='".THEME."images/blank.gif' width='1' height='41' alt='' style='display:block'></td>
<td class='center-top-right'><img src='".THEME."images/blank.gif' width='17' height='41' alt='' style='display:block'></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='center-border-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='main-body'><center>";
echo openform("N",$info['news_id']).newsposter($info," &middot;").newsopts($info,"&middot;").closeform("N",$info['news_id']);
echo"<center></td>
<td class='center-border-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='center-border-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='main-body'>$news</td>
<td class='center-border-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='center-bottom-left'><img src='".THEME."images/blank.gif' width='18' height='13' alt='' style='display:block'></td>
<td class='center-bottom-center'><img src='".THEME."images/blank.gif' width='1' height='13' alt='' style='display:block'></td>
<td class='center-bottom-right'><img src='".THEME."images/blank.gif' width='17' height='13' alt='' style='display:block'></td>
</tr>
</table>";

}

function render_article($subject, $article, $info) {
   
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='center-top-left'><img src='".THEME."images/blank.gif' width='18' height='41' alt='' style='display:block'></td>
<td class='center-top-center1'><img src='".THEME."images/blank.gif' width='1' height='41' alt='' style='display:block'></td>
<td width='100%' class='center-top-center2'>$subject</td>
<td class='center-top-center1'><img src='".THEME."images/blank.gif' width='1' height='41' alt='' style='display:block'></td>
<td class='center-top-right'><img src='".THEME."images/blank.gif' width='17' height='41' alt='' style='display:block'></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='center-border-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>
<td class='center-border-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='center-border-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td align='center' class='main-body'>\n";
echo openform("A",$info['article_id']).articleposter($info," &middot;").articleopts($info,"&middot;").closeform("A",$info['article_id']);
echo "</td>
<td class='center-border-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='center-bottom-left'><img src='".THEME."images/blank.gif' width='18' height='13' alt='' style='display:block'></td>
<td class='center-bottom-center'><img src='".THEME."images/blank.gif' width='1' height='13' alt='' style='display:block'></td>
<td class='center-bottom-right'><img src='".THEME."images/blank.gif' width='17' height='13' alt='' style='display:block'></td>
</tr>
</table>
";

}

function opentable($title) {

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='center-top-left'><img src='".THEME."images/blank.gif' width='18' height='41' alt='' style='display:block'></td>
<td class='center-top-center1'><img src='".THEME."images/blank.gif' width='1' height='41' alt='' style='display:block'></td>
<td width='100%' class='center-top-center2'>$title</td>
<td class='center-top-center1'><img src='".THEME."images/blank.gif' width='1' height='41' alt='' style='display:block'></td>
<td class='center-top-right'><img src='".THEME."images/blank.gif' width='17' height='41' alt='' style='display:block'></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='center-border-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='main-body'>\n";

}

function closetable() {

echo "</td>
<td class='center-border-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='center-bottom-left'><img src='".THEME."images/blank.gif' width='18' height='13' alt='' style='display:block'></td>
<td class='center-bottom-center'><img src='".THEME."images/blank.gif' width='1' height='13' alt='' style='display:block'></td>
<td class='center-bottom-right'><img src='".THEME."images/blank.gif' width='17' height='13' alt='' style='display:block'></td>
</tr>
</table>";

}

function openside($title) {
   
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closeside() {

echo "</td>
</tr>
<tr><td><img src='".THEME."images/panel_foot.gif' alt='panele'></td></tr>
</table>\n";
tablebreak();

}

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

$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".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";

}
?>




Peršokti į forumą: