| Current Path : /home2/wtmwscom/public_html/member/ |
| Current File : /home2/wtmwscom/public_html/member/lead_edit.php |
<?php
$title= "Edit Lead";
include 'header.php';
$uid = $_GET['uid'];
$row = mysqli_fetch_object(mysqli_query($connection, "SELECT * FROM lead WHERE uid='".$uid."'"));
if(!isset($_GET['uid']) || $row->status==1){
redirect('./lead_report.php');
die();
}
?>
<h1>Edit Lead</h1>
<section id="comments">
<?php echo getMessage();?>
<form name="form" id="form" action="lead_edit_model.php" method="post" enctype="multipart/form-data">
<p>
<label for="name">Name <span>*</span></label>
<input type="text" name="name" id="name" value="<?php echo $row->name?>" pattern="[a-zA-Z ]+" required="required" maxlength="50">
</p>
<p>
<label for="dob">Date of Birth </label>
<input type="text" name="dob" id="dob" value="<?php echo $row->dob?>" readonly="readonly" class="datepicker"> eg. 1985-07-24
</p>
<p>
<label for="gender">Gender </label>
<input type="radio" id="sex_m" name="sex" value="Male" <?php if($row->gender=="Male"){echo "checked='checked'";}?> style="width: 20px; float: none;"/>
Male
<input type="radio" id="sex_f" name="sex" value="Female" <?php if($row->gender=="Female"){echo "checked='checked'";}?> style="width: 20px; float: none;">
Female
</p>
<p>
<label for="address">Address</label>
<input type="text" name="address" id="address" value="<?php echo $row->address?>" maxlength="100">
</p>
<p>
<label for="city">City <span>*</span></label>
<input type="text" name="city" id="city" value="<?php echo $row->city?>" maxlength="50" required="required">
</p>
<p>
<label for="country">Country</label>
<select name="country" id="country">
<!--<option selected="selected">--Select country--</option>-->
<?php
$result2 = mysqli_query($connection, "SELECT country_id, short_name FROM country");
while ($row2 = mysqli_fetch_object($result2)){
?>
<option value="<?php echo $row2->country_id;?>" <?php if($row2->country_id==$row->country){echo "selected='selected'";}?>><?php echo $row2->short_name;?></option>
<?php }?>
</select>
</p>
<p>
<label for="mobile">Mobile <span>*</span></label>
<input type="text" name="mobile" id="mobile" value="<?php echo $row->mobile?>" pattern="[0-9]{10,10}" required="required" maxlength="13">
</p>
<p>
<label for="email">Email <span>*</span></label>
<input type="email" name="email" id="email" value="<?php echo $row->email?>" required="required" maxlength="50">
</p>
<!-- <p>
<label for="pan_no">PAN no. </label>
<input type="text" name="pan_no" id="pan_no" value="<?php echo $row->pan_no?>" maxlength="50" >
</p>
<p>
<label for="receipt">P.A.N. image </label>
<input type="file" name="receipt" id="receipt">
</p>
<p>
<label for="aadhar_no">Aadhar no</label>
<input type="text" name="aadhar_no" id="aadhar_no" value="<?php echo $row->aadhar_no?>" maxlength="50">
</p>-->
<p><br />
<input type="hidden" name="uid" value="<?php echo $row->uid?>" />
<input style="position: relative; left: 160px;" name="submit" type="submit" id="submit" value="Save">
</p>
</form>
</section>
<?php include 'footer.php';?>