Przedszkolak
Postów: 15
Data rejestracji: 04.02.2007 12:24
ZBANOWANY: Dożywotnio
|
Hejka mam problem z jPORTALem gdy umieszcze jakiś blok menu rozwala sie kalendarz itp o to fuction.inc.php
<?
// ==================================================
// UWAGA! ta skorka jest rekomendowana do przerobek
// jako wzor przez autora systemu jPORTAL
// ==================================================
$color[1] = '#D1D7DC'; // kolor uzytkownika
$color[2] = '#ECEFF0'; // kolor uzytkownika
$color[3] = $theme; // zawiera nazwe katalogu theme'a
$color[4] = '#F8f8f8'; // kolor uzytkownika
$color[5] = '#F3F3F3'; // 1 kolor listy (forum, panel admina, itp.)
$color[6] = '#A4B39C'; // naglowek listy (opis kolumn na forum itp.)
$color[7] = '#00000F'; // kolor czcionki naglowkow listy
$color[8] = '#F3F3F3'; // 2 kolor listy (forum, panel admina, itp.)
$color[9] = '#39494A'; // kolor drobnych podpisow np. w katalogu stron
function index() {
global $color, $footer1, $footer2;
echo'<div id="pds">
<div><img src="theme/'.$color[3].'/images/t1.jpg" alt="" border="0" usemap="#t1"></div>
<div><img src="theme/'.$color[3].'/images/t2.jpg" alt="" border="0" usemap="#t2"></div>
<div class="cnt">
<div class="left">';
left_menu();
echo'</div>
<div class="center">
<div><img src="theme/'.$color[3].'/images/tops.gif" alt="" ></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="text-align: center">';
print_main();
echo'</td>
</tr>
</table>
</div>
<div class="right">';
right_menu();
echo'</div>
<div style="clear:both;"></div>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div class="footer">
<div class="footer_1">'.$footer1.'</div>
<div class="footer_2">'.$footer2.'</div>
</div></td>
</tr>
</table>
';
mapy();
echo'</div>
<div style="padding-bottom: 15px;">';
banner('bannerA');
echo'</div>
';
}
function index2() {
global $color, $footer1, $footer2;
echo'<div id="pds">
<div><img src="theme/'.$color[3].'/images/t1.gif" alt="" border="0" usemap="#t1"></div>
<div><img src="theme/'.$color[3].'/images/t2.jpg" alt="" border="0" usemap="#t2"></div>
<div class="cnt2">
<div class="center2">
<div><img src="theme/'.$color[3].'/images/tops2.gif" alt="" ></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="text-align: center">';
print_main();
echo'</td>
</tr>
</table>
</div>
<div style="clear:both;"></div>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div class="footer2">
<div class="footer_1">'.$footer1.'</div>
<div class="footer_2">'.$footer2.'</div>
</div></td>
</tr>
</table>';
mapy();
echo'</div>
<div style="padding-bottom: 15px;">';
banner('bannerA');
echo'</div>
';
}
function mapy() {
echo'
<!--Mapy odsyłaczy - tutaj zmieniaj linki na górze strony-->
<map name="t1" id="t1"><area shape="rect" coords="22,28,342,91" href="index.php" alt="Strona główna">
<area shape="rect" coords="481,43,552,65" href="index.php" alt="">
<area shape="rect" coords="561,43,656,66" href="#mapa" alt="">
<area shape="rect" coords="660,42,738,67" href="mailer.php" alt="">
</map>
<map name="t2" id="t2"><area shape="rect" coords="51,58,85,97" href="play.m3u" alt="">
<area shape="rect" coords="88,57,132,97" href="play-wmp.m3u" alt="">
</map>';
}
function left_menu_open() {
global $color;
echo '
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>';
}
function left_menu_close() {
global $color;
echo '
</td>
</tr>
</table>';
}
function right_menu_open() {
global $color;
echo '
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
';
}
function right_menu_close() {
global $color;
echo '
</td>
</tr>
</table>';
}
#==============================
# tytul lewego okienka menu
#==============================
function left_menu_title_open()
{
global $color;
echo '<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td class="mlng">';
}
function left_menu_title_close()
{
global $color;
echo '</td>
</tr>
<tr>
<td class="mtxt">
';
}
#==============================
# end: tytul lewego okienka menu
#==============================
#==============================
# tresc lewego okienka menu
#==============================
function left_menu_text_open() {}
function left_menu_text_close()
{
global $color;
echo '
</td>
</tr>
</table>';
}
#==============================
# end: tresc lewego okienka menu
#==============================
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#==============================
# tytul prawego okienka menu
#==============================
function right_menu_title_open()
{
global $color;
echo '<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td class="mrng">';
}
function right_menu_title_close()
{
global $color;
echo '</td>
</tr>
<tr>
<td class="mrtxt">
';
}
function right_menu_text_open() {}
function right_menu_text_close()
{
global $color;
echo '
</td>
</tr>
</table>';
}
/******************************************************************************/
function main_title_open()
{
global $color;
echo '<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td><p class="ng1">';
}
function main_title_close()
{
global $color;
echo '</p></td>
</tr>
<tr>
';
}
function main_text_open()
{
echo '<td class="text_box">';
}
function main_text_close($poster=0, $date=0, $comment=0, $comment_num=0, $print=0)
{
global $color;
$print = '<a href="'.$print.'"><img SRC="theme/'.$color[3].'/gfx/print.gif" border="0" align="absmiddle"></a>';
if($comment<>'')
$comment = '<a href="'.$comment.'">komentarz['.$comment_num.']</a> | ';
if($portal<>'0' AND $date<>0)
{
echo '
</td>
<tr>
<td colspan="2" class="block" align="right" style="padding-top: 5px;">'.$comment.$print.' </td>
</tr>';
}
echo '
</td>
</tr>
</table>
<br>';
}
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#==============================
# tytul okienka main'a NM
#==============================
function mn_title_open()
{
global $color;
echo '<table width="738" cellspacing="0" cellpadding="0" border="0" style="margin-top: 5px;">
<tr>
<td> </td>
<td class="ng1">';
}
function mn_title_close()
{
global $color;
echo '</td>
<td> </td>
<tr>
<td style="height: 5px;"></td>
<tr>
';
}
function mn_text_open()
{
echo '<td class="text_box" colspan="3">';
}
function mn_text_close($poster=0, $date=0, $comment=0, $comment_num=0, $print=0) {
global $color;
$print = '<a href="'.$print.'"><img SRC="theme/'.$color[3].'/gfx/print.gif" border="0" align="absmiddle"></a>';
if($comment<>'')
$comment = '<a href="'.$comment.'">komentarze: '.$comment_num.'</a> | ';
if($portal<>'0' AND $date<>0) {
echo '</td>
</tr>
<td colspan="3"><img SRC="theme/'.$color[3].'/gfx/separ.gif" width="1" height="1"></td>
</tr>
<tr>
<td width="100%" colspan="3" class="block" align="right" background="theme/'.$color[3].'/gfx/menu_bg.gif">'.$comment.$print.' </TD>
</tr>
';
}
echo '
</td>
</tr>
</table>
<br>';
}
# podpisy do newsow
function news_theme($mod, $title, $icon, $text, $poster, $textcd, $date, $comment, $comment_num, $print, $send)
{
global $color;
if($mod=='list')
{
if($textcd<>'') $textcd = '<a href="'.$textcd.'">więcej</a> | '; else $textcd = '';
}
else
{
if($textcd<>'') $text = '<b>'.$text.'</b><br><br>'.$textcd;
}
if($icon<>'') $text = '<img src="'.$icon.'" align="right">'.$text;
$send = '<a href="'.$send.'" title="wy¶lij znajomemu"><img SRC="theme/'.$color[3].'/gfx/mail.gif" border="0" align="absmiddle"></a> ';
$print = '<a href="'.$print.'" title="wersja do druku" target="_blank"><img SRC="theme/'.$color[3].'/gfx/print.gif" border="0" align="absmiddle"></a>';
$comment = '<a href="'.$comment.'">komentarze: '.$comment_num.'</a>';
echo '<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td><p class="ng1"><b>'.$title.'</b> '.substr($date, 20).'</p></td>
</tr>
<tr>
<td class="text_box" style="text-align: justify">';
echo $text;
if($mod=='more') unset($textcd);
if($mod<>'err')
{
echo '</td>
</tr>
<tr>
<td colspan="2" style="padding: 5px;">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="uni_01">'.$poster.' | '.date('d.m.Y', strtotime(substr($date, 0, 10))).'</td>
<td class="uni_01" align="right">'.$textcd.$comment.' | '.$print.' '.$send.'</td>
</tr>
</table>
</td>
</tr>';
}
echo '
</p></td>
</tr>
</table>
<br>';
}
function art_theme($title, $text, $poster, $date, $comment, $comment_num, $print, $more, $opened)
{
global $color;
$more = '<a href="'.$more.'">pokaż artykuł</a>';
$print = '<a href="'.$print.'" title="wersja do druku" target="_blank"><img SRC="theme/'.$color[3].'/gfx/print.gif" border="0" align="absmiddle"></a>';
$comment = '<a href="'.$comment.'">komentarze: '.$comment_num.'</a>';
echo '<tr>
<td>
<table style="margin-top: 5px;" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="title"><b>'.$title.'</b></td>
</tr>
<tr>
<td class="title">'.$text.'</td>
</tr>';
if($mod<>'err')
{
echo '
<tr>
<td colspan="2">
<table style="margin-top: 5px;" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td class="title">odsłon: '.$opened.'</td>
<td class="title" align="right">'.$more.' | '.$comment.' | '.$print.'</td>
</tr>
</table>
</td>
</tr>';
}
echo '
</table>
<br>
</td>
</tr>
';
}
#==============================
# end: tresc okienka main'a
#==============================
# stopka z copyright
function footer($footer1, $footer2, $time='') {
global $color;
echo '
<table align="center" width="760" cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="right" class="uni_01" style="font-size: 10px">'.round($time, 3).' | '.$footer2.'</td>
</tr>
</table>
';
}
# ===================================
# funkcje listowania (pliki downloadu, arty itp.)
# ===================================
function list_open() {
global $color;
echo '<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">';
}
function list_close() {
global $color;
echo '</table>';
}
# otworzenie elementu listy
function list_body_open($title="", $text="", $others="")
{
global $color;
echo '
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="title"><b>'.$title.'</b></td>
</tr>
<tr>
<td class="title" style="text-align: justify;">'.$text.'</td>
</tr>';
if($others<>'')
{
echo '
<tr>
<td class="title" align="right" style="padding-top: 5px;">'.$others.'</td>
</tr>
';
}
echo '</table>
<br>
</td>
</tr>
';
}
Co jest ?? |