All pastes #257032 Raw Edit

clay

public javascript v1 · immutable
#257032 ·published 2006-11-24 22:22 UTC
rendered paste body
<?php include('projectNumbers.php'); ?><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><title>Project Entry</title><link rel="stylesheet" href="form.css" type="text/css" /><script type="text/javascript">   function show(name)    {      document.all[name].style.visibility = 'visible';   }   function hide(name)    {      document.all[name].style.visibility = 'hidden';   }   function ifOther(value)   {      if (value = "other")	    show(otherPurpose);	  else	    hide(otherPurpose);   }     </script></head><body><h3>Please note the form has undergone some changes...<br />see <a href="http://atpm/projectentry/changes.txt">http://atpm/projectentry/changes.txt</a> for details</h3><form id="form1" name="form1" method="POST" action="submitHandling.php">	<div class="container">	<table>		<tr>			<td width="174"><h2 style="margin: 0px">Project Name</h2></td>			<td width="558" colspan="3"><input name="projectName" type="text" style="width: 575px; font-size: 13pt" value="" />				<p class="tip">&nbsp;</p>			</td>		</tr>		<tr>			<td width="174"><p class="field">Project Number</p></td>			<td width="192"><label><?php printf("%06s", $projectNumber); ?></label>			<input type="hidden" value="<?php printf('%06s', $projectNumber); ?>" name="projectNumber" />				<p class="tip">&nbsp;</p>			</td>			<td width="174"></td>			<td width="192"></td>		</tr>		<tr>			<td width="174"><p class="field">Date Recieved</p></td>			<td width="192"><input name="dateRecieved" value="<?php echo date('Y-m-d'); ?>" type="text" style="width: 192px" maxlength="16" />			</td>			<td width="174"><p class="field">Received By</p></td>			<td width="192"><input name="recievedBy" type="text" style="width: 192px" maxlength="16" />			</td>		</tr>	</table>		<h2>Customer Information</h2>	<table>		<tr>			<td width="174"><p class="field">Customer Name</p></td>			<td width="192"><input name="custName" type="text" style="width: 192px" maxlength="16" />			</td>			<td width="174"><p class="field">Phone Number</p></td>			<td width="192"><input name="custPhone" type="text" style="width: 192px" maxlength="16" />				<p class="tip">(555) 555-5555</p>			</td>		</tr>		<tr>			<td width="174"><p class="field">College</p></td>			<td width="192"><input type="text" name="college" style="width: 192px" />				<p class="tip">&nbsp;</p>			</td>			<td width="174"><p class="field">Department</p></td>			<td width="192"><input name="department" type="text" style="width: 192px" /></td>		</tr>		<tr>			<td width="174"><p class="field">Payment/Account #</p></td>			<td width="192"><input name="accountNumber" type="text" style="width: 192px" maxlength="16" /></td>			<td width="174"></td>			<td width="192"></td>		</tr>	</table>	<h2>Project Information</h2>	<table>		<tr>			<td width="174"><p class="field">Purpose</p></td>			<td width="192">				<label>					<select name="purpose" style="width: 192px" onChange="ifOther(this.value)">						<option value="academic" style="width: 192px">Academic</option>						<option value="nonacademic" style="width: 192px">Non-Academic</option>						<option value="personal" style="width: 192px">Personal</option>						<option value="other" style="width: 192px">Other...</option>					</select>				</label>			</td>			<td width="366" colspan="2">			<div id="otherPurpose" style="visibility:hidden;">			<input name="other" type="text" style="width: 192px" maxlength="16" />			</div>			</td>		</tr>		<tr>			<td width="174"><p class="field">Project Instructions</p></td>			<td width="558" colspan="3"><textarea name="custInstructions" style="width: 558px" rows="5"></textarea>				<p class="tip">&nbsp;</p>			</td>		</tr>		<tr>			<td width="174"><p class="field">Project Resources</p></td>			<td width="558" colspan="3"><textarea name="custResources" style="width: 558px" rows="5"></textarea>				<p class="tip">&nbsp;</p>			</td>		</tr>		<tr>			<td width="174"><p class="field">Deployment</p></td>			<td width="192">				<label>					<select name="deployment" style="width: 192px">						<option value="print" style="width: 192px">Print</option>						<option value="web" style="width: 192px">Web</option>						<option value="pda" style="width: 192px">PDA</option>						<option value="cd" style="width: 192px">CD</option>						<option value="dvd" style="width: 192px">DVD</option>						<option value="etext" style="width: 192px">Electronic Text</option>						<option value="sasv" style="width: 192px">Streaming Audio/Video</option>						<option value="aipod" style="width: 192px">Audio iPod</option>						<option value="vipod" style="width: 192px">Video iPod</option>						<option value="other" style="width: 192px">Other...</option>					</select>				</label>			</td>			<td width="366" colspan="2"><input name="deployOther" type="text" style="width: 192px" maxlength="16" />				<p class="tip">If other</p>			</td>		</tr>		<tr>			<td width="174"><p class="field">Desired Completion Date</p></td>			<td width="192"><input name="completionDate" type="text" style="width: 192px" maxlength="16" />				<p class="tip">yyyy-mm-dd</p>			</td>			<td width="174"><p class="field">Completed</p></td>			<td width="192"><input type="checkbox" name="status" value="completed" />			</td>		</tr>	</table>	<hr />	<p style="text-align: center">	<label>	<input name="submitButton" type="submit" id="submitButton" value="Submit" style="background-color: #0da0c6; color: #fff" />	</label>	<input name="resetButton" type="reset" id="resetButton" value="Reset" style="background-color: #0da0c6; color: #fff" />	</p></div></form></body></html>