public function setup()
 {
     $this->setWidgets(array('idMissatgesLlistes' => new sfWidgetFormInputHidden(), 'Llistes_idLlistes' => new sfWidgetFormChoice(array('choices' => LlistesPeer::select($this->getOption('IDS')))), 'Enviat' => new sfWidgetFormInputHidden()));
     $this->setValidators(array('idMissatgesLlistes' => new sfValidatorPropelChoice(array('model' => 'Missatgesllistes', 'column' => 'idMissatgesLlistes', 'required' => false)), 'Llistes_idLlistes' => new sfValidatorPropelChoice(array('model' => 'Llistes', 'column' => 'idLlistes')), 'Enviat' => new sfValidatorDate()));
     $this->widgetSchema->setNameFormat('missatgesllistes[%s]');
     $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);
 }
示例#2
0
文件: _gestio.php 项目: nagiro/intra
function gestiona_llistes($LLISTES, $MISSATGE)
{
    ?>
	<form name="gDades" action="<?php 
    echo url_for('web/gestio?accio=sl');
    ?>
" method="post">
	  
		<FIELDSET class="REQUADRE"><LEGEND class="LLEGENDA">Llistes de correu</LEGEND>
		   
			<table class="FORMULARI">
			
				<?php 
    echo missatge($MISSATGE);
    ?>
			   
				<?php 
    foreach (LlistesPeer::select() as $K => $L) {
        ?>
				          
					<TR><TD><?php 
        echo checkbox_tag('LLISTA[]', $K, isset($LLISTES[$K]));
        ?>
</TD><TD><?php 
        echo $L;
        ?>
</TD></TR>
					      	
				<?php 
    }
    ?>
					
			</table>
			         
		</FIELDSET>
	
	   <FIELDSET class="REQUADRE"><LEGEND class="LLEGENDA">Accions</LEGEND>
	      
		<table class="FORMULARI">
		   
			<TR><TD colspan="2"><?php 
    echo submit_tag('Modifiqueu', array('class' => 'BOTO_ACTIVITAT', 'style' => 'width:100px;'));
    ?>
</TD></TR>
			
		</table>
		         
	   </FIELDSET>

	</form>

   <?php 
}
示例#3
0
    ?>


	<form action="<?php 
    echo url_for('gestio/gLlistes');
    ?>
" method="post">            
	 	<DIV class="REQUADRE">	 
         <DIV class="TITOL">Escull les llistes on vols enviar-lo </DIV>
            <?php 
    echo input_hidden_tag('IDM', $IDM);
    ?>
            	
	    	<table class="FORMULARI" width="600px">
	    		<tr><td>Llistes: </td><td><?php 
    echo select_tag('LLISTES_ENVIAMENT', options_for_select(LlistesPeer::select($IDS), $LLISTES_ENVIAMENT), array('multiple' => true));
    ?>
</td></tr>	    	                								
                <tr>
                	<td width="100px"></td>               	
	            	<td class="dreta" width="400px">
	            		<br>
	            		<button class="BOTO_ACTIVITAT" name="BSAVE_LLISTES">Guardar</button>
	            		<button class="BOTO_ACTIVITAT" name="BSEGUEIX_ENVIAMENT">Segueix -->></button>	            		    				            		         	            		
	            	</td>
	            </tr>                	 
      		</TABLE>
      	</DIV>
      	
     </form>