forked from pollen8/fabrik
-
Notifications
You must be signed in to change notification settings - Fork 381
/
default.php
111 lines (89 loc) · 2.49 KB
/
default.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php
/**
* Fabrik List Template: Div
*
* @package Joomla
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
*/
// No direct access
defined('_JEXEC') or die('Restricted access');
// The number of columns to split the list rows into
$columns = 3;
// Show the labels next to the data:
$this->showLabels = false;
// Show empty data
$this->showEmpty = true;
$pageClass = $this->params->get('pageclass_sfx', '');
if ($pageClass !== '') :
echo '<div class="' . $pageClass . '">';
endif;
?>
<?php if ($this->tablePicker != '') { ?>
<div style="text-align:right"><?php echo FText::_('COM_FABRIK_LIST') ?>: <?php echo $this->tablePicker; ?></div>
<?php }
if ($this->params->get('show_page_heading')) :
echo '<h1>' . $this->params->get('page_heading') . '</h1>';
endif;
if ($this->showTitle == 1) { ?>
<h1><?php echo $this->table->label;?></h1>
<?php }?>
<?php echo $this->table->intro;?>
<form class="fabrikForm" action="<?php echo $this->table->action;?>" method="post" id="<?php echo $this->formid;?>" name="fabrikList">
<?php
if ($this->hasButtons):
echo $this->loadTemplate('buttons');
endif;
if ($this->showFilters) {
echo $this->layoutFilters();
}
?>
<div class="fabrikDataContainer" data-cols="<?php echo $columns;?>">
<?php foreach ($this->pluginBeforeList as $c) {
echo $c;
}?>
<div class="fabrikList" id="list_<?php echo $this->table->renderid;?>" >
<?php
$gCounter = 0;
foreach ($this->rows as $groupedBy => $group) :?>
<?php
if ($this->isGrouped) :
$imgProps = array('alt' => FText::_('COM_FABRIK_TOGGLE'), 'data-role' => 'toggle', 'data-expand-icon' => 'fa fa-arrow-down', 'data-collapse-icon' => 'fa fa-arrow-right');
?>
<div class="fabrik_groupheading">
<?php echo $this->layoutGroupHeading($groupedBy, $group); ?>
</div>
<?php
endif;
?>
<div class="fabrik_groupdata">
<div class="groupDataMsg">
<div class="emptyDataMessage" style="<?php echo $this->emptyStyle?>">
<?php echo $this->emptyDataMessage; ?>
</div>
</div>
<?php
$items = array();
foreach ($group as $this->_row) :
$items[] = $this->loadTemplate('row');
endforeach;
$class = 'fabrik_row well row-striped';
echo FabrikHelperHTML::bootstrapGrid($items, $columns, $class, true, $this->_row->id);
?>
</div>
<?php
endforeach;
?>
</div>
<?php
echo $this->nav;
print_r($this->hiddenFields);?>
</div>
</form>
<?php
echo $this->table->outro;
if ($pageClass !== '') :
echo '</div>';
endif;
?>