Server IP : 202.29.229.35 / Your IP : 3.134.110.23 Web Server : Apache System : Linux aapanel2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 User : www ( 1001) PHP Version : 5.5.38 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/www.ivecr2.ac.th/winner/ |
Upload File : |
<?php error_reporting(0); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <link href="./css/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <script src="./js/jquery-2.1.4.min.js" type="text/javascript"></script> <title>ประกาศ รายชื่อผู้ชนะการเสนอราคา</title> <body> <?php include 'ini.class.php'; $ini = new INI('db.ini'); $arrFile[] = $ini->data; //$ini->read('config.ini'); $arrSection = array(); foreach ($ini->data as $section => $data) { $arrSection[] = $section; } //var_dump($arrSection); //return; rsort($arrSection); /* * * Soft ** */ rsort($arrFile); // DESC //asort($arrFile); // ASC $Num_Rows = count($arrSection); $Per_Page = 10; // Per Page if (!isset($_GET["Page"])) { $Page = 1; } else { $Page = $_GET["Page"]; } $Prev_Page = $Page - 1; $Next_Page = $Page + 1; $Page_Start = (($Per_Page * $Page) - $Per_Page) + 1; if ($Num_Rows <= $Per_Page) { $Num_Pages = 1; } else if (($Num_Rows % $Per_Page) == 0) { $Num_Pages = ($Num_Rows / $Per_Page); } else { $Num_Pages = ($Num_Rows / $Per_Page) + 1; $Num_Pages = (int) $Num_Pages; } $Page_End = $Per_Page * $Page; if ($Page_End > $Num_Rows) { $Page_End = $Num_Rows; } ?> <div class='container-fluid'> <div class='row'> <div class="col-md-12"> <h1>ประกาศ รายชื่อผู้ชนะการเสนอราคา</h1> </div> </div> <div class='row'> <div class='col-md-12'> <table class='table table-bordered table-striped table-hover'> <thead> <tr> <th width="80"> <div align="center">คำสั่งที่</div></th> <th width="250"> <div align="center">Title</div></th> <th width="50"> <div align="center">Created Date</div></th> </tr> </thead> <tbody> <?php $no = 1; if ($Page > 1) { $no = ($Per_Page * ($Page - 1)) + 1; } //var_dump($arrFile); //print_r(array_values($arrFile)); for ($i = $Page_Start; $i <= $Page_End; $i++) { $secname = $arrSection[$i - 1]; ?> <tr> <td><div align="center"><?php echo $secname; ?> </div></td> <td><?php //echo "".$secname; echo "<a href='files/".$arrFile[0][$secname]["file"]."'>"; echo ($arrFile[0][$secname]["name"]); echo "</a>"; ?> </td> <td><div align="center"><?php echo ($arrFile[0][$secname]["cdate"]); ?></div></td> </tr> <?php $no++; } ?> </tbody> </table> <hr/> Total <?php echo $Num_Rows; ?> Record : <?php $Num_Pages; ?> Page : <?php if ($Prev_Page) { echo " <a href='$_SERVER[SCRIPT_NAME]?Page=$Prev_Page'><< Back</a> "; } for ($i = 1; $i <= $Num_Pages; $i++) { if ($i != $Page) { echo "[ <a href='$_SERVER[SCRIPT_NAME]?Page=$i'>$i</a> ]"; } else { echo "<b> $i </b>"; } } if ($Page != $Num_Pages) { echo "<a href ='$_SERVER[SCRIPT_NAME]?Page=$Next_Page'> Next>></a> "; } ?> </div> </div> </div> <!-- Bootstrap 3.3.2 JS --> <script src="./css/bootstrap/js/bootstrap.min.js" type="text/javascript"></script> </body> </html>