[ Index ]

PHP Cross Reference of Nucleus CMS v3.51 code documentation

title

Body

[close]

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

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

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

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

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

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

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

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

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

 141      var formtype = 'add'; // Add or edit form

 142  </script>
 143  <%endif%>


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