|
@@ -10,75 +10,6 @@
|
|
|
* @version 2.1 Alpha 1
|
|
|
*/
|
|
|
|
|
|
-
|
|
|
-function template_edit_news()
|
|
|
-{
|
|
|
- global $context, $settings, $options, $scripturl, $txt;
|
|
|
-
|
|
|
- echo '
|
|
|
- <div id="admincenter">
|
|
|
- <form action="', $scripturl, '?action=admin;area=news;sa=editnews" method="post" accept-charset="', $context['character_set'], '" name="postmodify" id="postmodify">
|
|
|
- <table class="table_grid" width="100%">
|
|
|
- <thead>
|
|
|
- <tr class="catbg">
|
|
|
- <th class="first_th" width="50%">', $txt['admin_edit_news'], '</th>
|
|
|
- <th align="left" width="45%">', $txt['preview'], '</th>
|
|
|
- <th class="last_th" align="center" width="5%"><input type="checkbox" class="input_check" onclick="invertAll(this, this.form);" /></th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>';
|
|
|
-
|
|
|
-
|
|
|
- foreach ($context['admin_current_news'] as $admin_news)
|
|
|
- echo '
|
|
|
- <tr class="windowbg2">
|
|
|
- <td align="center">
|
|
|
-
|
|
|
- <div style="margin-bottom: 2ex;"><textarea rows="3" cols="65" name="news[]" style="' . (isBrowser('is_ie8') ? 'width: 635px; max-width: 85%; min-width: 85%' : 'width: 85%') . ';">', $admin_news['unparsed'], '</textarea></div>
|
|
|
- </td><td align="left" valign="top">
|
|
|
- <div style="overflow: auto; width: 100%; height: 10ex;">', $admin_news['parsed'], '</div>
|
|
|
- </td><td align="center">
|
|
|
- <input type="checkbox" name="remove[]" value="', $admin_news['id'], '" class="input_check" />
|
|
|
- </td>
|
|
|
- </tr>';
|
|
|
-
|
|
|
-
|
|
|
- echo '
|
|
|
- <tr id="moreNews" class="windowbg2" style="display: none;">
|
|
|
- <td align="center">
|
|
|
- <div id="moreNewsItems"></div>
|
|
|
- </td>
|
|
|
- <td align="center">
|
|
|
- </td>
|
|
|
- <td align="center">
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- <div class="floatleft padding">
|
|
|
- <div id="moreNewsItems_link" style="display: none;">
|
|
|
- <a class="button_link" href="javascript:void(0);" onclick="addNewsItem(); return false;">', $txt['editnews_clickadd'], '</a></div>
|
|
|
- <script type="text/javascript"><!--
|
|
|
- document.getElementById("moreNewsItems_link").style.display = "";
|
|
|
- function addNewsItem()
|
|
|
- {
|
|
|
- document.getElementById("moreNews").style.display = "";
|
|
|
- setOuterHTML(document.getElementById("moreNewsItems"), \'<div style="margin-bottom: 2ex;"><textarea rows="3" cols="65" name="news[]" style="' . (isBrowser('is_ie8') ? 'width: 635px; max-width: 85%; min-width: 85%' : 'width: 85%') . ';"><\' + \'/textarea><\' + \'/div><div id="moreNewsItems"><\' + \'/div>\');
|
|
|
- }
|
|
|
-
|
|
|
- <noscript>
|
|
|
- <div style="margin-bottom: 2ex;"><textarea rows="3" cols="65" style="' . (isBrowser('is_ie8') ? 'width: 635px; max-width: 85%; min-width: 85%' : 'width: 85%') . ';" name="news[]"></textarea></div>
|
|
|
- </noscript>
|
|
|
- </div>
|
|
|
- <div class="floatright padding">
|
|
|
- <input type="submit" name="save_items" value="', $txt['save'], '" class="button_submit" /> <input type="submit" name="delete_selection" value="', $txt['editnews_remove_selected'], '" onclick="return confirm(\'', $txt['editnews_remove_confirm'], '\');" class="button_submit" />
|
|
|
- </div>
|
|
|
- <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
|
|
|
- </form>
|
|
|
- </div>
|
|
|
- <br class="clear" />';
|
|
|
-}
|
|
|
-
|
|
|
function template_email_members()
|
|
|
{
|
|
|
global $context, $settings, $options, $txt, $scripturl;
|