Foros del Web » Programando para Internet » Javascript »

no funciona el sortable

Estas en el tema de no funciona el sortable en el foro de Javascript en Foros del Web. hola estoy nuevo en el area y me estoy inicando tengo un problema hago una consulta a base de datos y quiero organizarlos esta funcion ...
  #1 (permalink)  
Antiguo 20/11/2006, 22:07
 
Fecha de Ingreso: junio-2006
Mensajes: 175
Antigüedad: 17 años, 10 meses
Puntos: 0
no funciona el sortable

hola estoy nuevo en el area y me estoy inicando tengo un problema hago una consulta a base de datos y quiero organizarlos esta funcion es muy util pero no lo hace aqui esta mi codigo cualquier ayuda se los agradezco...
<?
//incluir la conexion
include("conexion.php");
$rodo=Conectarse();
include("fecha.php");
$Sql="SELECT `id`,`cod_pc`,`fecha_sol`, `cod_estatus` FROM bd_solicitud WHERE cod_estatus='1' OR cod_estatus='2'";
$resultado=mysql_query($Sql,$rodo)or die("La consulta 0 de contiene algún error");

?>

<head>
<script src="sorttable.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
<style type="text/css">


td img {display: block;}td img {display: block;}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a:active {
text-decoration: none;
}
td img {display: block;}td img {display: block;}
.Estilo23 {font-weight: bold; color: #FFFFFF;}
.Estilo25 {font-size: 12px}
.Estilo27 {font-family: "Arial Black"; color: #27769C; font-size: 12px; }
.Estilo29 {font-size: 18px}
</style>
</head>

<body>
<table width="806" height="538" border="0" align="center">
<tr>
<th height="256" colspan="2"><p align="center">
<object width="780" height="215" align="top">
<embed src="administracion.swf" width="780" height="215" align="top"></embed>
</object>
<img src="images/subamin.jpg" width="780" height="39" border="0" align="baseline" /></p> </th>
</tr>
<tr>
<td height="79" colspan="2" nowrap="nowrap"><div align="center"><img src="Export/bandeja de entrada.jpg" width="800" height="123" /></div></td>
</tr>

<tr>
<td height="21" colspan="2" nowrap="nowrap"><table width="777" border="0">
<tr>
<td class="Estilo27 Estilo29">Seleccione un servicio a procesar.... </td>
<td>&nbsp;</td>
</tr>
</table></td>
</tr>



<tr bgcolor="#27769C">
<td width="795" height="23" bgcolor="#FFFFFF"><form id="form1" name="form1" method="post" action="sevicio.php">
<div align="center">
<table width="795" border="0">
<tr>
<td width="680" height="116"><table width="680" border="1" align="center" class="sortable" id="01">
<tr valign="middle">
<td width="22" bgcolor="#27769C" class="Estilo25">&nbsp;</td>
<td width="174" height="23" bgcolor="#27769C" class="Estilo25"><div align="center"><span class="Estilo23">USUARIO</span></div></td>
<td width="95" bgcolor="#27769C" class="Estilo25"><div align="center"><span class="Estilo23">FECHA</span></div></td>
<td width="165" bgcolor="#27769C" class="Estilo25"><div align="center"><span class="Estilo23">ESTATUS </span> </div></td>
<td width="218" bgcolor="#27769C" class="Estilo25"><div align="center"><span class="Estilo23">FUNCIOANRIO </span></div></td>
</tr>
<?php $i='0';
while ($row = mysql_fetch_array($resultado)){ $i++;?>
<tr valign="middle">
<td width="22" bgcolor="#FFFFFF" class="Estilo27"><label>
<?php echo '<input type="radio" id="rb'.$row.'" name=cid[] value="'.$row['id'].'" />'?>
</label></td>

<td width="174" height="32" bgcolor="#FFFFFF" class="Estilo27"><label></label>
<div align="center"><span class="Estilo25">
<?php $cod_pc=$row["cod_pc"];
$sql8="select cod_dep, usuario from bd_pc where cod_pc=$cod_pc";
$result8=mysql_query($sql8,$rodo)or die("La consulta 0 de contiene algún error");
while ($row8=mysql_fetch_array($result8)){$cod_dep=$row8["cod_dep"];
$usuario=$row8["usuario"];
}?>
<input name="usuario<?php echo $row['id'];?>" type="text" id="usuario" value="<?php echo $usuario;?>"/>
</span></div>
</label></td>
<td width="95" bgcolor="#FFFFFF" class="Estilo25"><label></label>
<div align="center">
<?php $fecha2=fecha($row['fecha_sol']);?>
<input name="fecha<?php echo $row['id'];?>" type="text" id="fecha" value="<?php echo $fecha2;?>" size="12"/>
</div> </td>
<td width="165" bgcolor="#FFFFFF" class="Estilo25"><label></label>

<div align="center">
<?php $estatus=$row["cod_estatus"];
$sql2="SELECT descripcion FROM bd_estatus WHERE cod_estatus= $estatus";
$resultado2=mysql_query($sql2,$rodo)or die("La consulta 1 de contiene algún error");
while ($row2 = mysql_fetch_array($resultado2)){?>
<input name="estatus<?php echo $row['id'];?>" type="text" id="estatus" value="<?php echo $row2['descripcion'];?>" size="20"/>
</div> </td>
<?php };?>
<td width="218" bgcolor="#FFFFFF" class="Estilo25">
<div align="center">
<?php
$sql3="select piso from bd_departamento where cod_dep=$cod_dep";
$resultado3=mysql_query($sql3,$rodo)or die("La consulta 2 de contiene algún error");
while ($row3 = mysql_fetch_array($resultado3)){
$piso=$row3["piso"];}
$sql4="select nombre_fun, apellido_fun from bd_funcionario where ptiso_fun=$piso";
$resultado4=mysql_query($sql4,$rodo)or die("La consulta 3 de contiene algún error");
while ($row4 = mysql_fetch_array($resultado4)){
?>
<input name="funcionario<?php echo $row['id'];?>" type="text" id="funcionario" value="<?php echo $row4['nombre_fun']." ".$row4['apellido_fun'];?>"/>
</div></td>
</tr>
<?php };?>
<?php };?>

</table></td>
<td width="105"><table width="105" border="0">
<tr>
<td width="99"><div align="center"><img src="Export/procesar.png" width="99" height="79" /></div></td>
</tr>
<tr>
<td><div align="center">
<input name="Submit" type="submit" class="Estilo27" value="Procesar" />
</div></td>
</tr>
</table></td>
</tr>
</table>
</div>
</form> </td>
<td width="1" bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="23" colspan="2"><table width="615" border="0" align="right">
<tr>
<td width="431" height="24" class="Estilo27"><div align="right">El n&uacute;mero total de solicitudes encontradas es de : </div></td>
<td width="31" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF"><label>
<input name="numero_total_sol" type="text" class="Estilo27" id="numero_total_sol" value="<?php echo $i;?> " size="4"/>
</label></td>
<td width="139" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td height="23" colspan="2"><div align="center"><img src="images/barraabajo.jpg" width="787" height="30" /></div></td>
</tr>
<tr>
<td height="23" colspan="2"><div align="center"><img src="images/copy.jpg" width="778" height="30" /></div></td>
</tr>
</table>
</body>
</html>
  #2 (permalink)  
Antiguo 24/02/2007, 09:37
Avatar de derkenuke
Colaborador
 
Fecha de Ingreso: octubre-2003
Ubicación: self.location.href
Mensajes: 2.665
Antigüedad: 20 años, 6 meses
Puntos: 45
Re: no funciona el sortable

Está muy bien esa pasta de HTML, pero si no pones el código js no nos sirve absolutamente para nada...
__________________
- Haz preguntas inteligentes, y obtendrás más y mejores respuestas.
- Antes de postearlo Inténtalo y Búscalo.
- Escribe correctamente tus mensajes.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:49.