/var/www/hkosl.com/ifapc/html_20210817/IFAPC2021/application/views/main/score_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
<?php include_once('templates/top.php'); ?>
<section id="page-title" style="background-image: url('<?php echo assets_url('main/img/lady_gold_2018.jpg'); ?>');" class="background-title">
    <div class="container clearfix">
        <h1><?php echo __('Score'); ?></h1>
        <ol class="breadcrumb">
            <li><a href="#"><?php echo __('Home'); ?></a></li>
            <li class="active"><?php echo __('Score'); ?></li>
        </ol>
    </div>
</section>

<!-- Content
        ============================================= -->
<section id="content">
    <div class="content-wrap">
        <div class="container clearfix">
            <div class="nomination">
                <div class="fl">
                    <select id="filter_category" class="">
                        <option value=""><?php echo __('All'); ?></option>
                    <?php foreach($categoies as $row) { ?>
                        <option value="<?php echo $row['id']; ?><?php echo $_GET['category'] == $row['id'] ? 'selected' ''?>><?php echo $row['name_' get_lang()]; ?></option>
                    <?php ?>
                    </select>
                    &nbsp;
                    &nbsp;
                    &nbsp;
                    &nbsp;
                    <span class="form-button">
                        <button class="submit-btn" onclick="location.href='<?php echo front_url('score/list_all'); ?>'" style="background-color:#777;border:2px solid #777" onclick="change_action('save_form')"><?php echo __('Scoring summary'); ?></button>
                    </span>
                </div>
                <div class="clear"></div>
            </div>

            <div class="table-responsive nomination-table">
                <table class="table">
                    <tr>
                        <th style="width:3%">#</th>
                        <th style="width:14%"><?php echo __('Reference No.'); ?></th>
                        <th style="width:25%"><?php echo __('Nominee'); ?></th>
                        <th style="width:25%"><?php echo __('Category Entered'); ?></th>
                        <th style="width:25%"><?php echo __('Nominator'); ?></th>
                        <th style="width:5%"><?php echo __('Score'); ?></th>
                        <th style="width:3%"></th>
                    </tr>
                    <?php foreach ($model as $key => $row){ ?>
                        <?php $completed count(Score_status_model::get_data_by_field_with_value(['application_id' => $row['id'], 'judge_id' => $_SESSION['judge_id'], 'judge_submitted' => 1])) ? true false?>
                    <tr>
                        <td><?php echo $key 1?></td>
                        <td><?php echo $row['reference_no']; ?></td>
                        <?php $CI =& get_instance();?>
                        <td><?php echo $CI->encryption->decrypt($row['nominee_name_' get_lang()]); ?></td>
                        <td><?php echo Category_model::get_certain($row['category_id'])['name_' get_lang()]; ?></td>
                        <td><?php echo $CI->encryption->decrypt($row['nominator_name_' get_lang()]); ?></td>
                        <td><?php echo $row['total_point']; ?><span style="color:red"><?php echo isset($row['total_point']) && !$completed ' (' __('Not Submitted') . ')' ''?></span></td>
                        <td class="action-control">
                        <?php if (true){ ?>
                            <?php $class $completed 'fa fa-eye' 'icon-edit'?>
                            <a href="<?php echo front_url('score/modify/' $row['id']); ?>" class="button button-dark button-rounded"><i class="<?php echo $class?>"></i></a>
                        <?php ?>
                        </td>
                    </tr>
                    <?php ?>
                </table>
            </div>
<?php include_once('templates/bottom.php'); ?>
<script>
    $('#filter_category').change(function(){
        document.location = "<?php echo front_url('score'?>" + ($(this).val() ? '?category=' + $(this).val() : '');
    })
</script>