floyd
24-11-2007, 19:33
Witam serdecznie. Temat poruszany wielokrotnie ale niestety i tak nie mogę dać sobie z tym rady :o . Przeglądnąłem odpowiednie tematy pomocy i ciągle coś nie tak. Zatem proszę o poradę co zmienić aby ukrywać lewą kolumnę wraz z modułami (ukrywanie prawej jest zrobione). Chodzi oczywiście o forum aby było na całej szerokości. Niestety strona na localu nie mogę dać podglądu.
Zawartość index.php
<?php defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); ?>
<!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>
<?php mosShowHead(); ?>
<?php if ( $my->id ) { initEditor(); } ; ?>
<?php
$collspan_offset = ( mosCountModules( 'right' ) + mosCountModules( 'user2' ) ) ? 2 : 1;
//script to determine which div setup for layout to use based on module configuration
$user1 = 0;
$user2 = 0;
$colspan = 0;
$right = 0;
// banner combos
//user1 combos
if ( mosCountModules( 'user1' ) + mosCountModules( 'user2' ) == 2) {
$user1 = 2;
$user2 = 2;
$colspan = 3;
} elseif ( mosCountModules( 'user1' ) == 1 ) {
$user1 = 1;
$colspan = 1;
} elseif ( mosCountModules( 'user2' ) == 1 ) {
$user2 = 1;
$colspan = 1;
}
//right based combos
if ( mosCountModules( 'right' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
$right = 1;
}
?>
<meta http-equiv="Content-Type" content="text/html <?php echo _ISO; ?>" />
<?php echo "<link rel=\"stylesheet\" href=\"$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template.css\" type=\"text/css\"/>" ; ?>
<?php echo "<link rel=\"stylesheet\" href=\"$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/mambo.css\" type=\"text/css\"/>" ; ?>
</head>
<body>
<div id="main-container">
<div id="block">
<div id="box-pathway">
<?php mosPathWay(); ?>
</div>
<div id="box-search">
<?php mosLoadModules ( 'user4', -1 ); ?>
</div>
<div class="clr"></div>
</div>
<!-- header -->
<div id="block">
<div id="header">
<div id="header-top"><img src="../../DOCUME%7E1/Darek/USTAWI%7E1/Temp/_tc/mv_blue_flowers/<?php echo $mosConfig_live_site;?>/templates/<? echo $GLOBALS[cur_template]; ?>%3C/div%3E%0A%09%3Cdiv%20id="header-middle">
</div>
<div id="header-bottom">
<div id="buttons" ><?php mosLoadModules ( 'user3' ); ?></div>
</div>
</div>
<div id="box-top">
<?php
if (
mosCountModules( 'top' ) ) {
mosLoadModules ( 'top' );
} else {
?>
<span class="error">Top Module Empty</span>
<?php } ?>
</div>
<div class="clr"></div>
</div>
<!-- Body -->
<div id="block">
<div id="box-left">
<?php mosLoadModules ( 'left' ); ?>
</div>
<div id="box-content">
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="content-table">
<tr valign="top"><td width="100%">
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="content-table">
<?php if ($colspan > 0) { ?>
<tr valign="top">
<?php if ( $user1 > 0 ) { ?>
<td width="50%">
<div class="user1-inner"><?php mosLoadModules ( 'user1' ); ?></div>
</td>
<?php } if ( $colspan == 3) { ?>
<td width="2">
<img src="../../DOCUME%7E1/Darek/USTAWI%7E1/Temp/_tc/mv_blue_flowers/<?php echo $mosConfig_live_site;?>/templates/<? echo $GLOBALS[cur_template]; ?>/images/spacer.png" alt="" border="0" height="1" width="2"/>
</td>
<?php } if ( $user2 > 0 ) { ?>
<td width="50%">
<div class="user2-inner"><?php mosLoadModules ( 'user2' ); ?></div>
</td>
<?php } ?>
</tr><tr>
<td colspan="<?php echo $colspan; ?>">
<img src="../../DOCUME%7E1/Darek/USTAWI%7E1/Temp/_tc/mv_blue_flowers/<?php echo $mosConfig_live_site;?>/templates/<? echo $GLOBALS[cur_template]; ?>/images/spacer.png" alt="" border="0" height="2" width="1"/><br />
</td></tr>
<?php } ?>
<tr><td colspan="<?php echo $colspan; ?>" class="body-outer">
<?php mosMainBody(); ?>
</td>
</tr>
</table>
</td>
<?php if ( $right > 0 ) { ?>
<td>
<div id="box-right">
<?php mosLoadModules ( 'right' ); ?>
</div>
</td>
<?php } ?>
</tr></table>
</div>
<div class="clr"></div>
</div>
<div id="block">
<div id="box-footer">
<?php if ( mosCountModules ('banner') ) { ?>
<div id="banner-outer" >
<?php mosLoadModules( 'banner', -1 ); ?>
</div>
<?php } ?>
<?php include_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/footer.php' ); ?>
</div>
<div class="clr"></div>
</div>
</div>
</body>
</html>
<?php mosLoadModules( 'debug', -1 );?>a tu zawartość template css
/* CSS TEMPLATE */
.clr {
clear: both;
}
#main-container{
width:757px !important;
width /**/: 761px;
width/**/:/**/757px;
margin: 0 auto;
border: 1px solid #ccc;
padding: 4px 5px;
background: #fff;
text-align:left;
}
#block {
display: inherit !important;
display: block;
margin: 0;
border: 0;
padding: 1px 0;
clear: both;
}
#box-pathway {
float: left;
width: 576px !important;
width: 576px;
height: 14px !important;
height: 14px;
margin: 0;
border: 1px solid #ccc;
padding: 3px 5px;
background: #248 url("../images/head_bg.png") no-repeat 0px 0px;
}
#box-search {
float: right;
width: 165px !important;
width: 169px;
height: 20px !important;
height: 20px;
margin: 0;
border: 1px solid #ccc;
padding: 0;
overflow: hidden;
background: #248 url("../images/head_bg.png") no-repeat -589px 0px;
}
#box-search .inputbox {
border: 0;
padding: 3px;
font: bold 11px/normal arial, helvetica, sans-serif;
color: #fff;
background: transparent url(../images/hea-der.png) no-repeat -589px 0px;
}
.error {
font:italic bold 14px/normal Arial, Helvetica, sans-serif;
padding: 5px;
color: #ccc;
text-transform: uppercase;
}
/* ---- HEADER ----- */
#header {
float:left;
margin: 0;
border: 1px solid #ccc;
padding: 0px;
width: 586px;
height: 164px;
background: #248 url("../images/head_bg.png") no-repeat 0px -22px;
}
#header-top, #header-middle, #header-bottom {
margin: 0px;
padding: 0px;
clear:both;
overflow:hidden;
}
#header-top {
height: 100px;
}
#header-middle {
height: 44px !important;
height: 45px;
}
#buttons {
padding: 1px 1px !important;
padding: 1px 0px;
clear:both;
height:18px;
overflow:hidden;
}
#box-top{
float:right;
width: 161px !important;
width: 165px;
height: 160px !important;
height: 161px;
margin: 0;
border: 1px solid #ccc;
padding: 2px;
overflow: auto;
background: #248 url("../images/head_bg.png") no-repeat -589px -22px;
background-attachment: inherit !important;
background-attachment:fixed;
}
/* --- BODY --- */
#box-left {
float: left;
margin: 0;
border: 1px solid #ccc;
padding: 2px;
width: 163px !important;
width: 163px;
}
#box-content {
float: right;
display: inherit !important;
display: block;
margin: 0;
border: 0;
padding: 0;
width: 586px !important;
width: 590px;
}
#box-right {
float: right;
margin: 0 0 0 2px !important;
margin: 0 0 0 1px;
border: 1px solid #ccc;
padding: 2px;
width: 161px !important;
width: 165px;
}
/* --- MODULES --- */
.user1-inner {
float: none !important;
float: left;
border: 1px solid #ccc;
margin: 0;
padding: 2px;
}
.user2-inner {
float: none !important;
float: left;
border: 1px solid #ccc;
margin: 0;
padding: 2px;
}
table td.body-outer {
margin: 0;
padding: 2px;
border: 1px solid #ccc;
}
#active-menu {
color:#fc0;
font-weight: bold;
}
a#active-menu:hover {
color: #E50;
}
.maintitle {
color: #fff;
font-size: 40px;
padding-left: 15px;
padding-top: 20px;
}
#box-footer {
clear:both;
margin: 0;
border: 1px solid #CCC;
padding: 2px;
text-align:center;
background: #248 url("../images/head_bg.png") no-repeat center bottom;
}
#banner-outer {}
#banner-outer img {
width: 468px;
height: 60px;
padding: 0;
border: 0;
margin: 2px auto;
clear:both;
}
#box-footer div {
clear:both;
color: #fff;
margin: 2px auto 4px auto;
border: 0;
padding: 0px;
}
Zawartość index.php
<?php defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); ?>
<!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>
<?php mosShowHead(); ?>
<?php if ( $my->id ) { initEditor(); } ; ?>
<?php
$collspan_offset = ( mosCountModules( 'right' ) + mosCountModules( 'user2' ) ) ? 2 : 1;
//script to determine which div setup for layout to use based on module configuration
$user1 = 0;
$user2 = 0;
$colspan = 0;
$right = 0;
// banner combos
//user1 combos
if ( mosCountModules( 'user1' ) + mosCountModules( 'user2' ) == 2) {
$user1 = 2;
$user2 = 2;
$colspan = 3;
} elseif ( mosCountModules( 'user1' ) == 1 ) {
$user1 = 1;
$colspan = 1;
} elseif ( mosCountModules( 'user2' ) == 1 ) {
$user2 = 1;
$colspan = 1;
}
//right based combos
if ( mosCountModules( 'right' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
$right = 1;
}
?>
<meta http-equiv="Content-Type" content="text/html <?php echo _ISO; ?>" />
<?php echo "<link rel=\"stylesheet\" href=\"$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template.css\" type=\"text/css\"/>" ; ?>
<?php echo "<link rel=\"stylesheet\" href=\"$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/mambo.css\" type=\"text/css\"/>" ; ?>
</head>
<body>
<div id="main-container">
<div id="block">
<div id="box-pathway">
<?php mosPathWay(); ?>
</div>
<div id="box-search">
<?php mosLoadModules ( 'user4', -1 ); ?>
</div>
<div class="clr"></div>
</div>
<!-- header -->
<div id="block">
<div id="header">
<div id="header-top"><img src="../../DOCUME%7E1/Darek/USTAWI%7E1/Temp/_tc/mv_blue_flowers/<?php echo $mosConfig_live_site;?>/templates/<? echo $GLOBALS[cur_template]; ?>%3C/div%3E%0A%09%3Cdiv%20id="header-middle">
</div>
<div id="header-bottom">
<div id="buttons" ><?php mosLoadModules ( 'user3' ); ?></div>
</div>
</div>
<div id="box-top">
<?php
if (
mosCountModules( 'top' ) ) {
mosLoadModules ( 'top' );
} else {
?>
<span class="error">Top Module Empty</span>
<?php } ?>
</div>
<div class="clr"></div>
</div>
<!-- Body -->
<div id="block">
<div id="box-left">
<?php mosLoadModules ( 'left' ); ?>
</div>
<div id="box-content">
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="content-table">
<tr valign="top"><td width="100%">
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="content-table">
<?php if ($colspan > 0) { ?>
<tr valign="top">
<?php if ( $user1 > 0 ) { ?>
<td width="50%">
<div class="user1-inner"><?php mosLoadModules ( 'user1' ); ?></div>
</td>
<?php } if ( $colspan == 3) { ?>
<td width="2">
<img src="../../DOCUME%7E1/Darek/USTAWI%7E1/Temp/_tc/mv_blue_flowers/<?php echo $mosConfig_live_site;?>/templates/<? echo $GLOBALS[cur_template]; ?>/images/spacer.png" alt="" border="0" height="1" width="2"/>
</td>
<?php } if ( $user2 > 0 ) { ?>
<td width="50%">
<div class="user2-inner"><?php mosLoadModules ( 'user2' ); ?></div>
</td>
<?php } ?>
</tr><tr>
<td colspan="<?php echo $colspan; ?>">
<img src="../../DOCUME%7E1/Darek/USTAWI%7E1/Temp/_tc/mv_blue_flowers/<?php echo $mosConfig_live_site;?>/templates/<? echo $GLOBALS[cur_template]; ?>/images/spacer.png" alt="" border="0" height="2" width="1"/><br />
</td></tr>
<?php } ?>
<tr><td colspan="<?php echo $colspan; ?>" class="body-outer">
<?php mosMainBody(); ?>
</td>
</tr>
</table>
</td>
<?php if ( $right > 0 ) { ?>
<td>
<div id="box-right">
<?php mosLoadModules ( 'right' ); ?>
</div>
</td>
<?php } ?>
</tr></table>
</div>
<div class="clr"></div>
</div>
<div id="block">
<div id="box-footer">
<?php if ( mosCountModules ('banner') ) { ?>
<div id="banner-outer" >
<?php mosLoadModules( 'banner', -1 ); ?>
</div>
<?php } ?>
<?php include_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/footer.php' ); ?>
</div>
<div class="clr"></div>
</div>
</div>
</body>
</html>
<?php mosLoadModules( 'debug', -1 );?>a tu zawartość template css
/* CSS TEMPLATE */
.clr {
clear: both;
}
#main-container{
width:757px !important;
width /**/: 761px;
width/**/:/**/757px;
margin: 0 auto;
border: 1px solid #ccc;
padding: 4px 5px;
background: #fff;
text-align:left;
}
#block {
display: inherit !important;
display: block;
margin: 0;
border: 0;
padding: 1px 0;
clear: both;
}
#box-pathway {
float: left;
width: 576px !important;
width: 576px;
height: 14px !important;
height: 14px;
margin: 0;
border: 1px solid #ccc;
padding: 3px 5px;
background: #248 url("../images/head_bg.png") no-repeat 0px 0px;
}
#box-search {
float: right;
width: 165px !important;
width: 169px;
height: 20px !important;
height: 20px;
margin: 0;
border: 1px solid #ccc;
padding: 0;
overflow: hidden;
background: #248 url("../images/head_bg.png") no-repeat -589px 0px;
}
#box-search .inputbox {
border: 0;
padding: 3px;
font: bold 11px/normal arial, helvetica, sans-serif;
color: #fff;
background: transparent url(../images/hea-der.png) no-repeat -589px 0px;
}
.error {
font:italic bold 14px/normal Arial, Helvetica, sans-serif;
padding: 5px;
color: #ccc;
text-transform: uppercase;
}
/* ---- HEADER ----- */
#header {
float:left;
margin: 0;
border: 1px solid #ccc;
padding: 0px;
width: 586px;
height: 164px;
background: #248 url("../images/head_bg.png") no-repeat 0px -22px;
}
#header-top, #header-middle, #header-bottom {
margin: 0px;
padding: 0px;
clear:both;
overflow:hidden;
}
#header-top {
height: 100px;
}
#header-middle {
height: 44px !important;
height: 45px;
}
#buttons {
padding: 1px 1px !important;
padding: 1px 0px;
clear:both;
height:18px;
overflow:hidden;
}
#box-top{
float:right;
width: 161px !important;
width: 165px;
height: 160px !important;
height: 161px;
margin: 0;
border: 1px solid #ccc;
padding: 2px;
overflow: auto;
background: #248 url("../images/head_bg.png") no-repeat -589px -22px;
background-attachment: inherit !important;
background-attachment:fixed;
}
/* --- BODY --- */
#box-left {
float: left;
margin: 0;
border: 1px solid #ccc;
padding: 2px;
width: 163px !important;
width: 163px;
}
#box-content {
float: right;
display: inherit !important;
display: block;
margin: 0;
border: 0;
padding: 0;
width: 586px !important;
width: 590px;
}
#box-right {
float: right;
margin: 0 0 0 2px !important;
margin: 0 0 0 1px;
border: 1px solid #ccc;
padding: 2px;
width: 161px !important;
width: 165px;
}
/* --- MODULES --- */
.user1-inner {
float: none !important;
float: left;
border: 1px solid #ccc;
margin: 0;
padding: 2px;
}
.user2-inner {
float: none !important;
float: left;
border: 1px solid #ccc;
margin: 0;
padding: 2px;
}
table td.body-outer {
margin: 0;
padding: 2px;
border: 1px solid #ccc;
}
#active-menu {
color:#fc0;
font-weight: bold;
}
a#active-menu:hover {
color: #E50;
}
.maintitle {
color: #fff;
font-size: 40px;
padding-left: 15px;
padding-top: 20px;
}
#box-footer {
clear:both;
margin: 0;
border: 1px solid #CCC;
padding: 2px;
text-align:center;
background: #248 url("../images/head_bg.png") no-repeat center bottom;
}
#banner-outer {}
#banner-outer img {
width: 468px;
height: 60px;
padding: 0;
border: 0;
margin: 2px auto;
clear:both;
}
#box-footer div {
clear:both;
color: #fff;
margin: 2px auto 4px auto;
border: 0;
padding: 0px;
}