Location: PHPKode > projects > board-tnk > board-tnk/include/post.inc
<?
// title of message or reply
if($show=="reply_list"){
        if(!isset($titre_post)){$titre_post = "RE: ".$titre_init;}
        }elseif(!$postedit){
        $reply="0";
}

// saving how we were called
$show_save=$show;

//in case it is a correction of a message
if(isset($msg_back)){$msg_back=stripslashes(htmlspecialchars($msg_back));}
if(isset($titre_post)){$titre_post=stripslashes(htmlspecialchars($titre_post));}
if(isset($email_post)){$email_post=stripslashes(htmlspecialchars($email_post));}
if(isset($name_post)){$name_post=stripslashes(htmlspecialchars($name_post));}
if(isset($web_post)){$web_post=stripslashes(htmlspecialchars($web_post));}

// Entering user information and message

if($show=="new"){print("<b>$talk[7] $forum_name <b><br><br>");}
?>
<center>
<form name="newpost" action="<? print("$SELF"); ?>" method="post">
<input type="hidden" name="show" value="postit">
<input type="hidden" name="show_save" value="<? print("$show_save"); ?>">
<input type="hidden" name="rows_init" value="<? print("$rows_init"); ?>">
<input type="hidden" name="reply" value="<? print("$reply"); ?>">
<input type="hidden" name="id" value="<? print("$id"); ?>">
<input type="hidden" name="id_edit" value="<? print("$id_edit"); ?>">
<input type="hidden" name="threads" value="<? print("$threads"); ?>">
<input type="hidden" name="postedit" value="<? print("$postedit"); ?>">
<? include("include/all_forum_form.inc"); ?>

<table border="0" cellpadding="4" cellspacing="4">
<tr>
        <td align="left">
        <b><? print("$talk[44]\n"); ?></b>
        </td>
</tr>
<tr>
        <td align="left">
        <table border="0" cellpadding="4" cellspacing="4">
        <tr>
                <td align="left">
                <b><? print("$talk[17]") ?>*</b>
                </td>
                <td align="left">
                <input type="text" name="name_post" size="25" maxlength="25" value="<? print("$name_post"); ?>" >
                </td>
        </tr>
        <tr>
                <td align="left">
                <b><? print("$talk[18]") ?>*</b>
                </td>
                <td align="left">
                <input type="text" name="email_post" size="50" maxlength="50" value="<? print("$email_post"); ?>" >
                </td>
        </tr>
        <tr>
                <td align="left">
                <b><? print("$talk[13]") ?>
                </td>
                <td align=left>
                <input type="text" name="web_post" size="50" maxlength="50" value="<? print("$web_post"); ?>" >
                </td>
        </tr>
        <tr>
                <td align="left">
                <b><? print("$talk[19]") ?>*</b>
                </td>
                <td align="left">
                <input type="text" name="titre_post" size="50" maxlength="50" value="<? print("$titre_post"); ?>">
                </td>
        </tr>
        </table>
        <br>
        </td>
</tr>
<tr>
        <td align="left">
        <b><? print("$talk[22]") ?></b>
        </td>
</tr>
<tr>
        <td align="left">
        <? include ("include/icons_board.inc"); ?>
        <br>
        </td>
</tr>
<tr>
        <td align="left">
        <table border="0">
        <tr>
                <td align="left">
                <b><? print("$talk[20]") ?>*&nbsp;&nbsp;</b>
                </td>
                <td align="left">
                <input type="submit" value="<? print("$talk[23]"); ?>">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
                <td align="left">
                <table border="1">
                <tr class="head">
                        <td colspan="2">
                        <b><? print("$talk[88]"); ?></b>
                        </td>
                </tr>
                <tr class="row">
                        <td align="left">
                        <? print("$talk[86]"); ?>
                        <input type="radio" name="visu" value="visu" checked>
                        </td>
                        <td align="left">
                        <? print("$talk[87]"); ?>
                        <input type="radio" name="visu" value="novisu">
                        </td>
                </tr>
                </table>
                </td>
        </tr>
        </table>
        </td>
</tr>
<tr>
        <td align="left">
        <table border="0">
        <tr valign="top">
                <td align="left">
<?
if(isset($msg_back)){?><textarea name="msg" rows="15" cols="50" wrap="virtual"><? print("$msg_back");?></textarea>
<? }else{
?>
                <textarea name="msg" rows="15" cols="60" wrap="virtual"></textarea>
<? } ?>
                &nbsp;&nbsp;
                </td>
                <td align="left">
                <table border="1">
                        <tr class="head">
                        <td colspan="2" align="center">
                        <b><? print("$talk[21]") ?></b>
                        </td>
                        </tr>
                        <?
                        for($i=0;$i<$nb_html;$i++){
                                $j=$i+$talk_init;
                                print("<tr class=\"row\"><td align=\"center\"><a href=\"javascript.html\" target=\"blank\" onClick=\"addtxt('$tag[$i]');return false;\">$tag[$i]</a></td><td>$talk[$j]</td></tr>\n");
                                }
                        ?>
                </table>
                </td>
        </tr>
        </table>
        <br>
        </td>
</tr>
<tr>
        <td align="left">
        <b><? print("$talk[45]"); ?></b>
        </td>
</tr>
<tr>
        <td align="left">
        <table border="1">
        <tr>
                <td align="left">
                <table cellspacing="2" cellpadding="2" border="0">
                <? for ($i=0;$i<$nb_icons_click_rows;$i++){
                        ?>
                        <tr>
                        <?
                        for($j=1;$j<=$nb_icons_click_inline;$j++){
                                $k=$i*$nb_icons_click_inline+$j;
                                print("<td><a href=\"javascript.html\" target=\"blank\" onclick=\"addtxt(' /iconboard$k/ ');return false;\">
                                <img src=\"icons_board/icon$k.gif\" border=\"0\" alt=\"/iconboard$k/\"></img></a></td>\n");
                        }
                        print("</tr>\n");
                }
                ?>
                </table>
                </td>
        </tr>
        </table>
        </td>
</tr>
</table>
</form>
</center>
Return current item: board-tnk