<?php
	require_once ('authorize1.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">

<head>
<title>Moreno Travel</title>
<script src="sorttable.js"></script>
    <link href="style.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="content-type"
        content="text/html; charset=utf-8" />



</head>

<?php include 'admin_header.php'; ?>

<h1>Add Itinerary</h1>



 <form method="post" action="admin_additineraryscript.php">

 <select name="package_id"  />  <option disabled="disabled" selected="selected">Select a package:</option> 
 <?php

require_once('connectvars.php');

	

$dbh = mysql_connect(hostname, username, password)

	or die("Unable to connect to MySQL");

mysql_select_db (dbname, $dbh);



$query = sprintf("SELECT package_name, package_id FROM packages ORDER BY package_name ASC");




$result = mysql_query($query);


if (!$result) {

    $message  = 'Invalid query: ' . mysql_error() . "\n";

    $message .= 'Whole query: ' . $query;

    die($message);

}


while ($row = mysql_fetch_assoc($result)) {


echo "<option value=\"".$row['package_id']."\">".$row['package_name']."</option>";

}
?>
</select><br><br>
<strong>Day:</strong> <input size="1" type="text" name="day"  />&nbsp;&nbsp;&nbsp;
<strong>Headline:</strong> <input size="100" type="text" name="headline"  /> <br><br>
<strong>Breakfast is held:</strong> <input size="100" type="text" name="breakfast"  /> <br><br>
<strong>Lunch is held:</strong> <input size="100" type="text" name="lunch"  /> <br><br>
<strong>Dinner is held:</strong> <input size="100" type="text" name="dinner"  /> <br><br>
<strong>Overnight, enjoy a good night's rest at:</strong> <input size="100" type="text" name="overnight"  /> <br><br>
<strong>Details:</strong><i><font color="#C11B17" size="0.5px"> Place each bulleted point within &lt;li> &lt;/li> tags, minus the bullet. </font></i><br>
<br> <textarea cols="110" rows="10" name="details"></textarea><br><br>

<input type="submit" value="Submit">
</form>
  



</div>

</body>

</html>