HEX
Server: Apache
System: Linux sg2plmcpnl492417.prod.sin2.secureserver.net 4.18.0-553.58.1.lve.el8.x86_64 #1 SMP Fri Jul 4 12:07:06 UTC 2025 x86_64
User: nyiet8349bzl (9207396)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/nyiet8349bzl/Backup/sbc_back/homedir/public_html/old-myadmin/alumni/list.php
<?php
if (!defined('WEB_ROOT')) {
	exit;
}
if (isset($_GET['cource']) && $_GET['cource'] != '') {
	$cource = $_GET['cource'];
	$sql2   = " AND cr_id = '$cource'";
	$queryString = "&cource=$cource";
} else {
	$cource = '';
	$sql2   = '';
	$queryString = '';
}	
// for paging
// how many rows to show per page
$rowsPerPage = 10;
$sql = "SELECT  al_id, al_fullname, al_email, al_course, al_completion_year, al_present_pos, cr_name
 from myalumni, mycource WHERE myalumni.al_course = mycource.cr_id $sql2" ;

$result     = dbQuery(getPagingQuery($sql, $rowsPerPage));
$pagingLink = getPagingLink($sql, $rowsPerPage);

$mysql = "SELECT *from mycource";
$myres = dbQuery($mysql);
while ($myrow = mysql_fetch_array($myres, MYSQL_ASSOC)) {
    @$orderOption .= '<option value="'.$myrow['cr_id'].'"';
	if ($myrow['cr_id'] == $cource) {
		$orderOption .= " selected";
	}
	$orderOption .= '>'.$myrow['cr_name']."</option>\r\n";
}
?> 
<div id="ptitle">:: Alumini </div>
<script type="text/javascript" src="<?php echo WEB_ROOT;?>myadmin/library/myalumni.js"> </script>
<form action="processDeals.php?action=addDeals" method="post"  name="frmOrderList" id="frmOrderList">
 <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1">
<tr> 
<td colspan="3" align="right" >
<p align="center" class="formTitle"><h2>Alumini List </h2> </p> </td>
</td>
<td align="right"> 
   <td align="right">
   <select name="cboOrderStatus" class="box" id="cboOrderStatus" onChange="viewOrder();">
    <option value="" selected>All</option>
    <?php echo $orderOption; ?>
</select>
</td>
 </tr>
</table>
 <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1">
  <tr align="center" bgcolor="#669999"> 
  <th>SL No.</th>
  <th align="left">Name</th>
   <th align="left">E-Mail</th>
  <th align="left">Course</th>
   <th>Course Completion Year</th>
   <th>Present Position</th>
  </tr>
  <?php
$parentId = 0;
if (dbNumRows($result) > 0) {
	$i = 0;
	$myrow = 1;
	while($row = dbFetchAssoc($result)) {
		extract($row);
		
		if ($i%2) {
			$class = '#dddddd';
		} else {
			$class = '#CCCCCC';
		}
		$i += 1;
//DID 	DOnPID 	DTitle 	DDesc 	DateStart 	DateEnd 	Discount 	IsActive
?>
  <tr bgcolor="<?php echo $class; ?>"> 
  <td width="50" align="center" ><?php echo $myrow; ?></td>
  <td align="left"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?view=detail&Id=<?php echo $al_id; ?>"><?php echo $al_fullname; ?></a></td>
   <td align="left"><?php echo $al_email; ?></td>
  <td align="left"> <?php echo $cr_name; ?></td>
   <td width="180" align="center"><?php echo $al_completion_year; ?></td>
   <td width="170" align="center"><?php echo $al_present_pos; ?></td>
  </tr>
  <?php
  $myrow++;
	} // end while
?>
  <tr> 
   <td colspan="5" align="center">
   <?php 
echo $pagingLink;
   ?></td>
  </tr>
<?php	
} else {
?>
  <tr> 
   <td colspan="5" align="center">No Record</td>
  </tr>
  <?php
}
?>
  <tr> 
   <td colspan="5">&nbsp;</td>
  </tr>
 </table>
 <p>&nbsp;</p>
</form>