add lead quality
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
try {
|
||||
$conn = new PDO("mysql:host=$mariaServer;dbname=$mariaDb", $mariaUser, $mariaPass);
|
||||
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
$stmt = $conn->prepare("UPDATE cleads SET name = :name, email = :email, phone = :phone, date = :date, status = :status, user = :user, country = :country, state= :state, city = :city, address = :address, profession = :profession, coupon_code = :coupon_code, gender = :gender, warm_status = :warm_status, business_type = :business_type WHERE id = :id");
|
||||
$stmt = $conn->prepare("UPDATE cleads SET name = :name, email = :email, phone = :phone, date = :date, status = :status, user = :user, country = :country, state= :state, city = :city, address = :address, profession = :profession, coupon_code = :coupon_code, gender = :gender, warm_status = :warm_status, business_type = :business_type, lead_quality = :lead_quality WHERE id = :id");
|
||||
$stmt->bindParam(':name', $_POST['name']);
|
||||
$stmt->bindParam(':email', $_POST['email']);
|
||||
$stmt->bindParam(':phone', $_POST['phone']);
|
||||
@@ -33,6 +33,7 @@
|
||||
$stmt->bindParam(':gender', $_POST['gender']);
|
||||
$stmt->bindParam(':warm_status', $_POST['warm_status']);
|
||||
$stmt->bindParam(':business_type', $_POST['business_type']);
|
||||
$stmt->bindParam(':lead_quality', $_POST['lead_quality']);
|
||||
$stmt->bindParam(':id', $_GET['id']);
|
||||
$stmt->execute();
|
||||
|
||||
@@ -292,6 +293,18 @@
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
<div>
|
||||
<p><b>Assign to</b></p>
|
||||
<select name="lead_quality" id="lead_quality" style="border: 1px solid #D9D9D9; border-radius: 5px; padding: 6px; width: 100%;">
|
||||
<?php
|
||||
$leadQualityList = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
||||
foreach($leadQualityList as $quality){
|
||||
$isQualitySelected =($quality == $row['lead_quality']) ? 'selected' : '';
|
||||
echo '<option '.$isQualitySelected.' value='.$quality.'>Quality '.$quality.'</option>';
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div style="padding: 10px; ">
|
||||
<input type="submit" id="update_data" name="update_data" value="Update" style="background: linear-gradient(90deg, rgba(111, 107, 255, 0.91) 0%, rgba(68, 55, 128, 0.91) 100%); color: #fff; border-radius: 6px; padding: 10px 30px 10px 30px; float: right; cursor: pointer;" />
|
||||
|
||||
@@ -219,6 +219,7 @@
|
||||
<th class="border-b-2 p-3 text-left">Status</th>
|
||||
<th class="border-b-2 p-3 text-left">Form Name</th>
|
||||
<th class="border-b-2 p-3">Assigned to</th>
|
||||
<th class="border-b-2 p-3">Lead Quality</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody >
|
||||
@@ -306,6 +307,7 @@
|
||||
</td> -->
|
||||
<td class="border-y-2 p-2"><?php echo $lead['formname'] ?></td>
|
||||
<td class="border-y-2 p-2"><?php echo $lead['user'] ?></td>
|
||||
<td class="border-y-2 p-2 text-center"><?php echo $lead['lead_quality'] ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user