Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it
    Registrato dal
    Aug 2006
    Messaggi
    833

    Spazi prima di una tabella in un div

    Ciao, volevo chiedervi come posso fare per emettere la tabella che ho definito dentro al div
    attaccata al bordo del div perche' come e' adesso lascia uno spazio prima di stamparla.
    posto il codice


    <html>
    <?php
    define("PAGE_TITLE", "Scelta Server");
    define("PHP_FILE_NAME", "srvrq3.php")
    ?>
    <title>Gestione Richieste di Assistenza</title>

    <style type="text/css">
    body {margin:0px}
    body{font: 76%/1.1 Arial,Verdana,sans-serif}
    div.box{width:0px;width /**/:500px;
    height:0px;height /**/: 309px;
    overflow:auto;padding: 0px;
    border:0px solid #000000;border-right:3 solid;
    background: #F7F7F7;
    repeat-x fixed top left}

    div.box p{margin-top:0}
    .style14 {
    font-size: 24px;
    font-weight: bold;
    }

    body {
    background-attachment:"fixed";
    background-repeat:"repeat";
    cursor: Default; text-decoration: none;
    scrollbar-arrow-color: #000000;
    scrollbar-base-color: #666666;
    scrollbar-dark-shadow-color: #666666;
    scrollbar-track-color: #666666;
    scrollbar-face-color: #666666;
    scrollbar-shadow-color: #999999;
    scrollbar-highlight-color: #999999;
    scrollbar-3d-light-color: #666666;
    backgroundcolor: #666666
    }


    </style>
    <head>






    </head>

    <body style="overflow:hidden;" bgcolor="#F7F7F7" leftmargin="0" rightmargin="0" topmargin="0">

    <table border="1" width="100%" >
    <tr>
    <td width="150" height="50">SSI </td>

    <td>



    Gestione Richieste di Assistenza
    </td>
    </tr>

    <tr>
    <td width="110">
    </td>
    <td rowspan="2" valign="top">


    <?php print'Effettuare una scelta'; ?>



    <?php print( date("d M Y H:i:s", time()) ); ?></p>


    Data/ora immissione
    Chiamata

    Prodotto/versione

    Stato


    <div class="box" align="left">


    <?php
    session_start();

    /* Apertura connessione al database*/
    include("connection.inc");




    /* Costruzione dello statement SQL da eseguire */

    $sql = "select *
    from ACSSI_DAT.srvrq00f
    where srvcli = '$_SESSION[customerCLSCLI]'
    order by srvdat desc ";


    /* Esecuzione diretta dello stament SQL */
    $stmt = db2_exec($dbh, $sql, array('cursor' => DB2_SCROLLABLE));

    print '
    <table border=1 cellpadding6 cellspacing=0 bordercolor="#666666">';


    while ($row = db2_fetch_array($stmt)) {
    if (!$row=="") {
    $customerSRVDAT = $row[18];
    $customerSRVORA = $row[19];
    $customerSRVNUM = $row[8];
    $customerSRVPRO = $row[9];
    $customerSRVVER = $row[10];
    $customerSRVCAS = $row[21];
    $customerSRVSRN = $row[11];
    $customerSRVMOD = $row[12];
    $customerSRVNSP = $row[13];
    $customerSRVPER = $row[17];
    $customerSRVMOT = $row[20];
    $customerSRVSOL = $row[22];
    $customerSRVCLI = $row[7];

    ?>
    <tr>
    <td align="left" width="100">
    <a href="srvrq13.php?customerSRVCLI=<?php echo($customerSRVCLI);?>
    &customerSRVDAT=<?php echo($customerSRVDAT);?>
    &customerSRVORA=<?php echo($customerSRVORA);?>
    &customerSRVNUM=<?php echo($customerSRVNUM);?>
    &customerSRVPRO=<?php echo($customerSRVPRO);?>
    &customerSRVVER=<?php echo($customerSRVVER);?>
    &customerSRVCAS=<?php echo($customerSRVCAS);?>
    &customerSRVSRN=<?php echo($customerSRVSRN);?>
    &customerSRVMOD=<?php echo($customerSRVMOD);?>
    &customerSRVNSP=<?php echo($customerSRVNSP);?>
    &customerSRVPER=<?php echo($customerSRVPER);?>
    &customerSRVMOT=<?php echo($customerSRVMOT);?>
    &customerSRVSOL=<?php echo($customerSRVSOL);?>"'>


    <?php echo($customerSRVDAT);?></a>
    </td>
    <td width="78"><?php echo($customerSRVORA);?></td>
    <td width="75"><?php echo($customerSRVNUM);?></td>
    <td width="100"><?php echo($customerSRVPRO);?></td>
    <td width="50"><?php echo($customerSRVVER);?></td>
    <td width="50"><?php echo($customerSRVCAS);?></td>
    </tr>


    <?php


    }

    }



    print '</table>
    ';
    if ($customerSRVDAT=="") {
    ?>


    </p>



    </p>


    <font size="4">"Non esistono dati per le condizioni scelte "</font>
    </p>

    <?php
    }
    ?>

    </div>



    </td>
    </tr>
    <tr>
    <td width="110" height="344" valign="top">

    <?php

    print '<form action="srvrq4.php" name="close" method="POST">';
    print '<input type="submit" name="close" value="Close " /></form>';
    print '<form action="srvrq1.php" method="POST">';
    print '<input type="submit" name="action" value="Back " /></form>';
    ?>

    </td>


    </tr>
    </table>


    </body>
    </html>


  2. #2
    Utente di HTML.it
    Registrato dal
    Aug 2006
    Messaggi
    833
    Scusate non avevo visto il br nel print della table.
    Ciao

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.