📄 edit_subject.tpl.php
字号:
<?php// -----------------------------------------------------------------------// This file is part of AROUNDMe// // Copyright (C) 2003-2007 Barnraiser// http://www.barnraiser.org/// info@barnraiser.org// // This program is free software: you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation, either version 3 of the License, or// (at your option) any later version.// // This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the// GNU General Public License for more details.// // You should have received a copy of the GNU General Public License// along with this program; see the file COPYING.txt. If not, see// <http://www.gnu.org/licenses/>// -----------------------------------------------------------------------?><?php$javascript_css = "";if (isset($webspace['webspace_css'])) { $javascript_css = str_replace(Array("\r\n","\n","\r"), "", $webspace['webspace_css']);}?><script language="JavaScript" src="<?php echo $template_path_core;?>js/html_gui_editor.js" type="text/javascript"></script><script language="javascript" type="text/javascript">//<![CDATA[ var template_path = '<?php echo $template_path_core;?>'; var webspace_css = '<?php echo $javascript_css;?>';//]]></script><form action="index.php?t=edit_subject&c=forum&ws=<?php echo $_REQUEST['ws']; ?>&wp=<?php echo $_REQUEST['wp']; ?>" method="POST"><input type="hidden" name="subject_id" value="<?php if (isset($subject['subject_id'])) { echo $subject['subject_id'];}?>" /><div id="am_core_area"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td width="240" valign="top"> <div class="box"> <h1><?php echo $lang['hdr_subject'];?></h1> <p> <?php echo $lang['txt_edit_subject'];?><br /> </p> <ul> <li><a href="index.php?ws=<?php echo $_REQUEST['ws']; ?>&wp=<?php echo $_REQUEST['wp'];?>"><?php echo $lang['href_return_to_subject'];?></a></li> </ul> </div> </td> <td width="30" style="border-right: 1px solid #333"> <img src="<?php echo $template_path_core_core;?>img/pixel.png" width="30" height="1" border="0" alt="" /><br /> </td> <td width="40"> <img src="<?php echo $template_path_core_core;?>img/pixel.png" width="40" height="1" border="0" alt="" /><br /> </td> <td valign="top"> <h1><?php echo $lang['hdr_edit_discussion'];?></h1> <p> <label for="id_subject_title"><?php echo $lang['txt_subject_title'];?></label><br /> <input type="text" name="subject_title" id="id_subject_title" value="<?php if (isset($subject['subject_title'])) { echo $subject['subject_title'];}?>" style="width:390px;" /> </p> <p> <label for="id_subject_body"><?php echo $lang['txt_subject_body'];?></label><br /> </p> <?php $html_editor_name = "subject_body"; ?> <?php $content = isset($subject['subject_body']) ? $subject['subject_body']: ""; ?> <?php include $template_path_core . 'inc/html_editor.inc.php'; ?> <p align="right"> <input type="button" value="backup" onclick="javascript:saveToFile('subject_body');" class="input_submit" /> <input type="submit" name="update_subject" value="<?php echo $lang['sub_save'];?>" class="input_submit" /><br /> </p> </td> </tr> </table></div></form><form action="components/core/relay/savetofile.php" method="POST" name="sendtofileform"><input type="hidden" name="filename" value="subject<?php if (isset($subject['subject_id'])) { echo $subject['subject_id'];}?>" /><input type="hidden" name="data" id="sendtofile" value="" /></form><script type="text/javascript">//<![CDATA[function saveToFile(id) { document.getElementById('sendtofile').value = document.getElementById(id).value; document.sendtofileform.submit();}//]]></script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -