<form action='contacts.php' method='post' onsubmit='return check_add();'>
<input type='hidden' name='action' value='add' />
<table border='0' cellpadding='0' cellspacing='0'>
<tr><td class='titlebars' align='center'>
<b style='font-size: 11px;'>PERSONAL DETAILS</b></td></tr>
<tr><td style='padding: 10px; border: 1px solid #666666; background-color: rgb(250,250,250);'>
<table border='0' cellpadding='0' cellspacing='0'>
<tr>
<td>Unique Identifier:</td>
<td rowspan="11" style='width: 10px;'> </td>
<td><input type='text' class='txt' name='identifier' id='identifier' value='<?php
if (isset($_GET['new'])) {
if (isset($_GET['f'])) {
$namer = $_GET['f']." ".$_GET['m']." ".$_GET['l'];
if ($namer == "0 0 0") { $display = $_GET['new']; }
else {
$display = "";
if ($_GET['f'] != "0") { $display .= $_GET['f']; }
if ($_GET['m'] != "0") { $display .= " ".$_GET['m']; }
if ($_GET['l'] != "0") { $display .= " ".$_GET['l']; }}
echo $display; }}
?>' style='width: 250px;' /></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Email (Home):</td>
<td><input type='email' class='txt' name='emailhome' id='emailhome' value='<?php
if (isset($_GET['new'])) { if ($_GET['new'] != "1") { echo $_GET['new']; }} ?>' style='width: 250px;' /></td>
</tr>
<tr>
<td>Email (Work):</td>
<td><input type='email' class='txt' name='emailwork' id='emailwork' value='' style='width: 250px;' /></td>
</tr>
<tr>
<td>First Name:</td>
<td><input type='text' class='txt' name='firstname' id='firstname' value='<?php
if (isset($_GET['f'])) { if ($_GET['f'] != "0") { echo $_GET['f']; }} ?>' style='width: 250px;' /></td>
</tr>
<tr>
<td>Middle Name:</td>
<td><input type='text' class='txt' name='middlename' id='middlename' value='<?php
if (isset($_GET['m'])) { if ($_GET['m'] != "0") { echo $_GET['m']; }} ?>' style='width: 250px;' /></td>
</tr>
<tr>
<td>Last Name:</td>
<td><input type='text' class='txt' name='lastname' id='lastname' value='<?php
if (isset($_GET['l'])) { if ($_GET['l'] != "0") { echo $_GET['l']; }} ?>' style='width: 250px;' /></td>
</tr>
<tr>
<td>Position:</td>
<td><input type='text' class='txt' name='position' id='position' value='' style='width: 250px;' /></td>
</tr>
<tr>
<td>Company:</td>
<td><input type='text' class='txt' name='company' id='company' value='' style='width: 250px;' /></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Birthday:</td>
<td>
<table border='0' cellpadding='0' cellspacing='0'>
<tr>
<td><script language="javascript" type="text/javascript">
document.write("<select name='birthday'>");
for (d=1; d<32; d++) { document.write("<option value='"+d+"'>"+d+"</option>"); }
document.write("</select>"); </script></td>
<td><script language="javascript" type="text/javascript">
document.write("<select name='birthmonth'>");
for (m=1; m<13; m++) { document.write("<option value='"+m+"'>"+m+"</option>"); }
document.write("</select>"); </script></td>
<td><script language="javascript" type="text/javascript">
document.write("<select name='birthyear'>");
for (m=1900; m<2011; m++) {
document.write("<option value='"+m+"'");
if (m == "1970") { document.write(" selected"); }
document.write(">"+m+"</option>"); }
document.write("</select>"); </script></td>
</tr>
</table>
</td>
</tr>
</table>
</td></tr>
<tr><td height='5'></td></tr>
<tr><td class='titlebars' align='center'>
<b style='font-size: 11px;'>CONTACT DETAILS</b></td></tr>
<tr><td style='padding: 10px; border: 1px solid #666666; background-color: rgb(250,250,250);'>
<table border='0' cellpadding='0' cellspacing='0'>
<tr>
<td>Phone (Home):</td>
<td rowspan="9" style='width: 10px;'> </td>
<td><input type='text' class='txt' name='phonehome' id='phonehome' value='' style='width: 250px;' /></td>
</tr>
<tr>
<td>Phone (Work):</td>
<td><input type='text' class='txt' name='phonework' id='phonework' value='' style='width: 250px;' /></td>
</tr>
<tr>
<td>Phone (Cell):</td>
<td><input type='text' class='txt' name='phonecell' id='phonecell' value='' style='width: 250px;' /></td>
</tr>
<tr>
<td>Phone (Fax):</td>
<td><input type='text' class='txt' name='phonefax' id='phonefax' value='' style='width: 250px;' /></td>
</tr>
<tr>
<td>Url:</td>
<td><input type='text' class='txt' name='url' id='url' value='' style='width: 250px;' /></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Home Address:</td>
<td><input type='text' class='txt' name='addresshome' id='addresshome' value='' style='width: 350px;' /></td>
</tr>
<tr>
<td>Work Address:</td>
<td><input type='text' class='txt' name='addresswork' id='addresswork' value='' style='width: 350px;' /></td>
</tr>
<tr>
<td>Postal Address:</td>
<td><input type='text' class='txt' name='addresspostal' id='addresspostal' value='' style='width: 350px;' /></td>
</tr>
</table>
</td><tr>
<tr><td height='5'></td></tr>
<tr><td class='titlebars' align='center'>
<b style='font-size: 11px;'>NOTES</b></td></tr>
<tr><td style='padding: 0px; border: 1px solid #666666;'>
<textarea class='txt' name='notes' id='notes' style='width: 500px; height: 100px; background-color: rgb(250,250,250); border: none;'></textarea>
</td></tr>
<tr><td height='5'></td></tr>
<tr><td class='titlebars' align='center'>
<b style='font-size: 11px;'>FILE OPTIONS</b></td></tr>
<tr><td style='padding: 10px; border: 1px solid #666666; background-color: rgb(250,250,250);' align='center'>
<table border='0' cellpadding='0' cellspacing='0'>
<tr>
<input type='hidden' name='test_encrypt' value='husky' />
<td><input type='checkbox' name='encrypt' id='encrypt' value='1' /></td>
<td width='5'> </td>
<td><b>Encrypt this contact file</b></td>
<td width='20'> </td>
<td>Passkey:</td>
<td width='5'> </td>
<td><input type='password' class='txt' name='passkey' id='passkey' value='<?php
if (isset($_COOKIE['passkey'])) { echo $foo->decode($_COOKIE['passkey'],$default_key); } ?>' style='width: 80px;' /></td>
</tr>
</table>
</td></tr>
<tr><td style='border: 1px solid #666666; border-top: none; background-color: #FFFFFF; padding: 5px;' align='center'>
<table border='0' cellpadding='0' cellspacing='0'>
<tr>
<td><tt>[</tt><input onfocus='this.blur();' type='submit' onmouseover='look(this,1);' onmouseout='look(this,0);' vspace='0' hspace='0' class='btn' name='new_submit' value='CREATE' /><tt>]</tt></td>
<td width='2'></td>
<td><tt>[</tt><input onfocus='this.blur();' type='reset' onmouseover='look(this,1);' onmouseout='look(this,0);' vspace='0' hspace='0' class='btn' name='new_reset' value='RESET' /><tt>]</tt></td>
<td width='2'></td>
<td><tt>[</tt><input onfocus='this.blur();' type='button' onmouseover='look(this,1);' onmouseout='look(this,0);' vspace='0' hspace='0' class='btn' name='new_cancel' value='CANCEL' onClick='window.location.href = "contacts.php";' /><tt>]</tt></td>
</tr>
</table>
</td></tr>
</table>
</td></tr>
</table>
</form>