Variabili e No Frame

L'applicazione non ha frame e da quello che so sul php e le pagine vengono incluse una dentro l'altra tranne per il logon, volevo sapere se gli altri pezzi posso snellire il codice mettendo la variabile a nel file b e c che contiene la ragione sociale? Attualmente utilizzo le sessioni č corretto?

inviato 8 anni fa
EKELON77
X 0 X

eh?  ???

Forse dovresti spiegarti meglio...

risposto 8 anni fa
Massimiliano Arione
X 0 X

 :) come posso spiegare, ecco ho trovato:

<?
 session_start();
include_once ('./script_php/common_script.php');
?>
<html>
   <head>
      <title>.:: E.G.A. 2008 Web Application - Elenco.Generale.Attivita' Web ::.</title>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <link href="css/egawebstyles.css" rel="stylesheet" media="screen" type="text/css"/>
      <script type="text/javascript" src="script_js/common_script.js"></script>
   </head>
   <body leftmargin="0" topmargin="0" bgcolor="#ffffff" marginheight="0" marginwidth="0"><center/>
      <table class="frame" bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" height="580" width="100%">
      <tbody>
         <? 
         callSezione('includephp/banner.php');
         ?>
         <tr valign="top">
            <td>
               <table border="0" cellpadding="0" cellspacing="0" height="400" width="100%">

                  <tbody>
                     <tr>
                        <td class="bordo_menu" valign="top" width="21%">
                           <table align="center" width="95%">
                              <tbody>
                                 <tr> 
                                    <td valign="top" align="center">  
                                       <img src="images/logo.gif" alt="Logo Enterprise SpA">
                                    </td>
                                 </tr>
                                 <tr>
                                    <td>&nbsp;</td>
                                 </tr>
                                 <tr>
                                    <td class="text_menu_left" height="30"> 
                                       <b>Menu</b>
                                    </td>
                                 </tr>
                                 <tr>
                                    <td class="menu-opz" onmouseover="this.className='menu-opz-over'" onmouseout="this.className='menu-opz'" class="bordo_menu">
                                       <a href="index.php" title="Home">Home</a>
                                    </td>
                                 </tr>
                              </tbody>
                           </table>
                        </td>
                        <td class="bordo_menu" valign="top" width="79%">
                           <table align="center" border="0" width="100%">
                              <tbody>
                                      <tr valign="top">
                                    <td class="bordo_menu" bgcolor="lightyellow" align="center">
                                       <font color="Navy"><b><i>EGA WEB APPLICATION<b></i></font>
                                    </td>
                                 </tr>
                                 <tr>
                                    <td colspan="2" class="bordo_menu" align="center" height="430">
                                        <? 
                                        callSezione('paginephp/form_login.php'); 
                                        ?>
                                    </td>
                                 </tr>
                                 <?
                                 callSezione ('includephp/footer.php')
                                 ?>
</body>
</html>                                 

, la funzione č callsezione č in  realta un include e dentro ci sono le variabili come:                            </tbody>                            </table>                         </td>                      </tr>                   </table>                </td>             </tr>             <tr>                <td class="text_footer" align="center">&nbsp;</td>             </tr>          </tbody>       </table>       <table border="0">          <tbody>          <? if ((empty($menu)  && $matricola !='' && $descrmenu == '') || (isset($menu)  && $matricola !='' && $descrmenu == '')) { //Effettuato LOG-ON ?>                      <tr>             <td>                   <? echo $errorstringmenu ?>             </td>          </tr>          <?}?>             <tr class="copyright">             <td colspan="10" align="center" valign="middle">                Copyright &copy 2008             </td>             <td>                <a href="http://www.enterprisespa.it" target="_black"><b>Enterprise SpA</b></a>             </td>             <td>                  All rights reserved             </td>                      </tr>        </tbody>     </table> spero di essere stato chiaro, e come nota utilizzo la versione di php 4.4.0 del project open surce pdrive.

risposto 8 anni fa
EKELON77
modificato 8 anni fa
X 0 X
Effettua l'accesso o registrati per rispondere a questa domanda