Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- product item page where my drop down values are showing
- <?php
- session_start();
- include('config.php');
- include("cart/db.php");
- $id=$_REQUEST['id'];
- include("cart/functions.php");
- if($_REQUEST['command']=='add' && $_REQUEST['id']>0){
- $id=$_REQUEST['id'];
- addtocart($id,1);
- header("location:shoppingcart.php");
- exit();
- }
- ?>
- <!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" />
- <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
- <title>EDGE.PK</title>
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
- <script type="text/javascript" src="topslider/lib/jquery.jcarousel.min.js"></script>
- <link rel="stylesheet" type="text/css" href="topslider/css/skin.css" />
- <link rel="stylesheet" type="text/css" href="topslider/css/product-slider-skin.css" />
- <script type="text/javascript">
- $("#size").change(function(){
- var dropdown_val=$(this).val();
- $.post("shoppingcart.php", { size:dropdown_val},function(data){
- console.log(data);
- } );
- });
- </script>
- <link href="css/pagination4.css" rel="stylesheet" type="text/css" />
- <style>
- .button1{
- background-color:#000;
- color:#FFF;
- width: 94px;
- height: 35px;
- padding: 9px 8px 10px 8px;
- margin-left: -2px;
- font-family:Arial,Helvetica,sans-serif;
- font-size:12px;
- font-weight:bold;
- }
- </style>
- <script language="javascript">
- function addtocart(id){
- document.form1.id.value=id;
- document.form1.command.value='add';
- document.form1.submit();
- }
- </script>
- <!-- CSS =====================================================================================-->
- <link href='http://fonts.googleapis.com/css?family=Telex' rel='stylesheet' type='text/css' />
- <link rel="stylesheet" type="text/css" href="products2/css/styles.css" media="all" />
- <link rel="stylesheet" type="text/css" href="products2/css/skin.css" media="all" />
- <link rel="stylesheet" type="text/css" href="products2/css/cloud-zoom.css" media="all" />
- <link rel="stylesheet" type="text/css" href="products2/css/light_box.css" media="all" />
- <link rel="stylesheet" type="text/css" href="products2/css/mix.css" media="all" />
- <link rel="stylesheet" type="text/css" href="products2/css/banner.css" media="all" />
- <link rel="stylesheet" type="text/css" href="products2/css/magicat.css" media="all" />
- <!-- Scripts =====================================================================================-->
- <script type="text/javascript" src="products2/js/prototype.js"></script>
- <!--<script type="text/javascript" src="products2/js/jquery-1.6.1.min.js"></script>-->
- <script type="text/javascript" src="products2/js/common.js"></script>
- <script type="text/javascript" src="products2/js/menu.js"></script>
- <script type="text/javascript" src="products2/js/banner_pack.js"></script>
- <script type="text/javascript" src="products2/js/light_box.js"></script>
- <script type="text/javascript" src="products2/js/cloud-zoom.1.0.2.js"></script>
- <script type="text/javascript" src="products2/js/jquery.easing.1.3.js"></script>
- <script type="text/javascript" src="products2/js/jquery.mix.js"></script>
- <link rel="stylesheet" href="products/css/main-stylesheet.css" type="text/css" />
- <link rel="stylesheet" type="text/css" href="tipuesearch/example.css">
- <link rel="stylesheet" type="text/css" href="tipuesearch/tipuesearch.css">
- <div id="fb-root"></div>
- <script>(function(d, s, id) {
- var js, fjs = d.getElementsByTagName(s)[0];
- if (d.getElementById(id)) return;
- js = d.createElement(s); js.id = id;
- js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=261350910648005";
- fjs.parentNode.insertBefore(js, fjs);
- }(document, 'script', 'facebook-jssdk'));</script>
- <link href="css/style.css" rel="stylesheet" type="text/css" />
- <link href="css/nav-menus.css" rel="stylesheet" type="text/css" />
- <link href="css/jqtransform.css" rel="stylesheet" type="text/css" />
- <!--<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>-->
- <script type="text/javascript" src="js/stuHover.js"></script>
- <script type="text/javascript" src="js/jquery.flow.1.2.auto.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- $("#myController").jFlow({
- slides: "#slides",
- controller: ".jFlowControl", // must be class, use . sign
- slideWrapper : "#jFlowSlide", // must be id, use # sign
- selectedWrapper: "jFlowSelected", // just pure text, no sign
- auto: true, //auto change slide, default true
- width: "575px",
- height: "530px",
- duration: 600,
- prev: ".jFlowPrev", // must be class, use . sign
- next: ".jFlowNext" // must be class, use . sign
- });
- });
- </script>
- <STYLE TYPE="text/css">
- <!--
- #dek {POSITION:absolute;VISIBILITY:hidden;Z-INDEX:200;}
- //-->
- </STYLE>
- <style>
- body {overflow-x:hidden;}
- #tabMenu {margin:0;padding:0 0 0 15px;list-style:none;}
- #tabMenu li {float:left;height:39px;;width:39px;cursor:pointer;cursor:hand;margin-top:16px;background-color: black;margin-left: -14px;}
- li.posts {background:url(images/home.png) no-repeat 0 -32px;}
- li.mouseover {background-position:0 0;}
- li.mouseout {background-position:0 -32px;}
- li.selected {background-position:0 0;}
- .box {width:545px}
- *html .boxTop {margin-bottom:-2px;}
- .boxBody {background-color:#282828;}
- .boxBody div {display:none;}
- .boxBody div.show {display:block;}
- .boxBody #category a {display:block;}
- *html .boxBody div ul {margin-left:10px;padding-left:15px;}
- .boxBody div li {border-bottom:1px dotted #8e8e8e; padding:4px 0;cursor:hand;cursor:pointer;}
- .boxBody div ul li.last {border-bottom:none}
- .boxBody div li span {font-size:8px;font-style:italic; color:#888;}
- </style>
- </head>
- <body>
- <form name="form1">
- <input type="hidden" name="id" />
- <input type="hidden" name="command" />
- </form>
- <div class="wrap" id="three_columns" style="height:250px !important">
- <?php include('top-header.php');?>
- <?php include('menu.php'); ?>
- <div style="width:50px;"><img src="images/signup.png" style="margin-left:1px; margin-top:-19px;" />
- <div style="margin-left: 460px; margin-top: -36px;"> <div class="box newsletter_box">
- <form action="01-Red-01-Home-Page.html">
- <input name="email" type="text" tabindex="1" onblur="if (this.value==''){this.value='E-mail Address'};" onfocus="if(this.value=='E-mail Address'){this.value=''};" value="E-mail Address" style="margin-top: 5px;" />
- <div align="right">
- <input name="subscribe" type="submit" value="Subscribe" class="button" />
- </div>
- </form>
- </div></div></div>
- <div class="content clearfix">
- <?php include('left_column.php'); ?>
- <?php
- $query1=mysql_query("SELECT * FROM products WHERE products.id='$id' ") or die ('Product Query Problem');
- $row1=mysql_fetch_array($query1);
- ?>
- <div class="main_content">
- <div class="col-main">
- <div id="messages_product_view"></div>
- <div class="product-view">
- <div class="product-essential">
- <!--Start Product Information Right-->
- <div class="product-shop">
- <!--Product Title-->
- <div class="product-name">
- <h1 align="left" style="font-family:Arial,Helvetica,sans-serif; "><?php echo $row1['product']; ?></h1>
- </div>
- <p class="availability in-stock"><span></span></p>
- <div class="price-box"> <span class="regular-price" id="product-price-167"> <span class="price" style="font-family:Arial,Helvetica,sans-serif; ">Rs.<?php echo $row1['price']; ?></span> </span> </div>
- <div class="pro-left">
- <div class="short-description">
- <h2 style="font-family:Arial,Helvetica,sans-serif; ">Quick Overview</h2>
- <div class="std" style="font-family:Arial,Helvetica,sans-serif; "><?php echo $row1['description']; ?></div>
- </div>
- <div class="review">
- <!--<p class="no-rating"><a href="">Be the first to review this product</a></p>-->
- <div class="size_guide" style="float: left;margin-left: -125px;"><a class="ajax" href="images/size.png"><span style="font-family:Arial,Helvetica,sans-serif; font-size:12px; font-weight:bold; ">Click here to watch Size Guide</span> </a></div>
- </div>
- </div>
- <div class="item-info">
- <form action="" id="size1" name="size1" method="post">
- <div class="details clearfix">
- <p class="item">
- <label style="font-family:Arial,Helvetica,sans-serif; font-size:12px; font-weight:bold; ">Choose your size:</label>
- <select style="background-color:#CCC" name="size" id="size">
- <option>Select</option>
- <option value="Small">Small</option>
- <option value="Medium">Medium</option>
- <option value="Large">Large</option>
- <option value="XL">XL</option>
- </select>
- </p>
- </div>
- <div class="buy">
- <?php
- $query3=mysql_query("select * from products WHERE id='$id' ");
- $row3=mysql_fetch_array($query3);
- ?>
- <input type="button" class="button1" value="Add To Cart" onclick="addtocart(<?php echo $row3['id']?>);" />
- </div>
- </form>
- </div>
- </div>
- <!--End Product Information Right-->
- <!--Start Product Image Zoom Left-->
- <div class="product-img-box">
- <p class="product-image product-image-zoom"> <a href='admin/uploads/<?php echo $row1['image']; ?>' class = 'cloud-zoom' id='zoom1'
- rel="adjustX: 10, adjustY:-4"> <img style="max-height:400px; width:400px;" src="admin/uploads/<?php echo $row1['image']; ?>" alt='' title="Optional title display" /> </a> </p>
- <div class="more-views">
- <div class="jcarousel-skin-tango" style="margin-left:-15px !important;">
- <ul id="more_view">
- <li><a href='admin/uploads/small0_<?php echo $row1['image']; ?>' class='cloud-zoom-gallery' title='Thumbnail 1'
- rel="useZoom: 'zoom1', smallImage: 'admin/uploads/small0_<?php echo $row1['image']; ?>' "> <img style="max-height:92px; width:92px;" src="admin/uploads/small0_<?php echo $row1['image']; ?>" alt = "Thumbnail 1"/></a></li>
- <li><a href='admin/uploads/small1_<?php echo $row1['addimage1']; ?>' class='cloud-zoom-gallery' title='Thumbnail 2'
- rel="useZoom: 'zoom1', smallImage: 'admin/uploads/small1_<?php echo $row1['addimage1']; ?>' "> <img style="max-height:92px; width:92px;" src="admin/uploads/small1_<?php echo $row1['addimage1']; ?>" alt = "Thumbnail 2"/></a></li>
- <li><a href='admin/uploads/small2_<?php echo $row1['addimage2']; ?>' class='cloud-zoom-gallery' title='Thumbnail 3'
- rel="useZoom: 'zoom1', smallImage: 'admin/uploads/small2_<?php echo $row1['addimage2']; ?>' "> <img style="max-height:92px; width:92px;" src="admin/uploads/small2_<?php echo $row1['addimage2']; ?>" alt = "Thumbnail 3"/></a></li>
- </ul>
- </div>
- </div>
- <script type="text/javascript">
- jQuery(document).ready(function(){
- jQuery('#product_tabs_description').click(function(){
- jQuery('#product_tabs_description_contents').css('display','block');
- jQuery('#product_tabs_product').css('display','none');
- jQuery('#product_tabs_form_contents').css('display','none');
- });
- jQuery('#product_tabs_product_tag').click(function(){
- jQuery('#product_tabs_description_contents').css('display','none');
- jQuery('#product_tabs_product').css('display','block');
- jQuery('#product_tabs_form_contents').css('display','none');
- });
- jQuery('#product_tabs_form').click(function(){
- jQuery('#product_tabs_description_contents').css('display','none');
- jQuery('#product_tabs_product').css('display','none');
- jQuery('#product_tabs_form_contents').css('display','block');
- });
- });
- </script>
- </div>
- <!--End Product Image Zoom Left-->
- <div class="clearer"></div>
- </div>
- <!--Start Product Tabs-->
- <div class="product-collateral">
- <ul class="product-tabs">
- <li id="" class="" style="font-family:Arial,Helvetica,sans-serif; font-size:16px; font-weight:bold; "><a href="javascript:void(0)">Product Description</a></li>
- </ul>
- <div class="product-tabs-content" id="product_tabs_description_contents">
- <h2>Details</h2>
- <div class="std" style="font-family:Arial,Helvetica,sans-serif; "><?php echo $row1['description']; ?></div>
- </div>
- <div style="display: none;" class="product-tabs-content" id="product_tabs_product">
- </div>
- <div style="display: none;" class="product-tabs-content" id="product_tabs_form_contents">
- <div class="form-add">
- <h2>Write Your Own Review</h2>
- <form method="post" id="review-form" action="product.html">
- <fieldset>
- <h3>You're reviewing: <span>Lorem ipsum dolor sit amet,</span></h3>
- <h4>How do you rate this product? <em class="required">*</em></h4>
- <span id="input-message-box"></span>
- <table class="data-table" id="product-review-table">
- <thead>
- <tr class="first last">
- <th> </th>
- <th><span class="nobr">1 star</span></th>
- <th><span class="nobr">2 stars</span></th>
- <th><span class="nobr">3 stars</span></th>
- <th><span class="nobr">4 stars</span></th>
- <th><span class="nobr">5 stars</span></th>
- </tr>
- </thead>
- <tbody>
- <tr class="first odd">
- <th>Quality</th>
- <td class="value"><input name="ratings[1]" id="Quality_1" value="1" class="radio" type="radio" /></td>
- <td class="value"><input name="ratings[1]" id="Quality_2" value="2" class="radio" type="radio" /></td>
- <td class="value"><input name="ratings[1]" id="Quality_3" value="3" class="radio" type="radio" /></td>
- <td class="value"><input name="ratings[1]" id="Quality_4" value="4" class="radio" type="radio" /></td>
- <td class="value last"><input name="ratings[1]" id="Quality_5" value="5" class="radio" type="radio" /></td>
- </tr>
- <tr class="even">
- <th>Price</th>
- <td class="value"><input name="ratings[3]" id="Price_1" value="11" class="radio" type="radio" /></td>
- <td class="value"><input name="ratings[3]" id="Price_2" value="12" class="radio" type="radio" /></td>
- <td class="value"><input name="ratings[3]" id="Price_3" value="13" class="radio" type="radio" /></td>
- <td class="value"><input name="ratings[3]" id="Price_4" value="14" class="radio" type="radio" /></td>
- <td class="value last"><input name="ratings[3]" id="Price_5" value="15" class="radio" type="radio" /></td>
- </tr>
- <tr class="last odd">
- <th>Value</th>
- <td class="value"><input name="ratings[2]" id="Value_1" value="6" class="radio" type="radio" /></td>
- <td class="value"><input name="ratings[2]" id="Value_2" value="7" class="radio" type="radio" /></td>
- <td class="value"><input name="ratings[2]" id="Value_3" value="8" class="radio" type="radio" /></td>
- <td class="value"><input name="ratings[2]" id="Value_4" value="9" class="radio" type="radio" /></td>
- <td class="value last"><input name="ratings[2]" id="Value_5" value="10" class="radio" type="radio" /></td>
- </tr>
- </tbody>
- </table>
- <input name="validate_rating" class="validate-rating" value="" type="hidden" />
- <ul class="form-list">
- <li>
- <label for="nickname_field" class="required"><em>*</em>Nickname</label>
- <div class="input-box">
- <input name="nickname" id="nickname_field" class="input-text required-entry" type="text" />
- </div>
- </li>
- <li>
- <label for="summary_field" class="required"><em>*</em>Summary of Your Review</label>
- <div class="input-box">
- <input name="title" id="summary_field" class="input-text required-entry" type="text" />
- </div>
- </li>
- <li>
- <label for="review_field" class="required"><em>*</em>Review</label>
- <div class="input-box">
- <textarea name="detail" id="review_field" cols="5" rows="3" class="required-entry"></textarea>
- </div>
- </li>
- </ul>
- </fieldset>
- <div class="buttons-set">
- <button type="submit" title="Submit Review" class="button"><span><span>Submit Review</span></span></button>
- </div>
- </form>
- </div>
- </div>
- </div>
- <!--End Product Tabs-->
- </div>
- </div>
- </div>
- </div>
- <div id="wrap">
- <div id="products" class="jcarousel-skin-tango">
- <div class="jcarousel-clip">
- <?php
- $directory= "data/uploads/topslider/";
- echo '<ul class="jcarousel-list">';
- foreach(glob($directory . '*') as $filename) {
- echo '<li class="jcarousel-item"><img src="'.$filename.'" width="150" height="150" alt="" /></li>';
- }
- echo '</ul>';
- ?>
- </div>
- <div disabled="disabled" class="jcarousel-prev jcarousel-prev-disabled"></div>
- <div class="message"><div class="text">EDGE.PK<br/><span style="font-size:19px;letter-spacing: -1px; ">Top Products</span><br/><span style="font-size:10px;letter-spacing: 4px; ">.............</span></div></div>
- <div class="jcarousel-next"></div>
- </div>
- </div>
- <?php include('footer.php'); ?>
- </div>
- <script type="text/javascript">
- jQuery(document).ready(function() {
- jQuery('#products').jcarousel({
- start: 1
- });
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement