function get_title($xml, $type, $id) { $tmp = ''; if ($type != 'changset') { $tmp = get_name($xml->{$type}); } if ($tmp == '') { return $id; } else { return $tmp . "(" . $id . ")"; } }
function get_re($ids) { $result = get_table_where_order("chat", "*", "`RE_TO` = " . $ids . "", "`DATE` ASC"); if ($result->num_rows != 0) { while ($row = $result->fetch_assoc()) { $re[] = array('id' => $row["ID"], 'name' => get_name($row["OWNER_ID"]), 'text' => $row["TEXT"], 'date' => $row["DATE"], 'RE' => get_re($row["ID"])); } return $re; } else { return ""; } }
function check_ewus_ajax($id_wiz) { $id_pac = get_name('wizyty', $id_wiz, 'id_pac', 'id'); echo '<script> $(document).ready(function() { $.ajax({ url: "check_ewus_ajax.php?pac_id=' . $id_pac . '", success: function(msg){ $("#check_ewus_' . $id_wiz . '").attr("src", msg); } }); }); </script>'; }
function add_student($db, $argv) { if (sizeof($argv) == 3) { $login = $argv[2]; if (preg_match("/^[a-zA-Z]{2,6}_[a-zA-Z0-9]\$/", $login) == 1) { $collection = $db->createCollection("students"); $document = array("login" => $login, "name" => get_name(), "age" => intval(get_age()), "email" => get_email(), "phone" => get_number(), "rented_movies" => array()); $collection->insert($document); echo "[32mUser registered ![0m\n"; } else { echo "[31mError: Login invalide.\n[0m"; } } else { echo "[31mInvalid arg number!\nUsage: ./etna_movies.php login.[0m\n"; } }
function get_host() { $host = isset($_SERVER['HTTP_X_FORWARDED_HOST']) ? $_SERVER['HTTP_X_FORWARDED_HOST'] : (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : ''); //$host = $_SERVER['HTTP_HOST']; if (!empty($host)) { return $host; } $scheme = get_schema(); $name = get_name(); $port = get_port(); if ($scheme == "HTTP" && $port == 80 || $scheme == "HTTPS" && $port == 443) { return $name; } else { return $name . ':' . $port; } }
function pop_child($child, $parent, $coparent = 0) { global $_Child, $_Source, $_with, $_toolhelp_has_descendants; $name = get_name($child); $sentence = bold($_Child . ':') . conc(linked_name($child)); if ($coparent) { // illegitimate child, print coparent $sentence .= conc($_with) . conc(linked_name($coparent)); } if (has_descendants($child)) { $sentence .= conc(span_type('+', "alert", sprintf($_toolhelp_has_descendants, $child))); } $sentence = para($sentence, "name"); /* // This section has become obsolete with the addition of inline source // citations in print_bd() above. Left here because you may prefer to // document parent/child relations rather than BD events of spouses and // children, or maybe both. // print relation source(s) $handle = pg_query(" SELECT source_text FROM relation_notes WHERE note_id = ( SELECT relation_id FROM relations WHERE child_fk = $child AND parent_fk = $parent ) "); while ($row = pg_fetch_assoc($handle)) { $sentence .= para(paren($_Source . ':' . conc(ltrim($row['source_text']))), "childsource"); } */ echo $sentence; print_bd($child, 1); print_marriage($child); print_bd($child, 3); pg_query("DELETE FROM tmp_children WHERE child = {$child}"); }
<div class="row form-row"> <div class="col-md-3"> <label class="form-label text-right"><?php echo lang('name'); ?> </label> </div> <div class="col-md-9"> <?php if (is_admin()) { $style_up = 'class="select2" style="width:100%" id="emp"'; echo form_dropdown('emp', $users, '', $style_up); } else { ?> <input type="text" class="form-control" value="<?php echo get_name($sess_id); ?> " readonly> <input type="hidden" name="emp" id="emp" value="<?php echo $sess_id; ?> "> <?php } ?> </div> </div> <div class="row form-row"> <div class="col-md-3"> <label class="form-label text-right">NIK</label> </div>
foreach ($email as $row) { ?> <div class="grid-body no-border" style="min-height: 850px;"> <div class="" > <h3 id="emailheading"><?php echo $row->subject; ?> </h3> <br> <div class="control"> <div class="pull-left"> <?php echo get_name($row->sender_id); ?> <label class="inline"><span class="muted"> to</span> <span class="bold small-text"><?php echo get_name($row->receiver_id); ?> </span></label> </div> <div class="pull-right"> <span class="muted small-text"><?php echo $row->sent_on; ?> </span> </div> <div class="clearfix"></div> </div> <br> <div class="email-body"> <p><?php $button = $row->is_request_activation == 1 ? "<a href=" . site_url('email/activate/' . $row->id) . "><button type='button' class='btn btn-success'>Activate</button></a>" : '';
if (count($check) > 0) { $message = "Bạn đã add phim này rồi"; } else { $wpdb->query("INSERT INTO wp_boxfilm VALUES (0,{$filmid},{$user_id})"); $message = "Add vào hộp phim thành công"; } } else { $message = "Bạn chưa đăng nhập"; } $member = array('message' => $message); echo json_encode($member); die; } elseif ($_GET['episode_id']) { $idtap = $_GET['episode_id']; $idphim = $_GET['film_id']; $tap = get_name($idtap); if ($idtap != 0) { $member = array('html' => getlinkphim($idphim, $idtap), 'server_name' => 'vip', 'episode_name' => $tap); echo json_encode($member); die; } } elseif ($_POST['userid']) { $userid = get_current_user_id(); $q = $wpdb->get_results("SELECT box_id,box_phim FROM wp_boxfilm WHERE box_user = {$userid} "); if ($q) { foreach ($q as $box) { $html .= '<li><strike data-film-id="' . $box->box_phim . '" onclick="Phim3s.Member.removeBookmark(' . $box->box_phim . '); return false;" >Xóa</strike><a href="' . get_permalink($box->box_phim) . '" title="' . get_the_title($box->box_phim) . '">' . get_the_title($box->box_phim) . '</a></li>'; } } $member = array('json' => '<ul class="bookmarklist">' . $html . '</ul>'); echo json_encode($member);
</div> <?php } elseif ($is_app == 1) { $approved = assets_url('img/approved_stamp.png'); $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
<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 } 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 }
* Copyright 2012, 7 Media Web Solutions, LLC (http://www.7mediaws.org/) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2012, 7 Media Web Solutions, LLC (http://www.7mediaws.org/) * @link http://tinyphp.us/ tinyPHP(tm) Project * @since tinyPHP(tm) v 1.0.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ use tinyPHP\Classes\Libraries\ACL; $eRole = new ACL(); ?> <h1><?php echo get_name(_h($this->role[0]['userID'])); ?> <?php echo _t('Role: Edit'); ?> </h1> <form class="form-horizontal margin-none" action="<?php echo BASE_URL; ?> user/runRolePerm/" id="validateSubmitForm" method="post" autocomplete="off"> <!-- Table --> <table class="dynamicTable tableTools table table-striped table-bordered table-condensed table-white"> <!-- Table heading --> <thead>
<?php if ($td->is_app_hrd == 0 && $this->approval->approver('dinas') == $sess_nik) { ?> <button id="btn_app_hrd" class="btn btn-success btn-cons" data-loading-text="Loading..."><i class="icon-ok"></i>Submit</button> <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/>
echo _t('Section Info'); ?> </h3> </div> <!-- // Modal heading END --> <!-- Modal body --> <div class="modal-body"> <table> <tr> <td><strong><?php echo _t('Instructor:'); ?> </strong></td> <td><?php echo get_name(_h($v['facID'])); ?> </td> </tr> <tr> <td><strong><?php echo _t('Description:'); ?> </strong></td> <td><?php echo _escape($v['courseDesc']); ?> </td> </tr> <tr> <td><strong><?php
</button> </div> </div> </div> </div> <!-- // Group END --> <!-- Group --> <div class="form-group"> <label class="col-md-3 control-label"><?php echo _t('Approved By'); ?> </label> <div class="col-md-6"> <input type="text" readonly class="form-control" value="<?php echo _h(get_name($sacp[0]['approvedBy'])); ?> " /> </div> </div> <!-- // Group END --> <!-- Group --> <div class="form-group"> <label class="col-md-3 control-label"><?php echo _t('Last Update'); ?> </label> <div class="col-md-6"> <input type="text" readonly class="form-control" value="<?php echo date('D, M d, o @ h:i A', strtotime(_h($sacp[0]['LastUpdate'])));
/** * Change of Address Email * * Function used to send change of address to * appropriate staff member. * * @since 6.2.11 */ function etsis_nodeq_change_address() { $app = \Liten\Liten::getInstance(); $email = _etsis_email(); $host = $app->req->server['HTTP_HOST']; $site = _t('myeduTrac :: ') . _h(get_option('institution_name')); // Creates node's schema if does not exist. Node::dispense('change_address'); try { $sql = Node::table('change_address')->where('sent', '=', 0)->findAll(); if ($sql->count() == 0) { Node::table('change_address')->delete(); } $numItems = $sql->count(); $i = 0; if ($sql->count() > 0) { foreach ($sql as $r) { $message = _escape(get_option('coa_form_text')); $message = str_replace('#uname#', _h($r->uname), $message); $message = str_replace('#fname#', _h($r->fname), $message); $message = str_replace('#lname#', _h($r->lname), $message); $message = str_replace('#name#', get_name(_h($r->personid)), $message); $message = str_replace('#id#', _h($r->personid), $message); $message = str_replace('#address1#', _h($r->address1), $message); $message = str_replace('#address2#', _h($r->address2), $message); $message = str_replace('#city#', _h($r->city), $message); $message = str_replace('#state#', _h($r->state), $message); $message = str_replace('#zip#', _h($r->zip), $message); $message = str_replace('#country#', _h($r->country), $message); $message = str_replace('#phone#', _h($r->phone), $message); $message = str_replace('#email#', _h($r->email), $message); $message = str_replace('#adminemail#', _h(get_option('system_email')), $message); $message = str_replace('#url#', get_base_url(), $message); $message = str_replace('#helpdesk#', _h(get_option('help_desk')), $message); $message = str_replace('#currentterm#', _h(get_option('current_term_code')), $message); $message = str_replace('#instname#', _h(get_option('institution_name')), $message); $message = str_replace('#mailaddr#', _h(get_option('mailing_address')), $message); $headers = "From: {$site} <auto-reply@{$host}>\r\n"; $headers .= "X-Mailer: PHP/" . phpversion(); $headers .= "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; $email->etsis_mail(_h(get_option('contact_email')), _t('Change of Address Request'), $message, $headers); $upd = Node::table('change_address')->find(_h($r->id)); $upd->sent = 1; $upd->save(); if (++$i === $numItems) { //If we reach the last item, send user a desktop notification. etsis_push_notify('Change of Address', 'Request has been submitted.'); } } } } catch (\Exception $e) { return new \app\src\Core\Exception\Exception($e->getMessage(), 'NodeQ'); } }
function form_resignment_pdf($id) { if (!$this->ion_auth->logged_in()) { redirect('auth/login', 'refresh'); } $sess_id = $this->data['sess_id'] = $this->session->userdata('user_id'); $user_id = getValue('user_id', 'users_resignment', array('id' => 'where/' . $id)); $this->data['user_nik'] = get_nik($user_id); $form_resignment = $this->data['form_resignment'] = $this->form_resignment_model->form_resignment($id)->result(); $this->data['_num_rows'] = $this->form_resignment_model->form_resignment($id)->num_rows(); $this->data['approval_status'] = GetAll('approval_status', array('is_deleted' => 'where/0')); $this->data['id'] = $id; $title = $this->data['title'] = 'Form Karyawan Keluar-' . get_name($user_id); $this->load->library('mpdf60/mpdf'); $html = $this->load->view('resignment_pdf', $this->data, true); $mpdf = new mPDF(); $mpdf = new mPDF('A4'); $mpdf->WriteHTML($html); $mpdf->Output($id . '-' . $title . '.pdf', 'I'); }
?> </a></li> <li class="divider"></li> <li><a href="<?php echo get_base_url(); ?> stu/<?php echo bm(); ?> " class="glyphicons search"><i></i> <?php echo _t('Search Student'); ?> </a></li> <li class="divider"></li> <li><?php echo get_name(_h($stu->stuID)); ?> <?php echo _t('(SPRO)'); ?> </li> </ul> <div class="innerLR"> <?php get_stu_header(_h($stu->stuID)); ?> <div class="separator line bottom"></div>
</tr> </thead> <tbody> <?php if (!empty($detail_hrd)) { $total = $detail_hrd[0]['rupiah']; for ($i = 0; $i < sizeof($detail_hrd); $i++) { $is_approve = $detail_hrd[$i]['is_approve'] == 1 ? 'Ya' : 'Tidak'; ?> <tr> <td><?php echo get_nik($detail_hrd[$i]['karyawan_id']); ?> </td> <td><?php echo get_name($detail_hrd[$i]['karyawan_id']); ?> </td> <td><?php echo $detail_hrd[$i]['pasien']; ?> </td> <td><?php echo $detail_hrd[$i]['hubungan']; ?> </td> <td><?php echo $detail_hrd[$i]['jenis']; ?> </td> <td><?php
<div class="tab-content"> <div class="tab-pane active" id="view" active> <div class="row"> <div class="col-md-6"> <!-- Profile Image --> <div class="box box-primary"> <div class="box-body box-profile"> <img class="profile-user-img img-responsive img-circle" src="<?php echo $dp_name; ?> " alt="User profile picture" style="height: 110px; width: 110px;"> <h3 class="profile-username text-center"><?php echo get_name($user_id); ?> </h3> <p class="text-muted text-center"><?php $dept = getuserfield_academics('dept_id', $user_id); echo getdept('dept_name', $dept); ?> </p> <!-- <ul class="list-group list-group-unbordered"> <li class="list-group-item"> <b>Followers</b> <a class="pull-right">1,322</a> </li> <li class="list-group-item"> <b>Following</b> <a class="pull-right">543</a> </li>
<div class="text-center"> <h3> <?php echo "Welcome, " . get_name($_SESSION['id']); ?> </h3> <br /> Select a link in the navbar to get started. <br> If this is your first time using the website, <br> change your password and read the manual <br> by clicking the buttons below!. <br> <br> <br> <a type="button" class="btn btn-default" href="help.php">Read Manual</a> <br> <br> <a type="button" class="btn btn-default" href="change-password.php">Change Password</a> </div>
function send_spd_report_mail($spd_id, $receiver_id) { $sess_id = $this->session->userdata('user_id'); $url = base_url() . 'form_spd_dalam_group/report_detail/' . $spd_id . '/' . $sess_id; $sender = !empty(get_nik($sess_id)) ? get_nik($sess_id) : $sess_id; $data = array('sender_id' => $sender, 'receiver_id' => $receiver_id, 'sent_on' => date('Y-m-d-H-i-s', strtotime('now')), 'subject' => 'Laporan Tugas Perjalanan Dinas Dalam Kota (group)', 'email_body' => get_name($sender) . ' telah membuat laporan perjalanan dinas Dalam Kota (group), untuk melihat detail silakan <a class="klikmail" href=' . $url . '>Klik Disini</a><br/>' . $this->detail_email_report($spd_id, $sess_id), 'is_read' => 0); $this->db->insert('email', $data); }
function x() { $name = get_name(); new $name(); }
<?php if ($user->is_app_hrd == 0 && $this->approval->approver('training') == $sess_nik) { ?> <div class="btn btn-success btn-cons" id="" type="" data-toggle="modal" data-target="#submittrainingModalHrd"><i class="icon-ok"></i>Submit</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 ($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/>
* Action will print a form field or any type of data * on the right side of the CRSE screen. * * @since 6.1.10 */ do_action('right_crse_new_form'); ?> <!-- Group --> <div class="form-group"> <label class="col-md-3 control-label"><?php echo _t('Approval Person'); ?> </label> <div class="col-md-6"><input class="form-control" type="text" readonly value="<?php echo get_name(get_persondata('personID')); ?> " /></div> </div> <!-- // Group END --> <!-- Group --> <div class="form-group"> <label class="col-md-3 control-label"><?php echo _t('Approval Date'); ?> </label> <div class="col-md-6"><input class="form-control" type="text" readonly value="<?php echo date('D, M d, o', strtotime(date('Y-m-d'))); ?> " /></div>
$wrt = '<table border="0" cellspacing="0" cellpadding="0" width="100%">'; $wrt .= '<tr><th class="left ft_head font_m">Ship</th><th class="left ft_head font_m">Attacker</th><th class="left ft_head font_m">Damage</th></tr>'; foreach ($att as $attacker) { //$dmgDone = number_format((double)$value['damageDone']); if ($evenOdd) { $odder = "even"; $splitter = false; } else { $odder = "odd"; $splitter = true; } $evenOdd = !$evenOdd; if ($attacker['fb'] == true) { $fb = '_fb'; } else { $fb = ''; } $wrt .= '<tr>'; $wrt .= '<td class="left font_s tcell' . $odder . '">' . ldimg($attacker['ship'], 'type', 'left', 'kb_border' . $fb . '', '32') . '' . get_name($attacker['ship']) . '<br />' . get_name($attacker['wpn_id']) . '</td>'; if (!empty($attacker['all_name'])) { $alli = '<a onclick="CCPEVE.showInfo(16159, ' . $attacker['all_id'] . ')" href="#">' . $attacker['all_name'] . '</a>'; } else { $alli = ''; } $wrt .= '<td class="left font_s tcell' . $odder . '">' . ldimg($attacker['plt_id'], 'char', 'left', 'kb_border' . $fb . '') . '<a onclick="CCPEVE.showInfo(1377, ' . $attacker['plt_id'] . ')" href="#">' . $attacker['plt_name'] . '</a><br /><a onclick="CCPEVE.showInfo(2, ' . $attacker['crp_id'] . ')" href="#">' . $attacker['crp_name'] . '</a><br />' . $alli . '</td>'; $wrt .= '<td class="left font_s tcell' . $odder . '">' . number_format((double) $attacker['dmgdone']) . '<br />' . percent($attacker['dmgdone'], $perc['SUM(dmgdone)']) . '%</td>'; $wrt .= '</tr>'; } $wrt .= '</table>'; echo $wrt; }
/** FINALIZE UPDATE FIRMWARE TASK * * @param $tid - TASK ID * @param $status - TASK STATUS (STOPPED - PERFORMED) * **/ function finalize_mesh($tid, $status) { //global $log; //$log->info('Task #'.$tid.' mesh '.$status); //$log->info('Task #'.$tid.' start finalizing'); //LOAD DB $db = new Database(); //GET TASK $task = $db->query('select * from sys_tasks where id=' . $tid); //GET TASK ATTRIBUTES $attributes = json_decode($task['attributes'], TRUE); //MOVE OUTPUT FILE TO OBJECT FOLDER $_id_object = $attributes['id_object']; $id_file = $attributes['id_new_file']; $_output = $attributes['output']; $_output_file_name = get_name($_output); $_output_extension = get_file_extension($_output); $_output_folder_destination = '/var/www/upload/' . str_replace('.', '', $_output_extension) . '/'; $_output_file_name = set_filename($_output_folder_destination, $_output_file_name); // MOVE TO FINALLY FOLDER shell_exec('sudo cp ' . $_output . ' ' . $_output_folder_destination . $_output_file_name); // ADD PERMISSIONS shell_exec('sudo chmod 746 ' . $_output_folder_destination . $_output_file_name); // INSERT RECORD TO DB $data_file['file_name'] = $_output_file_name; $data_file['file_path'] = $_output_folder_destination; $data_file['full_path'] = $_output_folder_destination . $_output_file_name; $data_file['raw_name'] = str_replace($_output_extension, '', $_output_file_name); $data_file['client_name'] = str_replace($_output_extension, '', $_output_file_name); $data_file['orig_name'] = $_output_file_name; $data_file['file_ext'] = $_output_extension; $data_file['file_size'] = filesize($_output_folder_destination . $_output_file_name); $data_file['print_type'] = print_type($_output_folder_destination . $_output_file_name); $data_file['note'] = 'Reconstructed on ' . date("F j, Y, g:i a"); $data_file['insert_date'] = 'now()'; $data_file['file_type'] = 'application/octet-stream'; // ADD TASK RECORD TO DB $db->update('sys_files', array('column' => 'id', 'value' => $id_file, 'sign' => '='), $data_file); // ADD ASSOCIATION OBJ FILE $data['id_obj'] = $_id_object; $data['id_file'] = $id_file; $id_ass = $db->insert('sys_obj_files', $data); $db->close(); //UPDATE TASK update_task($tid, $status); sleep(10); //REMOVE ALL TEMPORARY FILES shell_exec('sudo rm -rf ' . $attributes['folder']); //$log->info('Task #'.$tid.' end finalizing'); }
<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 class="btn btn-success btn-cons" id="" type="" data-toggle="modal" data-target="#submitpromosiModalLv3"><i class="icon-ok"></i>Submit</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">(<?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/>
function get_name_r($type) { $name = get_name($type, 'blog'); if ($name) { return $name . ':'; } }