当前位置: 首页>>代码示例>>PHP>>正文


PHP CForm::get_hidden方法代码示例

本文整理汇总了PHP中CForm::get_hidden方法的典型用法代码示例。如果您正苦于以下问题:PHP CForm::get_hidden方法的具体用法?PHP CForm::get_hidden怎么用?PHP CForm::get_hidden使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CForm的用法示例。


在下文中一共展示了CForm::get_hidden方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: if

			            
			  <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 = " . $user['id_ent'], 'nb_reponse')) { ?>
                <a href="../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>
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:29,代码来源:user_groupeUtilitaire.php

示例2: if

          <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>
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:image_menu.php

示例3: if

		 </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) ?> />
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:contact.php

示例4: if

          <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>
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:opportunite.php

示例5:

				              	</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>
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:campagne.php

示例6: if

             <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>
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:envoi-old.php

示例7: foreach

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) { ?>
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:mp3edit.php

示例8:

/*---------------------------------------------------------------------
		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>
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:29,代码来源:upload.php

示例9: CTableGroupe

          	<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(
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:envoi-campagne.php

示例10: Virgule

          		<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)  ?>
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:import.php

示例11: if

          }
 		}
 		
 		?>
          
			</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" ; ?> >>"/>
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:hb_piecesjointes.php


注:本文中的CForm::get_hidden方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。