Ver Mensaje Individual
  #3 (permalink)  
Antiguo 05/05/2004, 07:32
nesetru123
 
Fecha de Ingreso: mayo-2004
Mensajes: 101
Antigüedad: 19 años, 11 meses
Puntos: 0
Hola, añado el codigo para que le pegeis un vistazo pero yo realmente no se de donde se saca esa ruta, ya que no la veo en ningun archivo de configuracion :S

No puede estar esa ruta en algun archivo de configuracion el cual yo no he cambiado ?

Gracias

<?php
include("inc/valida.inc.php");
include("../fijos/inc/conecta.inc.php");
$tabla = "is_propietario";
$campos = "IDPROP, NOMBRE, APELLIDO1, APELLIDO2, TFIJO, TMOVIL";
$ordena = "APELLIDO1";
include("inc/paginacion.inc.php");

?>
<html>
<head>
<title> &gt;&gt; MODULO DE ADMINISTRACION</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css/admin.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/javascript">
<!--
function fjcsMandaForm(elId, accion){
document.formAction.idprop.value = elId;
document.formAction.action = accion;
if(document.formAction.action=="delete.php"){
if(confirm("Vas a BORRAR un PROPIETARIO de la Base de Datos,\nSi este propietario tiene inmuebles de su propiedad, \nestos inmuebles serán eliminados por completo.\nsi estás seguro de ello pulsa Aceptar.\nSi no estás seguro o tienes dudas, pulsa Cancelar")){
document.formAction.submit();
}
}else{
document.formAction.submit();
}
}
-->
</script>
</head>
<body bgcolor="#CC0000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<center>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>

<td align="center" valign="top">
<center>
<img src="imagen/admin.gif" width="520" height="30"> <BR>
<BR>
</center>
<table width="600" height="400" border="0" align="center" cellpadding="10" cellspacing="0" class="tablaMadre">
<tr>

<td height="35" align="center" valign="top"><span class="titulos">PROPIETARIOS</span>
<?php include("inc/menu.inc.php")?>
</tr>
<tr>
<td align="center" valign="top"><?php echo $txt; ?><br>
<?php
$db = sel();
init_paginacion();
pinta("cabecera");
$consulta = mysql_query("SELECT " . $campos . " FROM " . $tabla . " ORDER BY " . $ordena . " ASC LIMIT ".$from_reg.",".$reg_pag,$db);
if($row = mysql_fetch_array($consulta)){
?>
<form name="formAction" method="post">
<INPUT name="idprop" type="hidden" id="idprop">
<INPUT type="hidden" name="pagina" value="<?php echo 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'].'?'?>">
<INPUT type="hidden" name="tabla" value="is_propietario">
<table width="580" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50" align="center" class="txt1">ID</td>
<td width="80"> </td>
<td width="200" class="txt1">NOMBRE Y APELLIDOS</td>

<td width="120" align="right" class="txt1">TLF.FIJO</td>

<td width="130" align="right" class="txt1">TLF.MOVIL</td>
</tr>
<tr>
<td colspan="5" class="txt1">&nbsp;</td>
</tr>
<?php
if($_SESSION[nivelacc]==1){
$borrado = 'fjcsMandaForm(' . $row["IDPROP"]. ',\'delete.php\');';
}else{
$borrado = 'alert(\'Solo le está permitido borrar registros a los administradores de la aplicación\');';
}
do{
echo '<tr>';
echo '<td width="50" align="center" class="tablaMadre"><b>&nbsp;'.$row["IDPROP"].'</b></td>';
echo '<td width="80" align="center"><A href="#" onClick="' . $borrado . '"><IMG src="imagen/borra_ico.gif" alt="Eliminar propietario" width="14" height="14" border="0"></A> <A href="#" onClick="fjcsMandaForm(' . $row["IDPROP"]. ',\'modificar_prop.php\')"><IMG src="imagen/edit_ico.gif" alt="Editar datos" width="14" height="14" border="0"></A> <A href="#" onClick="fjcsMandaForm(' . $row["IDPROP"]. ',\'consulta_prop.php\')"><IMG src="imagen/llave_ico.gif" alt="Datos del propietario/a" width="14" height="14" border="0"></A></td>';
echo '<td width="200" class="tablaMadre"><b>&nbsp;'.$row["APELLIDO1"].' '.$row["APELLIDO2"].', '.$row["NOMBRE"].'</b></td>';
echo '<td width="120" align="right" class="tablaMadre"><b>&nbsp;'.$row["TFIJO"].'</b></td>';
echo '<td width="130" align="right" class="tablaMadre"><b>&nbsp;'.$row["TMOVIL"].'</b></td>';
echo '</tr>';
$reg_num++;
}while($row = mysql_fetch_array($consulta));
?> </table></form>
<?php
pinta("menu");
}
?>
</td>
</tr>
</table>

</td>
</tr>
</table>
</center>
</body>
</html>