PDA

Zobacz pełną wersję : Rozpadanie sie templatki.



nspk
25-10-2006, 17:03
Wygląd mojej templatki zamieściłem w załączniku. Jest to modyfikacja za pomocą dreamwavera istnijącej templatki . Czy ktoś pomógłby mi dobrze spozycjonować moduł bannerów, pomiędzy dwoma granatowymi rozdzielnikami??


Mój plik index(część, całość w załączniku), oraz templatka - cała w załączniku:


<?php defined( "_VALID_MOS" ) or die( "Direct Access to this location is not allowed." );$iso = split( '=', _ISO );echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<?php mosShowHead(); ?>
<meta http-equiv="Content-Type" content="text/html;><?php echo _ISO; ?>" />
<?php if ( $my->id ) { initEditor(); } ?>
<?php // Custom MainMenu extension...
$database->setQuery("SELECT * FROM #__menu WHERE menutype = 'mainmenu' AND published ='1' AND parent = '0' ORDER BY ordering");
$mymenu_rows = $database->loadObjectList();
$mymenu_content = "";
foreach($mymenu_rows as $mymenu_row) {
// print_r($mymenu_rows);
$mymenulink = $mymenu_row->link;
if ($mymenu_row->type != "url") {
$mymenulink .= "&Itemid=$mymenu_row->id";
}
if ($mymenu_row->type != "separator") {
$mymenu_content .= "<a href=\"".sefRelToAbs($mymenulink)."\" class=\"bar\">$mymenu_row->name</a><font color=\"#D3F5D0\"> | </font>";
}
}
$mymenu_content = substr($mymenu_content,0,strlen($mymenu_content)-2);
?>
<link rel="alternate" title="<?php echo $mosConfig_sitename; ?>" href="<?php echo $GLOBALS['mosConfig_live_site']; ?>/index2.php?option=com_rss&no_html=1" type="application/rss+xml" />
<link href="templates/sb_brutus/css/template_css.css" rel="stylesheet" type="text/css" />
</head>

<body bgcolor="#FFFFFF">
<a name="top"></a>
<table width="102%">
<tr>
<td><?php mosLoadModules ( 'user3' ); ?></td>
</tr>
</table>
<table width="775" border="0" cellspacing="1" cellpadding="0" bgcolor="#999999" align="center">
<tr>
<td colspan="3" height="2">
<table width="100%" border="0" cellspacing="0" cellpadding="0" background="templates/sb_brutus/images/grbck.gif">
<tr>
<td><img src="templates/sb_brutus/images/blank.gif" width="10" height="10"></td>
</tr>
</table> </td>
</tr>
<tr>
<td colspan="3" height="2">
<table width="100%" border="0" cellspacing="0" cellpadding="0" background="templates/sb_brutus/images/image_line.gif">
<tr>
<td><img src="templates/sb_brutus/images/blank.gif" width="10" height="10"></td>
</tr>
</table> </td>
</tr>
<tr bgcolor="#FFFFFF" valign="top">
<td colspan="3" height="67">
<table width="100%" height="143" border="0" cellpadding="0" cellspacing="0" background="templates/sb_brutus/images/banner.jpg">
<tr>
<td height="135"><img src="templates/sb_brutus/images/blank.gif" width="20" height="80"></td>
</tr>
</table> </td>
</tr>

<tr>
<td colspan="3" height="2">
<table width="100%" border="0" cellspacing="0" cellpadding="0" background="templates/sb_brutus/images/dbbck.gif">
<tr>
<td height="21"><img src="templates/sb_brutus/images/blank.gif" width="20" height="20"></td>
</tr>
</table> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="3" valign="top" bgcolor="#FFFFFF"><div align="center">
<table width="100%" border="2" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" bordercolor="#FFFFFF">
<tr> </tr>
</table>
<table width="100%" height="85" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center">
<?php mosLoadModules ( 'user6' ); ?>
</div> <div align="left"></div></td>
</tr>
</table>
</div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="3" valign="top" bgcolor="#FFFFFF"><div align="center">
<table width="100%" border="2" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" bordercolor="#FFFFFF">
<tr>

</tr>
</table>
<table width="100%" height="22" border="0" cellpadding="0" cellspacing="0" background="images/dbbck.gif">
<tr>
<td width="46%" background="templates/sb_brutus/images/dbbck.gif"><div align="center"></div></td>
<td width="54%" background="templates/sb_brutus/images/dbbck.gif"><div align="left"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
<?php mosLoadModules ( 'user5', -1 ); ?>
</font></div></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td width="143" rowspan="2" valign="top" bgcolor="#FFFFFF"><div align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF" bgcolor="#ABB0C3">
<tr valign="top">
<td colspan="2" height="107"><div align="center">
<table width="160" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top"><table width="13" border="0" cellspacing="5" cellpadding="0">
</table>
<div align="right">
<table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>
<?php mosLoadModules ( 'left' ); ?>
</strong></font></td>
</tr>
</table>
<br />
</div></td>
</tr>
<tr>
<td></td>
</tr>
</table>
<font size="1" face="Verdana, Arial, Helvetica, sans-serif"></font></div></td>
</tr>
</table>
<p>&nbsp;</p>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF" bgcolor="#ABB0C3">
<tr valign="top">
<td colspan="2" height="65"><div align="center">
<table width="160" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top"><table width="13" border="0" cellspacing="5" cellpadding="0">
</table>
<div align="right">
<table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><?php mosLoadModules ( 'user2' ); ?></td>
</tr>
</table>
<br />
</div></td>
</tr>
<tr>
<td></td>
</tr>
</table>
<font size="1" face="Verdana, Arial, Helvetica, sans-serif"></font></div></td>
</tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
</div>
<p>&nbsp;</p></td>
<td height="87" valign="top" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><div align="left"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><img src="templates/sb_brutus/images/blank.gif" width="8" height="20" /><strong>
<?php mosPathWay(); ?>
</strong></font> </div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" background="templates/sb_brutus/images/image_line.gif">
<tr>
<td valign="top"><div align="left"><img src="templates/sb_brutus/images/blank.gif" width="10" height="10" /></div></td>
</tr>
</table>
<table width="420" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<tr valign="top">
<td height="57">
<table width="99%" border="0" cellspacing="1" cellpadding="0" bgcolor="DADDE4" align="center">
<tr valign="top" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<td height="6">
<div align="center">
<table width="99%" height="20" border="0" align="center" cellpadding="0" cellspacing="5" bordercolor="#FFFFFF" bgcolor="#FFFFFF" hspace="2" vspace="2">
<tr>
<td height="19" align="left" valign="middle" bgcolor="#FFFFFF"><font color="#C40004" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong><?php mosLoadModules ( 'top' ); ?></strong></font>
<?php include ("mainbody.php"); ?>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">