Commit 2d4c7f18 by Manzar Hussain

update new code

parent c4376a79
......@@ -35,6 +35,7 @@ function check_empty_file($args)
}
if(isset($_POST['but_submit']) && $_POST['but_submit'] == 'Submit'){
if(isset($_POST["image_url"]) && !empty($_POST["image_url"])){
$imageurl["status"] = true;
$imageurl["url"] = $_POST["image_url"];
......@@ -138,9 +139,11 @@ if(isset($_GET['msg'])){
<td>
<select name="type" id="type" class="postform required">
<option value="">Select Type</option>
<option value="forms">Forms</option>
<option value="direct">Direct</option>
<option value="Partner">Partner</option>
<option value="Other">Other</option>
<option value="partner">Partner</option>
<option value="advisor">Advisor</option>
<option value="Other">Other</option>
</select>
</td>
......@@ -156,7 +159,7 @@ if(isset($_GET['msg'])){
<?php
}
?>
<option value="Other">Other</option>
<option value="Other">Other</option>
</select>
<div id="type_of_form_div">
<input name="type_of_form_other" id="type_of_form_other" type="text" value="" size="40" placeholder="Please enter other value">
......@@ -175,10 +178,10 @@ if(isset($_GET['msg'])){
}
?>
<option value="Other">Other</option>
</select>
<div id="type_of_account_div">
</select>
<div id="type_of_account_div">
<input name="type_of_account_other" id="type_of_account_other" type="text" value="" size="40" placeholder="Please enter other value">
<div>
<div>
</td>
</tr>
<tr class="form-field term-slug-wrap">
......@@ -218,6 +221,7 @@ if(isset($_GET['msg'])){
$new_result = $wpdb->get_results("SELECT * FROM mr_download_form WHERE id='$upt_id'");
foreach($new_result as $print) {
$id = $print->id;
$type= $print->type;
$type_of_form = $print->type_of_form;
$type_of_account = $print->type_of_account;
$download_file_name = $print->download_file_name;
......@@ -234,8 +238,9 @@ if(isset($_GET['msg'])){
<td>
<select name="type" id="type" class="postform required">
<option value="">Select Type</option>
<option value="direct">Direct</option>
<option value="distrubuter">Distrubuter</option>
<option value="forms" <?php if($type=="forms"){ echo "selected";}?>>Forms</option>
<option value="direct" <?php if($type=="direct"){ echo "selected";}?>>Direct</option>
<option value="partner" <?php if($type=="partner"){ echo "selected";}?>>Partner</option>
<option value="Other">Other</option>
</select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment