Location: PHPKode > scripts > SimpleNotes > simplenotes/snoteform.php
<?php 

/*****************************************************************************
/* SimplyNotes
/* version 1.10 23/08/2005
/* Copyright (C) 2004 Martin Hanus
/* hide@address.com
/* License:	This code is released under GPL version 2
*****************************************************************************/
?>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<meta name="Author" content="martin hanus">
</head>
<body>
<link rel="stylesheet" href="snote.css" type="text/css">
<span class="normal">
<?php

/* This form suits to input or edit snote */
require("snote.php"); 
if(empty($_GET["RootID"])) {$RootID=1;}else{$RootID=($_GET["RootID"]);}
if(empty($_GET["SnoteID"])) {$SnoteID=1;}else{$SnoteID=($_GET["SnoteID"]);}
if(empty($_GET["MoveWhat"])) {$MoveWhat=1;}else{$MoveWhat=($_GET["MoveWhat"]);}
if(empty($_GET["mode"])) {$mode="list";}else{$mode=($_GET["mode"]);}
if(empty($_GET["action"])) {$action="";}else{$action=($_GET["action"]);}
if(empty($_GET["MaxLevel"])) {$MaxLevel=100;}else{$MaxLevel=($_GET["MaxLevel"]);}
if(empty($_POST["Name"])) {$Name="?????";}else{$Name=($_POST["Name"]);}
if(empty($_POST["Hyperlink"])) {$Hyperlink="";}else{$Hyperlink=($_POST["Hyperlink"]);}
if(empty($_POST["BriefDesc"])) {$BriefDesc="";}else{$BriefDesc=htmlspecialchars($_POST["BriefDesc"], ENT_QUOTES);}
if(empty($_POST["BigText"])) {$BigText="";}else{$BigText=htmlspecialchars($_POST["BigText"], ENT_QUOTES);}

?>


<form name=mainform action="snoteindex.php<?php echo "?RootID=$RootID&SnoteID=$SnoteID&mode=$mode&action=$action&MaxLevel=$MaxLevel&MoveWhat=$MoveWhat"; ?>" method="POST">
  <FIELDSET>
    Name: <INPUT TYPE="TEXT" VALUE="<?php if ($action=="edit") {echo SnoteName($SnoteID);} ?>"  NAME="Name">
    Hyperlink: <INPUT TYPE="TEXT" VALUE="<?php if ($action=="edit") {echo Hyperlink($SnoteID);} ?>"  NAME="Hyperlink" size=108><br>
    Brief description<br>
    <TEXTAREA name="BriefDesc" 
              rows="5" cols="118"><?php if ($action=="edit") {echo BriefDesc($SnoteID);} ?></TEXTAREA>
    <br>Full text<br>
    <TEXTAREA name="BigText" 
              rows="24" cols="118"><?php if ($action=="edit") {echo BigText($SnoteID);} ?></TEXTAREA>
    </FIELDSET>
    <input style='font-size:18px' type="submit" value="Input Snote">
</form>
  
</span>
</body>
</html>

Return current item: SimpleNotes