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); }
} 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>
<?php for($c = 0; $c < 194; $c++) echo " ";?> <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>
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>
?> </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 ' '; } ?> </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é" /> 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é" /> 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é" /> Archivé</a>
</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&url_base_fils=<?php echo $file_url ?>&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>
<?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>
<?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">
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'); ?>
$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>
<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>
} </style> </head> <body> <?php $sql = "SELECT * FROM user WHERE id=" . $id; $user = CBdd::select_row($sql); ?> <h1>Ré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>=> <?php echo CFunction::clean( CFunction::force_stripslashes($reponse["nom"])) ?></p> </li> <?php } ?> </ol> <hr /> <p>Réponses réalisées le : <?php echo CDate::date_switch(CDate::formate_date($date)) ?></p> </body> </html>
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>
</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édiatement"/> <input name="queue" type="submit" value="Envoyer à la date prévue"/> </p> </fieldset> </form> <?php } ?> <?php //---------------------------------------------------------------------------------------------- // PUBLIPOSTAGE //---------------------------------------------------------------------------------------------- ?> <?php if($a == 7) { ?>
<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>
</script> <?php endif; ?> <? // Owen 01/2011 RDV ?> <h2>Rendez-vous</h2> <p> <label>Sujet </label> <input name="nom_rdv" type="text" value="<?php echo $nom_rdv ?>" /> </p> <p> <label>Date rdv</label> <input name="date_rdv" id="date_rdv" type="text" value="<?php echo CDate::formate_date($date_rdv) ?>" /> </p> <p> <label>Plage horaire</label> <input name="heure_rdv" type="text" value="<?php echo $heure_rdv ?>"/> </p> <p> <label>Type</label> <select name="type_rdv"> <option value="0" <?php echo CForm::get_selected($type_rdv, 0) ?>>Téléphone</option> <option value="1" <?php echo CForm::get_selected($type_rdv, 1) ?>>Société</option> <option value="2" <?php echo CForm::get_selected($type_rdv, 2) ?>>Domicile</option> </select> </p> <p> <label>Effectué</label>
<?php include("../inc/init.php"); if(!empty($_GET['message_number'])) $message_number = $_GET['message_number']; if(!empty($_GET['passe'])) $passe = $_GET['passe']; $imap = new CImap(CTableConfiguration::get_value_by_element('POP_SERVER'), CTableUser::get_email_admin(), $passe); if(@$imap->connect()) { $info = @$imap->get_info($message_number); $email_id = $imap->load($message_number); echo "Sauvegarde du message " . $message_number; ?> <script type="text/javascript"> $('first').insert({after:'<tr><td><a href="show_reception.php?id=<?php echo $email_id ?>" target="popup" onclick="popup(this.href, this.target, 800, 600);"><?php echo $email_id ?></a></td><td><?php echo CTableGroupe::get_href($info['from']) ?></td><td><?php echo utf8_encode($info['subject']) ?></td><td><?php echo CDate::date_switch(CDate::formate_date($info['date'])) ?></td><td align="center" class="info etat <?php echo 'etat_0'?>"><div class="bulle"><img src="../img/publish_x.png" alt="Non lu" /> Non lu<br /><a href="reception.php?a=2&id=<?php echo $email_id ?>&etat=1"><img src="../img/publish_g.png" alt="Lu" /> Lu</a><br /><a href="reception.php?a=2&id=<?php echo $email_id ?>&etat=2"><img src="../img/publish_u.png" alt="Archivé" /> Archivé</a></div></td></tr>'}); </script> <?php } else { echo "Echec de chargement du message " . $message_number; } ?> <a href="show_reception.php?id=<?php echo stripslashes($email['id']) ?>" target="popup" onclick="popup(this.href, this.target, '800', '600');"> <?php echo $email['id'] ?> </a>
<th><a href="?">Rang</a></th> <th>Publié</th> <th>Modif</th> <th title="suppr"> Suppr </th> </tr> <?php $i = 0; while ($article = mysql_fetch_array($r_article)) { ?> <tr> <td><a href="?a=5&id=<?php echo $article['id'] ?>"><?php echo $article['id'] ?></a></td> <td height><?php echo stripslashes($article['nom']) ?></td> <td align="center"><?php echo $article['loginreda'] ?></td> <td align="center"><?php echo $article['loginlecteur'] ?></td> <td align="center"><?php echo $article['nomcat'] ?></td> <td align="center"><?php echo CDate::date_switch(CDate::formate_date($article['date'])) ?></td> <td align="center"><?php echo CHtmlSession::get_rang('article', $article['id'], $article['idreda']) ?></td> <td align="center"><?php echo CHtmlSession::get_etat($article['id'], $article['etat'], $article['idreda']) ?></td> <td align="center"><?php echo CHtmlSession::get_editbutton($article['id'], $article['idreda']) ?></td> <td align="center"><?php echo CHtmlSession::get_delbutton($a, $article['id'], $id, $article['idreda']) ?></td> </tr> <?php } ?> </table> <?php } ?> <?php //---------------------------------------------------------------------------------------------- // AJOUT //---------------------------------------------------------------------------------------------- ?> <?php if($a == 4) { ?>
<tr style="height: 20px;"> <td colspan="5"> </td> </tr> <!-- FILTRE PERIODE --> <table style="height: 45px;"> <tr style="height: 25px;"> <td class="col1">Période</td> <td style="width: 800px;"> <div> <p> <label>Du</label> <input type="text" id="filtre_date_debut" name="filtre_date_debut" value="<?php echo CDate::date_switch(CDate::formate_date($filtre_date_debut)); ?>" onmousedown="javascript:openDate(this);"/> </p> <p> <label>Au</label> <input type="text" id="filtre_date_fin" name="filtre_date_fin" value="<?php echo CDate::date_switch(CDate::formate_date($filtre_date_debut)); ?>" onmousedown="javascript:openDate(this);"/> </p> </div> </td> </tr> </table> </div> </form> </div> </div> </div> </div> </body> </html>