예제 #1
0
		
	      
      
  <?php 
} else {
    ?>
  
  	<div class="REQUADRE">
  	<div class="TITOL">Llistat de missatges (<a href="<?php 
    echo url_for('gestio/gMissatges?accio=SF');
    ?>
">Veure missatges futurs</a>)</div>
        <div class="DADES" style="width:650px;">
         <?php 
    if ($MISSATGES->getNbResults() == 0) {
        echo '<div>No s\'ha trobat cap resultat d\'entre ' . MissatgesPeer::doCount(MissatgesPeer::getCriteriaActiu(new Criteria(), $IDS)) . ' disponibles.</div>';
    } else {
        $dif = "";
        foreach ($MISSATGES->getResults() as $M) {
            if ($dif != $M->getPublicacio('d/m/Y')) {
                echo '<div style="height:20px; clear:both;"></div>';
                echo '<div class="gray" style="padding:4px; border-bottom:1px solid #CCCCCC;"><b>' . diaSetmanaText($M->getPublicacio('Y-m-d')) . ' </b></div>';
            }
            $SPAN = '<span>' . $M->getText() . '</span>';
            $R = $M->getRespostesCount();
            $RESP = $R > 0 ? ' <span style="font-size:8px; color: gray;">(' . $R . ' resposts/es )</span>' : "";
            if ($M->getIsglobal()) {
                echo '<div style="border-bottom:1px solid #CCCCCC; background-color:#E4F7D9;">                      				
                      				<div style="float:left; width:500px;"><div style="padding:4px">' . link_to(image_tag('intranet/Submenu2.png') . ' ' . $M->getTitol() . $SPAN, 'gestio/gMissatges?accio=C&IDM=' . $M->getMissatgeid(), array('class' => 'tt2')) . $RESP . '</div></div>
                      				<div style="float:left; width:150px;">
                                        <div style="padding:4px"><b>' . $M->getUsuaris()->getNom() . ' ' . $M->getUsuaris()->getCog1() . '</b> de