function gestiona_verificacio($DADES_MATRICULA, $TPV, $ISPLE) { //Si la matricula es paga amb Targeta de crèdit, passem al TPV, altrament mostrem el comprovant if ($DADES_MATRICULA['MODALITAT'] == MatriculesPeer::PAGAMENT_TARGETA || $DADES_MATRICULA['MODALITAT'] == MatriculesPeer::PAGAMENT_TELEFON) { // echo '<FORM name="COMPRA" action="https://sis-t.sermepa.es:25443/sis/realizarPago" method="POST" target="TPV">'; echo '<FORM name="COMPRA" action="https://sis.sermepa.es/sis/realizarPago" method="POST" target="TPV">'; foreach ($TPV as $K => $T) { echo input_hidden_tag($K, $T); } } else { echo '<form method="post" action="gestio/gMatricules">'; } //Carreguem totes les dades de matrícula foreach ($DADES_MATRICULA as $K => $V) { $str = "DADES_MATRICULA[" . $K . "]"; echo input_hidden_tag($str, $V); } $IDC = $DADES_MATRICULA['CURS']; $ESPLE = $ISPLE ? '(EN ESPERA)' : ''; ?> <FIELDSET class="REQUADRE"><LEGEND class="LLEGENDA">Verificació de la matrícula</LEGEND> <TABLE class="FORMULARI" style="magin-right:40px;"> <TR><TD><b>DNI</b></TD> <TD><?php echo $DADES_MATRICULA['DNI']; ?> </TD></TR> <TR><TD><b>NOM</b></TD> <TD><?php echo $DADES_MATRICULA['NOM']; ?> </TD></TR> <TR><TD><b>PAGAMENT</b></TD><TD><?php echo MatriculesPeer::textPagament($DADES_MATRICULA['MODALITAT']); ?> </TD></TR> <TR><TD><b>IMPORT</b></TD> <TD><?php echo $DADES_MATRICULA['PREU'] . '€'; ?> </TD></TR> <TR><TD><b>DATA</b></TD> <TD><?php echo $DADES_MATRICULA['DATA']; ?> </TD></TR> <TR><TD><b>DESCOMPTE</b></TD> <TD><?php echo MatriculesPeer::textDescomptes($DADES_MATRICULA['DESCOMPTE']); ?> </TD></TR> <TR><TD><b>CURS</b></TD> <TD> <TABLE width="100%" class="FORMULARI"> <?php $CURS = CursosPeer::retrieveByPK($DADES_MATRICULA['CURS']); ?> <TR> <TD><?php echo $CURS->getCodi(); ?> </TD> <TD><?php echo $CURS->getTitolcurs() . ' ' . $ESPLE; ?> </TD> <TD><?php echo $CURS->CalculaPreu($DADES_MATRICULA['DESCOMPTE']) . '€'; ?> </TD> </TR> </TABLE> </TD></TR> <TR><TD colspan="7"><?php echo submit_tag('Matriculeu-me', array('NAME' => 'BSAVE', 'style' => 'width:100px')); ?> <BR /></TD></TR> </TABLE> </FIELDSET> </FORM> <?php }
public function getTpagamentString() { return MatriculesPeer::textPagament($this->getTpagament()); }
function VerificaMatricula($TPV, $DADES_MATRICULA, $ISPLE, $IDS) { $RET = ""; //Si la matricula es paga amb Targeta de crèdit, passem al TPV, altrament mostrem el comprovant if ($DADES_MATRICULA['MODALITAT'] == MatriculesPeer::PAGAMENT_TARGETA || $DADES_MATRICULA['MODALITAT'] == MatriculesPeer::PAGAMENT_TELEFON) { $URL = OptionsPeer::getString('TPV_URL', $IDS); $RET .= '<FORM name="COMPRA" action="' . $URL . '" method="POST" target="TPV">'; //$RET .= '<FORM name="COMPRA" action="https://sis-t.sermepa.es:25443/sis/realizarPago" method="POST" target="TPV">'; //$RET .= '<form name="COMPRA" action="https://sis.sermepa.es/sis/realizarPago" method="POST" target="TPV">'; foreach ($TPV as $K => $T) { $RET .= input_hidden_tag($K, $T); } } else { $RET .= '<form method="post" action="gestio/uGestio?accio=FI_MATRICULA">'; } //Carreguem totes les dades de matrícula foreach ($DADES_MATRICULA as $K => $V) { $str = "DADES_MATRICULA[" . $K . "]"; $RET .= input_hidden_tag($str, $V); } $IDC = $DADES_MATRICULA['CURS']; $ESPLE = $ISPLE ? '(EN ESPERA)' : ''; $RET .= '<FIELDSET class="REQUADRE"><LEGEND class="LLEGENDA">Verificació de la matrícula</LEGEND>'; $RET .= ' <TABLE class="FORMULARI" style="magin-right:40px;"> <TR><TD><b>DNI</b></TD> <TD>' . $DADES_MATRICULA['DNI'] . '</TD></TR> <TR><TD><b>NOM</b></TD> <TD>' . $DADES_MATRICULA['NOM'] . '</TD></TR> <TR><TD><b>PAGAMENT</b></TD><TD>' . MatriculesPeer::textPagament($DADES_MATRICULA['MODALITAT']) . '</TD></TR> <TR><TD><b>IMPORT</b></TD> <TD>' . $DADES_MATRICULA['PREU'] . '€' . '</TD></TR> <TR><TD><b>DATA</b></TD> <TD>' . $DADES_MATRICULA['DATA'] . '</TD></TR> <TR><TD><b>DESCOMPTE</b></TD> <TD>' . MatriculesPeer::textDescomptes($DADES_MATRICULA['DESCOMPTE']) . '</TD></TR> <TR><TD><b>CURS</b></TD> <TD>'; $RET .= '<TABLE width="100%" class="FORMULARI">'; $CURS = CursosPeer::retrieveByPK($DADES_MATRICULA['CURS']); $RET .= ' <TR> <TD>' . $CURS->getCodi() . '</TD> <TD>' . $CURS->getTitolcurs() . ' ' . $ESPLE . '</TD> <TD>' . $CURS->CalculaPreu($DADES_MATRICULA['DESCOMPTE']) . '€' . '</TD> </TR> </TABLE> </TD></TR> </TABLE> <div style="text-align:right"> <button type="submit" name="BPAGAMATRICULA" class="BOTO_ACTIVITAT" > ' . image_tag('template/coins.png') . ' Finalitzar la matrícula </button> </div> </FIELDSET> </FORM>'; return $RET; }