Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: QxeTaZ klausimai
Parašė QxetaZ· 2009 Lie. 11 23:07:58
#1
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
Parašė FanatiC· 2009 Lie. 11 23:07:37
#2
paprasciausio <br> neeina?
Parašė QxetaZ· 2009 Lie. 11 23:07:00
#3
Nepadeda <br> bandžiau &nspb irgi .
Parašė Beta-1· 2009 Lie. 11 23:07:53
#4
padding
Parašė Pakartoti slaptažodį· 2009 Lie. 11 23:07:10
#5
<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>";
Parašė QxetaZ· 2009 Lie. 11 23:07:24
#6
Beta-1 parašė:
padding
Jei gali, įterpk kur reikia, nelabai žinau kur :]
Parašė Tomcis· 2009 Lie. 11 23:07:20
#7
Prie style'o pridėk margin:1px; ir sio.
Parašė QxetaZ· 2009 Lie. 11 23:07:35
#8
iFack parašė:
Prie style'o pridėk margin:1px; ir sio.
Dėkui, įvertinsiu duosiu +10 ;)
Parašė QxetaZ· 2009 Lie. 12 23:07:33
#9
Kaip padaryti, kad nebūtu šitos linijos :
Išanksto dėkoju.
Redagavo QxetaZ· 2009 Lie. 12 23:07:50
Parašė _Tomas· 2009 Lie. 12 23:07:08
#10
Čia theme.php reikia redaguoti
Parašė QxetaZ· 2009 Lie. 12 23:07:26
#11
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
Parašė _Tomas· 2009 Lie. 13 00:07:29
#12
Nematau tos vietos kur turi būti tą navigacija kur (Pagrindinis ir t.t.)
Parašė QxetaZ· 2009 Lie. 13 00:07:38
#13
"function render header" Iš images sudarytas mano sub-headeris :)
Parašė Langas· 2009 Lie. 13 00:07:19
#14
<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ą
Parašė QxetaZ· 2009 Lie. 13 00:07:21
#15
Jau tas headerio prisijungimas seniausiai sutvarkytas :|
Nerašykit daugiau vėjų. :|
Parašė ChecK· 2009 Lie. 13 09:07:26
#16
Tau žmogus padėti bandė o tu čia sakai kad nesąmones kalba..
Parašė QxetaZ· 2009 Lie. 13 10:07:23
#17
-------- 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? :|
Parašė Langas· 2009 Lie. 13 10:07:06
#18
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.
Parašė QxetaZ· 2009 Lie. 13 10:07:40
#19
Tai, padėsit kurris nors? :|
Redagavo QxetaZ· 2009 Lie. 13 16:07:25
Parašė Jaunelis· 2009 Lie. 13 23:07:30
#20
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
Redagavo Jaunelis· 2009 Lie. 13 23:07:59
Parašė Tomcis· 2009 Lie. 13 23:07:08
#21
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
Parašė Jaunelis· 2009 Lie. 13 23:07:30
#22
iFack - spacer.gif ištrynei ten gal jo img buvo :O
nesupratau tai tiko kodas nors vienas ar ne ?
Redagavo Jaunelis· 2009 Lie. 14 00:07:55
Parašė QxetaZ· 2009 Lie. 14 14:07:48
#23
Nei, vienas neveikė.
Su jaunėlio kodu išvis neatidaro saito, o su Ifack nieko naujo.
:(
Parašė QxetaZ· 2009 Lie. 14 15:07:40
#24
Vis dar reikia pagalbos.
Parašė Tomcis· 2009 Lie. 14 18:07:02
#25
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";
}
Parašė QxetaZ· 2009 Lie. 14 21:07:05
#26
Mmm... Neveikia vistiek. :|
Parašė QxetaZ· 2009 Rugp. 3 23:08:52
#27
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>";
Redagavo QxetaZ· 2009 Rugp. 4 11:08:51