blob: badc98b264c3433d12d641ac92cc170d94c2aecd (
plain)
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
|
<div id="toolbox">
<h3><?php echo Filters::noXSS(L('pendingrequests')); ?></h3>
<?php if (!count($pendings)): ?>
<?php echo Filters::noXSS(L('nopendingreq')); ?>
<?php else: ?>
<table class="requests">
<tr>
<th><?php echo Filters::noXSS(L('eventdesc')); ?></th>
<th><?php echo Filters::noXSS(L('requestedby')); ?></th>
<th><?php echo Filters::noXSS(L('daterequested')); ?></th>
<th><?php echo Filters::noXSS(L('emailaddress')); ?></th>
<th class="pm-buttons"> </th>
</tr>
<?php foreach ($pendings as $req): ?>
<tr>
<td>
New User Request
</td>
<td><?php echo tpl_userlink($req['submitted_by']); ?></td>
<td><?php echo Filters::noXSS(formatDate($req['time_submitted'], true)); ?></td>
<td><?php echo Filters::noXSS($req['reason_given']); ?></td>
<td>
<?php echo tpl_form(Filters::noXSS(CreateUrl('edituser', $req['submitted_by'])), null, null, null, 'style="display:inline"'); ?>
<input type="submit" value="<?php echo Filters::noXSS(L('accept')); ?>">
<input type="hidden" name="action" value="approve.user"/>
<input type="hidden" name="user_id" value="<?php echo $req['submitted_by']; ?>"/>
<input type="hidden" name="account_enabled" value="1"/>
</form>
<button class="submit" onclick="showhidestuff('denyform<?php echo Filters::noXSS($req['request_id']); ?>');"><?php echo Filters::noXSS(L('deny')); ?></button>
<div id="denyform<?php echo Filters::noXSS($req['request_id']); ?>" class="denyform">
<?php echo tpl_form(Filters::noXSS(CreateUrl('admin','userrequest'))); ?>
<div>
<input type="hidden" name="action" value="denyuserreq" />
<input type="hidden" name="req_id" value="<?php echo Filters::noXSS($req['request_id']); ?>" />
<label for="deny_reason<?php echo Filters::noXSS($req['request_id']); ?>" class="inline"><?php echo Filters::noXSS(L('reasonfordeinal')); ?></label><br />
<textarea cols="40" rows="5" name="deny_reason" id="deny_reason<?php echo Filters::noXSS($req['request_id']); ?>"></textarea>
<br />
<button type="submit"><?php echo Filters::noXSS(L('deny')); ?></button>
</div>
</form>
</div>
</td>
</tr>
<?php endforeach; ?>
</table>
<?php endif; ?>
</div>
|