giumar /
fortunecookies
This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include, or for example
via PHP's auto-loading mechanism.
| 1 | <?php |
||
| 2 | /** |
||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 3 | * @var \App\View\AppView $this |
||
|
0 ignored issues
–
show
|
|||
| 4 | */ |
||
|
0 ignored issues
–
show
|
|||
| 5 | ?> |
||
| 6 | <div class="col-xs-12"> |
||
|
0 ignored issues
–
show
|
|||
| 7 | <nav class="large-3 medium-4 columns" id="actions-sidebar"> |
||
| 8 | <ul class="nav nav-tabs"> |
||
| 9 | <li><?= $this->Html->link(__('Edit Ticket'), ['action' => 'edit', $ticket->id]) ?> </li> |
||
| 10 | <li><?= $this->Form->postLink(__('Delete Ticket'), ['action' => 'delete', $ticket->id], ['confirm' => __('Are you sure you want to delete # {0}?', $ticket->id)]) ?> </li> |
||
| 11 | <li><?= $this->Html->link(__('List Tickets'), ['action' => 'index']) ?> </li> |
||
| 12 | <li><?= $this->Html->link(__('New Ticket'), ['action' => 'add']) ?> </li> |
||
| 13 | <li><?= $this->Html->link(__('List Operations'), ['controller' => 'Operations', 'action' => 'index']) ?> </li> |
||
| 14 | <li><?= $this->Html->link(__('New Operation'), ['controller' => 'Operations', 'action' => 'add']) ?> </li> |
||
| 15 | </ul> |
||
| 16 | </nav> |
||
| 17 | </div> |
||
| 18 | <div class="col-xs-12"> |
||
| 19 | <div class="panel panel-default"> |
||
| 20 | <div class="panel-heading"><h3><span class="label label-default">#<?= $this->Number->format($ticket->id) ?></span> <?= h($ticket->title) ?></h3></div> |
||
| 21 | <div class="panel-body"> |
||
| 22 | <div class="col-xs-12 col-md-3">Title: <?= h($ticket->title) ?></div> |
||
| 23 | <div class="col-xs-12 col-md-3">ID: <?= $this->Number->format($ticket->id) ?></div> |
||
| 24 | <div class="col-xs-12 col-md-3">Created: <?= h($ticket->created) ?></div> |
||
| 25 | <div class="col-xs-12 col-md-3">Modified: <?= h($ticket->modified) ?></div> |
||
| 26 | <div class="col-xs-12 col-md-12">Description: <?= h($ticket->description) ?></div> |
||
| 27 | </div> |
||
| 28 | </div> |
||
| 29 | <div class="related"> |
||
| 30 | <div class="row"> |
||
| 31 | <div class="col-xs-2"> |
||
| 32 | <h4><?= __('Related Operations') ?></h4> |
||
| 33 | </div> |
||
| 34 | <div class="col-xs-10"> |
||
| 35 | <?= $this->Html->link('<i class="fa fa-plus-circle" aria-hidden="true"></i> Add Operation', ['controller'=>'tickets', 'action'=>'addoperation', $ticket->id], ['class'=>'btn btn-success', 'escape'=>false]); ?> |
||
|
0 ignored issues
–
show
|
|||
| 36 | </div> |
||
| 37 | </div> |
||
| 38 | <?php if (!empty($ticket->operations)): ?> |
||
|
0 ignored issues
–
show
|
|||
| 39 | <table cellpadding="0" cellspacing="0" class="table"> |
||
| 40 | <tr> |
||
| 41 | <th scope="col"><?= __('Start') ?></th> |
||
| 42 | <th scope="col"><?= __('End') ?></th> |
||
| 43 | <th scope="col"><?= __('Description') ?></th> |
||
| 44 | <th scope="col"><?= __('Created') ?></th> |
||
| 45 | <th scope="col"><?= __('Modified') ?></th> |
||
| 46 | <th scope="col" class="actions"><?= __('Actions') ?></th> |
||
| 47 | </tr> |
||
| 48 | <?php foreach ($ticket->operations as $operations): ?> |
||
|
0 ignored issues
–
show
|
|||
| 49 | <tr> |
||
| 50 | <td><?= h($operations->start) ?></td> |
||
| 51 | <td><?= h($operations->end) ?></td> |
||
| 52 | <td><?= h($operations->description) ?></td> |
||
| 53 | <td><?= h($operations->created) ?></td> |
||
| 54 | <td><?= h($operations->modified) ?></td> |
||
| 55 | <td class="actions"> |
||
| 56 | <?= $this->Html->link(__('View'), ['controller' => 'Tickets', 'action' => 'view_operation', $operations->id]) ?> |
||
| 57 | <?= $this->Html->link(__('Edit'), ['controller' => 'Tickets', 'action' => 'edit_operation', $operations->id]) ?> |
||
| 58 | <?= $this->Form->postLink(__('Delete'), ['controller' => 'Tickets', 'action' => 'delete_operation', $operations->id], ['confirm' => __('Are you sure you want to delete # {0}?', $operations->id)]) ?> |
||
| 59 | </td> |
||
| 60 | </tr> |
||
| 61 | <?php endforeach; ?> |
||
| 62 | </table> |
||
| 63 | <?php endif; ?> |
||
| 64 | </div> |
||
| 65 | </div> |
||
| 66 |