Ver Mensaje Individual
  #2 (permalink)  
Antiguo 06/05/2005, 07:48
Avatar de Seppo
Seppo
 
Fecha de Ingreso: marzo-2005
Ubicación: Buenos Aires, Argentina
Mensajes: 1.284
Antigüedad: 19 años, 1 mes
Puntos: 17
Claro. Dentro de una función no se toman los valores de las variables... podrías hacer así:
¿index.php?
Código PHP:
include("conf.php");
include(
"funcs/html_parts.php");
cabecera_html();
    
if (empty(
$_SESSION['SES_nombre']))
{        
//Si no esta logueado...
        
panel_log($lang['LogName'],$lang['Password']);



html_parts:
Código PHP:
function panel_log($logname$password)
{    echo 
"<table border='0' width=100% height=100% style class='log'>
    <tr>
        <td colspan='4'></td>
    </tr>
    <tr>
    <td rowspan='5' width='300'></td>
    <td width='100' height='20'>    "
.$logname.":    </td>
    <td></td>
    <td rowspan='5' width='300'>    </td>
    </tr>
    <tr>
    <td colspan='2' height='20'><input type='text' size='20' maxlength='12'>        </td>
    </tr>
    <tr>
    <td width='100'  height='20'>"
.$password.":</td>
    <td>    </td>
    </tr>
    <tr><td colspan='2'  height='20'><input type='text' size='20' maxlength='12'>                    
    </td>
    </tr>
    <tr>
    <td colspan='2' height='20'>     <input type='submit' value='Entrar'>                </td>
    </tr>
    <tr>    
    <td colspan='4'>        </td>
    </tr>
    </table>"
;