Back to top

Autore Topic: bordo per la tabella del template  (Letto 1579 volte)

Offline paperjoomla

  • Appassionato
  • ***
  • Post: 258
  • Sesso: Maschio
    • Mostra profilo
bordo per la tabella del template
« il: 06 Mar 2007, 10:49:10 »
ciao ragazzi avrei la necessità di applicare un bordino alla tabella esterna del mio template...mi aiutate?
posto il codice:

Codice: [Seleziona]
<?php
defined
'_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
// needed to seperate the ISO number from the language file constant _ISO
$iso explode'='_ISO );
// xml prolog
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>

<?php
if ( $my->id ) {
initEditor();
}
?>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<?php mosShowHead(); ?>
<link rel="stylesheet" type="text/css" href="<?php echo $mosConfig_live_site?>/templates/dwd_hostalavista/css/template_css.css" />
<style type="text/css">
<!--
body {
margin-left: 2px;
margin-top: 4px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(sfondo.jpg);
background-repeat: repeat-x;
}
.Stile2 {color: #178aff}
.Stile3 {color: #000000}
.Stile4 {color: #cecece}
.Stile5 {color: #666666}
.Stile6 {color: #cccccc}
.Stile7 {color: #333333}
-->
</style>
<SCRIPT LANGUAGE="JavaScript">
function addBookmark(title,url) {

  var msg_netscape = "NetScape message";
  var msg_opera    = "This function does not work with this version of Opera.  Please bookmark us manually.";
  var msg_other    = "Your browser does not support automatic bookmarks.  Please bookmark us manually.";
  var agt          = navigator.userAgent.toLowerCase();


  if (agt.indexOf("opera") != -1)
  {
    if (window.opera && window.print)
    {
      return true;
    } else
    {
      alert(msg_other);
    }
  }   
  else if (agt.indexOf("firefox") != -1) window.sidebar.addPanel(title,url,"");
  else if ((agt.indexOf("msie") != -1) && (parseInt(navigator.appVersion) >=4)) window.external.AddFavorite(url,title);
  else if (agt.indexOf("netscape") != -1) window.sidebar.addPanel(title,url,"")         
  else if (window.sidebar && window.sidebar.addPanel) window.sidebar.addPanel(title,url,"");
  else alert(msg_other);
 
}
</SCRIPT>

</head>
<body>
<center>
<table width="0"  border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td  height="193" width="774" background="<?php echo $mosConfig_live_site?>/templates/dwd_hostalavista/images/header.jpg" class="title"></td>
    <td></td>
  </tr>
</table>
<table width="774" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="154" valign="top">
      <table width="154" border="0" cellspacing="0" cellpadding="0">
       
        <tr>
         
        </tr>
       
  </table>   
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><?php mosLoadModules 'left' ); ?>
              <div align="center"></div></td>
        </tr>
      </table>
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td class="bottom"><div align="left">
              <?php mosLoadModules 'user1' ); ?>
          </div></td>
        </tr>
      </table>
      <table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td height="100%">
            <?php mosLoadModules 'inset' ); ?></td>
        </tr>
      </table>
    <td width="620" valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
     
     
  <?php if (mosCountModules"user3" )) { ?>
      <tr>
        <td>&nbsp;<?php mosLoadModules 'user3', -); ?></td>
      </tr>
  <?php ?>
    </table>
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td valign="top"><table width="96%" border="0" align="center" cellpadding="4" cellspacing="0">
            <tr>
              <td valign="top" class="mainpage"><?php mosLoadModules 'top' ); ?></td>
            </tr>
          </table>
            <table width="96%" border="0" align="center" cellpadding="4" cellspacing="0">
              <tr>
                <td valign="top" class="mainpage"><?php mosMainBody(); ?>
                </td>
              </tr>
            </table>
            <table width="96%" border="0" align="center" cellpadding="4" cellspacing="0">
              <tr>
                <td valign="top" class="mainpage"><?php mosLoadModules 'bottom' ); ?></td>
              </tr>
          </table></td>
<?php if (mosCountModules"right" )) { ?>
          <td width="154" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td valign="top"><?php mosLoadModules 'right' ); ?>
                  <?php mosLoadModules 'user2' ); ?>
  </td>
            </tr>
<?php ?>
          </table>
  </td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td colspan="2" valign="top">  <div align="center">
      <?php mosLoadModules 'banner, -1' ); ?>
    </div>      </tr>
</table>
<table width="774" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td background="<?php echo $mosConfig_live_site?>/templates/dwd_hostalavista/images/dot2.gif"><img src="<?php echo $mosConfig_live_site?>/templates/dwd_hostalavista/images/pixel.png" width="1" height="3" /></td>
  </tr>
  <tr>
    <td valign="middle"><table width="32%"  border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><div class="createdate" align="left">&nbsp;&nbsp;&nbsp;<a href="index.php">Home</a> <img src="<?php echo $mosConfig_live_site?>/templates/dwd_hostalavista/images/dotvertical.gif" width="9" height="16" align="absmiddle" />&nbsp;<a href="#" onclick="javascript:window.print();">Stampa</a> <img src="<?php echo $mosConfig_live_site?>/templates/dwd_hostalavista/images/dotvertical.gif" width="9" height="16" align="absmiddle" />&nbsp;<a href="index.php?option=com_contact&Itemid=3">Contatti</a> <img src="<?php echo $mosConfig_live_site?>/templates/dwd_hostalavista/images/dotvertical.gif" width="9" height="16" align="absmiddle" /><a href="#">Top</a><br />
              <br />
        </div></td>
      </tr>
    </table></td>
  </tr>
</table>
<?php mosLoadModules'debug', -);?>
</center>
</body>
</html>
...è stato meglio lasciarci che non esserci mai incontrati...

Offline surfbit

  • Instancabile
  • ******
  • Post: 7316
  • Sesso: Maschio
  • Verranno ignorati mp tecnici
    • Mostra profilo
Re: bordo per la tabella del template
« Risposta #1 il: 06 Mar 2007, 12:06:49 »
al primo "table" che incontri metti border="1".
A volte basta un sorriso per far felice una persona.

La guida alla scelta dell'hosting per Joomla!  Joomlaspace.it: l'hosting per Joomla

Offline maria.p

  • Abituale
  • ****
  • Post: 1045
    • Mostra profilo
Re: bordo per la tabella del template
« Risposta #2 il: 06 Mar 2007, 12:21:23 »
mi sembra di capire che ci sono tante table e mettere il bordo nel primo significherebbe mettere il bordo solo nell'header, se vuole il bordo in tutto il template bisognerebbe aprire un tag table con il bordo prima del primo table esistente e inserirne uno di chiusura dopo l'ultimo table
« Ultima modifica: 06 Mar 2007, 12:35:50 da maria.p »

 



Web Design Bolzano Kreatif