QxetaZ
VIP narys
Pulkininkas
Pranešimai: 452
Įstojęs: 2009 Vas. 23 21:02:25
|
EDIT :
Naujas klausimas :
Kaip padaryti, kad nebūtu šitos linijos :
Išanksto dėkoju.
Prašyčiau be Offtopic!
P.S Theme.php :
function render_header($header_content) {
global $theme_width,$userdata,$settings,$locale,$aidlink,$db_prefix;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table width='809' height='309' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='12'>
<img src='".THEME."images/headeris_01.png' width='809' height='80' alt=''></td>
</tr>
<tr>
<td colspan='3' rowspan='2'>
<img src='".THEME."images/headeris_02.png' width='127' height='170' alt=''></td>
<td colspan='3'>";
echo"<table width='200' height='138' style='background-image:url(".THEME."images/headeris_03.png);background-repeat:no-repeat; color:#FFFFFF; Font-family : ; Tahoma font-size : 9px; padding-right: 25px;'>";
if (iMEMBER)
{
echo"<td height='50' style='color:#FFFFFF; Font-family : Arial; font-size : 8px; padding-left: 10px;'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'>Mano profilis</a>".(iADMIN && $userdata['user_rights'] != "" ? " : <a href='".ADMIN."index.php$aidlink'>Administracija</a>" : "")."<br>
<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."edit_profile.php'>Redaguoti profilį</a><br>
<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."messages.php'>Asmeninės žinutės</a><br>
<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."setuser.php?logout=yes'>Atsijungti</a></td>";
echo"<td>";
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
if ($msg_count)
echo"<a style='font-size : 10px;' href='".BASEDIR."messages.php' class='side2'>".sprintf('Gavai žinutę')."</a></td>";
}
else
{
echo "<form name='login' method='post' action='".FUSION_REQUEST."'>
<td width='30'></td>
<td width='100'>
<input type='text' name='user_name' class='prisijungimo-textboxas' value='Vardas' onBlur=\"if(this.value=='') this.value='Vardas';\" onFocus=\"if(this.value=='Vardas') this.value='';\" >
<input type='password' name='user_pass' class='prisijungimo-textboxas' value='Hashas' onBlur=\"if(this.value=='') this.value='Hashas';\" onFocus=\"if(this.value=='Hashas') this.value='';\" >
<input type='submit' name='login' value='' class='prisijugnimo-sumbitas' border='0'>
</td>
</form>";
}
echo"</table></td>
<td colspan='6'>
<img src='".THEME."images/headeris_04.png' width='482' height='138' alt=''></td>
</tr>
<tr>
<td colspan='9'>
<img src='".THEME."images/headeris_05.png' width='682' height='32'' alt=''></td>
</tr>
<tr>
<td rowspan='2'>
<img src='".THEME."images/headeris_06.png' width='18' height='58' alt=''></td>
<td>
<img src='".THEME."images/headeris_07.png' width='97' height='44' alt=''></td>
<td colspan='2'>
<img src='".THEME."images/headeris_08.png' width='85' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_09.png' width='102' height='44' alt=''></td>
<td colspan='2'>
<img src='".THEME."images/headeris_10.png' width='77' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_11.png' width='80' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_12.png' width='85' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_13.png' width='96' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_14.png' width='151' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_15.png' width='18' height='44' alt=''></td>
</tr>
<tr>
<td colspan='11'>
<img src='".THEME."images/headeris_16.png' width='791' height='14' alt=''></td>
</tr>
<tr>
<td>
<img src='".THEME."images/spacer.gif' width='18' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='97' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='12' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='73' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='102' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='25' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='52' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='80' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='85' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='96' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='151' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='18' height='1' alt=''></td>
</tr>
</tr>
</table>";
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 cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' class='footer'>".stripslashes($settings['footer'])."<br>\n";
if (!$license) { echo showcopyright()."<br><br>\n"; } echo showcounter()."<br><br>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='559'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td width='559' class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," ·").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
</tr>
<td class='center-down'>
</td>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='543'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td width='559'class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
<td class='center-down'>
</td>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='193'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
<td class='side-down'>
</td>
</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";
}
Redagavo QxetaZ 2009 Lie. 13 00:07:49 |
FanatiC
Narys
Ekspertas
Pranešimai: 3296
Įstojęs: 2008 Gru. 11 20:12:05
|
paprasciausio <br> neeina?
Www.Degradacija.Lt - Naujas požiūris į demotyvaciją |
QxetaZ
VIP narys
Pulkininkas
Pranešimai: 452
Įstojęs: 2009 Vas. 23 21:02:25
|
Nepadeda <br> bandžiau &nspb irgi .
|
Beta-1
Narys
Spalvotas
Pranešimai: 44
Įstojęs: 2009 Lie. 8 19:07:36
|
padding
http://www.speedtest.net/result/... |
Pakartoti slaptažodį
Moderatorius
Viršesnis už Dievą
Pranešimai: 5188
Įstojęs: 2008 Rugp. 6 22:08:39
|
<table width='202' border='0' cellspacing='0' cellpadding='0' align='left'>
<form name='loginform' method='post' action='".FUSION_SELF."'>
<tr>
<td align='right' style='color:#fff;' >Vardas: </td>
<td> <input type='text' name='user_name' class='Prisijungimas' style='width:100px;border-bottom : 1px solid #999999;color : #fff;'><br></td>,br>
</tr>
<tr>
<td align='right' style='color:#fff;' >Slaptažodis: </td>
<td> <input type='password' name='user_pass' class='prisijungimas' style='width:100px;border-bottom : 1px solid #999999;color : #fff;'><br></td><br>
</tr>
<tr>
<td align='right' style='color:#fff;' ><input type='checkbox' name='remember_me' value='y'> Prisiminti</td>
<td style='padding-left:25px;'> <input type='submit' name='login' value='Jungtis' class='button'></td>
</tr>
</form>";
|
QxetaZ
VIP narys
Pulkininkas
Pranešimai: 452
Įstojęs: 2009 Vas. 23 21:02:25
|
Beta-1 parašė:
padding
Jei gali, įterpk kur reikia, nelabai žinau kur
|
Tomcis
Narys
Generolas
Pranešimai: 1143
Įstojęs: 2008 Spa. 9 19:10:04
|
Prie style'o pridėk margin:1px; ir sio.
|
QxetaZ
VIP narys
Pulkininkas
Pranešimai: 452
Įstojęs: 2009 Vas. 23 21:02:25
|
iFack parašė:
Prie style'o pridėk margin:1px; ir sio.
Dėkui, įvertinsiu duosiu +10
|
QxetaZ
VIP narys
Pulkininkas
Pranešimai: 452
Įstojęs: 2009 Vas. 23 21:02:25
|
Kaip padaryti, kad nebūtu šitos linijos :
Išanksto dėkoju.
Redagavo QxetaZ 2009 Lie. 12 23:07:50 |
_Tomas
VIP narys
Terminatorius
Pranešimai: 1319
Įstojęs: 2007 Rugp. 26 20:08:12
|
Čia theme.php reikia redaguoti
|
QxetaZ
VIP narys
Pulkininkas
Pranešimai: 452
Įstojęs: 2009 Vas. 23 21:02:25
|
function render_header($header_content) {
global $theme_width,$userdata,$settings,$locale,$aidlink,$db_prefix;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table width='809' height='309' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='12'>
<img src='".THEME."images/headeris_01.png' width='809' height='80' alt=''></td>
</tr>
<tr>
<td colspan='3' rowspan='2'>
<img src='".THEME."images/headeris_02.png' width='127' height='170' alt=''></td>
<td colspan='3'>";
echo"<table width='200' height='138' style='background-image:url(".THEME."images/headeris_03.png);background-repeat:no-repeat; color:#FFFFFF; Font-family : ; Tahoma font-size : 9px; padding-right: 25px;'>";
if (iMEMBER)
{
echo"<td height='50' style='color:#FFFFFF; Font-family : Arial; font-size : 8px; padding-left: 10px;'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'>Mano profilis</a>".(iADMIN && $userdata['user_rights'] != "" ? " : <a href='".ADMIN."index.php$aidlink'>Administracija</a>" : "")."<br>
<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."edit_profile.php'>Redaguoti profilį</a><br>
<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."messages.php'>Asmeninės žinutės</a><br>
<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."setuser.php?logout=yes'>Atsijungti</a></td>";
echo"<td>";
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
if ($msg_count)
echo"<a style='font-size : 10px;' href='".BASEDIR."messages.php' class='side2'>".sprintf('Gavai žinutę')."</a></td>";
}
else
{
echo "<form name='login' method='post' action='".FUSION_REQUEST."'>
<td width='30'></td>
<td width='100'>
<input type='text' name='user_name' class='prisijungimo-textboxas' value='Vardas' onBlur=\"if(this.value=='') this.value='Vardas';\" onFocus=\"if(this.value=='Vardas') this.value='';\" >
<input type='password' name='user_pass' class='prisijungimo-textboxas' value='Hashas' onBlur=\"if(this.value=='') this.value='Hashas';\" onFocus=\"if(this.value=='Hashas') this.value='';\" >
<input type='submit' name='login' value='' class='prisijugnimo-sumbitas' border='0'>
</td>
</form>";
}
echo"</table></td>
<td colspan='6'>
<img src='".THEME."images/headeris_04.png' width='482' height='138' alt=''></td>
</tr>
<tr>
<td colspan='9'>
<img src='".THEME."images/headeris_05.png' width='682' height='32'' alt=''></td>
</tr>
<tr>
<td rowspan='2'>
<img src='".THEME."images/headeris_06.png' width='18' height='58' alt=''></td>
<td>
<img src='".THEME."images/headeris_07.png' width='97' height='44' alt=''></td>
<td colspan='2'>
<img src='".THEME."images/headeris_08.png' width='85' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_09.png' width='102' height='44' alt=''></td>
<td colspan='2'>
<img src='".THEME."images/headeris_10.png' width='77' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_11.png' width='80' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_12.png' width='85' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_13.png' width='96' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_14.png' width='151' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_15.png' width='18' height='44' alt=''></td>
</tr>
<tr>
<td colspan='11'>
<img src='".THEME."images/headeris_16.png' width='791' height='14' alt=''></td>
</tr>
<tr>
<td>
<img src='".THEME."images/spacer.gif' width='18' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='97' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='12' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='73' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='102' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='25' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='52' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='80' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='85' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='96' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='151' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='18' height='1' alt=''></td>
</tr>
</tr>
</table>";
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 cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' class='footer'>".stripslashes($settings['footer'])."<br>\n";
if (!$license) { echo showcopyright()."<br><br>\n"; } echo showcounter()."<br><br>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='559'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td width='559' class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," ·").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
</tr>
<td class='center-down'>
</td>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='543'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td width='559'class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
<td class='center-down'>
</td>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='193'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
<td class='side-down'>
</td>
</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";
}
Va.
Redagavo QxetaZ 2009 Lie. 12 23:07:34 |
_Tomas
VIP narys
Terminatorius
Pranešimai: 1319
Įstojęs: 2007 Rugp. 26 20:08:12
|
Nematau tos vietos kur turi būti tą navigacija kur (Pagrindinis ir t.t.)
|
QxetaZ
VIP narys
Pulkininkas
Pranešimai: 452
Įstojęs: 2009 Vas. 23 21:02:25
|
"function render header" Iš images sudarytas mano sub-headeris
|
Langas
Narys
Kapitonas
Pranešimai: 809
Įstojęs: 2007 Lie. 20 11:07:03
|
<table width='202' border='0' cellspacing='0' cellpadding='0' align='left'>
<form name='loginform' method='post' action='".FUSION_SELF."'>
<tr>
<td align='right' style='color:#fff;' >Vardas: </td>
<td> <input type='text' name='user_name' class='Prisijungimas' style='width:100px;border-bottom : 1px solid #999999;color : #fff;'></td>
</tr>
<tr>
<td height='2'></td>
</tr>
<tr>
<td align='right' style='color:#fff;' >Slaptažodis: </td>
<td> <input type='password' name='user_pass' class='prisijungimas' style='width:100px;border-bottom : 1px solid #999999;color : #fff;'></td>
</tr>
<tr>
<td height='2'></td>
</tr>
<tr>
<td align='right' style='color:#fff;' ><input type='checkbox' name='remember_me' value='y'> Prisiminti</td>
<td style='padding-left:25px;'> <input type='submit' name='login' value='Jungtis' class='button'></td>
</tr>
</form>";
Jeigu pradžioje pateikiai tą kodą
|
QxetaZ
VIP narys
Pulkininkas
Pranešimai: 452
Įstojęs: 2009 Vas. 23 21:02:25
|
Jau tas headerio prisijungimas seniausiai sutvarkytas
Nerašykit daugiau vėjų.
|
ChecK
VIP narys
Generolas
Pranešimai: 1074
Įstojęs: 2008 Kov. 20 16:03:50
|
Tau žmogus padėti bandė o tu čia sakai kad nesąmones kalba..
|
QxetaZ
VIP narys
Pulkininkas
Pranešimai: 452
Įstojęs: 2009 Vas. 23 21:02:25
|
-------- parašė:
Tau žmogus padėti bandė o tu čia sakai kad nesąmones kalba..
Kaip nesupranti, kad tas headerio prisijungimas senai buvo sutvarkytas. Tai kam dar nereikalingus kodus dėt?
|
Langas
Narys
Kapitonas
Pranešimai: 809
Įstojęs: 2007 Lie. 20 11:07:03
|
Paprasčiausiai nepastebėjau tavosios žinutės kad nau buvo padėta.
Tačiau dėl tavo žinutės, išvis nepadėsiu tau, nors jau esu turėjau paruošęs kodą nuo dabartinės bėdos.
|
QxetaZ
VIP narys
Pulkininkas
Pranešimai: 452
Įstojęs: 2009 Vas. 23 21:02:25
|
Tai, padėsit kurris nors?
Redagavo QxetaZ 2009 Lie. 13 16:07:25 |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
function render_header($header_content) {
global $theme_width,$userdata,$settings,$locale,$aidlink,$db_prefix;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table width='809' height='309' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='12'>
<img src='".THEME."images/headeris_01.png' width='809' height='80' alt=''></td>
</tr>
<tr>
<td colspan='3' rowspan='2'>
<img src='".THEME."images/headeris_02.png' width='127' height='170' alt=''></td>
<td colspan='3'>";
echo"<table width='200' height='138' style='background-image:url(".THEME."images/headeris_03.png);background-repeat:no-repeat; color:#FFFFFF; Font-family : ; Tahoma font-size : 9px; padding-right: 25px;'>";
if (iMEMBER)
{
echo"<td height='50' style='color:#FFFFFF; Font-family : Arial; font-size : 8px; padding-left: 10px;'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'>Mano profilis</a>".(iADMIN && $userdata['user_rights'] != "" ? " : <a href='".ADMIN."index.php$aidlink'>Administracija</a>" : ""."<br>
<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."edit_profile.php'>Redaguoti profilį</a><br>
<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."messages.php'>Asmeninės žinutės</a><br>
<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."setuser.php?logout=yes'>Atsijungti</a></td>";
echo"<td>";
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'";
if ($msg_count)
echo"<a style='font-size : 10px;' href='".BASEDIR."messages.php' class='side2'>".sprintf('Gavai žinutę'."</a></td>";
}
else
{
echo "<form name='login' method='post' action='".FUSION_REQUEST."'>
<td width='30'></td>
<td width='100'>
<input type='text' name='user_name' class='prisijungimo-textboxas' value='Vardas' onBlur=\"if(this.value=='' this.value='Vardas';\" onFocus=\"if(this.value=='Vardas' this.value='';\" >
<input type='password' name='user_pass' class='prisijungimo-textboxas' value='Hashas' onBlur=\"if(this.value=='' this.value='Hashas';\" onFocus=\"if(this.value=='Hashas' this.value='';\" >
<input type='submit' name='login' value='' class='prisijugnimo-sumbitas' border='0'>
</td>
</form>";
}
echo"</table></td>
<td colspan='6'>
<img src='".THEME."images/headeris_04.png' width='482' height='138' alt=''></td>
</tr>
<tr>
<td colspan='9'>
<img src='".THEME."images/headeris_05.png' width='682' height='32'' alt=''></td>
</tr>
<tr>
<td rowspan='2'>
<img src='".THEME."images/headeris_06.png' width='18' height='58' alt=''></td>
<td>
<img src='".THEME."images/headeris_07.png' width='97' height='44' alt=''></td>
<td colspan='2'>
<img src='".THEME."images/headeris_08.png' width='85' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_09.png' width='102' height='44' alt=''></td>
<td colspan='2'>
<img src='".THEME."images/headeris_10.png' width='77' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_11.png' width='80' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_12.png' width='85' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_13.png' width='96' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_14.png' width='151' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_15.png' width='18' height='44' alt=''></td>
</tr>
<tr>
<td colspan='11'>
<img src='".THEME."images/headeris_16.png' width='791' height='14' alt=''></td>
</tr>
<tr>
<td>
<img src='".THEME."images/spacer.gif' width='18' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='97' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='12' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='73' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='102' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='25' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='52' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='80' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='85' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='96' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='151' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='18' height='1' alt=''></td>
</tr>
</table>";
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 cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' class='footer'>".stripslashes($settings['footer'])."<br>\n";
if (!$license) { echo showcopyright()."<br><br>\n"; } echo showcounter()."<br><br>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='559'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td width='559' class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," ·".newsopts($info,"·".closeform("N",$info['news_id']);
echo "</td>
</tr>
<td class='center-down'>
</td>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," ·".articleopts($info,"·".closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='543'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td width='559'class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
<td class='center-down'>
</td>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='193'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
<td class='side-down'>
</td>
</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";
}
megink
code and design solutions tinklalapių kūrimas
Redagavo Jaunelis 2009 Lie. 13 23:07:59 |
Tomcis
Narys
Generolas
Pranešimai: 1143
Įstojęs: 2008 Spa. 9 19:10:04
|
Bandom.
function render_header($header_content) {
global $theme_width,$userdata,$settings,$locale,$aidlink,$db_prefix;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table width='809' height='309' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='12'>
<img src='".THEME."images/headeris_01.png' width='809' height='80' alt=''></td>
</tr>
<tr>
<td colspan='3' rowspan='2'>
<img src='".THEME."images/headeris_02.png' width='127' height='170' alt=''></td>
<td colspan='3'>";
echo"<table width='200' height='138' style='background-image:url(".THEME."images/headeris_03.png);background-repeat:no-repeat; color:#FFFFFF; Font-family : ; Tahoma font-size : 9px; padding-right: 25px;'>";
if (iMEMBER)
{
echo"<td height='50' style='color:#FFFFFF; Font-family : Arial; font-size : 8px; padding-left: 10px;'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'>Mano profilis</a>".(iADMIN && $userdata['user_rights'] != "" ? " : <a href='".ADMIN."index.php$aidlink'>Administracija</a>" : "")."<br>
<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."edit_profile.php'>Redaguoti profilį</a><br>
<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."messages.php'>Asmeninės žinutės</a><br>
<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."setuser.php?logout=yes'>Atsijungti</a></td>";
echo"<td>";
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
if ($msg_count)
echo"<a style='font-size : 10px;' href='".BASEDIR."messages.php' class='side2'>".sprintf('Gavai žinutę')."</a></td>";
}
else
{
echo "<form name='login' method='post' action='".FUSION_REQUEST."'>
<td width='30'></td>
<td width='100'>
<input type='text' name='user_name' class='prisijungimo-textboxas' value='Vardas' onBlur=\"if(this.value=='') this.value='Vardas';\" onFocus=\"if(this.value=='Vardas') this.value='';\" >
<input type='password' name='user_pass' class='prisijungimo-textboxas' value='Hashas' onBlur=\"if(this.value=='') this.value='Hashas';\" onFocus=\"if(this.value=='Hashas') this.value='';\" >
<input type='submit' name='login' value='' class='prisijugnimo-sumbitas' border='0'>
</td>
</form>";
}
echo"</table></td>
<td colspan='6'>
<img src='".THEME."images/headeris_04.png' width='482' height='138' alt=''></td>
</tr>
<tr>
<td colspan='9'>
<img src='".THEME."images/headeris_05.png' width='682' height='32'' alt=''></td>
</tr>
<tr>
<td rowspan='2'>
<img src='".THEME."images/headeris_06.png' width='18' height='58' alt=''></td>
<td>
<img src='".THEME."images/headeris_07.png' width='97' height='44' alt=''></td>
<td colspan='2'>
<img src='".THEME."images/headeris_08.png' width='85' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_09.png' width='102' height='44' alt=''></td>
<td colspan='2'>
<img src='".THEME."images/headeris_10.png' width='77' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_11.png' width='80' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_12.png' width='85' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_13.png' width='96' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_14.png' width='151' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_15.png' width='18' height='44' alt=''></td>
</tr>
<tr>
<td colspan='11'>
<img src='".THEME."images/headeris_16.png' width='791' height='14' alt=''></td>
</tr>
<tr>
<td>
<img src='".THEME."images/spacer.gif' width='18' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='97' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='12' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='73' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='102' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='25' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='52' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='80' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='85' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='96' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='151' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='18' height='1' alt=''></td>
</tr>
</tr>
</table>";
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 cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' class='footer'>".stripslashes($settings['footer'])."<br>\n";
if (!$license) { echo showcopyright()."<br><br>\n"; } echo showcounter()."<br><br>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='559'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td width='559' class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," ·").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
</tr>
<td class='center-down'>
</td>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='543'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td width='559'class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
<td class='center-down'>
</td>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='193'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
<td class='side-down'>
</td>
</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";
}
Redagavo Tomcis 2009 Lie. 14 11:07:14 |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
iFack - spacer.gif ištrynei ten gal jo img buvo
nesupratau tai tiko kodas nors vienas ar ne ?
code and design solutions tinklalapių kūrimas
Redagavo Jaunelis 2009 Lie. 14 00:07:55 |
QxetaZ
VIP narys
Pulkininkas
Pranešimai: 452
Įstojęs: 2009 Vas. 23 21:02:25
|
Nei, vienas neveikė.
Su jaunėlio kodu išvis neatidaro saito, o su Ifack nieko naujo.
|
QxetaZ
VIP narys
Pulkininkas
Pranešimai: 452
Įstojęs: 2009 Vas. 23 21:02:25
|
Vis dar reikia pagalbos.
|
Tomcis
Narys
Generolas
Pranešimai: 1143
Įstojęs: 2008 Spa. 9 19:10:04
|
Bandom.
function render_header($header_content) {
global $theme_width,$userdata,$settings,$locale,$aidlink,$db_prefix;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table width='809' height='309' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='12'>
<img src='".THEME."images/headeris_01.png' width='809' height='80' alt=''></td>
</tr>
<tr>
<td colspan='3' rowspan='2'>
<img src='".THEME."images/headeris_02.png' width='127' height='170' alt=''></td>
<td colspan='3'>";
echo"<table width='200' height='138' style='background-image:url(".THEME."images/headeris_03.png);background-repeat:no-repeat; color:#FFFFFF; Font-family : ; Tahoma font-size : 9px; padding-right: 25px;'>";
if (iMEMBER)
{
echo"<td height='50' style='color:#FFFFFF; Font-family : Arial; font-size : 8px; padding-left: 10px;'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'>Mano profilis</a>".(iADMIN && $userdata['user_rights'] != "" ? " : <a href='".ADMIN."index.php$aidlink'>Administracija</a>" : "")."<br>
<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."edit_profile.php'>Redaguoti profilį</a><br>
<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."messages.php'>Asmeninės žinutės</a><br>
<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."setuser.php?logout=yes'>Atsijungti</a></td>";
echo"<td>";
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
if ($msg_count)
echo"<a style='font-size : 10px;' href='".BASEDIR."messages.php' class='side2'>".sprintf('Gavai žinutę')."</a></td>";
}
else
{
echo "<form name='login' method='post' action='".FUSION_REQUEST."'>
<td width='30'></td>
<td width='100'>
<input type='text' name='user_name' class='prisijungimo-textboxas' value='Vardas' onBlur=\"if(this.value=='') this.value='Vardas';\" onFocus=\"if(this.value=='Vardas') this.value='';\" >
<input type='password' name='user_pass' class='prisijungimo-textboxas' value='Hashas' onBlur=\"if(this.value=='') this.value='Hashas';\" onFocus=\"if(this.value=='Hashas') this.value='';\" >
<input type='submit' name='login' value='' class='prisijugnimo-sumbitas' border='0'>
</td>
</form>";
}
echo"</table></td>
<td colspan='6'>
<img src='".THEME."images/headeris_04.png' width='482' height='138' alt=''></td>
</tr>
<tr>
<td colspan='9'>
<img src='".THEME."images/headeris_05.png' width='682' height='32'' alt=''></td>
</tr>
<tr>
<td rowspan='2'>
<img src='".THEME."images/headeris_06.png' width='18' height='58' alt=''></td>
<td>
<img src='".THEME."images/headeris_07.png' width='97' height='44' alt=''></td>
<td colspan='2'>
<img src='".THEME."images/headeris_08.png' width='85' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_09.png' width='102' height='44' alt=''></td>
<td colspan='2'>
<img src='".THEME."images/headeris_10.png' width='77' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_11.png' width='80' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_12.png' width='85' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_13.png' width='96' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_14.png' width='151' height='44' alt=''></td>
<td>
<img src='".THEME."images/headeris_15.png' width='18' height='44' alt=''></td>
</tr>
<tr>
<td colspan='11'>
<img src='".THEME."images/headeris_16.png' width='791' height='14' alt=''></td>
</tr>
</table>";
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 cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' class='footer'>".stripslashes($settings['footer'])."<br>\n";
if (!$license) { echo showcopyright()."<br><br>\n"; } echo showcounter()."<br><br>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='559'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td width='559' class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," ·").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
</tr>
<td class='center-down'>
</td>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='543'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td width='559'class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
<td class='center-down'>
</td>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='193'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
<td class='side-down'>
</td>
</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";
}
|
QxetaZ
VIP narys
Pulkininkas
Pranešimai: 452
Įstojęs: 2009 Vas. 23 21:02:25
|
Mmm... Neveikia vistiek.
|
QxetaZ
VIP narys
Pulkininkas
Pranešimai: 452
Įstojęs: 2009 Vas. 23 21:02:25
|
Naujas klausimas, į headerį įdėjau prisijungimą ir dabar ant textboxo yra geltonas borderis. :
Išnaršiau styles.css, bandžiau editint theme.php nieko nepavyko padaryt... So need help
.textboxaslogin {
font-family:Tahoma;
font-size:11px;
width : 207px ;
height : 35px ;
color:#ffffff;
padding-right: 0px;
padding-left: 50px;
background-image:url(images/textboxlogin.png);
border:0px #000 solid;
margin: 1px;
}
.login {
font-family:Tahoma,Arial,Verdana,Sans-Serif;
font-size:10px;
font-weight:bold;
color:#ad0606;
background-image:url(images/login-button.jpg);
border:#666 0px solid;
width: 19px ;
height: 20px;
}
<table width='202' border='0' cellspacing='0' cellpadding='0' align='left'>
<form name='loginform' method='post' action='".FUSION_SELF."'>
<tr>
<td align='right' style='color:#fff;' ></td>
<td> <input type='text' name='user_name' class='textboxaslogin'></td>
</tr>
<tr>
<td align='right' style='color:#fff;' ></td>
<td> <input type='password' name='user_pass' class='textboxaslogin'></td>
</tr>
</form>";
|