By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,969 Members | 2,493 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,969 IT Pros & Developers. It's quick & easy.

Print issue in IE 6, not IE 7

100+
P: 219
When I try to print a 'print version' of my page it looks fine in IE 7, but when I print in IE 6 the margins are all screwed up. The page itself looks the same in both browsers, it's just when I print the elements look bigger when I print from IE 6

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Online Performance Evaluation</title> <link href="oneColElsCtrHdr.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" href="print.css" type="text/css" media="print" /> <style type="text/css"> <!-- html { margin: 0; border: 1px solid red; } body { margin: 0; border: 1px solid green; } .style1 { font-size: x-small; } .style2 { font-size: large; color: #FFFF99; } .style13 {font-size: small} #mainContent{margin:0 20px;} #print_employee,#print_details,#eval_details{font-size:x-small; padding:10px;} .oneColElsCtrHdr #container{border:none;} .oneColElsCtrHdr #container #mainContent #perf_form .para { background-color: #CCCCCC; border: 1px solid #000000; font-size:x-small; padding:2px; } .oneColElsCtrHdr .reqFields { background-color: #FFFFCC; border: 1px solid #999999; padding: 2px; } .style17 { color: #CCCCCC; font-family: "Arial Rounded MT Bold"; font-size: large; } .style19 {font-size: x-small; font-weight: bold; } .style20 {font-size: x-small; font-style: italic; } .style21 { color: #FFFFFF; } .style23 {font-size: small; font-weight: bold; } #mainContent{color:#000;} #links .left{float:left;} #links .right{float:right} .clear{clear:both;} hr{background-color: #666;height:2px;} --> </style> </head> <body class="oneColElsCtrHdr"> <cfquery name="retrieveEval" datasource="Performance_Eval" dbtype="ODBC"> Select a.*,b.* from eval a,employee b where id='#URL.id#' and a.emp_id=b.emp_id </cfquery> <cfscript> function returnValue(value) { switch(value){ case 1:{ conv_value = "N/A"; break; } case 2:{ conv_value = "Unsatisfactory"; break; } case 3:{ conv_value = "Needs Improvement"; break; } case 4:{ conv_value = "Achieves"; break; } case 5:{ conv_value = "Excels"; break; } default:{ conv_value = ""; break; } } //end switch return conv_value; } </cfscript> <cfscript> function displayEval(){ WriteOutput("<i><h3>Performance Evaluation Details</h3></i> <div id='eval_details'> <p><u>Evaluation Details</u></p> <b>Date Submitted: </b>#DateFormat(date_submitted,'mm/dd/yyyy')# #TimeFormat(date_submitted,'HH:mm')#<br /> <b>Evalution Signed: </b>#iif(eval_complete eq 1,DE('Yes'),DE('No'))# </div> <br /> <div id='print_employee' > <p><u>Employee Section</u></p> <b>Employee ID:</b> #emp_id# <br /> <b>Last Name:</b> #last_name#<br /> <b>First Name:</b> #first_name#<br /> <b>Job Code:</b> #job_code#<br /> <b>Completed By:</b> #comp_by#<br /> <b>Performance Period:</b> #DateFormat(beg_perf_period,'mm/dd/yyyy')# - #DateFormat(end_perf_period,'mm/dd/yyyy')#<br /> </div> <br /> <div id='print_details'> <p><u>Annual Basic Requirements</u></p> <b>Certification:</b> #iif(cert_onfile eq 1,DE('On File'),DE('N/A'))#<br /> <b>Compliance/Privacy Training:</b> #iif(compliance_onfile eq 1,DE('On File'),DE('N/A'))#<br /> <b>Confidentiality Statement:</b> #iif(confident_onfile eq 1,DE('On File'),DE('N/A'))#<br /> <b>Conflict of Interest:</b> #iif(conflict_onfile eq 1,DE('On File'),DE('N/A'))#<br /> <b>CPR/ACLS Validation:</b> #iif(cpr_onfile eq 1,DE('On File'),DE('N/A'))#<br /> <b>Education Record:</b> #iif(education_onfile eq 1,DE('On File'),DE('N/A'))#<br /> <b>Professional License:</b> #iif(license_onfile eq 1,DE('On File'),DE('N/A'))#<br /> <b>EOC Test Results:</b> #iif(eoc_onfile eq 1,DE('On File'),DE('N/A'))#<br /> <b>Validation of Annual PPD:</b> #iif(ppd_onfile eq 1,DE('On File'),DE('N/A'))#<br /> <hr /> <p><u>Employee Performance</u></p> <b>Job Responsibility ##1:</b> #job_resp_1#<br /> <b>Job Responsibility ##1 Response:</b>#returnValue(job_resp_1_val)#<br /> <cfif job_resp_2 neq ''> <b>Job Responsibility ##2:</b> #job_resp_2#<br /> <b>Job Responsibility ##2 Response:</b> #returnValue(job_resp_2_val)#<br /> </cfif> <cfif job_resp_3 neq ''> <b>Job Responsibility ##3:</b> #job_resp_3#<br /> <b>Job Responsibility ##3 Response:</b> #returnValue(job_resp_3_val)#<br /> </cfif> <cfif job_resp_4 neq ''> <b>Job Responsibility ##4:</b> #job_resp_4#<br /> <b>Job Responsibility ##4 Response:</b> #returnValue(job_resp_4_val)#<br /> </cfif> <cfif job_resp_5 neq ''> <b>Job Responsibility ##5:</b> #job_resp_5#<br /> <b>Job Responsibility ##5 Response:</b> #returnValue(job_resp_5_val)#<br /> </cfif> <cfif job_resp_6 neq ''> <b>Job Responsibility ##6:</b> #job_resp_6#<br /> <b>Job Responsibility ##6 Response:</b> #returnValue(job_resp_6_val)#<br /> </cfif> <cfif job_resp_7 neq ''> <b>Job Responsibility ##7:</b> #job_resp_7#<br /> <b>Job Responsibility ##7 Response:</b> #returnValue(job_resp_7_val)#<br /> </cfif> <cfif competency_link neq ''> <b>Competency Link:</b> #iif(competency_link eq '',DE('None'),DE("<a href='#competency_link#'>#competency_link#</a>"))#<br /> </cfif> <hr /> <b>Current Year Goal ##1:</b> #curr_goals_1#<br /> <b>Current Year Goal ##1 Response:</b>#returnValue(curr_goals_1_val)#<br /> <cfif curr_goals_2 neq ''> <b>Current Year Goal ##2:</b> #curr_goals_2#<br /> <b>Current Year Goal ##2 Response:</b> #returnValue(curr_goals_2_val)#<br /> </cfif> <cfif curr_goals_3 neq ''> <b>Current Year Goal ##3:</b> #curr_goals_3#<br /> <b>Current Year Goal ##3 Response:</b> #returnValue(curr_goals_3_val)#<br /> </cfif> <cfif curr_goals_4 neq ''> <b>Current Year Goal ##4:</b> #curr_goals_4#<br /> <b>Current Year Goal ##4 Response:</b> #returnValue(curr_goals_4_val)#<br /> </cfif> <cfif curr_goals_5 neq ''> <b>Current Year Goal ##5:</b> #curr_goals_5#<br /> <b>Current Year Goal ##5 Response:</b> #returnValue(curr_goals_5_val)#<br /> </cfif> <b>Current Year Goals Comment: </b>#curr_year_goals_comm#<br /> <hr /> <b>Quality Improvement:</b> #returnValue(qual_improvement)#<br /> <b>Comment: </b>#qual_improve_comm#<br /> <br /> <b>Use of Resources:</b> #returnValue(use_resources)#<br /> <b>Comment: </b>#use_resources_comm#<br /> <br /> <b>Cultural Diversity:</b> #returnValue(cult_diversity)#<br /> <b>Comment: </b>#cult_diversity_comm#<br /> <br /> <b>Communications:</b> #returnValue(communications)#<br /> <b>Comment: </b>#communications_comm#<br /> <br /> <b>Teamwork:</b> #returnValue(teamwork)#<br /> <b>Comment: </b>#teamwork_comm#<br /> <br /> <b>Patient Satisfaction:</b> #returnValue(patient_satisfaction)#<br /> <br /> <b>Customer Service:</b> #returnValue(rating_pat_svc)#<br /> <b>Comment: </b>#rating_pat_svc_comm#<br /> <hr /> <p><u>Documentation Requirements</u></p> <b>HealthAlliance Policies:</b> #iif(ha_policies eq 1,DE('yes'),DE('no'))#<br /> <b>Attendance:</b> #iif(attendance eq 1,DE('yes'),DE('no'))#<br /> <b>Dress Appearance:</b> #iif(dress_appearance eq 1,DE('yes'),DE('no'))#<br /> <b>Comments:</b> #emp_doc_comm#<br /> <hr /> <p><u>Overall Performance</u></p> <b>Overall Performance: </b>#returnValue(overall_perf)#<br /> <b>Performance Improvement Plan Link: </b>#iif(perf_imp_plan_link eq '',DE('None'),DE("<a href='#perf_imp_plan_link#'>#perf_imp_plan_link#</a>"))#<br /> <b>Summary:</b> #summary#<br /> <hr /> <p><u>Development Goals for next review period</u></p> <b>Development Goals ##1: </b> #dev_goals_1#<br /> <b>Development Goals ##2: </b> #dev_goals_2#<br /> <b>Development Goals ##3: </b> #dev_goals_3#<br /> <b>Development Goals ##4: </b> #dev_goals_4#<br /> <b>Development Goals ##5: </b> #dev_goals_5#<br /> <br /> <hr /> <b>Employee Comments: </b>#iif(Len(emp_comment),DE(emp_comment),DE('none entered'))#<br /> <hr /> <p><u>Signatures</u></p> <b>Manager Signature: #manager_signature#</b><br /> <b>Employee Signature: #employee_signature#</b><br /> <b>Paper Signature: #iif(Len(signature_onfile) gt 0,DE('Yes'),DE('No'))#</b> </div> "); } </cfscript> <div id="container"> <div class="noprint"><a href="index.cfm"><img src="/Performance/img/performance_eval.gif" border="0"/></a></div> <!-- end #header --> <div id="mainContent"> <div id="submission"> <div id="links" class="noprint" > <br /> <a class="left" href="#" onclick="window.print();">Print this page</a> <a class="right" href="#" onclick="window.close();">Close this page</a> <br /> </div> <br class="clear"/> </div> <cfif URL.mode eq "email"> <cfoutput query="retrieveEval"> <CFMAIL TO= '#email#' CC='#session.mail#' FROM= "hal_webmaster@healthalliance.com" SUBJECT= "Evaluation Details" type="html"> #displayEval()# </CFMAIL> </cfoutput> </cfif> <cfif URL.mode eq "print"> <cfoutput query="retrieveEval">#displayEval()#</cfoutput> </cfif> <br /> <div class="noprint" id="submission"> <h4>Evaluation Details Requested</h4> <p>Thank you, <cfoutput query="retrieveEval">#session.givenname# #session.sn#. #iif(URL.mode eq "email",DE('The evaluation details have been sent to #email#'),DE('Please print this evaluation form'))#</cfoutput>.</p> <br /> <div id="links"> <hr /> <a class="left" href="#" onclick="window.print();">Print this page</a> <a class="right" href="#" onclick="window.close();">Close this page</a> </div> <br class="clear"/><br /> </div> </div> <div class="noprint" id="footer"> <p class="style1">Copyright &copy; 2008 - HealthAlliance Hospital</p> <!-- end #footer --></div> <!-- end #container --></div> </body> </html>
Sep 24 '08 #1
Share this Question
Share on Google+
2 Replies


100+
P: 219
How can I post my code, it's looking all messed up
Sep 24 '08 #2

100+
P: 219
How can I post my code, it's looking all messed up
Nevermind I'm a dummy. I didn't set my other stylesheet to media=screen so it was tinkering with my print stylesheet
Sep 24 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.