Esempio n. 1
0
foreach($orig_params as $k => $v){
 if(stristr('data_', $k)){
	$k = str_ireplace('data_', '',$k );
	$user_data[$k] = $v;
 }
}

 if(trim($orig_params['keyword']) != ''){
$user_data['search_keyword'] = trim($orig_params['keyword']);
}



 if($ids){

 $ids = decode_var($ids); 
if(!empty($ids)){
	$user_data['ids'] = $ids;
}

 }


 
$limits = array();
$limits[0] = (intval($paging_curent_page) - 1) * $query_options['limit'] ;
$limits[1] =  (intval($paging_curent_page)) * $query_options['limit'] ;
 
$users = CI::model('users')->getUsers($user_data, $limits, $count_only = false);
$users_count = CI::model('users')->getUsers($user_data, $limit = false, $count_only = true);
 
Esempio n. 2
0
 function getParamFromURL($param, $param_sub_position = false, $skip_ajax = false)
 {
     //$segs = $this->uri->segment_array ();
     if ($_POST) {
         if ($_POST['search_by_keyword']) {
             if ($param == 'keyword') {
                 return $_POST['search_by_keyword'];
             }
         }
     }
     $url = url($skip_ajax);
     $rem = site_url();
     $url = str_ireplace($rem, '', $url);
     $url = str_ireplace('?', '/', $url);
     $url = str_ireplace('=', ':', $url);
     $url = str_ireplace('&', '/', $url);
     $segs = explode('/', $url);
     foreach ($segs as $segment) {
         $seg1 = explode(':', $segment);
         //	var_dump($seg1);
         if ($seg1[0] == $param) {
             //if (stristr ( $segment, $param . ':' ) == true) {
             if ($param_sub_position == false) {
                 $the_param = str_ireplace($param . ':', '', $segment);
                 if ($param == 'custom_fields_criteria') {
                     //$the_param1 = base64_decode ( $the_param );
                     $the_param1 = decode_var($the_param);
                     return $the_param1;
                 }
                 return $the_param;
             } else {
                 $the_param = str_ireplace($param . ':', '', $segment);
                 $params_list = explode(',', $the_param);
                 if ($param == 'custom_fields_criteria') {
                     $the_param1 = base64_decode($the_param);
                     $the_param1 = unserialize($the_param1);
                     return $the_param1;
                 }
                 //$param_value = $params_list [$param_sub_position - 1];
                 //$param_value = $the_param;
                 return $the_param;
             }
         }
     }
 }
<?

$temp = $params['base64'];
if($temp){
$base64_val_for_insert = decode_var($temp)	;
} else {
	$base64_val_for_insert = false;
}

$temp = $params['parent_base64_params'];
if($temp){
$parent_params = decode_var($temp)	;

if(!empty($parent_params)){
if($params['page_id'] == false){
	$params['page_id'] = $parent_params['page_id'];
}

if($params['post_id'] == false){
	$params['post_id'] = $parent_params['post_id'];
}
}



} else {
	$parent_params = false;
}


Esempio n. 4
0
<?  //  p($params); 

if($params['value']){
$value = decode_var($params['value']);	
}


if($params['values']){
$values = ($params['values']);	
}


if($value == false){
$value = ($params['value']);	
}
//p($value);
if($value == false){
$value = '';	
}
//p($value);
?>
<? if($params['quick_edit'] == true):   ?>

<textarea name="<? print $params['name'];?>" class="<? print $params['class'];?>"><? print $value ?></textarea>
<? else:  ?>
<?php 
switch ($params['type']) {
    case 'text':
        ?>
<textarea name="<? print $params['name'];?>" class="<? print $params['class'];?>"><? print $value ?></textarea>
<?php