Location: PHPKode > projects > board-tnk > board-tnk/include/delete_answer.inc
<?
// form to delete an answer
if($i!="0" && $admin_action!="delete_answer"){
        $id_delete=$row["id"];
        ?>
        <br>
        <form action="<? print("$SELF"); ?>" method="post">
        <input type="hidden" name="id" value="<? print("$id"); ?>">
        <input type="hidden" name="id_delete" value="<? print("$id_delete"); ?>">
        <input type="hidden" name="admin" value="admin">
        <input type="hidden" name="admin_action" value="delete_answer">
        <input type="hidden" name="rows_init" value="<? print("$rows_init"); ?>">
        <input type="hidden" name="threads" value="<? print("$threads"); ?>">
        <input type="hidden" name="show" value="reply_list">
        <? include("include/all_forum_form.inc"); ?>
        <b><input type="submit" value="<? print("$talk[58]"); ?>"></b>
        </form>
        <?
}

// form to edit an answer
if($admin_action!="delete_answer"){
        $id_edit=$row["id"];
        ?>
        <br>
        <form action="<? print("$SELF"); ?>" method="post">
        <input type="hidden" name="id_edit" value="<? print("$id_edit"); ?>">
        <input type="hidden" name="id" value="<? print("$id"); ?>">
        <input type="hidden" name="admin" value="admin">
        <input type="hidden" name="rows_init" value="<? print("$rows_init"); ?>">
        <input type="hidden" name="threads" value="<? print("$threads"); ?>">
        <input type="hidden" name="postedit" value="postedit">
        <input type="hidden" name="show" value="edit">
        <? include("include/all_forum_form.inc"); ?>
        <b><input type="submit" value="<? print("$talk[90]"); ?>"></b>
        </form>
        <?
}
Return current item: board-tnk