Ejemplo n.º 1
0
						<tr>
							<td class="cart_product">
								<!--<a href=""><img src="images/cart/one.png" alt=""></a>-->
								<?php 
    findImage($temp[$j]);
    ?>
							</td>
							<td class="cart_description">
								<?php 
    findDesc($temp[$j]);
    ?>
							</td>

							<td class="cart_description">
								<?php 
    findType($temp[$j]);
    ?>
							</td>
							
							
							<td class="cart_total">
								<?php 
    findPrice($temp[$j]);
    ?>
							</td>
							
						</tr>

					<?php 
}
?>
Ejemplo n.º 2
0
<?php 
include_once "config.php";
include_once "functions.php";
$bcode = $_GET["bcode"];
echo "barcode: " . $bcode . "<br>";
$con = dbconnect($SERVER, $USER, $PASSWD, $DB_NAME);
$type = findType($bcode);
$table = findTable($type, $PEOPLE_TABLE, $CELL_TABLE, $EQUIP_TABLE);
echo "type is : " . $type . "<br>";
echo "table is: " . $table . "<br>";
$sql = "SELECT * FROM {$table} WHERE barcode={$bcode}";
$result = mysql_query($sql);
echo mysql_error();
$data = readData($result);
content($data, $type);
mysql_close($con);
?>
 
Ejemplo n.º 3
0
 /**
  * Look for enumeration
  *
  * @param DOM $dom
  * @param string $class
  * @return array
  */
 function checkForEnum(&$dom, $class)
 {
     $values = array();
     $node = findType($dom, $class);
     if (!$node) {
         return $values;
     }
     $value_list = $node->getElementsByTagName('enumeration');
     if ($value_list->length == 0) {
         return $values;
     }
     for ($i = 0; $i < $value_list->length; $i++) {
         $values[] = $value_list->item($i)->attributes->getNamedItem('value')->nodeValue;
     }
     return $values;
 }
Ejemplo n.º 4
0
<?php

include 'modules.php';
if (!isset($_COOKIE['uid'])) {
    header('Location: index');
}
$pid = $_GET["pid"];
$type = findType($pid);
$uid = $_COOKIE['uid'];
if (isset($_POST['addToWishButton'])) {
    //echo $_COOKIE['uid'];
    addToWish($pid, $uid);
    //exit();
} else {
    if (isset($_POST['addToCartButton'])) {
        addToCart($pid, $uid, $_POST['quantity'], $_POST['filter']);
        //exit();
    }
}
?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="ISO-8859-1">
	<title>Product Page</title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet"
	href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
	<script
	src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
	<script