Commit 2d4c7f18 by Manzar Hussain

update new code

parent c4376a79
...@@ -35,6 +35,7 @@ function check_empty_file($args) ...@@ -35,6 +35,7 @@ function check_empty_file($args)
} }
if(isset($_POST['but_submit']) && $_POST['but_submit'] == 'Submit'){ if(isset($_POST['but_submit']) && $_POST['but_submit'] == 'Submit'){
if(isset($_POST["image_url"]) && !empty($_POST["image_url"])){ if(isset($_POST["image_url"]) && !empty($_POST["image_url"])){
$imageurl["status"] = true; $imageurl["status"] = true;
$imageurl["url"] = $_POST["image_url"]; $imageurl["url"] = $_POST["image_url"];
...@@ -138,8 +139,10 @@ if(isset($_GET['msg'])){ ...@@ -138,8 +139,10 @@ if(isset($_GET['msg'])){
<td> <td>
<select name="type" id="type" class="postform required"> <select name="type" id="type" class="postform required">
<option value="">Select Type</option> <option value="">Select Type</option>
<option value="forms">Forms</option>
<option value="direct">Direct</option> <option value="direct">Direct</option>
<option value="Partner">Partner</option> <option value="partner">Partner</option>
<option value="advisor">Advisor</option>
<option value="Other">Other</option> <option value="Other">Other</option>
</select> </select>
...@@ -218,6 +221,7 @@ if(isset($_GET['msg'])){ ...@@ -218,6 +221,7 @@ if(isset($_GET['msg'])){
$new_result = $wpdb->get_results("SELECT * FROM mr_download_form WHERE id='$upt_id'"); $new_result = $wpdb->get_results("SELECT * FROM mr_download_form WHERE id='$upt_id'");
foreach($new_result as $print) { foreach($new_result as $print) {
$id = $print->id; $id = $print->id;
$type= $print->type;
$type_of_form = $print->type_of_form; $type_of_form = $print->type_of_form;
$type_of_account = $print->type_of_account; $type_of_account = $print->type_of_account;
$download_file_name = $print->download_file_name; $download_file_name = $print->download_file_name;
...@@ -234,8 +238,9 @@ if(isset($_GET['msg'])){ ...@@ -234,8 +238,9 @@ if(isset($_GET['msg'])){
<td> <td>
<select name="type" id="type" class="postform required"> <select name="type" id="type" class="postform required">
<option value="">Select Type</option> <option value="">Select Type</option>
<option value="direct">Direct</option> <option value="forms" <?php if($type=="forms"){ echo "selected";}?>>Forms</option>
<option value="distrubuter">Distrubuter</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> <option value="Other">Other</option>
</select> </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