Exemple #1
0
<? 
//----------------------------------------------------------------------------------------------
// MODIF
//----------------------------------------------------------------------------------------------
?>
      <? if($a == 5) { ?>
        <form id="form_modif" method="post" action="departement.php" enctype="multipart/form-data">
          <p> <? echo CForm::get_hidden(55) ?> </p>
		  <p> <? echo CForm::get_hidden($id, 'id') ?> </p>
          <fieldset>
          <legend>Formulaire de modification de menu </legend>
		  <p id="menu">
				<label>Pays</label>
				<select name="pays">
						<? echo CForm::get_option($pays, 'pays', 'code', 'nom', CTableUser::is_admin($_SESSION['idmbr']) ?  '1' : ' idreda = ' . $_SESSION['idmbr']); ?>
				</select>
				<? echo  CHtml::get_msginfo($error_signe['pays'])?> 
		  </p>
          <p>
            <label>Titre </label>
            <input name="nom" type="text" value="<? echo $nom ?>" />
            <? echo  CHtml::get_msginfo($error_signe['nom'])?>		  </p>
          <p>
            <input name="creer" type="submit" value="Modifier >>"/>
          </p>
          </fieldset>
        </form>
        <? } 
		?>
        <!-- InstanceEndEditable --></div>
Exemple #2
0
<? 
//----------------------------------------------------------------------------------------------
// MODIF
//----------------------------------------------------------------------------------------------
?>
      <? if($a == 5) { ?>
        <form id="form_modif" method="post" action="<? echo $_SERVER['REQUEST_URI'] ?>" enctype="multipart/form-data">
          <p> <? echo CForm::get_hidden(55) ?> </p>
		  <p> <? echo CForm::get_hidden($id, 'id') ?> </p>
          <fieldset>
          <legend>Formulaire de modification de menu </legend>
		   <p id="menu">
			<label>Departement</label>
			<select name="departement">
				<? echo CForm::get_option($comVal['departement'], 'departement', 'id_dep', 'nom') ?>
			</select>
		  </p>
          <p>
            <label>Commune </label>
            <input name="nom" type="text" value="<? echo $comVal['nom_com'] ?>" />
            <? echo  CHtml::get_msginfo($error_signe['nom'])?>		  </p>
		  <p>
            <label>Code postal </label>
            <input name="cp" type="text" value="<? echo $comVal['CP'] ?>" />
            <? echo  CHtml::get_msginfo($error_signe['cp'])?>		  </p>
	      <p>
            <label>Url </label>
            <input name="url" type="text" value="<? echo $comVal['urlCommune'] ?>" />
            <? echo  CHtml::get_msginfo($error_signe['url'])?>		  </p>
               <p>
Exemple #3
0
  <p>
    <label id="label_nom">Nom </label>
    <input type="text" name="nom" id="nom" value="" />
</p>
  <p>
    <label id="label_prenom">Pr&eacute;nom </label>
    <input type="text" name="prenom" id="prenom" value="" />
</p>
  <p>
    <label id="label_expediteur">Votre email </label>
    <input type="text" name="expediteur" id="expediteur" value="" />
  </p>
   <p>
    <label id="label_pays">Pays</label>
    <select name="pays" id="pays">
      <?php echo CForm::get_option($pays, "pays") ?>
    </select>
  </p>
  <p>
    <label id="label_sujet">Sujet</label>
    <input type="text" name="sujet" id="sujet" value="" />
  </p>
  <p>
    <label id="label_message">Message</label>
    <textarea name="message" id="message"></textarea>
  </p>
  <p>
    <label id="label_image">Code de s&eacute;curit&eacute;</label>
    <img src="/plug/captcha/secure.php?fake=<?php echo md5(microtime()); ?>" alt="CAPTCHA Image" />
  </p>
  <p>
Exemple #4
0
          <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>
                <select name="pieId" tmt:message="Veuillez sélectionner le champ piece" tmt:required="false">             			
                <option value="0">Aucun</option>
                <?=str_replace('../../userfiles/pieces_jointes/', '', CForm::get_option($pieId, 'hbpiecesjointes', 'id', 'piece', 1)); ?>
                </select>         				
          </p>
		  <p>
            <label>Publier </label>
            <input  type="radio" name="etat" value="0" <?=CForm::get_checked($etat,0) ?> />non
            <input  type="radio" name="etat" value="1" <?=CForm::get_checked($etat,1) ?> />oui<?=CHtml::get_msginfo($error_signe['etat'])?></p>
          <p>
            <input name="creer" type="submit" value="Modifier >>"/>
          </p>
          </fieldset>
        </form>
        <?php } ?>
      <!-- InstanceEndEditable --></div>
    </div>
    <hr class="clearfloat" />
?>
        <?php if($a == 5) { ?>
        <?php 
        
        $file_url = '/userfiles/image/galeries/'.$gal['dossier'].'/'.$image['image'];
        
        ?>
         <form id="form_ajout" name="form_ajout" method="post" action="fichier-galerie.php"  enctype="multipart/form-data">
          <p> <?php echo CForm::get_hidden(55) ?> </p>
          <fieldset>
          <legend>Formulaire d'ajout de fichier </legend>
          <p>
            <label>Emplacement</label>
            <select name="idgal">
            	<option value="0">Choisir une galerie</option>
            	<?php echo CForm::get_option($_SESSION['idgal'], 'galerie', 'id', 'nom', "1") ?>
            </select>
            <?php echo $error_signe['galerie']?>
            </p>
           <p>
           	<label>Fichier actuel</label>
           	<a href="<?php echo $file_url; ?>" target="_blank"><?php echo $file_url; ?></a>
           </p>        
          <p>
            <label>Fichier </label>
            <input id="file" name="file" type="file" onchange="render_ziplabel(this)"/>
            <?php echo $error_signe['nom']?>   
            <span id="zip_label" class="hide">
            	&nbsp;&nbsp;&nbsp;&nbsp;D&eacute;zipper 
            	<span class="action" id="unzip_yes" onclick="javascript:set_zip_mode(1);">oui</span> | 
            	<span id="unzip_no" class="action" onclick="javascript:set_zip_mode(0);">non</span>	           
Exemple #6
0
            <input name="nom" type="text" value="<?php echo  $nom?>" />
            <?php echo $error_signe['nom']?>		  </p>
		  <?php if(CTableUser::is_admin($_SESSION['idmbr'])) { ?>
          <p>
            <label>R&eacute;dacteur</label>
            <select name="idreda">
              <?php echo CForm::get_option($idreda, 'user', 'id', 'login', ' type = 1 OR type = 2') ?>
            </select>
            <?php echo $error_signe['idreda']?> </p>
		  <?php } ?>
          <p>
            <label>Visiteur</label>
            <select name="idlecteur">
              <option value="all" <?php echo CForm::get_selected($idlecteur, 'all'); ?>>publics</option>
              <option value="0" <?php echo CForm::get_selected($idlecteur, '0'); ?>>tous les membres</option>
              <?php echo CForm::get_option($idlecteur, 'user', 'id', 'login', ' type = 0 OR type = 3') ?>
            </select>
            <?php echo $error_signe['idreda']?> </p>
          <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 $error_signe['etat']?></p>
          <p>
            <input name="creer" type="submit" value="Modifier >>"/>
          </p>
          </fieldset>
        </form>
        <?php } ?>
Exemple #7
0
 <form id="form_ajout" method="post" action="envoi.php" enctype="multipart/form-data">
     <p> <?php echo CForm::get_hidden(44) ?> </p>
     <fieldset>
         <legend>Formulaire d'ajout d'email</legend>
         <p>
             <label>Exp&eacute;diteur </label>
             <input name="expediteur" type="text" id="expediteur" value="<?php echo $expediteur ?>" readonly="true" />
             <?php echo  CHtml::get_msginfo($error_signe['expediteur'])?></p>
         <p>
             <label>Destinataire(s) </label>
             <input name="destinataire" type="text" value="<?php echo $destinataire ?>" id="destinataire"/>
             <?php echo  CHtml::get_msginfo($error_signe['destinataire'])?></p>
         <p>
             <label>Texte </label>
             <select name="id_texte">
                     <?php echo CForm::get_option($id_texte, "texte") ?>
             </select>
             <?php echo  CHtml::get_msginfo($error_signe['id_texte'])?></p>
         <p>
             <label>Pi&egrave;ce jointe</label>
             <input name="pj" type="text" value="<?php echo $pj ?>" id="pj"/>
             <a href="../../userfiles/browser.php" target="browser" onclick="popup(this.href, this.target, 445, 480);return false">
                 <input type="button" name="parcourir" value="Parcourir"/>
             </a> </p>
         <p>
             <label>Date  d'envoi</label>
             <input name="date" type="text" value="<?php echo $date ?>" id="date" onmousedown="javascript:openDate(this);"/>
         </p>
         <p>
             <input name="creer" type="submit" value="Ajouter >>"/>
         </p>
Exemple #8
0
      <div id="titre"><!-- InstanceBeginEditable name="titre" -->Exporter des contacts<!-- InstanceEndEditable --></div>
    </div>
  </div>
  <div id="contentarea">
    <div id="left"><?php include("../nav/menu_g.php"); ?></div>
    <div id="center">
      <div id="page"><!-- InstanceBeginEditable name="page" --><?php echo CHtml::get_toolbar() ?><!-- InstanceEndEditable --></div>
	  <div id="over"><!-- InstanceBeginEditable name="over" --><?php echo CHtml::get_msginfo($msginfo) ?><!-- InstanceEndEditable --></div>
	  <div id="main"><!-- InstanceBeginEditable name="main" -->
      <form action="<?php echo $_SERVER["PHP_SELF"] ?>" method="post">
		  <p> <?php echo CForm::get_hidden(1) ?> </p>
          <fieldset>
          <p>
            <label>Groupe de contacts</label>
            <select name="id_groupe">
            <?php echo CForm::get_option($id_groupe, 'groupe'); ?>
            </select>
          </p>
          <p>
          	<label>S&eacute;parateur</label>
          	<select name="separateur">
          		<option value="PNT">Point Virgule (Pour Excell ...)</option>
          		<option value="VRG">Virgule (Pour Outlook ...)</option>
          	</select>
          </p>
          <p>
            <input name="submit" type="submit" value="Exporter"/>
          </p>
          </fieldset>
        </form>      
      </form>
Exemple #9
0
<?php 
//----------------------------------------------------------------------------------------------
// MODIF
//----------------------------------------------------------------------------------------------
?>
      <?php if($a == 5) { ?>
        <form id="form_modif" name="form_modif" method="post" action="<? echo $_SERVER['REQUEST_URI'] ?>" 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 de menu </legend>
		  <p id="menu">
			<label>Secteur</label>
			<select name="idcat">
				<?php echo CForm::get_option($idcat, 'secteur', 'id_sec', 'nom_sec') ?>
			</select>
		  </p>
          <p>
            <label>Titre </label>
            <input name="nom" type="text" value="<?php echo $nom ?>" />
            <?php echo  CHtml::get_msginfo($error_signe['nom'])?>		  </p>
          <p>
		  <p class="go clear">
             <label>Mot-clé</label>
             <input type="text" name="txtcle" id="txtcle" class="text" />
             <input type="button" name="bout" value="Go" onClick="test(document.forms.form_modif.txtcle.value,<? echo $id; ?>)">
          </p>
          <ul class="cleExemple" id="motcle">
          	  	<? $Zsql = "SELECT nom_motcle, id_motcle  FROM motcle WHERE cat_motcle=".$id; 
					//print_r($Zsql);
      <div id="page"><!-- InstanceBeginEditable name="page" --><?php echo CHtml::get_toolbar(array('add'=>'0', 'cancel'=>'0')) ?><!-- InstanceEndEditable --></div>
	  <div id="over"><!-- InstanceBeginEditable name="over" --><?php echo CHtml::get_msginfo($msginfo) ?><!-- InstanceEndEditable --></div>
	  <div id="main"><!-- InstanceBeginEditable name="main" -->

<?php
//----------------------------------------------------------------------------------------------
// FILTRE
//----------------------------------------------------------------------------------------------
?>
            <form id="form_filtre" name="form_filtre" method="get" action="moul_mail_valide.php">
              <p> <?php echo CForm::get_hidden(6); ?> </p>
              <p>
                Fichiers &nbsp;
                <select name="iMltListId"  onchange="document.form_filtre.submit();" width="50px">
                   <option value="0">Toutes les listes</option>
                   <?php echo CForm::get_option($iMltListId, 'moul_listes', 'id', 'nom') ?>
                </select>
              </p>
            </form>

            <div class="ajaxZone">
                <?php include 'moul_mail_valide_list_ajax.php'; ?>
            </div>

	  	<!-- InstanceEndEditable -->
	  	</div>
    </div>
    <hr class="clearfloat" />
  </div>
</div>
</body>
Exemple #11
0
            <label>Menu </label>
            <select name="idcat" onchange="update_select_art(document.forms['form_ajout'].elements['idcat'].options[document.forms['form_ajout'].elements['idcat'].selectedIndex].value, 'form_ajout');">
			  <option value="0">Choisir le menu</option>
   			  <?php echo CForm::get_option($idcat, 'categorie', 'id', 'nom', CTableUser::is_admin($_SESSION['idmbr']) ?  '1' : ' idreda = ' . $_SESSION['idmbr']); ?>
            </select>
            <?php echo CHtml::get_msginfo($error_signe['idcat'])?></p>
          <p>
            <label>Sous-menu </label>
            <select name="idart" id="idart" onchange="update_page(document.forms['form_ajout'].elements['idart'].options[document.forms['form_ajout'].elements['idart'].selectedIndex].value, 'form_ajout');">
            	<?php echo CForm::get_option($idart, 'article', 'id', 'nom', (CTableUser::is_admin($_SESSION['idmbr']) ?  '1 AND idcat = ' . $idcat : ' idreda = ' . $_SESSION['idmbr'] . ' AND idcat = ' . $idcat)); ?>
            </select>
           </p>
            <p>
            <label>Page </label>
            <select name="idpage" id="idpage">
						<?php echo CForm::get_option($idpage, 'page', 'id', 'nom', (CTableUser::is_admin($_SESSION['idmbr']) ?  '1 AND idart = ' . $idart : ' idreda = ' . $_SESSION['idmbr'] . ' AND idart = ' . $idart)); ?>
            </select>
            <?php echo CHtml::get_msginfo($error_signe['page'])?></p>
            <p>
                    <label>Date </label>
                    <input id="dateevent" name="dateevent" type="text" value="<?php echo $dateevent ?>"  />
                    <?php echo $error_signe['dateevent']?>
                </p>
		  </div>
		  <hr  class="clearfloat" />          
            <!--<p>
            <label>Texte d&eacute;filant</label>
            <input name="text" type="text" value="<?php echo  $text?>" /> 
            <?php echo CHtml::get_msginfo($error_signe['text'])?>                   
             </p>
             <p>
Exemple #12
0
<? 
//----------------------------------------------------------------------------------------------
// MODIF
//----------------------------------------------------------------------------------------------
?>
      <? if($a == 5) { ?>
        <form id="form_modif" name="form_modif" method="post" action="<? echo $_SERVER['REQUEST_URI'] ?>" enctype="multipart/form-data">
          <p> <? echo CForm::get_hidden(55) ?> </p>
		  <p> <? echo CForm::get_hidden($id, 'id') ?> </p>
          <fieldset>
          <legend>Formulaire de modification </legend>
		  <p id="menu">
			<label>Quartier</label>
			<select name="id">
				<? echo CForm::get_option($id, 'quartier', 'id_q', 'nom_q') ?>
			</select>
		  </p>
          <p>
		  <p class="go clear">
             <label>CP</label>
             <input type="text" name="txtcle" id="txtcle" class="text" />
             <input type="button" name="bout" value="Go" onClick="test(document.forms.form_modif.txtcle.value,<? echo $id; ?>,5)">
          </p>
          <ul class="cleExemple" id="cp">
          	  	<? 
					// Récuperation donnée quartier
					$Zsql = "SELECT nom_cp, id_cp FROM CpQuartier WHERE q_cp=".$id." ORDER BY id_cp";
					$requetQ = CBdd::select($Zsql);
					if ($requetQ){
					$i = 0;
Exemple #13
0
          <hr class="clearfloat"/>
          <div class="floatleft">
            <p>
              <label>Nom</label>
              <select onchange="this.form.submit();" name="filtre_nom_user" id="filtre_nom_user">
                <option value="%%">Tout</option>
                <?php echo CForm::get_option($filtre_nom_user, 'user', 'nom', 'nom', ' nom != "" AND email IN (SELECT expediteur FROM email WHERE expediteur != "*****@*****.**")') ?>
              </select>
            </p>
          </div>
          <div class="floatleft">
            <p>
              <label>Pr&eacute;nom</label>
              <select onchange="this.form.submit();" name="filtre_prenom_user" id="filtre_prenom_user">
                <option value="%%">Tout</option>
                <?php echo CForm::get_option($filtre_prenom_user, 'user', 'prenom', 'prenom', ' prenom != "" AND email IN (SELECT expediteur FROM email WHERE expediteur != "*****@*****.**")') ?>
              </select>
            </p>
          </div>
          <div class="floatright">
            <p>
              <input type="submit" value="Actualiser"/>
            </p>
          </div>
        </form>
        <script type="text/javascript">
            Calendar.setup({
                inputField     :    "filtre_date_debut",
                ifFormat       :    "%d-%m-%Y",
            });
			     Calendar.setup({
Exemple #14
0
     <label>Site web</label>
     <input name="web" type="text" value="<?=$web?>" />
   </p>
 </div>
 <div class="floatleft margin-left">
   <h2>Contact</h2>
   <p>
     <label>Etat contact</label>
     <input type="radio" value="0" <?=CForm::get_checked($etat_contact, 0) ?> name="etat_contact"/>
     Non contact&eacute;
     <input type="radio" value="1" <?=CForm::get_checked($etat_contact, 1) ?> name="etat_contact"/>
     Contact&eacute;</p>
   <p>
     <label>Opportunit&eacute;</label>
     <select id="idopportunite" name="idopportunite" <?php if ($etat_contact == 0) echo 'disabled="disabled"' ; ?>>
       <?=utf8_encode(CForm::get_option($idopportunite, 'gr_opportunite', 'id', 'nom', ' etat = 1')) ?>
     </select>
   </p>
   <p>
     <label>Date contact</label>
     <input name="date_contact" id="date_contact" type="text" value="<?=CDate::formate_date($date_contact) ?>" />
   </p>
   <div id="ajaxZone"></div>
   <?php if ($etat_contact != 0): ?>
     <script type="text/javascript">
     $(function(){
         $('#ajaxZone').load('hb_get_mail_content.php', {iOppId:$('#idopportunite').val(), iOppTypeId:1});
     });
     </script>
   <?php endif; ?>
   <h2>Rendez-vous</h2>
Exemple #15
0
/*---------------------------------------------------------------------
		IMPORTATIONS
----------------------------------------------------------------------*/
include_once("../inc/init.php");

/*---------------------------------------------------------------------
		VARIABLES HTTP
----------------------------------------------------------------------*/
$idart = !empty($_GET['idart']) ? $_GET['idart'] : 0;
/*--------------------------------------------------------------------
		TRAITEMENTS
----------------------------------------------------------------------*/
echo CForm::get_option($idart, 'page', 'id', 'nom', (CTableUser::is_admin($_SESSION['idmbr']) ?  '1 AND text LIKE \'%<!--GALERIE-->%\' AND idart = ' . $idart : ' idreda = ' . $_SESSION['idmbr'] . ' AND text LIKE \'%<!--GALERIE-->%\' AND idart = ' . $idart)); 
?>
<?php
session_start();
/*---------------------------------------------------------------------
		IMPORTATIONS
----------------------------------------------------------------------*/
include_once("../inc/init.php");

/*---------------------------------------------------------------------
		VARIABLES HTTP
----------------------------------------------------------------------*/
$idart = !empty($_GET['idart']) ? $_GET['idart'] : 0;
/*--------------------------------------------------------------------
		TRAITEMENTS
----------------------------------------------------------------------*/
echo CForm::get_option($idart, 'page', 'id', 'nom', (CTableUser::is_admin($_SESSION['idmbr']) ?  '1 AND text LIKE \'%<!--GALERIE-->%\' AND idart = ' . $idart : ' idreda = ' . $_SESSION['idmbr'] . ' AND text LIKE \'%<!--GALERIE-->%\' AND idart = ' . $idart)); 
?>
Exemple #16
0
            <p class="editeur">
              <?php
		   	$oFCKeditor = new FCKeditor('text') ;
			$oFCKeditor->BasePath = '../plug/fckeditor/';
			$oFCKeditor->Value = $text;
			$oFCKeditor->Height = '100';
			$oFCKeditor->Width = '825';
			$oFCKeditor->ToolbarSet = 'Footer';
			$oFCKeditor->Create() ;
			?>
            <?php echo $error_signe['text']?></p>
            <?php if(CTableUser::is_admin($_SESSION['idmbr'])) { ?>
          <p>
            <label>R&eacute;dacteur</label>
            <select name="idreda">
              <?php echo CForm::get_option($idreda, 'user', 'id', 'login', ' type != 0') ?>
            </select>
            <?php echo CHtml::get_msginfo($error_signe['idreda'])?> </p>
          <p>
            <?php } ?>
            <label>Publier </label>
            <input  type="radio" name="etat" value="0" <?php echo CForm::get_checked($etat,0) ?> <?php echo (CTableUser::is_admin($_SESSION['idmbr'])) ?  "" : "disabled = 'disabled'" ?>/>
            non
            <input  type="radio" name="etat" value="1" <?php echo CForm::get_checked($etat,1) ?> <?php echo (CTableUser::is_admin($_SESSION['idmbr'])) ?  "" : "disabled = 'disabled'" ?>/>
            oui <?php echo CHtml::get_msginfo($error_signe['etat'])?></p>
          <p>
            <input name="creer" type="submit" value="Modifier >>"/>
          </p>
          </fieldset>
        </form>
        <?php } ?>
Exemple #17
0
     <label>Site web</label>
     <input name="web" type="text" value="<?php echo $web?>" />
   </p>
 </div>
 <div class="floatleft margin-left">
   <h2>Contact</h2>
   <p>
     <label>Etat contact</label>
     <input type="radio" value="0" <?php echo CForm::get_checked($etat_contact, 0) ?> name="etat_contact"/>
     Non contact&eacute;
     <input type="radio" value="1" <?php echo CForm::get_checked($etat_contact, 1) ?> name="etat_contact"/>
     Contact&eacute;</p>
   <p>
     <label>Opportunit&eacute;</label>
     <select id="idopportunite" name="idopportunite" <?php if ($etat_contact == 0) echo 'disabled="disabled"' ; ?>>
       <?php echo utf8_encode(CForm::get_option($idopportunite, 'opportunite', 'id', 'nom', ' etat = 1')) ?>
     </select>
   </p>
   <p>
     <label>Date contact</label>
     <input name="date_contact" id="date_contact" type="text" value="<?php echo CDate::formate_date($date_contact) ?>" />
   </p>
   <div id="ajaxZone"></div>
   <?php if ($etat_contact != 0): ?>
     <script type="text/javascript">
     $(function(){
         $('#ajaxZone').load('hb_get_mail_content.php', {iOppId:$('#idopportunite').val(), iOppTypeId:1});
     });
     </script>
   <?php endif; ?>
   <h2>Rendez-vous</h2>
Exemple #18
0
 
 <form id="form_ajout" name="form_ajout" method="post" action="video.php">
   <p> <?php echo CForm::get_hidden(55); ?> </p>
   <p> <?php echo CForm::get_hidden($id, 'id') ?> </p>
   <fieldset>
   <legend>Formulaire d'ajout d'un video</legend>
   <p>
   	<label>Nom</label>
   	<input type="text" name="nom" value="<?php echo $nom; ?>" onkeyup="javascript:count(this, 'Trop de caract籥s');" />
   	<?php echo $error_signe['nom']?>
   </p>
   <p>
     <label>Emplacement</label>
      <select name="idpage">
      <option value="0">Choisir une page</option>
      <?php echo CForm::get_option($idpage, 'page', 'id', 'nom', '1 AND text LIKE \'%<!--VIDEO-->%\''); ?>
     </select>
     <?php echo $error_signe['page']?>
     </p>          
   <p>
     <label>Fichier </label>
     <?php 
     	$list = CFunction::rglob('*.flv', 0, '../../userfiles/media/');
     	$flv = array();
     	
     	foreach($list as $path) {
     		$path = str_replace('\\', '/', $path);
     		$info = pathinfo($path);
     		$dir = $info['dirname'];
     		$_paths = explode('/', trim($dir, '/'));
     		
Exemple #19
0
				          		<label>Nom Groupe</label>
				          		<select name="id_groupe">
				              	<?php 
				              		if ( !$bIsGrGrp ){
				              			echo CForm::get_option($id_groupe, 'groupe') ;
				              		}
				              		else{
				              			echo CForm::get_option($id_groupe, 'gr_groupe') ;
				              		}
				              	?>
				              	</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
         			}
         		?>
	      <td><?php echo (CTableUser::is_admin($_SESSION['idmbr']) && !CTableUser::is_admin($user['id'])) ? CHtmlSession::get_etat($user['id'], $user['etat'], $user['id']) : CHtml::get_etat($user['id'], $user['etat']) ?></td>
	      <td align="center"><?php echo CHtmlSession::get_editbutton($user['id'], $user['id']) ?></td>
	      <td align="center"><?php echo (CTableUser::is_admin($_SESSION['idmbr']) && !CTableUser::is_admin($user['id']))
	                ? CHtmlSession::get_delbutton($a, $user['id'], $id, $user['id']) : CHtml::get_delbutton($a, $user['id'], $id) ?></td>
	      <td><a href="envoi.php?destinataire=<?php echo $user['email'] ?>&a=4&isGr=1">>></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'] ?>" target="popup" onclick="popup(this.href, this.target, '600', '500'); return false;"> >> </a>
	        <?php } ?></td>
	      <td align="center"><input class="caseacocher" name="tab_user[<?php echo $i ?>]" type="checkbox" id="contact[<?php echo $i ?>]" value="<?php echo $user['id'] ?>" checked /></td>
	    </tr>
	    <?php $i++; } ?>
	  </table>
<?php
    //----------------------------------------------------------------------------------------------
    // GROUPE
    //----------------------------------------------------------------------------------------------
?>
	  <div class="floatright">
	    <p> <?php echo CForm::get_hidden(7) ?> </p>
	    <fieldset>
	      <p>
	        <label>Grouper dans</label>
	        <select name="id_groupe" id="id_groupe">
	          <?php echo CForm::get_option($id_groupe, 'gr_groupe', 'id', 'nom', ' etat = 1') ?>
	        </select>
	        <input type="submit" name="grouper" value="Enregistrer"/>
	      </p>
	    </fieldset>
	  </div>
	</form>
</div>
Exemple #21
0
			
			<? // DROITE
			?>
            <div class="floatleft margin-left">
              <h2>Contact</h2>
              <p>
                <label>Etat contact</label>
                <input type="radio" value="0" <?php echo CForm::get_checked($toUsers['etatcontact_ent'], 0) ?> name="etat_contact"/>
                Non contact&eacute;
                <input type="radio" value="1" <?php echo CForm::get_checked($toUsers['etatcontact_ent'], 1) ?> name="etat_contact"/>
                Contact&eacute;
			</p>
               <p>
                <label>Opportunit&eacute;</label>
                <select id="idopportunite" name="idopportunite" <?php if ($toUsers['etatcontact_ent'] == 0) echo 'disabled="disabled"' ; ?>>
                  <?php echo utf8_decode(CForm::get_option($idopportunite, 'opportuniteContact', 'id', 'nom', ' etat = 1')) ?>
                </select>
              </p>
              <p>
                <label>Date contact</label>
                <input name="date_contact" id="date_contact" type="text" value="<?php echo CDate::formate_date($toUsers['datecontact_ent']) ?>" />
              </p>
              <div id="ajaxZone"></div>
			 <?php if ($toUsers['etatcontact_ent'] != 0): ?>
                <script type="text/javascript">
                $(function(){
                    $('#ajaxZone').load('hb_get_mail_contentContact.php', {iOppId:$('#idopportunite').val(), iOppTypeId:1});
                });
                </script>
              <?php endif; ?>
			  
Exemple #22
0
<?php
session_start();
/*---------------------------------------------------------------------
		IMPORTATIONS
----------------------------------------------------------------------*/
include_once("../inc/init.php");

/*---------------------------------------------------------------------
		VARIABLES HTTP
----------------------------------------------------------------------*/
$idcat = !empty($_GET['idcat']) ? $_GET['idcat'] : 0;
$idart = 0;
/*--------------------------------------------------------------------
		TRAITEMENTS
----------------------------------------------------------------------*/
?>
<option value="0">Choisir le sous-menu</option>
<?php
echo CForm::get_option($idart, 'article_cat', 'id', 'nom', (CTableUser::is_admin($_SESSION['idmbr']) ?  '1 AND idcat = ' . $idcat : ' idreda = ' . $_SESSION['idmbr'] . ' AND idcat = ' . $idcat)); 
?>
Exemple #23
0
//----------------------------------------------------------------------------------------------
?>
        <?php if($a == 5) { ?>
        <form id="form_modif" method="post" action="article.php">
          <p> <?php echo CForm::get_hidden(55) ?> </p>
		  <p> <?php echo CForm::get_hidden($id, 'id') ?> </p>
          <fieldset>
          <legend>Formulaire de modification de sous-menu</legend>
          <p>
            <label>Titre </label>
            <input name="nom" type="text" value="<?php echo  $nom?>" />
            <?php echo  CHtml::get_msginfo($error_signe['nom'])?></p>
          <p>
            <label>Menu </label>
            <select name="idcat">
		   <?php echo CForm::get_option($idcat, 'categorie', 'id', 'nom', CTableUser::is_admin($_SESSION['idmbr']) ?  '1' : ' idreda = ' . $_SESSION['idmbr']); ?>
            </select>
            <?php echo  CHtml::get_msginfo($error_signe['idcat'])?> </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 $error_signe['etat']?></p>
          <p>
            <input name="creer" type="submit" value="Modifier >>"/>
          </p>
          </fieldset>
        </form>
        <?php } ?>
        <!-- InstanceEndEditable --></div>
    </div>
    <hr class="clearfloat" />
Exemple #24
0
            <input name="nom" type="text" value="<?php echo  $nom?>" />
            <?php echo $error_signe['nom']?>		  </p>
		  <?php if(CTableUserContact::is_admin($_SESSION['idmbr'])) { ?>
          <p>
            <label>R&eacute;dacteur</label>
            <select name="idreda">
              <?php echo CForm::get_option($idreda, 'entreprise', 'id_ent', 'login_ent', ' type = 1 OR type = 2') ?>
            </select>
            <?php echo $error_signe['idreda']?> </p>
		  <?php } ?>
          <p>
            <label>Visiteur</label>
            <select name="idlecteur">
              <option value="all" <?php echo CForm::get_selected($idlecteur, 'all'); ?>>publics</option>
              <option value="0" <?php echo CForm::get_selected($idlecteur, '0'); ?>>tous les membres</option>
              <?php echo CForm::get_option($idlecteur, 'entreprise', 'id_ent', 'login_ent', ' type = 0 OR type = 3') ?>
            </select>
            <?php echo $error_signe['idreda']?> </p>
          <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 $error_signe['etat_ent']?></p>
          <p>
            <input name="creer" type="submit" value="Modifier >>"/>
          </p>
          </fieldset>
        </form>
        <?php } ?>