2013-09-11 22:17:47 +08:00
|
|
|
<?php
|
|
|
|
$this->start('sidebar');
|
|
|
|
echo $this->Html->link( 'Add Monitor', array('controller' => 'monitors', 'action' => 'add'));
|
|
|
|
$this->end();
|
|
|
|
?>
|
2013-09-19 00:14:15 +08:00
|
|
|
|
|
|
|
<div class="row" id="monitors">
|
2013-09-11 22:17:47 +08:00
|
|
|
<?php foreach ($monitors as $monitor => $mon): ?>
|
2013-09-24 09:51:02 +08:00
|
|
|
<div class="col-md-4" id="Monitor_<?= $mon['Monitor']['Id']; ?>">
|
2013-09-11 22:17:47 +08:00
|
|
|
<div class="thumbnail">
|
2013-09-16 18:00:27 +08:00
|
|
|
<?php
|
2013-09-24 20:56:04 +08:00
|
|
|
debug($mon);
|
|
|
|
echo $this->Html->image($mon['img']['src'], array(
|
|
|
|
'alt' => $mon['img']['alt'],
|
|
|
|
'id' => $mon['img']['id']
|
|
|
|
));
|
2013-09-16 18:00:27 +08:00
|
|
|
?>
|
2013-09-11 22:17:47 +08:00
|
|
|
<div class="caption">
|
2013-09-19 01:23:16 +08:00
|
|
|
<h4><?php echo $this->Html->link($mon['Monitor']['Name'],array('controller' => 'monitors', 'action' => 'view', $mon['Monitor']['Id'])); ?></h4>
|
2013-09-11 22:17:47 +08:00
|
|
|
<p><?php echo $this->Html->link($mon['Monitor']['Function'], array('action' => 'edit', $mon['Monitor']['Id'])); ?></p>
|
|
|
|
</div>
|
2013-05-25 08:13:14 +08:00
|
|
|
</div>
|
2013-09-11 22:17:47 +08:00
|
|
|
</div>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
<?php unset($monitor); ?>
|
|
|
|
</div>
|
2013-09-19 00:14:15 +08:00
|
|
|
|
|
|
|
<?php
|
|
|
|
$this->Js->get('#monitors');
|
|
|
|
$this->Js->sortable(array('complete' => '$.post("/monitors/reorder", $("#monitors").sortable("serialize"))',));
|
2013-09-24 09:51:02 +08:00
|
|
|
?>
|