示例#1
0
$fic		= CFunctions::getUserParam('fic', array()) ;
$tab_fic	= CFunctions::getUserParam('tab_fic',array());
$igp		= CFunctions::getUserParam('igp', 0);

/*--------------------------------------------------------------------
		TRAITEMENTS
----------------------------------------------------------------------*/
switch ($a) 
{

	case 0 : // Afficher
		break;
		
	case 2 :
			if(!empty($_GET['id'])) $id = $_GET['id'];
			$gpml = new CTableGrpMl(array('id'=>$id));
			$gpml ->reverse_etat();
		break;
		
	case 3 :
			if(!empty($_GET['id'])) $id = $_GET['id'];
		break;
		
	case 33 : // Suppr Validation
			if(!empty($_GET['id'])) $id = $_GET['id'];
			//$zGpMl = CTableGrpMl::get_elm($id);
			CTableMoulGpFic::delete_elm($id);
			CTableGrpMl::delete_elm($id);
			$a = 0;
		break;
	
示例#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){?>