Thursday, December 13, 2007

tab view

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding:10px; vertical-align:top; padding-right:0px;">
<div><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td ><a href="#" onclick="show('details','block');show('quote','none');">Details</a></td>
<td ><a href="#" onclick="show('details','none');show('quote','block');">Quoted Projects</a></td>
</tr>
</table><div ><div id="details">
KKKKKKKKKKKKKKKKKKKK

</div>

<div id="quote" style="display:none">
UUUUUUUUUUUUUUUUUUUUUUU
</div>
</div>


<script type="text/javascript" language="javascript">

function show(id, visibility)
{
document.getElementById(id).style.display=visibility;
}
</script>

Powered by ScribeFire.

Calculating age from DOB:php

$age = strtotime(date("Y-m-d")) - strtotime($dob);
$age = round( $age/30758400);


Powered by ScribeFire.

Tuesday, December 04, 2007

pl/ sql:dbms_output.put_line

set serveroutput on



DECLARE

buffer VARCHAR2(100);

status INTEGER;

BEGIN

dbms_output.put_line('This is');

dbms_output.put_line('a test.');

dbms_output.get_line(buffer, status);

dbms_output.put_line('Buffer: ' || buffer);

dbms_output.put_line('Status: ' || TO_CHAR(status));

END;

/


Powered by ScribeFire.