Location: PHPKode > projects > HuskyMail Webmail > contacts/edit.php
<?php
require_once("../contacts/decrypt.php");
if ($show == false) { require_once("../contacts/list.php"); }
else {
?>
<form action='contacts.php' method='post' onsubmit='return check_add();'>
<input type='hidden' name='action' value='update' />
<input type='hidden' name='uniqueid' value='<?php echo $uniqueid; ?>' />
<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;'>&nbsp;</td>
		<td><input type='text' class='txt' name='identifier' id='identifier' value='<?php echo $identifier; ?>' style='width: 250px;' /></td>
		</tr>
	<tr><td>&nbsp;</td>
		<td>&nbsp;</td>
	</tr>
	<tr><td>Email (Home):</td>
		<td><input type='email' class='txt' name='emailhome' id='emailhome' value='<?php echo $emailhome; ?>' style='width: 250px;' /></td>
		</tr>
	<tr><td>Email (Work):</td>
		<td><input type='email' class='txt' name='emailwork' id='emailwork' value='<?php echo $emailwork; ?>' style='width: 250px;' /></td>
		</tr>
	<tr><td>First Name:</td>
		<td><input type='text' class='txt' name='firstname' id='firstname' value='<?php echo $firstname; ?>' style='width: 250px;' /></td>
		</tr>
	<tr><td>Middle Name:</td>
		<td><input type='text' class='txt' name='middlename' id='middlename' value='<?php echo $middlename; ?>' style='width: 250px;' /></td>
		</tr>
	<tr><td>Last Name:</td>
		<td><input type='text' class='txt' name='lastname' id='lastname' value='<?php echo $lastname; ?>' style='width: 250px;' /></td>
		</tr>
	<tr><td>Position:</td>
		<td><input type='text' class='txt' name='position' id='position' value='<?php echo $position; ?>' style='width: 250px;' /></td>
		</tr>
	<tr><td>Company:</td>
		<td><input type='text' class='txt' name='company' id='company' value='<?php echo $company; ?>' style='width: 250px;' /></td>
		</tr>
	<tr>
		<td>&nbsp;</td>
		<td>&nbsp;</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+"'");
							if (d == "<?php echo $birthday; ?>") { document.write(" selected"); }
							document.write(">"+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+"'");
							if (m == "<?php echo $birthmonth; ?>") { document.write(" selected"); }
							document.write(">"+m+"</option>"); }
						document.write("</select>"); </script></td>
				<td><script language="javascript" type="text/javascript">
						document.write("<select name='birthyear'>");
						for (y=1900; y<2011; y++) { document.write("<option value='"+y+"'");
							if (y == "<?php echo $birthyear; ?>") { 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;'>&nbsp;</td>
		<td><input type='text' class='txt' name='phonehome' id='phonehome' value='<?php echo $phonehome; ?>' style='width: 250px;' /></td>
		</tr>
	<tr>
		<td>Phone (Work):</td>
		<td><input type='text' class='txt' name='phonework' id='phonework' value='<?php echo $phonework; ?>' style='width: 250px;' /></td>
		</tr>
	<tr>
		<td>Phone (Cell):</td>
		<td><input type='text' class='txt' name='phonecell' id='phonecell' value='<?php echo $phonecell; ?>' style='width: 250px;' /></td>
		</tr>
	<tr>
		<td>Phone (Fax):</td>
		<td><input type='text' class='txt' name='phonefax' id='phonefax' value='<?php echo $phonefax; ?>' style='width: 250px;' /></td>
		</tr>
	<tr>
		<td>Url:</td>
		<td><input type='text' class='txt' name='url' id='url' value='<?php echo $url; ?>' style='width: 250px;' /></td>
		</tr>
	<tr>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td>Home Address:</td>
		<td><input type='text' class='txt' name='addresshome' id='addresshome' value='<?php echo $addresshome; ?>' style='width: 350px;' /></td>
	</tr>
	<tr>
		<td>Work Address:</td>
		<td><input type='text' class='txt' name='addresswork' id='addresswork' value='<?php echo $addresswork; ?>' style='width: 350px;' /></td>
	</tr>
	<tr>
		<td>Postal Address:</td>
		<td><input type='text' class='txt' name='addresspostal' id='addresspostal' value='<?php echo $addresspostal; ?>' 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='border: none; background-color: rgb(250,250,250); width: 500px; height: 100px;'><?php echo $notes; ?></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'<?php if ($test_encrypt != "husky") { echo " checked"; } ?>  /></td>
			<td width='5'>&nbsp;</td>
			<td><b>Encrypt this contact file</b></td>
			<td width='20'>&nbsp;</td>
			<td>Passkey:</td>
			<td width='5'>&nbsp;</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='UPDATE' /><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></form>
<?php } ?>
Return current item: HuskyMail Webmail