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
|
<?php include_once('templates/top.php'); ?> <section id="page-title" style="background-image: url('<?php echo assets_url('main/img/2020/lady_gold_2020b.jpg'); ?>');" class="background-title"> <div class="container clearfix"> <h1><?php echo __('Application'); ?></h1> <ol class="breadcrumb"> <li><a href="#"><?php echo __('Home'); ?></a></li> <li class="active"><?php echo __('Application'); ?></li> </ol> </div> </section>
<!-- Content ============================================= --> <section id="content"> <div class="content-wrap"> <div class="container clearfix"> <div class="nomination"> <div class="fr"> <a href="<?php echo front_url('application/create'); ?>"><?php echo __('New Application'); ?></a> </div> <div class="clear"></div> </div>
<div class="table-responsive nomination-table"> <table class="table"> <tr> <th>#</th> <th><?php echo __('Reference No.'); ?></th> <th><?php echo __('Nominee'); ?></th> <th><?php echo __('Category Entered'); ?></th> <th><?php echo __('Nominator'); ?></th> <th></th> </tr> <?php foreach ($model as $key => $row) { ?> <tr> <td><?php echo $key + 1; ?></td> <td><?php echo $row['reference_no']; ?></td> <td> <?php echo Member_model::get_certain($row['nominee_member_id'])['email'];
if ($row['nominee_member_id'] == $_SESSION['member_id']) { $class = $row['nominee_submitted'] ? 'fa fa-eye' : 'icon-edit'; $title = $row['nominee_submitted'] ? __('View') : __('Modify');
echo '<div class="action-control" style="display: inline;"><a href="' . front_url('application/modify/' . $row['id']) . '" class="button button-dark button-rounded"><i class="' . $class . '" title="' . $title . '"></i></a></div>'; }
if ($row['owner_member_id'] == $_SESSION['member_id']) { echo $row['nominee_submitted'] ? ' (' . __('Nominee Submitted') . ')' : ''; }
?>
</td> <td><?php echo Category_model::get_certain($row['category_id'])['name_' . get_lang()]; ?></td> <td><?php echo Member_model::get_certain($row['nominator_member_id'])['email'];
if ($row['nominator_member_id'] == $_SESSION['member_id']) { $class = $row['nominator_submitted'] ? 'fa fa-eye' : 'icon-edit'; $title = $row['nominator_submitted'] ? __('View') : __('Modify');
echo '<div class="action-control" style="display: inline;"><a href="' . front_url('application/modify/' . $row['id']) . '" class="button button-dark button-rounded"><i class="' . $class . '" title="' . $title . '"></i></a></div>'; }
if ($row['owner_member_id'] == $_SESSION['member_id']) { echo $row['nominator_submitted'] ? ' (' . __('Nominator Submitted') . ')' : ''; } ?>
</td> <!-- <td class="action-control"> <?php /*if ($row['owner_member_id'] == $_SESSION['member_id']){ */ ?> <a href="<?php /*echo front_url('application/change_email/' . $row['id']); */ ?>" class="button button-dark button-rounded"><i class="icon-envelope"></i></a> <?php /*} */ ?> </td>-->
<!--<td class="action-control"> <?php /*if (in_array( $_SESSION['member_id'], [$row['nominee_member_id'], $row['nominator_member_id']])){ */ ?> <?php /* $membership = $_SESSION['member_id'] == $row['nominee_member_id'] ? 'nominee' : 'nominator'; $membership_submitted = $membership . '_submitted'; $class = $row[$membership . '_submitted'] ? 'fa fa-eye' : 'icon-edit'; */ ?> <a href="<?php /*echo front_url('application/modify/' . $row['id']); */ ?>" class="button button-dark button-rounded"><i class="<?php /*echo $class; */ ?>"></i></a> <?php /*}*/ ?> </td>--> <td class="action-control" style="white-space: nowrap;"> <?php if ($row['owner_member_id'] == $_SESSION['member_id']) { ?> <a href="<?php echo front_url('application/change_email/' . $row['id']); ?>" class="button button-dark button-rounded" style="display: inline-block;"><i class="icon-envelope" title="<?= __('Change Nominee or Nominator Email') ?>"></i></a> <?php } ?>
<?php if ($row['nominee_member_id'] == $_SESSION['member_id']) { ?> <a href="<?php echo front_url('application_file/modify/' . $row['id']); ?>" class="button button-dark button-rounded" style="display: inline-block;"><i class="icon-upload" title="<?= __('Upload Files') ?>"></i></a> <?php } ?> </td> </tr> <?php } ?> </table> </div> <?php include_once('templates/bottom.php'); ?>
|