[ Index ]

PHP Cross Reference of Nucleus CMS v3.51 code documentation

title

Body

[close]

/nucleus/libs/include/ -> admin-edit.template (source)

   1  <h2><%text(_EDIT_ITEM)%></h2>
   2  
   3  <%init%>
   4  <script type="text/javascript" src="javascript/numbercheck.js"></script>
   5  <%ifautosave()%><script type="text/javascript" src="javascript/xmlhttprequest.js"></script><%endif%>
   6  
   7  <form id="editform" method="post" action="index.php">
   8  <div>
   9  
  10  <input type="hidden" name="action" value="itemupdate" />
  11  <input name="itemid" value="<%contents(itemid)%>" type="hidden" />
  12  <input type="hidden" name="draftid" value="0" />
  13  <%ticket%>
  14  
  15  <table><tr>
  16      <th colspan="2"><%text(_EDIT_ITEM)%></th>
  17  </tr>
  18  <%ifautosave()%><tr>
  19      <td><%text(_AUTOSAVEDRAFT)%></td>
  20      <td><span id="info"><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%></span></td>
  21  </tr><%endif%>
  22  <tr>
  23      <td><%text(_EDIT_ORIG_AUTHOR)%></td>
  24      <td><%contents(author)%></td>
  25  </tr><tr>
  26      <td><%text(_ADD_TITLE)%></td>
  27      <td><input 
  28              <%jsinput(title)%>
  29              tabindex="10" 
  30              size="60" 
  31              maxlength="160" 
  32              value="<%contents(title)%>" />
  33      </td>
  34  </tr><tr>
  35      <td>
  36          <%text(_ADD_BODY)%>
  37      </td>
  38      <td>
  39          <%jsbuttonbar(media+preview)%>    
  40          <textarea 
  41              <%jsinput(body)%>
  42              tabindex="20"
  43              cols="60"
  44              rows="20"><%contents(body)%></textarea>
  45      </td>
  46  </tr><tr id="edit" style="display:none;">
  47      <td><%text(_ADD_PREVIEW)%></td>
  48      <td><b><span id="prevtitle">&#160;</span></b><br />
  49          <span id="prevbody">&#160;</span><br />
  50          <span id="prevmore">&#160;</span><br />
  51      </td>
  52  </tr><tr>
  53  
  54  <%ifblogsetting(bcomments)%>
  55          <td>
  56              <%text(_ADD_DISABLE_COMMENTS)%>
  57          </td>
  58          <td> 
  59              <input type="radio" name="closed" value="1" <%checkedonval(1,closed)%> tabindex="30" id="closed_yes" /><label for="closed_yes"><%text(_YES)%></label>
  60              <input type="radio" name="closed" value="0" <%checkedonval(0,closed)%> tabindex="30" id="closed_no" /><label for="closed_no"><%text(_NO)%></label>
  61              <br />
  62              <small><%text(_EDIT_COMMENTSNOTE)%></small>    
  63          </td>
  64      </tr><tr>                
  65  <%endif%>
  66  
  67      <td><%text(_ADD_CATEGORY)%></td>
  68      <td><%categories(40)%></td>
  69  </tr><tr>
  70      <td><%text(_EDIT_SUBMIT)%></td>
  71      <td>
  72  
  73          <input type="submit" tabindex="60" value="<%text(_EDIT_SUBMIT)%>" onclick="return checkSubmit();" />
  74  
  75  <%ifitemproperty(draft)%>
  76          <br /><br />
  77          <input name="actiontype" value="addnow" type="radio" id="act_now" /><label for="act_now" tabindex="61"><%text(_ADD_ADDNOW)%></label>
  78          <br />
  79          <input name="actiontype" value="addfuture" type="radio" id="act_future" tabindex="61" /><label for="act_future"><%text(_ADD_ADDLATER)%></label> <%helplink(future)%>
  80          <div class="indent">
  81              <%text(_ADD_PLACE_ON)%>
  82              <input id="inputday" name="day" tabindex="71" size="2" value="<%currenttime(mday)%>" onchange="document.forms[0].act_future.checked=true;" />/
  83              <input id="inputmonth" name="month" tabindex="72" size="2" value="<%currenttime(mon)%>" onchange="document.forms[0].act_future.checked=true;" />/
  84              <input id="inputyear" name="year" tabindex="73" size="4" value="<%currenttime(year)%>" onchange="document.forms[0].act_future.checked=true;" />
  85              at
  86              <input id="inputhour" name="hour" tabindex="74" size="2" value="<%currenttime(hours)%>" onchange="document.forms[0].act_future.checked=true;" />:
  87              <input id="inputminutes" name="minutes" tabindex="75" size="2" value="<%currenttime(minutes)%>" onchange="document.forms[0].act_future.checked=true;" />
  88              (dd/mm/yyyy hh:mm)
  89              <%ifblogsetting(ballowpast,0)%>
  90                  <br />
  91                  <%text(_ADD_NOPASTDATES)%>
  92              <%endif%>
  93          </div>
  94          <input name="actiontype" value="adddraft" type="radio" checked='checked' id="act_draft" tabindex="61" /><label for="act_draft"><%text(_EDIT_BACKTODRAFTS)%></label> <%helplink(draft)%>
  95          <br />
  96          <input name="actiontype" value="delete" type="radio" id="act_delete" tabindex="61" /><label for="act_delete"><%text(_BMLET_DELETE)%></label>
  97  <%endif%>
  98  
  99  <%ifitemproperty(draft,0)%>
 100      <br /><br />
 101      <input name="actiontype" value="edit" type="radio" checked="checked" id="act_edit" tabindex="61" /><label for="act_edit"><%text(_BMLET_EDIT)%></label>
 102      <%ifblogsetting(ballowpast)%>
 103          <br />
 104          <input name="actiontype" value="changedate" type="radio" id="act_changedate" tabindex="70" /><label for="act_changedate"><%text(_ADD_CHANGEDATE)%></label> <%helplink(changedate)%>
 105              <div class="indent">
 106                  <input id="inputday" name="day" tabindex="71" size="2" value="<%itemtime(mday)%>" onchange="document.forms[0].act_changedate.checked=true;" />/
 107                  <input id="inputmonth" name="month" tabindex="72" size="2" value="<%itemtime(mon)%>" onchange="document.forms[0].act_changedate.checked=true;" />/
 108                  <input id="inputyear" name="year" tabindex="73" size="4" value="<%itemtime(year)%>" onchange="document.forms[0].act_changedate.checked=true;" />
 109                  at
 110                  <input id="inputhour" name="hour" tabindex="74" size="2" value="<%itemtime(hours)%>" onchange="document.forms[0].act_changedate.checked=true;" />:
 111                  <input id="inputminutes" name="minutes" tabindex="75" size="2" value="<%itemtime(minutes)%>" onchange="document.forms[0].act_changedate.checked=true;" />
 112                  (dd/mm/yyyy hh:mm)
 113              </div>
 114      <%endif%>    
 115      <input name="actiontype" value="backtodrafts" type="radio" id="act_backtodrafts" tabindex="71" /><label for="act_backtodrafts"><%text(_BMLET_BACKTODRAFTS)%></label> <%helplink(draft)%>
 116      <br />
 117      <input name="actiontype" value="delete" type="radio" id="act_delete" tabindex="72" /><label for="act_delete"><%text(_BMLET_DELETE)%></label>
 118  <%endif%>
 119      </td>
 120  </tr><tr>
 121      <td><%text(_ADD_PLUGIN_EXTRAS)%></td>
 122      <td>
 123          <%pluginextras%>
 124      </td>    
 125  </tr>
 126              <%itemoptions%>    
 127  <tr>
 128        <th colspan="2"><%text(_ADD_MORE)%></th>
 129  </tr>
 130  <tr>
 131      <td><%text(_ADD_MORE)%>
 132          <br /><%helplink(extended)%>
 133      </td>
 134      <td>
 135          <%jsbuttonbar(media+preview)%>
 136          <textarea 
 137              <%jsinput(more)%>
 138              tabindex="90" 
 139              cols="60" 
 140              rows="20"><%contents(more)%></textarea>
 141      </td>
 142  </tr><tr>
 143          <td><%text(_SUBMIT)%></td>
 144          <td>
 145              <input tabindex="60" type="submit" value="<%text(_EDIT_SUBMIT)%>" 
 146                  onclick="return checkSubmit();" />
 147              <%ifautosave()%><input tabindex="80" type="button" name="autosavenow" value="<%text(_AUTOSAVEDRAFT_NOW)%>"
 148                  onclick="autoSaveDraft();" /><%endif%>
 149          </td>
 150      
 151  </tr></table>
 152  
 153  </div>
 154  </form>
 155  
 156  <%ifautosave()%><script type="text/javascript">
 157      var xmlhttprequest = new Array();
 158      xmlhttprequest[0] = createHTTPHandler(); // AutoDraft handler

 159      xmlhttprequest[1] = createHTTPHandler(); // UpdateTicket handler

 160      var seconds = now(); // Last AutoDraft time

 161      var checks = 0; // Number of checks since last AutoDraft

 162      var addform = document.getElementById('editform'); // The form id

 163      var goal = document.getElementById('info'); // The html div id where 'Last saved: date time' must come

 164      var goalurl = '../action.php'; // The PHP file where the content must be posted to

 165      var lastsavedtext = '<%text(_AUTOSAVEDRAFT_LASTSAVED)%>'; // The language variable for 'Last saved'

 166      var formtype = 'edit'; // Add or edit form

 167  </script><%endif%>


Generated: Sun Aug 1 03:56:06 2010
Open Source related documentation for developers.