/* Script Name: contact.phtml
Script Purpose: Simple Contact Database Script Version: 1.1
Script Author: Michael J. Miller Jr. (mke@netcom.com)
*/
/* First let's set some variables. */
$hostname = "luna";
$password = "fzr400dead";
$user = "maggot";
/* Now to define functions. */
/* The main screen. Printed when $state is empty. */
Function start_page (){
global $location, $list, $edit, $search, $state, $redir;
echo "
Welcome To The Contact Database
";
echo "You have the following choices:";
echo "";
}
//Function list_job() {
// global $location, $list, $edit, $search, $state;
// echo "state = $state ";
// $location = "http://sunsite.unc.edu/mccarthy/db/showtable.phtml";
// echo "location = $location";
// echo "";
// }
/* The main loop. Call functions based on the value of $state, which
gets set via a hidden INPUT TYPE. */
switch($state) {
case "";
$redir = "startpage2.phtml";
start_page();
break;
case "list";
$redir = "showtable.phtml";
start_page();
break;
case "create";
$redir = "showtable.phtml";
start_page();
break;
case "edit";
echo "";
// Contact_Form($state, $uid);
break;
case "search";
echo "";
// Commit_Update($uid,$first_name,$middle_initial,$last_name,$phone,$fax,$email);
break;
}
?>