Personal tools
Navigation
 

Re-ordering date in 2015-Sep-20 format html file

HTML icon ApptNotifyV7.html — HTML, 7 kB (7491 bytes)

File contents

<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ApptNotify</title>
<style>
 input {
	 -moz-box-sizing: content-box;
	 -webkit-print-color-adjust: exact;
	 -webkit-box-sizing: content-box;
	 box-sizing: content-box
}
 .sig {
	 border: 2px dotted blue;
	 background-color: lightgrey;
 }
 </style>

<style type="text/css" media="print">
 .DoNotPrint {
	 display: none;
 }
 .noborder {
	 border : 0px;
	 background: transparent;
	 scrollbar-3dlight-color: transparent;
	 scrollbar-3dlight-color: transparent;
	 scrollbar-arrow-color: transparent;
	 scrollbar-base-color: transparent;
	 scrollbar-darkshadow-color: transparent;
	 scrollbar-face-color: transparent;
	 scrollbar-highlight-color: transparent;
	 scrollbar-shadow-color: transparent;
	 scrollbar-track-color: transparent;
	 background: transparent;
	 overflow: hidden;
 }
.sig {
	 border-style: solid;
	 border-color: transparent;
	 background-color: transparent;
 }
 </style>

<!-- jQuery file for testing outside of OSCAR -->
<script language="javascript" type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="jSignature.min.js"></script>

<!-- OSCAR based files for greater functionality -->
<script type="text/javascript" src="${oscar_javascript_path}jquery/jquery-1.4.2.js"></script>
<script type="text/javascript" src="${oscar_javascript_path}eforms/printControl.js"></script>
<script type="text/javascript" src="${oscar_javascript_path}eforms/faxControl.js"></script>
<script language="javascript">
function formPrint(){
	window.print();
} 
</script>

<!-- scripts to confirm closing of window if it hadnt been saved yet -->
<script language="javascript">
//keypress events trigger dirty flag
var needToConfirm = false;
document.onkeyup=setDirtyFlag;
function setDirtyFlag(){
	needToConfirm = true;
}
function releaseDirtyFlag(){
	needToConfirm = false; //Call this function to prevent an alert.
//this could be called when save button is clicked
}
window.onbeforeunload = confirmExit;
function confirmExit(){
	if (needToConfirm){
		 return "You have attempted to leave this page. If you have made any changes to the fields without clicking the Save button, your changes will be lost. Are you sure you want to exit this page?";
	 }
}
</script>

<!-- scripts for date formatting -->
<script language="javascript">

function initializeDates()
{
	setDateFormat('appt_date', 'ApptD');
	setDateFormat('TodayDate', 'today');
}

function setDateFormat(element, elementdate)
{
	if(document.getElementById(element).value == "")
	{
		document.getElementById(element).value = formatDateDMY(document.getElementById(elementdate).value);	
	}	
}

function formatDateDMY(date)
{
	var monthNames = [
	        "Jan", "Feb", "Mar",
	        "Apr", "May", "Jun", "Jul",
	        "Aug", "Sep", "Oct",
	        "Nov", "Dec"
	];
	
	var dateParts = date.split('-');
	
	var formatted = "";
	if(dateParts.length ==3)
	{
		var year = dateParts[0];
		var monthIndex = dateParts[1];
		var day = dateParts[2];
		
		formatted = year + "-" + monthNames[monthIndex - 1] + "-" + day;
	} else{
	
		formatted = "error";
	}
	
	return formatted;
}

</script>

</head>
<body onload = "initializeDates();">

<form method="post" action="" name="FormName" id="FormName" >
<input type="hidden" name="ApptD" id="ApptD"  oscarDB=appt_date>
<input type="hidden" name="today" id="today"  oscarDB=today>

<div style="text-align: right;">
<font face="Georgia" size="3"><b>Dr. Daniel A. Robibo</b>, MD, MHSC, FRCSC*</font><br>
<font face="Bookman Old Style" size="3">General &amp; Laparoscopic Surgery</font><br>
<font face="Bookman Old Style" size="3">Gastrointestinal Endoscopy</font><br>
<font face="Bookman Old Style" size="3">Varicose Vein Management</font><br>
</div>
<hr size="2">

<div style="text-align: right;">
<font face="Bookman Old Style" size="2">*Dr. Daniel A. Robibo Inc.</font><br>
<font face="Bookman Old Style" size="2">Suite 200, 4515 Harvest Drive, Delta, B.C. V4K 4L1</font><br>
<font face="Bookman Old Style" size="2">Phone: (604) 940-2193 Fax: (604) 940-4121</font><br>
</div>
<br>
<br>
<div style="text-align: left;">
<font face="Times New Roman" size="3">
<input name="TodayDate" id="TodayDate" class="noborder normaltext" type="text" style="width: 300" value="">
<br>
<font face="Times New Roman" size="3"> <b>Appointment Notification</b> </font> <br>
<br>
<font face="Times New Roman" size="3">
To Office of Dr.: <br> 
<input name="referral_name" id="referral_name" type="text" class="noborder normaltext" style="width:700" oscarDB=referral_name> <br>
<input name="referral_address" id="referral_address" type="text" class="noborder normaltext" style="width:700" oscarDB=referral_address> <br>
Tel:<input name="referral_phone" id="referral_phone" type="text" class="noborder normaltext" style="width:150" oscarDB=referral_phone>
Fax:<input name="referral_fax" id="referral_fax" type="text" class="noborder normaltext" style="width:150" oscarDB=referral_fax> <br>
<textarea name="PatientLabel" id="PatientLabel" cols="50" rows="4" dir="ltr" oscarDB=Label></textarea> <br>
Age: &nbsp <input name="age" id="age" type="text" class="noborder normaltext" style="width:176"  oscarDB=age> <br>
Appointment Date: &nbsp 
<input name="appt_date" id="appt_date" class="noborder normaltext" class="noborder normaltext" type="text" style="width:300" value=""><br>
Appointment Time: &nbsp <input name="appt_time" id="appt_time" type="text" class="noborder normaltext" style="width:300" value=""><br>
<textarea name="Comments" class="noborder normaltext" style="height: 150; width:700;font-family:Times New Roman; font-style:normal; font-weight:normal; font-size=3; text-align:left; background-color:transparent;">Thank you for the referral. The above patient has an office appointment to see Dr. Robibo as listed above. Please ask the patient to call the office two weeks prior to confirm the appointment and please ask the patient to bring a list of all current medications. If you feel that your patient needs to be seen sooner, please do not hesitate to contact us. We will make every effor to move up the appointment. Thank you</textarea>
<br>
<textarea name="Signature" class="noborder normaltext" style="height: 200; width:700;font-family:Times New Roman; font-style:normal; font-weight:normal; font-size=3; text-align:left; background-color:transparent;">Sincerely yours,

The office of Dr. Daniel A. Robibo MD, MHSC, FRCSC
MSP#25649
Electronically Signed to Expedite Delivery </textarea>

</font>
</div>

 <div class="DoNotPrint" id="BottomButtons" style="position: absolute; top:971px; left:0px;">
	 <table><tr><td>
		 Subject: <input name="subject" size="40" type="text"> <br> 
		<input value="Submit" name="SubmitButton" id="SubmitButton" type="submit" onclick=" releaseDirtyFlag();"> 
			<input value="Reset" name="ResetButton" id="ResetButton" type="reset"> 
			<input value="Print" name="PrintButton" id="PrintButton" type="button" onclick="formPrint();"> 
			<input value="Print & Submit" name="PrintSubmitButton" id="PrintSubmitButton" type="button" onclick="formPrint();releaseDirtyFlag();setTimeout('SubmitButton.click()',1000);"> 
	 </td></tr></table>
 </div>
 </form>

</body>
</html>

Document Actions

 

Download button

DOWNLOAD OSCAR FOR TESTING

 

eForms button

DOWNLOAD SHARED E-FORMS


 Customize button

FIND PLUG-INS AND TWEAKS
FOR YOUR OSCAR EMR

 

Subscribe Button

SUBSCRIBE TO DISCUSSION LIST 
(SEE ALL LISTS)

  

Help button

ACCESS THE ONLINE MANUALS
(PAID SUPPORT)