source: trunk/web/app/out/dist/content/set_spotlights/e_add_spotlight.php @ 1

Last change on this file since 1 was 1, checked in by dj3c1t, 12 years ago

import initial

File size: 3.5 KB
RevLine 
[1]1<h2>Nouveau 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" action="<?= $env->url(array("e" => "set_spotlights", "action" => "add_spotlight")) ?>" method="post">
17<input type="hidden" name="preview" value="0" />
18<table class="admin">
19  <tr>
20    <th>titre</th>
21    <td><input type="text" name="titre" style="width: 500px" value="<?= $env->out["_spotlight"]["titre"] ?>"></td>
22  </tr>
23  <tr>
24    <th>public</th>
25    <td>
26      <div class="info">cochez cette case pour rendre le spotlight public</div>
27      <input type="checkbox" name="public" <?=
28             isset($env->out["_spotlight"]["public"]) ? ($env->out["_spotlight"]["public"] ? "checked" : "") : "checked" ?>>
29    </td>
30  </tr>
31  <tr>
32    <th>date de publication</th>
33    <td>
34      <div class="info">
35        Le spotlight qui appara&icirc;t sur le site est celui dont la date de publication est la plus r&eacute;cente<br/>
36        Vous pouvez pr&eacute;ciser une date dans le future pour un affichage &agrave; la date voulue<br/>
37        Laissez vide pour que la date de publication soit la date actuelle.<br/><br/>
38        format : aaaa-mm-jj<br/>
39        ou : aaaa-mm-jj hh-mm-ss
40      </div>
41      <link href="<?= $env->out_file("css/ds.css") ?>" rel="stylesheet" type="text/css" />
42      <input type="text" name="date_publication" value="<?= $env->out["_spotlight"]["date_publication"] ?>" onclick="ds_sh(this, ' 00:00:00');">
43    </td>
44  </tr>
45  <tr class="ds_box" id="ds_conclass" style="display: none;">
46    <th>calendrier</th>
47    <td id="ds_calclass"></td>
48  </tr>
49</table>
50<br />
51      <textarea name="spotlight" id="spotlight" style="width: 765px; height: 400px;"><?= $env->out["_spotlight"]["contenu"] ?></textarea>
52      <script type="text/javascript" src="<?= $env->path("tinymce") ?>jscripts/tiny_mce/tiny_mce.js"></script>
53      <script type="text/javascript">
54      tinyMCE.init
55      ( { mode: "exact",
56          elements : "spotlight",
57          theme : "advanced",
58          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",
59          theme_advanced_buttons1 : "bold,italic,underline,strikethrough,forecolor,|,justifyleft,justifycenter,justifyright,justifyfull,|,link,unlink,image",
60          theme_advanced_buttons2 : null,
61          theme_advanced_buttons3 : null,
62          theme_advanced_toolbar_location : "top",
63          theme_advanced_toolbar_align : "left",
64          theme_advanced_statusbar_location : "bottom",
65          theme_advanced_resizing : true,
66          content_css : "<?= $env->out_file("css/tiny_mce.css") ?>"
67        }
68      );
69      </script>
70<br />
71<table class="admin">
72  <tr>
73    <td align="center"><input type="submit" value="Pr&eacute;visualiser" onclick="document.forms['spotlight_form'].preview.value='1'" /></td>
74    <td align="center"><input type="submit" value="Enregistrer" /></td>
75  </tr>
76</table>
77      <script type="text/javascript" src="<?= $env->out_file("js/ds.js") ?>"></script>
78</form>
79</div>
Note: See TracBrowser for help on using the repository browser.