/* 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 Contractor 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",
"company_name" => "Company Name",
"address" => "Address",
"city" => "City",
"state" => "State",
"zip" => "Zip",
"contact_name" => "Contact Name",
"contact_phone" => "Phone Number",
"fax" => "Fax Number"
);
$types_2 = array("user_name" => "text",
"password" => "password",
"email" => "text",
"company_name" => "text",
"address" => "text",
"city" => "text",
"state" => "text",
"zip" => "text",
"contact_name" => "text",
"contact_phone" => "text",
"fax" => "text",
"dept_id" => "select"
);
$length_2 = array("user_name" => "20",
"password" => "8",
"email" => "55",
"company_name" => "40",
"address" => "40",
"city" => "40",
"state" => "20",
"zip" => "10",
"contact_name" => "40",
"contact_phone" => "12",
"fax" => "12",
);
$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'];
}
?>