Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Header(Radio info apnele)

Parašė malybu· 2009 Bal. 16 19:04:46
#1

Sveiki. Turiu Theme kur ant headerio yra Naujausia Muzika. kaip reikai vietoi tos Naujausios Muzikos ideti eterio info panele. Zinau tik , kad reikia koda ideti kaskoki bet nerandu as to eterio info panenels jei kas pades duosiu +10.


Stai theme.php




<?php

/*******************************/
/*
Dizainas: Radio
Support: Lithuanian PHP-fusion support www.webdnd.com
 */
/*****************************/

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

$body_text = "#161616";
$body_bg = "#161616";
$theme_width = "950";
$theme_width_l = "280";
$theme_width_r = "225";

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

   echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border-right: solid #ffffff 0px; border-left: solid #ffffff 0px; border-top: solid #ffffff 0px; margin-top: 0px;'>";
   echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
   echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
   echo "<tr><td class='header' width='100%'>";



/*******************************//*Headeris START*//*****************************/

//*************//1 eilute//*************//


        echo "<table align='center' width='950' height='29' border='0' cellpadding='0' cellspacing='0'><tr>";
       
        echo "<td>";

        echo "<td background='".THEME."images/1.1.gif' border='0' width='950' height='29' alt=''>";

        echo "</td>";



//*************//2 eilute//*************//


        echo "<table align='center' width='950' height='223' border='0' cellpadding='0' cellspacing='0'><tr>";
     
        echo "<td>";

        echo "<td background='".THEME."images/headers.jpg' width='442' height='223' alt='' border='0'>";

        echo "</td>";


        echo "<td>";

        echo "<td background='".THEME."images/2.2.gif' width='237' height='223' alt='' border='0'>";

        //Prisijungimas

echo "<table cellpadding='0' cellspacing='0' width='220' >
<tr>

<td>";

if (iMEMBER) {

   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='220' border='0' cellspacing='0' cellpadding='0' align='left'  style='padding-left:px;'>
<tr>
<td>";
   if ($userdata['user_avatar'] != "") {
   echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='85' height='85' ></center>\n";
   } else {
   echo "<center><img src='".THEME."images/noav.jpg' width='85' height='85'></center>\n";
   }
   echo "</td><td align='left' class='small2'>";


echo"Labas, <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='small2' >".$userdata['user_name']."</a><br><br>";

echo"<a href='".BASEDIR."messages.php' class='small2'>&#222;inut&#235;s [naujø: <b><span style='color:#9f9f9f'>".sprintf($msg_count)."</span></b>]</a>";if ($msg_count) echo " <a href='".BASEDIR."messages.php?folder=inbox' class='side'><img src='".IMAGES."newpm.gif' alt='".$locale['on108'].$userdata['user_name']."' title='".$locale['on108'].$userdata['user_name']."'></a>\n"; echo"<br>
<a href='".BASEDIR."members.php' class='small2'>Nariai</a><br>
<a href='".BASEDIR."edit_profile.php' class='small2'>Apra&#240;ymas</a><br><br>";

   
   echo "<a href='".BASEDIR."setuser.php?logout=yes' class='small2'>Atsijungti</a><br>";


if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
      echo "<a href='".ADMIN."index.php".$aidlink."' class='small2'>Administracija</a>\n";
   }



echo"</td>";



echo"</tr></table>";

} else {

echo "
<table width='220' border='0' cellspacing='0' cellpadding='0' >
<tr><td>


<table width='220' border='0' cellspacing='0' cellpadding='0' align='left'>
<form name='loginform' method='post' action='".FUSION_SELF."'>

  <tr>
    <td align='right' style='color:#fff;' class='small2' >Vardas: </td>
    <td>&nbsp;<input type='text' name='user_name' class='inputas' style='width:100px;border: 1px solid #999999;color : #ccc;'></td>
  </tr>

<tr><td><td background='".THEME."images/blank.gif border='0' height='3' width='0'></td></tr>

  <tr>
    <td align='right' style='color:#fff;' class='small2'  >Slapta&#254;odis: </td>
    <td>&nbsp;<input type='password' name='user_pass' class='inputas' style='width:100px;border: 1px solid #999999;color : #ccc;'></td>
  </tr>

<tr><td><td background='".THEME."images/blank.gif border='0' height='5' width='0'></td></tr>

  <tr>
    <td align='right' style='color:#fff;' ><input type='checkbox' name='remember_me' value='y' class='small2'> Prisiminti</td>
    <td style='padding-left:25px;'>&nbsp;<input type='submit' name='login' value='Jungtis' class='button'></td>
</tr>
</form>";



   echo"</td></tr></table>";




      

echo"</td></tr></table>";


echo "<center><a href='".BASEDIR."register.php' class='small'><br>Registracija</a>     &nbsp;    &nbsp; ";
   
   echo " <a href='".BASEDIR."lostpassword.php' class='small'>Priminti slapta&#254;od&#225;</a></center>";


}





echo"</td>

</tr></table>\n";


        echo "</td>";



        echo "<td>";

        echo "<td background='".THEME."images/2.3.gif' width='238' height='223' alt='' align='center' border='0'>";

       //Naujausia muzika

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td style='padding-left:20px; padding-top:5px;'>";

$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,17");
 if (dbrows($result) != 0) {
  echo "<table width='100%' cellpadding='0' cellspacing='0'>";
  while ($data = dbarray($result)) {
   echo "<tr>
    <td class='small'>

     <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='hed'>".trimlink($data['download_title'], 31)."</a>
</td>
      </tr>";
  }
  echo "</table>";
 } else {
  echo "<div style='text-align:center'>".$locale['004']."</div>\n";
 }


echo"</td></tr></table>";

        echo "</td>";


        echo "<td>";

        echo "<td background='".THEME."images/2.4.gif' width='33' height='223' alt='' border='0'>";

        echo "</td></tr>";


//*************//3 eilute//*************//


        echo "<table align='center' width='950' height='23' border='0' cellpadding='0' cellspacing='0'><tr>";
     
        echo "<td>";

        echo "<td background='".THEME."images/3.1.gif' width='950' height='23' alt='' border='0'>";

        echo "</td></tr>";


//*************//4 eilute//*************//


        echo "<table align='center' width='950' height='17' border='0' cellpadding='0' cellspacing='0'><tr>";
       
        echo "<td>";

        echo "<td background='".THEME."images/4.1.gif' border='0' width='512' height='17' alt=''>";

        echo "</td>";


        echo "<td>";

        echo "<a href='".BASEDIR."/index.php' target=''><img src='".THEME."images/pagrindinis.jpg' border='0' width='74' height='17' alt=''></a>";

        echo "</td>";


        echo "<td>";

        echo "<a href='".BASEDIR."viewpage.php?page_id=1' target=''><img src='".THEME."images/komanda.jpg' border='0' width='65' height='17' alt=''></a>";

        echo "</td>";

       
        echo "<td>";

        echo "<a href='".BASEDIR."/viewpage.php?page_id=2' target=''><img src='".THEME."images/laidos.jpg' border='0' width='52' height='17' alt=''></a>";

        echo "</td>";


        echo "<td>";

        echo "<a href='".BASEDIR."/infusions/song_charts/charts.php' target=''><img src='".THEME."images/top.jpg' border='0' width='63' height='17' alt=''></a>";

        echo "</td>";


        echo "<td>";

        echo "<a href='".BASEDIR."/contact.php' target=''><img src='".THEME."images/kontaktai.jpg' border='0' width='80' height='17' alt=''></a>";

        echo "</td>";


        echo "<td>";

        echo "<td background='".THEME."images/4.7.gif' border='0' width='104' height='17' alt=''>";

        echo "</td></tr>";


//*************//5 eilute//*************//


        echo "<table align='center' width='950' height='28' border='0' cellpadding='0' cellspacing='0'><tr>";
     
        echo "<td>";

        echo "<td background='".THEME."images/5.1.gif' width='950' height='28' alt='' border='0'>";

        echo "</td></tr>";


/*******************************//*Headeris END*//*****************************/


     


   echo "<table width='100%' cellpadding='4' bgcolor='#0' cellspacing='0' border='0'><tr>";
}


function render_footer($license=false) {

global $theme_width,$settings;

echo"<br>";

echo "</tr>\n</table>\n";
echo "<table align='center' width='185' border='0' cellpadding='0' cellspacing='0'>

<tr>

<td><td background='".THEME."images/f1.gif' width='66' height='15' alt='' border='0'></td>

<td><a href='http://gizi.lt' target=''><img src='".THEME."images/f2.gif' width='119' height='15' alt='' border='0'></a></td>

</tr>



<table align='center' width='185' border='0' cellpadding='0' cellspacing='0'>

<tr>

<td><td background='".THEME."images/f3.gif' width='64' height='13' alt='' border='0'></td>

<td><a href='https://webdnd.com' target=''><img src='".THEME."images/f4.gif' width='121' height='13' alt='' border='0'></a></td>


</tr>


</table>";

echo"<br>";

}

function render_news($subject, $news, $info) {
global $aidlink,$item_type,$locale;

echo "<table width='100%' cellpadding='0' cellspacing='0'>";
echo "<tr><td class='panel-center-left'><img src='".THEME."images/blank.gif' width='21' height='47' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-center-main' align='left'>$subject</td>";
echo "<td class='panel-center-right'><img src='".THEME."images/blank.gif' width='18' height='47' alt='' style='display:block'></td>
</tr>
</table>
<br>";

echo "
<table>
<tr>
<td class='news-body'>
</span>$news</td>
</tr>
</table><br>\n";

echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td algin='right'>
<span style='font-size: 9px; padding-left: 20px; color:#9f9f9f;'>Para&#240;&#235;: <a href='profile.php?lookup=".$info['user_id']."' class='small2'>".$info['user_name']."</a> -
<span style='font-size: 9px; padding-right: 20px; color:#9f9f9f;'><a href='news.php?readmore=".$info['news_id']."' class='small2'>Skaityti pla&#232;iau</a><br>
   
</td></td>
</tr>
</table>";

}

function render_article($subject, $article, $info) {
global $aidlink,$item_type,$locale;

echo "<table width='100%' cellpadding='0' cellspacing='0'>";
echo "<tr><td class='panel-center-left'><img src='".THEME."images/blank.gif' width='21' height='47' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-center-main' align='left'>$subject</td>";
echo "<td class='panel-center-right'><img src='".THEME."images/blank.gif' width='18' height='47' alt='' style='display:block'></td>
</tr>
</table>

<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td algin='left'>

<span style='font-size: 10px; padding-left: 20px;'>Para&#240;&#235;: <a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>";
echo"<td align='center'><span style='font-size: 11px; padding-right: 20px;'> <a href='print.php?type=A&amp;item_id=".$info['article_id']."'>Spausdinti</a>";
echo"</td></td>
</tr>
</table>
<hr>
<table>
<tr>";
echo "<span style='padding-left: 20px;'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</form>
</tr>
</table><br>\n";

}

function opentable($title) {

   echo "<table width='100%' cellpadding='0' cellspacing='0'>";
   echo "<tr><td class='panel-center-left'><img src='".THEME."images/blank.gif' width='21' height='47' alt='' style='display:block'></td>";
   echo "<td width='100%' class='panel-center-main' align='left'>$title</td>";
   echo "<td class='panel-center-right'><img src='".THEME."images/blank.gif' width='18' height='47' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";

   echo "<td class='main-body'>\n";
}

function closetable() {

echo "</td>
</tr>
</table>\n";

}

function openside($title) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
   echo "<tr><td class='panel-son-left'><img src='".THEME."images/blank.gif' width='42' height='47' alt='' style='display:block'></td>";
   echo "<td width='100%' class='panel-son-main' align='left'>$title</td>";
   echo "<td class='panel-son-right'><img src='".THEME."images/blank.gif' width='9' height='47' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>

<td class='side-body'>\n";

}

function closeside() {

echo "</td>
</tr>
</table>\n";
tablebreak();

}



function openkaire($title) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
   echo "<tr><td class='sonas-kaire-1'><img src='".THEME."images/blank.gif' width='32' height='50' alt='' style='display:block'></td>";
   echo "<td width='100%' class='sonas-main' align='left'>$title</td>";
   echo "<td class='sonas-kaire-2'><img src='".THEME."images/blank.gif' width='24' height='50' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>

<td class='sonas-body'>\n";

}

function closekaire() {

echo "</td>
</tr>
</table>\n";
tablebreak();

}

function opendesine($title) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
   echo "<tr><td class='sonas-desine-2'><img src='".THEME."images/blank.gif' width='24' height='50' alt='' style='display:block'></td>";
   echo "<td width='100%' class='sonas-main' align='right'>$title</td>";
   echo "<td class='sonas-desine-1'><img src='".THEME."images/blank.gif' width='32' height='50' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>

<td class='sonas-body'>\n";

}

function closedesine() {

echo "</td>
</tr>
</table>\n";
tablebreak();

}


////////////////////////////////////////////////////////////////

function openkaireup($title) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
   echo "<tr><td class='sonas-kaire-1up'><img src='".THEME."images/blank.gif' width='32' height='50' alt='' style='display:block'></td>";
   echo "<td width='100%' class='sonas-mainup' align='left'>$title</td>";
   echo "<td class='sonas-kaire-2up'><img src='".THEME."images/blank.gif' width='24' height='50' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>

<td class='sonas-body'>\n";

}

function closekaireup() {

echo "</td>
</tr>
</table>\n";
tablebreak();

}

function opendesineup($title) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
   echo "<tr><td class='sonas-desine-2up'><img src='".THEME."images/blank.gif' width='24' height='50' alt='' style='display:block'></td>";
   echo "<td width='100%' class='sonas-mainup' align='right'>$title</td>";
   echo "<td class='sonas-desine-1up'><img src='".THEME."images/blank.gif' width='32' height='50' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>

<td class='sonas-body'>\n";

}

function closedesineup() {

echo "</td>
</tr>
</table>\n";
tablebreak();

}


////////////////////////////////////////////////////////////////

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

   $boxname = str_replace(" ", "", $title);
   $box_img = $open == "on" ? "off" : "on";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain' align='right'><img src='".THEME."images/panel_$box_img.gif' name='b_$boxname' align='center' alt='' style='padding-left:11px;' onclick=\"javascript:flipBox('$boxname')\">$title</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";

}

function closesidex() {

echo "</div>
</td>
</tr>
</table>\n";
tablebreak();

}


function tablebreak() {

   echo "<table width='100%' cellspacing='0' cellpadding='0'></table>\n";
}
?>



Redagavo malybu· 2009 Bal. 17 13:04:04