-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproduct.php
53 lines (50 loc) · 1.84 KB
/
product.php
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
<?php
/**********************************************************************
* Author : Sergio Ceron Figueroa ([email protected])
* Alias : sxceron
* Web : http://www.dotrow.info
* Name : jShop v1.0
* Desc : Mustra la informacion completa de un producto
* id : Obligatorio (id del producto)
*
***********************************************************************/
// Include file headers
include_once "./includes/settings.php";
include_once "./includes/db.php";
include_once "./includes/validator.php";
$_validator = new Validator();
$_validator->setMethod( "GET" );
$_validator->setVars( array("id:required") );
if( $_validator->validate() ){
$values = $_validator->getValues();
$producto = $db->get_row("select * from articulos where articulo_id=".base64_decode($values["id"]));
?>
<table>
<tr>
<td rowspan="8" class="image"><img
src="images/<?=$producto->articulo_imagen?>"><br>
<img src="images/comprarh.gif" class="link"
onclick="buyArticle('<?=$producto->articulo_nombre?>','addproduct.php?id=<?=base64_encode($producto->articulo_id)?>');">
</td>
<td><b><?=$_i18n[ "name" ]?>:</b> <?=$producto->articulo_nombre?></td>
</tr>
<tr>
<td><b><?=$_i18n[ "count" ]?>:</b> <?=$producto->articulo_cantidad?></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td><b><?=$_i18n[ "date" ]?>:</b> <?=$producto->articulo_fecha?></td>
</tr>
<tr>
<td><b><?=$_i18n[ "description" ]?>:</b> <?=$producto->articulo_descripcion?></td>
</tr>
</table>
<br>
<div align="center"><a href="javascript:void(0);"
onclick="buyArticle('<?=$producto->articulo_nombre?>','addproduct.php?id=<?=base64_encode($producto->articulo_id)?>');messageObj.close();"><b><?=$_i18n[ "closeandbuy" ]?></b></a>
| <a href="javascript:void(0);" onclick="messageObj.close();"><?=$_i18n[ "close" ]?></a></div>
<?php
}
?>