Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marcellus
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ashish Pal
marcellus
Commits
2d4c7f18
Commit
2d4c7f18
authored
Nov 18, 2020
by
Manzar Hussain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update new code
parent
c4376a79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
uploadfile.php
wp-content/plugins/formplugin/uploadfile.php
+13
-8
No files found.
wp-content/plugins/formplugin/uploadfile.php
View file @
2d4c7f18
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment