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


PHP CDate::formate_date方法代码示例

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


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

示例1: create

	function create($sitemap_name = '') {
		
		if(!$sitemap_name) $sitemap_name = SS_ADMIN_TO_USERFILE . "/sitemap.xml";
		
		if(empty($sitemap_name)) $sitemap_name = "sitemap_" . $rep_name . ".xml";
		$changefreq 	= array('daily', 'weekly', 'monthly');
		$priority		= array('0.1', '0.5', '1.0');
		$tab_archive	= array();

		rsort($tab_archive);
		$xml = simplexml_load_file(SS_ADMIN_TO_USERFILE . '/google/sitemap_base.xml');
		
		//scan bdd
		$sql = "SELECT * FROM page WHERE etat = 1";
		$res = CBdd::select($sql);
		while($page = mysql_fetch_array($res)) {
			$url = $xml->addChild('url');
			$url->addChild('loc', CUrl::get_urlsite() . "/" . CFunction::formate_chaine(utf8_decode($page['nom']), '-') . "_p" . $page['id']. ".html");
			$url->addChild('lastmod', CDate::formate_date($page['date']));
			$url->addChild('changefreq', $changefreq[rand(0, 2)]);
			$url->addChild('priority', $priority[rand(0, 2)]);
		}

		$html = $xml->asXML();
		file_put_contents($sitemap_name, $html);
	}
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:26,代码来源:CSitemap.php

示例2:

				                		}
				                		elseif ( $envoi['type_envoi'] == 1 ){
				                			echo CForm::get_option($envoi['id_groupe'], 'gr_groupe') ;
				                		}
				                	?>
				              	</select>
				          	</p>
				          	<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; ?>', '<?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']; ?>"/>
					             <?php echo CForm::get_hidden(55) ?>
					         </p>
          				</fieldset>
         				<?php
         			}
         			else {
         				?>
         				<fieldset>
          					<legend>Ajouter un Envoi</legend>
				  					<p>
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:campagne.php

示例3: for

          			<?php for($c = 0; $c < 194; $c++) echo "&nbsp;";?>
          			<input type="submit" value="Supprimer" />
          		</p>
          		<table  style="width: 875px; margin-left: 1px;" border="1" cellpadding="0" cellspacing="0">
	          		<tr align="center">
			            <th align="left" width="40px"><a href="?order=id">Id</a></th>
			            <th align="left"><a href="?order=nom">Fichier</a></th>
			            <th width="80px">Date d'ajout</th>
			            <th title="suppr" width="40px"> Suppr </th>
			            <th width="80px">Checkbox</th>
	          		</tr>
<?php 		foreach($oFics as $ik=>$fics){?>	         
	          		<tr>
				      	<td><?php echo $fics['tmp_id'];?></td>
				      	<td><?php echo CTableMoulListe::get_nom_by_id($fics['tmp_fic']);?></td>
				      	<td><?php echo CDate::date_switch(CDate::formate_date($fics['tmp_date']));?></td>
				      	<td><a href='?a=555&idtmp=<?php echo $fics['tmp_id'];?>' title='suppr'><img src='../img/delete.png' alt='delete' /></a></td>
				      	<td><input class="caseacocher" name="tab_fic[<?php echo $ik ?>]" type="checkbox" id="tab_fic[<?php echo $fics['tmp_id'] ?>]" value="<?php echo $fics['tmp_id'];?>" /></td>
				      	<input type="hidden" name="igp" value="<?php echo $fics['tmp_grp'];?>" />
	          		</tr>
<?php 		}?>	        
          		</table>
       		</form>  
<?php 	}?>
	  	<!-- InstanceEndEditable -->
	  	</div>
    </div>
    <hr class="clearfloat" />
  </div>
</div>
</body>
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:moul_groupe_mail.php

示例4: while

	  while ($listeCom = mysql_fetch_assoc($requetCcom)) {
	  
		//----------- Owen recuperation nom pays pour commune
	  	$sqlNomCat = "select pays FROM departement WHERE id_dep='".$listeCom['departement']."'";
		$id_pays = CBdd::select_one($sqlNomCat, 'pays');
		$Zsql = "SELECT nom FROM pays WHERE id_pays=".$id_pays;
		$nom_pays = CBdd::select_one($Zsql, 'nom');
		
	  ?>
      <tr>
        <td><a href="?a=5&id=<?php echo $listeCom['id_com'] ?>"><?php echo $listeCom['id_com'] ?></a></td>
		<td><?php echo utf8_encode($listeCom['nom_com']) ?></td>
		<td><?php echo $listeCom['CP'] ?></td>
		<td><?php echo $nom_pays ?></td>	
		<td><?php echo $listeCom['urlCommune'] ?></td>	
        <td align="center"><?php echo CDate::date_switch(CDate::formate_date($listeCom['date_com'])) ?></td>
        <td align="center"><a href="commune.php?a=5&id=<?php echo $listeCom['id_com'] ?>" target="_parent"><img src="../img/b_edit.png" alt="modifier, afficher" /></a></td>
        <td align="center"><?php echo CHtmlSession::get_delbutton($a, $listeCom['id_com'], $id, $listeCom['idreda']) ?></td>
		<td align="center"><input type="checkbox" name="ids[]" class="id_del" value="<?php echo $listeCom['id_com'] ?>"/></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>
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:user_groupeCommune.php

示例5: utf8_encode

            ?>
            </td>
            <td><?php echo utf8_encode(stripslashes($email['exp_prenom'])); ?></td>
            <td><?php echo utf8_encode(stripslashes($email['exp_societe'])); ?></td>
            <td>
            <?php 
            	if($groupe) {
            		echo $groupe['nom'];
            	}
            	else {
            		echo '&nbsp;';
            	}
            ?>
            </td>
            <td><?php echo utf8_encode(stripslashes($email['nom'])) ?></td>
            <td><?php echo CDate::date_switch(CDate::formate_date($email['date'])) ?></td>
			<td align="center" class="info etat <?php echo 'etat_' . $email['etat']?>"><div class="bulle">
                <?php if($email['etat'] != 0) { ?>
                <a href="reception.php?a=2&id=<?php echo $email['id'] ?>&etat=0"><img src="../img/publish_x.png" alt="Non lu" />Non lu</a>
                <?php } else { ?>
                <img src="../img/publish_x.png" alt="Non envoy&eacute;" /> Non lu
                <?php } ?>
                <br />
                <?php if($email['etat'] != 1) { ?>
                <a href="reception.php?a=2&id=<?php echo $email['id'] ?>&etat=1"><img src="../img/publish_g.png" alt="Lu" /> Lu</a>
                <?php } else { ?>
                <img src="../img/publish_g.png" alt="Envoy&eacute;" /> Lu
                <?php } ?>
                <br />
                <?php if($email['etat'] != 2) { ?>
                <a href="reception.php?a=2&id=<?php echo $email['id'] ?>&etat=2"><img src="../img/publish_u.png" alt="Archiv&eacute;" /> Archiv&eacute;</a>
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:reception.php

示例6: foreach

          </tr>
          <?php
		  $i = 0; 
		  foreach (CUserFile::sort($arr_urlrep) as $urlrep) {	
			$info_file = CUserFile::get_info_file($urlrep);
			$file_name = $info_file['name'];	
			$file_mtime= $info_file['mtime'];
			$file_type = $info_file['type'];
			$file_url  = $info_file['url'];
			$file_base = $info_file['base'];
			$actif_btn = CTableUser::is_admin($_SESSION['idmbr'])?1:0;
	      ?>
          <tr>
            <td><a href="fichier.php?a=66&amp;url_base_fils=<?php echo $file_url ?>&amp;url_base=<?php echo $file_base ?>"><?php echo $file_name ?></a></td>
            <td align="center"><?php echo $file_url ?></td>
            <td align="center"><?php echo CDate::date_switch(CDate::formate_date($file_mtime)) ?></td>
            <td align="center"><?php echo CHtml::get_editbutton($urlrep, $actif_btn) ?></td>
            <td align="center"><?php echo CHtml::get_delbutton($a, $urlrep, $id, $actif_btn) ?></td>
          </tr>
          <?php } ?>
        </table>
        <?php } ?>
        <?php 
//----------------------------------------------------------------------------------------------
// AJOUT
//----------------------------------------------------------------------------------------------
?>
        <?php if($a == 4) { ?>
        <form id="form_ajout" method="post" action="dossier.php">
          <p> <?php echo CForm::get_hidden(44) ?> </p>
          <fieldset>
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:dossier_2.php

示例7: if

        <?php } ?>

<?php 
//----------------------------------------------------------------------------------------------
// MODIF
//----------------------------------------------------------------------------------------------
?>
      <?php if($a == 5) { ?>
       <form id="form_ajout" method="post" action="menu_semaine.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 menu </legend>
          <p>
            <label>Date </label>
            <input name="date" type="text" value="<?php echo CDate::formate_date($date); ?>" onmousedown="javascript:openDate(this);"/>
            <?php echo CHtml::get_msginfo($error_signe['date'])?>		  </p>
          <p>
            <label>Titre </label>
            <input name="titre" type="text" value="<?php echo $titre; ?>" />
            <?php echo CHtml::get_msginfo($error_signe['titre'])?>		  </p>
          <p>
            <label>Contenu </label>
            <textarea name="contenu" rows="5" cols="50"><?php echo $contenu; ?></textarea>
            <?php echo CHtml::get_msginfo($error_signe['contenu'])?>		  </p>
		 <p>
            <label>Prix </label>
            <input name="prix" type="text" value="<?php echo $prix; ?>" />
            <?php echo CHtml::get_msginfo($error_signe['prix'])?>		  </p>
          <p>
            <label>Publier  </label>
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:menu_semaine.php

示例8: while

          <?php
		  $i = 0; 
		  while ($opportunite = mysql_fetch_array($r_opportunite)) {	
				  $xzsql = "SELECT nom from texte where id=".$opportunite['texId'];
				//print_r($xzsql);
				$text = CBdd::select_one($xzsql,'nom');
				$xzsql = "SELECT piece from hbpiecesjointes where id=".$opportunite['pieId'];
				//print_r($xzsql);
				$piece= CBdd::select_one($xzsql,'piece');
				?>
          <tr>
            <td><a href="?a=5&id=<?=$opportunite['id'] ?>"><?=$opportunite['id'] ?></a></td>
            <td><?=utf8_encode ($opportunite['nom']); ?></td>
			<td><?=$text ; ?></td>
  			<td><?=str_replace('../../userfiles/pieces_jointes/', '',$piece); ?></td>
            <td align="center"><?=CDate::date_switch(CDate::formate_date($opportunite['date'])) ?></td>
            <td align="center"><?=CHtml::get_etat($opportunite['id'], $opportunite['etat'], $opportunite['id']); ?></td>
            <td align="center"><?=CHtmlSession::get_editbutton($opportunite['id'], $opportunite['id']) ?></td>
            <td align="center"><?=CHtml::get_delbutton($a, $opportunite['id'], $id,  $opportunite['id']) ?></td>
          </tr>
          <?php } ?>
        </table>
        <?php } ?>

<?php 
//----------------------------------------------------------------------------------------------
// AJOUT
//----------------------------------------------------------------------------------------------
?>
        <?php if($a == 4) { ?>
        <form id="form_ajout" method="post" action="opportunite.php">
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:opportunite.php

示例9: mysql_fetch_array

		 	while ($video = mysql_fetch_array($r_video)) {	
		 		
		 		$tpage  = new CTablePage(array('id'=>$video['id_page']));
				$page   = $tpage->select_row();
		 		
		 		$actif_btn = CTableUser::is_admin($_SESSION['idmbr'])?1:0;
	      ?>          
          <tr>
            <td><?php echo $video['nom'] ?></td>
            <td><?php echo $video['fichier'] ?></td>
            <td align="center"><?php echo $page['nom'] ?></td>
            <td><?php echo CHtmlSession::get_rang('video', $video['id'], $video['id_page']) ?></td>            
            <td><?php echo CHtmlSession::get_etat($video['id'], $video['etat'], null) ?></td>
            <td align="center"><?php echo CHtml::get_editbutton($video['id'], $actif_btn) ?></td>
            <td align="center"><?php echo CHtml::get_delbutton($a, $video['id'], $id, $actif_btn) ?></td>
            <td align="center"><?php echo CDate::formate_date($video['date']) ?></td>
          </tr>
          <?php } ?>
        </table>
        <?php } ?>
        <?php 
//----------------------------------------------------------------------------------------------
// AJOUT
//----------------------------------------------------------------------------------------------
?>
        <?php if($a == 4) {         
        	// Liste des videos
        	
        	//$files = glob('../../userfiles/media/video/*.flv');       	
        	
        	?>        
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:video.php

示例10: while

		  $i = 0; 
		  while ($listeCat = mysql_fetch_array($requetCat)) {
		  
			//----------- Owen recuperation nom secteur pour categorie
		  	$sqlNomCat='select nom_sec FROM secteur WHERE id_sec='.$listeCat['cat_motcle'];
			$secteur=CBdd::select_one($sqlNomCat, 'nom_sec');
			
			// SELECTION CATEGORIE
			$zsql = "SELECT nom_cat FROM cat where id_cat=".$listeCat['cat_motcle'];
			$nomCat = CBdd::select_one($zsql, 'nom_cat');
	      ?>
          <tr>
            <td><a href="?a=5&id=<?php echo $listeCat['id_mocle'] ?>"><?php echo $listeCat['id_motcle'] ?></a></td>
			<td><?php echo $listeCat['nom_motcle'] ?></td>
			<td><?php echo $nomCat ?></td>			
            <td align="center"><?php echo CDate::date_switch(CDate::formate_date($listeCat['date_motcle'])) ?></td>
            <td align="center"><?php echo CHtmlSession::get_editbutton($listeCat['id_motcle'], $listeCat['idreda']) ?></td>
            <td align="center"><?php echo CHtmlSession::get_delbutton($a, $listeCat['id_motcle'], $id, $listeCat['idreda']) ?></td>
          </tr>
          <?php }  ?>
        </table>
        <?php } ?>

<?php 
//----------------------------------------------------------------------------------------------
// AJOUT
//----------------------------------------------------------------------------------------------
?>
        <?php if($a == 4) { ?>
        <form id="form_ajout" method="post" action="motcle.php" enctype="multipart/form-data">
          <p> <?php echo CForm::get_hidden(44) ?> </p>
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:motcle.php

示例11: mysql_fetch_array

            <th>Modif</th>
            <th>Suppr</th>
          </tr>
          <?php
		  $i = 0; 
		  if($r_galerie) {
		  	while ($galerie = mysql_fetch_array($r_galerie)) {	
		  	$page = CBdd::select_one("SELECT nom FROM page WHERE id = ".$galerie['idpage'], "nom");
		  	$article = CBdd::select_one("SELECT nom FROM article WHERE id = (SELECT idart FROM page WHERE id = ".$galerie['idpage'].")", "nom");
			$categorie = CBdd::select_one("SELECT nomcat FROM article_cat WHERE id = (SELECT idart FROM page WHERE id = ".$galerie['idpage'].")", "nomcat");
			$nb_image = CBdd::select_one("SELECT COUNT(id) as nb FROM image WHERE idgal = ".$galerie['id'], "nb");	

	      ?>
          <tr>
            <td> <?php echo $galerie['id'] ?> </td>
            <td><?php echo CDate::date_switch(CDate::formate_date($galerie['date'])) ?></td>
            <td align="center"><?php echo CFunction::clean(stripslashes($galerie['nom'])); ?></td>
            <td align="center"><?php echo $categorie; ?></td>
            <td align="center"><?php echo $article; ?></td>
            <td align="center"><?php echo $page; ?></td>
            <td style="text-align: center;"><?php echo $nb_image; ?></td>
            <td style="text-align: center;"><?php echo CHtmlSession::get_etat($galerie['id'], $galerie['etat_diaporama'], $galerie['idreda'], 7) ?></td>
            <td style="text-align: center;"><?php echo CHtmlSession::get_rang('galerie', $galerie['id'], $galerie['idreda']) ?></td>
            <td style="text-align: center;"><?php echo CHtmlSession::get_etat($galerie['id'], $galerie['etat'], $galerie['idreda']) ?></td>
            <td style="text-align: center;"><?php echo CHtmlSession::get_editbutton($galerie['id'], $galerie['idreda']) ?></td>
            <td style="text-align: center;"><?php echo CHtmlSession::get_delbutton($a, $galerie['id'], $id, $galerie['idreda']) ?></td>
          </tr>
          <?php }  
		  }
		  ?>
        </table>
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:galerie.php

示例12: max

}
</style>
</head>

<body>
<?php
$sql = "SELECT * FROM user WHERE id=" . $id;
$user = CBdd::select_row($sql);
?>
<h1>R&eacute;ponse de : <?php echo CFunction::clean($user['nom']) . " " . CFunction::clean($user['prenom']) .  " - Tel : " . $user['telephone'] ?></h1>

<?php 
$sql = "SELECT * FROM reponse WHERE iduser = " . $id . " AND date = (SELECT max(date) FROM reponse WHERE iduser = " . $id . ") ORDER BY id ASC";
$res = CBdd::select($sql);
$date = "";
?>
<ol>
<?php
while($reponse = mysql_fetch_array($res)) {
$date = $reponse['date'];
?>
<li>
<p><?php echo CFunction::clean( CFunction::force_stripslashes($reponse["question"])) ?></p>
<p>=>&nbsp;<?php echo CFunction::clean( CFunction::force_stripslashes($reponse["nom"])) ?></p>
</li>
<?php } ?>
</ol>
<hr />
<p>R&eacute;ponses r&eacute;alis&eacute;es le : <?php echo CDate::date_switch(CDate::formate_date($date)) ?></p>
</body>
</html>
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:reponse.php

示例13:

body {
	padding:15px;
	text-align:justify;
}

label {
	color: gray;
	width:40px;
}

#message {
	border:1px dashed gray;
	padding : 5px;
}
</style>
</head>
<body>
<p>
<label>Titre :</label><?php echo $menu['titre']; ?>
</p>
<p>
<label>Date :</label><?php echo CDate::formate_date($menu['date']); ?>
</p>
<p>
<label>Prix :</label><?php echo $menu['prix']; ?>
</p>
<div id="message">
<?php echo $menu['contenu'] ?>
</div>
</body>
</html>
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:show_menu.php

示例14: FCKeditor

                                </p>
                                <p class="editeur">
                                        <?php

                                        $oFCKeditor = new FCKeditor('text') ;
                                        $oFCKeditor->BasePath = '../plug/fckeditor/';
                                        $oFCKeditor->Value = CFunction::force_stripslashes($text);
                                        $oFCKeditor->Height = '200';
                                        $oFCKeditor->Width = '850';
                                        $oFCKeditor->ToolbarSet = 'Email';
                                        $oFCKeditor->Create() ;
                                        ?>
                                        <?php echo $error_signe['text']?></p>
                                <p>
                                    <label>Date d'envoi</label>
                                    <input type='text' name="date" id="date" value="<?php echo CDate::formate_date($date) ?>" onmousedown="javascript:openDate(this);"/>
                                </p>
                                <p>
                                    <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) { ?>
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:envoi-old.php

示例15:

            <th align="left"><a href="?order=nom">Fichier</a></th>
            <th align="left" width="100px"><a href="?order=mtp_zDateCreation">Date de création</a></th>
            <th width="80px">Emails initiale</th>
            <th width="80px">Email Valide</th>
            <th width="40px">Suppr</th>
          </tr>
<?php 	foreach($oDatas as $ikey=>$datas){
			$iNbml 		= CTableMoultmp::get_iEmail($datas['mtp_iListId']);
			$zDate 		= CTableMoultmp::select_date($datas['mtp_iListId']);
			$iNbmlVl 	= CTableMoulGp::get_iEmail($datas['mtp_iListId']);
			$zFichier	= CTableMoulListe::get_nom_by_id($datas['mtp_iListId']);
?>
			<tr>
	            <td><?php echo$ikey+1;?></td>
	            <td><?php echo $zFichier ;?></td>
	            <td><?php echo CDate::date_switch(CDate::formate_date($zDate));?></td>
	            <td><?php echo $iNbml;?></td>
	            <td><?php echo $iNbmlVl;?></td>
	            <td>
<?php 	if($a == 3 ){ 
			if($datas['mtp_iListId'] == $zFic){?> 
				<a href='?a=33&fic=<?php echo $datas['mtp_iListId'];?>' title='suppr'>ok?</a>
<?php 		}
			else {?>
				<a href='?a=3&fic=<?php echo $datas['mtp_iListId'];?>' title='suppr'><img src='../img/delete.png' alt='delete' /></a>
<?php 		}
		}?>
<?php 	if($a != 3) {?>
				<a href='?a=3&fic=<?php echo $datas['mtp_iListId'];?>' title='suppr'><img src='../img/delete.png' alt='delete' /></a>
<?php 	}?>
	            </td>
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:moulinette.php


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