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