|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Crocodicstudio\Crudbooster\controllers\CBController; |
|
4
|
|
|
|
|
5
|
|
|
trait CbIndexLoader |
|
6
|
|
|
{ |
|
7
|
|
|
//public $password_candidate = null; |
|
8
|
|
|
|
|
9
|
|
|
//public $date_candidate = null; |
|
10
|
|
|
|
|
11
|
|
|
public $columns_table; |
|
12
|
|
|
|
|
13
|
|
|
public $orderby = null; |
|
14
|
|
|
|
|
15
|
|
|
public $indexStatistic = []; |
|
16
|
|
|
|
|
17
|
|
|
public $indexAdditionalView = []; |
|
18
|
|
|
|
|
19
|
|
|
public $preIndexHtml = null; |
|
20
|
|
|
|
|
21
|
|
|
public $postIndexHtml = null; |
|
22
|
|
|
|
|
23
|
|
|
public $showNumbering = false; |
|
24
|
|
|
|
|
25
|
|
|
public $indexButton = []; |
|
26
|
|
|
|
|
27
|
|
|
public $limit = 20; |
|
28
|
|
|
|
|
29
|
|
|
public $tableRowColor = []; |
|
30
|
|
|
|
|
31
|
|
|
public $showButtonsOnIndexRows = true; |
|
32
|
|
|
|
|
33
|
|
|
public $buttonBulkAction = true; |
|
34
|
|
|
|
|
35
|
|
|
public $buttonFilter = true; |
|
36
|
|
|
|
|
37
|
|
|
public $buttonShow = true; |
|
38
|
|
|
|
|
39
|
|
|
public $sub_module = []; |
|
40
|
|
|
|
|
41
|
|
|
public $buttonActionWidth = null; |
|
42
|
|
|
|
|
43
|
|
|
public $addAction = []; |
|
44
|
|
|
|
|
45
|
|
|
public $showAddAction = true; |
|
46
|
|
|
|
|
47
|
|
|
public $buttonDetail = true; |
|
48
|
|
|
|
|
49
|
|
|
public $deleteBtn = true; |
|
50
|
|
|
|
|
51
|
|
|
public $col = []; |
|
52
|
|
|
|
|
53
|
|
|
public $buttonSelected = []; |
|
54
|
|
|
|
|
55
|
|
|
public $buttonEdit = true; |
|
56
|
|
|
|
|
57
|
|
|
public $buttonAdd = true; |
|
58
|
|
|
|
|
59
|
|
|
public $buttonActionStyle = 'button_icon'; |
|
60
|
|
|
|
|
61
|
|
|
public $buttonExport = true; |
|
62
|
|
|
|
|
63
|
|
|
public $buttonImport = true; |
|
64
|
|
|
|
|
65
|
|
|
public $indexReturn = false; //for export |
|
66
|
|
|
|
|
67
|
|
|
protected function cbIndexLoader() |
|
68
|
|
|
{ |
|
69
|
|
|
$this->data['buttonEdit'] = $this->buttonEdit; |
|
|
|
|
|
|
70
|
|
|
$this->columns_table = $this->col; |
|
71
|
|
|
$this->data['deleteBtn'] = $this->deleteBtn; |
|
72
|
|
|
$this->data['buttonSelected'] = $this->buttonSelected; |
|
73
|
|
|
$this->data['buttonExport'] = $this->buttonExport; |
|
74
|
|
|
$this->data['buttonImport'] = $this->buttonImport; |
|
75
|
|
|
$this->data['buttonFilter'] = $this->buttonFilter; |
|
76
|
|
|
$this->data['showNumbering'] = $this->showNumbering; |
|
77
|
|
|
$this->data['preIndexHtml'] = $this->preIndexHtml; |
|
78
|
|
|
$this->data['postIndexHtml'] = $this->postIndexHtml; |
|
79
|
|
|
$this->data['index_statistic'] = $this->indexStatistic; |
|
80
|
|
|
$this->data['table_row_color'] = $this->tableRowColor; |
|
81
|
|
|
$this->data['buttonBulkAction'] = $this->buttonBulkAction; |
|
82
|
|
|
$this->data['showButtonsOnIndexRows'] = $this->showButtonsOnIndexRows; |
|
83
|
|
|
$this->data['index_additional_view'] = $this->indexAdditionalView; |
|
84
|
|
|
$this->data['button_action_width'] = $this->buttonActionWidth; |
|
85
|
|
|
$this->data['buttonShow'] = $this->buttonShow; |
|
86
|
|
|
$this->data['addAction'] = ($this->showAddAction) ? $this->addAction : null; |
|
87
|
|
|
$this->data['buttonDetail'] = $this->buttonDetail; |
|
88
|
|
|
$this->data['buttonAdd'] = $this->buttonAdd; |
|
89
|
|
|
} |
|
90
|
|
|
|
|
91
|
|
|
} |