<tr>
    		<td colspan="5">No hem trobat cap resultat amb les dades marcades.</td>
    	</tr>    	
    <?php 
} else {
    //Agafem el llistat de cursos
    $LCUR = $LLISTAT_CURSOS;
    foreach ($LCUR as $OC) {
        $DATA_INICI = $OC->getDatainici('d') . ' - ' . $OC->getDatainici('m') . ' - ' . $OC->getDatainici('Y');
        $CATEGORIA = $OC->getCategoriaText();
        $HORARIS = $OC->getHoraris();
        $POBLACIO = SitesPeer::getPoblacioSite($OC->getSiteid());
        $PREU = $OC->getPreu();
        $url = url_for('@hospici_detall_curs?idC=' . $OC->getIdcursos() . '&titol=' . $OC->getNomForUrl());
        $NOM = '<a id="link" style="font-size:14px;" href="' . url_for('@hospici_detall_curs?idC=' . $OC->getIdcursos() . '&titol=' . $OC->getNomForUrl()) . '">' . $OC->getTitolcurs() . ' </a><span style="font-size:10px; color:gray;"> (' . $OC->getCodi() . ')</span>';
        $ESTAT = myUser::ph_getEtiquetaCursos($AUTH, $OC, $url, $CURSOS_MATRICULATS, $IDU);
        ?>
	 
			   	
	    	<tr>
		    	<td style="width:80px; vertical-align:top;"><?php 
        echo $DATA_INICI;
        ?>
</td>
		    	<td style="vertical-align: top;"><?php 
        echo $NOM;
        ?>
<br />
		    		<span style="color:#63B18E"><?php 
        echo $CATEGORIA;
        ?>
Exemple #2
0
                            <div class="pdf_cicle" style="margin-top: 5px;">
                                <div class="requadre_mini" style="background-color: #D4A261;">
                                    <a href="/images/cursos/<?php 
        echo $pdf;
        ?>
">Baixa't el pdf del curs</a>
                                </div>
                            </div>
                        <?php 
    }
    ?>
                        
                        <!-- Inici del marcador de curs -->
                        <div style="margin-top: 5px; margin-bottom:5px;">
                            <?php 
    echo myUser::ph_getEtiquetaCursos($AUTH, $CURS, $url, $CURSOS_MATRICULATS);
    ?>
                                                                                                                                                    
                        </div>
                        <!-- Fi del marcador de curs -->  
                      
                    <div style="margin-top:20px;">
                        <?php 
    echo ph_getAddThisDiv();
    ?>
                    </div>
                    
				</div>
                                
				<div style="width:400px; float:left;">
					<div style="padding-left:50px; font-size:10px;">                                                           
Exemple #3
0
    echo '<div style="margin-top:10px; clear:both;"></div>';
} else {
    $LCUR = $LLISTAT_CURSOS->getResults();
    foreach ($LCUR as $OC) {
        $DATA_INICI = $OC->getDatainici('d') . ' ' . generaMes($OC->getDatainici('m')) . ' de ' . $OC->getDatainici('Y');
        echo '<div style="margin-top:10px; margin-bottom:10px;">';
        //Si la categoria és diferent a l'anterior la mostrem
        if ($cat_ant != $OC->getCategoria()) {
            echo '<div class="h_llistat_activitat_tipus_titol">' . $OC->getCategoriaText() . '</div>';
        }
        echo '<div class="h_llistat_acivitat_titol">
                            <div style="float:left;">
                                <a style="font-size:14px;" href="' . url_for('@hospici_detall_curs?idC=' . $OC->getIdcursos() . '&titol=' . $OC->getNomForUrl()) . '">' . $OC->getTitolcurs() . ' </a><span style="font-size:10px; color:gray;"> (' . $OC->getCodi() . ')</span>
                            </div>';
        $url = url_for('@hospici_detall_curs?idC=' . $OC->getIdcursos() . '&titol=' . $OC->getNomForUrl());
        echo '<div style="float:right; margin-top: 5px;">' . myUser::ph_getEtiquetaCursos($AUTH, $OC, $url, $CURSOS_MATRICULATS) . '</div>';
        echo '</div>';
        echo '<div style="clear:both" class="h_llistat_activitat_horari">Inici: ' . $DATA_INICI . '</div>';
        echo '<div class="h_llistat_activitat_organitzador">|&nbsp;&nbsp;Organitza: ' . $OC->getNomSite() . '</div>';
        echo '<div style="clear:both"></div>';
        echo '</div>';
        echo '<div style="height:1px; background-color:#CCCCCC; clear:both;"></div>';
        $cat_ant = $OC->getCategoria();
    }
}
if ($LLISTAT_CURSOS->getLastPage() > $LLISTAT_CURSOS->getPage()) {
    echo '<div class="pagerE">' . setPagerN($LLISTAT_CURSOS, '@hospici_cercador_cursos', false) . '</div>';
} else {
    echo '<div class="pagerE">' . setPagerN($LLISTAT_CURSOS, '@hospici_cercador_cursos', true) . '</div>';
}
//        if(!empty($LCUR)) echo '<div class="pagerE">'.setPagerN($LLISTAT_CURSOS,'@hospici_cercador_cursos',false).'</div>';