コード例 #1
0
ファイル: promissoria.php プロジェクト: alissoncti/sgo
	</tr>
	<tr>
		<td><strong>Est. Civil: </strong><?php echo $model->estadocivil ?></td>
		<td colspan="2"><strong>Cônjuge: </strong><?php echo $model->conjuge ?></td>
		<td><strong>Tel.: </strong><?php echo $model->telefone2 ?></td>
	</tr>
	<tr>
		<td colspan="3"><strong>Referência 1: </strong><?php echo $model->referencia1 ?></td>
		<td><strong>Tel.: </strong><?php echo $model->telefone11 ?></td>
	</tr>
	<tr>
		<td colspan="3"><strong>Referência 2: </strong><?php echo $model->referencia2 ?></td>
		<td><strong>Tel.: </strong><?php echo $model->telefone21 ?></td>
	</tr>
	<tr>
		<td colspan="2"><strong>F. Pagamento:</strong> <?php echo FormaPagamento::findOne($model2->forma_pagamento_idforma_pagamento)->forma_pagamento ?></td>
		<td><strong>V. Compra: </strong><?php echo Yii::$app->formatter->asCurrency($model2->valortotal)  ?></td>
		<td><strong>N. Parcelas: </strong><?php echo $model2->qtd_parcelas ?></td>
	</tr>
	<tr>
		<td colspan="4"><strong>V. Compra: </strong><?php echo $model2->valortotal ?></td>
	</tr>
</table>
<h5><strong>Parcelamento</strong></h5>

<table class="table table-bordered">

	<?php
	//$items = FormaPagamento::findOne($model2->forma_pagamento_idforma_pagamento);
	$qtdparcelas = $model2->qtd_parcelas;
	//$qtdparcelas = 10;
コード例 #2
0
 /**
  * Finds the FormaPagamento model based on its primary key value.
  * If the model is not found, a 404 HTTP exception will be thrown.
  * @param integer $id
  * @return FormaPagamento the loaded model
  * @throws NotFoundHttpException if the model cannot be found
  */
 protected function findModel($id)
 {
     if (($model = FormaPagamento::findOne($id)) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }