query("INSERT INTO system_post (post_type, post_categories, post_date, post_modified) VALUES ('hr-position', 'hr-position', '".TODAYDATE."', '".TODAYDATE."')"); $last_id = $mysqli->insert_id; } // start header here include 'requires/page_header.php'; include 'requires/page_top.php'; ?>
query("SELECT * FROM system_post WHERE post_id = '".$page."' AND post_type = 'hr-position' AND post_categories = 'hr-position' LIMIT 1"); if ($mysqli_page->num_rows > 0){ // update database if (isset($type) && $type == 'edit' && $_POST['hide'] == 1){ // keep value in variable $page_title = escapeString($_POST['title']) ; $page_title = ($page_title != '' ? $page_title : 'No Title') ; $apply_to_form = escapeString($_POST['apply_to_form']) ; // check if name already exists. $check_status = checkTitle($page_title, $page) ; $title = $check_status['title'] ; $status = $check_status['status'] ; // update database $mysqli->query("UPDATE system_post SET post_title = '".$page_title."', post_status = '".$status."', post_link = '".$title."', ".$image_query." post_modified = '".TODAYDATE."', post_trash = '0' WHERE post_id = '".$page."'") ; // refresh page header("Location:hr-position.php?page_mode=edit&page=".$page."&success=1") ; exit ; } // start header here include 'requires/page_header.php'; include 'requires/page_top.php'; // keep query value in array $row_page = $mysqli_page->fetch_array(MYSQLI_ASSOC) ; ?>
0){ foreach($sortable as $key => $value){ $mysqli->query("UPDATE system_post SET post_order = '".$value."' WHERE post_id = '".$key."'") ; } } // trash item switch($_POST['page_action']){ case 'trash': $mysqli_query = "UPDATE " . system_post . " SET post_trash = '1' WHERE post_id = " ; $trash_page = trashPage('post', $mysqli, $mysqli_query, $_POST['multiple_trash']) ; break; } } // pagination if (isset($page) && !empty($page)) { $product_page = $page ; } else { $product_page = 1 ; } // next and prev page (5 thing need to change) $start_from = ($product_page - 1) * LIMIT ; //end next and prev page // set search url $search_url = 'search='.$search ; // page query $mysqli_query = "SELECT * FROM system_post WHERE post_title != '' AND post_type = 'hr-position' AND post_categories = 'hr-position' AND post_trash = '0'".$search_query ; $mysqli_page = $mysqli->query($mysqli_query." ORDER BY post_order LIMIT $start_from, " . LIMIT) ; // load pagination $page_pagination = nextPrevious($product_page, LIMIT, $search_url, $mysqli_query); // start header here include 'requires/page_header.php'; include 'requires/page_top.php'; ?>
num_rows > 0){ while ($row_page = $mysqli_page->fetch_array(MYSQLI_ASSOC)){ // title $title = dataFilter($row_page['post_title']) ; echo ' '; } }else{ echo ' ' ; } ?>
'.$title.' '.date('d M Y', strtotime($row_page['post_date'])).'
'.$lang['no_data'].'