-
Notifications
You must be signed in to change notification settings - Fork 0
/
my-teams.php
executable file
·189 lines (174 loc) · 6.8 KB
/
my-teams.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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<!DOCTYPE html>
<html>
<head>
<title>Teams</title>
<link rel="icon" type="image/png" href="css/logo5.png">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="/ui/bower_components/foundation/css/foundation.css">
<link rel="stylesheet" href="/ui/bower_components/foundation-icon-fonts/foundation-icons.css">
<link rel="stylesheet" href="css/admin.css">
</head>
<body>
<div id='login_provider'></div>
<script src="/ui/bower_components/jquery/dist/jquery.min.js"></script>
<?php include 'teamsTopDivs.php' ?>
<div id='mainWrapper'>
<div id='brandsWrapper' class="row"></div>
<div id='aboutWrapper' class="row"></div>
<div id='membersWrapper' class="row"></div>
<div id='accountsWrapper' class="row"></div>
<div id='throttlesWrapper' class="row"></div>
<div id='promosWrapper' class="row"></div>
<div id='recordsWrapper' class="row">
<div id='recordsTitle'></div>
<div id='recordsType' class='row'>
<button id='records-issued' class='columns small-2 tiny'>Added</button>
<button id='records-revTransfer' class='columns small-2 tiny'>N=>N</button>
<button id='records-expTransfer' class='columns small-2 tiny'>P=>P</button>
<button id='records-intrause' class='columns small-2 tiny'>Intra</button>
<button id='records-inflow' class='columns small-2 tiny'>Inflow</button>
<button id='records-outflow' class='columns small-2 tiny'>Outflow</button>
</div>
<div id='recordsItems'></div>
</div>
</div>
<div id='acceptModal' class="reveal-modal medium formModal" style='min-height:50vh; top:30px;' data-reveal>
<div id='acceptForm'>
<h4 id='accept-formTitle'></h4>
<form>
<div class='row'>
<div class='columns small-12'>
<label>Join on (yyyy-mm-dd hh:mm:ss)<input type='text' id='accept-joined' value='' /></label>
</div>
</div>
</form>
<button id='accept-submit'>Submit</button>
<button id='accept-cancel'>Cancel</button>
</div>
<a class="close-reveal-modal">×</a>
</div>
<div id='revokeModal' class="reveal-modal medium formModal" style='min-height:50vh; top:30px;' data-reveal>
<div id='revokeForm'>
<h4 id='revoke-formTitle'></h4>
<form>
<div class='row'>
<div class='columns small-12'>
<label>Revoke on (yyyy-mm-dd hh:mm:ss)<input type='text' id='revoke-revoked' value='' /></label>
</div>
</div>
</form>
<button id='revoke-submit'>Submit</button>
<button id='revoke-cancel'>Cancel</button>
</div>
<a class="close-reveal-modal">×</a>
</div>
<div id='promosModal' class="reveal-modal medium formModal" style='min-height:50vh; top:30px;' data-reveal>
<div id='promosForm'>
<h4 id='promos-formTitle'></h4>
<form>
<div class='row' id='promoID-formDiv'>
<div class='columns small-12'>
<label>Promos ID#<input type='text' id='promos-promo_id' value='' disabled='disabled'/></label>
</div>
</div>
<div id='promoDetailsDiv'>
<div class='row'>
<div class='columns small-12'>
<label>Name<input type='text' id='promos-name' value='' /></label>
</div>
</div>
<div class='row'>
<div class='columns small-12'>
<label>Description<textarea rows='3' id='promos-description'></textarea></label>
</div>
</div>
<div class='row'>
<div class='columns small-6'>
<label>Amount<input type='text' id='promos-amount' value='' /></label>
</div>
<div class='columns small-6'>
<label>Expires<input type='text' id='promos-expires' value='2016-12-31 00:00:00' /></label>
</div>
</div>
<div class='row'>
<div class='columns small-6'>
<label for='promos-keyword'><b>Keyword</b> for promo code,<br />
e.g. <b>food</b>-111, <b>ride</b>-18
</label>
</div>
<div class='columns small-6'>
<input type='text' id='promos-keyword' value='ad' /></label>
</div>
</div>
<!--<div class='row'>
<div class='columns small-12'>
<label>Image URL<input type='text' id='promos-imageURL' value='' /></label>
</div>
</div>
<div class='row'>
<div class='columns small-12'>
<label>Link<input type='text' id='promos-infoURL' value='' /></label>
</div>
</div>-->
</div>
<div id='promoRelayDiv'>
<div id='promoHolderIdDiv' class='row'>
<div class='columns small-12'>
<label>Route payments to<br />(revenue account w/ 'x' authcode): <select id='promos-holder_id'></select></label>
</div>
</div>
<div class='row'>
<div class='columns small-12'>Limits on usage per week</div>
</div>
<div class='row'>
<div class='columns small-4'>
<label>Total<input type='text' id='promos-by_all_limit' value='25' /></label>
</div>
<div class='columns small-4'>
<label>By brand<input type='text' id='promos-by_brand_limit' value='5' /></label>
</div>
<div class='columns small-4'>
<label>By user<input type='text' id='promos-by_user_limit' value='2' /></label>
</div>
</div>
<div class='row'>
<div class='columns small-8'>
<label for='promos-by_user_wait'>Before reusing, a user must wait (in hours)</label>
</div>
<div class='columns small-4'>
<input type='text' id='promos-by_user_wait' value='24' />
</div>
</div>
</div>
</form>
<button id='promos-submit'>Submit</button>
<button id='promos-cancel'>Cancel</button>
</div>
<a class="close-reveal-modal">×</a>
</div>
<script src="/ui/bower_components/q/q.js"></script>
<script src="/ui/bower_components/foundation/js/foundation.min.js"></script>
<script src="/ui/bower_components/foundation/js/foundation/foundation.reveal.js"></script>
<script src="/ui/bower_components/foundation/js/foundation/foundation.dropdown.js"></script>
<script src="/ui/js/phlatSimple.js"></script>
<script src="/ui/js/phlatDriver.js"></script>
<script src='/ui/js/teamMain.js'></script>
<script src='/ui/js/teamBrands.js'></script>
<script src='/ui/js/teamAbout.js'></script>
<script src='/ui/js/teamMembers.js'></script>
<script src='/ui/js/teamAccounts.js'></script>
<script src='/ui/js/teamRecords.js'></script>
<script src='/ui/js/teamThrottles.js'></script>
<script src='/ui/js/adminPromos.js'></script>
<script src='/ui/js/adminForms.js'></script>
<script>
var types = <?php echo file_get_contents(TATAG_DOMAIN ."/ref/brand_classification.json"); ?>;
var locs = <?php echo file_get_contents(TATAG_DOMAIN ."/ref/countries.json"); ?>;
var byIso3 = {};
locs.map(function (d) {byIso3[d[3]]=d;});
var app = teamMain(<?php echo '{"userid":"'.$_SESSION['TOKEN_ID'].'","pass":"'.$_SESSION['TOKEN_VAL'].'", "baseURL": "'. TATAG_DOMAIN .'"}'; ?>);
</script>
<?php include "me.php" ?>
</body>
</html>