repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1 value | license stringclasses 7 values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2 classes |
|---|---|---|---|---|---|---|---|---|
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/product/show-addproduct.php | Admin/assets/backend/product/show-addproduct.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
$cq="select product.*,categories.category,subcategories.subcat,sellers.f_name from product,categories,subcategories,sellers where product.cat_id=categories.id and product.scat_id=subcategories.id and product.added_by=sellers.id and product.id='$id'";
$cr=mysqli_query($con,$cq);
$r=mysqli_fetch_assoc($cr);
$name= $r['product_name'];
$category= $r['category'];
$subcategory= $r['subcat'];
$img1= $r['img1'];
$img2= $r['img2'];
$img3= $r['img3'];
$img4= $r['img4'];
$qty= $r['qty'];
$price= $r['price'];
$sellprice= $r['fa'];
$sku= $r['sku'];
$sd= $r['shrt_desc'];
$dc= $r['description'];
$bs= $r['bs'];
$tc= $r['disclaimer'];
$added_by=$r['f_name'];
$added_byn='';
$g='';
if($bs==1){
$g="checked";
}
$added_byn=$added_by;
$offn=($sellprice*100)/$price;
$off=round(100-$offn);
$timage='';
$fimage='';
if($img3!=0){
$pi3="'../media/product/$img3'";
$timage='
<div class="imb" onclick="changeview('.$pi3.')">
<img src="../media/product/'.$img3.'"/>
</div>
';
}
if($img4!=0){
$pi4="'../media/product/$img4'";
$fimage='
<div class="imb" onclick="changeview('.$pi4.')">
<img src="../media/product/'.$img4.'"/>
</div>
';
}
$edit_path="'product_management.php?b=2846&idp=$id'";
$stk='';
$bss='';
if($bs==1){
$bss="Yes";
}else{
$bss="No";
}
if($qty>0){
$stk="In Stock";
}else{
$stk="Out of Stock";
}
$pi2="'../media/product/$img2'";
$template='
<div class="row">
<div class="left">
<div class="image">
<img src="../media/product/'.$img1.'" alt="" id="mi" />
</div>
<div class="imgrow">
<div class="imb" onclick="changeview('.$pi2.')">
<img src="../media/product/'.$img2.'" alt="" />
</div>
'.$timage.'
'.$fimage.'
</div>
<div class="namebox">
<h3>'.$name.'</h3>
</div>
<div class="namebox">'.$category.' | <span>'.$subcategory.'</span></div>
<div class="namebox">
<span class="price">
Price:
<span class="tag">
₹ '.$sellprice.' | <em class="crs">₹ '.$price.'</em>
</span>
</span>
</div>
<div class="namebox">
<span class="price">
SKU:
<span class="tag">
'.$sku.'
</span>
</span>
</div>
<div class="namebox">
<span class="price">
<span class="tag" style="color:green;">
'.$off.'% off
</span>
</span>
</div>
<div class="namebox">
<span class="price">
'.$added_by.'
</span>
</div>
<div class="update" style="margin-top:1.2rem;font-size:1.3rem; display:flex;align-items:center;">
<input type="checkbox" onchange="checksell('.$id.')" id="bsl" '.$g.'> Mark as best sell
</div>
</div>
<div class="right">
<h3>Short Description:</h3>
<br />
<p>
'.$sd.'
</p>
<br />
<h3>Description:</h3>
<br />
<p>
'.$dc.'
</p>
<br />
<h3>T&C:</h3>
<br />
<p>
'.$tc.'
</p>
<br>
<h3>Filters:</h3>
<br />
<p>
';
$fg=mysqli_query($con,"select p_filter.id,filter.filter from p_filter,filter where p_filter.pid='$id' and p_filter.fid=filter.id");
while($f=mysqli_fetch_assoc($fg)){
$template=$template.'<span>'.$f['filter'].'</span>';
}
$template=$template.'
</p>
<br>
<h3>Sub-filters:</h3>
<br />
<p>
';
$fg=mysqli_query($con,"select p_sfilter.id,sub_filter.subfilter from p_sfilter,sub_filter where p_sfilter.pid='$id' and p_sfilter.sfid=sub_filter.id");
while($f=mysqli_fetch_assoc($fg)){
$template=$template.'<span>'.$f['subfilter'].'</span>';
}
$template=$template.'
</p>
<div class="stock">
<span>'.$stk.'</span>
</div>
<div class="stock">
<span class="qty"> Quantity: '.$qty.' pc. </span>
</div>
<div class="stock">
<span class="qty"> Added By: <span class="n">'.$added_byn.'</span> </span>
</div>
<div class="btnrow">';
if($added_byn=='ADMIN'){
$template=$template.'<button class="edit" onclick="redirect_to('.$edit_path.')">
<i class="fa fa-pen" aria-hidden="true"></i>Edit
</button>';
}
$template=$template.'
<button class="adcatbtn" onclick="closeadctp()">
<i class="fa fa-times" aria-hidden="true"></i> Close
</button>
</div>
</div>
</div>
';
echo $template;
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/product/updatemainimage.php | Admin/assets/backend/product/updatemainimage.php | <?php
require('../../../../utility/utility.php');
if($_FILES['file']['type']!='' && $_FILES['file']['type']!='image/jpeg' && $_FILES['file']['type']!='image/jpg'&& $_FILES['file']['type']!='image/png'){
$msg="Format of First Image Is Not supported";
echo $msg;
}else{
$filename = rand(1111111,9999999).$_FILES['file']['name'];
$location = "../../../../media/product/".$filename;
if(move_uploaded_file($_FILES['file']['tmp_name'],$location))
{
echo $filename;
}
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/product/addtimage.php | Admin/assets/backend/product/addtimage.php | <?php
require('../../../../utility/utility.php');
if($_FILES['file']['type']!='' && $_FILES['file']['type']!='image/jpeg' && $_FILES['file']['type']!='image/jpg'&& $_FILES['file']['type']!='image/png'){
$msg="Format of Third Image Is Not supported";
echo $msg;
}else{
$filename = rand(1111111,9999999).$_FILES['file']['name'];
$location = "../../../../media/product/".$filename;
if(move_uploaded_file($_FILES['file']['tmp_name'],$location))
{
echo $filename;
}
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/product/reject_product.php | Admin/assets/backend/product/reject_product.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
$reason=get_safe_value($con,$_POST['reason']);
$n=2;
$cp=2;
$q="insert into p_reject(product_id,cause) values('$id','$reason')";
mysqli_query($con,$q);
$qyery="update product set isappp='$n' where id='$id'";
if(mysqli_query($con,$qyery)){
echo 1;
}else{
echo 0;
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/product/addsimage.php | Admin/assets/backend/product/addsimage.php | <?php
require('../../../../utility/utility.php');
if($_FILES['file']['type']!='' && $_FILES['file']['type']!='image/jpeg' && $_FILES['file']['type']!='image/jpg'&& $_FILES['file']['type']!='image/png'){
$msg="Format of Second Image Is Not supported";
echo $msg;
}else{
$filename = rand(1111111,9999999).$_FILES['file']['name'];
$location = "../../../../media/product/".$filename;
if(move_uploaded_file($_FILES['file']['tmp_name'],$location))
{
echo $filename;
}
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/product/approve_product.php | Admin/assets/backend/product/approve_product.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
$n=1;
$qyery="update product set isappp='$n' where id='$id'";
if(mysqli_query($con,$qyery)){
echo 1;
}else{
echo 0;
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/product/addmainimage.php | Admin/assets/backend/product/addmainimage.php | <?php
require('../../../../utility/utility.php');
if($_FILES['file']['type']!='' && $_FILES['file']['type']!='image/jpeg' && $_FILES['file']['type']!='image/jpg'&& $_FILES['file']['type']!='image/png'){
$msg="Format of First Image Is Not supported";
echo $msg;
}else{
$filename = rand(1111111,9999999).$_FILES['file']['name'];
$location = "../../../../media/product/".$filename;
if(move_uploaded_file($_FILES['file']['tmp_name'],$location))
{
echo $filename;
}
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/user/updateuserlist.php | Admin/assets/backend/user/updateuserlist.php | <?php
require('../../../../utility/utility.php');
$query="select * from users order by id desc";
$res=mysqli_query($con,$query);
$i=1;
$template='';
$st='';
$cb="";
while($row=mysqli_fetch_assoc($res)){
$template=$template.'
<div class="p_row">
<div class="slno">'.$i.'</div>
<div class="p_image">
'.$row['email'].' ';
$idd=$row['id'];
if($row['status']==1){
$st="Active";
$cb="<button class='deactive' onclick='user_acdc($idd, 0)'>
<i class='fa fa-eye-slash' aria-hidden='true'></i>Deactive
</button>";
}else{
$st="Deactive";
$cb="
<button class='active' onclick='user_acdc($idd, 1)'>
<i class='fa fa-eye' aria-hidden='true'></i>Active
</button>
";
}
if($row['e_vfd']==1){
$template=$template.'<i class="fa fa-check-circle" aria-hidden="true" style="color:orange;"></i>';
}else{
$template=$template.'<i class="fa fa-times-circle" aria-hidden="true" style="color:orange;"></i>';
}
$template=$template.'</div>
<div class="p_image">
'.$row['mobile'].'
';
if($row['m_vfd']==1){
$template=$template.'<i class="fa fa-check-circle" aria-hidden="true" style="color:orange;"></i>';
}else{
$template=$template.'<i class="fa fa-times-circle" aria-hidden="true" style="color:orange;"></i>';
}
$template=$template.'</div>
<div class="p_status">
<span>
₹';
$u_id=$row['id'];
$ro=mysqli_fetch_assoc(mysqli_query($con,"select * from user_wallet where user_id='$u_id'"));
$template=$template.$ro['ballance'];
$template=$template.'
</span>
</div>
<div class="p_action">
'.$cb.'
</div>
</div>
';
$i++;
}
echo $template;
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/user/user_acdc.php | Admin/assets/backend/user/user_acdc.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
$status=get_safe_value($con,$_POST['status']);
$q="update users set status='$status' where id='$id'";
if(mysqli_query($con,$q)){
echo 1;
}else{
echo 0;
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/user/add_user_wallet.php | Admin/assets/backend/user/add_user_wallet.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
$value=get_safe_value($con,$_POST['tp']);
$row2=mysqli_fetch_assoc(mysqli_query($con,"select order_detail.order_id,orders.u_id from order_detail,orders where order_detail.id='$id' and orders.o_id=order_detail.order_id"));
$uid=$row2['u_id'];
$oid=$row2['order_id'];
$row=mysqli_fetch_assoc(mysqli_query($con,"select * from user_wallet where uid='$uid'"));
$current=$row['balance'];
$now=$current+$value;
echo "update user_wallet set balance='$now' where uid='$uid'";
mysqli_query($con,"update user_wallet set balance='$now' where uid='$uid'");
mysqli_query($con,"update order_detail set auw='1' where id='$id'");
$date=date("y-m-d");
$msg=" ₹".$value." Credited";
mysqli_query($con,"insert into wallet_msg_user(uid,date,msg,ballance,isnew) values ('$uid','$date','$msg','$now','1')");
$n=mysqli_num_rows(mysqli_query($con,"select * from reforrep where oid='$id'"));
if($n>0){
mysqli_query($con,"update reforrep set isdone='1' where oid='$id'");
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/user/add_user.php | Admin/assets/backend/user/add_user.php | <?php
require('../../../../utility/utility.php');
$email=get_safe_value($con,$_POST['email']);
$name=get_safe_value($con,$_POST['name']);
$pass=get_safe_value($con,$_POST['pass']);
$mobile=get_safe_value($con,$_POST['mobile']);
$password=password_hash($pass, PASSWORD_DEFAULT);
mysqli_query($con,"insert into users (name,password,email,mobile,status) values ('$name','$password','$email','$mobile','1')");
$y=mysqli_fetch_assoc(mysqli_query($con,"select * from users where email='$email' and mobile='$mobile'"));
$idd=$y['id'];
$msg="Wallet created";
mysqli_query($con,"insert into user_wallet (user_id,ballance) values ('$idd','0')");
mysqli_query($con,"insert into user_w_msg (u_id,cod,msg,balance,is_new) values ('$idd','1','$msg','0','1')");
echo 1;
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/seller/add_dv.php | Admin/assets/backend/seller/add_dv.php | <?php
require('../../../../utility/utility.php');
$email=get_safe_value($con,$_POST['email']);
$pass=get_safe_value($con,$_POST['pass']);
$mobile=get_safe_value($con,$_POST['mobile']);
$username=get_safe_value($con,$_POST['username']);
$name=get_safe_value($con,$_POST['name']);
$password=password_hash($pass, PASSWORD_DEFAULT);
$query="select * from delivery_boy where dv_email='$email'";
$res=mysqli_query($con,$query);
$n=mysqli_num_rows($res);
if($n>0){
$msg="This Email is not available";
echo $msg;
}else{
mysqli_query($con,"insert into delivery_boy (dv_password,dv_mobile,dv_email,dv_username,dv_name) values ('$password','$mobile','$email','$username','$name')");
echo 1;
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/seller/approve_witdraw.php | Admin/assets/backend/seller/approve_witdraw.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
$txn=get_safe_value($con,$_POST['txn']);
$bal=get_safe_value($con,$_POST['bal']);
$row=mysqli_fetch_assoc(mysqli_query($con,"select * from witdraw_req where s_id='$id'"));
$current=$row['amount_w'];
if($bal>$current){
echo 0;
}else{
$now=$current-$bal;
mysqli_query($con,"update seller_wallet set ballance='$now' where seller_id='$id'");
$msg="Witdraw approved <br>".$txn;
mysqli_query($con,"insert into seller_w_msg(s_id,cod,msg,balance) values('$id','0','$msg','$bal')");
mysqli_query($con,"delete from witdraw_req where s_id='$id'");
echo 1;
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/seller/reject_witdraw.php | Admin/assets/backend/seller/reject_witdraw.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
mysqli_query($con,"delete from witdraw_req where s_id='$id'");
$msg="Witdraw Rejected";
mysqli_query($con,"insert into seller_w_msg(s_id,cod,msg,balance) values('$id','0','$msg','0')");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/seller/delete_seller.php | Admin/assets/backend/seller/delete_seller.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
$qyery="delete from sellers where id='$id'";
mysqli_query($con,$qyery);
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/seller/add_seller.php | Admin/assets/backend/seller/add_seller.php | <?php
require('../../../../utility/utility.php');
$email=get_safe_value($con,$_POST['email']);
$pass=get_safe_value($con,$_POST['pass']);
$mobile=get_safe_value($con,$_POST['mobile']);
$password=password_hash($pass, PASSWORD_DEFAULT);
$query="select * from sellers where email='$email'";
$res=mysqli_query($con,$query);
$n=mysqli_num_rows($res);
if($n>0){
$msg="This Email is not available";
echo $msg;
}else{
mysqli_query($con,"insert into sellers (password,mobile,email,status,is_new) values ('$password','$mobile','$email','1','1')");
echo 1;
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/seller/deldv.php | Admin/assets/backend/seller/deldv.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
$qyery="delete from delivery_boy where id='$id'";
mysqli_query($con,$qyery);
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/seller/manualUpdate.php | Admin/assets/backend/seller/manualUpdate.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
$txn=get_safe_value($con,$_POST['txn']);
$amt=get_safe_value($con,$_POST['amt']);
$mtd=get_safe_value($con,$_POST['mtd']);
$row=mysqli_fetch_assoc(mysqli_query($con,"select * from seller_wallet where seller_id='$id'"));
$current=$row['ballance'];
$response=array();
if($mtd==1){
$finalAmmount=$current+$amt;
$msg=$txn;
mysqli_query($con,"update seller_wallet set ballance='$finalAmmount' where seller_id='$id'");
$date=date("y-m-d");
mysqli_query($con,"insert into seller_w_msg(s_id,msg,balance,cod) values('$id','$msg','$amt','$mtd')");
$response['code']=1;
$response['msg']="Credited successfully";
}else if($mtd==0){
if($amt>$current){
$response['code']=0;
$response['msg']="In case of debit, amount must be lesser than wallet amount";
}else{
$finalAmmount=$current-$amt;
$msg=$txn;
mysqli_query($con,"update seller_wallet set ballance='$finalAmmount' where seller_id='$id'");
$date=date("y-m-d");
mysqli_query($con,"insert into seller_w_msg(s_id,msg,balance,cod) values('$id','$msg','$amt','$mtd')");
$response['code']=1;
$response['msg']="Debited successfully";
}
}
echo json_encode($response);
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/seller/reject.php | Admin/assets/backend/seller/reject.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
$reason=get_safe_value($con,$_POST['reason']);
$n=2;
$cp=2;
$q="insert into rejection(s_id,reason) values('$id','$reason')";
mysqli_query($con,$q);
$qyery="update sellers set isapp='$n',is_cp='$cp' where id='$id'";
if(mysqli_query($con,$qyery)){
echo 1;
}else{
echo 0;
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/seller/deletes.php | Admin/assets/backend/seller/deletes.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
mysqli_query($con,"delete from seller where id='$id'");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/seller/updatesellerlist.php | Admin/assets/backend/seller/updatesellerlist.php | <?php
require('../../../../utility/utility.php');
$query="select * from sellers order by id desc";
$res=mysqli_query($con,$query);
$i=1;
$template='';
while($row=mysqli_fetch_assoc($res)){
$st='';
$cb='';
$name=$row['f_name'];
$email=$row['email'];
$id=$row['id'];
$y="'seller_detail.php?sid=$id'";
if($row['status']==1){
$st="Active";
$cb="<button class='deactive' onclick='seller_acdc($id, 0)'>
<i class='fa fa-eye-slash' aria-hidden='true'></i>Deactive
</button>";
}else{
$st="Deactive";
$cb="
<button class='active' onclick='seller_acdc($id, 1)'>
<i class='fa fa-eye' aria-hidden='true'></i>Active
</button>
";
}
$template=$template.'
<div class="p_row">
<div class="slno"> '.$i.'</div>
<div class="p_name">'.$row['f_name'].'</div>
<div class="p_image"> '.$row['email'].'</div>
<div class="p_status">
<span class="active_span"> '.$st.'</span>
</div>
<div class="p_action">
<button
class="edit"
onclick="redirect_to('.$y.')"
>
<i class="fa fa-wifi" aria-hidden="true"></i>View
</button>
'.$cb.'
<button class="delete" onclick="deleteseller('.$id.')">
<i class="fa fa-trash" aria-hidden="true"></i>Delete
</button>
</div>
</div>
';
$i++;
}
echo $template;
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/seller/seller_acdc.php | Admin/assets/backend/seller/seller_acdc.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
$status=get_safe_value($con,$_POST['status']);
$q="update sellers set status='$status' where id='$id'";
if(mysqli_query($con,$q)){
echo 1;
}else{
echo 0;
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/seller/approve.php | Admin/assets/backend/seller/approve.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
$n=1;
$msg="Wallet created";
$qyery="update sellers set isapp='$n' where id='$id'";
if(mysqli_query($con,$qyery)){
mysqli_query($con,"insert into seller_wallet (seller_id,ballance) values('$id','0')");
mysqli_query($con,"insert into seller_w_msg(s_id,cod,msg,balance,is_new) values('$id','1','$msg','0','1')");
echo 1;
}else{
echo 0;
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/seller/getspecified.php | Admin/assets/backend/seller/getspecified.php | <?php
require('../../../../utility/utility.php');
$sts=$_POST['id'];
$query="select * from seller where status='$sts' order by id desc";
$res=mysqli_query($con,$query);
$i=1;
$template='';
while($row=mysqli_fetch_assoc($res)){
$st='';
$cb='';
$name=$row['fname'];
$email=$row['email'];
$id=$row['id'];
$y="'seller_detail.php?sid=$id'";
if($row['status']==1){
$st="Active";
$cb="<button class='deactive' onclick='seller_acdc($id, 0)'>
<i class='fa fa-eye-slash' aria-hidden='true'></i>Deactive
</button>";
}else{
$st="Deactive";
$cb="
<button class='active' onclick='seller_acdc($id, 1)'>
<i class='fa fa-eye' aria-hidden='true'></i>Active
</button>
";
}
$template=$template.'
<div class="p_row">
<div class="slno"> '.$i.'</div>
<div class="p_name">'.$row['fname'].'</div>
<div class="p_image"> '.$row['email'].'</div>
<div class="p_status">
<span class="active_span"> '.$st.'</span>
</div>
<div class="p_action">
<button
class="edit"
onclick="redirect_to('.$y.')"
>
<i class="fa fa-wifi" aria-hidden="true"></i>View
</button>
'.$cb.'
<button class="delete" onclick="deleteseller('.$id.')">
<i class="fa fa-trash" aria-hidden="true"></i>Delete
</button>
</div>
</div>
';
$i++;
}
echo $template;
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/commission/deletecommission.php | Admin/assets/backend/commission/deletecommission.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
mysqli_query($con,"delete from commition where id='$id'");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/commission/addcommission.php | Admin/assets/backend/commission/addcommission.php | <?php
require('../../../../utility/utility.php');
$value=get_safe_value($con,$_POST['com']);
$subcat=get_safe_value($con,$_POST['subcat']);
$cq="select * from commission where com='$value' and scat_id='$subcat'";
$cr=mysqli_query($con,$cq);
$cro=mysqli_num_rows($cr);
if($cro==0){
$qyery="insert into commission(com,scat_id) values('$value','$subcat')";
if(mysqli_query($con,$qyery)){
echo 1;
}else{
echo 0;
}
}else{
echo 3;
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/commission/addtowallet.php | Admin/assets/backend/commission/addtowallet.php | <?php
require('../../../../utility/utility.php');
$balance=get_safe_value($con,$_POST['bal']);
$oid=get_safe_value($con,$_POST['oid']);
$sid=get_safe_value($con,$_POST['sid']);
mysqli_query($con,"insert into order_stlmnt(oid,sid,val) values('$oid','$sid','$balance')");
$j=mysqli_fetch_assoc(mysqli_query($con,"select * from orders where id='$oid'"));
$oi_d=$j['o_id'];
$msg=" For ".$oi_d;
$qyery="update seller_wallet set ballance=ballance+'$balance' where seller_id='$sid'";
mysqli_query($con,"insert into seller_w_msg(s_id,cod,msg,balance) values('$sid','1','$msg','$balance')");
mysqli_query($con,$qyery);
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/order/dc.php | Admin/assets/backend/order/dc.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['first']);
mysqli_query($con,"delete from dv_time where id='$id'");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/order/dc1.php | Admin/assets/backend/order/dc1.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['first']);
$id2=get_safe_value($con,$_POST['first2']);
mysqli_query($con,"update dc set dc='$id',pc='$id2' where id='1'");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/order/updatestat.php | Admin/assets/backend/order/updatestat.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
$cid=get_safe_value($con,$_POST['cid']);
$cname=get_safe_value($con,$_POST['couriername']);
mysqli_query($con,"update order_detail set status='Shipped',shipping_id='$cid',ship_name='$cname' where id='$id'");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/order/delorder.php | Admin/assets/backend/order/delorder.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
mysqli_query($con,"delete from orders where o_id='$id'");
mysqli_query($con,"delete from order_detail where order_id='$id'");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/order/eng.php | Admin/assets/backend/order/eng.php | <?php
require('../../../../utility/utility.php');
$first=get_safe_value($con,$_POST['first']);
$second=get_safe_value($con,$_POST['second']);
$query="select orders.id,orders.final_val,orders.ship_fee_order,orders.order_status,order_time.added_on from orders,order_time where order_time.added_on>='$first' and order_time.added_on<='$second' and order_time.o_status='2' and order_time.oid=orders.id";
$res=mysqli_query($con,$query);
$result['to']=mysqli_num_rows($res);
$countSuccess=0;
$total=0;
while($row=mysqli_fetch_assoc($res)){
if($row['order_status']==5){
$countSuccess++;
$id=$row['id'];
$order_total=$row['final_val'];
$order_ship=$row['ship_fee_order'];
$fc=mysqli_query($con,"select * from order_stlmnt where oid='$id'");
$paid=0;
while($w=mysqli_fetch_assoc($fc)){
$paid+=$w['val'];
}
$total+=($order_total+$order_ship)-$paid;
}
}
$result['so']=$countSuccess;
$result['t']=round($total,2);
echo json_encode($result);
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/business/deleteb.php | Admin/assets/backend/business/deleteb.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
mysqli_query($con,"delete from business_type where id='$id'");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/business/addbusiness.php | Admin/assets/backend/business/addbusiness.php | <?php
require('../../../../utility/utility.php');
$subcat=get_safe_value($con,$_POST['bstype']);
$cq="select * from business_type where type='$subcat'";
$cr=mysqli_query($con,$cq);
$cro=mysqli_num_rows($cr);
if($cro==0){
$qyery="insert into business_type(type) values('$subcat')";
if(mysqli_query($con,$qyery)){
echo 1;
}else{
echo 0;
}
}else{
echo 3;
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/business/businesslist.php | Admin/assets/backend/business/businesslist.php | <?php
require('../../../../utility/utility.php');
$template='<div class="b" style="display:flex;flex-direction:column;padding:3rem 2rem">
<div class="row" style="height:3rem; display:flex;justify-content:space-between;">
<div class="block" style="width:15rem; font-weight: 600; color:#40464d; font-size:1.6rem; display:flex; justify-content:center; align-items:center;">
Slno
</div>
<div class="block" style="width:15rem; font-weight: 600; color:#40464d; font-size:1.6rem; display:flex; justify-content:center; align-items:center;">
Business Type
</div>
<div class="block" style="width:15rem; font-weight: 600; color:#40464d; font-size:1.6rem; display:flex; justify-content:center; align-items:center;">
Action
</div>
</div>
</div>';
$query2="select * from business_type order by id desc";
$res2=mysqli_query($con,$query2);
$i=1;
while($rowt=mysqli_fetch_assoc($res2)){
$template=$template.'
<div class="b" style="display:flex;flex-direction:column;padding:3rem 2rem">
<div class="row" style="height:3rem; display:flex;justify-content:space-between;">
<div class="block" style="width:15rem; display:flex; justify-content:center; align-items:center;font-size:1.3rem;color:#6a7187;">
'. $i.'
</div>
<div class="block" style="width:15rem; display:flex; justify-content:center; align-items:center;font-size:1.3rem;color:#6a7187;">
'.$rowt['type'].'
</div>
<div class="block" style="width:15rem; display:flex; justify-content:center; align-items:center;font-size:1.3rem;color:#6a7187;">
<i class="fa fa-trash" aria-hidden="true" onclick="deletebusiness('.$rowt['id'].')"></i>
</div>
</div>
</div>
';
$i++;
}
echo $template;
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/location/updatestate.php | Admin/assets/backend/location/updatestate.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
$name=get_safe_value($con,$_POST['cntry']);
$state=get_safe_value($con,$_POST['state']);
$cq="select * from state where state_name='$state' and c_id='$name'";
$cr=mysqli_query($con,$cq);
$cro=mysqli_num_rows($cr);
if($cro==0){
$q="update state set state_name='$state', c_id='$name' where id='$id'";
if(mysqli_query($con,$q)){
echo 1;
}else{
echo $q;
}
}else{
$r=mysqli_fetch_assoc($cr);
$rg=$r['id'];
if($cro>=1 && $rg==$id){
$q="update state set state_name='$state', c_id='$name' where id='$id'";
if(mysqli_query($con,$q)){
echo 1;
}else{
echo $q;
}
}else{
echo 3;
}
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/location/geteditcountry.php | Admin/assets/backend/location/geteditcountry.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
$template='';
$query2="select * from country where id='$id'";
$res2=mysqli_query($con,$query2);
$i=1;
while($rowt=mysqli_fetch_assoc($res2)){
$template=$template.'
<input
type="text"
placeholder="Enter Country Name"
id="sfield"
style="width:98.5%;margin:1rem 0;"
value="'.$rowt['cntry_name'].'"
/>
<button class="add" onclick="updatecountry('.$rowt['id'].')" id="edctcntry">
<i class="fa fa-refresh" aria-hidden="true"></i> Update
</button>
<span style="font-size:1.2rem;margin-top:0.8rem;" id="erm"></span>
';
}
echo $template;
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/location/deleteb.php | Admin/assets/backend/location/deleteb.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
mysqli_query($con,"delete from pin where id='$id'");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/location/addexcludepin.php | Admin/assets/backend/location/addexcludepin.php | <?php
require('../../../../utility/utility.php');
$value=get_safe_value($con,$_POST['cntry']);
$cq="select * from expin where pin='$value'";
$cr=mysqli_query($con,$cq);
$cro=mysqli_num_rows($cr);
if($cro==0){
$qyery="insert into expin(pin) values('$value')";
if(mysqli_query($con,$qyery)){
echo 1;
}else{
echo 0;
}
}else{
echo 3;
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/location/addcountry.php | Admin/assets/backend/location/addcountry.php | <?php
require('../../../../utility/utility.php');
$value=get_safe_value($con,$_POST['cntry']);
$cq="select * from country where cntry_name='$value'";
$cr=mysqli_query($con,$cq);
$cro=mysqli_num_rows($cr);
if($cro==0){
$qyery="insert into country(cntry_name) values('$value')";
if(mysqli_query($con,$qyery)){
echo 1;
}else{
echo 0;
}
}else{
echo 3;
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/location/updatecitylist.php | Admin/assets/backend/location/updatecitylist.php | <?php
require('../../../../utility/utility.php');
$template=' <div class="b" style="display:flex;flex-direction:column;padding:3rem 2rem">
<div class="row" style="height:3rem; display:flex;justify-content:space-between;">
<div class="block" style="width:15rem; font-weight: 600; color:#40464d; font-size:1.6rem; display:flex; justify-content:center; align-items:center;">
Slno
</div>
<div class="block" style="width:15rem; font-weight: 600; color:#40464d; font-size:1.6rem; display:flex; justify-content:center; align-items:center;">
Country
</div>
<div class="block" style="width:15rem; font-weight: 600; color:#40464d; font-size:1.6rem; display:flex; justify-content:center; align-items:center;">
State
</div>
<div class="block" style="width:15rem; font-weight: 600; color:#40464d; font-size:1.6rem; display:flex; justify-content:center; align-items:center;">
City
</div>
<div class="block" style="width:15rem; font-weight: 600; color:#40464d; font-size:1.6rem; display:flex; justify-content:center; align-items:center;">
Action
</div>
</div>
</div>';
$query2="select city.*,country.cntry_name,state.state_name from city,country,state where city.s_id=state.id and state.c_id=country.id order by city.id desc";
$res2=mysqli_query($con,$query2);
$i=1;
while($rowt=mysqli_fetch_assoc($res2)){
$template=$template.'
<div class="b" style="display:flex;flex-direction:column;padding:3rem 2rem">
<div class="row" style="height:3rem; display:flex;justify-content:space-between;">
<div class="block" style="width:15rem; display:flex; justify-content:center; align-items:center;font-size:1.3rem;color:#6a7187;">
'. $i.'
</div>
<div class="block" style="width:15rem; display:flex; justify-content:center; align-items:center;font-size:1.3rem;color:#6a7187;">
'.$rowt['cntry_name'].'
</div>
<div class="block" style="width:15rem; display:flex; justify-content:center; align-items:center;font-size:1.3rem;color:#6a7187;">
'.$rowt['state_name'].'
</div>
<div class="block" style="width:15rem; display:flex; justify-content:center; align-items:center;font-size:1.3rem;color:#6a7187;">
'.$rowt['city_name'].'
</div>
<div class="block" style="width:15rem; display:flex; justify-content:center; align-items:center;font-size:1.3rem;color:#6a7187;">
<i class="fa fa-pencil" aria-hidden="true" style="margin-right:1.2rem;" class="k" onclick="editcity('.$rowt['id'].')"></i>
<i class="fa fa-trash" aria-hidden="true" onclick="deletecity('.$rowt['id'].')"></i>
</div>
</div>
</div>
';
$i++;
}
echo $template;
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/location/updatecountrylist.php | Admin/assets/backend/location/updatecountrylist.php | <?php
require('../../../../utility/utility.php');
$template=' <div class="b" style="display:flex;flex-direction:column;padding:3rem 2rem">
<div class="row" style="height:3rem; display:flex;justify-content:space-between;">
<div class="block" style="width:15rem; font-weight: 600; color:#40464d; font-size:1.6rem; display:flex; justify-content:center; align-items:center;">
Slno
</div>
<div class="block" style="width:15rem; font-weight: 600; color:#40464d; font-size:1.6rem; display:flex; justify-content:center; align-items:center;">
Country
</div>
<div class="block" style="width:15rem; font-weight: 600; color:#40464d; font-size:1.6rem; display:flex; justify-content:center; align-items:center;">
Action
</div>
</div>
</div>';
$query2="select * from country order by id desc";
$res2=mysqli_query($con,$query2);
$i=1;
while($rowt=mysqli_fetch_assoc($res2)){
$template=$template.'
<div class="b" style="display:flex;flex-direction:column;padding:3rem 2rem">
<div class="row" style="height:3rem; display:flex;justify-content:space-between;">
<div class="block" style="width:15rem; display:flex; justify-content:center; align-items:center;font-size:1.3rem;color:#6a7187;">
'. $i.'
</div>
<div class="block" style="width:15rem; display:flex; justify-content:center; align-items:center;font-size:1.3rem;color:#6a7187;">
'.$rowt['cntry_name'].'
</div>
<div class="block" style="width:15rem; display:flex; justify-content:center; align-items:center;font-size:1.3rem;color:#6a7187;">
<i class="fa fa-pencil" aria-hidden="true" style="margin-right:1.2rem;" class="k" onclick="editcountry('.$rowt['id'].')"></i>
<i class="fa fa-trash" aria-hidden="true" onclick="deletecountry('.$rowt['id'].')"></i>
</div>
</div>
</div>
';
$i++;
}
echo $template;
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/location/deletecity.php | Admin/assets/backend/location/deletecity.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
$q="delete from city where id='$id'";
if(mysqli_query($con,$q)){
echo 1;
}else{
echo 0;
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/location/addpin.php | Admin/assets/backend/location/addpin.php | <?php
require('../../../../utility/utility.php');
$value=get_safe_value($con,$_POST['cntry']);
$state=get_safe_value($con,$_POST['state']);
$city=get_safe_value($con,$_POST['city']);
$pin=get_safe_value($con,$_POST['pin']);
$cq="select * from pin where pincode='$pin' and cn_id='$value' and s_id='$state' and c_id='$city'";
$cr=mysqli_query($con,$cq);
$cro=mysqli_num_rows($cr);
if($cro==0){
$qyery="insert into pin(cn_id,s_id,c_id,pincode) values('$value','$state','$city','$pin')";
if(mysqli_query($con,$qyery)){
echo 1;
}else{
echo 0;
}
}else{
echo 3;
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/location/updatestatelist.php | Admin/assets/backend/location/updatestatelist.php | <?php
require('../../../../utility/utility.php');
$template=' <div class="b" style="display:flex;flex-direction:column;padding:3rem 2rem">
<div class="row" style="height:3rem; display:flex;justify-content:space-between;">
<div class="block" style="width:15rem; font-weight: 600; color:#40464d; font-size:1.6rem; display:flex; justify-content:center; align-items:center;">
Slno
</div>
<div class="block" style="width:15rem; font-weight: 600; color:#40464d; font-size:1.6rem; display:flex; justify-content:center; align-items:center;">
Country
</div>
<div class="block" style="width:15rem; font-weight: 600; color:#40464d; font-size:1.6rem; display:flex; justify-content:center; align-items:center;">
State
</div>
<div class="block" style="width:15rem; font-weight: 600; color:#40464d; font-size:1.6rem; display:flex; justify-content:center; align-items:center;">
Action
</div>
</div>
</div>';
$query2="select state.*,country.cntry_name from state,country where state.c_id=country.id order by state.id desc";
$res2=mysqli_query($con,$query2);
$i=1;
while($rowt=mysqli_fetch_assoc($res2)){
$template=$template.'
<div class="b" style="display:flex;flex-direction:column;padding:3rem 2rem">
<div class="row" style="height:3rem; display:flex;justify-content:space-between;">
<div class="block" style="width:15rem; display:flex; justify-content:center; align-items:center;font-size:1.3rem;color:#6a7187;">
'. $i.'
</div>
<div class="block" style="width:15rem; display:flex; justify-content:center; align-items:center;font-size:1.3rem;color:#6a7187;">
'.$rowt['cntry_name'].'
</div>
<div class="block" style="width:15rem; display:flex; justify-content:center; align-items:center;font-size:1.3rem;color:#6a7187;">
'.$rowt['state_name'].'
</div>
<div class="block" style="width:15rem; display:flex; justify-content:center; align-items:center;font-size:1.3rem;color:#6a7187;">
<i class="fa fa-pencil" aria-hidden="true" style="margin-right:1.2rem;" class="k" onclick="editcountry('.$rowt['id'].')"></i>
<i class="fa fa-trash" aria-hidden="true" onclick="deletestate('.$rowt['id'].')"></i>
</div>
</div>
</div>
';
$i++;
}
echo $template;
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/location/deleteexpin.php | Admin/assets/backend/location/deleteexpin.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
$q="delete from expin where id='$id'";
if(mysqli_query($con,$q)){
echo 1;
}else{
echo 0;
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/location/getstatelist.php | Admin/assets/backend/location/getstatelist.php | <?php
require('../../../../utility/utility.php');
$name=get_safe_value($con,$_POST['id']);
$query2="select * from state where c_id='$name' order by id desc";
$res2=mysqli_query($con,$query2);
$r=mysqli_num_rows($res2);
$template='';
if($r==0){
$template='<option value="#">No State Listed</option>';
}else{
$template='<option value="#">Select State</option>';
while($rowt=mysqli_fetch_assoc($res2)){
$template=$template.'
<option value="'.$rowt['id'].'">'.$rowt['state_name'].'</option>
';
}
}
echo $template;
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/location/deletestate.php | Admin/assets/backend/location/deletestate.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
$q="delete from state where id='$id'";
if(mysqli_query($con,$q)){
echo 1;
}else{
echo 0;
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/location/deletecountry.php | Admin/assets/backend/location/deletecountry.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
$q="delete from country where id='$id'";
if(mysqli_query($con,$q)){
echo 1;
}else{
echo 0;
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/location/geteditstate.php | Admin/assets/backend/location/geteditstate.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
$query="select * from state where id='$id'";
$template='<select name="" id="fsc">
<option value="#">Select Country</option>';
$query2="select * from country";
$res=mysqli_query($con,$query);
$row=mysqli_fetch_assoc($res);
$c_state=$row['c_id'];
$res2=mysqli_query($con,$query2);
while($rowt=mysqli_fetch_assoc($res2)){
if($rowt['id']==$c_state){
$template=$template.'
<option value="'.$rowt['id'].'" selected>'.$rowt['cntry_name'].'</option>
';
}else{
$template=$template.'
<option value="'.$rowt['id'].'"> '.$rowt['cntry_name'].'</option>
';
}
}
$template=$template.'
</select>
<input
type="text"
placeholder="Enter Country Name"
id="sfield"
style="width:98.5%;margin:1rem 0;"
value="'.$row['state_name'].'"
/>
<button class="add" onclick="updatestate('.$row['id'].')" id="edtupst">
<i class="fa fa-refresh" aria-hidden="true"></i> Update
</button>
<span style="font-size:1.2rem;margin-top:0.8rem;" id="erm"></span>
';
echo $template;
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/location/updatecountry.php | Admin/assets/backend/location/updatecountry.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
$name=get_safe_value($con,$_POST['cntry']);
$cq="select * from country where cntry_name='$name'";
$cr=mysqli_query($con,$cq);
$cro=mysqli_num_rows($cr);
if($cro==0){
$q="update country set cntry_name='$name' where id='$id'";
if(mysqli_query($con,$q)){
echo 1;
}else{
echo 0;
}
}else{
$r=mysqli_fetch_assoc($cr);
$rg=$r['id'];
if($cro>=1 && $rg==$id){
$q="update country set cntry_name='$name' where id='$id'";
if(mysqli_query($con,$q)){
echo 1;
}else{
echo 0;
}
}else{
echo 3;
}
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/location/getcitylist.php | Admin/assets/backend/location/getcitylist.php | <?php
require('../../../../utility/utility.php');
$name=get_safe_value($con,$_POST['id']);
$query2="select * from city where s_id='$name' order by id desc";
$res2=mysqli_query($con,$query2);
$r=mysqli_num_rows($res2);
$template='';
if($r==0){
$template='<option value="#">No City Listed</option>';
}else{
$template='<option value="#">Select City</option>';
while($rowt=mysqli_fetch_assoc($res2)){
$template=$template.'
<option value="'.$rowt['id'].'">'.$rowt['city_name'].'</option>
';
}
}
echo $template;
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/location/updateexpinlist.php | Admin/assets/backend/location/updateexpinlist.php | <?php
require('../../../../utility/utility.php');
$template=' <div class="b" style="display:flex;flex-direction:column;padding:3rem 2rem">
<div class="row" style="height:3rem; display:flex;justify-content:space-between;">
<div class="block" style="width:15rem; font-weight: 600; color:#40464d; font-size:1.6rem; display:flex; justify-content:center; align-items:center;">
Slno
</div>
<div class="block" style="width:15rem; font-weight: 600; color:#40464d; font-size:1.6rem; display:flex; justify-content:center; align-items:center;">
Pin
</div>
<div class="block" style="width:15rem; font-weight: 600; color:#40464d; font-size:1.6rem; display:flex; justify-content:center; align-items:center;">
Action
</div>
</div>
</div>';
$query2="select * from expin order by id desc";
$res2=mysqli_query($con,$query2);
$i=1;
while($rowt=mysqli_fetch_assoc($res2)){
$template=$template.'
<div class="b" style="display:flex;flex-direction:column;padding:3rem 2rem">
<div class="row" style="height:3rem; display:flex;justify-content:space-between;">
<div class="block" style="width:15rem; display:flex; justify-content:center; align-items:center;font-size:1.3rem;color:#6a7187;">
'. $i.'
</div>
<div class="block" style="width:15rem; display:flex; justify-content:center; align-items:center;font-size:1.3rem;color:#6a7187;">
'.$rowt['pin'].'
</div>
<div class="block" style="width:15rem; display:flex; justify-content:center; align-items:center;font-size:1.3rem;color:#6a7187;">
<i class="fa fa-trash" aria-hidden="true" onclick="deleteexclude('.$rowt['id'].')"></i>
</div>
</div>
</div>
';
$i++;
}
echo $template;
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/location/addstate.php | Admin/assets/backend/location/addstate.php | <?php
require('../../../../utility/utility.php');
$value=get_safe_value($con,$_POST['cntry']);
$state=get_safe_value($con,$_POST['state']);
$cq="select * from state where state_name='$state' and c_id='$value'";
$cr=mysqli_query($con,$cq);
$cro=mysqli_num_rows($cr);
if($cro==0){
$qyery="insert into state(c_id,state_name) values('$value','$state')";
if(mysqli_query($con,$qyery)){
echo 1;
}else{
echo 0;
}
}else{
echo 3;
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/location/updatepinlist.php | Admin/assets/backend/location/updatepinlist.php | <?php
require('../../../../utility/utility.php');
$template=' <div class="b" style="display:flex;flex-direction:column;padding:3rem 2rem">
<div class="row" style="height:3rem; display:flex;justify-content:space-between;">
<div class="block" style="width:15rem; font-weight: 600; color:#40464d; font-size:1.6rem; display:flex; justify-content:center; align-items:center;">
Slno
</div>
<div class="block" style="width:15rem; font-weight: 600; color:#40464d; font-size:1.6rem; display:flex; justify-content:center; align-items:center;">
Country
</div>
<div class="block" style="width:15rem; font-weight: 600; color:#40464d; font-size:1.6rem; display:flex; justify-content:center; align-items:center;">
State
</div>
<div class="block" style="width:15rem; font-weight: 600; color:#40464d; font-size:1.6rem; display:flex; justify-content:center; align-items:center;">
City
</div>
<div class="block" style="width:15rem; font-weight: 600; color:#40464d; font-size:1.6rem; display:flex; justify-content:center; align-items:center;">
Pin
</div>
<div class="block" style="width:15rem; font-weight: 600; color:#40464d; font-size:1.6rem; display:flex; justify-content:center; align-items:center;">
Action
</div>
</div>
</div>';
$query2="select pin.*,city.city_name,state.state_name,country.cntry_name from pin,city,state,country where pin.c_id=city.id and city.s_id=state.id and state.c_id=country.id order by pin.id desc";
$res2=mysqli_query($con,$query2);
$i=1;
while($rowt=mysqli_fetch_assoc($res2)){
$template=$template.'
<div class="b" style="display:flex;flex-direction:column;padding:3rem 2rem">
<div class="row" style="height:3rem; display:flex;justify-content:space-between;">
<div class="block" style="width:15rem; display:flex; justify-content:center; align-items:center;font-size:1.3rem;color:#6a7187;">
'. $i.'
</div>
<div class="block" style="width:15rem; display:flex; justify-content:center; align-items:center;font-size:1.3rem;color:#6a7187;">
'.$rowt['cntry_name'].'
</div>
<div class="block" style="width:15rem; display:flex; justify-content:center; align-items:center;font-size:1.3rem;color:#6a7187;">
'.$rowt['state_name'].'
</div>
<div class="block" style="width:15rem; display:flex; justify-content:center; align-items:center;font-size:1.3rem;color:#6a7187;">
'.$rowt['city_name'].'
</div>
<div class="block" style="width:15rem; display:flex; justify-content:center; align-items:center;font-size:1.3rem;color:#6a7187;">
'.$rowt['pincode'].'
</div>
<div class="block" style="width:15rem; display:flex; justify-content:center; align-items:center;font-size:1.3rem;color:#6a7187;">
<i class="fa fa-pencil" aria-hidden="true" style="margin-right:1.2rem;" class="k" onclick="editpin('.$rowt['id'].')"></i>
<i class="fa fa-trash" aria-hidden="true" onclick="deletepin('.$rowt['id'].')"></i>
</div>
</div>
</div>
';
$i++;
}
echo $template;
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/location/addcity.php | Admin/assets/backend/location/addcity.php | <?php
require('../../../../utility/utility.php');
$value=get_safe_value($con,$_POST['cntry']);
$state=get_safe_value($con,$_POST['state']);
$city=get_safe_value($con,$_POST['city']);
$cq="select * from city where s_id='$state' and city_name='$city'";
$cr=mysqli_query($con,$cq);
$cro=mysqli_num_rows($cr);
if($cro==0){
$qyery="insert into city(s_id,c_id,city_name) values('$state','$value','$city')";
if(mysqli_query($con,$qyery)){
echo 1;
}else{
echo 0;
}
}else{
echo 3;
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/location/updatepin.php | Admin/assets/backend/location/updatepin.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
$name=get_safe_value($con,$_POST['cntry']);
$state=get_safe_value($con,$_POST['state']);
$city=get_safe_value($con,$_POST['city']);
$pin=get_safe_value($con,$_POST['pin']);
$cq="select * from pin where s_id='$state' and cn_id='$name' and c_id='$city' and pincode='$pin'";
$cr=mysqli_query($con,$cq);
$cro=mysqli_num_rows($cr);
if($cro==0){
$q="update pin set pincode='$pin', cn_id='$name', s_id='$state', c_id='$city' where id='$id'";
if(mysqli_query($con,$q)){
echo 1;
}else{
echo 0;
}
}else{
$r=mysqli_fetch_assoc($cr);
$rg=$r['id'];
if($cro>=1 && $rg==$id){
$q="update pin set pincode='$pin', cn_id='$name', s_id='$state', c_id='$city' where id='$id'";
if(mysqli_query($con,$q)){
echo 1;
}else{
echo 0;
}
}else{
echo 3;
}
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/location/geteditpin.php | Admin/assets/backend/location/geteditpin.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
$query="select * from pin where id='$id'";
$res=mysqli_query($con,$query);
$row=mysqli_fetch_assoc($res);
$c_cntry=$row['cn_id'];
$c_state=$row['s_id'];
$c_city=$row['c_id'];
$template='<select name="" id="fsc" onchange="getstatelist()">
<option value="#">Select Country</option>';
$query2="select * from country";
$query3="select * from state where c_id='$c_cntry'";
$query4="select * from city where c_id='$c_cntry' and s_id='$c_state'";
$res3=mysqli_query($con,$query3);
$res4=mysqli_query($con,$query4);
$res2=mysqli_query($con,$query2);
while($rowt=mysqli_fetch_assoc($res2)){
if($rowt['id']==$c_cntry){
$template=$template.'
<option value="'.$rowt['id'].'" selected>'.$rowt['cntry_name'].'</option>
';
}else{
$template=$template.'
<option value="'.$rowt['id'].'"> '.$rowt['cntry_name'].'</option>
';
}
}
$template=$template.'
</select>
<select name="" id="fscb" style="margin:1rem 0 0 0;" onchange="getcitylist()">
<option value="#">Select State</option>
';
while($rowtl=mysqli_fetch_assoc($res3)){
if($rowtl['id']==$c_state){
$template=$template.'
<option value="'.$rowtl['id'].'" selected>'.$rowtl['state_name'].'</option>
';
}else{
$template=$template.'
<option value="'.$rowtl['id'].'"> '.$rowtl['state_name'].'</option>
';
}
}
$template=$template.'
</select>
<select name="" id="fscb2" style="margin:1rem 0 0 0;">
<option value="#">Select City</option>
';
while($rowtlu=mysqli_fetch_assoc($res4)){
if($rowtlu['id']==$c_city){
$template=$template.'
<option value="'.$rowtlu['id'].'" selected>'.$rowtlu['city_name'].'</option>
';
}else{
$template=$template.'
<option value="'.$rowtlu['id'].'"> '.$rowtlu['city_name'].'</option>
';
}
}
$template=$template.'
</select>
<input
type="text"
placeholder="Enter Country Name"
id="sfield"
style="width:98.5%;margin:1rem 0;"
value="'.$row['pincode'].'"
/>
<button class="add" onclick="updatepin('.$row['id'].')" id="updtpn">
<i class="fa fa-refresh" aria-hidden="true"></i> Update
</button>
<span style="font-size:1.2rem;margin-top:0.8rem;" id="erm"></span>
';
echo $template;
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/location/getdefault.php | Admin/assets/backend/location/getdefault.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
$template='';
if($id==1){
$template=$template.'
<input
type="text"
placeholder="Enter Country Name"
id="sfield"
style="width:98.5%;margin:1rem 0;"
/>
<button class="add" onclick="addcountry()">
<i class="fa fa-plus" aria-hidden="true"></i> Add
</button>
<span style="font-size:1.2rem;margin-top:0.8rem;" id="erm"></span>
';
}else if($id==2){
$template='<select name="" id="fsc">
<option value="#">Select Country</option>';
$query2="select * from country";
$res2=mysqli_query($con,$query2);
while($rowt=mysqli_fetch_assoc($res2)){
$template=$template.'
<option value="'.$rowt['id'].'"> '.$rowt['cntry_name'].'</option>
';
}
$template=$template.'
</select>
<input
type="text"
placeholder="Enter State Name"
id="sfield"
style="width:98.5%;margin:1rem 0;"
/>
<button class="add" onclick="addstate()">
<i class="fa fa-plus" aria-hidden="true"></i> Add
</button>
<span style="font-size:1.2rem;margin-top:0.8rem;" id="erm"></span>
';
}else if($id==3){
$query="select * from city";
$res=mysqli_query($con,$query);
$row=mysqli_fetch_assoc($res);
$template='<select name="" id="fsc" onchange="getstatelist()">
<option value="#">Select Country</option>';
$query2="select * from s_country";
$res2=mysqli_query($con,$query2);
while($rowt=mysqli_fetch_assoc($res2)){
$template=$template.'
<option value="'.$rowt['name'].'"> '.$rowt['name'].'</option>
';
}
$template=$template.'
</select>
<select name="" id="fscb" style="margin:1rem 0 0 0;">
<option value="#">Select State</option>
';
$template=$template.'
</select>
<input
type="text"
placeholder="Enter Country Name"
id="sfield"
style="width:98.5%;margin:1rem 0;"
/>
<button class="add" onclick="addcity()">
<i class="fa fa-plus" aria-hidden="true"></i> Add
</button>
<span style="font-size:1.2rem;margin-top:0.8rem;" id="erm"></span>
';
}else{
$query="select * from s_city";
$res=mysqli_query($con,$query);
$row=mysqli_fetch_assoc($res);
$template='<select name="" id="fsc" onchange="getstatelist()">
<option value="#">Select Country</option>';
$query2="select * from s_country";
$res2=mysqli_query($con,$query2);
while($rowt=mysqli_fetch_assoc($res2)){
$template=$template.'
<option value="'.$rowt['name'].'"> '.$rowt['name'].'</option>
';
}
$template=$template.'
</select>
<select name="" id="fscb" style="margin:1rem 0 0 0;" onchange="getcitylist()">
<option value="#">Select State</option>
</select>
<select name="" id="fscb2" style="margin:1rem 0 0 0;">
<option value="#">Select City</option>
</select>
<input
type="text"
placeholder="Enter Country Name"
id="sfield"
style="width:98.5%;margin:1rem 0;"
/>
<button class="add" onclick="addpin()">
<i class="fa fa-plus" aria-hidden="true"></i> Add
</button>
<span style="font-size:1.2rem;margin-top:0.8rem;" id="erm"></span>
';
}
echo $template;
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/location/geteditcity.php | Admin/assets/backend/location/geteditcity.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
$query="select * from city where id='$id'";
$res=mysqli_query($con,$query);
$row=mysqli_fetch_assoc($res);
$c_cntry=$row['c_id'];
$c_state=$row['s_id'];
$template='<select name="" id="fsc" onchange="getstatelist()">
<option value="#">Select Country</option>';
$query2="select * from country";
$query3="select * from state where c_id='$c_cntry'";
$res3=mysqli_query($con,$query3);
$res2=mysqli_query($con,$query2);
while($rowt=mysqli_fetch_assoc($res2)){
if($rowt['id']==$c_cntry){
$template=$template.'
<option value="'.$rowt['id'].'" selected>'.$rowt['cntry_name'].'</option>
';
}else{
$template=$template.'
<option value="'.$rowt['id'].'"> '.$rowt['cntry_name'].'</option>
';
}
}
$template=$template.'
</select>
<select name="" id="fscb" style="margin:1rem 0 0 0;">
<option value="#">Select State</option>
';
while($rowtl=mysqli_fetch_assoc($res3)){
if($rowtl['id']==$c_state){
$template=$template.'
<option value="'.$rowtl['id'].'" selected>'.$rowtl['state_name'].'</option>
';
}else{
$template=$template.'
<option value="'.$rowtl['id'].'"> '.$rowtl['state_name'].'</option>
';
}
}
$template=$template.'
</select>
<input
type="text"
placeholder="Enter Country Name"
id="sfield"
style="width:98.5%;margin:1rem 0;"
value="'.$row['city_name'].'"
/>
<button class="add" onclick="updatecity('.$row['id'].')" id="edcit">
<i class="fa fa-refresh" aria-hidden="true"></i> Update
</button>
<span style="font-size:1.2rem;margin-top:0.8rem;" id="erm"></span>
';
echo $template;
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/location/updatecity.php | Admin/assets/backend/location/updatecity.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
$name=get_safe_value($con,$_POST['cntry']);
$state=get_safe_value($con,$_POST['state']);
$city=get_safe_value($con,$_POST['city']);
$cq="select * from city where s_id='$state' and city_name='$city'";
$cr=mysqli_query($con,$cq);
$cro=mysqli_num_rows($cr);
if($cro==0){
$q="update city set city_name='$city',c_id='$name', s_id='$state' where id='$id'";
if(mysqli_query($con,$q)){
echo 1;
}else{
echo 0;
}
}else{
$r=mysqli_fetch_assoc($cr);
$rg=$r['id'];
if($cro>=1 && $rg==$id){
$q="update city set city_name='$city',c_id='$name' , s_id='$state' where id='$id'";
if(mysqli_query($con,$q)){
echo 1;
}else{
echo 0;
}
}else{
echo 3;
}
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/delivery/finalize.php | Admin/assets/backend/delivery/finalize.php | <?php
require('../../../../utility/utility.php');
$oid=get_safe_value($con,$_POST['oid']);
mysqli_query($con,"update orders set ptu='1' where id='$oid'");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/delivery/assign.php | Admin/assets/backend/delivery/assign.php | <?php
require('../../../../utility/utility.php');
$oid=get_safe_value($con,$_POST['oid']);
$db=get_safe_value($con,$_POST['dboy']);
mysqli_query($con,"insert into assigned_orders(od_id,dv_id) values('$oid','$db')");
mysqli_query($con,"insert into order_time(oid,o_status) values('$oid','3')");
mysqli_query($con,"update orders set order_status='3' where id='$oid'");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/delivery/refinalize.php | Admin/assets/backend/delivery/refinalize.php | <?php
require('../../../../utility/utility.php');
$oid=get_safe_value($con,$_POST['oid']);
mysqli_query($con,"delete from cnfrm_undelivery where od_id='$oid'");
$f=mysqli_fetch_assoc(mysqli_query($con,"select * from orders where id='$oid'"));
if($f['payment_type']==2){
$uid=$f['u_id'];
$price=$f['final_val'];
$pricei=$f['o_id'];
$row=mysqli_fetch_assoc(mysqli_query($con,"select * from user_wallet where user_id='$uid'"));
$current=$row['ballance'];
$now=$current+$price;
$msg="Refund for ".$pricei;
mysqli_query($con,"insert into user_w_msg(u_id,cod,msg,balance,is_new) values ('$uid','1','$msg','$price','1')");
mysqli_query($con,"update orders set udvc='1' where id='$oid'");
mysqli_query($con,"update user_wallet set ballance='$now' where user_id='$uid'");
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/delivery/handover.php | Admin/assets/backend/delivery/handover.php | <?php
require('../../../../utility/utility.php');
$oid=get_safe_value($con,$_POST['oid']);
$pid=get_safe_value($con,$_POST['pid']);
mysqli_query($con,"update order_detail set hover='1' where oid='$oid' and p_id='$pid'");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/delivery/finalize_u.php | Admin/assets/backend/delivery/finalize_u.php | <?php
require('../../../../utility/utility.php');
$oid=get_safe_value($con,$_POST['oid']);
$val=get_safe_value($con,$_POST['val']);
$f=mysqli_fetch_assoc(mysqli_query("select * from orders where id='$oid'"));
$pt=$f['payment_type'];
$pricei=$f['o_id'];
$uid=$f['u_id'];
if($pt==2){
$msg="Refund for ".$pricei;
mysqli_query($con,"insert into user_w_msg(u_id,cod,msg,balance,is_new) values ('$uid','1','$msg','$val','1')");
mysqli_query($con,"update user_wallet set ballance=ballance+'$val' where user_id='$uid'");
}
mysqli_query($con,"update orders set ptu='1' where id='$oid'");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/delivery/reassign.php | Admin/assets/backend/delivery/reassign.php | <?php
require('../../../../utility/utility.php');
$oid=get_safe_value($con,$_POST['oid']);
$f=mysqli_fetch_assoc(mysqli_query($con,"select * from cnfrm_undelivery where od_id='$oid'"));
$db=$f['dv_id'];
mysqli_query($con,"delete from order_time where oid='$oid' and not o_status='2'");
mysqli_query($con,"delete from cnfrm_undelivery where od_id='$oid'");
mysqli_query($con,"insert into assigned_orders(od_id,dv_id) values('$oid','$db')");
mysqli_query($con,"insert into order_time(oid,o_status) values('$oid','3')");
mysqli_query($con,"update orders set order_status='3' where id='$oid'");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/subfilter/deletesubfilter.php | Admin/assets/backend/subfilter/deletesubfilter.php | <?php
require('../../../../utility/utility.php');
$id=get_safe_value($con,$_POST['id']);
mysqli_query($con,"delete from sub_filter where id='$id'");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/subfilter/updatefilterlist.php | Admin/assets/backend/subfilter/updatefilterlist.php | <?php
require('../../../../utility/utility.php');
$template='<div class="b" style="display:flex;flex-direction:column;padding:3rem 2rem">
<div class="row" style="height:3rem; display:flex;justify-content:space-between;">
<div class="block" style="width:15rem; font-weight: 600; color:#40464d; font-size:1.6rem; display:flex; justify-content:center; align-items:center;">
Slno
</div>
<div class="block" style="width:15rem; font-weight: 600; color:#40464d; font-size:1.6rem; display:flex; justify-content:center; align-items:center;">
Filter
</div>
<div class="block" style="width:15rem; font-weight: 600; color:#40464d; font-size:1.6rem; display:flex; justify-content:center; align-items:center;">
Subilter
</div>
<div class="block" style="width:15rem; font-weight: 600; color:#40464d; font-size:1.6rem; display:flex; justify-content:center; align-items:center;">
Action
</div>
</div>
</div>';
$query2="select sub_filter.*,filter.filter from sub_filter,filter where sub_filter.filter_id=filter.id order by sub_filter.id desc";
$res2=mysqli_query($con,$query2);
$i=1;
while($rowt=mysqli_fetch_assoc($res2)){
$template=$template.'
<div class="b" style="display:flex;flex-direction:column;padding:3rem 2rem">
<div class="row" style="height:3rem; display:flex;justify-content:space-between;">
<div class="block" style="width:15rem; display:flex; justify-content:center; align-items:center;font-size:1.3rem;color:#6a7187;">
'. $i.'
</div>
<div class="block" style="width:15rem; display:flex; justify-content:center; align-items:center;font-size:1.3rem;color:#6a7187;">
'.$rowt['filter'].'
</div>
<div class="block" style="width:15rem; display:flex; justify-content:center; align-items:center;font-size:1.3rem;color:#6a7187;">
'.$rowt['subfilter'].'
</div>
<div class="block" style="width:15rem; display:flex; justify-content:center; align-items:center;font-size:1.3rem;color:#6a7187;">
<i class="fa fa-trash" aria-hidden="true" onclick="deletesubfilter('.$rowt['id'].')"></i>
</div>
</div>
</div>
';
$i++;
}
echo $template;
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/subfilter/addfilter.php | Admin/assets/backend/subfilter/addfilter.php | <?php
require('../../../../utility/utility.php');
$value=get_safe_value($con,$_POST['filter']);
$subcat=get_safe_value($con,$_POST['subcat']);
$cq="select * from sub_filter where subfilter='$value'";
$cr=mysqli_query($con,$cq);
$cro=mysqli_num_rows($cr);
if($cro==0){
$qyery="insert into sub_filter(filter_id,subfilter) values('$subcat','$value')";
if(mysqli_query($con,$qyery)){
echo 1;
}else{
echo 0;
}
}else{
echo 3;
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/assets/backend/subfilter/get_subfilter.php | Admin/assets/backend/subfilter/get_subfilter.php | <?php
require('../../../../utility/utility.php');
$pcat=get_safe_value($con,$_POST['pcat']);
$template='';
$q="select * from sub_filter where p_filter='$pcat'";
$res=mysqli_query($con,$q);
if(mysqli_num_rows($res)==0){
$template="<option>No Data found</option>";
}else{
$template="<option value='#'>Select Filter</option>";
while($row=mysqli_fetch_assoc($res)){
$name=$row['filter'];
$d=$row['id'];
$template=$template."
<option value='$d'>$name</option>
";
}
}
echo $template;
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/require/top.php | Admin/require/top.php | <?php
require('../utility/utility.php');
if (!isset($_SESSION['IS_LOGIN_ADMIN'])) {
redirect('login.php');
} else {
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Admin Panel | Dashbord</title>
<link rel="stylesheet" href="assets/css/style.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" />
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script src="https://kit.fontawesome.com/1615ee01dc.js" crossorigin="anonymous"></script>
</head>
<body>
<div class="floatwrap" id="floatwrap">
<div class="cataddbox" id="cataddbox"></div>
</div>
<div class="floatwrap" id="floatwrap2">
<div class="cataddbox" id="cataddboxsub"></div>
</div>
<div class="floatwrap global" id="globalfloatwrap">
<div class="updatebalance" id="updatebalance">
<div class="row">
<h1>Current Balence:</h1>
<h3>₹1700</h3>
</div>
<div class="row2">
<input type="number" placeholder="Enter Updated Balence" />
<button class="add">
<i class="fa fa-refresh" aria-hidden="true"></i>
Update
</button>
</div>
<div class="row2">
<button class="add" onclick="closebalance()">
<i class="fa fa-times" aria-hidden="true"></i>
Close
</button>
</div>
</div>
<div class="productview" id="productview"></div>
<div class="productview" id="productviewapprove">
<div class="row">
<div class="left">
<div class="image">
<img src="assets/images/2.jpg" alt="" id="mi" />
</div>
<div class="imgrow">
<div class="imb" onclick="changeview('assets/images/1.jpg')">
<img src="assets/images/1.jpg" alt="" />
</div>
<div class="imb" onclick="changeview('assets/images/2.jpg')">
<img src="assets/images/2.jpg" alt="" />
</div>
</div>
<div class="namebox">
<h3>Product 1 electric kettle</h3>
</div>
<div class="namebox">
Electric | <span>brush</span>
</div>
<div class="namebox">
<span class="price">
Price:
<span class="tag">
₹1700 | <em class="crs">₹100</em>
</span>
</span>
</div>
</div>
<div class="right">
<h3>Short Description:</h3>
<br />
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Reprehenderit mollitia possimus autem provident reiciendis
</p>
<br />
<h3>Description:</h3>
<br />
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Culpa
labore officia explicabo ipsum? Animi ratione, velit in corrupti
quibusdam aperiam non rem, magnam optio quam iure, totam soluta
maxime placeat! Lorem ipsum dolor sit amet consectetur adipisicing
elit. Culpa labore officia explicabo ipsum? Animi ratione, velit
in corrupti quibusdam aperiam non rem, magnam optio quam iure,
totam soluta maxime placeat!
</p>
<div class="stock">
<span>In Stock </span>
</div>
<div class="stock">
<span class="qty">Quantity: 80 pc. </span>
</div>
<div class="stock">
<span class="qty">
Added By: <span class="n">Admin</span>
</span>
</div>
<div class="stock">
<span class="qty">
Date: <span class="n">12/12/12</span>
</span>
</div>
<div class="btnrow">
<button class="adcatbtn" onclick="closeadctp()">
<i class="fa fa-times" aria-hidden="true"></i>
Close
</button>
</div>
</div>
</div>
</div>
</div>
<div class="mainbody-wrapper">
<div class="navigation">
<div class="photo">
<img src="assets/images/2.jpg" alt="admin photo" />
</div>
<div class="top">
<h2>Welcome</h2>
<br />
<h2>
<span>Admin</span>
</h2>
</div>
<div class="menutittle">Menu</div>
<ul>
<a href="index.php">
<li>
<i class="fa fa-home" aria-hidden="true"></i>
Dashbord
</li>
</a>
<a href="categories.php">
<li>
<i class="fa fa-list" aria-hidden="true"></i>
Categories
</li>
</a>
<a href="sub-cat.php">
<li>
<i class="fa fa-align-left" aria-hidden="true"></i>
SubCategories
</li>
</a>
<a href="loacationc.php">
<li>
<i class="fa fa-globe" aria-hidden="true"></i>
Add Country
</li>
</a>
<a href="loacations.php">
<li>
<i class="fa fa-map-marker" aria-hidden="true"></i>
Add State
</li>
</a>
<a href="loacationci.php">
<li>
<i class="fa fa-building-o" aria-hidden="true"></i>
Add City
</li>
</a>
<a href="locationpin.php">
<li>
<i class="fa fa-map-pin" aria-hidden="true"></i>
Add Pincode
</li>
</a>
<a href="business.php">
<li>
<i class="fa fa-bullseye" aria-hidden="true"></i>
Add Business Type
</li>
</a>
<a href="filters.php">
<li>
<i class="fa fa-filter" aria-hidden="true"></i>
Add Filter
</li>
</a>
<a href="subfilters.php">
<li>
<i class="fa fa-hourglass-start" aria-hidden="true"></i>
Add Sub-Filter
</li>
</a>
<a href="ad_dv_time.php">
<li>
<i class="fa fa-user" aria-hidden="true"></i>
Delivery Time
</li>
</a>
<a href="product.php">
<li>
<i class="fa fa-briefcase" aria-hidden="true"></i>
Product
</li>
</a>
<a href="seller.php">
<li>
<i class="fa fa-users" aria-hidden="true"></i>
Sellers
</li>
</a>
<a href="user.php">
<li>
<i class="fa fa-user" aria-hidden="true"></i>
Users
</li>
</a>
<a href="deliveryboy.php">
<li>
<i class="fa fa-user" aria-hidden="true"></i>
Delivery Boy
</li>
</a>
<a href="incompleteorder.php">
<li>
<i class="fa fa-exclamation-circle" aria-hidden="true"></i>
Incomplete Orders
</li>
</a>
<a href="order.php">
<li>
<i class="fa fa-shopping-cart" aria-hidden="true"></i>
Order Received
<?php
$count = mysqli_num_rows(mysqli_query($con, "select * from orders where isnew='1'"));
if ($count > 0) {
?>
<span style="background:red; padding:0.3rem; color:white; border-radius:50%">
<?php echo $count; ?>
</span>
<?php
}
?>
</li>
</a>
<a href="orderassigned.php">
<li>
<i class="fa fa-shopping-cart" aria-hidden="true"></i>
Order Assigned
</li>
</a>
<a href="ofd.php">
<li>
<i class="fa fa-shopping-cart" aria-hidden="true"></i>
Out for Delivery
</li>
</a>
<a href="dv_confirm.php">
<li>
<i class="fa fa-shopping-cart" aria-hidden="true"></i>
Delivery Confirmation
</li>
</a>
<a href="udv_confirm.php">
<li>
<i class="fa fa-shopping-cart" aria-hidden="true"></i>
Undelivery Confirmation
</li>
</a>
<a href="delivered.php">
<li>
<i class="fa fa-shopping-cart" aria-hidden="true"></i>
Delivered
</li>
</a>
<a href="undelivered.php">
<li>
<i class="fa fa-usd" aria-hidden="true"></i>
Undelivered
</li>
</a>
<a href="issue.php">
<li>
<i class="fa fa-usd" aria-hidden="true"></i>
Issue
</li>
</a>
<a href="setelmentpending.php">
<li>
<i class="fa fa-usd" aria-hidden="true"></i>
Settelment
</li>
</a>
<a href="Setteled.php">
<li>
<i class="fa fa-usd" aria-hidden="true"></i>
Setteled
</li>
</a>
<a href="earning.php">
<li>
<i class="fa fa-usd" aria-hidden="true"></i>
Earning
</li>
</a>
<a href="sellerapprove.php">
<li>
<i class="fa fa-check-circle-o" aria-hidden="true"></i>
Approve Seller
<?php
$count = mysqli_num_rows(mysqli_query($con, "select * from sellers where is_cp='1' and is_new='1' and isapp='0'"));
if ($count > 0) {
?>
<span style="background:red; padding:0.3rem; color:white; border-radius:50%">
<?php echo $count; ?>
</span>
<?php
}
?>
</li>
</a>
<a href="nonsellerapprove.php">
<li>
<i class="fa fa-check-circle-o" aria-hidden="true"></i>
Non Approve Seller
<?php
$count = mysqli_num_rows(mysqli_query($con, "select * from sellers where is_cp='0' and is_new='1'"));
if ($count > 0) {
?>
<span style="background:red; padding:0.3rem; color:white; border-radius:50%">
<?php echo $count; ?>
</span>
<?php
}
?>
</li>
</a>
<a href="productapprove.php">
<li>
<i class="fa fa-check-square-o" aria-hidden="true"></i>
Approve Product
<?php
$count = mysqli_num_rows(mysqli_query($con, "select * from product where isnew='1' and isappp='0'"));
if ($count > 0) {
?>
<span style="background:red; padding:0.3rem; color:white; border-radius:50%">
<?php echo $count; ?>
</span>
<?php
}
?>
</li>
</a>
<a href="witdraw.php">
<li>
<i class="fa fa-share-square-o" aria-hidden="true"></i>
Witdraw Request
<?php
$count = mysqli_num_rows(mysqli_query($con, "select * from witdraw_req where isnew='1'"));
if ($count > 0) {
?>
<span style="background:red; padding:0.3rem; color:white; border-radius:50%">
<?php echo $count; ?>
</span>
<?php
}
?>
</li>
</a>
<a href="adduser.php">
<li>
<i class="fa fa-hourglass-start" aria-hidden="true"></i>
Add User
</li>
</a>
<a href="addseller.php">
<li>
<i class="fa fa-hourglass-start" aria-hidden="true"></i>
Add Seller
</li>
</a>
<a href="addDeliveryBoy.php">
<li>
<i class="fa fa-hourglass-start" aria-hidden="true"></i>
Add Delivery Boy
</li>
</a>
</ul>
</div>
<div class="workspace">
<header>
<button onclick="logout()">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="beige" width="15px" height="15px">
<path d="M0 0h24v24H0z" fill="none" />
<path d="M13 3h-2v10h2V3zm4.83 2.17l-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83z" />
</svg>
Logout
</button>
</header>
<?php
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/Admin/require/foot.php | Admin/require/foot.php | </div>
</div>
<script src="assets/js/jquery-3.2.1.min.js"></script>
<script src="assets/js/script.js"></script>
</body>
</html>
| php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/seller/order-detail.php | seller/order-detail.php | <?php
require('require/top.php');
$oid = $_GET['id'];
?>
<div class="path">
<div class="container">
<a href="index.php">Home</a>
/
<a href="">Order Detail</a>
</div>
</div>
<div class="cartrow" id="catrow">
<div class="gh">
<?php
$query = "select orders.is_p_app,orders.is_w_ap,orders.prmo,orders.wlmt,orders.dv_time,orders.order_status,orders.id,orders.o_id,orders.total_amt,orders.ship_fee_order,orders.final_val,dv_time.from,dv_time.tto,order_status.o_status from orders,dv_time,order_status where orders.id='$oid' and orders.dv_date=dv_time.id and not orders.order_status='1' and orders.order_status=order_status.id";
$res = mysqli_query($con, $query);
if (mysqli_num_rows($res) > 0) {
while ($row = mysqli_fetch_assoc($res)) {
?>
<div class="pdpt-bg">
<div class="pdpt-title flex justify-between">
<h6>Order Id: <?php echo $row['o_id']; ?></h6>
<h6>Time: <?php echo $row['dv_time']; ?>,<?php echo $row['from']; ?> -
<?php echo $row['tto']; ?></h6>
</div>
<div class="order-body10">
<?php
$sellerId = $_SESSION['SELLER_ID'];
$oid = $row['id'];
$rs = mysqli_query($con, "select order_detail.qty,product.product_name,product.img1,product.fa from order_detail,product where order_detail.oid='$oid' and order_detail.p_id=product.id and product.added_by='$sellerId'");
while ($rw = mysqli_fetch_assoc($rs)) {
?>
<ul class="order-dtsll">
<li>
<div class="order-dt-img">
<img src="../media/product/<?php echo $rw['img1']; ?>" alt="" />
</div>
</li>
<li>
<div class="order-dt47">
<h4><?php echo $rw['product_name']; ?></h4>
<div class="order-title">
<?php echo $rw['qty']; ?> Items
</div>
<p>₹<?php echo $rw['fa']; ?></p>
</div>
</li>
</ul>
<?php } ?>
<div class="total-dt">
<div class="total-checkout-group">
<div class="cart-total-dil">
<h4>Sub Total</h4>
<span>₹<?php echo $row['total_amt']; ?></span>
</div>
<div class="cart-total-dil pt-3">
<h4>Delivery Charges</h4>
<span>₹<?php echo $row['ship_fee_order']; ?></span>
</div>
<?php
if ($row['is_p_app'] == 1) {
?>
<div class="cart-total-dil pt-3">
<h4>From Promo</h4>
<span>-₹<?php echo $row['prmo']; ?></span>
</div>
<?php
}
if ($row['is_w_ap'] == 1) {
?>
<div class="cart-total-dil pt-3">
<h4>From Wallet</h4>
<span>-₹<?php echo $row['wlmt']; ?></span>
</div>
<?php
}
?>
</div>
<div class="main-total-cart">
<h2>Total</h2>
<span>₹<?php echo $row['final_val']; ?></span>
</div>
</div>
<div class="track-order">
<span class="badge ofd"><?php echo $row['o_status']; ?></span>
</div>
</div>
</div>
<?php
}
}
?>
<div class="pdpt-bg">
<div class="pdpt-title flex justify-between">
<h4>Order Timing</h4>
</div>
<div class="order-body10">
<div class="total-dt">
<div class="total-checkout-group bt0">
<?php
$fg = mysqli_query($con, "select order_time.added_on,order_status.o_status from order_time,order_status where order_time.oid='$oid' and order_time.o_status=order_status.id");
while ($rw = mysqli_fetch_assoc($fg)) {
echo "<div class='cart-total-dil'><h4>" . $rw['o_status'] . " : " . "</h4>" . "<span>" . $rw['added_on'] . "</span></div>";
}
?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
require("require/foot.php");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/seller/add_product.php | seller/add_product.php | <?php
require('require/top.php');
$h_t = get_safe_value($con, $_GET['b']);
if (isset($_GET['idp'])) {
$productid = get_safe_value($con, $_GET['idp']);
}
$name = '';
$category = '';
$subcategory = '';
$qty = '';
$price = '';
$sellprice = '';
$tax = '';
$fa = '0.00';
$sku = '';
$shipping = '';
$shippingex = '';
$sd = '';
$dc = '';
$bs = '';
$filter = '';
$subfilter = '';
$tc = '';
$rday = '';
$return_p = '';
$repref = '';
$sku = get_code();
$img1 = "../assets/images/product/big-2.jpg";
$img2 = "../assets/images/product/big-2.jpg";
$img3 = "../assets/images/product/big-2.jpg";
$img4 = "../assets/images/product/big-2.jpg";
if ($h_t == '1973') {
$heading = "Add Product";
$cb = '<a href="javascript:void(0)" class="btn d-flex-center-a-j bg-main br-15" onclick="add_product()" id="pbtn">
<i class="uil uil-plus"></i>
<span>Add</span>
</a>';
} else if ($h_t == '2846') {
$heading = "Edit Product";
$productid = get_safe_value($con, $_GET['idp']);
$cq = "select * from product where id='$productid'";
$cr = mysqli_query($con, $cq);
$nor = mysqli_num_rows($cr);
if ($nor > 0) {
$r = mysqli_fetch_assoc($cr);
$name = $r['product_name'];
$category = $r['cat_id'];
$subcategory = $r['scat_id'];
$qty = $r['qty'];
$price = $r['price'];
$sellprice = $r['sell_price'];
$tax = $r['tax'];
$fa = $r['fa'];
$sku = $r['sku'];
$sd = $r['shrt_desc'];
$dc = $r['description'];
$tc = $r['disclaimer'];
$img1 = "../media/product/" . $r['img1'];
$img2 = "../media/product/" . $r['img2'];
if (!empty($r['img3'])) {
$img3 = "../media/product/" . $r['img3'];
}
if (!empty($r['img4'])) {
$img4 = "../media/product/" . $r['img4'];
}
$cb = '<a href="javascript:void(0)" class="btn d-flex-center-a-j bg-main br-15" onclick="edit_product(' . $_GET['idp'] . ')" id="pbtn">
<i class="uil uil-plus"></i>
<span>Add</span>
</a>';
} else {
redirect('product.php');
}
} else {
redirect('product.php');
}
?>
<div class="path">
<div class="container">
<a href="index.html">Home</a>
/
<a href="product.php">product</a>
/
<a href="add_product.php">add product</a>
</div>
</div>
<div class="cartrow" id="catrow">
<div class="gh">
<div class="heading">
<h3><?php echo $heading; ?></h3>
</div>
<div class="maincontainer2">
<form action="#">
<div class="formrow">
<div class="heading">Category</div>
<select name="addcatname" id="addcatname" onchange="get_subcatfa()">
<option value="#">select category</option>
<?php
$query = "select * from categories order by id desc";
$resi = mysqli_query($con, $query);
$i = 1;
while ($ropw = mysqli_fetch_assoc($resi)) {
$cname = $ropw['category'];
$cnamei = $ropw['id'];
if ($cnamei == $category) {
echo "<option value='$cnamei' selected>$cname</option> ";
} else {
echo "<option value='$cnamei'>$cname</option> ";
}
}
?>
</select>
</div>
<div class="formrow">
<div class="heading">Sub-category</div>
<select name="addscatname" id="addscatname" onchange="get_filterfa()">
<option value="#">select sub-category</option>
<?php
if ($h_t == 2846) {
$query2 = "select * from subcategories where cat_id='$category' order by id desc";
$resi2 = mysqli_query($con, $query2);
while ($ropw2 = mysqli_fetch_assoc($resi2)) {
$cname2 = $ropw2['subcat'];
$cname2i = $ropw2['id'];
if ($cname2i == $subcategory) {
echo "<option value='$cname2i' selected>$cname2</option>";
} else {
echo "<option value='$cname2i'>$cname2</option> ";
}
}
}
?>
</select>
</div>
<div id="filters">
<?php
if ($h_t == 2846) {
$productSubFilters = array();
$subfilterRes = mysqli_query($con, "select * from p_sfilter where pid='$productid'");
while ($subfilterRow = mysqli_fetch_assoc($subfilterRes)) {
$productSubFilters[] = $subfilterRow['sfid'];
}
$qn = "select * from filter where subcat_id='$subcategory'";
$resn = mysqli_query($con, $qn);
$template = '';
while ($rown = mysqli_fetch_assoc($resn)) {
$template = $template . '
<div class="formrow">
<div class="heading">
Filter
</div>
<select class="select" name="productFiltersName" id="addfiltername">
<option value="' . $rown['id'] . '">' . $rown['filter'] . '</option>
</select>
</div>
<div class="formrow">
<div class="heading">
Sub Filter
</div>
<div id="subfilters" style="background-color: #f8f8fb;width:100%;padding: 0.8rem;
border: 0.5px solid #74788d;
border-radius: 5px;">';
$filtername = $rown['id'];
$q2 = "select * from sub_filter where filter_id='$filtername'";
$res2 = mysqli_query($con, $q2);
while ($row2 = mysqli_fetch_assoc($res2)) {
if (in_array($row2['id'], $productSubFilters)) {
$template = $template . '<span style="font-size:1.2rem;float:left; margin:0 0.8rem">
<input type="checkbox" name="productSubFiltersName" style="display:block;height: 1.5rem;
background-color: #f8f8fb;
width: 1.5rem;
padding: 0 0.8rem;
border: 0.5px solid #74788d;
border-radius: 5px;float:left" value="' . $row2['id'] . '" checked>
' . $row2['subfilter'] . '
</span>';
} else {
$template = $template . '<span style="font-size:1.2rem;float:left; margin:0 0.8rem">
<input type="checkbox" name="productSubFiltersName" style="display:block;height: 1.5rem;
background-color: #f8f8fb;
width: 1.5rem;
padding: 0 0.8rem;
border: 0.5px solid #74788d;
border-radius: 5px;float:left" value="' . $row2['id'] . '">
' . $row2['subfilter'] . '
</span>';
}
}
$template = $template . '</div> </div>';
}
echo $template;
unset($productSubFilters);
}
?>
</div>
<div class="formrow">
<div class="heading">Name</div>
<input type="text" placeholder="Enter Product Name *" id="pname" value="<?php echo $name; ?>" />
</div>
<div class="formrow">
<div class="heading">Price</div>
<input type="number" placeholder="Enter Product Price *" id="pprice" value="<?php echo $price; ?>" oninput="putacp()" />
</div>
<div class="formrow">
<div class="heading">Selling Price</div>
<input type="number" placeholder="Enter Product Selling Price *" id="psprice" value="<?php echo $sellprice; ?>" oninput="checkprice()" valueAsNumber />
</div>
<div class="formrow">
<div class="heading">Tax</div>
<input type="number" placeholder="Enter Product Tax *" id="tax" oninput="t_ax()" value="<?php echo $tax; ?>" />
</div>
<div class="formrow">
<div class="heading">Final Price</div>
<input type="number" placeholder="0.00" id="fa" value="<?php echo $fa; ?>" readonly />
</div>
<div class="formrow">
<div class="heading">SKU</div>
<input type="text" id="sku" value="<?php echo $sku; ?>" readonly />
</div>
<div class="formrow">
<div class="heading">Quantity</div>
<input type="number" placeholder="Enter Product Quantity *" id="pqty" value="<?php echo $qty; ?>" />
</div>
<div class="formrow f">
<div class="heading">Terms & Condition</div>
<textarea name="shrtdsc" id="tc" placeholder="Terms & Condition *"><?php echo $tc; ?></textarea>
</div>
<div class="formrow f">
<div class="heading">Short Description</div>
<textarea name="shrtdsc" id="shrtdsc" placeholder="Short Description *"><?php echo $sd; ?></textarea>
</div>
<div class="formrow f">
<div class="heading">Description</div>
<textarea class="desc" name="dsc" id="dsc" placeholder="Description *"><?php echo $dc; ?></textarea>
</div>
<div class="formrow ig">
<div class="imgdiv">
<div class="img">
<img src="<?php echo $img1; ?>" alt="" id="preview1" />
</div>
<div class="file">
<label for="uploadimage1">
Browse
<input type="file" name="productimage1" id="uploadimage1" onchange="show_preview('preview1','uploadimage1')" />
</label>
</div>
</div>
<div class="imgdiv">
<div class="img">
<img src="<?php echo $img2; ?>" alt="" id="preview2" />
</div>
<div class="file">
<label for="uploadimage2">
Browse
<input type="file" name="productimage2" id="uploadimage2" onchange="show_preview('preview2','uploadimage2')" />
</label>
</div>
</div>
<div class="imgdiv">
<div class="img">
<img src="<?php echo $img3; ?>" alt="" id="preview3" />
</div>
<div class="file">
<label for="uploadimage3">
Browse
<input type="file" name="productimage3" id="uploadimage3" onchange="show_preview('preview3','uploadimage3')" />
</label>
</div>
</div>
<div class="imgdiv">
<div class="img">
<img src="<?php echo $img4; ?>" alt="" id="preview4" />
</div>
<div class="file">
<label for="uploadimage4">
Browse
<input type="file" name="productimage4" id="uploadimage4" onchange="show_preview('preview4','uploadimage4')" />
</label>
</div>
</div>
</div>
<div class="formrow">
<span id="pdstatus" style="color:red; font-size:1.4rem; text-transform:capitalize;">
</span>
</div>
<div class="formrow">
<?php echo $cb; ?>
</div>
</form>
</div>
</div>
</div>
<?php
require("require/foot.php");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/seller/order_assigned.php | seller/order_assigned.php | <?php
require('require/top.php');
$order = getMyOrders($con, 3);
?>
<div class="path">
<div class="container">
<a href="index.php">Home</a>
/
<a href="order_assigned.php">Order Assigned</a>
</div>
</div>
<div class="cartrow" id="catrow">
<div class="gh">
<div class="heading">
<h3>Placed Orders</h3>
</div>
<div class="maincontainer">
<table class="wishlist">
<thead>
<th>#</th>
<th>Id</th>
<th>Added On</th>
<th>Status</th>
<th>Action</th>
</thead>
<tbody>
<?php
if (count($order) > 0) {
$i = 1;
foreach ($order as $o) {
?>
<tr>
<td><?php echo $i;
$i++; ?></td>
<td>
<a href="javascript:void(0)">
<?php echo $o['o_id']; ?>
</a>
</td>
<td><?php echo $o['added_on']; ?></td>
<td>
<span class="badge green"> Assigned </span>
</td>
<td>
<div class="acn">
<a href="order-detail.php?id=<?php echo $o['id']; ?>" class="view">
<i class="uil uil-eye"></i>
</a>
</div>
</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
<?php
require("require/foot.php");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/seller/product-detail.php | seller/product-detail.php | <?php
require('require/top.php');
authorise($con);
if (!isset($_GET['d'])) {
redirect('index.php');
die();
}
$id = $_GET['d'];
$product_id = $_GET['d'];
$product = product_detail($con, $product_id);
?>
<div class="path">
<div class="container">
<a href="index.php">Home</a>
/
<a href="product.php">Product</a>
/
<a href="product-detail.php">product detail</a>
</div>
</div>
<div class="cartrow" id="catrow">
<div class="gh">
<section class="single-product">
<div class="row">
<div class="container" style="width:100%">
<div class="innerrow">
<div class="left">
<div class="mainImage">
<img src="../media/product/<?php echo $product['img1']; ?>" alt="main-image" id="mi" />
</div>
<div class="subimages flex">
<div class="sub">
<img src="../media/product/<?php echo $product['img1']; ?>" alt="sub-images" onclick="view(this)" />
</div>
<div class="sub">
<img src="../media/product/<?php echo $product['img2']; ?>" alt="sub-images" onclick="view(this)" />
</div>
<div class="sub">
<img src="../media/product/<?php echo $product['img3']; ?>" alt="sub-images" onclick="view(this)" />
</div>
<div class="sub">
<img src="../media/product/<?php echo $product['img4']; ?>" alt="sub-images" onclick="view(this)" />
</div>
</div>
</div>
<div class="right">
<h2 class="mt2"><?php echo $product['product_name']; ?></h2>
<div class="no-stock">
<p class="pd-no">Product No.<span><?php echo $product['sku']; ?></span></p>
<p class="stock-qty">Quantity<span><?php echo $product['qty']; ?></span></p>
</div>
<p class="pp-descp">
<?php echo $product['shrt_desc']; ?>
</p>
<div class="product-group-dt">
<ul>
<li>
<div class="main-price color-discount">
Discount Price<span>₹<?php echo $product['fa']; ?></span>
</div>
</li>
<li>
<div class="main-price mrp-price">
MRP Price<span>₹<?php echo $product['price']; ?></span>
</div>
</li>
</ul>
<ul>
<li>
<div class="main-price mt-2">
Tax<span><?php echo $product['tax']; ?>%</span>
</div>
</li>
</ul>
<ul class="ordr-crt-share">
<li>
<a href="add_product.php?b=2846&idp=<?php echo $_GET['d']; ?>"><button class="order-btn hover-btn">
<i class="uil uil-pen"></i> Edit</button></a>
</li>
</ul>
</div>
<?php
if ($product['isappp'] == 2) {
$query = "select * from p_reject where product_id='$id'";
$res = mysqli_query($con, $query);
$row = mysqli_fetch_assoc($res);
?>
<div class="product-group-dt mt3" style="background:none">
<div class="reject-badge-red">
This Product Has Been Rejected. <br>Remarks: <?php echo $row['cause']; ?>
</div>
</div>
<?php
}
?>
</div>
</div>
<div class="secondrow">
<div class="innerrow">
<div class="alldesc">
<div class="container">
<div class="heading">
<h4>Product details</h4>
</div>
<div class="desc-body">
<div class="pdct-dts-1">
<div class="pdct-dt-step">
<h4>Description</h4>
<p>
<?php echo $product['description']; ?>
</p>
</div>
<div class="pdct-dt-step">
<h4>Tearms & Conditions</h4>
<div class="product_attr">
<?php echo $product['disclaimer']; ?>
</div>
</div>
<div class="pdct-dt-step">
<h4>Seller</h4>
<div class="product_attr">
<?php
$t = $product['added_by'];
$ti = $product['id'];
$h = mysqli_fetch_assoc(mysqli_query($con, "select b_name from sellers where id='$t'"));
$hi = mysqli_fetch_assoc(mysqli_query($con, "select added_on from product_ad_on where pid='$ti'"));
echo $h['b_name']; ?>
</div>
</div>
<div class="pdct-dt-step">
<h4>Added On</h4>
<div class="product_attr">
<?php
$ti = $product['id'];
$hi = mysqli_fetch_assoc(mysqli_query($con, "select added_on from product_ad_on where pid='$ti'"));
echo $hi['added_on']; ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
</div>
<?php
require("require/foot.php");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/seller/promo.php | seller/promo.php | <?php
require('require/top.php');
?>
<div class="path">
<div class="container">
<a href="index.php">Home</a>
/
<a href="promo.php">Promo</a>
</div>
</div>
<div class="cartrow" id="catrow">
<div class="gh">
<div class="heading">
<h3>All Promo</h3>
<a href="add_promo.php">Add Promo</a>
</div>
<div class="maincontainer">
<table class="wishlist">
<thead>
<th>#</th>
<th>Code</th>
<th>Discount</th>
<th>Min-bal</th>
<th>Action</th>
</thead>
<tbody>
<?php
$sellerid = $_SESSION['SELLER_ID'];
$query = "select * from promo where adb='$sellerid' order by id desc";
$res = mysqli_query($con, $query);
$i = 1;
while ($row = mysqli_fetch_assoc($res)) {
?>
<tr>
<td>
<?php echo $i; ?>
</td>
<td>
<?php echo $row['code'] ?>
</td>
<td> <?php echo $row['dis']; ?></td>
<td>
<?php echo $row['minbal']; ?>
</td>
<td>
<div class="acn">
<a href="javascript:void(0)" onclick="delpromo(<?php echo $row['id']; ?>)" class="del">
<i class="uil uil-trash-alt"></i>
</a>
</div>
</td>
</tr>
<?php
$i++;
}
?>
</tbody>
</table>
</div>
</div>
</div>
<?php
require("require/foot.php");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/seller/edit_profile.php | seller/edit_profile.php | <?php
require("require/top.php");
if (!isset($_GET['hash'])) {
redirect('index.php');
die();
}
authorise($con);
authenticate_seller($_GET['hash']);
$rt = 0;
if (isset($_GET['rt'])) {
$rt = $_GET['rt'];
}
$sid = $_SESSION['SELLER_ID'];
$query = "select * from sellers where id='$sid'";
$seller_res = mysqli_query($con, $query);
$seller_row = mysqli_fetch_assoc($seller_res);
$is_approve = $seller_row['isapp'];
$cp = $seller_row['is_cp'];
$fullname = $seller_row['f_name'];
$type = $seller_row['tob'];
$bname = $seller_row['b_name'];
$cntry = $seller_row['country'];
$state = $seller_row['state'];
$city = $seller_row['city'];
$pin = $seller_row['pin'];
$is_gst = $seller_row['is_gst'];
$gstnum = $seller_row['gst_id'];
$acn = $seller_row['acc_num'];
$ach = $seller_row['acc_holder'];
$bank = $seller_row['bank'];
$branch = $seller_row['branch'];
$ifsc = $seller_row['ifsc'];
?>
<div class="path">
<div class="container">
<a href="index.php">Home</a>
/
<a href="edit_profile.php?hash=<?php echo hash_code() ?>">Edit profile</a>
</div>
</div>
<div class="cartrow" id="catrow">
<div class="gh">
<div class="heading">
<h3>Edit profile</h3>
</div>
<div class="maincontainer2">
<form action="#">
<h1 style="color:#556ee6" class="mt3">Basic Details</h1>
<div class="formrow">
<div class="heading">Full Name</div>
<input type="text" placeholder="Enter Your Full Name" id="seller_full_name" value="<?php echo $fullname; ?>">
</div>
<div class="formrow">
<div class="heading">Email</div>
<input type="email" placeholder="Enter Email Id" id="email" value="<?php echo $seller_row['email']; ?>">
</div>
<div class="formrow">
<div class="heading">Mobile </div>
<input type="text" placeholder="Enter Mobile Number" id="mobile" value="<?php echo $seller_row['mobile']; ?>">
</div>
<div class="formrow">
<div class="heading">Address </div>
<input type="text" placeholder="Enter Mobile Number" id="address" value="<?php echo $seller_row['address']; ?>">
</div>
<h1 style="color:#556ee6" class="mt3">Business Details</h1>
<div class="formrow">
<div class="heading">Type</div>
<select class="select" name="addscatname" id="seller_b_type">
<option value="#">Select Business Type</option>
<?php
$queryi = "select * from business_type order by id desc";
$resi = mysqli_query($con, $queryi);
while ($rowi = mysqli_fetch_assoc($resi)) {
if ($rowi['id'] == $type) {
?>
<option value="<?php echo $rowi['id']; ?>" selected><?php echo $rowi['type']; ?>
</option>
<?php } else { ?>
<option value="<?php echo $rowi['id']; ?>"><?php echo $rowi['type']; ?></option>
<?php }
} ?>
</select>
</div>
<div class="formrow">
<div class="heading">Business name</div>
<input type="text" placeholder="Enter Your Business Name" id="seller_b_name" value="<?php echo $bname; ?>">
</div>
<div class="formrow">
<div class="heading">Country</div>
<select class="select" id="fsc" onchange="getstatelist()">
<option value="#">Select Country</option>
<?php
$query = "select * from country order by id desc";
$res = mysqli_query($con, $query);
while ($row = mysqli_fetch_assoc($res)) {
if ($row['id'] == $cntry) {
?>
<option value="<?php echo $row['id']; ?>" selected><?php echo $row['cntry_name']; ?>
</option>
<?php } else { ?>
<option value="<?php echo $row['id']; ?>"><?php echo $row['cntry_name']; ?></option>
<?php }
} ?>
</select>
</div>
<div class="formrow">
<div class="heading">State</div>
<?php if ($state == '') { ?>
<select class="select" id="fscb" style="margin:1rem 0 0 0;" onchange="getcitylist()">
<option value="#">Select State</option>
</select>
<?php } else { ?>
<select class="select" id="fscb" style="margin:1rem 0 0 0;" onchange="getcitylist()">
<?php
$querys = "select * from state where c_id='$cntry' order by id desc";
$ress = mysqli_query($con, $querys);
while ($rows = mysqli_fetch_assoc($ress)) {
if ($rows['id'] == $state) {
?>
<option value="<?php echo $rows['id']; ?>" selected><?php echo $rows['state_name']; ?>
</option>
<?php } else { ?>
<option value="<?php echo $rows['id']; ?>"><?php echo $rows['state_name']; ?></option>
<?php }
} ?>
</select>
<?php } ?>
</div>
<div class="formrow">
<div class="heading">City</div>
<?php if ($city == '') { ?>
<select class="select" id="fscb2" style="margin:1rem 0 0 0;" onchange="getpinlist()">
<option value="#">Select City</option>
</select>
<?php } else { ?>
<select class="select" id="fscb2" style="margin:1rem 0 0 0;" onchange="getcitylist()">
<?php
$querys = "select * from city where s_id='$state' order by id desc";
$ress = mysqli_query($con, $querys);
while ($rows = mysqli_fetch_assoc($ress)) {
if ($rows['id'] == $state) {
?>
<option value="<?php echo $rows['id']; ?>" selected><?php echo $rows['city_name']; ?>
</option>
<?php } else { ?>
<option value="<?php echo $rows['id']; ?>"><?php echo $rows['city_name']; ?></option>
<?php }
} ?>
</select>
<?php } ?>
</div>
<div class="formrow">
<div class="heading">Pincode</div>
<?php if ($city == '') { ?>
<select class="select" id="fscb3" style="margin:1rem 0 0 0;">
<option value="#">Select Pincode</option>
</select>
<?php } else { ?>
<select class="select" id="fscb3" style="margin:1rem 0 0 0;" onchange="getcitylist()">
<?php
$querys = "select * from pin where c_id='$city' order by id desc";
$ress = mysqli_query($con, $querys);
while ($rows = mysqli_fetch_assoc($ress)) {
if ($rows['id'] == $pin) {
?>
<option value="<?php echo $rows['id']; ?>" selected><?php echo $rows['pincode']; ?>
</option>
<?php } else { ?>
<option value="<?php echo $rows['id']; ?>"><?php echo $rows['pincode']; ?></option>
<?php }
} ?>
</select>
<?php } ?>
</div>
<div class="formrow">
<div class="heading">GST</div>
<?php if ($is_gst == '0') { ?>
<select class="select" name="addscatname" id="isgst" onchange="is_gst()">
<option value="#">Select GST</option>
<option value="1">Yes</option>
<option value="2">No</option>
</select>
<?php } else { ?>
<?php if ($is_gst == 1) { ?>
<select class="select" name="addscatname" id="isgst" onchange="is_gst()">
<option value="1" selected>Yes</option>
<option value="2">No</option>
</select>
<?php } else { ?>
<select class="select" name="addscatname" id="isgst" onchange="is_gst()">
<option value="1">Yes</option>
<option value="2" selected>No</option>
</select>
<?php }
} ?>
</div>
<?php if ($is_gst == '0' || $is_gst == '2') { ?>
<div class="formrow" id='isgst1' style="display:none;">
<div class="heading">GST Number</div>
<input type="text" placeholder="Enter GST number *" id="seller_gst_num" value="<?php echo $gstnum; ?>" />
</div>
<?php } else if ($is_gst == 1) { ?>
<div class="formrow" id='isgst1'>
<div class="heading">GST Number</div>
<input type="text" placeholder="Enter GST number *" id="seller_gst_num" value="<?php echo $gstnum; ?>" />
</div>
<?php } ?>
<h1 style="color:#556ee6" class="mt3">Bank Details</h1>
<div class="formrow">
<div class="heading">Account Number</div>
<input type="number" placeholder="Enter bank account number *" id="seller_ac" value="<?php echo $acn; ?>" />
</div>
<div class="formrow">
<div class="heading">Account Holder's Name</div>
<input type="text" id="seller_bank_holder" placeholder="Enter account holder's name *" value="<?php echo $ach; ?>" />
</div>
<div class="formrow">
<div class="heading">Bank Name</div>
<input type="text" id="seller_bank_name" placeholder="Enter bank name *" value="<?php echo $bank; ?>" />
</div>
<div class="formrow">
<div class="heading">Branch Name</div>
<input type="text" id="seller_branch_name" placeholder="Enter Branch name *" value="<?php echo $branch; ?>" />
</div>
<div class="formrow">
<div class="heading">IFSC code</div>
<input type="text" id="seller_ifsc" placeholder="Enter IFSC code *" value="<?php echo $ifsc; ?>" />
</div>
<div class="formrow">
<span id="pdstatus" style="color:red; font-size:1.4rem; text-transform:capitalize;">
</span>
</div>
<div class="formrow">
<a href="javascript:void(0)" class="btn d-flex-center-a-j bg-main br-15" onclick="update_profile()">
<i class="uil uil-plus"></i>
<span>Update</span>
</a>
</div>
</form>
</div>
</div>
</div>
<?php
require("require/foot.php");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/seller/complete_profile.php | seller/complete_profile.php | <?php
require("require/top.php");
if (!isset($_GET['hash'])) {
redirect('index.php');
die();
}
authorise($con);
authenticate_seller($_GET['hash']);
$rt = 0;
if (isset($_GET['rt'])) {
$rt = $_GET['rt'];
}
$sid = $_SESSION['SELLER_ID'];
$fullname = '';
$type = '';
$bname = '';
$cntry = '';
$state = '';
$city = '';
$pin = '';
$is_gst = '';
$gstnum = '';
$acn = '';
$ach = '';
$bank = '';
$branch = '';
$ifsc = '';
$b_sc = "../assets/images/product/big-2.jpg";
$g_sc = "../assets/images/product/big-2.jpg";
$a_sc = "../assets/images/product/big-2.jpg";
$p_sc = "../assets/images/product/big-2.jpg";
$query = "select * from sellers where id='$sid'";
$seller_res = mysqli_query($con, $query);
$seller_row = mysqli_fetch_assoc($seller_res);
$is_approve = $seller_row['isapp'];
$cp = $seller_row['is_cp'];
if ($is_approve == 2 && $cp == 2 || isset($_GET['rt'])) {
$fullname = $seller_row['f_name'];
$type = $seller_row['tob'];
$bname = $seller_row['b_name'];
$cntry = $seller_row['country'];
$state = $seller_row['state'];
$city = $seller_row['city'];
$pin = $seller_row['pin'];
$is_gst = $seller_row['is_gst'];
$gstnum = $seller_row['gst_id'];
$acn = $seller_row['acc_num'];
$ach = $seller_row['acc_holder'];
$bank = $seller_row['bank'];
$branch = $seller_row['branch'];
$ifsc = $seller_row['ifsc'];
if (!empty($seller_row['b_crft'])) {
$b_sc = "../media/seller_profile/" . $seller_row['b_crft'];
}
if (!empty($seller_row['gst_crft'])) {
$g_sc = "../media/seller_profile/" . $seller_row['gst_crft'];
}
if (!empty($seller_row['adhar'])) {
$a_sc = "../media/seller_profile/" . $seller_row['adhar'];
}
if (!empty($seller_row['pan'])) {
$p_sc = "../media/seller_profile/" . $seller_row['pan'];
}
}
?>
<div class="path">
<div class="container">
<a href="index.php">Home</a>
/
<a href="complete_profile.php?hash=<?php echo hash_code() ?>">Complete profile</a>
</div>
</div>
<div class="cartrow" id="catrow">
<div class="gh">
<div class="heading">
<h3>Complete profile</h3>
</div>
<div class="maincontainer2">
<form action="#">
<h1 style="color:#556ee6" class="mt3">Basic Details</h1>
<div class="formrow">
<div class="heading">Full Name</div>
<input type="text" placeholder="Enter Your Full Name" id="seller_full_name" value="<?php echo $fullname; ?>">
</div>
<div class="formrow">
<div class="heading">Email</div>
<input type="email" placeholder="Enter Email Id" id="email" value="<?php echo $seller_row['email']; ?>">
</div>
<div class="formrow">
<div class="heading">Mobile </div>
<input type="text" placeholder="Enter Mobile Number" id="mobile" value="<?php echo $seller_row['mobile']; ?>">
</div>
<div class="formrow">
<div class="heading">Address </div>
<input type="text" placeholder="Enter Mobile Number" id="address" value="<?php echo $seller_row['address']; ?>">
</div>
<h1 style="color:#556ee6" class="mt3">Business Details</h1>
<div class="formrow">
<div class="heading">Type</div>
<select class="select" name="addscatname" id="seller_b_type">
<option value="#">Select Business Type</option>
<?php
$queryi = "select * from business_type order by id desc";
$resi = mysqli_query($con, $queryi);
while ($rowi = mysqli_fetch_assoc($resi)) {
if ($rowi['id'] == $type) {
?>
<option value="<?php echo $rowi['id']; ?>" selected><?php echo $rowi['type']; ?>
</option>
<?php } else { ?>
<option value="<?php echo $rowi['id']; ?>"><?php echo $rowi['type']; ?></option>
<?php }
} ?>
</select>
</div>
<div class="formrow">
<div class="heading">Business name</div>
<input type="text" placeholder="Enter Your Business Name" id="seller_b_name" value="<?php echo $bname; ?>">
</div>
<div class="formrow">
<div class="heading">Country</div>
<select class="select" id="fsc" onchange="getstatelist()">
<option value="#">Select Country</option>
<?php
$query = "select * from country order by id desc";
$res = mysqli_query($con, $query);
while ($row = mysqli_fetch_assoc($res)) {
if ($row['id'] == $cntry) {
?>
<option value="<?php echo $row['id']; ?>" selected><?php echo $row['cntry_name']; ?>
</option>
<?php } else { ?>
<option value="<?php echo $row['id']; ?>"><?php echo $row['cntry_name']; ?></option>
<?php }
} ?>
</select>
</div>
<div class="formrow">
<div class="heading">State</div>
<?php if ($state == '') { ?>
<select class="select" id="fscb" style="margin:1rem 0 0 0;" onchange="getcitylist()">
<option value="#">Select State</option>
</select>
<?php } else { ?>
<select class="select" id="fscb" style="margin:1rem 0 0 0;" onchange="getcitylist()">
<?php
$querys = "select * from state where c_id='$cntry' order by id desc";
$ress = mysqli_query($con, $querys);
while ($rows = mysqli_fetch_assoc($ress)) {
if ($rows['id'] == $state) {
?>
<option value="<?php echo $rows['id']; ?>" selected><?php echo $rows['state_name']; ?>
</option>
<?php } else { ?>
<option value="<?php echo $rows['id']; ?>"><?php echo $rows['state_name']; ?></option>
<?php }
} ?>
</select>
<?php } ?>
</div>
<div class="formrow">
<div class="heading">City</div>
<?php if ($city == '') { ?>
<select class="select" id="fscb2" style="margin:1rem 0 0 0;" onchange="getpinlist()">
<option value="#">Select City</option>
</select>
<?php } else { ?>
<select class="select" id="fscb2" style="margin:1rem 0 0 0;" onchange="getcitylist()">
<?php
$querys = "select * from city where s_id='$state' order by id desc";
$ress = mysqli_query($con, $querys);
while ($rows = mysqli_fetch_assoc($ress)) {
if ($rows['id'] == $state) {
?>
<option value="<?php echo $rows['id']; ?>" selected><?php echo $rows['city_name']; ?>
</option>
<?php } else { ?>
<option value="<?php echo $rows['id']; ?>"><?php echo $rows['city_name']; ?></option>
<?php }
} ?>
</select>
<?php } ?>
</div>
<div class="formrow">
<div class="heading">Pincode</div>
<?php if ($city == '') { ?>
<select class="select" id="fscb3" style="margin:1rem 0 0 0;">
<option value="#">Select Pincode</option>
</select>
<?php } else { ?>
<select class="select" id="fscb3" style="margin:1rem 0 0 0;" onchange="getcitylist()">
<?php
$querys = "select * from pin where c_id='$city' order by id desc";
$ress = mysqli_query($con, $querys);
while ($rows = mysqli_fetch_assoc($ress)) {
if ($rows['id'] == $pin) {
?>
<option value="<?php echo $rows['id']; ?>" selected><?php echo $rows['pincode']; ?>
</option>
<?php } else { ?>
<option value="<?php echo $rows['id']; ?>"><?php echo $rows['pincode']; ?></option>
<?php }
} ?>
</select>
<?php } ?>
</div>
<div class="formrow">
<div class="heading">GST</div>
<?php if ($is_gst == '') { ?>
<select class="select" name="addscatname" id="isgst" onchange="is_gst()">
<option value="#">Select GST</option>
<option value="1">Yes</option>
<option value="2">No</option>
</select>
<?php } else { ?>
<?php if ($is_gst == 1) { ?>
<select class="select" name="addscatname" id="isgst" onchange="is_gst()">
<option value="1" selected>Yes</option>
<option value="2">No</option>
</select>
<?php } else { ?>
<select class="select" name="addscatname" id="isgst" onchange="is_gst()">
<option value="1">Yes</option>
<option value="2" selected>No</option>
</select>
<?php }
} ?>
</div>
<?php if ($is_gst == '' || $is_gst == 2) { ?>
<div class="formrow" id='isgst1' style="display:none;">
<div class="heading">GST Number</div>
<input type="text" placeholder="Enter GST number *" id="seller_gst_num" value="<?php echo $gstnum; ?>" />
</div>
<?php } else if ($is_gst == 1) { ?>
<div class="formrow" id='isgst1'>
<div class="heading">GST Number</div>
<input type="text" placeholder="Enter GST number *" id="seller_gst_num" value="<?php echo $gstnum; ?>" />
</div>
<?php } ?>
<h1 style="color:#556ee6" class="mt3">Bank Details</h1>
<div class="formrow">
<div class="heading">Account Number</div>
<input type="number" placeholder="Enter bank account number *" id="seller_ac" value="<?php echo $acn; ?>" />
</div>
<div class="formrow">
<div class="heading">Account Holder's Name</div>
<input type="text" id="seller_bank_holder" placeholder="Enter account holder's name *" value="<?php echo $ach; ?>" />
</div>
<div class="formrow">
<div class="heading">Bank Name</div>
<input type="text" id="seller_bank_name" placeholder="Enter bank name *" value="<?php echo $bank; ?>" />
</div>
<div class="formrow">
<div class="heading">Branch Name</div>
<input type="text" id="seller_branch_name" placeholder="Enter Branch name *" value="<?php echo $branch; ?>" />
</div>
<div class="formrow">
<div class="heading">IFSC code</div>
<input type="text" id="seller_ifsc" placeholder="Enter IFSC code *" value="<?php echo $ifsc; ?>" />
</div>
<h1 style="color:#556ee6" class="mt3">Upload Documents</h1>
<div class="formrow ig" style="margin-top:3rem">
<div class="imgdiv">
<div class="img">
<img src="<?php echo $a_sc; ?>" alt="" id="preview1" />
</div>
<div class="file">
<label for="seller_adhar">
Adhar
<input type="file" name="productimage1" id="seller_adhar" onchange="show_preview('preview1','seller_adhar')" />
</label>
</div>
</div>
<div class="imgdiv">
<div class="img">
<img src="<?php echo $p_sc; ?>" alt="" id="preview2" />
</div>
<div class="file">
<label for="seller_pan">
Pan
<input type="file" name="productimage2" id="seller_pan" onchange="show_preview('preview2','seller_pan')" />
</label>
</div>
</div>
<div class="imgdiv">
<div class="img">
<img src="<?php echo $b_sc; ?>" alt="" id="preview3" />
</div>
<div class="file">
<label for="seller_b_crft">
Business Certificate
<input type="file" name="productimage3" id="seller_b_crft" onchange="show_preview('preview3','seller_b_crft')" />
</label>
</div>
</div>
<?php echo $is_gst;
if ($is_gst == '' || $is_gst == 2) { ?>
<div class="imgdiv" id="isgst2" style="display:none">
<div class="img">
<img src="<?php echo $g_sc; ?>" alt="" id="preview4" />
</div>
<div class="file">
<label for="seller_gst_crft">
Gst Proof
<input type="file" name="productimage4" id="seller_gst_crft" onchange="show_preview('preview4','seller_gst_crft')" />
</label>
</div>
</div>
<?php } else if ($is_gst == 1) {
?>
<div class="imgdiv" id="isgst2">
<div class="img">
<img src="<?php echo $g_sc; ?>" alt="" id="preview4" />
</div>
<div class="file">
<label for="seller_gst_crft">
Gst Proof
<input type="file" name="productimage4" id="seller_gst_crft" onchange="show_preview('preview4','seller_gst_crft')" />
</label>
</div>
</div>
<?php
} ?>
</div>
<div class="formrow">
<span id="pdstatus" style="color:red; font-size:1.4rem; text-transform:capitalize;">
</span>
</div>
<div class="formrow">
<a href="javascript:void(0)" class="btn d-flex-center-a-j bg-main br-15" onclick="completep(<?php echo $rt; ?>)">
<i class="uil uil-plus"></i>
<span>Add</span>
</a>
</div>
</form>
</div>
</div>
</div>
<?php
require("require/foot.php");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/seller/add_promo.php | seller/add_promo.php | <?php
require("require/top.php");
authorise($con);
$sid = $_SESSION['SELLER_ID'];
?>
<div class="path">
<div class="container">
<a href="index.php">Home</a>
/
<a href="promo.php">Promo</a>
/
<a href="add_promo.php">Add promo</a>
</div>
</div>
<div class="cartrow" id="catrow">
<div class="gh">
<div class="heading">
<h3>Add Promo</h3>
</div>
<div class="maincontainer2">
<form action="#">
<div class="formrow">
<div class="heading">Sub-category</div>
<select name="addscatname" id="addscatname">
<option value="#">select sub-category</option>
<?php
$query2 = "select * from subcategories order by id desc";
$resi2 = mysqli_query($con, $query2);
while ($ropw2 = mysqli_fetch_assoc($resi2)) {
$cname2 = $ropw2['subcat'];
$cname2i = $ropw2['id'];
echo "<option value='$cname2i'>$cname2</option> ";
}
?>
</select>
</div>
<div class="formrow">
<div class="heading">Code</div>
<input type="text" placeholder="Enter Promo Code" id="promocode">
</div>
<div class="formrow">
<div class="heading">Discount</div>
<input type="number" placeholder="Enter Discount" id="disc">
</div>
<div class="formrow">
<div class="heading">Min bal</div>
<input type="number" placeholder="Enter Min balance" id="minbal">
</div>
<div class="formrow">
<a href="javascript:void(0)" class="btn d-flex-center-a-j bg-main br-15" onclick="addpromo()">
<span>Add</span>
</a>
</div>
</form>
</div>
</div>
</div>
<?php
require("require/foot.php");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/seller/product.php | seller/product.php | <?php
require('require/top.php');
?>
<div class="path">
<div class="container">
<a href="index.php">Home</a>
/
<a href="product.php">product</a>
</div>
</div>
<div class="cartrow" id="catrow">
<div class="gh">
<div class="heading">
<h3>All products</h3>
<a href="add_product.php?b=1973">Add Product</a>
</div>
<div class="maincontainer">
<table class="wishlist">
<thead>
<th>#</th>
<th>Image</th>
<th>Name</th>
<th>Status</th>
<th>Action</th>
</thead>
<tbody>
<?php
$sellerid = $_SESSION['SELLER_ID'];
$query = "select * from product where added_by='$sellerid' order by id desc";
$res = mysqli_query($con, $query);
$i = 1;
while ($row = mysqli_fetch_assoc($res)) {
$st = '';
$cb = '';
$idd = $row['id'];
if ($row['isappp'] == 0) {
$st = "<span class='badge ofd'> Pending </span>";
} else if ($row['isappp'] == 2) {
$st = "<span class='badge red'> Rejected </span>";
} else if ($row['status'] == 1) {
$st = "<span class='badge green'> Active </span>";
$cb = '<a href="javascript:void(0)" class="nedit" onclick="product_acdc(' . $idd . ', 0)">
<i class="uil uil-wifi-slash"></i>
</a>';
} else {
$st = "<span class='badge ofd'> Deactive </span>";
$cb = '<a href="javascript:void(0)" class="edit" onclick="product_acdc(' . $idd . ', 1)">
<i class="uil uil-wifi"></i>
</a>';
}
?>
<tr>
<td>
<?php echo $i; ?>
</td>
<td>
<a href="javascript:void(0)">
<img src="../media/product/<?php echo $row['img1']; ?>" alt="product" />
</a>
</td>
<td> <?php echo $row['product_name']; ?></td>
<td>
<?php echo $st; ?>
</td>
<td>
<div class="acn">
<?php echo $cb; ?>
<a href="product-detail.php?d=<?php echo $row['id']; ?>" class="view">
<i class="uil uil-eye"></i>
</a>
<a href="" class="del">
<i class="uil uil-trash-alt"></i>
</a>
</div>
</td>
</tr>
<?php
$i++;
}
?>
</tbody>
</table>
</div>
</div>
</div>
<?php
require("require/foot.php");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/seller/witdraw.php | seller/witdraw.php | <?php
require("require/top.php");
authorise($con);
$sid = $_SESSION['SELLER_ID'];
?>
<div class="path">
<div class="container">
<a href="index.php">Home</a>
/
<a href="profile.php?<?php echo R_v(); ?>=<?php echo hash_code() ?>&v=<?php echo hash_code() ?>">Profile</a>
/
<a href="wallet.php?<?php echo R_v(); ?>=<?php echo hash_code() ?>">wallet</a>
/
<a href="witdraw.php">Witdraw</a>
</div>
</div>
<div class="cartrow" id="catrow">
<div class="gh">
<div class="heading">
<h3>Witdraw</h3>
</div>
<div class="maincontainer2">
<form action="#">
<?php
$y = mysqli_num_rows(mysqli_query($con, "select * from witdraw_req where s_id='$sid'"));
if ($y > 0) {
?>
<div class="formrow">
<div class="heading" style="width:100%;">You already have an active witdraw request.</div>
</div>
<?php
} else {
?>
<div class="formrow">
<div class="heading">Ammount</div>
<input type="number" placeholder="Enter Ammount" id="seller_full_name">
</div>
<div class="formrow">
<a href="javascript:void(0)" class="btn d-flex-center-a-j bg-main br-15" onclick="withdraw()">
<span>Witdraw</span>
</a>
</div>
<?php
}
?>
</form>
</div>
</div>
</div>
<?php
require("require/foot.php");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/seller/order_setteled.php | seller/order_setteled.php | <?php
require('require/top.php');
$order = getMyOrders($con, 5, 1);
?>
<div class="path">
<div class="container">
<a href="index.php">Home</a>
/
<a href="delivered.php">Delivered</a>
</div>
</div>
<div class="cartrow" id="catrow">
<div class="gh">
<div class="heading">
<h3>Setteled Orders</h3>
</div>
<div class="maincontainer">
<table class="wishlist">
<thead>
<th>#</th>
<th>Id</th>
<th>Added On</th>
<th>Status</th>
<th>Confirmed</th>
<th>Action</th>
</thead>
<tbody>
<?php
if (count($order) > 0) {
$i = 1;
foreach ($order as $o) {
$idd = $o['id'];
$sellerId = $_SESSION['SELLER_ID'];
$rd = mysqli_query($con, "select * from order_stlmnt where oid='$idd' and sid='$sellerId'");
if (mysqli_num_rows($rd) != 0) {
?>
<tr>
<td><?php echo $i;
$i++; ?></td>
<td>
<a href="javascript:void(0)">
<?php echo $o['o_id']; ?>
</a>
</td>
<td><?php echo $o['added_on']; ?></td>
<td>
<span class="badge green"> Delivered </span>
</td>
<td>
<span class="badge green"> Yes </span>
</td>
<td>
<div class="acn">
<a href="order-detail.php?id=<?php echo $o['id']; ?>" class="view">
<i class="uil uil-eye"></i>
</a>
</div>
</td>
</tr>
<?php
}
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
<?php
require("require/foot.php");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/seller/delivery_c.php | seller/delivery_c.php | <?php
require('require/top.php');
$order = getMyOrders($con, 5, 0);
?>
<div class="path">
<div class="container">
<a href="index.php">Home</a>
/
<a href="order_assigned.php">Order Assigned</a>
</div>
</div>
<div class="cartrow" id="catrow">
<div class="gh">
<div class="heading">
<h3>Placed Orders</h3>
</div>
<div class="maincontainer">
<table class="wishlist">
<thead>
<th>#</th>
<th>Id</th>
<th>Added On</th>
<th>Status</th>
<th>Confirmed</th>
<th>Action</th>
</thead>
<tbody>
<?php
if (count($order) > 0) {
$i = 1;
foreach ($order as $o) {
?>
<tr>
<td><?php echo $i;
$i++; ?></td>
<td>
<a href="javascript:void(0)">
<?php echo $o['o_id']; ?>
</a>
</td>
<td><?php echo $o['added_on']; ?></td>
<td>
<span class="badge green"> Delivered </span>
</td>
<td>
<span class="badge orange"> No </span>
</td>
<td>
<div class="acn">
<a href="order-detail.php?id=<?php echo $o['id']; ?>" class="view">
<i class="uil uil-eye"></i>
</a>
</div>
</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
<?php
require("require/foot.php");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/seller/profile.php | seller/profile.php | <?php
require("require/top.php");
authorise($con);
$key = get_all_param($_GET);
authenticate_seller($_GET[$key[0]]);
$sid = $_SESSION['SELLER_ID'];
$r = mysqli_fetch_assoc(mysqli_query($con, "select * from seller_wallet where seller_id='$sid'"));
$sr = mysqli_fetch_assoc(mysqli_query($con, "select sellers.*,country.cntry_name,state.state_name,city.city_name,pin.pincode,business_type.type from sellers,country,state,city,pin,business_type where sellers.id='$sid' and sellers.country=country.id and sellers.state=state.id and sellers.city=city.id and sellers.pin=pin.id and sellers.tob=business_type.id"));
$bal = $r['ballance'];
?>
<div class="row">
<div class="col-xl-3 col-xxl-6 col-lg-6 col-sm-6" style="flex-basis: 100%">
<div class="card card-bd">
<div class="bg-info card-border"></div>
<div class="card-body">
<div class="media align-items-center">
<div class="media-body mr-3">
<h2 class="num-text text-black font-w700">₹<?php echo $bal; ?></h2>
<br /><br />
<span class="badge orange">Wallet Balance</span>
<br /><br /><br />
<div class="h">
<a href="wallet.php?<?php echo R_v(); ?>=<?php echo hash_code() ?>" class="btn-a-a-a">Wallet</a>
</div>
</div>
<svg width="46" height="46" viewBox="0 0 46 46" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M34.4999 1.91663H11.4999C8.95917 1.91967 6.52338 2.93032 4.72682 4.72688C2.93026 6.52345 1.91961 8.95924 1.91656 11.5V26.8333C1.91935 29.0417 2.6834 31.1816 4.07994 32.8924C5.47648 34.6031 7.42011 35.7801 9.58323 36.225V42.1666C9.58318 42.5136 9.67733 42.8541 9.85564 43.1518C10.0339 43.4495 10.2897 43.6932 10.5957 43.8569C10.9016 44.0206 11.2463 44.0982 11.5929 44.0813C11.9395 44.0645 12.275 43.9539 12.5636 43.7613L23.5749 36.4166H34.4999C37.0406 36.4136 39.4764 35.4029 41.273 33.6064C43.0695 31.8098 44.0802 29.374 44.0832 26.8333V11.5C44.0802 8.95924 43.0695 6.52345 41.273 4.72688C39.4764 2.93032 37.0406 1.91967 34.4999 1.91663ZM30.6666 24.9166H15.3332C14.8249 24.9166 14.3374 24.7147 13.9779 24.3552C13.6185 23.9958 13.4166 23.5083 13.4166 23C13.4166 22.4916 13.6185 22.0041 13.9779 21.6447C14.3374 21.2852 14.8249 21.0833 15.3332 21.0833H30.6666C31.1749 21.0833 31.6624 21.2852 32.0219 21.6447C32.3813 22.0041 32.5832 22.4916 32.5832 23C32.5832 23.5083 32.3813 23.9958 32.0219 24.3552C31.6624 24.7147 31.1749 24.9166 30.6666 24.9166ZM34.4999 17.25H11.4999C10.9916 17.25 10.5041 17.048 10.1446 16.6886C9.78517 16.3291 9.58323 15.8416 9.58323 15.3333C9.58323 14.825 9.78517 14.3374 10.1446 13.978C10.5041 13.6186 10.9916 13.4166 11.4999 13.4166H34.4999C35.0082 13.4166 35.4957 13.6186 35.8552 13.978C36.2146 14.3374 36.4166 14.825 36.4166 15.3333C36.4166 15.8416 36.2146 16.3291 35.8552 16.6886C35.4957 17.048 35.0082 17.25 34.4999 17.25Z" fill="#3ECDFF"></path>
</svg>
</div>
</div>
</div>
</div>
<div class="col-xxl-6" style="flex-basis: 100%">
<div class="card">
<div class="bg-secondary card-border"></div>
<div class="card-body">
<div class="media align-items-center">
<div class="media-body mr-3">
<h4 class="nm2 text-black font-w700"><?php echo seller_name($con); ?></h4>
<br /><br />
<span class="badge green">Seller</span>
</div>
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M34.422 13.9831C34.3341 13.721 34.1756 13.4884 33.9638 13.3108C33.7521 13.1332 33.4954 13.0175 33.222 12.9766L23.649 11.5141L19.353 2.36408C19.2319 2.10638 19.0399 1.88849 18.7995 1.73587C18.5591 1.58325 18.2803 1.5022 17.9955 1.5022C17.7108 1.5022 17.4319 1.58325 17.1915 1.73587C16.9511 1.88849 16.7592 2.10638 16.638 2.36408L12.342 11.5141L2.76902 12.9766C2.49635 13.0181 2.24042 13.1341 2.02937 13.3117C1.81831 13.4892 1.6603 13.7215 1.57271 13.9831C1.48511 14.2446 1.47133 14.5253 1.53287 14.7941C1.59441 15.063 1.72889 15.3097 1.92152 15.5071L8.89802 22.6501L7.24802 32.7571C7.20299 33.0345 7.23679 33.3189 7.34555 33.578C7.45431 33.8371 7.63367 34.0605 7.86319 34.2226C8.09271 34.3847 8.36315 34.4791 8.64371 34.495C8.92426 34.5109 9.20365 34.4477 9.45002 34.3126L18 29.5906L26.55 34.3126C26.7964 34.4489 27.0761 34.5131 27.3573 34.4978C27.6384 34.4826 27.9096 34.3885 28.1398 34.2264C28.37 34.0643 28.5499 33.8406 28.659 33.5811C28.768 33.3215 28.8018 33.0365 28.7565 32.7586L27.1065 22.6516L34.0785 15.5071C34.2703 15.3091 34.4037 15.0622 34.4643 14.7933C34.5249 14.5245 34.5103 14.2441 34.422 13.9831Z" fill="#864AD1"></path>
</svg>
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-xxl-6 col-lg-6 col-sm-6" style="flex-basis: 100%">
<div class="card card-bd">
<div class="bg-info card-border"></div>
<div class="card-body">
<div class="media align-items-center">
<div class="media-body mr-3">
<h4 class="nm2 text-black font-w700">Address</h4>
<br /><br /><br />
<div class="xt" style="font-size:1.4rem">
<?php
echo $sr['address'] . "<br>" . $sr['city_name'] . "<br>" . $sr['state_name'] . "<br>" . $sr['cntry_name'] . "<br>" . $sr['pincode'];
?></div>
<br /><br /><br />
<div class="h">
<a href="edit_profile.php?hash=<?php echo hash_code() ?>" class="btn-a-a-a">Edit Profile</a>
</div>
</div>
<svg width="46" height="46" viewBox="0 0 46 46" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M34.4999 1.91663H11.4999C8.95917 1.91967 6.52338 2.93032 4.72682 4.72688C2.93026 6.52345 1.91961 8.95924 1.91656 11.5V26.8333C1.91935 29.0417 2.6834 31.1816 4.07994 32.8924C5.47648 34.6031 7.42011 35.7801 9.58323 36.225V42.1666C9.58318 42.5136 9.67733 42.8541 9.85564 43.1518C10.0339 43.4495 10.2897 43.6932 10.5957 43.8569C10.9016 44.0206 11.2463 44.0982 11.5929 44.0813C11.9395 44.0645 12.275 43.9539 12.5636 43.7613L23.5749 36.4166H34.4999C37.0406 36.4136 39.4764 35.4029 41.273 33.6064C43.0695 31.8098 44.0802 29.374 44.0832 26.8333V11.5C44.0802 8.95924 43.0695 6.52345 41.273 4.72688C39.4764 2.93032 37.0406 1.91967 34.4999 1.91663ZM30.6666 24.9166H15.3332C14.8249 24.9166 14.3374 24.7147 13.9779 24.3552C13.6185 23.9958 13.4166 23.5083 13.4166 23C13.4166 22.4916 13.6185 22.0041 13.9779 21.6447C14.3374 21.2852 14.8249 21.0833 15.3332 21.0833H30.6666C31.1749 21.0833 31.6624 21.2852 32.0219 21.6447C32.3813 22.0041 32.5832 22.4916 32.5832 23C32.5832 23.5083 32.3813 23.9958 32.0219 24.3552C31.6624 24.7147 31.1749 24.9166 30.6666 24.9166ZM34.4999 17.25H11.4999C10.9916 17.25 10.5041 17.048 10.1446 16.6886C9.78517 16.3291 9.58323 15.8416 9.58323 15.3333C9.58323 14.825 9.78517 14.3374 10.1446 13.978C10.5041 13.6186 10.9916 13.4166 11.4999 13.4166H34.4999C35.0082 13.4166 35.4957 13.6186 35.8552 13.978C36.2146 14.3374 36.4166 14.825 36.4166 15.3333C36.4166 15.8416 36.2146 16.3291 35.8552 16.6886C35.4957 17.048 35.0082 17.25 34.4999 17.25Z" fill="#3ECDFF"></path>
</svg>
</div>
</div>
</div>
</div>
</div>
<?php
require("require/foot.php");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/seller/index.php | seller/index.php | <?php
require("require/top.php");
?>
<div class="row">
<?php
if (profile_completed($con) == 1 && profle_verified($con) == 1) {
?>
<div class="col-xxl-6">
<div class="card">
<div class="bg-secondary card-border"></div>
<div class="card-body">
<div class="media align-items-center">
<div class="media-body mr-3">
<h2 class="num-text text-black font-w700">78</h2>
<span class="fs-14">Total Project Handled</span>
</div>
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M34.422 13.9831C34.3341 13.721 34.1756 13.4884 33.9638 13.3108C33.7521 13.1332 33.4954 13.0175 33.222 12.9766L23.649 11.5141L19.353 2.36408C19.2319 2.10638 19.0399 1.88849 18.7995 1.73587C18.5591 1.58325 18.2803 1.5022 17.9955 1.5022C17.7108 1.5022 17.4319 1.58325 17.1915 1.73587C16.9511 1.88849 16.7592 2.10638 16.638 2.36408L12.342 11.5141L2.76902 12.9766C2.49635 13.0181 2.24042 13.1341 2.02937 13.3117C1.81831 13.4892 1.6603 13.7215 1.57271 13.9831C1.48511 14.2446 1.47133 14.5253 1.53287 14.7941C1.59441 15.063 1.72889 15.3097 1.92152 15.5071L8.89802 22.6501L7.24802 32.7571C7.20299 33.0345 7.23679 33.3189 7.34555 33.578C7.45431 33.8371 7.63367 34.0605 7.86319 34.2226C8.09271 34.3847 8.36315 34.4791 8.64371 34.495C8.92426 34.5109 9.20365 34.4477 9.45002 34.3126L18 29.5906L26.55 34.3126C26.7964 34.4489 27.0761 34.5131 27.3573 34.4978C27.6384 34.4826 27.9096 34.3885 28.1398 34.2264C28.37 34.0643 28.5499 33.8406 28.659 33.5811C28.768 33.3215 28.8018 33.0365 28.7565 32.7586L27.1065 22.6516L34.0785 15.5071C34.2703 15.3091 34.4037 15.0622 34.4643 14.7933C34.5249 14.5245 34.5103 14.2441 34.422 13.9831Z" fill="#864AD1"></path>
</svg>
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-xxl-6 col-lg-6 col-sm-6">
<div class="card card-bd">
<div class="bg-warning card-border"></div>
<div class="card-body">
<div class="media align-items-center">
<div class="media-body mr-3">
<h2 class="num-text text-black font-w700">214</h2>
<span class="fs-14">Contacts You Have</span>
</div>
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M17.8935 22.5C23.6925 22.5 28.3935 17.799 28.3935 12C28.3935 6.20101 23.6925 1.5 17.8935 1.5C12.0945 1.5 7.39351 6.20101 7.39351 12C7.39351 17.799 12.0945 22.5 17.8935 22.5Z" fill="#FFB930"></path>
<path d="M29.5605 21.3344C29.217 20.9909 28.851 20.6699 28.476 20.3564C27.2159 21.96 25.6078 23.2562 23.7733 24.1472C21.9388 25.0382 19.9259 25.5007 17.8864 25.4996C15.847 25.4986 13.8345 25.0342 12.0009 24.1414C10.1673 23.2486 8.56051 21.9507 7.30199 20.3459C5.447 21.8906 3.95577 23.8256 2.9347 26.013C1.91364 28.2003 1.3879 30.586 1.39499 32.9999C1.39499 33.3978 1.55303 33.7793 1.83433 34.0606C2.11564 34.3419 2.49717 34.4999 2.89499 34.4999H32.895C33.2928 34.4999 33.6743 34.3419 33.9557 34.0606C34.237 33.7793 34.395 33.3978 34.395 32.9999C34.4004 30.8324 33.9759 28.6854 33.146 26.683C32.3162 24.6807 31.0975 22.8627 29.5605 21.3344Z" fill="#FFB930"></path>
</svg>
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-xxl-6 col-lg-6 col-sm-6">
<div class="card card-bd">
<div class="bg-primary card-border"></div>
<div class="card-body">
<div class="media align-items-center">
<div class="media-body mr-3">
<h2 class="num-text text-black font-w700">93</h2>
<span class="fs-14">Total Unfinished Task</span>
</div>
<svg class="primary-icon" width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.9999 1.5H5.99994C3.51466 1.5 1.49994 3.51472 1.49994 6V29.8125C1.49994 32.2977 3.51466 34.3125 5.99994 34.3125H11.9999C14.4852 34.3125 16.4999 32.2977 16.4999 29.8125V6C16.4999 3.51472 14.4852 1.5 11.9999 1.5Z" fill="#20F174"></path>
<path d="M30 1.5H24C21.5147 1.5 19.5 3.51472 19.5 6V12C19.5 14.4853 21.5147 16.5 24 16.5H30C32.4853 16.5 34.5 14.4853 34.5 12V6C34.5 3.51472 32.4853 1.5 30 1.5Z" fill="#20F174"></path>
<path d="M30 19.5H24C21.5147 19.5 19.5 21.5147 19.5 24V30C19.5 32.4853 21.5147 34.5 24 34.5H30C32.4853 34.5 34.5 32.4853 34.5 30V24C34.5 21.5147 32.4853 19.5 30 19.5Z" fill="#20F174"></path>
</svg>
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-xxl-6 col-lg-6 col-sm-6">
<div class="card card-bd">
<div class="bg-info card-border"></div>
<div class="card-body">
<div class="media align-items-center">
<div class="media-body mr-3">
<h2 class="num-text text-black font-w700">12</h2>
<span class="fs-14">Unread Messages</span>
</div>
<svg width="46" height="46" viewBox="0 0 46 46" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M34.4999 1.91663H11.4999C8.95917 1.91967 6.52338 2.93032 4.72682 4.72688C2.93026 6.52345 1.91961 8.95924 1.91656 11.5V26.8333C1.91935 29.0417 2.6834 31.1816 4.07994 32.8924C5.47648 34.6031 7.42011 35.7801 9.58323 36.225V42.1666C9.58318 42.5136 9.67733 42.8541 9.85564 43.1518C10.0339 43.4495 10.2897 43.6932 10.5957 43.8569C10.9016 44.0206 11.2463 44.0982 11.5929 44.0813C11.9395 44.0645 12.275 43.9539 12.5636 43.7613L23.5749 36.4166H34.4999C37.0406 36.4136 39.4764 35.4029 41.273 33.6064C43.0695 31.8098 44.0802 29.374 44.0832 26.8333V11.5C44.0802 8.95924 43.0695 6.52345 41.273 4.72688C39.4764 2.93032 37.0406 1.91967 34.4999 1.91663ZM30.6666 24.9166H15.3332C14.8249 24.9166 14.3374 24.7147 13.9779 24.3552C13.6185 23.9958 13.4166 23.5083 13.4166 23C13.4166 22.4916 13.6185 22.0041 13.9779 21.6447C14.3374 21.2852 14.8249 21.0833 15.3332 21.0833H30.6666C31.1749 21.0833 31.6624 21.2852 32.0219 21.6447C32.3813 22.0041 32.5832 22.4916 32.5832 23C32.5832 23.5083 32.3813 23.9958 32.0219 24.3552C31.6624 24.7147 31.1749 24.9166 30.6666 24.9166ZM34.4999 17.25H11.4999C10.9916 17.25 10.5041 17.048 10.1446 16.6886C9.78517 16.3291 9.58323 15.8416 9.58323 15.3333C9.58323 14.825 9.78517 14.3374 10.1446 13.978C10.5041 13.6186 10.9916 13.4166 11.4999 13.4166H34.4999C35.0082 13.4166 35.4957 13.6186 35.8552 13.978C36.2146 14.3374 36.4166 14.825 36.4166 15.3333C36.4166 15.8416 36.2146 16.3291 35.8552 16.6886C35.4957 17.048 35.0082 17.25 34.4999 17.25Z" fill="#3ECDFF"></path>
</svg>
</div>
</div>
</div>
</div>
<?php
} else if (!profle_verified($con) && !profile_completed($con)) {
?>
<div class="col-xl-3 col-xxl-6 col-lg-6 col-sm-6" style="flex-basis:100%;">
<div class="card card-bd">
<div class="bg-primary card-border"></div>
<div class="card-body">
<div class="media align-items-center">
<div class="media-body mr-3">
<span class="fs-14" style="text-transform: capitalize;">Your Profile has been created but not
completed. please complete your profile to proceed</span>
<br>
<br>
<a href="complete_profile.php?hash=<?php echo hash_code() ?>" class="btn-a-a-a">Complete
Profile</a>
</div>
<svg class="primary-icon" width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.9999 1.5H5.99994C3.51466 1.5 1.49994 3.51472 1.49994 6V29.8125C1.49994 32.2977 3.51466 34.3125 5.99994 34.3125H11.9999C14.4852 34.3125 16.4999 32.2977 16.4999 29.8125V6C16.4999 3.51472 14.4852 1.5 11.9999 1.5Z" fill="#20F174"></path>
<path d="M30 1.5H24C21.5147 1.5 19.5 3.51472 19.5 6V12C19.5 14.4853 21.5147 16.5 24 16.5H30C32.4853 16.5 34.5 14.4853 34.5 12V6C34.5 3.51472 32.4853 1.5 30 1.5Z" fill="#20F174"></path>
<path d="M30 19.5H24C21.5147 19.5 19.5 21.5147 19.5 24V30C19.5 32.4853 21.5147 34.5 24 34.5H30C32.4853 34.5 34.5 32.4853 34.5 30V24C34.5 21.5147 32.4853 19.5 30 19.5Z" fill="#20F174"></path>
</svg>
</div>
</div>
</div>
</div>
<?php
} else if (profile_completed($con) == 1 && !profle_verified($con)) {
?>
<div class="col-xl-3 col-xxl-6 col-lg-6 col-sm-6" style="flex-basis:100%;">
<div class="card card-bd">
<div class="bg-primary card-border"></div>
<div class="card-body">
<div class="media align-items-center">
<div class="media-body mr-3">
<span class="fs-14" style="text-transform: capitalize;">Your Profile has been completed but not
verified by admin. please wait for verification</span>
<br>
<br>
</div>
<svg class="primary-icon" width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.9999 1.5H5.99994C3.51466 1.5 1.49994 3.51472 1.49994 6V29.8125C1.49994 32.2977 3.51466 34.3125 5.99994 34.3125H11.9999C14.4852 34.3125 16.4999 32.2977 16.4999 29.8125V6C16.4999 3.51472 14.4852 1.5 11.9999 1.5Z" fill="#20F174"></path>
<path d="M30 1.5H24C21.5147 1.5 19.5 3.51472 19.5 6V12C19.5 14.4853 21.5147 16.5 24 16.5H30C32.4853 16.5 34.5 14.4853 34.5 12V6C34.5 3.51472 32.4853 1.5 30 1.5Z" fill="#20F174"></path>
<path d="M30 19.5H24C21.5147 19.5 19.5 21.5147 19.5 24V30C19.5 32.4853 21.5147 34.5 24 34.5H30C32.4853 34.5 34.5 32.4853 34.5 30V24C34.5 21.5147 32.4853 19.5 30 19.5Z" fill="#20F174"></path>
</svg>
</div>
</div>
</div>
</div>
<?php
} else if (profile_completed($con) == 2 && profle_verified($con) == 2) {
$sellerid = $_SESSION['SELLER_ID'];
$q = "select * from rejection where s_id='$sellerid'";
$r = mysqli_query($con, $q);
$t = mysqli_fetch_assoc($r);
?>
<div class="col-xl-3 col-xxl-6 col-lg-6 col-sm-6" style="flex-basis:100%;">
<div class="card card-bd">
<div class="bg-primary card-border"></div>
<div class="card-body">
<div class="media align-items-center">
<div class="media-body mr-3">
<span class="fs-14" style="text-transform: capitalize;">Your Profile has been rejected by
admin.</span>
<br>
<span class="fs-14" style="text-transform: capitalize;">Remarks:
<?php echo $t['reason']; ?></span>
<br>
<br>
<a href="complete_profile.php?hash=<?php echo hash_code() ?>&rt=1" class="btn-a-a-a">Edit
Profile</a>
</div>
<svg class="primary-icon" width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.9999 1.5H5.99994C3.51466 1.5 1.49994 3.51472 1.49994 6V29.8125C1.49994 32.2977 3.51466 34.3125 5.99994 34.3125H11.9999C14.4852 34.3125 16.4999 32.2977 16.4999 29.8125V6C16.4999 3.51472 14.4852 1.5 11.9999 1.5Z" fill="#20F174"></path>
<path d="M30 1.5H24C21.5147 1.5 19.5 3.51472 19.5 6V12C19.5 14.4853 21.5147 16.5 24 16.5H30C32.4853 16.5 34.5 14.4853 34.5 12V6C34.5 3.51472 32.4853 1.5 30 1.5Z" fill="#20F174"></path>
<path d="M30 19.5H24C21.5147 19.5 19.5 21.5147 19.5 24V30C19.5 32.4853 21.5147 34.5 24 34.5H30C32.4853 34.5 34.5 32.4853 34.5 30V24C34.5 21.5147 32.4853 19.5 30 19.5Z" fill="#20F174"></path>
</svg>
</div>
</div>
</div>
</div>
<?php
}
?>
</div>
<?php
require("require/foot.php");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/seller/issue.php | seller/issue.php | <?php
require('require/top.php');
$order = getMyOrders($con, 7, 0);
?>
<div class="path">
<div class="container">
<a href="index.php">Home</a>
/
<a href="order_assigned.php">Order Assigned</a>
</div>
</div>
<div class="cartrow" id="catrow">
<div class="gh">
<div class="heading">
<h3>Issue Orders</h3>
</div>
<div class="maincontainer">
<table class="wishlist">
<thead>
<th>#</th>
<th>Id</th>
<th>Added On</th>
<th>Status</th>
<th>Action</th>
</thead>
<tbody>
<?php
if (count($order) > 0) {
$i = 1;
foreach ($order as $o) {
?>
<tr>
<td><?php echo $i;
$i++; ?></td>
<td>
<a href="javascript:void(0)">
<?php echo $o['o_id']; ?>
</a>
</td>
<td><?php echo $o['added_on']; ?></td>
<td>
<span class="badge orange"> Issue </span>
</td>
<td>
<div class="acn">
<a href="order-detail.php?id=<?php echo $o['id']; ?>" class="view">
<i class="uil uil-eye"></i>
</a>
</div>
</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
<?php
require("require/foot.php");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/seller/undelivered.php | seller/undelivered.php | <?php
require('require/top.php');
$order = getMyOrders($con, 6, 0);
?>
<div class="path">
<div class="container">
<a href="index.php">Home</a>
/
<a href="order_assigned.php">Order Assigned</a>
</div>
</div>
<div class="cartrow" id="catrow">
<div class="gh">
<div class="heading">
<h3>Placed Orders</h3>
</div>
<div class="maincontainer">
<table class="wishlist">
<thead>
<th>#</th>
<th>Id</th>
<th>Added On</th>
<th>Status</th>
<th>Confirmed</th>
<th>Action</th>
</thead>
<tbody>
<?php
if (count($order) > 0) {
$i = 1;
foreach ($order as $o) {
$id = $o['o_id'];
$d = mysqli_num_rows(mysqli_query($con, "select * from cnfrm_undelivery where od_id='$id'"));
if ($d == 0) {
?>
<tr>
<td><?php echo $i;
$i++; ?></td>
<td>
<a href="javascript:void(0)">
<?php echo $o['o_id']; ?>
</a>
</td>
<td><?php echo $o['added_on']; ?></td>
<td>
<span class="badge green"> Undelivered </span>
</td>
<td>
<span class="badge green"> Yes </span>
</td>
<td>
<div class="acn">
<a href="order-detail.php?id=<?php echo $o['id']; ?>" class="view">
<i class="uil uil-eye"></i>
</a>
</div>
</td>
</tr>
<?php
}
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
<?php
require("require/foot.php");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/seller/delivered.php | seller/delivered.php | <?php
require('require/top.php');
$order = getMyOrders($con, 5, 1);
?>
<div class="path">
<div class="container">
<a href="index.php">Home</a>
/
<a href="delivered.php">Delivered</a>
</div>
</div>
<div class="cartrow" id="catrow">
<div class="gh">
<div class="heading">
<h3>Delivered Orders</h3>
</div>
<div class="maincontainer">
<table class="wishlist">
<thead>
<th>#</th>
<th>Id</th>
<th>Added On</th>
<th>Status</th>
<th>Confirmed</th>
<th>Action</th>
</thead>
<tbody>
<?php
if (count($order) > 0) {
$i = 1;
foreach ($order as $o) {
$idd = $o['id'];
$sellerId = $_SESSION['SELLER_ID'];
$rd = mysqli_query($con, "select * from order_stlmnt where oid='$idd' and sid='$sellerId'");
if (mysqli_num_rows($rd) == 0) {
?>
<tr>
<td><?php echo $i;
$i++; ?></td>
<td>
<a href="javascript:void(0)">
<?php echo $o['o_id']; ?>
</a>
</td>
<td><?php echo $o['added_on']; ?></td>
<td>
<span class="badge green"> Delivered </span>
</td>
<td>
<span class="badge green"> Yes </span>
</td>
<td>
<div class="acn">
<a href="order-detail.php?id=<?php echo $o['id']; ?>" class="view">
<i class="uil uil-eye"></i>
</a>
</div>
</td>
</tr>
<?php
}
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
<?php
require("require/foot.php");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/seller/wallet.php | seller/wallet.php | <?php
require("require/top.php");
authorise($con);
$key = get_all_param($_GET);
authenticate_seller($_GET[$key[0]]);
$sid = $_SESSION['SELLER_ID'];
$r = mysqli_fetch_assoc(mysqli_query($con, "select * from seller_wallet where seller_id='$sid'"));
$sr = mysqli_query($con, "select * from seller_w_msg where s_id='$sid'");
?>
<div class="path">
<div class="container">
<a href="index.php">Home</a>
/
<a href="profile.php?<?php echo R_v(); ?>=<?php echo hash_code() ?>&v=<?php echo hash_code() ?>">Profile</a>
/
<a href="wallet.php?<?php echo R_v(); ?>=<?php echo hash_code() ?>">wallet</a>
</div>
</div>
<div class="cartrow" id="catrow">
<div class="gh">
<div class="col-lg-12 col-md-12">
<div class="pdpt-bg2">
<div class="imgbox">
<img src="../assets/images/money.svg" alt="">
</div>
<span class="rewrd-title">My Balance</span>
<h4 class="cashbk-price">₹<?php echo $r['ballance']; ?></h4>
<button class='btn btn-main' onclick="control.redirect('witdraw.php')">Witdraw</button>
</div>
<div class="pdpt-bg">
<div class="pdpt-title">
<h4>History</h4>
</div>
<div class="order-body10">
<ul class="history-list">
<?php
while ($row = mysqli_fetch_assoc($sr)) {
?>
<li>
<div class="purchase-history">
<div class="purchase-history-left">
<h4>
<?php
if ($row['cod'] == 1) {
echo "Credited";
} else {
echo "Debited";
}
?>
</h4>
<p>Message:<ins><?php echo $row['msg'] ?></ins></p>
<span>
<?php
echo $row['added_on'];
?>
</span>
</div>
<div class="purchase-history-right">
<span>
<?php
if ($row['cod'] == 1) {
echo "+";
} else {
echo "-";
}
echo "₹" . $row['balance'];
?>
</span>
</div>
</div>
</li>
<?php } ?>
</ul>
</div>
</div>
</div>
</div>
</div>
<?php
require("require/foot.php");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/seller/order_received.php | seller/order_received.php | <?php
require('require/top.php');
$order = getMyOrders($con, 2);
?>
<div class="path">
<div class="container">
<a href="index.php">Home</a>
/
<a href="order_received.php">Order Received</a>
</div>
</div>
<div class="cartrow" id="catrow">
<div class="gh">
<div class="heading">
<h3>Placed Orders</h3>
</div>
<div class="maincontainer">
<table class="wishlist">
<thead>
<th>#</th>
<th>Id</th>
<th>Added On</th>
<th>Status</th>
<th>Action</th>
</thead>
<tbody>
<?php
if (count($order) > 0) {
$i = 1;
foreach ($order as $o) {
?>
<tr>
<td><?php echo $i;
$i++; ?></td>
<td>
<a href="javascript:void(0)">
<?php echo $o['o_id']; ?>
</a>
</td>
<td><?php echo $o['added_on']; ?></td>
<td>
<span class="badge orange"> Placed </span>
</td>
<td>
<div class="acn">
<a href="order-detail.php?id=<?php echo $o['id']; ?>" class="view">
<i class="uil uil-eye"></i>
</a>
</div>
</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
<?php
require("require/foot.php");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/seller/outfordelivery.php | seller/outfordelivery.php | <?php
require('require/top.php');
$order = getMyOrders($con, 4);
?>
<div class="path">
<div class="container">
<a href="index.php">Home</a>
/
<a href="order_assigned.php">Order Assigned</a>
</div>
</div>
<div class="cartrow" id="catrow">
<div class="gh">
<div class="heading">
<h3>Placed Orders</h3>
</div>
<div class="maincontainer">
<table class="wishlist">
<thead>
<th>#</th>
<th>Id</th>
<th>Added On</th>
<th>Status</th>
<th>Action</th>
</thead>
<tbody>
<?php
if (count($order) > 0) {
$i = 1;
foreach ($order as $o) {
?>
<tr>
<td><?php echo $i;
$i++; ?></td>
<td>
<a href="javascript:void(0)">
<?php echo $o['o_id']; ?>
</a>
</td>
<td><?php echo $o['added_on']; ?></td>
<td>
<span class="badge green"> Out for Delivery </span>
</td>
<td>
<div class="acn">
<a href="order-detail.php?id=<?php echo $o['id']; ?>" class="view">
<i class="uil uil-eye"></i>
</a>
</div>
</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
<?php
require("require/foot.php");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/seller/undelivered_c.php | seller/undelivered_c.php | <?php
require('require/top.php');
$order = getMyOrders($con, 6, 0);
?>
<div class="path">
<div class="container">
<a href="index.php">Home</a>
/
<a href="order_assigned.php">Order Assigned</a>
</div>
</div>
<div class="cartrow" id="catrow">
<div class="gh">
<div class="heading">
<h3>Placed Orders</h3>
</div>
<div class="maincontainer">
<table class="wishlist">
<thead>
<th>#</th>
<th>Id</th>
<th>Added On</th>
<th>Status</th>
<th>Confirmed</th>
<th>Action</th>
</thead>
<tbody>
<?php
if (count($order) > 0) {
$i = 1;
foreach ($order as $o) {
$id = $o['o_id'];
$d = mysqli_num_rows(mysqli_query($con, "select * from cnfrm_undelivery where od_id='$id'"));
if ($d > 0) {
?>
<tr>
<td><?php echo $i;
$i++; ?></td>
<td>
<a href="javascript:void(0)">
<?php echo $o['o_id']; ?>
</a>
</td>
<td><?php echo $o['added_on']; ?></td>
<td>
<span class="badge green"> Undelivered </span>
</td>
<td>
<span class="badge orange"> No </span>
</td>
<td>
<div class="acn">
<a href="order-detail.php?id=<?php echo $o['id']; ?>" class="view">
<i class="uil uil-eye"></i>
</a>
</div>
</td>
</tr>
<?php
}
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
<?php
require("require/foot.php");
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/seller/assets/backend/subcat/get_subcat.php | seller/assets/backend/subcat/get_subcat.php | <?php
require('../../../../utility/utility.php');
$pcat=get_safe_value($con,$_POST['pcat']);
$template='';
$q="select * from subcategories where cat_id='$pcat'";
$res=mysqli_query($con,$q);
if(mysqli_num_rows($res)==0){
$template="<option>No Data found</option>";
}else{
$template="<option value='#'>Select Sub Category</option>";
while($row=mysqli_fetch_assoc($res)){
$name=$row['subcat'];
$namei=$row['id'];
$template=$template."
<option value='$namei'>$name</option>
";
}
}
echo $template;
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/seller/assets/backend/auth/logout.php | seller/assets/backend/auth/logout.php | <?php
require('../../../../utility/utility.php');
$result=array();
unset($_SESSION['SELLER_LOGIN']);
unset($_SESSION['SELLER_ID']);
$result['status']=1;
echo json_encode($result);
die();
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/seller/assets/backend/auth/register.php | seller/assets/backend/auth/register.php | <?php
require('../../../../utility/utility.php');
$email=get_safe_value($con,$_POST['email']);
$password=get_safe_value($con,$_POST['password']);
$mobile=get_safe_value($con,$_POST['mobile']);
$q="select * from sellers where email='$email' and status='1'";
$result=array();
if ($password == "") {
$result['status']=0;
$result['msg']="Enter Password";
} else if ($email == "") {
$result['status']=0;
$result['msg']="Enter Email";
} else if ($mobile == "") {
$result['status']=0;
$result['msg']="Enter Mobile";
} else {
$query="select * from sellers where email='$email'";
$res=mysqli_query($con,$query);
$n=mysqli_num_rows($res);
if($n>0){
$result['status']=0;
$result['msg']="Email is not available";
}else{
$password=password_hash($password, PASSWORD_DEFAULT);
$q="insert into sellers(password,mobile,email,status,is_new) values('$password','$mobile','$email','1','1')";
if(mysqli_query($con,$q)){
$row=mysqli_fetch_assoc(mysqli_query($con,"select * from sellers where mobile='$mobile' and email='$email'"));
$_SESSION['SELLER_LOGIN']="YES";
$_SESSION['SELLER_ID']=$row['id'];
$result['status']=1;
$result['msg']="Account Created Successfully";
}else{
$result['status']=0;
$result['msg']="Something Went Wrong";
}
}
}
echo json_encode($result);
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/seller/assets/backend/auth/validate.php | seller/assets/backend/auth/validate.php | <?php
require('../../../../utility/utility.php');
$username=get_safe_value($con,$_POST['username']);
$password=get_safe_value($con,$_POST['password']);
$q="select * from sellers where email='$username' and status='1'";
$q2="select * from sellers where mobile='$username' and status='1'";
$rs=mysqli_query($con,$q);
$rs2=mysqli_query($con,$q2);
$nor=mysqli_num_rows($rs);
$nor2=mysqli_num_rows($rs2);
$result=array();
if ($password == "") {
$result['status']=0;
$result['msg']="Enter Password";
} else if ($username == "") {
$result['status']=0;
$result['msg']="Enter Username";
}else if($nor==0 && $nor2==0){
$result['status']=0;
$result['msg']="Invalid Credentials";
}else{
if($nor>0){
$rs=$rs;
}else{
$rs=$rs2;
}
$row=mysqli_fetch_assoc($rs);
$dps=$row['password'];
$verify = password_verify($password, $dps);
if ($verify) {
$_SESSION['SELLER_LOGIN']="YES";
$_SESSION['SELLER_ID']=$row['id'];
$result['status']=1;
$result['msg']="Login Successfull";
} else {
$result['status']=2;
$result['msg']="Something Went Wrong";
}
}
echo json_encode($result);
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/seller/assets/backend/filter/add_product_sub_filter.php | seller/assets/backend/filter/add_product_sub_filter.php | <?php
require('../../../../utility/utility.php');
$value=json_decode($_POST['json']);
$productId=$value[count($value)-1];
for($i=0;$i<count($value)-1;$i++){
$query='insert into p_sfilter (pid,sfid) values("'.$productId.'","'.$value[$i].'")';
mysqli_query($con,$query);
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
detronetdip/E-commerce | https://github.com/detronetdip/E-commerce/blob/a9368863c2fb493bb9f14582bcf6410377e06521/seller/assets/backend/filter/add_product_sub_filter_update.php | seller/assets/backend/filter/add_product_sub_filter_update.php | <?php
require('../../../../utility/utility.php');
$value=json_decode($_POST['json']);
$productId=$value[count($value)-1];
mysqli_query($con,"delete from p_sfilter where pid='$productId'");
for($i=0;$i<count($value)-1;$i++){
$query='insert into p_sfilter (pid,sfid) values("'.$productId.'","'.$value[$i].'")';
mysqli_query($con,$query);
}
?> | php | MIT | a9368863c2fb493bb9f14582bcf6410377e06521 | 2026-01-05T05:22:32.990752Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.