Nooku Examples is an open source project powered by Assembla

Assembla offers free public and private SVN/Git repositories and project hosting with bug/issue tracking and collaboration tools.

nooku-examples

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
<? /** $Id$ */ ?>
<? defined('KOOWA') or die('Restricted access');?>

<script src="media://lib_koowa/js/koowa.js" />
<?= @helper('behavior.tooltip');?>
<style src="media://com_harbour/css/admin.css" />
<style src="media://com_harbour/css/aloa.css" />
<style src="media://lib_koowa/css/koowa.css" />

<?= @template('default_sidebar'); ?>

<form action="<?= @route() ?>" method="get" class="-koowa-grid">
<?= @template('default_filter'); ?>
<table class="adminlist">
    <thead>
        <tr>
            <th width="10"></th>
            <th>
                <?= @helper('grid.sort', array('column' => 'title')); ?>
            </th>
            <th width="8%">
                <?= @helper('grid.sort', array('column' => 'ordering')); ?>
            </th>
            <th width="8%">
                <?= @helper('grid.sort', array('column' => 'port', 'title' => 'Port' ,'state' => $state)); ?>
            </th>
            <th width="8%">
                <?= @helper('grid.sort', array('column' => 'boattype', 'title' => 'Boattype' ,'state' => $state)); ?>
            </th>
            <th width="8%">
                <?= @helper('grid.sort', array('column' => 'enabled', 'title' => 'Published')); ?>
            </th>
            <th width="8%">
                <?= @helper('grid.sort', array('column' => 'access')); ?>
            </th>
            <th width="8%">
                <?= @helper('grid.sort', array('column' => 'hits')); ?>
            </th>
        </tr>
        <tr>
            <td align="center"><?=@helper('grid.checkall');?> </td>
            <td>
                <?=@helper('grid.search');?>
            </td>
            <td></td>
            <td align="center">
                <!--<?//= @helper('com://admin/harbour.template.helper.listbox.ports', array('name' => 'port','attribs' => array())); ?>-->
            </td>
            <td align="center">
                <?= @helper('com://admin/harbour.template.helper.listbox.boattypes', array('name' => 'boattype', 'attribs' => array())); ?>
            </td>
            <td></td>
            <td></td>
            <td></td>
        </tr>
    </thead>

    <tfoot>
           <tr>
                <td colspan="13">
                     <?= @helper('paginator.pagination', array('total' => $total)) ?>
                </td>
            </tr>
    </tfoot>

    <tbody>
    <? foreach ($boats as $boat) : ?>
        <tr>
            <td align="center">
                <?= @helper('grid.checkbox' , array('row' => $boat)); ?>
            </td>

            <td align="left">
                <span class="editlinktip hasTip" title="<?= @text('Edit the Boat Tooltip Title')?> <?= @escape($boat->title); ?>::<?= @escape(substr($boat->description, 0, 300)).'...'; ?>">
                    <img src="../sites/default/images/harbour/flags/<?= $boat->flag;?>" />
                    <a href="<?= @route('view=boat&id='.$boat->id); ?>">
                        <?=$boat->title?>
                    </a>
                </span>
            </td>
            <td align="center">
                <?= @helper('grid.order', array('row' => $boat, 'total' => $total)); ?>
            </td>
            <td align="center">
                <?= @escape($boat->port_title)?>
            </td>
            <td align="center">
                <?= @escape($boat->boattype_title)?>
            </td>
            <td align="center">
                <?= @helper('grid.enable', array('row' => $boat)) ?>
            </td>
            <td align="center">
                <?= @helper('grid.access', array('row' => $boat)) ?>
            </td>
            <td align="center">
                <?=$boat->hits?>
            </td>
        </tr>
    <? endforeach; ?>

    <? if (!count($boats)) : ?>
        <tr>
            <td colspan="20" align="center">
                <?= @text('No Items Found'); ?>
            </td>
        </tr>
    <? endif; ?>
    </tbody>
</table>
</form>
Ajax-loader Loading, please wait...