[ Index ]
 

Code source de Serendipity 1.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/templates/default/admin/ -> entries.tpl (source)

   1  <!-- ADMIN-ENTRY TEMPLATE: entries.tpl START -->
   2  {*** POSSIBLE ERROR MESSAGES START ***}
   3  {if $entry_vars.errMsg}
   4      <div class="serendipityAdminMsgError"><img style="width: 22px; height: 22px; border: 0px; padding-right: 4px; vertical-align: middle" src="{serendipity_getFile file='admin/img/admin_msg_error.png'}" alt="" />{$entry_vars.errMsg}</div>
   5  {/if}
   6  {*** POSSIBLE ERROR MESSAGES END ***}
   7  
   8  {*** MAIN ENTRY FORM START ***}
   9  <form {$entry_vars.entry.entry_form} action="{$entry_vars.targetURL}" method="post" id="serendipityEntry" style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px">
  10  {$entry_vars.hidden}
  11  
  12  <table class="serendipityEntryEdit" border="0" width="100%">
  13  
  14      {*** ENTRY TITLE, DRAFT START ***}
  15      <tr>
  16          <td>
  17             <span><b>{$CONST.TITLE}:</b></span>
  18          </td>
  19          <td colspan="2">
  20              <table width="100%" cellspacing="0" cellpadding="0" border="0">
  21                  <tr>
  22                      <td><input class="input_textbox" type="text" id="entryTitle" name="serendipity[title]" value="{$entry_vars.entry.title|@escape}" size="60" /></td>
  23                      <td align="right">
  24                          <select name="serendipity[isdraft]">
  25                              {if $entry_vars.serendipityRightPublish}
  26                              <option  value="false" {if $entry_vars.draft_mode == 'publish'}selected="selected"{/if}>{$CONST.PUBLISH}</option>
  27                              {/if}
  28                              <option  value="true"  {if $entry_vars.draft_mode == 'draft'}selected="selected"{/if}>{$CONST.DRAFT}</option>
  29                          </select>
  30                      </td>
  31                  </tr>
  32              </table>
  33          </td>
  34      </tr>
  35      {*** ENTRY TITLE, DRAFT END ***}
  36  
  37      <tr>
  38  
  39      {*** ENTRY DATE,CATEGORY START ***}
  40      {if $entry_vars.allowDateManipulation}
  41          <td>
  42              <b>{$CONST.DATE}:</b>
  43          </td>
  44          <td>
  45              <input type="hidden" name="serendipity[chk_timestamp]" value="{$entry_vars.timestamp}" />
  46              <input class="input_textbox" type="text" name="serendipity[new_timestamp]" id="serendipityNewTimestamp" value="{$entry_vars.timestamp|@formatTime:DATE_FORMAT_2:true:false:true}" />
  47              <a href="#" onclick="document.getElementById('serendipityNewTimestamp').value = '{$entry_vars.reset_timestamp|@formatTime:DATE_FORMAT_2:true:false:true}'; return false;" title="{$CONST.RESET_DATE_DESC}"><img src="{serendipity_getFile file='admin/img/clock.png'}" border="0"  style="vertical-align: text-top;" alt="{$CONST.RESET_DATE}" /></a>
  48          </td>
  49          <td align="right">
  50      {else}
  51          <td align="right" colspan="3">
  52      {/if}
  53              <a style="border:0; text-decoration: none" href="#" onclick="showItem('categoryselector'); return false" title="{$CONST.TOGGLE_OPTION}"><img src="{serendipity_getFile file='img/plus.png'}" id="option_categoryselector" style="border: 20px" alt="" border="0" /></a> <b>{$CONST.CATEGORY}:</b>
  54              <select id="categoryselector" name="serendipity[categories][]" style="vertical-align: middle;" multiple="multiple">
  55                  <option value="0">[{$CONST.NO_CATEGORY}]</option>
  56                  {foreach from=$entry_vars.category_options item="entry_cat"}
  57                  <option value="{$entry_cat.categoryid}" {if $entry_cat.is_selected}selected="selected"{/if}>{$entry_cat.depth_pad}{$entry_cat.category_name}</option>
  58                  {/foreach}
  59              </select>
  60  
  61              <script type="text/javascript" language="JavaScript">
  62  
  63              var plus_img  = '{serendipity_getFile file='img/plus.png'}';
  64              var minus_img = '{serendipity_getFile file='img/minus.png'}';
  65              var cat_count = {$entry_vars.cat_count};
  66              var selector_toggle  = new Array();
  67              var selector_store   = new Array();
  68              var selector_restore = new Array();
  69  
  70              function checkSave() {ldelim}
  71                  {serendipity_hookPlugin hook='backend_entry_checkSave' hookAll='true'}
  72                  return true;
  73              {rdelim}
  74  
  75              selector_toggle['categoryselector'] = '{$entry_vars.cat_state}';
  76              </script>
  77              <script type="text/javascript" language="JavaScript" src="{serendipity_getFile file='admin/category_selector.js'}"></script>
  78              <script type="text/javascript" language="JavaScript">
  79               addLoadEvent(showItem);
  80              </script>
  81          </td>
  82      </tr>
  83      {*** ENTRY DATE,CATEGORY END ***}
  84  
  85      {*** ENTRY TOOLBAR START ***}
  86      <tr>
  87          {if NOT $entry_vars.wysiwyg}
  88          <td colspan="2"><b>{$CONST.ENTRY_BODY}</b></td>
  89          <td align="right">
  90              {if $entry_vars.wysiwyg_advanced}
  91              <script type="text/javascript" language="JavaScript">
  92                  document.write('<input type="button" class="serendipityPrettyButton input_button" name="insI" value="I" accesskey="i" style="font-style: italic" onclick="wrapSelection(document.forms[\'serendipityEntry\'][\'serendipity[body]\'],\'<em>\',\'</em>\')" />');
  93                  document.write('<input type="button" class="serendipityPrettyButton input_button" name="insB" value="B" accesskey="b" style="font-weight: bold" onclick="wrapSelection(document.forms[\'serendipityEntry\'][\'serendipity[body]\'],\'<strong>\',\'</strong>\')" />');
  94                  document.write('<input type="button" class="serendipityPrettyButton input_button" name="insU" value="U" accesskey="u" style="text-decoration: underline;" onclick="wrapSelection(document.forms[\'serendipityEntry\'][\'serendipity[body]\'],\'<u>\',\'</u>\')" />');
  95                  document.write('<input type="button" class="serendipityPrettyButton input_button" name="insQ" value="{$CONST.QUOTE}" accesskey="q" style="font-style: italic" onclick="wrapSelection(document.forms[\'serendipityEntry\'][\'serendipity[body]\'],\'<blockquote>\',\'</blockquote>\')" />');
  96                  document.write('<input type="button" class="serendipityPrettyButton input_button" name="insJ" value="img" accesskey="j" onclick="wrapInsImage(document.forms[\'serendipityEntry\'][\'serendipity[body]\'])" />');
  97                  document.write('<input type="button" class="serendipityPrettyButton input_button" name="insImage" value="{$CONST.MEDIA}" style="" onclick="window.open(\'serendipity_admin_image_selector.php?serendipity[textarea]=body\', \'ImageSel\', \'width=800,height=600,toolbar=no,scrollbars=1,scrollbars,resize=1,resizable=1\');" />');
  98                  document.write('<input type="button" class="serendipityPrettyButton input_button" name="insURL" value="URL" accesskey="l" onclick="wrapSelectionWithLink(document.forms[\'serendipityEntry\'][\'serendipity[body]\'])" />');
  99              </script>
 100              {else}
 101              <script type="text/javascript" language="JavaScript">
 102                  document.write('<input type="button" class="serendipityPrettyButton input_button" value=" B " onclick="serendipity_insBasic(document.forms[\'serendipityEntry\'][\'serendipity[body]\'], \'b\')">');
 103                  document.write('<input type="button" class="serendipityPrettyButton input_button" value=" U " onclick="serendipity_insBasic(document.forms[\'serendipityEntry\'][\'serendipity[body]\'], \'u\')">');
 104                  document.write('<input type="button" class="serendipityPrettyButton input_button" value=" I " onclick="serendipity_insBasic(document.forms[\'serendipityEntry\'][\'serendipity[body]\'], \'i\')">');
 105                  document.write('<input type="button" class="serendipityPrettyButton input_button" value="<img>" onclick="serendipity_insImage(document.forms[\'serendipityEntry\'][\'serendipity[body]\'])">');
 106                  document.write('<input type="button" class="serendipityPrettyButton input_button" value="{$CONST.MEDIA}" onclick="window.open(\'serendipity_admin_image_selector.php?serendipity[textarea]=body\', \'ImageSel\', \'width=800,height=600,toolbar=no\');">');
 107                  document.write('<input type="button" class="serendipityPrettyButton input_button" value="Link" onclick="serendipity_insLink(document.forms[\'serendipityEntry\'][\'serendipity[body]\'])">');
 108              </script>
 109              {/if}
 110              {serendipity_hookPlugin hook="backend_entry_toolbar_body" data=$entry_data.entry hookAll="true"}
 111          </td>
 112          {else}
 113          <td colspan="2"><b>{$CONST.ENTRY_BODY}</b></td>
 114          <td>{serendipity_hookPlugin hook="backend_entry_toolbar_body" data=$entry_data.entry hookAll="true"}</td>
 115          {/if}
 116      </tr>
 117      {*** ENTRY TOOLBAR END ***}
 118  
 119      {*** ENTRY BODY START ***}
 120      <tr>
 121          <td colspan="3">
 122              <textarea style="width: 100%" name="serendipity[body]" id="serendipity[body]" cols="80" rows="20">{$entry_vars.entry.body|@escape}</textarea>
 123          </td>
 124      </tr>
 125      {*** ENTRY BODY START ***}
 126  
 127      {*** ENTRY OPTIONS START ***}
 128      <tr>
 129          <td colspan="3">
 130              <table width="100%" cellpadding="0" cellspacing="0">
 131                  <tr>
 132                      <td align="left" width="70%">
 133                          <input class="input_checkbox" id="checkbox_allow_comments" type="checkbox" name="serendipity[allow_comments]" value="true" {if $entry_vars.allow_comments}checked="checked"{/if} /><label for="checkbox_allow_comments">{$CONST.COMMENTS_ENABLE}</label><br />
 134                          <input class="input_checkbox" id="checkbox_moderate_comments" type="checkbox" name="serendipity[moderate_comments]" value="true" {if $entry_vars.moderate_comments}checked="checked"{/if} /><label for="checkbox_moderate_comments">{$CONST.COMMENTS_MODERATE}</label>
 135                      </td>
 136                      <td align="right" rowspan="2" valign="middle" width="30%">
 137                          <input accesskey="p" type="submit" value="- {$CONST.PREVIEW} -" class="serendipityPrettyButton input_button"  style="width: 150px" onclick="document.forms['serendipityEntry'].elements['serendipity[preview]'].value='true';" /><br />
 138                          <input accesskey="s" type="submit" onclick="return checkSave();" value="- {$CONST.SAVE} -" class="serendipityPrettyButton input_button" style="width: 150px" />
 139                      </td>
 140                  </tr>
 141              </table>
 142              <br />
 143          </td>
 144      </tr>
 145      {*** ENTRY OPTIONS END ***}
 146  
 147      {*** EXTENDED ENTRY TOOLBAR START ***}
 148      <tr>
 149          <td colspan="2">
 150              {if NOT $entry_vars.wysiwyg}
 151              <a style="border:0; text-decoration: none" href="#" onclick="toggle_extended(true); return false;" title="{$CONST.TOGGLE_OPTION}"><img src="{serendipity_getFile file='img/plus.png'}" id="option_extended" alt="+/-" border="0" /></a>
 152              {/if}
 153              <b>{$CONST.EXTENDED_BODY}</b>
 154          </td>
 155  
 156          <td align="right">
 157              {if NOT $entry_vars.wysiwyg}
 158              <div id="tools_extended" style="display: none">
 159                  {if $entry_vars.wysiwyg_advanced}
 160                  <input type="button" class="serendipityPrettyButton input_button" name="insI" value="I" accesskey="i" style="font-style: italic" onclick="wrapSelection(document.forms['serendipityEntry']['serendipity[extended]'],'<em>','</em>')" />
 161                  <input type="button" class="serendipityPrettyButton input_button" name="insB" value="B" accesskey="b" style="font-weight: bold" onclick="wrapSelection(document.forms['serendipityEntry']['serendipity[extended]'],'<strong>','</strong>')" />
 162                  <input type="button" class="serendipityPrettyButton input_button" name="insU" value="U" accesskey="u" style="text-decoration: underline;" onclick="wrapSelection(document.forms['serendipityEntry']['serendipity[extended]'],'<u>','</u>')" />
 163                  <input type="button" class="serendipityPrettyButton input_button" name="insQ" value="{$CONST.QUOTE}" accesskey="q" style="font-style: italic" onclick="wrapSelection(document.forms['serendipityEntry']['serendipity[extended]'],'<blockquote>','</blockquote>')" />
 164                  <input type="button" class="serendipityPrettyButton input_button" name="insJ" value="img" accesskey="j" onclick="wrapInsImage(document.forms['serendipityEntry']['serendipity[extended]'])" />
 165                  <input type="button" class="serendipityPrettyButton input_button" name="insImage" value="{$CONST.MEDIA}" onclick="window.open('serendipity_admin_image_selector.php?serendipity[textarea]=extended', 'ImageSel', 'width=800,height=600,toolbar=no,scrollbars=1,scrollbars,resize=1,resizable=1');" />
 166                  <input type="button" class="serendipityPrettyButton input_button" name="insURL" value="URL" accesskey="l" onclick="wrapSelectionWithLink(document.forms['serendipityEntry']['serendipity[extended]'])" />
 167                  {else}
 168                  <input type="button" class="serendipityPrettyButton input_button" value=" B " onclick="serendipity_insBasic(document.forms['serendipityEntry']['serendipity[extended]'], 'b')">
 169                  <input type="button" class="serendipityPrettyButton input_button" value=" U " onclick="serendipity_insBasic(document.forms['serendipityEntry']['serendipity[extended]'], 'u')">
 170                  <input type="button" class="serendipityPrettyButton input_button" value=" I " onclick="serendipity_insBasic(document.forms['serendipityEntry']['serendipity[extended]'], 'i')">
 171                  <input type="button" class="serendipityPrettyButton input_button" value="<img>" onclick="serendipity_insImage(document.forms['serendipityEntry']['serendipity[extended]'])">
 172                  <input type="button" class="serendipityPrettyButton input_button" value="{$CONST.MEDIA}" onclick="window.open('serendipity_admin_image_selector.php?serendipity[textarea]=extended', 'ImageSel', 'width=800,height=600,toolbar=no');">
 173                  <input type="button" class="serendipityPrettyButton input_button" value="Link" onclick="serendipity_insLink(document.forms['serendipityEntry']['serendipity[extended]'])">
 174                  {/if}
 175                  {serendipity_hookPlugin hook="backend_entry_toolbar_extended" data=$entry_data.entry hookAll="true"}
 176              </div>
 177              {else}
 178                  {serendipity_hookPlugin hook="backend_entry_toolbar_extended" data=$entry_data.entry hookAll="true"}
 179              {/if}
 180         </td>
 181      </tr>
 182      {*** EXTENDED ENTRY TOOLBAR END ***}
 183  
 184      {*** EXTENDED ENTRY BODY START ***}
 185      <tr>
 186          <td colspan="3">
 187              <textarea style="width: 100%;" name="serendipity[extended]" id="serendipity[extended]" cols="80" rows="20">{$entry_vars.entry.extended|@escape}</textarea>
 188              {if NOT $entry_vars.wysiwyg}
 189              <script type="text/javascript" language="JavaScript">
 190                 toggle_extended();
 191              </script>
 192              {/if}
 193          </td>
 194      </tr>
 195      {*** EXTENDED ENTRY BODY END ***}
 196  
 197      <tr>
 198          <td colspan="3">
 199              <br />
 200              <fieldset>
 201                  <legend><b>{$CONST.ADVANCED_OPTIONS}</b></legend>
 202      {*** EXTERNAL PLUGINS OUTPUT START ***}
 203                  {$entry_vars.entry|@serendipity_refhookPlugin:'backend_display'}
 204      {*** EXTERNAL PLUGINS OUTPUT END ***}
 205              </fieldset>
 206          </td>
 207      </tr>
 208  </table>
 209  </form>
 210  {*** MAIN ENTRY FORM END ***}
 211  
 212  {*** SPAWN WYSIWYG EDITORS START ***}
 213  {if $entry_vars.show_wysiwyg}
 214  <script type="text/javascript" language="JavaScript">
 215      toggle_extended();
 216  </script>
 217  {/if}
 218  
 219  {if $entry_vars.wysiwyg}
 220      {foreach from=$entry_vars.wysiwyg_blocks item="wysiwyg_block_item" key="wysiwyg_block_jsname"}
 221          {$wysiwyg_block_item|emit_htmlarea_code:$wysiwyg_block_jsname}
 222      {/foreach}
 223      {$entry_vars.wysiwyg_blocks|@serendipity_refhookPlugin:'backend_wysiwyg_finish'}
 224  {/if}
 225  {*** SPAWN WYSIWYG EDITORS END ***}
 226  
 227  <script type="text/javascript" language="JavaScript" src="serendipity_define.js.php"></script>
 228  <script type="text/javascript" language="JavaScript" src="serendipity_editor.js"></script>
 229  <!-- ADMIN-ENTRY TEMPLATE: entries.tpl END -->


Généré le : Sat Nov 24 09:00:37 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics