Printer
Posted: Fri Jan 08, 2010 6:32 pm
I am working on a form for work...so far looks good...its for our turnover at the end of each shift. Now its pretty much done, but I have three questions that need to be answered or helped in some way.
First: I am wanting to create a printer friendly page. Basically takes everything shown, strips it down to just the text to allow printing.
Second: I want to add a button in the Pending tickets section and pending rotations section. So this way, you click "Add" and it add a whole new section for another ticket.
Third: I want to be able to export everything that is on the screen to an excel doc to be saved to the HDD
Any help would be greatly appreciated...
Heres the code:
Enclosed is a screenshot of the current code in action
First: I am wanting to create a printer friendly page. Basically takes everything shown, strips it down to just the text to allow printing.
Second: I want to add a button in the Pending tickets section and pending rotations section. So this way, you click "Add" and it add a whole new section for another ticket.
Third: I want to be able to export everything that is on the screen to an excel doc to be saved to the HDD
Any help would be greatly appreciated...
Heres the code:
Code: Select all
<form name="firstshift" action="MAILTO:odcmediamgmt@acxiom.com" method="get" enctype="text/plain">
<!-- Non-editable fields-->
<b>Subject:</b> <input type="text" name="Subject" value="1st Shift Turnover" readonly>
<b>Todays Date:</b> <input type="text" name="currentdate" size="11" readonly>
<br><br>
<b>Turnover Number:</b> <input type="text" size="25" name="DialInNumber" value="888-***-**** ext. 367740#" readonly>
<br><br>
<!-- End Non-Editbale Fields-->
<!-- Editable fields-->
<fieldset>
<br>
<b>Outgoing Media Specialists:</b> <input type="text" size="46" name="OutgoingMS" value="">
<br>
<b>Incoming Media Specialists:</b> <input type="text" size="46" name="IncomingMS" value="">
<br><br>
<b>Outgoing Lead:</b> <input type="text" size="25" name="OutgoingLead" value="">
<br>
<b>Incoming Lead:</b> <input type="text" size="25" name="IncomingLead" value="">
</fieldset>
<br>
<fieldset>
<br>
<b>Procedure Changes:</b> <input type="text" size="75" name="ProcedureChanges" value="">
<br>
<b>Operational Changes:</b> <input type="text" size="75" name="OperationChanges" value="">
</fieldset>
<br>
<fieldset>
<legend>Pending Tickets</legend>
<br>
<b>Ticket Number:</b> <input type="text" size="20" name="TicketNumber" value="">
<b>Open Time:</b> <input type="text" size="20" name="TicketOpenTime" value="">
<b>Priority:</b>
<select name="TicketPriority">
<option value="low">Low</option>
<option value="medium">Medium</option>
<option value="high">High</option>
</select>
<b>Support Group:</b> <input type="text" size="15" name="SupportGroup" value="">
<b>Is this Production Impacting?</b>
<select name="ProductionImpacting">
<option value="yes">Yes</option>
<option value="no">No</option>
</select><br><br>
<b>Incident Summary Report:</b><br>
<textarea cols="50" rows="4" name="TicketIncidentReport"></textarea>
</fieldset>
<br>
<fieldset>
<legend>Pending Rotations</legend>
<br>
<b>Rotation Name:</b> <input type="text" size="15" name="RotationName" value="">
<b>Customer Name:</b> <input type="text" size="15" name="CusomterName" value="">
<b>Priority:</b>
<select name="RotationPriority">
<option value="low">Low</option>
<option value="medium">Medium</option>
<option value="high">High</option>
</select>
<b>Next Backup:</b> <input type="text" size="15" name="BackupRunTime" value="">
<b>Is this Production Impacting?</b>
<select name="RotationProductionImpacting">
<option value="yes">Yes</option>
<option value="no">No</option>
</select><br><br>
<b>Incident Summary Report:</b><br>
<textarea cols="50" rows="4" name="RotationIncidentReport"></textarea>
</fieldset>
<br>
<fieldset>
<legend>Other</legend>
<br>
<b>Frozen Tapes Occured:</b>
<select name="FrozenTapes">
<option value="yes">Yes</option>
<option value="no">No</option>
</select>
<b>If yes, what rotation(s):</b> <input type="text" size="25" name="FrozenTapesRotations" value="">
<br><br>
<b>All media scratched:</b>
<select name="MediaScratched">
<option value="yes">Yes</option>
<option value="no">No</option>
</select>
<b>If no, what rotation(s):</b> <input type="text" size="25" name="ScratchTapesRotations" value="">
<br><br>
<b>Number of tape mounts:</b> <input type="text" size="5" name="TapeMountNumbers" value="">
<br><br>
<b>Did all mounts appear on pager:</b>
<select name="MountsOnPager">
<option value="yes">Yes</option>
<option value="no">No</option>
</select>
<br><br>
<b>Turnover posted to G Drive:</b>
<select name="TurnOverGDrive">
<option value="yes">Yes</option>
<option value="no">No</option>
</select>
<br><br>
<b>Everyone turned in metrics:</b>
<select name="MSMetricsTurnedIn">
<option value="yes">Yes</option>
<option value="no">No</option>
</select>
<br><br>
<b>Problems with Puck/Eagle/Polonius:</b>
<select name="ProblemPuckEaglePolonius">
<option value="yes">Yes</option>
<option value="no">No</option>
</select>
<b>If Yes, please describe:</b> <input type="text" size="75" name="PuckEaglePoloniusProbDescription" value="">
<br>
</fieldset>
<center><br>
<input type="submit" value="Submit">
<input type="reset">
<INPUT TYPE="button" value="Print this page" onClick="window.print()">
</center>
</form>
<!--Current date function-->
<script>
var mydate=new Date()
var theyear=mydate.getYear()
if (theyear < 1000)
theyear+=1900
var theday=mydate.getDay()
var themonth=mydate.getMonth()+1
if (themonth<10)
themonth="0"+themonth
var theday=mydate.getDate()
if (theday<10)
theday="0"+theday
var displayfirst=themonth
var displaysecond=theday
var displaythird=theyear
document.firstshift.currentdate.value=displayfirst+"/"+displaysecond+"/"+displaythird
</script>
<!--End Current Date function-->