コード例 #1
0
ファイル: publipostage.php プロジェクト: rakotobe/Rakotobe
    	<style type="text/css">
    		body {
    			margin: 5mm 25mm;
    		}
    		
    		table {
    			width: 100%;
    		}
    		
    	</style>
    </head>
    <body>
    	  	
   
<?php foreach($destinataires as $destinataire) { 	
	$destinataire = preg_replace("/.*<body[^>]*>|<\/body>.*/si", "", $destinataire);	
	?>
	<div style="text-align: left;"><?php echo $expediteur; ?></div>  
	<div style="text-align: right;"><?php echo $destinataire; ?></div>
	<div style="text-align: left;"><?php echo $objet; ?></div>  
	<div style="text-align: right;"><?php echo $date; ?></div>
    <div style="margin-top: 25mm;">
    	 <?php echo CFunction::force_stripslashes($message); ?>
    </div>  
    <table style="page-break-after: always;"><tr><td>&nbsp;</td></tr></table>  
	
<?php } ?>

 </body>
    </html>
コード例 #2
0
ファイル: show_texte.php プロジェクト: rakotobe/Rakotobe
<style type="text/css">
body {
	padding:15px;
	text-align:justify;
}

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

#message {
	border:1px dashed gray;
	padding : 5px;
}
</style>

<style type="text/css">
	<?php echo $cible['style'] ?>
</style>
</head>

<body>
<p>
<label>Sujet :</label><?php echo $cible['nom'] ?>
</p>
<div id="message">
<?php echo CFunction::force_stripslashes($cible['text']) ?>
</div>
</body>
</html>
コード例 #3
0
ファイル: campagne.php プロジェクト: rakotobe/Rakotobe
									if ( $envoi['type_envoi'] == 0 ){
										$sql = "SELECT nom FROM groupe WHERE id = ".$envoi['id_groupe'];
										$groupe = CBdd::select_one($sql, 'nom');
									}
									elseif ( $envoi['type_envoi'] == 1 ){
										$sql = "SELECT nom FROM gr_groupe WHERE id = ".$envoi['id_groupe'];
										$gr_groupe = CBdd::select_one($sql, 'nom');
									}
						
	           		 	?>
	           		 	<tr>
	           		 		<td><?php echo $envoi['id']; ?></td>
	           		 		<td>Envoi <?php echo $i; ?></td> 
	           		 		<td><?php echo $groupe;?></td> 
	           		 		<td><?php echo $gr_groupe;?></td> 
	           		 		<td title="<?php echo CFunction::force_stripslashes($text); ?>"><?php echo $text;?></td> 	    
	           		 		<td>J<?php echo $diff?'+':'', $diff; ?></td> 
	           		 		<td><?php echo preg_replace('/(\d{4})-(\d{2})-(\d{2})\s(\d{2}):(\d{2}):(\d{2})/', '\3/\2/\1', $envoi['date']); ?></td>       		 		
		           		 	<td>
		           		 		<span class="action" title="Envoi <?php echo $i; ?>" onclick="javascript:actionEnvoi(this, <?php echo $envoi['id']; ?>, 4)">Afficher</span> : <span class="action" title="Envoi <?php echo $i; ?>" onclick="javascript:actionEnvoi(this, <?php echo $envoi['id']; ?>, 5)">Modifier</span>
		           		 	</td>  
		           		 	<td align="center">
		           		 		<span class="action" title="Envoi <?php echo $i; ?>" onclick="javascript:actionEnvoi(this, <?php echo $envoi['id']; ?>, 3)">Supprimer</span>
		           		 	</td>
	           		 	</tr>
	           		 	<?php
	           		 	$i++;
	           		 	unset($groupe); unset($gr_groupe);
	           		 }
	           		 
	           		?>
コード例 #4
0
ファイル: reponse.php プロジェクト: rakotobe/Rakotobe
}
</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 = "******" AND date = (SELECT max(date) FROM reponse WHERE iduser = "******") 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>