source: temp/test-xoops.ec-cube.net/html/modules/xoopsfaq/admin/contentsform.php @ 405

Revision 405, 3.8 KB checked in by root, 20 years ago (diff)
Line 
1<?php
2// $Id: contentsform.php,v 1.3 2005/08/03 12:40:01 onokazu Exp $
3//  ------------------------------------------------------------------------ //
4//                XOOPS - PHP Content Management System                      //
5//                    Copyright (c) 2000 XOOPS.org                           //
6//                       <http://www.xoops.org/>                             //
7//  ------------------------------------------------------------------------ //
8//  This program is free software; you can redistribute it and/or modify     //
9//  it under the terms of the GNU General Public License as published by     //
10//  the Free Software Foundation; either version 2 of the License, or        //
11//  (at your option) any later version.                                      //
12//                                                                           //
13//  You may not change or alter any portion of this comment or credits       //
14//  of supporting developers from this source code or any supporting         //
15//  source code which is considered copyrighted (c) material of the          //
16//  original comment or credit authors.                                      //
17//                                                                           //
18//  This program is distributed in the hope that it will be useful,          //
19//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
20//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
21//  GNU General Public License for more details.                             //
22//                                                                           //
23//  You should have received a copy of the GNU General Public License        //
24//  along with this program; if not, write to the Free Software              //
25//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
26//  ------------------------------------------------------------------------ //
27
28echo "<form action='index.php' method='post'>
29<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td class='bg2'>
30<table width='100%' border='0' cellpadding='4' cellspacing='1'>
31<tr><td nowrap='nowrap' class='bg3'>"._XD_QUESTION." </td><td class='bg1'><input type='text' name='contents_title' value='$contents_title' size='31' maxlength='255' /></td></tr>
32<tr><td nowrap='nowrap' class='bg3'>"._XD_ORDER." </td><td class='bg1'><input type='text' name='contents_order' value='".$contents_order."' size='4' maxlength='3' /></td></tr>";
33
34$checked = ($contents_visible == 1) ? " checked='checked'" : "";
35
36echo "<tr><td nowrap='nowrap' class='bg3'>"._XD_DISPLAY." </td><td class='bg1'><input type='checkbox' name='contents_visible' value='1'$checked /></td></tr>
37<tr><td nowrap='nowrap' class='bg3'>"._XD_ANSWER." </td><td class='bg1'>";
38
39include_once XOOPS_ROOT_PATH."/include/xoopscodes.php";
40
41xoopsCodeTarea("contents_contents", 60, 20);
42xoopsSmilies("contents_contents");
43
44$checked = ($contents_nohtml == 1) ? " checked='checked'" : "";
45echo "<br /><input type='checkbox' name='contents_nohtml' value='1'$checked />"._XD_NOHTML."<br />";
46
47$checked = ($contents_nosmiley == 1) ? " checked='checked'" : "";
48echo "<input type='checkbox' name='contents_nosmiley' value='1'$checked />"._XD_NOSMILEY."<br />";
49
50$checked = ($contents_noxcode == 1) ? " checked='checked'" : "";
51echo "<input type='checkbox' name='contents_noxcode' value='1'$checked />"._XD_NOXCODE."</td></tr>
52<tr><td nowrap='nowrap' class='bg3'>&nbsp;</td><td class='bg1'><input type='hidden' name='category_id' value='".$category_id."' /><input type='hidden' name='contents_id' value='".$contents_id."' /><input type='hidden' name='op' value='$op' /><input type='submit' name='contents_preview' value='"._PREVIEW."' />&nbsp;<input type='submit' name='contents_submit' value='"._SUBMIT."' /></td></tr>
53</table></td></tr></table>
54</form>";
55
56?>
Note: See TracBrowser for help on using the repository browser.