<?php

echo "

<form action='index.php' method='post'>

<table border='0' cellpadding='0' cellspacing='0' valign='top' width='100%'><tr><td class='bg2'>

<table width='100%' border='0' cellpadding='4' cellspacing='1'>

<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>

<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>";

$checked = ($contents_visible == 1) ? " checked='checked'" : "";

echo "<tr><td nowrap='nowrap' class='bg3'>"._XD_DISPLAY." </td><td class='bg1'><input type='checkbox' name='contents_visible' value='1'$checked /></td></tr>

<tr><td nowrap='nowrap' class='bg3'>"._XD_ANSWER." </td><td class='bg1'>";

include_once(XOOPS_ROOT_PATH."/include/xoopscodes.php");

xoopsCodeTarea("contents_contents", 60, 20);

xoopsSmilies("contents_contents");

$checked = ($contents_nohtml == 1) ? " checked='checked'" : "";

echo "<br /><input type='checkbox' name='contents_nohtml' value='1'$checked />"._XD_NOHTML."<br />";

$checked = ($contents_nosmiley == 1) ? " checked='checked'" : "";

echo "<input type='checkbox' name='contents_nosmiley' value='1'$checked />"._XD_NOSMILEY."<br />";

$checked = ($contents_noxcode == 1) ? " checked='checked'" : "";

echo "<input type='checkbox' name='contents_noxcode' value='1'$checked />"._XD_NOXCODE."</td></tr>

<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>

</table></td></tr></table>

</form>";

?>