Пример #1
0
session_start();
include 'lib/connect.php';
$obj = new connect();
$mid = '';
$m_id = '';
if (isset($_POST['cat'])) {
    $mid = $_POST['cat'];
}
if (isset($_GET['cat'])) {
    $m_id = $_GET['cat'];
}
$mname = '';
if (isset($_GET['mname'])) {
    $mname = $_GET['mname'];
}
$price = $obj->getprice($mname);
$company = $obj->getcompany($mname);
$img = $obj->getimage($mname);
$count = $obj->getcount();
$tot_item = 0;
$tot_price = 0;
?>

<!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>
<title>E- Shop</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="js/script.js">
</script>
Пример #2
0
include 'lib/connect.php';
$obj = new connect();
$n = $obj->database($fname, $lname, $uid, $pwd1, $addr, $country, $state, $city, $mno, $tno, $dob, $gen, $mail, $occup, $area, $pin);
$mid = '';
$m_id = '';
if (isset($_POST['cat'])) {
    $mid = $_POST['cat'];
}
if (isset($_GET['cat'])) {
    $m_id = $_GET['cat'];
}
$mno = '';
if (isset($_GET['mno'])) {
    $mno = $_GET['mno'];
}
$price = $obj->getprice($mno);
$count = $obj->getcount();
$qnty = $obj->getquantity($mno);
?>

<!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>
<title>E- Shop</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="js/script.js">
</script>
<style type="text/css">
<!--
.style8 {
Пример #3
0
			<div class="softright">
              <label>
				<input type="submit" name="Submit" value="Submit" />
              </label>
			</div>
          </form>
		</dd>
    </dl>
    <div id="body">
      <div class="inner">
        <?php 
if ($iname != '') {
    $ccode = $obj->getcompany($iname);
    $company = $obj->companyname($ccode);
    $img = $obj->getimage($iname);
    $pri = $obj->getprice($iname);
    $dis = $obj->getdiscount($iname);
    $war = $obj->getwarranty($iname);
    $disp = $obj->getdispsize($iname);
    ?>
		<div class="leftbox">
		  <h3><?php 
    echo $company;
    ?>
&nbsp;<?php 
    echo $iname;
    ?>
</h3>
          <img src="uploaded_files/<?php 
    echo $img;
    ?>
Пример #4
0
session_start();
include 'lib/connect.php';
$obj = new connect();
$mid = '';
$m_id = '';
if (isset($_POST['cat'])) {
    $mid = $_POST['cat'];
}
if (isset($_GET['cat'])) {
    $m_id = $_GET['cat'];
}
$mname = '';
if (isset($_GET['mname'])) {
    $mname = $_GET['mname'];
}
$price = $obj->getprice($mname);
$company = $obj->getcompany($mname);
$company_name = $obj->companyname($company);
$img = $obj->getimage($mname);
$count = $obj->getcount();
?>

<!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>
<title>E- Shop</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="js/script.js">
</script>
<style type="text/css">