mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Añadido lenguaje a los roles. Orden por grupos
This commit is contained in:
@ -41,7 +41,7 @@ class Activity extends BaseController
|
||||
SUM( IF( browser LIKE "%Safari%", 1, 0 ) ) AS safari,
|
||||
SUM( IF( browser LIKE "%Internet Explorer%", 1, 0 ) ) AS ie,
|
||||
SUM( IF( browser LIKE "%Edge%", 1, 0 ) ) AS edge,
|
||||
SUM( IF( browser LIKE "%Opera%", 1, 0 ) ) AS opera')->where('activity.user',$session->get('token'))->first();
|
||||
SUM( IF( browser LIKE "%Opera%", 1, 0 ) ) AS opera')->where('auth_activity.user',$session->get('token'))->first();
|
||||
$data['all'] = "";
|
||||
echo view(getenv('theme.path').'main/header');
|
||||
echo view(getenv('theme.path').'form/activity/index',$data);
|
||||
|
||||
@ -231,41 +231,41 @@ class Ajax extends ResourceController
|
||||
//Total number of records without filtering
|
||||
if($session->get('dashboard')=='admin' && !empty($all)){
|
||||
$totalRecords = $this->activity_model->select('id_activity')
|
||||
->join('user','user.token = activity.user')
|
||||
->join('auth_user','auth_user.token = auth_activity.user')
|
||||
->countAllResults();
|
||||
}else{
|
||||
$totalRecords = $this->activity_model->select('id_activity')
|
||||
->join('user','user.token = activity.user')
|
||||
->where('activity.user',$session->get('token'))
|
||||
->join('auth_user','auth_user.token = auth_activity.user')
|
||||
->where('auth_activity.user',$session->get('token'))
|
||||
->countAllResults();
|
||||
}
|
||||
|
||||
//Total number of records with filtering
|
||||
if($session->get('dashboard')=='admin' && !empty($all)){
|
||||
$totalRecordwithFilter = $this->activity_model->select('id_activity')
|
||||
->join('user','user.token = activity.user')
|
||||
->join('auth_user','auth_user.token = auth_activity.user')
|
||||
->orLike('first_name', $searchValue)
|
||||
->countAllResults();
|
||||
}else{
|
||||
$totalRecordwithFilter = $this->activity_model->select('id_activity')
|
||||
->join('user','user.token = activity.user')
|
||||
->join('auth_user','auth_user.token = auth_activity.user')
|
||||
->orLike('first_name', $searchValue)
|
||||
->where('activity.user',$session->get('token'))
|
||||
->where('auth_activity.user',$session->get('token'))
|
||||
->countAllResults();
|
||||
}
|
||||
|
||||
//Fetch records
|
||||
if($session->get('dashboard')=='admin' && !empty($all)){
|
||||
$records = $this->activity_model->select('activity.*,concat(first_name, " (",email, ")") AS name')
|
||||
->join('user','user.token = activity.user')
|
||||
$records = $this->activity_model->select('auth_activity.*,concat(first_name, " (",email, ")") AS name')
|
||||
->join('auth_user','auth_user.token = auth_activity.user')
|
||||
->orLike('first_name', $searchValue)
|
||||
->orderBy($columnName,$columnSortOrder)
|
||||
->findAll($rowperpage, $start);
|
||||
}else{
|
||||
$records = $this->activity_model->select('activity.*,concat(first_name, " (",email, ")") AS name')
|
||||
->join('user','user.token = activity.user')
|
||||
$records = $this->activity_model->select('auth_activity.*,concat(first_name, " (",email, ")") AS name')
|
||||
->join('auth_user','auth_user.token = auth_activity.user')
|
||||
->orLike('first_name', $searchValue)
|
||||
->where('activity.user',$session->get('token'))
|
||||
->where('auth_activity.user',$session->get('token'))
|
||||
->orderBy($columnName,$columnSortOrder)
|
||||
->findAll($rowperpage, $start);
|
||||
}
|
||||
|
||||
@ -4,7 +4,7 @@ namespace App\Controllers\Produccion;
|
||||
use App\Controllers\BaseController;
|
||||
|
||||
|
||||
class Pedido extends BaseController
|
||||
class Pedidoproduccion extends BaseController
|
||||
{
|
||||
function __construct()
|
||||
{
|
||||
Reference in New Issue
Block a user