Skip to content

Commit

Permalink
adding clickable category filter in offers and requests
Browse files Browse the repository at this point in the history
  • Loading branch information
essemme committed Jun 26, 2012
1 parent aa4c04d commit 64fa4bf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
12 changes: 8 additions & 4 deletions View/Offerte/index.ctp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -106,15 +106,19 @@
<td> <td>
<?php echo $this->Html->link($offerta['Tipo']['nome'], array('controller' => 'offerte', 'action' => 'index', 'tipo' => $offerta['Tipo']['id'])); ?> <?php echo $this->Html->link($offerta['Tipo']['nome'], array('controller' => 'offerte', 'action' => 'index', 'tipo' => $offerta['Tipo']['id'])); ?>
</td> </td>
<td><?php <td>
<?php


if($offerta['Offerta']['completa']) echo '<strike>'; if($offerta['Offerta']['completa']) echo '<strike>';
echo nl2br($this->Text->truncate(h($offerta['Offerta']['offerta']))); echo nl2br($this->Text->truncate(h($offerta['Offerta']['offerta'])));
if($offerta['Offerta']['completa']) echo '</strike>'; if($offerta['Offerta']['completa']) echo '</strike>';


?>&nbsp; ?>
<br /> <br />
[<?php echo $offerta['Categoria']['categoria']; ?>]
[<?php echo $this->Html->link( $offerta['Categoria']['categoria'], array('controller' => 'offerte', 'action' => 'index', 'categoria' => $offerta['Categoria']['id'])); ?>]


</td> </td>
<td> <td>
<?php if($dove != '') echo $dove; ?> <?php if($dove != '') echo $dove; ?>
Expand Down
9 changes: 5 additions & 4 deletions View/Richieste/index.ctp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
<?php //echo $this->Batch->create('Richiesta')?> <?php //echo $this->Batch->create('Richiesta')?>
<table class="table table-bordered table-striped" > <table class="table table-bordered table-striped" >
<tr> <tr>
<th>Id<?php //echo $this->Paginator->sort('id');?></th> <th><?php echo $this->Paginator->sort('id');?></th>
<th>Tipo<?php //echo $this->Paginator->sort('tipo_id');?> <th>Tipo<?php //echo $this->Paginator->sort('tipo_id');?>
<br/>scadenza indicativa<?php //echo $this->Paginator->sort('scadenza', 'scadenza indicativa');?></th> <br/><?php echo $this->Paginator->sort('scadenza', 'scadenza indicativa');?></th>
<th>Cosa serve<?php //echo $this->Paginator->sort('cosa_serve');?></th> <th>Cosa serve<?php //echo $this->Paginator->sort('cosa_serve');?></th>
<th>Dove, a chi<?php //echo $this->Paginator->sort('dove_a_chi', 'dove, a chi');?></th> <th>Dove, a chi<?php //echo $this->Paginator->sort('dove_a_chi', 'dove, a chi');?></th>
<?php if($this->Session->read('Auth.User.role_id') < 3 ) : ?> <?php if($this->Session->read('Auth.User.role_id') < 3 ) : ?>
<th>Inserimento, <?php //echo $this->Paginator->sort('created', 'inserimento');?><br/> <th>Inserimento, <?php //echo $this->Paginator->sort('created', 'inserimento');?><br/>
Ultima modifica<?php //echo $this->Paginator->sort('modified', 'ultima modifica');?>, inserito da<?php //echo $this->Paginator->sort('user_id');?> <?php echo $this->Paginator->sort('modified', 'ultima modifica');?>, inserito da<?php //echo $this->Paginator->sort('user_id');?>
</th> </th>
<th></th> <th></th>
<?php endif; ?> <?php endif; ?>
Expand Down Expand Up @@ -116,7 +116,8 @@
?> ?>
</strong> </strong>
<br /> <br />
[<?php echo $richiesta['Categoria']['categoria']; ?>]
[<?php echo $this->Html->link( $richiesta['Categoria']['categoria'], array('controller' => 'richieste', 'action' => 'index', 'categoria' => $richiesta['Categoria']['id'])); ?>]


</td> </td>
<td> <td>
Expand Down

0 comments on commit 64fa4bf

Please sign in to comment.