Example #1
0
	          	</fieldset>
	        </form>
<?php 	}?>
<?php 	
/*-----------------------------------
 * MODIFICATION
 *-----------------------------------*/  
		if($a == 5555){
?>
	  		<form id="form_ajout" method="post" action="moul_groupe_mail.php">
	       		<p> <?php echo CForm::get_hidden(55); ?> </p>
          		<fieldset>
	          		<legend>Formulaire d'ajout de groupe email</legend>
          			<p>
            			<label>Nom</label>
            			<input name="nom_grp" type="text" value="<?php echo CTableGrpMl::get_elm($id);?>" />
		  			</p>
          			<p>
			            <label>Publier </label>
			            <input  type="radio" name="etat" value="0" <?php echo CForm::get_checked($etat,0) ?> />non
			            <input  type="radio" name="etat" value="1" <?php echo CForm::get_checked($etat,1) ?> />oui
          			</p>
          			<p>
            			<input name="creer" type="submit" value="Modifier >>" />
          			</p>
          		</fieldset>
       		</form>
       		<form method="post" action="moul_groupe_mail.php">
          		<p> <?php echo CForm::get_hidden(55555); ?> </p>
          		<p>
          			<strong>Enregistrer un groupe :</strong>
Example #2
0
          </tr>
<?php 			foreach($tMGp as $ik=>$moulsgrps){
					$iMV = CTableMoulGp::get_iEmail($moulsgrps['mlt_iListId']);
					$date= CTableMoulGp::select_date_fic($moulsgrps['mlt_iListId']);
					$tgps = CTableMoulGpFic::get_elm_of_fic($moulsgrps['mlt_iListId']);
					$nomfic = CTableMoulListe::get_nom_by_id($moulsgrps['mlt_iListId']);
?>
          <tr>
          	<td><?php echo $ik+1;?></td>
          	<td><?php echo $nomfic;?></td>
          	<td><?php echo CDate::date_switch(CDate::formate_date($date)); ?></td>
          	<td><a href="moul_mail_valide.php?iMltListId=<?php echo $moulsgrps['mlt_iListId'] ; ?>"><?php echo $iMV;?></a></td>
          	<td>
<?php 			include('moul_delete_ficgrp.php');?>
          	</td>
          	<td><?php if($tgps) echo CTableGrpMl::get_elm($tgps); else echo "<a>not in group</a>";?></td>
          	<td>
        		<?php if(!$tgps){?>
        		<input class="caseacocher" name="tab_fic[<?php echo $ik ?>]" type="checkbox" id="tab_fic[<?php echo $ik ?>]" value="<?php echo $moulsgrps['mlt_iListId'];?>" />
        		<?php }?>
        		<?php if($tgps) {?> 
        		<input type="checkbox" disabled="disabled" />
        		<?php }?>
        	</td>
          </tr>
<?php 			}?>
      </table>
      <p>
      	Enregister un groupe : 
      	<select name="igrp" invalid  tmt:message="Le nom de groupe ne doit pas ĂȘtre vide" tmt:required="true" >
<?php 			foreach($tGroups as $grps){?>