Beispiel #1
0
    <form action='' method='post' >
		    <table align="center">
		    <tr><td>Snooze Date</td><td><input type='text' name='snooze' id='snooze' /> </td></tr>
			<tr><td>Comment</td><td><textarea name='comment' id='comment'><?php 
    echo $obj->comment;
    ?>
</textarea></td></tr>
            <?php 
    if ($_SESSION['role'] != 'associate') {
        ?>
		    <tr><td colspan='2' align='center'><input type='submit'  id='submit' value='Update' /> </td></tr>
             <?php 
    }
    ?>
		      </table> </form>
<?php 
}
?>
		
<?php 
if ($_POST) {
    $id = $_REQUEST['notice_id'];
    $snooze = $_POST['snooze'];
    $comment = $_POST['comment'];
    $obj->snooze_notification($id, $snooze, $comment);
}
?>

</div>	
</body>
</html>