Exemple #1
0
    } else {
        echo '<DIV>Aquest dia no hi ha cap activitat pública.<DIV>';
    }
} else {
    echo '<TABLE id="llistat_activitats_dia">';
    echo '<tr>
    				<th style="text-align:left">Activitat</th>    				    				
    				<th style="text-align:left">Dia</th>
    				<th style="text-align:left">Hora</th>
    		  </tr>';
    foreach ($LLISTAT_ACTIVITATS->getResults() as $A) {
        $OA = $A->getActivitats();
        $OC = $OA->getCicles();
        $nom_act = $OA->getTMig();
        $nom_cicle = $OC->getTmig();
        $link_cicle = link_to($nom_cicle, '@web_cicle?idC=' . $OC->getCicleid() . '&titol=' . myUser::text2url($nom_cicle));
        if (!empty($nom_act)) {
            echo '<tr>';
            echo '<td>';
            echo '<a href="' . url_for('@web_activitat?idA=' . $OA->getActivitatid() . '&titol=' . $OA->getNomForUrl()) . '">' . $OA->getTmig() . '</a>';
            if ($OC->getCicleid() > 1) {
                echo ' || Cicle: ' . $link_cicle;
            }
            echo '</td>';
            echo '<td>' . generaData($A->getDia('Y-m-d')) . '</td>';
            echo '<td>' . $A->getHoraInici('H:i') . '</td>';
            echo '</tr>';
        }
    }
    if ($MODE == 'CERCA') {
        echo '<tr><td colspan="3" style="text-align:center">' . setPager($LLISTAT_ACTIVITATS, 'web/index?accio=c', $PAGINA) . '</td></tr>';
Exemple #2
0
?>

    <?php 
if (empty($LLISTAT_ACTIVITATS)) {
    echo '<DIV>Aquest dia no hi ha cap activitat pública.<DIV>';
}
foreach ($LLISTAT_ACTIVITATS as $A) {
    $C = CiclesPeer::retrieveByPK($A->getCiclescicleid());
    if ($C instanceof Cicles && $C->getCicleID() > 1) {
        $nom_cicle = '<b>' . $C->getTMig() . '</b>';
        $idC = $C->getCicleID();
    } else {
        $nom_cicle = "";
        $idC = 0;
    }
    $url_cicle = myUser::text2url($C->getTMig());
    $imatge = $A->getImatge();
    $pdf = $A->getPdf();
    $pdf_cicle = $C->getPdf();
    if (!empty($nom_cicle)) {
        ?>
			<div style="clear:both;">											
				<div class="df titol_cicle" style="width:150px;">Activitat del cicle</div>
				<div class="df titol_cicle" style="color: #A73339; width:330px; padding-left:20px;"><?php 
        echo $nom_cicle;
        ?>
</div>									 
			</div>
		<?php 
    }
    ?>
Exemple #3
0
 public function getNomForUrl()
 {
     $nom = $this->getTitolmenu();
     return myUser::text2url($nom);
 }
Exemple #4
0
 public function getNomForUrl()
 {
     $Nom = $this->getTitolnoticia();
     return myUser::text2url($Nom);
 }