Commit 13dde3c1 authored by Bonagiri Bala Rajesh's avatar Bonagiri Bala Rajesh

MainFiles

parent b26a8602
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment include:
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at bhabalajinkya@gmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/

<?php
include("functions/functions.php");
include("includes/db.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
include("header.php");
cart();
?>
<!-- end of menu tab -->
<div class="crumb_navigation"> Navigation: <span class="current">Home</span>
<?php
if(isset($_GET['cat'])){
$get_id = $_GET['cat'];
$query = "select cat_title from categories where cat_id='$get_id'";
$run_query = mysqli_query($con,$query);
$row = mysqli_fetch_array($run_query);
$cat = $row['cat_title'];
echo"<span class=current>>$cat</span>";
}
?>
</div>
<div class="left_content">
<div class="title_box">Categories</div>
<ul class="left_menu">
<?php
getcats();
?>
</ul>
<div class="title_box">Manufacturers</div>
<ul class="left_menu">
<?php getbrands(); ?>
</ul>
<br>
<br>
<div class="banner_adds"> <a href="#"><img src="images/bann2.jpg" alt="" border="0" /></a> </div>
<br>
<br>
<br>
<?php
special();
?>
</div>
<!-- end of left content -->
<div class="center_content">
<div class="center_title_bar">All Products</div>
<?php
$get_pro = "select * from products";
$run_pro = mysqli_query($con,$get_pro);
while($row_pro = mysqli_fetch_array($run_pro)){
$product_id = $row_pro['prd_id'];
$product_category = $row_pro['prd_cat'];
$product_brand = $row_pro['prd_brand'];
$product_title = $row_pro['prd_title'];
$product_price = $row_pro['prd_price'];
$product_image = $row_pro['prd_img'];
if(isset($_SESSION['u_id'])){
echo"
<div class='center_title_bar'>$product_title</div>
<div class='prod_box_big'>
<div class='top_prod_box_big'></div>
<div class='center_prod_box_big'>
<div class='product_img_big'> <a href='javascript:popImage('admin_area/product_images/$product_image','Some Title')' title='header=[<img src=admin_area/product_images/$product_image>] body=[&nbsp;] fade=[on]'><img src='admin_area/product_images/$product_image' height=200 width=185 alt='' border='0' /></a>
</div>
<div class='details_big_box'>
<div class='product_title_big'>$product_title</div>
<div class='specifications'>
$product_description
</div>
<div class='prod_price_big'> <span class='price'>Rs $product_price</span></div>
<a href='details.php?addcart=$product_id' class='addtocart'>add to cart</a> <a href='index.php' class='compare'>Home</a> </div>
</div>
<div class='bottom_prod_box_big'></div>
</div>";
}
else{
echo"
<div class='center_title_bar'>$product_title</div>
<div class='prod_box_big'>
<div class='top_prod_box_big'></div>
<div class='center_prod_box_big'>
<div class='product_img_big'> <a href='javascript:popImage('admin_area/product_images/$product_image','Some Title')' title='header=[<img src=admin_area/product_images/$product_image>] body=[&nbsp;] fade=[on]'><img src='admin_area/product_images/$product_image' height=200 width=185 alt='' border='0' /></a>
</div>
<div class='details_big_box'>
<div class='product_title_big'>$product_title</div>
<div class='specifications'>
$product_description
</div>
<div class='prod_price_big'> <span class='price'>Rs $product_price</span></div>
<a href='index.php' class='compare'>Home</a> </div>
</div>
<div class='bottom_prod_box_big'></div>
</div> ";
}
}
?>
</div>
<!-- end of center content -->
<div class="right_content">
<div class="shopping_cart">
<div class="cart_title"><i>Welcome Guest!</i><br>Shopping cart</div>
<div class="cart_details"><font color="blue"><?php total_items(); ?></font>&nbsp;item(s)<br />
<span class="border_cart"></span> Total: <span class="price"><?php total_price(); ?></span> </div>
<div class="cart_icon"><a href="cart.php" title="header=[Checkout] body=[&nbsp;] fade=[on]"><img src="images/shoppingcart.png" alt="" width="48" height="48" border="0" /></a></div>
</div>
<br>
<?php
special();
?>
<br>
<?php
special();
?>
<br>
<?php
special();
?>
<br>
<?php
special();
?>
<!-- end of right content -->
</div>
<!-- end of main content -->
<?php
include("footer.php");
?>
</div>
<!-- end of main_container -->
</body>
</html>
blank.gif

49 Bytes


<?php
include("functions/functions.php");
include("includes/db.php");
cart();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
include("header.php");
?>
<!-- end of menu tab -->
<div class="crumb_navigation"> Navigation: <span class="current">Home</span>
<?php
if(isset($_GET['cat'])){
$get_id = $_GET['cat'];
$query = "select cat_title from categories where cat_id='$get_id'";
$run_query = mysqli_query($con,$query);
$row = mysqli_fetch_array($run_query);
$cat = $row['cat_title'];
echo"<span class=current>>$cat</span>";
}
?>
</div>
<div class="left_content">
<div class="title_box">Categories</div>
<ul class="left_menu">
<?php
getcats();
?>
</ul>
<!--
<div class="title_box">Manufacturers</div>
<ul class="left_menu">
<?php getbrands(); ?>
</ul>
<br>
<br>
<div class="banner_adds"> <a href="#"><img src="images/bann2.jpg" alt="" border="0" /></a> </div>
<br>
<br>
<br>
<?php
special();
?>-->
</div>
<!-- end of left content -->
<div class="center_content">
<?php
if(isset($_SESSION['u_id'])){
?>
<div class="center_title_bar">Latest Products</div>
<form action="" enctype="multipart/form-data" method="post">
<table align="center" width="500" border="0">
<tr align="center">
<th>Remove</th>
<th>Product(s)</th>
<th>Quantity</th>
<th>Total Price</th>
</tr>
<?php
$total = 0;
global $con;
$ip = getip();
$price = "select * from cart where ip_add = '$ip'";
$run_price = mysqli_query($con,$price) ;
while($pprice = mysqli_fetch_array($run_price)){
$pro_id = $pprice['p_id'];
$prod_price = "select * from products where prd_id = '$pro_id'";
$run_pro_price = mysqli_query($con,$prod_price);
while($ppprice = mysqli_fetch_array($run_pro_price)){
$product_price = array($ppprice['prd_price']);
$product_title = $ppprice['prd_title'];
$product_image = $ppprice['prd_img'];
$single_price = $ppprice['prd_price'];
$price_sum = array_sum($product_price);
$total +=$price_sum;
//echo $product_price;
?>
<tr align="center">
<td><input type="checkbox" name="remove[]" value="<?php echo $pro_id; ?>"></td>
<td><?php echo $product_title; ?>
<br>
<img src="admin_area/product_images/<?php echo $product_image; ?>" width="60" height="60"></td>
<td>
<input type="text" size="4" name="qty">
</td>
<td>
<?php echo "Rs".$single_price; ?>
</td>
<td></td>
</tr>
<?php
}
}
?>
<tr align="right">
<td colspan="4"><b>Sub total:</b></td>
<td><?php echo"Rs&nbsp;".$total; ?></td>
</tr>
<tr align="center">
<td colspan="2"><input type="submit" name="update_cart" value="Update cart"></td>
<td><input type="submit" name="continue" value="Continue Shopping"></td>
<!-- <td><button><a href="checkout.php" style="text-decoration:none;color:black">Checkout</a></button></td> -->
</tr>
</table>
</form>
<?php
$ip = getip();
if(isset($_POST['update_cart'])){
foreach($_POST['remove'] as $remove){
$delete_product = "delete from cart where p_id='$remove' AND ip_add='$ip'";
$run_delete = mysqli_query($con, $delete_product);
echo $ip;
if($run_delete){
echo "<script>window.open('cart.php','_self')</script>" ;
}
}
}
?>
<?php }
else{?>
<div class="center_content">
<div id="form">
<div class="formbox">
<a href="login.php">
<input id="create1" type="button" value=" Login to View Cart &nbsp;&nbsp;&nbsp"; /></a>
</div>
</div>
</div>
<?php }?>
</div>
<!-- end of center content
<div class="right_content">
<div class="shopping_cart">
<div class="cart_title"><i>Welcome Guest!</i><br>Shopping cart</div>
<div class="cart_details"><font color="blue"><?php total_items(); ?></font>&nbsp;items <br />
<span class="border_cart"></span> Total:<span class="price"><?php total_price(); ?> </span> </div>
<div class="cart_icon"><a href="cart.php" title="header=[Checkout] body=[&nbsp;] fade=[on]"><img src="images/shoppingcart.png" alt="" width="48" height="48" border="0" /></a></div>
</div>
<br>
<?php
special();
?>
<br>
<?php
special();
?>
<br>
<?php
special();
?>
<br>
<?php
special();
?>
<!-- end of right content -->
</div>
<!-- end of main content -->
<?php
include("footer.php");
?>
</div>
<!-- end of main_container -->
</body>
</html>
<?php
include("functions/functions.php");
include("includes/db.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
include("header.php");
?>
<!-- end of menu tab -->
<div class="crumb_navigation"> Navigation: <span class="current">Home</span>
<?php
if(isset($_GET['cat'])){
$get_id = $_GET['cat'];
$query = "select cat_title from categories where cat_id='$get_id'";
$run_query = mysqli_query($con,$query);
$row = mysqli_fetch_array($run_query);
$cat = $row['cat_title'];
echo"<span class=current>>$cat</span>";
}
?>
</div>
<div class="left_content">
<div class="title_box">Categories</div>
<ul class="left_menu">
<?php
getcats();
?>
</ul>
<!--
<div class="title_box">Manufacturers</div>
<ul class="left_menu">
<?php getbrands(); ?>
</ul>
<br>
<br>
<div class="banner_adds"> <a href="#"><img src="images/bann2.jpg" alt="" border="0" /></a> </div>
<br>
<br>
<br>
<?php
special();
?>
-->
</div>
<!-- end of left content -->
<div class="center_content">
<div class="center_title_bar">About Us</div>
<br>
<div class="about_info">
<p>This site does the same work as of the Affiliate marketing site, but not for the sake of commission or earning money, instead helping the customer to get true views and good product in valid price. In our site we will include those site which are well licensed and well known for their product so that customer do not feel cheated or fooled. The site will show only true reviews given by the registered person or customer to our site, so that fake reviews are avoided. We will provide long term services for a product brought by a site preferred by us to the customer, even if the warranty of the product is expired, we will help the customer to get it repaired or updated with the applicable charges. It will compare the shopping site including their prices, availability of product, etc and give first preference to the best one by considering all points. Through our site no extra charges will be applied . If the customer register for notifying availability of product, he/she will be notified on their mobile number rather than e-mail.</p>
</div>
<br>
<br>
<div class="center_title_bar">Contact Us</div>
<br>
<div class="contact_info"><p>Donec rutrum congue leo eget malesuada. Mauris blandit aliquet elit,
eget tincidunt nibh pulvinar a. Curabitur arcu erat,
accumsan id imperdiet et, porttitor at sem.</p>
</div>
<div class="center_title_bar"> Email: ravindraveera@gmail.com </div>
<div class="center_title_bar"> Phone: +91 9550643834</div>
</div>
<!-- end of center content
<div class="right_content">
<div class="shopping_cart">
<div class="cart_title"><i>Welcome Guest!</i><br>Shopping cart</div>
<div class="cart_details"><font color="blue"><?php total_items(); ?></font>&nbsp;item(s)<br />
<span class="border_cart"></span> Total: <span class="price"><?php total_price(); ?></span> </div>
<div class="cart_icon"><a href="cart.php" title="header=[Checkout] body=[&nbsp;] fade=[on]"><img src="images/shoppingcart.png" alt="" width="48" height="48" border="0" /></a></div>
</div>
<br>
<?php
special();
?>
<br>
<?php
special();
?>
<br>
<?php
special();
?>
<br>
<?php
special();
?>
<!-- end of right content -->
</div>
<?php
include("footer.php");
?>
</div>
<!-- end of main_container -->
</body>
</html>

<?php
include("functions/functions.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
include("header.php");
cart();
?>
<!-- end of menu tab -->
<div class="crumb_navigation"> Navigation: <a href="#">Home</a> &lt; <span class="current">Category name</span> </div>
<div class="left_content">
<div class="title_box">Categories</div>
<ul class="left_menu">
<?php
getcats();
?>
</ul></div>
<!-- <div class="title_box">Special Product</div>
<?php