<?php  include('config.php');  include_once('pagination.php'); ?>  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Introduction To Computer And Application</title> <script type="text/javascript"> function confirm_delete() {   return confirm('Anda Pasti ?'); } </script>  </head> <style type="text/css" media="print">         @page          {             size: auto;   /* auto is the current printer page size */             margin: 0mm;  /* this affects the margin in the printer settings */         }          body          {             background-color:#FFFFFF;              border: solid 1px black ;             margin: 5px;  /* the margin on the content before printing */        } 	        </style>       <body> <?php $page = 1; if (isset($_GET['page']) && !empty($_GET['page']))     $page = (int)$_GET['page'];  $dataPerPage = 5; if (isset($_GET['perPage']) && !empty($_GET['perPage']))     $dataPerPage = (int)$_GET['perPage'];    $table = 'obj_dbapp';    $dataTable = getTableData($table, $page, $dataPerPage);    showPagination($table, $dataPerPage);  ?>  <p><a href="../../Home.php">laman utama</a> || <a href="../listmodul.php">Modul</a></p> <table width="700" border="0" cellspacing="1" cellpadding="1">   <tr>     <th align="left" scope="col"><p><font color="#006600" size="4">DATABASE APPLICATION</font></p>       <p>&nbsp;</p></th>   </tr>   <tr>     <td><table width="700" border="0" cellspacing="1" cellpadding="1">       <tr></tr>       <tr></tr>       <tr></tr>       <tr></tr>       <tr>         <th scope="col"></th>         <th scope="col"></th>         <th scope="col"></th>         <th scope="col"></th>       </tr>       <tr></tr>       <tr></tr>       <tr>                      	<?php     foreach ($dataTable as $i => $data)      {         $no = ($i + 1) + (($page - 1) * $dataPerPage); 		echo '<tr> 		             <td><strong>'.$no.' .   '.$data['Soalan'].'</strong></td> 		           		                  <td align="center"><a href="updatelatest.php?id='.$data['user_id'].'">Kemaskini  </a></td>         <td align="center"> 		<blockquote>           <p><a href="delete.php?id=<'.$data['user_id'].'>"  		  <p><a href="delete.php?id='.$data['user_id'].'>" 		   		 onclick="return confirm_delete()"> Padam</a></p>         </blockquote></td> 		   		           </blockquote></td>       </tr>        <tr>       <td>'.$data['i'] .'</td>        </tr>       <tr>         <td>'.$data['ii'].'</td>       </tr>       <tr>         <td>'.$data['iii'].'</td>         </tr>       <tr>         <td>'.$data['iv'].'</td>       </tr>       <tr>         <td>A)'.$data['A'].'</td>              </tr>       <tr>         <td>B)'.$data['B'].'</td>            </tr>       <tr>         <td>C)'.$data['C'].'</td>               </tr>       <tr>         <td>D)'.$data['D'].'</td> 		<td> </td> 		<tr></tr> 		</tr>';     }     ?>                  </table></td>   </tr>     <a href="javascript:void(0);"       onclick="window.open('convertopdf.php','nama_window_pop_up','size=800,height=800,scrollbars=yes,resizeable=no')">PDF</a>    </td>      </tr>     </table> <h3><input type="submit" name="button" id="button" value="Print" onclick= "window.print()"/>&nbsp;</h3> <h3><a href="tambah.php">Tambah Soalan</a></h3> </body> </html>