source: trunk/web/app/out/dist/content/set_artiste_news/e_set_one_artiste_news.php

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

mise a jour du trunk

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