[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
Backup
/
14082024
/
Data
/
htdocs
/
htdocs
/
rps
/
[
Home
]
File: index.php
<!DOCTYPE html> <html> <head> <style> table { font-family: arial, sans-serif; border-collapse: collapse; width: 100%; } td, th { border: 1px solid #dddddd; padding: 8px; } tr:nth-child(even) { background-color: #dddddd; } </style> </head> <body> <table> <tr> <td colspan="3"> <img src="headerbpi.png" width="100%"> </td> </tr> <tr> <td colspan="3"> <h2 align="center">RPS STIKES Bhakti Pertiwi Indonesia</h2> </td> </tr> <tr> <th>No</th> <th>Judul</th> <th>Download</th> </tr> <?php $dir = "source/"; $a = 0; $urut = 0; // Open a directory, and read its contents if (is_dir($dir)){ if ($dh = opendir($dir)){ while (($file = readdir($dh)) !== false){ $a = ($a+1); if($a > 2) { $urut = ($urut+1); $expFile = explode(".",$file); $judul = $expFile[0]; // echo "RPS : " . $file . "<br>"; ?> <tr> <td width="5%"><?php echo $urut;?></td> <td width="85%"><?php echo $judul;?></td> <td width="10%" align="center"><a href="source/<?php echo $file;?>" target="blank">klik</a></td> </tr> <?php } } closedir($dh); } } ?> </table> </body> </html>