zebra_pagination no lee css, php y mysql
Publicado por daniel (50 intervenciones) el 22/08/2014 05:55:12
hola a todos espero que me puedan ayudar....
el problema es el siguiente estoy tratando de paginar mi web con zebra pagination...
hice pruebas y todo resulto bien pero a la hora de probarlo en el index de mi web pasò que no leia el css que viene inclu ido siendo que en la prueba si resultaba...
si alguien puede ayudarme seria fantastico...
aqui algunos datos:
con la pagina de prueba que resulto fue esta:
Y ESTE EL CODIGO DE MI WEB EN LA QUE NO SURGE EFECTO EL CSS (PARTE DEL CODIGO):
Y ESTE ES EL ARCHIVO ZEBRA_PAGINATION QUE VENIA , EN EL CUAL INCLUI EL CSS (QUE YA VENIA PERO EN EL OTRO ARCHIVO)
ACA UNA IMAGEN DE COMO QUEDO EL CODIGO DEL INDEX:

espero que alguien me de una idea de que es lo que pasa si no es mucho la molestia
el problema es el siguiente estoy tratando de paginar mi web con zebra pagination...
hice pruebas y todo resulto bien pero a la hora de probarlo en el index de mi web pasò que no leia el css que viene inclu ido siendo que en la prueba si resultaba...
si alguien puede ayudarme seria fantastico...
aqui algunos datos:
con la pagina de prueba que resulto fue esta:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
$con = mysql_connect('localhost','root','');
mysql_select_db("pelislatinofinal",$con) or die ("no se pudo conectar");
?>
<?php
require_once ("zebra/Zebra_Pagination.php");
?>
<?php
//consulta cuantos registros tenemos
$result = mysql_query(" select idPelicula from tbltodaslaspelis",$con);
$num_reg = mysql_num_rows($result);
echo $num_reg;
//registros por pagina
$reg_por_paginas = 20;
//paginar
$paginacion = new Zebra_Pagination;
$paginacion->records($num_reg);
$paginacion->records_per_page($reg_por_paginas);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>prueba</title>
</head>
<body>
<table width="421" border="1">
<tr>
<td width="63">id</td>
<td width="130">nombre</td>
<td width="126">imagen</td>
</tr>
<?php
$result = mysql_query(' select * from tbltodaslaspelis LIMIT ' .(($paginacion->get_page() - 1) * $reg_por_paginas). ',' .$reg_por_paginas,$con);
while($row = mysql_fetch_array($result)){ ?>
<tr>
<td><?php echo $row["idPelicula"]; ?></td>
<td><?php echo $row["Nombre"]; ?></td>
<td><?php echo $row["Imagen"]; ?></td>
</tr>
<?php }?>
</table>
<br />
<?php
$paginacion->render();
?>
</body>
</html>
Y ESTE EL CODIGO DE MI WEB EN LA QUE NO SURGE EFECTO EL CSS (PARTE DEL CODIGO):
1
<?php require_once("librerias/Zebra_Pagination.php"); ?>
1
2
3
4
5
6
7
8
9
10
11
<?php
//consulta cuantos registros tenemos
$result = mysql_query(" select idPelicula from tbltodaslaspelis",$pelislatinofinal);
$num_reg = mysql_num_rows($result);
//registros por pagina
$reg_por_paginas = 20;
//paginar
$paginacion = new Zebra_Pagination;
$paginacion->records($num_reg);
$paginacion->records_per_page($reg_por_paginas);
?>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php $result = mysql_query(' select * from tbltodaslaspelis LIMIT ' .(($paginacion->get_page() - 1) * $reg_por_paginas). ',' .$reg_por_paginas,$pelislatinofinal); ?>
<?php while($row_allmovies = mysql_fetch_array($result)){ ?>
<div class="resultadoproductos">
<div class="producto"><a href="ver_todas.php?todas=<?php echo $row_allmovies['idPelicula']; ?>"><img src="exadmin/documentos/peliculas/<?php echo $row_allmovies['Imagen']; ?>" width="170" height="240" /></a> <?php echo $row_allmovies['Nombre']; ?></div>
</div>
<?php } ?>
<!-- InstanceEndEditable --><!-- end .content --></div>
<div class="footer">
<table width="623" border="0" align="center">
<!-- InstanceBeginEditable name="paginacion" -->
<tr>
<td>
<?php $paginacion->render(); ?></td>
Y ESTE ES EL ARCHIVO ZEBRA_PAGINATION QUE VENIA , EN EL CUAL INCLUI EL CSS (QUE YA VENIA PERO EN EL OTRO ARCHIVO)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<style type="text/css">
/* common attributes for all the links */
.pagination a {
padding: 4px;
border: 1px solid #AAA;
color: #333;
text-decoration: none;
margin-right: 2px;
display: block;
float: left;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
}
/* common attributes for the "next page" and "previous page" links */
.pagination a.navigation {
width: 16px;
background-position: center center;
background-repeat: no-repeat;
text-indent: -9000px;
border: 1px solid transparent;
overflow: hidden
}
/* hack for transparent borders in IE6 */
*html .pagination a.navigation {
border-color: #000001;
filter: chroma(color=#000001);
}
/* hovered links */
.pagination a:hover {
background-color: #DEDEDE;
color: #222;
}
/* specific attributes for the "next page" and "previous page" links */
.pagination a.left { background-image: url(larrow.gif) }
.pagination a.right { background-image: url(rarrow.gif) }
/* currently selected page; also, the current page doesn't need a hover effect */
.pagination a.current,
.pagination a.current:hover {
background: #0094D6;
border-color: #0094D6;
color: #FFF;
}
/* the "..." separator */
.pagination span {
color: #666;
margin-right: 2px;
display: block;
float: left;
padding: 8px 4px
}
/* disabled links */
a.disabled {
filter: alpha(opacity=20);
-khtml-opacity: 0.2;
-moz-opacity: 0.2;
opacity: 0.2
} </style>
<?php
/**
* A generic pagination script that automatically generates navigation links as well as next/previous page links, given...............................
espero que alguien me de una idea de que es lo que pasa si no es mucho la molestia
Valora esta pregunta


0