Monday, March 26, 2012

Function IsLeapYear

Function IsLeapYear(&iYear As number)
If (&iYear Mod 4 = 0) And ((&iYear Mod 100 <> 0) Or (&iYear Mod 400 = 0)) Then
&IsLeapYear Value= True;
Else
&IsLeapYearValue = False;
End-If;
End Function;
PRINT BUTTON PeopleCode
<HTML
<FORM>
<INPUT TYPE="SUBMIT" NAME="Print Button"  value="Print Button"
style="background-color:#FFFF00;"
title="PRINT" onclik=' ' onMouseOver="this.style.background ='#00FF00'"
onMouseOut="this.style.background='#FFFF00'"onClick="window.print()">
</FORM>
</HTML>
<div id="buttons">
<input type="button" class="search-btn" value=" Print "
onclick="javascript:window.print()" />
<input type="button" value=" Close" onclick="javascript:window.close()" />
</div>
HTML code fro Print Button
(Button Color, On mouse Color change  for PeopleSoft Pages ).

<html>
<form action="">
<input type="button" value="Hello world!" style="background-color:#FFFF00;"
title="PRINT" onclik=' ' onMouseOver="this.style.background ='#00FF00'"
onMouseOut="this.style.background='#FFFF00'" onClick="window.print()">
</form>
</body>
</html>