public function get_emp_sen_date() { $id = $this->input->post('id'); if ($id == '0') { echo '-'; } else { $id = get_nik($id); echo dateIndo(get_user_sen_date($id)); } }
public function ajax_list() { $list = $this->main->get_datatables(); $data = array(); $no = $_POST['start']; foreach ($list as $r) { $detail = base_url() . $this->module . '/' . $this->file_name . '/detail/' . $r->id; // $print = base_url().$this->module.'/'.$this->file_name.'/print_pdf/'.$r->id; $no++; $row = array(); $row[] = $no; $row[] = "<a href={$detail}>#" . $r->no . '</a>'; $row[] = dateIndo($r->tgl); $row[] = $r->catatan; $row[] = "<a class='btn btn-sm btn-primary' href={$detail} title='detail'><i class='fa fa-info'></i></a>"; // <a class='btn btn-sm btn-light-azure' href=$print target='_blank' title='detail'><i class='fa fa-print'></i></a>"; $data[] = $row; } $output = array("draw" => $_POST['draw'], "recordsTotal" => $this->main->count_all(), "recordsFiltered" => $this->main->count_filtered(), "data" => $data); //output to json format echo json_encode($output); }
?> </a></td> <td><?php echo get_name($user->user_id); ?> </td> <td><?php echo get_position_name($user->old_pos); ?> </td> <td><?php echo get_position_name($user->new_pos); ?> </td> <td><?php echo dateIndo($user->date_rolling); ?> </td> <td class="text-center"> <?php echo $txt_app_lv1; ?> </td> <td class="text-center"> <?php echo $txt_app_lv2; ?> </td> <td class="text-center"> <?php echo $txt_app_lv3;
<input name="no" id="nik" type="text" class="form-control" placeholder="NIK" value="<?php echo $sess_nik; ?> " disabled="disabled"> </div> </div> <div class="row form-row"> <div class="col-md-3"> <label class="form-label text-right"><?php echo lang('start_working'); ?> </label> </div> <div class="col-md-9"> <input name="seniority_date" id="seniority_date" type="text" class="form-control" placeholder="Lama Bekerja" value="<?php echo dateIndo(get_user_sen_date($sess_nik)); ?> " disabled="disabled"> </div> </div> <div class="row form-row"> <div class="col-md-3"> <label class="form-label text-right"><?php echo lang('dept_div'); ?> </label> </div> <div class="col-md-9"> <input name="organization" id="organization" type="text" class="form-control" placeholder="Organization" value="<?php echo get_user_organization($sess_nik); ?>
</span><br/> <span class="small"><?php echo dateIndo($created_on); ?> </span><br/> </p> <?php } else { ?> <p class="wf-submit"> <span class="semi-bold"><?php echo get_name($report_creator); ?> </span><br/> <span class="small"><?php echo dateIndo($created_on); ?> </span><br/> </p> <?php } ?> </div> </div> <?php } } ?> </form> </div>
<span class="small"><?php echo get_user_position(get_nik($td->created_by)); ?> </span><br/> </p> <?php } ?> </div> <div style="float: right;text-align: center; width: 45%;" class="style5"> <p>Yang memberi tugas / ijin</p> <p> </p> <p> </p> <span class="semi-bold"><?php echo get_name($td->task_creator); ?> </span><br/> <span class="small"><?php echo dateIndo($td->created_on); ?> </span><br/> </div> <?php } } ?> </body> </html>
</div> <div class="row row-seperation" style="margin-top: 20px;padding-bottom: 30px;"> <div class="col-md-12"> <h4>Employement</h4> <div class="row form-row"> <div class="col-md-3"> <label class="form-label"><?php echo lang('seniority_date'); ?> </label> </div> <div class="col-md-9"> <input type="text" class="form-control" value="<?php echo dateIndo($seniority_date); ?> " disabled="disabled"> </div> </div> <div class="row form-row"> <div class="col-md-3"> <label class="form-label"><?php echo lang('position'); ?> </label> </div> <div class="col-md-9"> <input type="text" class="form-control" value="<?php echo $position; ?>
<label class="form-label text-left">Tgl. Berangkat</label> </div> <div class="col-md-8"> <input name="title" id="title" type="text" class="form-control" placeholder="Dalam Rangka" value="<?php echo dateIndo($td->date_spd_start); ?> " disabled="disabled"> </div> </div> <div class="row form-row"> <div class="col-md-4"> <label class="form-label text-left">Tgl.Pulang</label> </div> <div class="col-md-8"> <input name="title" id="title" type="text" class="form-control" placeholder="Dalam Rangka" value="<?php echo dateIndo($td->date_spd_end); ?> " disabled="disabled"> </div> </div> <div class="row form-row"> <div class="col-md-4"> <label class="form-label text-left">Lama PJD</label> </div> <div class="col-md-8"> <input name="form3LastName" id="form3LastName" type="text" class="form-control" placeholder="Nama" value="<?php echo $lama_pjd . ' Hari'; ?> " disabled="disabled"> </div> </div>
<label class="form-label text-left">Jabatan Baru</label> </div> <div class="col-md-8"> <input name="nik" id="form3LastName" type="text" class="form-control " placeholder="Nama" value="<?php echo get_position_name($row->new_pos); ?> " disabled="disabled"> </div> </div> <div class="row form-row"> <div class="col-md-4"> <label class="form-label text-left">Tgl. rolling</label> </div> <div class="col-md-8"> <input type="text" class="form-control" name="date_rolling" value="<?php echo dateIndo($row->date_rolling); ?> " disabled="disabled"> </div> </div> <div class="row form-row"> <div class="col-md-4"> <label class="form-label text-left">Alasan rolling</label> </div> <div class="col-md-8"> <textarea name="alasan" id="alasan" type="text" class="form-control" placeholder="Alasan rolling" disabled="disabled"><?php echo $row->alasan; ?> </textarea> </div> </div>
public function ajax_list() { $list = $this->main->get_datatables(); $data = array(); $no = $_POST['start']; foreach ($list as $r) { if ($r->is_deleted == 0) { $detail = base_url() . $this->file_name . '/detail/' . $r->id; //$print = base_url().$this->file_name.'/print_pdf/'.$r->id; $delete = $r->created_by == sessId() || $this->ion_auth->is_admin() == true ? '<a class="btn btn-sm btn-danger" href="javascript:void(0)" title="Hapus" onclick="delete_user(' . "'" . $r->id . "'" . ')"><i class="glyphicon glyphicon-trash"></i></a>' : ''; $no++; $row = array(); $row[] = $no; $row[] = "<a href={$detail}>#" . $r->no . '</a>'; $row[] = $r->project; $row[] = $r->kontak; $row[] = dateIndo($r->tgl); $row[] = $r->creator; $row[] = $r->status; $row[] = "<a class='btn btn-sm btn-primary' href={$detail} title='detail'><i class='fa fa-info'></i></a>\n {$delete}"; $data[] = $row; } } $output = array("draw" => $_POST['draw'], "recordsTotal" => $this->main->count_all(), "recordsFiltered" => $this->main->count_filtered(), "data" => $data); //output to json format echo json_encode($output); }
<td> <?php echo $user->vendor; ?> </td> </tr> <tr> <td height="45" align="center">15</td> <td> Tempat Pelaksanaan : <?php echo $user->tempat; ?> </td> <td> Tanggal & Jam Pelaksaan : <?php echo dateIndo($user->tanggal_mulai); ?> s/d <?php echo dateIndo($user->tanggal_akhir); ?> <?php echo $user->jam_mulai; ?> s/d <?php echo $user->jam_akhir; ?> </td> </tr> <tr> <td height="45" align="center">16</td> <td> Lama Pelaksanaan</td> <td> <?php echo $user->lama_training_bulan . ' Bulan' . ' ' . $user->lama_training_hari . ' Hari'; ?>
<input name="registration_date" id="registration_date" type="text" class="form-control" placeholder="Registration Date" value="<?php echo dateIndo($user->date_mulai_cuti); ?> " disabled="disabled"> </div> </div> <div class="row form-row"> <div class="col-md-2"> <label class="form-label text-right"><?php echo lang('end_cuti'); ?> </label> </div> <div class="col-md-10"> <input name="status" id="status" type="text" class="form-control" placeholder="Status" value="<?php echo dateIndo($user->date_selesai_cuti); ?> " disabled="disabled"> </div> </div> <div class="row form-row"> <div class="col-md-2"> <label class="form-label text-right"><?php echo lang('count_day'); ?> </label> </div> <div class="col-md-10"> <input name="status" id="status" type="text" class="form-control" placeholder="Status" value="<?php echo $user->jumlah_hari; ?>
public function get_emp_sendate() { $id = $this->input->post('id'); $url = get_api_key() . 'users/employement/EMPLID/' . get_nik($id) . '/format/json'; $headers = get_headers($url); $response = substr($headers[0], 9, 3); if ($response != "404") { $getuser_info = file_get_contents($url); $user_info = json_decode($getuser_info, true); $sen_date = dateIndo($user_info['SENIORITYDATE']); } else { $sen_date = ''; } echo $sen_date; }
function edit_user_approval($id) { $user = getJoin('users', 'users_edit_approval', 'users.id = users_edit_approval.user_id', 'left', 'users.*,users_edit_approval.*', array('users_edit_approval.id' => 'where/' . $id))->row(); //print_mz($user); $this->data['user'] = $user; $user_id = getValue('user_id', 'users_edit_approval', array('id' => 'where/' . $id)); $marital = getJoin('users', 'marital', 'users.marital_id = marital.id', 'left', 'marital.title as marital', array('users.id' => 'where/' . $user_id))->row()->marital; $marital_n = getJoin('users_edit_approval', 'marital', 'users_edit_approval.marital_id_new = marital.id', 'left', 'marital.title as marital', array('users_edit_approval.id' => 'where/' . $id))->row()->marital; $this->data['approval_status'] = GetAll('approval_status', array('is_deleted' => 'where/0'), array('!=id' => '3')); if (!empty($user)) { $this->data['bod'] = array('name' => 'bod', 'id' => 'bod', 'type' => 'text', 'disabled' => 'disabled', 'value' => $this->form_validation->set_value('bod', dateIndo($user->bod))); $this->data['first_name'] = array('name' => 'first_name', 'id' => 'first_name', 'type' => 'text', 'disabled' => 'disabled', 'value' => $this->form_validation->set_value('first_name', $user->first_name)); $this->data['last_name'] = array('name' => 'last_name', 'id' => 'last_name', 'type' => 'text', 'disabled' => 'disabled', 'value' => $this->form_validation->set_value('last_name', $user->last_name)); $this->data['marital'] = array('name' => 'marital', 'id' => 'marital', 'type' => 'text', 'disabled' => 'disabled', 'value' => $this->form_validation->set_value('marital', $marital)); $this->data['phone'] = array('name' => 'phone', 'id' => 'phone', 'type' => 'text', 'disabled' => 'disabled', 'value' => $this->form_validation->set_value('phone', $user->phone)); $this->data['email'] = array('name' => 'email', 'id' => 'email', 'type' => 'text', 'disabled' => 'disabled', 'value' => $this->form_validation->set_value('email', $user->email)); $this->data['previous_email'] = array('name' => 'previous_email', 'id' => 'previous_email', 'type' => 'text', 'disabled' => 'disabled', 'value' => $this->form_validation->set_value('previous_email', $user->previous_email)); $this->data['bb_pin'] = array('name' => 'bb_pin', 'id' => 'bb_pin', 'type' => 'text', 'disabled' => 'disabled', 'value' => $this->form_validation->set_value('bb_pin', $user->bb_pin)); $this->data['bod_n'] = array('name' => 'bod', 'id' => 'bod', 'type' => 'text', 'disabled' => 'disabled', 'value' => $this->form_validation->set_value('bod', dateIndo($user->bod_new))); $this->data['first_name_n'] = array('name' => 'first_name', 'id' => 'first_name', 'type' => 'text', 'disabled' => 'disabled', 'value' => $this->form_validation->set_value('first_name', $user->first_name_new)); $this->data['last_name_n'] = array('name' => 'last_name', 'id' => 'last_name', 'type' => 'text', 'disabled' => 'disabled', 'value' => $this->form_validation->set_value('last_name', $user->last_name_new)); $this->data['marital_n'] = array('name' => 'marital', 'id' => 'marital', 'type' => 'text', 'disabled' => 'disabled', 'value' => $this->form_validation->set_value('marital', $marital_n)); $this->data['phone_n'] = array('name' => 'phone', 'id' => 'phone', 'type' => 'text', 'disabled' => 'disabled', 'value' => $this->form_validation->set_value('phone', $user->phone_new)); $this->data['previous_email_n'] = array('name' => 'previous_email', 'id' => 'previous_email', 'type' => 'text', 'disabled' => 'disabled', 'value' => $this->form_validation->set_value('previous_email', $user->previous_email_new)); $this->data['bb_pin_n'] = array('name' => 'bb_pin', 'id' => 'bb_pin', 'type' => 'text', 'disabled' => 'disabled', 'value' => $this->form_validation->set_value('bb_pin', $user->bb_pin_new)); $this->data['is_app'] = $user->is_app; $this->data['user_app'] = $user->user_app; $this->data['date_app'] = $user->date_app; $this->data['app_status_id'] = $user->app_status_id; $this->data['note'] = $user->note; } $this->_render_page('auth/edit_user_approval', $this->data); }
<div class="col-md-3"> <label class="form-label text-right">Dalam Rangka</label> </div> <div class="col-md-9"> <input name="title" id="title" type="text" class="form-control" placeholder="Dalam Rangka" value="<?php echo $td->title; ?> " disabled="disabled"> </div> </div> <div class="row form-row"> <div class="col-md-3"> <label class="form-label text-right">Tgl. Berangkat</label> </div> <?php $task_date = dateIndo($td->date_spd); ?> <div class="col-md-8"> <!-- <div class="input-append date success no-padding"> --> <input type="text" class="form-control" name="start_cuti" value="<?php echo $task_date; ?> " disabled="disabled"> <!-- <span class="add-on"><span class="arrow"></span><i class="icon-th"></i></span> --> <!-- </div> --> </div> </div> <div class="row form-row"> <div class="col-md-3"> <label class="form-label text-right">Waktu</label> </div>
</td> <td>Address</td> <td>:</td> <td><?php echo $o->alamat; ?> </td> </tr> <tr> <td width="180">Due Date</td> <td width="20">:</td> <td width="300"><?php echo dateIndo($o->tanggal_pengantaran); ?> </td> <td>Attn</td> <td>:</td> <td>Finance</td> </tr> <tr> <td>PO No.</td> <td>:</td> <td><?php echo $o->so; ?> </td>
<input name="no" id="no" type="text" class="form-control" placeholder="No" value="<?php echo $user->id; ?> " disabled="disabled"> </div> </div> <div class="row form-row"> <div class="col-md-4"> <label class="form-label text-right"><?php echo lang('start_working'); ?> </label> </div> <div class="col-md-8"> <input name="seniority_date" id="seniority_date" type="text" class="form-control" placeholder="Lama Bekerja" value="<?php echo dateIndo(get_user_sen_date($user_nik)); ?> " disabled="disabled"> </div> </div> <div class="row form-row"> <div class="col-md-4"> <label class="form-label text-right"><?php echo lang('name'); ?> </label> </div> <div class="col-md-8"> <input name="name" id="name" type="text" class="form-control" placeholder="Nama" value="<?php echo get_name($user_nik); ?>
<div class="row form-row"> <div class="col-md-2"> <label class="form-label text-right">Jabatan</label> </div> <div class="col-md-3"> <input name="emp" id="emp" type="text" class="form-control" placeholder="Nama Karyawan" value="<?php echo get_user_position($user_nik); ?> " disabled="disabled"> </div> <div class="col-md-2"> <label class="form-label text-right">Tanggal Keluar</label> </div> <div class="col-md-3"> <input type="text" class="form-control" id="sandbox-advance" name="date_exit" value="<?php echo dateIndo($row->date_exit); ?> " disabled="disabled"> </div> </div> <div class="row form-row"> <div class="col-md-2"> <label class="form-label text-right">Tipe Rekomendasi</label> </div> <div class="col-md-3"> <input type="text" class="form-control" id="sandbox-advance" name="tipe" value="<?php echo $row->exit_type; ?> " disabled="disabled"> </div> </div>
<span class="small"></span> <span class="semi-bold"></span><br/> <span class="small"></span><br/> <span class="semi-bold"></span><br/> <span class="semi-bold">(HRD)</span> <?php } elseif ($td->is_app_hrd == 1) { echo "<img class=approval_img_md src={$approved}>"; ?> <span class="small"></span><br/> <span class="semi-bold"><?php echo get_name($td->user_app_hrd); ?> </span><br/> <span class="small"><?php echo dateIndo($td->date_app_hrd); ?> </span><br/> <span class="semi-bold"></span> <span class="semi-bold">(HRD)</span> <?php } else { ?> <span class="small"></span><br/> <span class="small"></span><br/> <span class="semi-bold"></span><br/> <span class="small"></span><br/> <span class="semi-bold"></span><br/> <span class="semi-bold">(HRD)</span> <?php }
public function ajax_list() { $list = $this->main->get_datatables(); $data = array(); $no = $_POST['start']; foreach ($list as $r) { if ($r->is_deleted == 0) { $detail = base_url() . $this->module . '/' . $this->file_name . '/detail/' . $r->id; $print = base_url() . $this->module . '/' . $this->file_name . '/print_pdf/' . $r->id; //$print = base_url()."print/file/index.php?stimulsoft_client_key=ViewerFx&stimulsoft_report_key=po.mrt¶m1=".$r->id; $draft = base_url() . $this->module . '/' . $this->file_name . '/draft/' . $r->id; $delete = $r->created_by == sessId() || $this->ion_auth->is_admin() == true ? '<a class="btn btn-sm btn-danger" href="javascript:void(0)" title="Hapus" onclick="showModal(' . "'" . $r->id . "'" . ')"><i class="glyphicon glyphicon-trash"></i></a>' : ''; $status1 = $r->app_status_id_lv1 == 1 ? '<i title="Approved" class="fa fa-check" style="color:green"></i>' : ($r->app_status_id_lv1 == 2 ? '<i title="rejected" class="fa fa-remove" style="color:red"></i>' : ($r->app_status_id_lv1 == 3 ? '<i title="Pending" class="fa fa-info" style="color:orange"></i>' : '<i class="fa fa-question"></i>')); $status2 = $r->app_status_id_lv2 == 1 ? '<i title="Approved" class="fa fa-check" style="color:green"></i>' : ($r->app_status_id_lv2 == 2 ? '<i title="rejected" class="fa fa-remove" style="color:red"></i>' : ($r->app_status_id_lv2 == 3 ? '<i title="Pending" class="fa fa-info" style="color:orange"></i>' : '<i class="fa fa-question"></i>')); $status3 = $r->app_status_id_lv3 == 1 ? '<i title="Approved" class="fa fa-check" style="color:green"></i>' : ($r->app_status_id_lv3 == 2 ? '<i title="rejected" class="fa fa-remove" style="color:red"></i>' : ($r->app_status_id_lv3 == 3 ? '<i title="Pending" class="fa fa-info" style="color:orange"></i>' : '<i title="No Respond" class="fa fa-question"></i>')); $no_pr = getValue('no', 'purchase_order', array('id' => 'where/' . $r->id)); $creator_pr = getValue('created_by', 'purchase_request', array('id' => 'where/' . $no_pr)); $jenis = getValue('jenis_barang_id', 'purchase_request', array('id' => 'where/' . $no_pr)); $gtotal = getValue('gtotal', 'purchase_order', array('id' => 'where/' . $r->id)); if ($jenis == 3) { if ($gtotal > 1000000) { $status2 = $r->app_status_id_lv2 == 1 ? '<i title="Approved" class="fa fa-check" style="color:green"></i>' : ($r->app_status_id_lv2 == 2 ? '<i title="rejected" class="fa fa-remove" style="color:red"></i>' : ($r->app_status_id_lv2 == 3 ? '<i title="Pending" class="fa fa-info" style="color:orange"></i>' : '<i class="fa fa-question"></i>')); $status3 = $r->app_status_id_lv3 == 1 ? '<i title="Approved" class="fa fa-check" style="color:green"></i>' : ($r->app_status_id_lv3 == 2 ? '<i title="rejected" class="fa fa-remove" style="color:red"></i>' : ($r->app_status_id_lv3 == 3 ? '<i title="Pending" class="fa fa-info" style="color:orange"></i>' : '<i title="No Respond" class="fa fa-question"></i>')); $status4 = $r->app_status_id_lv4 == 1 ? '<i title="Approved" class="fa fa-check" style="color:green"></i>' : ($r->app_status_id_lv4 == 2 ? '<i title="rejected" class="fa fa-remove" style="color:red"></i>' : ($r->app_status_id_lv4 == 3 ? '<i title="Pending" class="fa fa-info" style="color:orange"></i>' : '<i title="No Respond" class="fa fa-question"></i>')); $has_approve = 'direktur'; } else { $status2 = $r->app_status_id_lv2 == 1 ? '<i title="Approved" class="fa fa-check" style="color:green"></i>' : ($r->app_status_id_lv2 == 2 ? '<i title="rejected" class="fa fa-remove" style="color:red"></i>' : ($r->app_status_id_lv2 == 3 ? '<i title="Pending" class="fa fa-info" style="color:orange"></i>' : '<i class="fa fa-question"></i>')); $status3 = '<i title="Tidak Butuh Approval" class="fa fa-minus" style="color:green"></i>'; $status4 = '<i title="Tidak Butuh Approval" class="fa fa-minus" style="color:green"></i>'; $has_approve = 'ga'; } } else { $status2 = '<i title="Tidak Butuh Approval" class="fa fa-minus" style="color:green"></i>'; $status3 = $r->app_status_id_lv3 == 1 ? '<i title="Approved" class="fa fa-check" style="color:green"></i>' : ($r->app_status_id_lv3 == 2 ? '<i title="rejected" class="fa fa-remove" style="color:red"></i>' : ($r->app_status_id_lv3 == 3 ? '<i title="Pending" class="fa fa-info" style="color:orange"></i>' : '<i title="No Respond" class="fa fa-question"></i>')); $status4 = $r->app_status_id_lv4 == 1 ? '<i title="Approved" class="fa fa-check" style="color:green"></i>' : ($r->app_status_id_lv4 == 2 ? '<i title="rejected" class="fa fa-remove" style="color:red"></i>' : ($r->app_status_id_lv4 == 3 ? '<i title="Pending" class="fa fa-info" style="color:orange"></i>' : '<i title="No Respond" class="fa fa-question"></i>')); $has_approve = 'direktur'; } $no++; $row = array(); $row[] = $no; $row[] = $r->is_draft == 1 ? "<a href={$draft}>#" . $r->po . '</a>' : "<a href={$detail}>#" . $r->po . '</a>'; $row[] = $r->kontak; $row[] = dateIndo($r->tanggal_transaksi); $row[] = $r->gudang; $row[] = getName($r->created_by); $row[] = $r->status_id != 0 ? $r->status : $this->get_status($r->id); if ($r->is_draft == 1) { $row[] = 'Draft'; $row[] = 'Draft'; $row[] = 'Draft'; $row[] = 'Draft'; } else { $row[] = $status1; $row[] = $status2; $row[] = $status3; $row[] = $status4; } if ($r->is_draft == 1) { if ($r->created_by == sessId()) { $row[] = '<a class="btn btn-sm btn-primary" href=' . $draft . ' title="Edit Draft"><i class="fa fa-pencil"></i></a> <a class="btn btn-sm btn-danger" href="javascript:void(0)" title="Hapus" onclick="delete_user(' . "'" . $r->id . "'" . ')"><i class="glyphicon glyphicon-trash"></i></a>'; } else { $row[] = ''; } } else { if ($has_approve == 'direktur' && $r->app_status_id_lv4 != 1 || $has_approve == 'ga' && $r->app_status_id_lv2 != 1) { $row[] = "<a class='btn btn-sm btn-primary' href={$detail} title='detail'><i class='fa fa-info'></i></a>\n <a class='btn btn-sm btn-light-azure' onclick='cantPrint()' title='Cetak'><i class='fa fa-print'></i></a>\n {$delete}\n "; } else { $row[] = "<a class='btn btn-sm btn-primary' href={$detail} title='detail'><i class='fa fa-info'></i></a>\n <a class='btn btn-sm btn-light-azure' href={$print} target='_blank' title='cetak'><i class='fa fa-print'></i></a>\n {$delete}\n "; } } $data[] = $row; } } $output = array("draw" => $_POST['draw'], "recordsTotal" => $this->main->count_all(), "recordsFiltered" => $this->main->count_filtered(), "data" => $data); //output to json format echo json_encode($output); }
<span class="small"></span> <span class="semi-bold"></span><br/> <span class="small"></span><br/> <span class="semi-bold"></span><br/> <span class="semi-bold">(HRD)</span> <?php } elseif ($user->is_app_hrd == 1) { echo $user->approval_status_id_hrd == 1 ? "<img class=approval_img_md src={$approved}>" : ($user->approval_status_id_hrd == 2 ? "<img class=approval_img_md src={$rejected}>" : '<span class="small"></span><br/>'); ?> <span class="small"></span><br/> <span class="semi-bold"><?php echo get_name($user->user_app_hrd); ?> </span><br/> <span class="small"><?php echo dateIndo($user->date_app_hrd); ?> </span><br/> <span class="semi-bold"></span><br/> <span class="semi-bold">(HRD)</span> <?php } else { ?> <span class="small"></span><br/> <span class="small"></span><br/> <span class="semi-bold"></span><br/> <span class="small"></span><br/> <span class="semi-bold"></span><br/> <span class="semi-bold">(HRD)</span> <?php }
<label class="form-label text-left">Jabatan Baru</label> </div> <div class="col-md-8"> <input name="nik" id="form3LastName" type="text" class="form-control " placeholder="Nama" value="<?php echo get_position_name($row->new_pos); ?> " disabled="disabled"> </div> </div> <div class="row form-row"> <div class="col-md-4"> <label class="form-label text-left">Tgl. Pengangkatan</label> </div> <div class="col-md-8"> <input type="text" class="form-control" name="date_promosi" value="<?php echo dateIndo($row->date_promosi); ?> " disabled="disabled"> </div> </div> <div class="row form-row"> <div class="col-md-4"> <label class="form-label text-left">Alasan Pengangkatan</label> </div> <div class="col-md-8"> <textarea name="alasan" id="alasan" type="text" class="form-control" placeholder="Alasan Pengangkatan" disabled="disabled"><?php echo $row->alasan; ?> </textarea> </div> </div>
</div> <div class="row"> <div class="col-md-4"> <div class="approve text-center" style="align:center"> <p class="text-center">Dibuat Oleh,</p> <span class="small"></span> <span class="semi-bold"></span> <span class="small"></span><br/><br/> <span class="semi-bold"></span><br/> <span class="semi-bold"><?php echo getFullName($o->created_by); ?> </span><br/> <span class="small"><?php echo dateIndo($o->created_on); ?> </span><br/> </div> </div> </div> </div> </div> </div> </div> </form> <?php } ?> <!-- end: INVOICE -->
?> </a></td> <td><?php echo get_name($user->user_id); ?> </td> <td><?php echo get_position_name($user->old_pos); ?> </td> <td><?php echo get_position_name($user->new_pos); ?> </td> <td><?php echo dateIndo($user->date_demotion); ?> </td> <td class="text-center"> <?php echo $txt_app_lv1; ?> </td> <td class="text-center"> <?php echo $txt_app_lv2; ?> </td> <td class="text-center"> <?php echo $txt_app_lv3;
$rejected = assets_url('img/rejected_stamp.png'); ?> <div class="row wf-cuti"> <div class="col-md-3 pull-right text-center"> <div class="col-md-12 text-center"><div class="col-md-12 text-center"><span class="semi-bold">Status Perubahan,</span><br/><br/><br/></div> <p class="wf-approve-sp"> <?php echo $app_status_id == 1 ? "<img class=approval_img_md src={$approved}>" : ($app_status_id == 2 ? "<img class=approval_img_md src={$rejected}>" : '<span class="small"></span><br/>'); ?> <span class="small"></span><br/> <span class="semi-bold"><?php echo get_name($user_app); ?> </span><br/> <span class="small"><?php echo dateIndo($date_app); ?> </span><br/> <span class="semi-bold"></span><br/> <span class="semi-bold">(Administrator)</span> </p> </div> </div> <?php } ?> <?php echo form_close(); } ?> </div>
<br/>(Supervisor)</td> <td align="center"><?php echo dateIndo($row->date_app_lv2); ?> <br/>(Ka. Bagian)</td> <td align="center"><?php echo dateIndo($row->date_app_lv3); if (!empty($row->user_app_lv3)) { ?> <br/><?php echo '(' . get_user_position($row->user_app_lv3) . ')'; } ?> </td> <td align="center"><?php echo dateIndo($row->date_app_hrd); ?> <br/>(HRD)</td> </tr> </tbody> </table> <?php } ?> <p> </p> <p> </p> <p> </p> <p> </p> </body> </html>
<div class="col-md-12"> <div class="invoice"> <div class="row invoice-logo"> <div class="col-sm-6"> <img alt="" src="<?php echo assets_url('images/your-logo-here.png'); ?> "> </div> <div class="col-sm-6"> <p class="text-dark"> #<?php echo date('Ymd', strtotime('now')) . $last_id; ?> / <?php echo dateIndo(date('Y-m-d', strtotime('now'))); ?> <small class="text-light"></small> <input type="hidden" name="no" value="<?php echo date('Ymd', strtotime('now')) . $last_id; ?> "> </p> </div> </div> <div class="row form-row"> <div class="col-md-6"> <div class="col-md-4"> <label class="control-label">Salin Dari P.O</label> </div> <div class="col-md-8">
} elseif ($o->is_app_lv4 == 0 && $user_app_lv4 != sessId()) { ?> <span class="small"></span> <span class="semi-bold"></span> <span class="small"></span><br/><br/> <span class="semi-bold"></span><br/> <?php } else { $status = $o->app_status_id_lv4 == 1 ? assets_url('images/approved_stamp.png') : ($o->app_status_id_lv4 == 2 ? assets_url('images/rejected_stamp.png') : ($o->app_status_id_lv4 == 3 ? assets_url('images/pending_stamp.png') : "")); ?> <img height="50px" width="75px" src="<?php echo $status; ?> "><br/> <span class="small"><?php echo dateIndo($o->date_app_lv4); ?> </span><br/> <span class="semi-bold"><?php echo getFullName($o->user_app_lv4); ?> </span><br/> <span class="semi-bold">(<?php echo $jabatan_lv4; ?> )</span> <?php } ?> </div> </div>
<span class="semi-bold"></span><br/> <span class="semi-bold">(<?php echo get_user_position($row->user_app_lv3); ?> )</span> <?php } elseif (!empty($row->user_app_lv3) && $row->is_app_lv3 == 1) { echo $row->app_status_id_lv3 == 1 ? "<img class=approval-img-al src={$approved}>" : ($row->app_status_id_lv3 == 2 ? "<img class=approval-img-al src={$rejected}>" : '<span class="small"></span><br/>'); ?> <span class="small"></span><br/> <span class="semi-bold"><?php echo get_name($row->user_app_lv3); ?> </span><br/> <span class="small"><?php echo dateIndo($row->date_app_lv3); ?> </span><br/> <span class="semi-bold"></span><br/> <span class="semi-bold">(<?php echo get_user_position($row->user_app_lv3); ?> )</span> <?php } else { ?> <span class="small"></span><br/> <span class="small"></span><br/> <span class="semi-bold"></span><br/> <span class="small"></span><br/> <span class="semi-bold"></span><br/>
</label> <div class="col-sm-8"> <input type="text" placeholder="Project" name="project" value="<?php echo $det->project; ?> " class="form-control" readonly> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label" for="inputEmail3"> Tgl. Dibutuhkan </label> <div class="col-sm-8"> <input type="text" placeholder="No. Work Order" name="no" value="<?php echo dateIndo($det->tgl); ?> " class="form-control" readonly> </div> </div> </div> </div> </fieldset> <fieldset> <legend>Info Produksi</legend> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="col-sm-3 control-label" for="inputPassword3"> No. Produksi </label>