Archive for the Beegas Techy News Category

May 12 Exam Result

Click this link to view Examinees who passed the PSU-CAT given last May 12, 2010.

Please get your Interview Slip at the Guidance Office before proceeding for interview.

All examinees who indicated BSHM in their 1st Choice must be with a parent/guardian during the Interview. Only 40 slots are left for the day class. admission will be on a first come, first served basis.

REMINDER to PSU CAT Passers

Those who took the exam last APRIL 21. Claim your Interview Slip at the Guidance Center on MAY 4, 2010.

Those who took the exam last APRIL 23, Claim your Interview Slip at the Guidance Center on MAY 5, 2010

BRING ALL THE REQUIREMENTS.

Form 138 ( for HS Graduates), Certification of Grades or OTR (for transferees), Cert of Good Moral Character, Medical Certificate, 2 pcs 2×2 picture, 2 pcs 1×1 picture, PSU Brown Envelope

PSU College Admission Test

Result of the PSU College Admission Test given last April 21 and 23 will be posted on April 28, 2010.

Only the names of examinees who passed the exam will be posted.

Customized File Download in PHP

<?
if($_GET['action']==”download”){
$file = “./images/”.$_GET['filename'].”.”;
header(“Content-type: application/force-download”); //optional
header(“Content-Transfer-Encoding: Binary”);
header(“Content-length: “.filesize($file));
header(“Content-Disposition: attachment; filename=”.basename($file).”");
readfile(“$file”);
}else{
$folder = “./images/”;
if (is_dir($folder)){
$contents = scandir($folder);
$bad = array(“.”, “..”, “.DS_Store”, “_notes”, “Thumbs.db”);
$files = array_diff($contents, $bad);
}
echo<<<FILES
?>
<table>
<?
FILES;
while(list($key,$value) = each($files)){
$rCtr++;
echo<<<FILES
?>
<tr><td align=”right”>$value</td>
<td><img src=”images/download.png”
onmousedown=”window.open(‘$PHP_SELF?action=download&filename=$value’,'_self’)”
style=”cursor:pointer” /></td></tr>
<?
FILES;
}
?>
</table>
<?
}
?>

<?

if($_GET['action']==”download”){

$file = “./images/”.$_GET['filename'].”.”;

header(“Content-type: application/force-download”); //optional

header(“Content-Transfer-Encoding: Binary”);

header(“Content-length: “.filesize($file));

header(“Content-Disposition: attachment; filename=”.basename($file).”");

readfile(“$file”);

}else{

$folder = “./images/”;

if (is_dir($folder)){

$contents = scandir($folder);

$bad = array(“.”, “..”, “.DS_Store”, “_notes”, “Thumbs.db”);

$files = array_diff($contents, $bad);

}

echo<<<FILES

?>

<table>

<?

FILES;

while(list($key,$value) = each($files)){

$rCtr++;

echo<<<FILES

?>

<tr><td align=”right”>$value</td>

<td><img src=”images/download.png”

onmousedown=”window.open(‘$PHP_SELF?action=download&filename=$value’,'_self’)”

style=”cursor:pointer” /></td></tr>

<?

FILES;

}

?>

</table>

<?

}

?>

Using CSS on HTML Document

Here is an example on how to use a CSS in your HTML document.  Stylesheet was applied to the document and table.

<html>
<head>
<title>CSS Demo</title>
<!– start of CSS –>
<style type=”text/css”>
document{
background-color: #CBCBCB;
}
table {
background: #7FFFD4;
border: 1px solid Black;
width: 500px;
font-family: “Arial Rounded MT Bold”;
border-color: Navy Blue;
border-top: medium double Black;
margin-left: auto;
margin-right: auto;
}
tbody{
background-color: White;
}
tr{
border-bottom-width: 1px;
text-align:center;
}
</style><!– end of the style –>
</head>
<body>
<table width=”200″ border=”1″ rules=”groups”>
<thead>
<tr>
<th>Heading for Column 1</th>
<th>Heading for Column 1</th>
<th>Heading for Column 1</th>
</tr>
</thead>
<tbody>
<tr>
<td>content</td>
<td>content</td>
<td>content</td>
</tr>
<tr>
<td>content</td>
<td>content</td>
<td>content</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Footer for Column 1</td>
<td>Footer for Column 1</td>
<td>Footer for Column 1</td>
</tr>
</tfoot>
</table>
</body>
</html>

Output Image:

css demo

css demo

Online DBMS Urgent Deadline

Online DBMS project will be check with in this day for groups with an error on database configuration.  Uploading of project files and checking database configuration can be done on or before 2pm only.  In setting your database configuration, follow the setting which I posted on September 15, 2009 under Online database for DBMS class article.

Groups with online working project start developing your system’s transaction.  Other announcement will be posted so check this website regularly.

For you information.

LIST OF PSU – CAT PASSERS FOR MAY 15, 2009 EXAMINATIONS

Click here to view the list.