One Hat Cyber Team
Your IP :
216.73.216.84
Server IP :
50.6.229.107
Server :
Linux server.hostburly.com 5.14.0-611.38.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 10 17:21:28 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.2.30
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
andjemzt
/
nportal.andjemztech.com
/
examAdmin
/
Edit File:
view_profile.php
<? require ("inc/header.php"); ?> <!- content starts here --> <script language="JavaScript" type="text/JavaScript"> <!-- /** * Displays an confirmation box before to submit a "DROP DATABASE" query. * This function is called while clicking links * * @param object the link * @param object the sql query to submit * * @return boolean whether to run the query or not */ function confirmLinkDropDB(theLink, theSqlQuery) { // Confirmation is not required in the configuration file // or browser is Opera (crappy js implementation) if (confirmMsg == '' || typeof(window.opera) != 'undefined') { return true; } var is_confirmed = confirm(confirmMsgDropDB + '\n' + confirmMsg + ' :\n' + theSqlQuery); if (is_confirmed) { theLink.href += '&is_js_confirmed=1'; } return is_confirmed; } // end of the 'confirmLink()' function /** * Displays an confirmation box beforme to submit a "DROP/DELETE/ALTER" query. * This function is called while clicking links * * @param object the link * @param object the sql query to submit * * @return boolean whether to run the query or not */ function confirmLink(theLink, theSqlQuery) { // Confirmation is not required in the configuration file // or browser is Opera (crappy js implementation) if (confirmMsg == '' || typeof(window.opera) != 'undefined') { return true; } var is_confirmed = confirm(confirmMsg + ' \n' + theSqlQuery); if (is_confirmed) { theLink.href += '&is_js_confirmed=1'; } return is_confirmed; } // end of the 'confirmLink()' function // js form validation stuff var confirmMsg = 'Do you really want to '; //--> </script> <form name="form" method="post" action="graduate.php"> <table width="100%" border="0" cellspacing="0" cellpadding="5" class="text"> <tr bgcolor=#cccccc> <td colspan="8"><strong><? echo "$w_update" ?></strong></td> </tr> <? //set the number of columns $columns = 1; if (!$rowstart) { $rowstart=0;} $ending = 50; $query = "SELECT * FROM nsemem where nseregno != 'new' $od LIMIT $rowstart,$ending"; $query2 = "SELECT * FROM nsemem where nseregno != 'new' $od"; $result = mysql_query($query); $result2 = mysql_query($query2); $num2 = mysql_num_rows($result2); $num_rows = mysql_num_rows($result2); $num = mysql_num_rows($result); $thisrows=mysql_num_rows($result); $allrows=mysql_num_rows($result2); $rowbegin=$rowstart+1; $rowend=$rowstart+$thisrows; //put all the code here for running the script itself using $result in the while loop //we add this line because we need to know the number of rows if ($num > 1) { $themembers = "Members"; } else { $themembers = "Member"; } ?> <? if ($num != 0) { ?> <tr> <td colspan="7"><strong><? echo "Showing $rowbegin - $rowend of $allrows $themembers"; ?></strong></td> </tr> <tr bgcolor=#999999> <td><strong>S/No</strong></td> <td><strong><a href="<? $php_self ?>?&od=ORDER BY surname&rowstart=<? echo $rowstart ?>" title="Sort By Surname" style="color: #ffffff">Surname</a></strong></td> <td><strong>First Name</strong></td> <td><strong>Othernames</strong></td> <td><strong>Membership Grade</strong></td> <td><strong>NSE REG. NO</strong></td> <td><strong>Action</strong></td> </tr> <? } ?> <? for ($i=1+$rowstart; $i<$num+1+$rowstart; $i++) { if ($i%2 ==0) {$bgcolor = '#f0f0f0';} else {$bgcolor = '#cccccc';} $row = mysql_fetch_array($result); $row2 = mysql_fetch_array($result2); $id = $row['id']; $nseregno=$row["nseregno"]; $sex=$row["sex"]; $title=$row["title"]; $lastname=$row["lastname"]; $firstname=$row["firstname"]; $middlename=$row["middlename"]; $grade=$row["grade"]; $picture1=$row["picture1"]; $picture2=$row["picture2"]; $lastname = stripslashes($lastname); $firstname = stripslashes($firstname); $middlename = stripslashes($middlename); $mem_grade = getLevelGrade($grade); if($i % $columns == 0) { //if there is no remainder, we want to start a new row echo "<TR>"; } echo "<TD valign='top'>" ; if ($nseregno) { ?> <tr bgcolor=<? echo $bgcolor ?>> <td><? echo $i ?> <input type="checkbox" name="check[]" value="<? echo $mem_id ?>"></td> <td><b><? echo strtoupper($lastname) ?></b></td> <td><? echo strtoupper($firstname) ?></td> <td><? echo strtoupper($middlename) ?> <td><strong><?php echo $mem_grade ?></strong></td> <td><strong><?php echo $nseregno ?></strong></td> <td>[ <a href=edit_profile_tab.php?id=<?php echo $id ?>>Edit Profile</a> ]</td> </tr> <? } "</TD>"; if(($i % $columns) == ($columns - 1) || ($i + 1) == $num_rows) { //if there is a remainder of 1, end the row //or if there is nothing left in our result set, end the row echo "</TR>"; } } ?> </table> </form> <br> <? if ($num == 0) { ?> <table width="98%" border="0" cellpadding="5" cellspacing="0" align="center" class="text" id="border"> <tr> <td align=left> No Record Found </td> </tr> </table> <br> <? } ?> <table width="98%" border="0" cellpadding="5" cellspacing="0" align="center" class="text" id="border"> <tr> <td align=right> <? $od = $_GET["od"]; $numrows=mysql_num_rows($result); if (($rowbegin>$numrows) AND ($numrows !=0)) {?> <A HREF="<? $php_self ?>?rowstart=<? echo $rowstart-$ending; ?>&od=<? echo $od ?>"> < Previous</A> <?}?> <? $num_rows=mysql_num_rows($result2); if (($rowbegin>$numrows) AND ($rowstart+$ending<$num_rows)) {?> | <?}?> <? $num_rows=mysql_num_rows($result2); if($rowstart+$ending<$num_rows) {?> <A HREF="<? $php_self?>?rowstart=<?echo $rowstart+$ending; ?>&od=<? echo $od ?>"> Next ></A> <? } ?> </td> </tr> </table> <br> <!- content ends here --> <? require ("inc/footer.php"); ?>
Simpan