1 | <?php if($env->out["preview"]) : $env->out["news"] = $env->out["preview"]; ?> |
---|
2 | <div class="news"> |
---|
3 | <h3><span><?= $env->out["news"]["titre"] ?></span></h3> |
---|
4 | <p class="by"> |
---|
5 | Par <?= $env->out["news"]["auteur"] ?> - |
---|
6 | <?= $env->out["news"]["date_publication"] ? $env->out["news"]["date_publication"] : date("Y-m-d H:i:s") ?> |
---|
7 | </p> |
---|
8 | <?= $env->data->html($env->out["news"]["contenu"]) ?> |
---|
9 | </div> |
---|
10 | <br /><br /> |
---|
11 | <?php endif; ?> |
---|
12 | |
---|
13 | <h3>Nouvelle news</h3> |
---|
14 | <form name="news_form" action="<?= $env->url |
---|
15 | ( array |
---|
16 | ( "e" => "set_artiste_news", |
---|
17 | "action" => "add_artiste_news", |
---|
18 | "artiste" => $_GET[$env->param("artiste")] |
---|
19 | ) |
---|
20 | ) ?>" method="post"> |
---|
21 | <input type="hidden" name="preview" value="0" /> |
---|
22 | <table class="admin"> |
---|
23 | <tr> |
---|
24 | <th>titre</th> |
---|
25 | <td><input type="text" name="titre" size="40" value="<?= $env->out["news"]["titre"] ?>"></td> |
---|
26 | </tr> |
---|
27 | <tr> |
---|
28 | <th>publique</th> |
---|
29 | <td> |
---|
30 | <div class="info">cochez cette case pour rendre la news publique</div> |
---|
31 | <input type="checkbox" name="public" <?= |
---|
32 | isset($env->out["news"]["public"]) ? ($env->out["news"]["public"] ? "checked" : "") : "checked" ?>> |
---|
33 | </td> |
---|
34 | </tr> |
---|
35 | <tr> |
---|
36 | <th>date de publication</th> |
---|
37 | <td> |
---|
38 | <div class="info"> |
---|
39 | Vous pouvez préciser une date dans le future pour un affichage à la date voulue<br/> |
---|
40 | Laissez vide pour que la date de publication soit la date actuelle.<br/><br/> |
---|
41 | format : aaaa-mm-jj<br/> |
---|
42 | ou : aaaa-mm-jj hh-mm-ss |
---|
43 | </div> |
---|
44 | <link href="<?= $env->out_file("css/ds.css") ?>" rel="stylesheet" type="text/css" /> |
---|
45 | <input type="text" name="date_publication" value="<?= $env->out["news"]["date_publication"] ?>" onclick="ds_sh(this, ' 00:00:00');"> |
---|
46 | </td> |
---|
47 | </tr> |
---|
48 | <tr class="ds_box" id="ds_conclass" style="display: none;"> |
---|
49 | <th>calendrier</th> |
---|
50 | <td id="ds_calclass"></td> |
---|
51 | </tr> |
---|
52 | </table> |
---|
53 | <br /> |
---|
54 | <textarea name="news" id="news" style="width: 490px; height: 400px;"><?= $env->out["news"]["contenu"] ?></textarea> |
---|
55 | <script type="text/javascript" src="<?= $env->path("tinymce") ?>jscripts/tiny_mce/tiny_mce.js"></script> |
---|
56 | <script type="text/javascript"> |
---|
57 | tinyMCE.init |
---|
58 | ( { mode: "exact", |
---|
59 | elements : "news", |
---|
60 | theme : "advanced", |
---|
61 | plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template", |
---|
62 | theme_advanced_buttons1 : "bold,italic,underline,strikethrough,forecolor,|,justifyleft,justifycenter,justifyright,justifyfull,|,link,unlink,image", |
---|
63 | theme_advanced_buttons2 : null, |
---|
64 | theme_advanced_buttons3 : null, |
---|
65 | theme_advanced_toolbar_location : "top", |
---|
66 | theme_advanced_toolbar_align : "left", |
---|
67 | theme_advanced_statusbar_location : "bottom", |
---|
68 | theme_advanced_resizing : true, |
---|
69 | content_css : "<?= $env->out_file("css/tiny_mce.css") ?>" |
---|
70 | } |
---|
71 | ); |
---|
72 | </script> |
---|
73 | <br /> |
---|
74 | <table class="admin"> |
---|
75 | <tr> |
---|
76 | <td align="center"><input type="submit" value="Prévisualiser" onclick="document.forms['news_form'].preview.value='1'" /></td> |
---|
77 | <td align="center"><input type="submit" value="Enregistrer" /></td> |
---|
78 | </tr> |
---|
79 | </table> |
---|
80 | <script type="text/javascript" src="<?= $env->out_file("js/ds.js") ?>"></script> |
---|
81 | </form> |
---|