forked from anantharam/lead-marketplace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanage_leads.php
174 lines (142 loc) · 4.85 KB
/
manage_leads.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<?php
function show_all_other_shortcodes(){ ?>
<input type="hidden" id="custom_myBtn"/>
<div id="custom_myModal" class="custom_modal">
<div class="custom_modal-content">
<span class="custom_close" id="close_now" ></span>
<div class="pad"><p id="custom_msg"></p></div>
</div>
</div>
<input type="hidden" id="custom_myBtn_1"/>
<div id="custom_myModal_1" class="custom_modal_1">
<div class="custom_modal-content_1" style="padding-top: 12px;">
<div class="pad_1" style="padding-top: 1px;"><p id="custom_msg_1">hello</p></div>
<button id="confirm_button_1">Yes</button>
<button id="confirm_button_2" style="background: red; margin-left: 70px;">No</button>
</div>
</div>
<div id="wrap">
<ul class="tab">
<li><a href="#edugorilla_leads_sh" class="tablinks active" onclick="select_page('edugorilla_leads_sh')">Leads</a>
</li>
<li><a href="#educash_payment_sh" class="tablinks" onclick="select_page('educash_payment_sh')">Buy</a>
</li>
<li><a href="#transaction_history_sh" class="tablinks" onclick="select_page('transaction_history_sh')">Transaction
History</a></li>
<li><a href="#client_preference_form_sh" class="tablinks"
onclick="select_page('client_preference_form_sh')">Manage Preferences</a></li>
</ul>
</div>
<div id="edugorilla_content">
<div id="edugorilla_leads_sh" class="tabcontent">
<?php echo do_shortcode('[edugorilla_leads]'); ?>
</div>
<div id="educash_payment_sh" class="tabcontent" style="display: none;">
<?php echo do_shortcode('[educash_payment]'); ?>
</div>
<div id="transaction_history_sh" class="tabcontent" style="display: none;">
<?php echo do_shortcode('[transaction_history]'); ?>
</div>
<div id="client_preference_form_sh" class="tabcontent" style="display: none;">
<?php echo do_shortcode('[client_preference_form]'); ?>
</div>
</div>
<style type="text/css">
ul.tab {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
}
ul.tab li {float: left;}
ul.tab li a {
display: inline-block;
color: black;
text-align: center;
text-decoration: none;
transition: 0.3s;
font-size: 17px;
padding:22px;
background: #fff;
border:1px solid #ccc;
border-bottom: 0px;
margin-left: 5px;
}
ul.tab li a:hover {background-color: #ddd;}
ul.tab li a:focus, .active {background-color: #ccc;}
.tabcontent {
padding: 6px 12px;
border: 1px solid #ccc;
}
</style>
<script type="text/javascript">
var modal = document.getElementById('custom_myModal');
var span = document.getElementsByClassName("custom_close")[0];
span.onclick = function () {
modal.style.display = "none";
}
window.onclick = function (event) {
if (event.target == modal) {
modal.style.display = "none";
}
};
window.onhashchange = function () {
if (window.location.hash.endsWith("transaction_history_sh")) {
window.location.reload();
}
};
function customLoadDialog(msg) {
modal.style.display = "block";
document.getElementById('custom_msg').innerHTML = msg;
document.getElementById('close_now').innerHTML = "×";
}
var no_button = document.getElementById('confirm_button_2');
var yes_button = document.getElementById('confirm_button_1');
var modal1 = document.getElementById('custom_myModal_1');
function Load_confirm_box(msg)
{
modal1.style.display = "block";
document.getElementById('custom_msg_1').innerHTML = msg;
}
yes_button.onclick = function(){
modal1.style.display="none";
customLoadDialog("Redirecting to Payment page!");
var domURL = new Url;
domURL.hash = "educash_payment_sh";
window.location = domURL.toString();
window.location.reload();
return true;
}
no_button.onclick = function(){
modal1.style.display="none";
customLoadDialog("Redirecting to home page!");
var domURL = new Url;
domURL.hash = "";
window.location = domURL.toString();
window.location.reload();
return false;
}
function select_page(edugorilla_page) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName("tabcontent");
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = "none";
}
tablinks = document.getElementsByClassName("tablinks");
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" active", "");
}
document.getElementById(edugorilla_page).style.display = "block";
if (event != undefined) {
event.currentTarget.className += " active";
}
}
var domURL = new Url;
var currentTabFromURL = domURL.hash;
if (currentTabFromURL != undefined && currentTabFromURL.length > 0)
select_page(currentTabFromURL);
</script>
<?php
}
add_shortcode('manage_leads', 'show_all_other_shortcodes');
?>