Exemplo n.º 1
0
</td>
	<td class="cell10"><?php 
print $stock->bond->scadenza();
?>
</td>
	<td class="cell10"><?php 
print $stock->bond->stacco();
?>
</td>
	<td class="cell10"><?php 
print $stock->bond->next_coupon_date();
?>
</td>
	<td class="cell10r"><?php 
printf('%d mesi', $stock->bond->cadenza);
?>
</td>
	<td class="cell10r"><?php 
printf('%.2f%%', $stock->bond->tasso);
?>
</td>
	<td class="cell10r-lh"><?php 
print apple('%.2f', $stock->plusminus_per_year);
?>
</td>
	<td class="cell10-rh">(<?php 
print apple('%.2f%%', $stock->plusminus_percent_per_year);
?>
)</td>
</tr>
Exemplo n.º 2
0
?>
"><img src="/img/circled_arrow.png" alt="Filtra per data" /></a></td>
			</tr>
		</table>
	</td>
	<td class="cell10"><?php 
if ($transaction->negot_id) {
    ?>
		<table width="100%" cellpadding="0" cellspacing="0" border="0">
			<tr>
				<td align="right" width="100%"><?php 
    echo $transaction->negot_id;
    ?>
</td>
				<td>&nbsp;</td>
				<td align="right"><a href="<?php 
    echo $this->url_to(array('controller' => 'transazioni', 'action' => 'negot', 'id' => $transaction->negot_id));
    ?>
"><img src="/img/circled_arrow.png" alt="Negoziazione" /></a></td>
			</tr>
		</table>
<?php 
}
?>
</td>
	<td class="cell10" align="right"><?php 
print apple('%.2f', $transaction->importo);
?>
</td>
</tr>
<?php

// What is the output of?
function apple($apples = 4)
{
    $apples = $apples / 2;
    return $apples;
}
$apples = 10;
apple($apples);
echo $apples;
Exemplo n.º 4
0
		<tr class="crystal">
			<th colspan="5"></th>
			<th>Totale</th>
			<th colspan="2"></th>
			<th>Bilancio</th>
		</tr>
		<tr class="<?php 
    echo Stock::row_class();
    ?>
">
			<td class="cell10" colspan="5"><div class="vstrut17"></div></td>
			<td class="cell10" align="right"><?php 
    print apple('%d', $this->totale);
    ?>
</td>
			<td class="cell10" colspan="2"></td>
			<td class="cell10" align="right"><?php 
    print apple('%.2f', $this->bilancio);
    ?>
</td>
		</tr>
	</table>
<?php 
} else {
    ?>
	<div class="notice">Nessun risultato per i parametri specificati</div>
<?php 
}
?>
</form>
Exemplo n.º 5
0
    printf('%.2f EUR', $this->totale);
    ?>
			<td class="cell10"><?php 
    printf('%.2f EUR', $this->investito);
    if (!isset($_REQUEST['use_helper'])) {
        // FIXME: hack
        $this->plusminus = $this->totale - $this->investito;
    }
    ?>
			</td>
			<td class="cell10r-lh"><?php 
    print apple('%.2f EUR', $this->plusminus);
    ?>
			<td class="cell10-rh">
			(<?php 
    $plusminus_pct = $this->plusminus / $this->investito * 100;
    print apple('%.2f%%', $plusminus_pct);
    ?>
)</td>
			<td class="cell10" colspan="3"><div class="vstrut17"></div></td>
		</tr>
	</table>
<?php 
} else {
    ?>
	<div class="notice">Nessun risultato per i parametri specificati</div>
<?php 
}
?>
</form>
Exemplo n.º 6
0
    printf('%.2f', $this->investito);
    ?>
</td>

			<td class="cell10" align="right"><?php 
    printf('%.2f', $this->attuale);
    ?>
</td>
			<td class="cell10r-lh">
				<?php 
    $plusminus = $this->attuale - $this->investito;
    print apple('%.2f', $plusminus);
    ?>
			</td>
			<td class="cell10-rh">
				(<?php 
    print apple('%.2f%%', $plusminus / $this->investito * 100);
    ?>
)
			</td>
		</tr>
	</table>
<?php 
} else {
    ?>
	<div class="notice">Nessun risultato per i parametri specificati</div>
<?php 
}
?>
</form>
Exemplo n.º 7
0
     include '../view/addMovie.php';
     break;
 case 'addMovieListing':
     addMovieListing();
     break;
 case 'addNews':
     addNews();
     break;
 case 'addPolicy':
     addPolicy();
     break;
 case 'admin':
     include '../view/admin.php';
     break;
 case 'apple':
     apple();
     break;
 case 'ata':
     include '../view/ata.php';
     break;
 case 'bus':
     bus();
     break;
 case 'busBreak':
     include '../view/busSchedule.php';
     break;
 case 'deleteApple':
     deleteApple();
     break;
 case 'deleteDate':
     deleteDate();
Exemplo n.º 8
0
        printf('%.2f EUR', $roi->investito);
        ?>
</td>
      <td class="cell10"><?php 
        print $roi->break_even_date ? strftime('%a, %d %B %Y', strtotime($roi->break_even_date)) : '&mdash;';
        ?>
</td>
      <td class="cell10r-lh"><?php 
        print apple('%.2f', $roi->plusminus);
        ?>
</td>
      <td class="cell10-rh">(<?php 
        print apple('%.2f%%', $roi->plusminus_percent);
        ?>
)</td>
      <td class="cell10r-lh"><?php 
        print apple('%.2f', $roi->plusminus_per_year);
        ?>
</td>
      <td class="cell10-rh">(<?php 
        print apple('%.2f%%', $roi->plusminus_percent_per_year);
        ?>
)</td>
    </tr>
<?php 
    }
    $this->render(array('partial' => 'header'));
    ?>
  </table>
<?php 
}
Exemplo n.º 9
0
				<td>&nbsp;</td>
				<td align="right"><a href="<?php 
echo $this->url_to(array('action' => 'edit', 'id' => $transaction->id));
?>
"><img src="/img/circled_arrow.png" alt="Modifica" /></a></td>
			</tr>
		</table>
	</td>
	<td class="cell10">
		<table width="100%" cellpadding="0" cellspacing="0" border="0">
			<tr>
				<td align="right" width="100%"><?php 
$quantita = $transaction->quantita;
$quantita *= $transaction->azione == 'acquisto' ? -1 : 1;
$this->totale += $quantita;
print apple('%d', $quantita);
?>
</td>
				<td>&nbsp;</td>
				<td align="right"><a href="<?php 
echo $this->url_to(array('action' => 'edit', 'id' => $transaction->id));
?>
"><img src="/img/circled_arrow.png" alt="Modifica" /></a></td>
			</tr>
		</table>
	</td>
	<td class="cell10">
		<table width="100%" cellpadding="0" cellspacing="0" border="0">
			<tr>
				<td width="100%"><?php 
echo $transaction->data();