-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
174 lines (151 loc) · 6.84 KB
/
index.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
<?php
require_once(__DIR__.'/header.php');
if(empty($_SESSION['rftoken'])){//if not logged in redirect to
header('Location: oauth.php');
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<!-- JQuery -->
<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<link rel="stylesheet" href="css/loader.css">
<script src="js/corp.js"></script>
<script src="js/srp-hull.js"></script>
<script src="js/srp-isk.js"></script>
<script src="js/srp-messages.js"></script>
<script src="js/loader.js"></script>
<script src="js/jquery.searchable-1.1.0.min.js"></script>
<title>SRP Mailer</title>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-md-1 col-md-offset-2">
<?php echo '<img src="https://image.eveonline.com/Corporation/'.$_SESSION["charinfo"]["CorporationID"].'_128.png">'; ?>
</div>
<div class="col-md-7 page-header">
<?php echo '<h1>SRP Mailer for SRP-Officers <small>'.$mailer_version.'</small></h1>'; ?>
</div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2" id="loading_status">
<table>
<tr id="row_loader"></tr>
<tr id="row_text"></tr>
</table>
</div>
<div class="col-md-6 col-md-offset-3" id="art">
</div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2">
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#intro" aria-controls="intro" role="tab" data-toggle="tab">Introduction</a></li>
<li role="presentation"><a href="#hullsrp" aria-controls="hullsrp" role="tab" data-toggle="tab">Hull SRP</a></li>
<li role="presentation"><a href="#isksrp" aria-controls="isksrp" role="tab" data-toggle="tab">ISK SRP</a></li>
<li role="presentation"><a href="#messagessrp" aria-controls="messagessrp" role="tab" data-toggle="tab">Messages</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="intro">
<p>
<h3>How it works:</h3>
<ul>
<li>Hull SRP:</li>
<ul><li>
This tab will pull all contracts from you to your corp mates within the last 6 hours. You can select the contract you want to write an email for, by clicking on it.
</li></ul>
<li>ISK SRP (indev):</li>
<ul><li>
This tab will pull all payments from the configured corp wallet within the last 6 hours. You can select the payments you want to write an email for, by clicking on them.
</li>
<li>
One of these roles is required for this feature: <strong>Accountant/Junior Accountant</strong>
</li>
<li>
The cache timer for wallets is <strong>1 hour</strong>. This means it is best to first make all payments ingame and then refresh the isk srp page.
</li></ul>
<li>Messages (indev):</li>
<ul><li>
This tab will allow you to select various message templates and send them to your corp mates.
</li></ul>
</ul>
</p>
<p>
<h3>Limitation:</h3>
<ul>
<li>Everything on this website is saved in session on the server. Not permanent storage of any kind of data occurs. This means when you stay inactive for too long or close your browser you will have to login again.</li>
<ul>
<?php echo '<li>The session expiry time on the current server is: <b>'.ini_get("session.gc_maxlifetime").'</b> seconds</li>'; ?>
</ul>
</ul>
</p>
<p>
<h4>Source code:</h4>
The sourcecode to the mailer can be found on <a href="https://github.com/jbs1/eve-srpmail">Github</a> together with a list of future plans.
</p>
</div>
<div role="tabpanel" class="tab-pane" id="hullsrp">
<table class="table table-bordered table-hover" id="hullsrp-table">
<thead>
<tr>
<th>Contract ID</th><th>Receiver</th><th>Time issued</th><th>Station ID</th><th>Status</th>
</tr>
</thead>
<tbody>
<tr id="no_contracts" class="warning"><td colspan=5> No contracts available! </td></tr>
</tbody>
</table>
<span class="help-block" id="hull_helpblock">When more than one contract to the same person exists, all contracts will be send in one mail!</span>
<button type="button" class="btn btn-primary" id="hull_refresh_button" onclick="hull_table_refresh()">Refresh!</button><br />
<span id="contracts-cached-date"></span>
</div>
<div role="tabpanel" class="tab-pane" id="isksrp">
<table class="table table-bordered table-hover" id="isksrp-table">
<thead>
<tr>
<th>Payment ID</th><th>Receiver</th><th>Time issued</th><th>Amount(ISK)</th><th>Reason</th>
</tr>
</thead>
<tbody>
<tr id="no_payments" class="warning"><td colspan=5> No payments available! </td></tr>
</tbody>
</table>
<span class="help-block"id="isk_helpblock">When more than one payment to the same person exists, all payments will be send in one mail!</span>
<button type="button" class="btn btn-primary" id="isk_refresh_button" onclick="isk_table_refresh()">Refresh!</button><br />
<span id="payments-cached-date"></span>
</div>
<div role="tabpanel" class="tab-pane" id="messagessrp">
<div class="input-group" id="messagessrp-search-div">
<span class="input-group-addon" id="messagessrp-search-addon">Member-Search:</span>
<input type="text" class="form-control" id="messagessrp-search" placeholder="Character Name" aria-describedby="messagessrp-search-addon">
</div>
<table class="table table-bordered table-hover" id="messagessrp-table">
<thead>
<tr>
<th>Membername</th><th>Member ID</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</body>
</html>