Ar įmanoma į header'į įterpti tai :
Čia yra user_info_panele iš jos yra panaikinta daug kas palikta tik kur rodo lygį žmogaus.O noriu į headerį , nes man ištampo visa web.Arba gal kas gali padaryti , kad nekraipytu puslapio ?
<?php
////////////////////////////////////
//php-fusion.co.uk - digimonas/////
//////////////////////////////////
//modded by modding.bendras.com//
////////////////////////////////
//By nepster :)////////////////
//////////////////////////////
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (iMEMBER) {
echo "<i><span id=\"div2\"> </span></i>";
echo "<br><hr>";
include_once INCLUDES."exp_include.php";
showexp($userdata['user_id'],$userdata['user_posts'], "1");
} else {
openside($locale['060']);
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
".$locale['061']."<br>
<input type='text' name='user_name' class='textbox' style='width:100px'><br>
".$locale['062']."<br>
<input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y' title='".$locale['063']."' style='vertical-align:middle;'>
<input type='submit' name='login' value='".$locale['064']."' class='button'><br>
</form>
<br>\n";
if ($settings['enable_registration']) {
echo "".$locale['065']."<br><br>\n";
}
echo $locale['066']."
</div>\n";
}
echo "<style type=\"text/css\">
#dhtmltooltip{
position: absolute;
width: 150px;
border: 2px solid black;
padding: 2px;
background-color: lightyellow;
visibility: hidden;
z-index: 100;
filter: progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=135);
}
</style>";
echo "<div id=\"dhtmltooltip\"></div><script type=\"text/javascript\">
var offsetxpoint=-60
var offsetypoint=20
var ie=document.all
var ns6=document.getElementById && !document.all
var enaašip=false
if (ie||ns6)
var tipobj=document.all? document.all[\"dhtmltooltip\"] : document.getElementById? document.getElementById(\"dhtmltooltip\") : \"\"
function ietruebody(){
return (document.compatMode && document.compatMode!=\"BackCompat\")? document.documentElement : document.body
}
function ddrivetip(thetext, thecolor, thewidth){
if (ns6||ie){
if (typeof thewidth!=\"undefined\") tipobj.style.width=thewidth+\"px\"
if (typeof thecolor!=\"undefined\" && thecolor!=\"\") tipobj.style.backgroundColor=thecolor
tipobj.innerHTML=thetext
enaašip=true
return false
}
}
function positiontip(e){
if (enaašip){
var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20
var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20
var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000
if (rightedge<tipobj.offsetWidth)
tipobj.style.left=ie? ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+\"px\" : window.pageXOffset+e.clientX-tipobj.offsetWidth+\"px\"
else if (curX<leftedge)
tipobj.style.left=\"5px\"
else
tipobj.style.left=curX+offsetxpoint+\"px\"
if (bottomedge<tipobj.offsetHeight)
tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+\"px\" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+\"px\"
else
tipobj.style.top=curY+offsetypoint+\"px\"
tipobj.style.visibility=\"visible\"
}
}
function hideddrivetip(){
if (ns6||ie){
enaašip=false
tipobj.style.visibility=\"hidden\"
tipobj.style.left=\"-1000px\"
tipobj.style.backgroundColor=''
tipobj.style.width=''
}
}
document.onmousemove=positiontip
</script>";
echo"<br></a><a href='http://www.puslapis.lt' target='_blank' title='Puslapis' onMouseover=\"ddrivetip('Puslapis: http://www.puslapis.lt','#cccccc',cccc', 200)\"; onMouseout=\"hideddrivetip()\"><div align='center'></div></a>";
closeside();
?>
O čia header.php
<?php
global $theme_width,$settings,$aidlink,$locale,$userdata;
echo "<table width='$theme_width' border='0' align='center' cellpadding='0' cellspacing='0' background='".THEME."images/header.jpg' height='267' style='background-repeat: no-repeat;'>
<tr>
<td valign='bottom' style='padding-left:30px;' width='725'>
<a href='".BASEDIR."index.php'><img src='".THEME."images/hbuttons_01.png' border='0' alt='Pagrindinis'></a>
<a href='".BASEDIR."forum/index.php'><img src='".THEME."images/hbuttons_02.png' border='0' alt='Forumas'></a>
<a href='".BASEDIR."search.php'><img src='".THEME."images/hbuttons_03.png' border='0' alt='Paieška'></a>
</td>
<td width='235' style='padding-right:90px; padding-top:20px;' valign='middle'>";
if (iMEMBER) {
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='235' border='0' cellspacing='2' cellpadding='2'>
<tr>
<td>\n";
if ($userdata['user_avatar'] != "") {
echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='100' height='100' style='border:1px solid #999999'></center>\n";
} else {
echo "<center><img src='".THEME."images/noavatar.gif' width='100' height='100' border='0'></center>\n";
}
echo "</td>
<td valign='top'><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Redaguoti profilį</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='side'>Aš iš šalies</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Žinutės [naujų: <b><span style='color:#990000'>".sprintf($msg_count)."</span></b>]</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Nariai</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>Administracija</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a><br><br>
<b><span class='ip'>IP: </span></b>";
$userip = $_SERVER['REMOTE_ADDR'];
$host = gethostbyaddr($userip);
echo "<span class='ip'>".$userip."</span><br /></td></tr></table>\n";
} else {
echo "<table width='170' border='0' cellspacing='0' cellpadding='0' align='center'><form name='loginform' method='post' action='".FUSION_SELF."'>
<tr>
<td align='right' class='ip'>Vardas: </td>
<td> <input type='text' name='user_name' class='textbox' style='width:100px;filter:alpha(opacity=70)'></td>
</tr>
<tr>
<td align='right' class='ip'>".$locale['062'].": </td>
<td> <input type='password' name='user_pass' class='textbox' style='width:100px;filter:alpha(opacity=70)'></td>
</tr>
<tr>
<td align='right'><input type='checkbox' name='remember_me' value='y'></td>
<td> <input type='submit' name='login' value='Prisijungti' class='button'></td>
</tr>
</form>\n";
if ($settings['enable_registration']) {
echo "<a href=".BASEDIR."register.php>Registruokis!</a> <a href=".BASEDIR."lostpassword.php>Pamiršai slaptažodi?</a>\n";
}
echo"</table>\n";
}
echo "</td>
</tr>
</table>\n";
?>
|
O stai cia theme.php
<?
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#000000";
$body_bg = "#000000";
$theme_width = "960";
$theme_width_l = "180";
$theme_width_r = "180";
function render_header($header_content) {
global $theme_width;
include_once "header.php";
echo "<table align='center' class='mainsite-border' align='center' width='$theme_width' cellspacing='0' cellpadding='0'>
<tr><td>
<table align='center' width='100%' cellspacing='0' cellpadding='0' background='".THEME."images/mainbg.gif'>
<tr><td>
<table align='center' width='100%' cellspacing='0' cellpadding='0'>
</table><br>\n";
echo "<table width='95%' cellspacing='0' cellpadding='0' align='center'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<br><table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>";
include_once "foot.php";
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='29'><img src='".THEME."images/table_01.png'></td>
<td class='capmain' height='15' align='left' valign='bottom' width='100%'>$subject <span class='ip'>(".showdate("shortdate", $info['news_date']).")</span></td>
<td><img src='".THEME."images/table_03.png'></td>
</tr>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td class='main-body'>$news</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr>
<td><img src='".THEME."images/table_06.png'></td>
<td background='".THEME."images/table_07.png' align='right' class='read' style='padding-right:10px;'>"; if ($info['news_ext'] == "y") echo "<a href='news.php?readmore=".$info['news_id']."' class='read'>".$locale['042']."</a>"; echo"</td>
<td><img src='".THEME."images/table_08.png'></td></tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td><img src='".THEME."images/table_01.png'></td>
<td class='capmain' height='29' valign='bottom'>$subject</td>
<td><img src='".THEME."images/table_03.png'></td>
</tr>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr>
<td><img src='".THEME."images/table_06.png'></td>
<td background='".THEME."images/table_07.png'></td>
<td><img src='".THEME."images/table_08.png'></td></tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='29'><img src='".THEME."images/table_01.png'></td>
<td class='capmain' height='15' align='left' valign='bottom' width='100%'>$title</td>
<td><img src='".THEME."images/table_03.png'></td>
</tr>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr>
<td><img src='".THEME."images/table_06.png'></td>
<td background='".THEME."images/table_07.png'></td>
<td><img src='".THEME."images/table_08.png'></td></tr>
</table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0' align='center'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='2'>
<table cellspacing='0' celpadding='0' border='0' width='100%'>
<tr>
<td height='34' class='oside'>$title</td>
</tr>
</table>
</tr>
<tr>
<td colspan='2' class='side-body' width='100%'>\n";
}
function closeside() {
echo "</td>
</tr>
<tr><td><img src='".THEME."images/corner.gif'></td><td width='100%' background='".THEME."images/table2.gif'></td></tr>
</table>
</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='oside' height='34'>$title</td>
<td class='oside' 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>
</td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='15'></td></tr>
</table>\n";
}
?>
|