Viewing file: pbamenu.php (3.98 KB) -rw-rw-r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<? include ("header.php");?>
<body>
<?// aqui, metemos la comprobación. De no estar identificado, lo largamos a index.php
include ("/home/wwwroot/frames/conn.php");
include ("/home/wwwroot/frames/classes/class.log.php");
$control= new control();
if ($control->usuario=="anonimo"){
// redirigimos
?>
<script type="text/javascript">
window.location="<?echo "./index.php";?>";</script>
<?
}
// fin comprobacion identidad
?>
<?
$encriptado=new Encriptor();
$id=$encriptado->decrypt($_REQUEST['id']);
if ($id=="populares"){
$sql="select * from ".BBDD.".10masdescargados2 order by contador desc";
}else{
$sql="select * from ".BBDD.".losmasvendidos where tipo like '$id%' order by orden ASC";
}
$res=mysql_query($sql,$conn);
?>
<div data-role="page" id="home" data-theme="<?echo $formato;?>">
<?echo cabecera();?>
<div role="main" class="ui-content" data-role="content">
<div class="content-primary">
<div class="ui-body ui-body-b ui-corner-all">
<p style='text-align : center'><h3>Listas de los más vendidos y los + populares</h3></p>
</div>
<div>
<a href="./pbamenu.php?id=<?echo $encriptado->encrypt("Ficc");?>" data-role="button" data-inline="true" data-theme="<? if ($id=="Ficc"){
echo $formato_contraste;
}else{
echo $formato;
}?>">Ficción</a>
<a href="./pbamenu.php?id=<?echo $encriptado->encrypt("No");?>" data-role="button" data-inline="true"data-theme="<? if ($id=="No"){
echo $formato_contraste;
}else{
echo $formato;
}?>">No ficción </a>
<a href="./pbamenu.php?id=<?echo $encriptado->encrypt("populares");?>" data-role="button" data-inline="true" data-theme="<? if ($id=="populares"){
echo $formato_contraste ;
}else{
echo $formato;
}?>">Populares</a>
</div>
<hr>
<ul data-role="listview" >
<?
while ($row=mysql_fetch_array($res)){
$id_book=$encriptado->encrypt($row['id_book']);
$titulo= utf8_encode($row['titulo']);
$autor= utf8_encode($row['autor']);
$versión=utf8_encode($row['version'])
?>
<li>
<? if ($row['id_book']>0){
echo "<a style href='./enlace.php?ID=$id_book'>";
$portada=$localhost."/includes/".$row['id_book'].".jpg";
}else{
$portada="no.jpg?id=".rand(23,99);
$id_book=$encriptado->encrypt(" El libro no esta disponible por ahora ");
echo "<a href='./pbamenu.php?id=".$encriptado->encrypt($id)."'>";
}
?>
<img style='' src="<? echo $portada;?>" />
<h4><? echo $titulo." ".$version;?></h4>
<p style="font-size : small;"><? echo $autor;?>
<?if ($row['id_book']==0)echo "<span style='color:#FF0000;'> no disponible </span>";?>
</p>
</a></li>
<?
}
?>
</ul>
</div>
</div><!--/content-primary -->
</div> <!--div role="main"-->
<? include ("./footer.php");?>
</div> <!-- div data-role="page" id="home"> -->
</body>
<?
/*
<li><a href="index.html">
<img src="images/album-hc.jpg" />
<h3>Warning</h3>
<p>Hot Chip</p>
</a></li>
<li><a href="index.html">
<img src="images/album-p.jpg" />
<h3>Wolfgang Amadeus Phoenix</h3>
<p>Phoenix</p>
</a></li>
<li><a href="index.html">
<img src="images/album-ok.jpg" />
<h3>Of The Blue Colour Of The Sky</h3>
<p>Ok Go</p>
</a></li>
<li><a href="index.html">
<img src="images/album-ws.jpg" />
<h3>Elephant</h3>
<p>The White Stripes</p>
</a></li>
<li><a href="index.html">
<img src="images/album-rh.jpg" />
<h3>Kid A</h3>
<p>Radiohead</p>
</a></li>
<li><a href="index.html">
<img src="images/album-xx.jpg" />
<h3>XX</h3>
<p>XX</p>
</a></li>
<li><a href="index.html">
<img src="images/album-mg.jpg" />
<h3>Congratulations</h3>
<p>MGMT</p>
</a></li>
<li><a href="index.html">
<img src="images/album-ag.jpg" />
<h3>Ashes Grammar</h3>
<p>A Sunny Day in Glasgow</p>
</a></li>
<li><a href="index.html">
<img src="images/album-k.jpg" />
<h3>Hot Fuss</h3>
<p>Killers</p>
</a></li>
<li><a href="index.html">
<img src="images/album-af.jpg" />
<h3>The Suburbs</h3>
<p>Arcade Fire</p>
</a></li>
</ul>
*/
?>
|