本文整理汇总了PHP中get_meta_details函数的典型用法代码示例。如果您正苦于以下问题:PHP get_meta_details函数的具体用法?PHP get_meta_details怎么用?PHP get_meta_details使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_meta_details函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: index
public function index()
{
extract($this->input->get());
$this->form_validation->set_error_delimiters('<p>', '</p>');
if ($this->input->post('book_it_button')) {
if ($this->input->post('payment_method') == 'cc') {
$this->submissionCC();
} else {
if ($this->input->post('payment_method') == 'paypal') {
$this->submission($room_id);
} else {
if ($this->input->post('payment_method') == '2c') {
$this->submissionTwoc();
} else {
redirect('info');
}
}
}
}
$data['id'] = $this->session->userdata('Lid');
$data['amt'] = $this->session->userdata('amount');
$data['full_cretids'] = 'off';
$data['result'] = $this->Common_model->getTableData('payments')->result();
$data['title'] = get_meta_details('Payment_Option', 'title');
$data["meta_keyword"] = get_meta_details('Payment_Option', 'meta_keyword');
$data["meta_description"] = get_meta_details('Payment_Option', 'meta_description');
$data['message_element'] = "payments/view_listPay";
$this->load->view('template', $data);
}
示例2: cancellation_policy
public function cancellation_policy()
{
$data['title'] = get_meta_details('cancellation_policy', 'title');
$data["meta_keyword"] = get_meta_details('cancellation_policy', 'meta_keyword');
$data["meta_description"] = get_meta_details('cancellation_policy', 'meta_description');
$data['message_element'] = 'view_cancellation_policy';
$this->load->view('template', $data);
}
示例3: users_wishlist
public function users_wishlist()
{
$data['title'] = get_meta_details('wish_list', 'title');
$data["meta_keyword"] = $this->Common_model->getTableData('settings', array('code' => 'META_KEYWORD'))->row()->string_value;
$data["meta_description"] = $this->Common_model->getTableData('settings', array('code' => 'META_DESCRIPTION'))->row()->string_value;
$data['message_element'] = "wishlist/view_users_wishlist";
$this->load->view('template', $data);
}
示例4: deny
public function deny()
{
$data['title'] = get_meta_details('Access_Deny', 'title');
$data["meta_keyword"] = get_meta_details('Access_Deny', 'meta_keyword');
$data["meta_description"] = get_meta_details('Access_Deny', 'meta_description');
$data['message_element'] = 'view_deny';
$this->load->view('template', $data);
}
示例5: cancellation_policy
public function cancellation_policy()
{
$data['title'] = get_meta_details('cancellation_policy', 'title');
$data["meta_keyword"] = get_meta_details('cancellation_policy', 'meta_keyword');
$data["meta_description"] = get_meta_details('cancellation_policy', 'meta_description');
$data['cancellationDetails'] = $this->Common_model->getTableData('cancellation_policy');
$data['cancellation_standard'] = $this->Common_model->getTableData('cancellation_policy', array('is_standard' => "1"));
$data['message_element'] = 'view_cancellation_policy';
$this->load->view('template', $data);
}
示例6: view_statistics_graph
public function view_statistics_graph()
{
$room_id = $this->uri->segment(3);
$conditions = array("list_id" => $room_id);
$data['results'] = $this->Common_model->get_statistics($conditions);
$check = $this->db->where('id', $room_id)->get('list');
if ($check->num_rows() == 0) {
redirect('info');
}
$data['title'] = get_meta_details('Statistics', 'title');
$data["meta_keyword"] = get_meta_details('Statistics', 'meta_keyword');
$data["meta_description"] = get_meta_details('Statistics', 'meta_description');
$data['message_element'] = 'statistics/view_statistics';
$this->load->view('template', $data);
}
示例7: inbox
public function inbox()
{
if ($this->dx_auth->is_logged_in() || $this->facebook_lib->logged_in()) {
$conditions = array("messages.userto " => $this->dx_auth->get_user_id());
$data['messages'] = $this->Message_model->get_messages($conditions, NULL, array('messages.id', 'desc'));
//var_dump($data['messages']); exit;
$data['title'] = get_meta_details('Inbox', 'title');
$data["meta_keyword"] = get_meta_details('Inbox', 'meta_keyword');
$data["meta_description"] = get_meta_details('Inbox', 'meta_description');
$data['message_element'] = 'message/inbox';
$this->load->view('template', $data);
} else {
redirect('users/signin');
}
}
示例8: form
//.........这里部分代码省略.........
$total_price = get_currency_value1($id, $total_price) + $days * get_currency_value1($id, $xprice->addguests) * $diff_guests;
$data['extra_guest_price'] = get_currency_value1($id, $xprice->addguests) * $diff_guests;
}
// print_r($data['subtotal']);
// $data['avg_price'] = $data['subtotal']/$days;
//price
if ($is_seasonal == 1) {
$data['avg_price'] = $data['subtotal'] / ($days + 1);
} else {
$data['price'] = $xprice->night;
}
//price
//print_r($data['avg_price']);
//Cleaning
if ($cleaning != 0) {
$cleaning_price = get_currency_value1($id, $cleaning);
$total_price = $total_price + get_currency_value1($id, $cleaning);
}
if ($security != 0) {
$total_price = $total_price + get_currency_value1($id, $security);
}
//Admin Commission
//$data['commission'] = 0;
}
if ($is_seasonal == 1) {
//Total days
$days = $total_nights;
//Final price
$data['avg_price'] = ($total_price - $data['security'] - $data['cleaning']) / ($days - 1);
// $data['avg_price'] = get_currency_value1($id,$total_price)/($days-1);
if ($contact_key != '') {
$amt = $data['subtotal'];
$total_price = $amt;
} else {
$amt = $data['avg_price'];
}
$query = $this->Common_model->getTableData('paymode', array('id' => 2));
$row = $query->row();
if ($row->is_premium == 1) {
if ($row->is_fixed == 1) {
$fix = $row->fixed_amount;
$amt = $amt + get_currency_value_lys($row->currency, get_currency_code(), $fix);
$data['commission'] = get_currency_value_lys($row->currency, get_currency_code(), $fix);
} else {
$per = $row->percentage_amount;
$percentage = $per / 100;
$amount = $total_price * $percentage;
$data['commission'] = $amount;
/* $per = $row->percentage_amount;
$camt = floatval(($data['avg_price'] * $per) / 100);
//print_r($camt);
$amt = $amt + $camt;
// print_r($amt);
$data['commission'] = round($camt,2);
//print_r($data['commission']);*/
}
} else {
$amt = $amt;
}
if ($this->session->userdata('coupon_code_used') == 1) {
if ($contact_key != '') {
//echo "success";
$total_price = $amt + $this->session->userdata("coupon_amt");
$data['subtotal'] = $total_price - $this->session->userdata("coupon_amt");
$data['amt'] = $data['subtotal'] + $data['commission'];
// $amt=$data['amt']+$cleaning+$security+$data['commission'];
$amt = $data['amt'];
$this->session->set_userdata('topay', $amt);
} else {
$amt = $amt - $this->session->userdata("coupon_amt");
$data['subtotal'] = $total_price - $this->session->userdata("coupon_amt");
$data['amt'] = $data['subtotal'] + $data['commission'];
// $amt=$data['amt']+$cleaning+$security+$data['commission'];
$amt = $data['amt'];
// print_r($amt);
$this->session->set_userdata('topay', $amt);
}
} else {
$data['subtotal'] = $total_price;
//print_r($data['subtotal']);
//$data['amt'] = $data['avg_price'] * ($days-1)+$cleaning+$security+$data['commission'];
$data['amt'] = $total_price + $data['commission'];
$amt = $data['amt'];
// $amt; exit;
$this->session->set_userdata('topay', $amt);
}
}
//$data['subtotal']= $data['subtotal']+$cleaning_price;
$data['amt'] = round($amt, 2);
$data['policy'] = $this->Common_model->getTableData('cancellation_policy', array('id' => $list->cancellation_policy))->row()->name;
// Advertisement popup 1 start
$data['PagePopupContent'] = GetPagePopupContent('step2');
// Advertisement popup 1 end
$data['countries'] = $this->Common_model->getCountries()->result();
$data['title'] = get_meta_details('Confirm_your_booking', 'title');
$data["meta_keyword"] = get_meta_details('Confirm_your_booking', 'meta_keyword');
$data["meta_description"] = get_meta_details('Confirm_your_booking', 'meta_description');
$data['message_element'] = "payments/view_booking";
$this->load->view('template', $data);
}
示例9: response
public function response($param = '')
{
if (isset($param)) {
$contact_id = $param;
$conditions = array('contacts.id' => $contact_id, 'contacts.userby' => $this->dx_auth->get_user_id());
$result = $this->Contacts_model->get_contacts($conditions);
if ($result->num_rows() == 0) {
redirect('info');
}
$data['result'] = $result->row();
$list_id = $data['result']->list_id;
$key = $data['result']->contact_key;
$data['list'] = $this->Common_model->getTableData('list', array('id' => $list_id))->row()->title;
$no_quest = $data['result']->no_quest;
$data['no_quest'] = $no_quest;
$x = $this->Common_model->getTableData('price', array('id' => $list_id));
$data['per_night'] = $price = $x->row()->night;
$data['send_date'] = $result->row()->send_date;
$data['cleaning'] = $result->row()->cleaning;
$data['security'] = $result->row()->security;
$checkin = $data['result']->checkin;
$data['checkin'] = $checkin;
$checkout = $data['result']->checkout;
$data['checkout'] = $checkout;
$diff = abs(strtotime($checkout) - strtotime($checkin));
$data['nights'] = $days = floor($diff / (60 * 60 * 24));
$data['subtotal'] = $result->row()->price;
$data['status'] = $this->Common_model->getTableData('contacts', array('id' => $data['result']->id))->row()->status;
if ($data['status'] == 4) {
$data['message'] = $this->Common_model->getTableData('messages', array('contact_id' => $data['result']->id, 'message_type' => '8'))->row()->message;
} else {
$data['message'] = $this->Common_model->getTableData('messages', array('contact_id' => $data['result']->id, 'message_type' => '8'))->row()->message;
}
$data['url'] = base_url() . "payments/form/" . $list_id . "?contact=" . $key;
$data['status'] = $this->Common_model->getTableData('contacts', array('id' => $data['result']->id))->row()->status;
$data['commission'] = $result->row()->admin_commission;
$data['total_payout'] = $amt;
$data['totalprice'] = round($result->row()->price + $data['commission']);
$data['title'] = get_meta_details('Contact_Request', 'title');
$data["meta_keyword"] = get_meta_details('Contact_Request', 'meta_keyword');
$data["meta_description"] = get_meta_details('Contact_Request', 'meta_description');
$data['message_element'] = 'contacts/response';
$this->load->view('template', $data);
} else {
redirect('info');
}
}
示例10: add_my_shortlist
public function add_my_shortlist()
{
if (!$this->dx_auth->is_logged_in() && !$this->facebook_lib->logged_in()) {
$this->session->set_userdata('redirect_to', base_url() . 'rooms/add_my_shortlist/' . $this->uri->segment(3));
redirect('users/signin');
} else {
$list_id = $this->uri->segment(3);
$user_id = $this->dx_auth->get_user_id();
$shortlist = $this->Common_model->getTableData('users', array('id' => $this->dx_auth->get_user_id()))->row()->shortlist;
if ($shortlist == "") {
$data = array('shortlist' => $list_id);
$this->db->where('id', $user_id);
$this->db->update('users', $data);
} else {
$my_shortlist = $shortlist . ',' . $list_id;
$data = array('shortlist' => $my_shortlist);
$this->db->where('id', $user_id);
$this->db->update('users', $data);
}
redirect('account/mywishlist');
$shortlist = $this->Common_model->getTableData('users', array('id' => $this->dx_auth->get_user_id()))->row()->shortlist;
//Remove the selected list from the All short lists
$result = "";
$my = explode(',', $shortlist);
foreach ($my as $list) {
if ($list != $list_id) {
$result .= $list . ",";
}
}
//Remove Comma from last character
if (substr($result, -1) == ',') {
$my_shortlist = substr_replace($result, "", -1);
} else {
$my_shortlist = $result;
}
$data['title'] = get_meta_details('My Wishlist', 'title');
$data["meta_keyword"] = get_meta_details('My Wishlist', 'meta_keyword');
$data["meta_description"] = get_meta_details('My Wishlist', 'meta_description');
$data['message_element'] = "account/view_wishlist";
$this->load->view('template', $data);
}
}
示例11: form
//.........这里部分代码省略.........
$array_items = array('list_id' => '', 'Lcheckin' => '', 'Lcheckout' => '', 'number_of_guests' => '', 'formCheckout' => '');
$this->session->unset_userdata($array_items);
//$id = $list_id;
$checkin_time = get_gmt_time(strtotime($checkin));
$checkout_time = get_gmt_time(strtotime($checkout));
$travel_dates = array();
$seasonal_prices = array();
$total_nights = 1;
$total_price = 0;
$is_seasonal = 0;
$i = $checkin_time;
while ($i < $checkout_time) {
$checkin_date = date('m/d/Y', $i);
$checkin_date = explode('/', $checkin_date);
$travel_dates[$total_nights] = $checkin_date[1] . $checkin_date[0] . $checkin_date[2];
$i = get_gmt_time(strtotime('+1 day', $i));
$total_nights++;
}
for ($i = 1; $i < $total_nights; $i++) {
$seasonal_prices[$travel_dates[$i]] = "";
}
//Store seasonal price of a list in an array
$seasonal_query = $this->Common_model->getTableData('seasonalprice', array('list_id' => $id));
$seasonal_result = $seasonal_query->result_array();
if ($seasonal_query->num_rows() > 0) {
foreach ($seasonal_result as $time) {
//Get Seasonal price
$seasonalprice_query = $this->Common_model->getTableData('seasonalprice', array('list_id' => $id, 'start_date' => $time['start_date'], 'end_date' => $time['end_date']));
$seasonalprice = $seasonalprice_query->row()->price;
//Days between start date and end date -> seasonal price
$start_time = $time['start_date'];
$end_time = $time['end_date'];
$i = $start_time;
while ($i <= $end_time) {
$start_date = date('m/d/Y', $i);
$s_date = explode('/', $start_date);
$s_date = $s_date[1] . $s_date[0] . $s_date[2];
$seasonal_prices[$s_date] = $seasonalprice;
$i = get_gmt_time(strtotime('+1 day', $i));
}
}
//Total Price
for ($i = 1; $i < $total_nights; $i++) {
if ($seasonal_prices[$travel_dates[$i]] == "") {
$xprice = $this->Common_model->getTableData('price', array('id' => $id))->row();
$total_price = $total_price + $xprice->night;
} else {
$total_price = $total_price + $seasonal_prices[$travel_dates[$i]];
$is_seasonal = 1;
}
}
//Additional Guests
if ($data['guests'] > $guests) {
$days = $total_nights - 1;
$diff_guests = $data['guests'] - $guests;
$total_price = $total_price + $days * $xprice->addguests * $diff_guests;
}
//Cleaning
if ($cleaning != 0) {
$total_price = $total_price + $cleaning;
}
//Admin Commission
//$data['commission'] = 0;
}
if ($is_seasonal == 1) {
//Total days
$days = $total_nights;
//Final price
$data['subtotal'] = $total_price;
$data['avg_price'] = $total_price / ($days - 1);
//echo $data['avg_price'];exit;
$amt = $data['subtotal'];
$query = $this->Common_model->getTableData('paymode', array('id' => 2));
$row = $query->row();
if ($row->is_premium == 1) {
if ($row->is_fixed == 1) {
$fix = $row->fixed_amount;
$amt = $amt + $fix;
$data['commission'] = $fix;
} else {
$per = $row->percentage_amount;
$camt = floatval($amt * $per / 100);
$amt = $amt + $camt;
$data['commission'] = $camt;
}
} else {
$amt = $amt;
}
$data['amt'] = $amt;
$this->session->set_userdata('topay', $amt);
}
$data['img'] = getListImage($id);
$data['env'] = 'mobile';
$data['countries'] = $this->Common_model->getCountries()->result();
$data['title'] = get_meta_details('Confirm_your_booking', 'title');
$data["meta_keyword"] = 'mobile';
$data["meta_description"] = get_meta_details('Confirm_your_booking', 'meta_description');
$data['message_element'] = "payments/view_booking";
$this->load->view('template', $data);
}
示例12: settings
function settings()
{
if ($this->dx_auth->is_logged_in() || $this->facebook_lib->logged_in()) {
$data['title'] = get_meta_details('Setting', 'title');
$data["meta_keyword"] = get_meta_details('Setting', 'meta_keyword');
$data["meta_description"] = get_meta_details('Setting', 'meta_description');
$data['message_element'] = "account/setting";
$this->load->view('template', $data);
} else {
redirect(base_url());
}
}
示例13: billing
public function billing($param = '')
{
if (isset($param)) {
$reservation_id = $param;
$conditions = array('reservation.id' => $reservation_id, 'reservation.userby' => $this->dx_auth->get_user_id());
$result = $this->Trips_model->get_reservation($conditions);
if ($result->num_rows() == 0) {
redirect('info');
}
$data['result'] = $result->row();
$list_id = $data['result']->list_id;
$no_quest = $data['no_quest'] = $data['result']->no_quest;
$x = $this->Common_model->getTableData('price', array('id' => $list_id));
$data['per_night'] = $price = $x->row()->night;
$diff = $data['result']->checkout - $data['result']->checkin;
$data['nights'] = $days = ceil($diff / (3600 * 24));
$amt = $data['subtotal'] = $result->row()->topay;
$data['commission'] = 0;
$data['policy'] = $this->Common_model->getTableData('cancellation_policy', array('id' => $result->row()->policy))->row()->name;
//check admin premium condition and apply so for
$query = $this->Common_model->getTableData('paymode', array('id' => 3));
$row = $query->row();
$data['cleaning'] = $result->row()->cleaning;
$data['security'] = $result->row()->security;
$guests = $result->row()->no_quest;
/* if($guests > $result->row()->guest_count)
{
$diff_days = $guests - $result->row()->guest_count;
$data['extra_guest_price'] = $result->row()->extra_guest_price * $diff_days;
$data['per_night'] = $result->row()->topay-$result->row()->cleaning-$result->row()->security-$data['extra_guest_price'];
}
else
{
$data['per_night'] = $result->row()->topay-$result->row()->cleaning-$result->row()->security;
} */
/*
//*if($row->is_premium == 1)
{
if($row->is_fixed == 1)
{
$fix = $row->fixed_amount;
$amt = $amt - $fix;
$data['commission'] = $amt ;
}
else
{
$per = $row->percentage_amount;
$camt = floatval(($amt * $per) / 100);
$amt = $amt - $camt;
$data['commission'] = $camt ;
}
}
else
{*/
$amt = $amt;
// }
$data['total_payout'] = $amt;
$data['title'] = get_meta_details('Reservation_Request', 'title');
$data["meta_keyword"] = get_meta_details('Reservation_Request', 'meta_keyword');
$data["meta_description"] = get_meta_details('Reservation_Request', 'meta_description');
$data['message_element'] = 'trips/request_traveller';
$this->load->view('template', $data);
} else {
redirect('info');
}
}
示例14: change_status
public function change_status()
{
if ($this->dx_auth->is_logged_in() || $this->facebook_lib->logged_in()) {
$sow_hide = $this->input->get('stat');
$row_id = $this->input->get('rid');
if ($sow_hide == 1) {
$condition = array("id" => $row_id);
$data['status'] = 0;
$this->Common_model->updateTableData('list', NULL, $condition, $data);
$this->session->set_flashdata('flash_message', $this->Common_model->flash_message('success', translate('Status change successfully.')));
redirect('hosting');
} else {
$condition = array("id" => $row_id);
$data['show_or_hide'] = 1;
$this->Common_model->updateTableData('list', NULL, $condition, $data);
$this->session->set_flashdata('flash_message', $this->Common_model->flash_message('success', translate('Status change successfully.')));
redirect('hosting');
}
$data['title'] = get_meta_details('Manage_Listings', 'title');
$data["meta_keyword"] = get_meta_details('Manage_Listings', 'meta_keyword');
$data["meta_description"] = get_meta_details('Manage_Listings', 'meta_description');
$data['message_element'] = "hosting/view_hosting";
$this->load->view('template', $data);
} else {
redirect('users/signin');
}
}
示例15: inbox
//.........这里部分代码省略.........
$this->db->limit($data['row_count'], $data['offset']);
$conditions = array("messages.userto " => $this->dx_auth->get_user_id(), "messages.is_respond" => 0, "messages.is_archived" => 0);
$data['messages'] = $this->Message_model->get_messages($conditions, NULL, array('messages.id', 'desc'));
// Pagination config
$p_config['base_url'] = site_url('message/inbox?type=' . $type);
$p_config['uri_segment'] = 4;
$p_config['num_links'] = 5;
$p_config['total_rows'] = $query->num_rows();
$p_config['per_page'] = $data['row_count'];
$p_config['page_query_string'] = TRUE;
// Init pagination
$this->pagination->initialize($p_config);
// Create pagination links
$data['pagination'] = $this->pagination->create_links();
} else {
if ($this->input->get('type') == 'hidden') {
$conditions = array("messages.userto " => $this->dx_auth->get_user_id(), "messages.is_archived" => 1);
$query = $this->Message_model->get_messages($conditions, NULL, array('messages.id', 'desc'));
$param = (int) $this->uri->segment(4, 0);
$param = rtrim($this->input->get('per_page'), '0') + 1;
// Number of record showing per page
$data['row_count'] = 10;
if ($param > 0) {
$data['offset'] = ($param - 1) * $data['row_count'];
} else {
$data['offset'] = $param * $data['row_count'];
}
$this->db->limit($data['row_count'], $data['offset']);
$conditions = array("messages.userto " => $this->dx_auth->get_user_id(), "messages.is_archived" => 1);
$data['messages'] = $this->Message_model->get_messages($conditions, NULL, array('messages.id', 'desc'));
// Pagination config
$p_config['base_url'] = site_url('message/inbox?type=' . $type);
$p_config['uri_segment'] = 4;
$p_config['num_links'] = 5;
$p_config['total_rows'] = $query->num_rows();
$p_config['per_page'] = $data['row_count'];
$p_config['page_query_string'] = TRUE;
// Init pagination
$this->pagination->initialize($p_config);
// Create pagination links
$data['pagination'] = $this->pagination->create_links();
} else {
$conditions = array("messages.userto " => $this->dx_auth->get_user_id(), "messages.is_archived" => 0);
$query = $this->Message_model->get_messages($conditions, NULL, array('messages.id', 'desc'));
$param = (int) $this->uri->segment(4, 0);
//$param = rtrim($this->input->get('per_page'),'0')+1;
// Number of record showing per page
$data['row_count'] = 10;
if ($param > 0) {
$data['offset'] = ($param - 1) * $data['row_count'];
} else {
$data['offset'] = $param * $data['row_count'];
}
$this->db->limit($data['row_count'], $data['offset']);
$conditions = array("messages.userto " => $this->dx_auth->get_user_id(), "messages.is_archived" => 0);
$data['messages'] = $this->Message_model->get_messages($conditions, NULL, array('messages.id', 'desc'));
// Pagination config
$p_config['base_url'] = site_url('message/inbox/index');
$p_config['uri_segment'] = 4;
$p_config['num_links'] = 5;
$p_config['total_rows'] = $query->num_rows();
$p_config['per_page'] = $data['row_count'];
//$p_config['page_query_string'] = TRUE;
// Init pagination
$this->pagination->initialize($p_config);
// Create pagination links
$data['pagination'] = $this->pagination->create_links2();
}
}
}
}
}
}
$conditions = array("messages.userto " => $this->dx_auth->get_user_id(), "messages.is_archived" => 0);
$data['all_count'] = $this->Message_model->get_messages($conditions, NULL, array('messages.id', 'desc'))->num_rows();
$conditions = array("messages.userto " => $this->dx_auth->get_user_id(), "messages.is_starred" => 1);
$data['starred_count'] = $this->Message_model->get_messages($conditions, NULL, array('messages.id', 'desc'))->num_rows();
$conditions = array("messages.userto " => $this->dx_auth->get_user_id(), "messages.is_read" => 0);
$data['unread_count'] = $this->Message_model->get_messages($conditions, NULL, array('messages.id', 'desc'))->num_rows();
$conditions = array("messages.userto " => $this->dx_auth->get_user_id(), "messages.message_type" => 1);
$data['reservations_count'] = $this->Message_model->get_messages($conditions, NULL, array('messages.id', 'desc'))->num_rows();
$conditions = array("messages.userto " => $this->dx_auth->get_user_id(), "messages.is_respond" => 0);
$rc = $data['respond_count'] = $this->Message_model->get_messages($conditions, NULL, array('messages.userby', 'desc'))->num_rows();
//echo $rc;
//$data['respond_count'] =$this->db->query('select * from `messages` where `messages`.`userto`='.$this->dx_auth->get_user_id().' and `is_respond`=0')->num_rows();
//echo $this->db->last_query();
//exit;
$conditions = array("messages.userto " => $this->dx_auth->get_user_id(), "messages.is_archived" => 1);
$data['hidden_count'] = $this->Message_model->get_messages($conditions, NULL, array('messages.id', 'desc'))->num_rows();
//var_dump($data['messages']); exit;
$data['type'] = $this->input->get('type');
$data['title'] = get_meta_details('Inbox', 'title');
$data["meta_keyword"] = get_meta_details('Inbox', 'meta_keyword');
$data["meta_description"] = get_meta_details('Inbox', 'meta_description');
$data['message_element'] = 'message/inbox';
$this->load->view('template', $data);
} else {
redirect('users/signin');
}
}