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>";
}