<strong><?php echo lang('check_by_subject_coordinator'); ?> (<?php echo $lesson_record->sc_name; ?> )</strong> <div class="da-panel-widget"><?php echo $lesson_record->sc_comment; ?> </div> <strong><?php echo $lesson_record->sc_approve == 1 ? lang('check_and_approved_on') : lang('check_on'); ?> : <?php echo datetimeFormat($lesson_record->sc_date); ?> </strong> </div> </div> <div id="tab_class" class="classWrap addClassLi"> <ul class="classes"> <?php if (isset($lesson_record_classes[$lesson_record->id]) and count($lesson_record_classes[$lesson_record->id]) > 0) { ?> <?php foreach ($lesson_record_classes[$lesson_record->id] as $lesson_record_class) { ?> <li class="classes_option graybtn" > <?php
public function claim() { $date = date('Y-m-d h:i:s', time()); //$date = date('Y-m-d h:i:s', strtotime('-1 day', strtotime($date))); if ($this->input->is_ajax_request()) { $post = $this->input->post(); if (!empty($post)) { $arrayClaim = array('level_id' => $this->input->post('level_id'), 'centre_id' => $this->input->post('centre_id'), 'level_name' => $this->input->post('level_name'), 'centre_name' => $this->input->post('centre_name'), 'class_name' => $this->input->post('class_name'), 'class_id' => $this->input->post('class_id'), 'user_id' => $this->current_user->id, 'role_id' => $this->current_centre_role->role_id); $insert_id = $this->claim_release_model->insertRow($arrayClaim, IMS_DB_PREFIX . 'claim_release'); $log = array('level_id' => $post['level_id'], 'centre_id' => $post['centre_id'], 'cr_id' => $insert_id, 'class_id' => $post['class_id'], 'user_id' => $this->current_user->id, 'status' => '1'); $this->claim_release_model->insertRow($log, IMS_DB_PREFIX . 'claim_release_log'); echo json_encode(array('status' => 'true', 'action' => 'claimed', 'insert_id' => $insert_id, 'claimedat' => lang('claimes_at') . ' ' . datetimeFormat($date))); die; } } else { $this->ims_template->build('parent_account/blank', $this->data); } }
<span style="font-size: medium; padding: 5px 0px; color: #fbb957;"><?php echo $event->author; ?> </span><span style="font-size: medium; padding: 5px 0px; color: #666;"><?php if (!empty($event->fullName)) { echo ', ' . $event->fullName . ' '; } if (!empty($event->name)) { echo '( ' . $event->name . ' )'; } ?> </span> <span style="float:right; margin-right: -21px;margin-top:6px;"> <?php echo datetimeFormat($event->post_date); ?> <?php if (_can('Event Log (Account-Level)') || (_can('Event Log (Centre-Level)') and $event->cid == $current_user_centre_id)) { ?> <a class="delete_log" style="display:inline-block;margin-top:22%;float:right;" getlink="<?php echo site_url('event_log/delete_log/' . $event->id); ?> " href="javascript:;" title="delete" confirmation="<?php echo lang('confirm_delete_log'); ?> "> <img src="<?php echo base_url($theme_path . 'images/icons/black/16/trash_empty.png'); ?>
<td><?php echo $claim->level_name . ' - ' . $claim->name; ?> <span class="handle sort_handle sortHandle_span"></td> <td><?php echo $claim->centre; ?> </td> <?php if ($claim->claimDetails) { ?> <td class="tdStatus<?php echo $claim->id; ?> "><?php echo lang('claimes_at') . ' ' . datetimeFormat($claim->claimDetails->date); ?> </td> <?php } else { ?> <td class="tdStatus<?php echo $claim->id; ?> "></td> <?php } ?> <td class="tdAction<?php echo $claim->id; ?>
echo lang('status'); ?> </a></th> </tr> </thead> <tbody role="alert" aria-live="polite" aria-relevant="all" id="classes_body" class="ims_sortable" attribute="id" getLink="<?php echo site_url('classes/reorder'); ?> "> <?php if (!empty($history)) { foreach ($history as $sn => $claim) { ?> <tr class="permanent_1 dataTableHead"> <td><?php echo datetimeFormat($claim->date); ?> <span class="handle sort_handle sortHandle_span"></td> <td><?php echo $claim->level_name . ' ' . $claim->class_name; ?> </td> <td><?php echo $claim->centre_name; ?> </td> <td><?php echo $claim->user_name; ?> </td> <td><?php