1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
| <div id="headforum">
<h3>Forum</h3>
</div>
<table id="forum" cellspacing="0" style="background-color:#E2E2E2">
<form method="post" name="newpost" action="newpost.php?id_forum=<?php echo $id_forum; ?>">
<tr class="header">
<td colspan="2"><?php echo $arrLang['VotreMessage'] ?></td>
</tr>
<tr class="ligne">
<td width="100" class="right-bottom">
<b><?php echo $arrLang['ConnecteSous'] ?></b>
</td>
<td class="bottom">
<?php echo stripslashes($_SESSION['pseudonyme']); ?>
</td>
</tr>
<tr class="ligne">
<td width="100" class="right-bottom">
<b>Sujet :</b>
</td>
<td class="bottom">
<input type="text" name="sujet" style="width:550px" value="<?php echo stripslashes($tmp[0]); ?>"/>
</td>
</tr>
<tr class="ligne">
<td width="100" class="right-bottom">
<b><?php echo $arrLang['Message'] ?></b>
</td>
<td class="bottom">
<?php
echo "<script type='text/javascript'>";
$conceptRTEvalue=$tmp[1];
if(empty($conceptRTEvalue)) $conceptRTEvalue="";
$content = RTESafe($conceptRTEvalue);
//============================================================================//
// Usage: initRTE(imagesPath, includesPath, cssFile, language) //
//============================================================================//
echo "initRTE('".$racine."conceptRTE/images/', '".$racine."conceptRTE/', '".$racine."conceptRTE/style.css', 'FR');";
//============================================================================//
// Usage: writeRichText(fieldname, html, width, height, buttons) //
//============================================================================//
echo "writeRichText('rte', '".$content."', 570, 200, true, false);";
echo "</script>";
?>
<input type="hidden" name="conceptRTEvalue"/>
</td>
</tr>
<tr class="ligne">
<td width="100">
<?php if(isset($parent) && !empty($parent)) echo "<input type=\"hidden\" name=\"parent\" value=\"".$parent."\">"; ?>
<?php if(isset($post) && !empty($post)) echo "<input type=\"hidden\" name=\"post\" value=\"".$post."\">"; ?>
<input type="hidden" name="id_forum" value="<?php echo $id_forum; ?>"/>
<input type="hidden" name="cmd" value="<?php echo $action; ?>"/>
</td>
<td>
<input type="image" src="<?php echo $racine;?>img/structure2/forum/valider.gif" value="Valider" onClick="updateRTE('rte');newpost.conceptRTEvalue.value = newpost.rte.value;this.form.submit();" />
</td>
</tr>
</form></table> |
Partager