コード例 #1
0
			            
			  <td style="text-align: center;">
              		<?php echo $opp_num[$user['idopportunite']]; ?>
              		
		      </td>

              <td align="center"><a href="contact.php?a=5&id=<?php echo $user['id_ent'] ?>" target="_parent"><img src="../img/b_edit.png" alt="modifier, afficher" /></a></td>
              <td align="center"><?php echo CHtmlSession::get_delbutton($a, $user['id_ent'], $id, $user['id_ent']) ?></td>
              <td><a href="envoi.php?destinataire=<?php echo $user['email'] ?>&a=4" target="_parent">&gt;&gt;</a></td>
              <td align="center"><?php if(CBdd::select_one("SELECT count(id) AS nb_reponse FROM reponse WHERE iduser = "******"../src/reponse.php?id=<?php echo $user['id_ent'] ?>" target="popup" onclick="popup(this.href, this.target, '600', '500'); return false;"> >> </a>
                <?php } ?></td>
              <td><input type="checkbox" name="ids[]" class="id_del" value="<?php echo $user['id_ent'] ?>"/></td>
            </tr>
            <?php $i++; 
			}
			}
			?>
</table>
   <p> <?php echo CForm::get_hidden(7); ?> </p>   
   		<p>
   		<input type="hidden" name="id_groupe" value="<?php echo $_SESSION['id_groupe']; ?>"/>   		
   		</p>
   			
</form>
  <?php } ?>
</div>
</div>
</body>
</html>
コード例 #2
0
ファイル: image_menu.php プロジェクト: rakotobe/Rakotobe
          <p>
            <input name="creer" type="submit" value="Ajouter >>"/>
          </p>
          </fieldset>
        </form>
        <?php } ?>

<?php 
//----------------------------------------------------------------------------------------------
// MODIF
//----------------------------------------------------------------------------------------------
?>
      <?php if($a == 5) { ?>
        <form id="form_modif" method="post" action="image_menu.php" enctype="multipart/form-data">
          <p> <?php echo CForm::get_hidden(55) ?> </p>
		  <p> <?php echo CForm::get_hidden($id, 'id') ?> </p>
          <fieldset>
          <legend>Formulaire de modification d'image</legend>
          <p>
            <label>Image actuel</label>
            <input id="image" name="image" type="file" onchange="render_ziplabel($F('image'))"/>
            <?php echo CHtml::get_msginfo($error_signe['image'])?></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          <?php echo CHtml::get_msginfo($error_signe['etat'])?></p>
          <p>
            <input name="creer" type="submit" value="Modifier >>"/>
          </p>
コード例 #3
0
ファイル: contact.php プロジェクト: rakotobe/Rakotobe
		 </script>
        <?php } ?>
        <?php 
//----------------------------------------------------------------------------------------------
// MODIF
//----------------------------------------------------------------------------------------------
?>
        <?php if($a == 5) { ?>
        <form id="form_modif" method="post" action="contact.php" enctype="multipart/form-data">
          <p> <?php echo CForm::get_hidden(55) ?> </p>
          <p> <?php echo CForm::get_hidden($id, 'id') ?> </p>
          <fieldset>
		  
		  <? // GAUCHE
		   ?>
            <legend>Formulaire de modification d'utilisateur <?php echo CForm::get_hidden($id_ent, 'id') ?></legend>
            <div class="floatleft">
              <h2>Param&egrave;tres de login</h2>
              <p>
                <label>Login</label>
                <input name="login" type="text" value="<?php echo  $toUsers['login_ent'] ?>" />
                <?php echo CHtml::get_msginfo($error_signe['login'])?> </p>
              <p>
                <label>Passe</label>
                <input name="passe" type="text" value="<?php echo  $toUsers['password_ent'] ?>" />
                <?php echo CHtml::get_msginfo($error_signe['passe']) ?> </p>
              <?php if(CTableUtilisateur::is_admin($_SESSION['idmbr'])) { ?>
              <p>
                <label>Type </label>
                <?php if(!CTableUtilisateur::is_admin($id))  { ?>
                <input  type="radio" name="type" value="0" <?php echo CForm::get_checked($type,0) ?> />
コード例 #4
0
ファイル: opportunite.php プロジェクト: rakotobe/Rakotobe
          <p>
            <input name="creer" type="submit" value="Ajouter >>"/>
          </p>
          </fieldset>
        </form>
        <?php } ?>

<?php 
//----------------------------------------------------------------------------------------------
// MODIF
//----------------------------------------------------------------------------------------------
?>
        <?php if($a == 5) { ?>
        <form id="form_modif" method="post" action="opportunite.php">
          <p> <?=CForm::get_hidden(55) ?> </p>
		  <p> <?=CForm::get_hidden($id, 'id') ?> </p>
          <fieldset>
          <legend>Formulaire de modification de opportunit&eacute;</legend>
          <p>
            <label>Titre </label>
            <input name="nom" type="text" value="<?=$nom ?>" />
            <?=CHtml::get_msginfo($error_signe['nom'])?></p>
            <p>
                <label>Texte </label>
                <select name="texId" tmt:message="Veuillez sélectionner le champ texte" tmt:required="false">
                <option value="0">Aucun</option>
                <?=CForm::get_option($texId, 'texte', 'id', 'nom', 1); ?>
                </select>          				
          </p>
          <p>
                <label>Pi&egrave;ce-jointe </label>
コード例 #5
0
ファイル: campagne.php プロジェクト: rakotobe/Rakotobe
				              	</select>
				          	</p>
          					<p>
          						<label>Texte</label>
          						<select name="id_texte">
				                	<?php echo CForm::get_option($envoi['text'], 'texte') ?>
				              	</select>
          					</p>
          					<p>
          						<label>Date d'envoi</label>
          						<input type='text' name="date" id="envoi-date"  value="" onmousedown="javascript:openDate(this);"/>
          					</p>
          					<p>
					           <input id="valid" name="valid" type="submit" value="Valider >>"/>
					            <input type="hidden" name="id_campagne" value="<?php echo $id; ?>"/>
					            <?php echo CForm::get_hidden(44); ?>
					        </p>
          				</fieldset>
         				<?php
         			}
         		?>
         	</div>
        </form>
        <?php } ?>
        <!-- InstanceEndEditable --></div>
    </div>
    <hr class="clearfloat" />
  </div>
</div>
</body>
<!-- InstanceEnd --></html>
コード例 #6
0
ファイル: envoi-old.php プロジェクト: rakotobe/Rakotobe
             <input name="save" type="submit" value="Sauvegarder"/>
             <input name="send" type="submit" value="Envoyer imm&eacute;diatement"/>
             <input name="queue" type="submit" value="Envoyer &agrave; la date pr&eacute;vue"/>
         </p>
     </fieldset>
 </form>
 <?php } ?>
 <?php
 //----------------------------------------------------------------------------------------------
 // PUBLIPOSTAGE
 //----------------------------------------------------------------------------------------------
 ?>
 <?php if($a == 7) { ?>
 <form id="form_publipostage" method="post" action="pdf.php" target="_blank">
     <p><?php echo CForm::get_hidden(77) ?></p>
     <p><?php echo CForm::get_hidden($id, "id") ?></p>
     <fieldset>
         <legend>Formulaire de publipostage</legend>
         <div class="floatleft">
             <p>
                 <textarea name="expediteur" id="expediteur_publipostage"><?php echo CFunction::clean($expediteur); ?></textarea>
                 <?php echo CHtml::get_msginfo($error_signe['expediteur'])?></p>
         </div>
         <div class="floatright">
             <p>
                     <?php echo CFunction::clean($destinataire) ?>
             </p>
             <p>
                 <input name="date"  id="date_publipostage" type="text" value="<?php echo CDate::formate($date) ?>" onmousedown="javascript:openDate(this);"/>
             </p>
         </div>
コード例 #7
0
ファイル: mp3edit.php プロジェクト: rakotobe/Rakotobe
select, input[type=text] {
	width:400px;
}

div#main {
	width:600px;
	text-align:left;

}

</style>
</head>
<body>
<div id="main">
  <form id="mp3edit" name="mp3edit" method="get" action="mp3edit.php">
    <p><?php echo CForm::get_hidden(44) ?></p>
    <fieldset>
    <legend>Generateur de lecteur mp3</legend>
    <p>
      <select name="url_base" onChange="document.mp3edit.submit();">
        <option>Choisir le dossier</option>
        <?php foreach($arr_dir as $dir) { ?>
        <option <?php if($dir == $url_base) echo "selected" ?>><?php echo $dir ?></option>
        <?php } ?>
      </select>
    </p>
    <p>
      <select name="url_file">
        <option>Choisir le mp3</option
		>
        <?php foreach($arr_file as $file) { ?>
コード例 #8
0
ファイル: upload.php プロジェクト: rakotobe/Rakotobe
/*---------------------------------------------------------------------
		VARIABLES HTTP
----------------------------------------------------------------------*/
if(!empty($_GET['url_dest'])) $url_desti 	= $_GET['url_dest'] ; else if(!empty($_POST['url_dest'])) $url_desti 	= $_POST['url_dest'];
if(!empty($_GET['id_elt']))   $id_elt   	= $_GET['id_elt']   ; else if(!empty($_POST['id_elt']))   $id_elt 		= $_POST['id_elt'];

/*--------------------------------------------------------------------
		TRAITEMENTS
----------------------------------------------------------------------*/
if(!empty($_POST['upload'])) { // upload
	$name = $_FILES['file']['name'];
	if(!CUserFile::upload_file($_FILES['file'], $url_desti)) {
		$error_signe['file']  	= "*";
		$msginfo = "&nbsp;Echec";
	} else {
		$value = $name;
		?>
		<script type='text/javascript'>insertOption('<?php echo $name ?>', '<?php echo $id_elt ?>')</script>
		<?php
	}
}
?>
<form action="" method="post" enctype="multipart/form-data" name="form_upload">
<?php echo CForm::get_hidden($url_desti, '$url_desti') ?>
<?php echo CForm::get_hidden($id_elt, 'id_elt') ?>
<input type="file" name="file" /><input name="upload" type="submit" value="upload" /><?php echo CHtml::get_msginfo($msginfo) ?>
</form>
</body>
</html>
コード例 #9
0
ファイル: envoi-campagne.php プロジェクト: rakotobe/Rakotobe
          	<p>
          		<label>Texte</label>
          		<select name="id_texte">
                	<?php echo CForm::get_option($envoi['id_text'], 'texte') ?>
              	</select>
          	</p>
          	<p>
          		<label>Date d'envoi</label>
          		<input id="envoi-date" type='text' name="date" id="date" value="<?php echo CDate::formate_date($envoi['date']); ?>" onmousedown="javascript:openDateRange(this, '<?php echo $left ? $left : $zDateNowBar; ?>', '<?php echo $right; ?>');"/>
          	</p>
          	<p>
	            <input id="valid" name="valid" type="submit" value="Valider >>"/>
	            <input type="hidden" name="id" value="<?php echo $envoi['id']; ?>"/>
	            <input type="hidden" name="id_campagne" value="<?php echo $envoi['id_campagne']; ?>"/>
							<input type="hidden" name="isGr" value="<?php echo $envoi['type_envoi']; ?>"/>
	            <?php echo CForm::get_hidden(55) ?>
	          </p>
          </fieldset>
		<?php
		break;
	case 55:		// ENREGISTREMENT MODIFICATION
	
		if ( $bIsGrGrp == 0 ){
			$obj  	= new CTableGroupe(array('id'=>$destinataire));
		}
		else{
			$obj  	= new CTableGrGroupe(array('id'=>$destinataire));
		}
		$groupe = $obj->select_row();
				
		$envoi = new CTableEmail(array(
コード例 #10
0
ファイル: import.php プロジェクト: rakotobe/Rakotobe
          		<option value="PNT">Point Virgule (Pour Excell ...)</option>
          		<option value="VRG">Virgule (Pour Outlook ...)</option>
          	</select>
          </p>
          <p>
            <input name="submit" type="submit" value="Charger >>"/>
          </p>
          </fieldset>
        </form>   
      <?php } ?>
      
      <?php if($a == 1) { ?>
      <form id="form_syncro" name="form_syncro" action="<?php echo $_SERVER["PHP_SELF"] ?>" method="post">
		  <p> <?php echo CForm::get_hidden(2) ?> </p>
          <p> 
          		<?php echo CForm::get_hidden($url_file, 'url_file') ?>
          		<input type="hidden" name="separateur" value="<?php echo ($separateur==';')? 'PNT':'VRG'; ?>"/>
           </p>
          <fieldset>
          <legend>Etape 2/2 : Syncro Utilisateur-Csv</legend>
          <div class="floatleft">
          <p>
          <label>Civilit&eacute;</label>
          <select name="civilite">
          <?php echo CFormCsv::get_option($arr_titre_champ)  ?>
          </select>
          </p>
          <p>
          <label>Nom</label>
          <select name="nom">
          <?php echo CFormCsv::get_option($arr_titre_champ)  ?>
コード例 #11
0
          }
 		}
 		
 		?>
          
			</table>      
			
 <?php 	
 //----------------------------------------------------------------------------------------------
// AJOUT
//-----------------------------------------------------------------------------------------------
 if ($a == 4 || $a == 5){
 	?>
 	<form id="form_ajout" method="post" action="hb_piecesjointes.php" enctype="multipart/form-data" tmt:validate="true">
          <?php if ($a == 4) echo CForm::get_hidden(44) ; else echo CForm::get_hidden(55) ; ?>
          <?php if ($a == 5) echo CForm::get_hidden($id, 'id') ; ?>
          <fieldset>
          <legend>Formulaire <?php if ($a == 4) echo "d'ajout" ; else echo "de modification" ; ?> de pieces jointes</legend>
          <p>Ne pas depassé 10Mo pour le fichier</p> 
          <p>
            <label>Piece </label>
           	<input  name="piece" type="file" onchange="render_ziplabel($F('piece'))" tmt:invalidvalue="0" tmt:message="Veuillez choisir une piece" tmt:required="true"/>
           	<?php if ($a == 5) echo '<a href="' . $toPieces['piece'] . '" target="_blank" >' . $toPieces['piece'] . "</a>" ; ?>
		  </p>          
          <p>
            <label>Publier </label>
            <input  type="radio" name="etat" value="0" <?php echo CForm::get_checked($toPieces['etat'], 0) ?> />non
            <input  type="radio" name="etat" value="1" <?php echo CForm::get_checked($toPieces['etat'], 1) ?> />oui
          </p>
          <p>
            <input name="creer" type="submit" value="<?php if ($a == 4) echo "Ajouter" ; else echo "Modifier" ; ?> >>"/>