summaryrefslogtreecommitdiffstats
path: root/old/templates/cache/default/admin/addnews.html.php
diff options
context:
space:
mode:
Diffstat (limited to 'old/templates/cache/default/admin/addnews.html.php')
-rw-r--r--old/templates/cache/default/admin/addnews.html.php115
1 files changed, 0 insertions, 115 deletions
diff --git a/old/templates/cache/default/admin/addnews.html.php b/old/templates/cache/default/admin/addnews.html.php
deleted file mode 100644
index f05b3aa..0000000
--- a/old/templates/cache/default/admin/addnews.html.php
+++ /dev/null
@@ -1,115 +0,0 @@
-<?php
-if ($this->security()) {
-// INCLUDE page_header.html
-$this->assign_from_include('page_header.html');
-echo '
-<script language="JavaScript" type="text/javascript">
-';echo '<!--
-b_help = "' . ((isset($this->_tpldata['.'][0]['L_B_HELP'])) ? $this->_tpldata['.'][0]['L_B_HELP'] : ((isset($user->lang['B_HELP'])) ? $user->lang['B_HELP'] : '{ ' . ucfirst(strtolower(str_replace('_', ' ', 'B_HELP'))) . ' }')) . '";
-i_help = "' . ((isset($this->_tpldata['.'][0]['L_I_HELP'])) ? $this->_tpldata['.'][0]['L_I_HELP'] : ((isset($user->lang['I_HELP'])) ? $user->lang['I_HELP'] : '{ ' . ucfirst(strtolower(str_replace('_', ' ', 'I_HELP'))) . ' }')) . '";
-u_help = "' . ((isset($this->_tpldata['.'][0]['L_U_HELP'])) ? $this->_tpldata['.'][0]['L_U_HELP'] : ((isset($user->lang['U_HELP'])) ? $user->lang['U_HELP'] : '{ ' . ucfirst(strtolower(str_replace('_', ' ', 'U_HELP'))) . ' }')) . '";
-q_help = "' . ((isset($this->_tpldata['.'][0]['L_Q_HELP'])) ? $this->_tpldata['.'][0]['L_Q_HELP'] : ((isset($user->lang['Q_HELP'])) ? $user->lang['Q_HELP'] : '{ ' . ucfirst(strtolower(str_replace('_', ' ', 'Q_HELP'))) . ' }')) . '";
-c_help = "' . ((isset($this->_tpldata['.'][0]['L_C_HELP'])) ? $this->_tpldata['.'][0]['L_C_HELP'] : ((isset($user->lang['C_HELP'])) ? $user->lang['C_HELP'] : '{ ' . ucfirst(strtolower(str_replace('_', ' ', 'C_HELP'))) . ' }')) . '";
-p_help = "' . ((isset($this->_tpldata['.'][0]['L_P_HELP'])) ? $this->_tpldata['.'][0]['L_P_HELP'] : ((isset($user->lang['P_HELP'])) ? $user->lang['P_HELP'] : '{ ' . ucfirst(strtolower(str_replace('_', ' ', 'P_HELP'))) . ' }')) . '";
-w_help = "' . ((isset($this->_tpldata['.'][0]['L_W_HELP'])) ? $this->_tpldata['.'][0]['L_W_HELP'] : ((isset($user->lang['W_HELP'])) ? $user->lang['W_HELP'] : '{ ' . ucfirst(strtolower(str_replace('_', ' ', 'W_HELP'))) . ' }')) . '";
-
-var theSelection = false;
-bbcode = new Array();
-bbtags = new Array(\'[b]\',\'[/b]\',\'[i]\',\'[/i]\',\'[u]\',\'[/u]\',\'[quote]\',\'[/quote]\',\'[img]http://\',\'[/img]\',\'[url]http://\',\'[/url]\',\'[center]\',\'[/center]\');
-
-function helpline(help)
-{
- document.post.helpbox.value = eval(help + "_help");
-}
-
-function check_form()
-{
- if (document.post.news_message.value.length < 2)
- {
- alert(\'' . ((isset($this->_tpldata['.'][0]['MSG_MESSAGE_EMPTY'])) ? $this->_tpldata['.'][0]['MSG_MESSAGE_EMPTY'] : '') . '\');
- return false;
- }
- if (document.post.news_headline.value.length < 1)
- {
- alert(\'' . ((isset($this->_tpldata['.'][0]['MSG_HEADLINE_EMPTY'])) ? $this->_tpldata['.'][0]['MSG_HEADLINE_EMPTY'] : '') . '\');
- return false;
- }
- return true;
-}
-
-function bbstyle(bbnumber)
-{
- // Insert opening/closing tags
- document.post.news_message.value += bbtags[bbnumber] + bbtags[bbnumber+1];
- document.post.news_message.focus();
- return;
-
-}
-//-->';echo '
-</script>
-<form method="post" action="' . ((isset($this->_tpldata['.'][0]['F_ADD_NEWS'])) ? $this->_tpldata['.'][0]['F_ADD_NEWS'] : '') . '" name="post" onsubmit="return check_form(this)">
-<input type="hidden" name="' . ((isset($this->_tpldata['.'][0]['URI_NEWS'])) ? $this->_tpldata['.'][0]['URI_NEWS'] : '') . '" value="' . ((isset($this->_tpldata['.'][0]['NEWS_ID'])) ? $this->_tpldata['.'][0]['NEWS_ID'] : '') . '" />
-<table width="100%" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <th align="center" colspan="2" >' . ((isset($this->_tpldata['.'][0]['L_ADD_NEWS'])) ? $this->_tpldata['.'][0]['L_ADD_NEWS'] : ((isset($user->lang['ADD_NEWS'])) ? $user->lang['ADD_NEWS'] : '{ ' . ucfirst(strtolower(str_replace('_', ' ', 'ADD_NEWS'))) . ' }')) . '</th>
- </tr>
- <tr>
- <td width="200" class="row1" nowrap="nowrap"><b>' . ((isset($this->_tpldata['.'][0]['L_HEADLINE'])) ? $this->_tpldata['.'][0]['L_HEADLINE'] : ((isset($user->lang['HEADLINE'])) ? $user->lang['HEADLINE'] : '{ ' . ucfirst(strtolower(str_replace('_', ' ', 'HEADLINE'))) . ' }')) . ':</b></td>
- <td width="100%" class="row2"><input type="text" name="news_headline" size="40" maxlength="255" value="' . ((isset($this->_tpldata['.'][0]['HEADLINE'])) ? $this->_tpldata['.'][0]['HEADLINE'] : '') . '" style="width: 450px" class="input" />' . ((isset($this->_tpldata['.'][0]['FV_HEADLINE'])) ? $this->_tpldata['.'][0]['FV_HEADLINE'] : '') . '</td>
- </tr>
- <tr>
- <td width="200" class="row1" nowrap="nowrap"><b>' . ((isset($this->_tpldata['.'][0]['L_MESSAGE_BODY'])) ? $this->_tpldata['.'][0]['L_MESSAGE_BODY'] : ((isset($user->lang['MESSAGE_BODY'])) ? $user->lang['MESSAGE_BODY'] : '{ ' . ucfirst(strtolower(str_replace('_', ' ', 'MESSAGE_BODY'))) . ' }')) . ':</b></td>
- <td width="100%" class="row2">
- <table border="0" cellspacing="0" cellpadding="2" class="borderless">
- <tr>
- <td><input type="button" accesskey="b" name="addcode0" value=" B " style="font-weight: bold; width: 30px" onmouseover="helpline(\'b\')" onclick="bbstyle(0)" class="input" /></td>
- <td><input type="button" accesskey="i" name="addcode2" value=" i " style="font-style: italic; width: 30px" onmouseover="helpline(\'i\')" onclick="bbstyle(2)" class="input" /></td>
- <td><input type="button" accesskey="u" name="addcode4" value=" u " style="text-decoration: underline; width: 30px" onmouseover="helpline(\'u\')" onclick="bbstyle(4)" class="input" /></td>
- <td><input type="button" accesskey="q" name="addcode6" value=" Quote " style="width: 50px" onmouseover="helpline(\'q\')" onclick="bbstyle(6)" class="input" /></td>
- <td><input type="button" accesskey="c" name="addcode12" value=" Center " style="width: 50px" onmouseover="helpline(\'c\')" onclick="bbstyle(12)" class="input" /></td>
- <td><input type="button" accesskey="p" name="addcode8" value=" IMG " style="width: 50px" onmouseover="helpline(\'p\')" onclick="bbstyle(8)" class="input" /></td>
- <td><input type="button" accesskey="w" name="addcode10" value=" URL " style="width: 50px" onmouseover="helpline(\'w\')" onclick="bbstyle(10)" class="input" /></td>
- </tr>
- </table>
- <table border="0" cellspacing="0" cellpadding="2" class="borderless">
- <tr>
- <td><input type="text" name="helpbox" size="45" maxlength="100" style="width: 450px; font-size: 10px;" class="helpline2" value="" /></td>
- </tr>
- <tr>
- <td><textarea name="news_message" rows="15" cols="60" style="width: 450px" class="input">' . ((isset($this->_tpldata['.'][0]['MESSAGE'])) ? $this->_tpldata['.'][0]['MESSAGE'] : '') . '</textarea>' . ((isset($this->_tpldata['.'][0]['FV_MESSAGE'])) ? $this->_tpldata['.'][0]['FV_MESSAGE'] : '') . '</td>
- </tr>
- </table>
- </td>
- </tr>
- ';// IF S_UPDATE
-if ($this->_tpldata['.'][0]['S_UPDATE']) {
-echo '
- <tr>
- <td width="200" class="row1" nowrap="nowrap"><b>' . ((isset($this->_tpldata['.'][0]['L_UPDATE_DATE_TO'])) ? $this->_tpldata['.'][0]['L_UPDATE_DATE_TO'] : ((isset($user->lang['UPDATE_DATE_TO'])) ? $user->lang['UPDATE_DATE_TO'] : '{ ' . ucfirst(strtolower(str_replace('_', ' ', 'UPDATE_DATE_TO'))) . ' }')) . '</b></td>
- <td width="100%" class="row2"><input type="checkbox" name="update_date" value="1" /></td>
- </tr>
- ';// ENDIF
-}
-echo '
- <tr>
- <th align="center" colspan="2">
- ';// IF S_ADD
-if ($this->_tpldata['.'][0]['S_ADD']) {
-echo '
- <input type="submit" name="add" value="' . ((isset($this->_tpldata['.'][0]['L_ADD_NEWS'])) ? $this->_tpldata['.'][0]['L_ADD_NEWS'] : ((isset($user->lang['ADD_NEWS'])) ? $user->lang['ADD_NEWS'] : '{ ' . ucfirst(strtolower(str_replace('_', ' ', 'ADD_NEWS'))) . ' }')) . '" class="mainoption" /> <input type="reset" name="reset" value="' . ((isset($this->_tpldata['.'][0]['L_RESET'])) ? $this->_tpldata['.'][0]['L_RESET'] : ((isset($user->lang['RESET'])) ? $user->lang['RESET'] : '{ ' . ucfirst(strtolower(str_replace('_', ' ', 'RESET'))) . ' }')) . '" class="liteoption" />
- ';// ELSE
-} else {
-echo '
- <input type="submit" name="update" value="' . ((isset($this->_tpldata['.'][0]['L_UPDATE_NEWS'])) ? $this->_tpldata['.'][0]['L_UPDATE_NEWS'] : ((isset($user->lang['UPDATE_NEWS'])) ? $user->lang['UPDATE_NEWS'] : '{ ' . ucfirst(strtolower(str_replace('_', ' ', 'UPDATE_NEWS'))) . ' }')) . '" class="mainoption" /> <input type="submit" name="delete" value="' . ((isset($this->_tpldata['.'][0]['L_DELETE_NEWS'])) ? $this->_tpldata['.'][0]['L_DELETE_NEWS'] : ((isset($user->lang['DELETE_NEWS'])) ? $user->lang['DELETE_NEWS'] : '{ ' . ucfirst(strtolower(str_replace('_', ' ', 'DELETE_NEWS'))) . ' }')) . '" class="liteoption" />
- ';// ENDIF
-}
-echo '
- </th>
- </tr>
-</table>
-</form>
-';// INCLUDE page_tail.html
-$this->assign_from_include('page_tail.html');
-
-}
-?> \ No newline at end of file