/* File: fields_login.inc
* Desc: Contains arrays with the field names and form
* elements for the login Web page.
*/
include_once("functions_main.inc");
$page = array( "title" => "Cam-Ful Industries Employee Login Page",
"top" => "",
"bottom" => "
Send questions and comments
to admin@cam-ful.com ",
);
$elements_1 = array( "top" => "Returning User:
Login here",
"bottom" => "",
"submit" => "Login"
);
$elements_2 = array("top" => "New Users:
Register here and use a unique user name and password",
"bottom" => "",
"submit" => "Register"
);
$fields_1 = array("fusername" => "User Name",
"fpassword" => "Password"
);
$length_1 = array("fusername" => "10",
"fpassword" => "10"
);
$types_1 = array("fusername" => "text",
"fpassword" => "password"
);
$fields_2 = array("user_name" => "User Name",
"password" => "Password",
"email" => "Email Address",
"contact_name" => "Contact Name"
);
$types_2 = array("user_name" => "text",
"password" => "password",
"email" => "text",
"contact_name" => "text"
);
$length_2 = array("user_name" => "20",
"password" => "8",
"email" => "55",
"contact_name" => "40"
);
$options = array();
$connection = Connect_to_db("Vars.inc");
$results = mysqli_query($connection, "SELECT dept_id, name
FROM Department
ORDER BY name");
while($row = mysqli_fetch_assoc($results)) {
$options['dept_id'][$row['dept_id']] = $row['name'];
}
?>