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.139.79.187


Current Path : /var/www/lhjmq-records.qc.ca/public_html/administration/regis_equipes/components/
Upload File :
Current File : /var/www/lhjmq-records.qc.ca/public_html/administration/regis_equipes/components/profiletab.php

<?php 
global $register, $mysql_link;
if(isset($register)) { 
?>
<FORM name="profileform" action="?action=formsave&formid=profile&ltab=profile&rtab=profile&profile=<?php echo $_GET['profile']; ?>&id=<?php echo $_GET['id']; ?>" method="post">
<TABLE  border="0" cellpadding="0" cellspacing="0">
	<TR>
		<TD bgcolor="#ffffff">
			<TABLE  border="0" cellspacing="0" cellpadding="5">
				<TR>
					<TD colspan="3" class="blueText11px"><B>Photos</B></TD>
				</TR>
				<TR align="left" valign="bottom">
					<TD rowspan="2"><IMG src="<?php if(is_file('../../images/personnels/register'.$register['id'].'.jpg')) {echo '../../images/personnels/register'.$register['id'].'.jpg'; } else {echo '../../images/personnels/noregisterpic.jpg'; } ?>" border="1"></TD>
					<TD valign="top"><IMG src="<?php if(is_file('../../images/personnels/smregister'.$register['id'].'.jpg')) {echo '../../images/personnels/smregister'.$register['id'].'.jpg'; } else {echo '../../images/personnels/nosmregisterpic.jpg'; } ?>" border="1"></TD>
					<TD>&nbsp;</TD>
				</TR>
				<TR>
					<TD colspan="2" valign="bottom" class="blackText10px">
						<P><A href="#" onClick="window.open('pictures.php', 'pictures', 'width=400, height=400, scrollbars=yes')" class="lnkBase10px">Modifier les<BR>photos</A></P>
						<P> <A href="#" onClick="if(confirm('Supprimer les photos de ce joueur?')) { window.open('pictures.php?destroy=both', 'pictures', 'width=400, height=400, scrollbars=yes'); }" class="lnkBase10px">Supprimer les<BR>photos</A> </P>
					</TD>
				</TR>
			</TABLE>
		</TD>
	</TR>
	<TR>
		<TD bgcolor="#546085"><IMG src="../images/spacer" width="1" height="2"></TD>
	</TR>
	<TR>
		<TD bgcolor="#ffffff">
			<TABLE width="100%"  border="0" cellpadding="5" cellspacing="0" class="blueText11px">
				<TR>
					<TD width="110%"><B>Nom complet </B></TD>
				</TR>
				<TR>
					<TD>Nom<BR>
  						<INPUT name="info_lname" type="text" class="blackText10px" id="info_lname" style="width: 100%; border: 1px solid #546085" maxlength="32">
					</TD>
				</TR>
				<TR>
					<TD>
						<TABLE width="100%"  border="0" cellpadding="0" cellspacing="0" class="blueText11px">
							<TR>
								<TD>Pr&eacute;nom<BR>
  									<INPUT name="info_fname" type="text" class="blackText10px" id="info_fname" style="width: 100%; border: 1px solid #546085" maxlength="32">
								</TD>
								<TD width="10" align="right" valign="top">&nbsp;</TD>
								<TD width="50" align="right" valign="top">Initiale<BR>
  									<INPUT name="info_mname" type="text" class="blackText10px" id="info_mname" style="width: 100%; border: 1px solid #546085" size="10" maxlength="1">
								</TD>
							</TR>
						</TABLE>
					</TD>
				</TR>
			</TABLE>
		</TD>
	</TR>
	<TR>
		<TD bgcolor="#546085"><IMG src="../images/spacer" width="1" height="2"></TD>
	</TR>
	<TR>
		<TD bgcolor="#ffffff">
			<TABLE  border="0" cellpadding="5" cellspacing="0" class="blueText11px" DWCOPYTYPE="CopyTableRow">
				<TR>
					<TD colspan="3"><B>Date et lieu de naissance</B></TD>
				</TR>
				<TR>
					<TD colspan="3"><INPUT name="info_datenais" type="text" class="blackText10px" id="info_datenais" style="width: 80px; border: 1px solid #546085" size="20" maxlength="10">
				   <A href="#" onClick="window.open('calendar.php?formname=profileform&fieldname=info_datenais&fulldate='+document.profileform.info_datenais.value, 'calendar', 'width=400, height=400, scrollbars=yes')" class="lnkBase10px"><IMG src="../images/icons/calendar.jpg" width="16" height="16" align="absbottom" border="0"></A> (yyyy/mm/dd)</TD>
				</TR>
				<TR>
					<TD width="90">Ville<BR>
  						<INPUT name="loc_city" type="text" class="blackText10px" id="loc_city" style="width: 80px; border: 1px solid #546085" maxlength="50">
					</TD>
					<TD width="10">&nbsp;</TD>
					<TD width="110">Code postal<BR>
  						<INPUT name="loc_postalcode" type="text" class="blackText10px" id="loc_postalcode" style="width: 80px; border: 1px solid #546085" maxlength="10">
					</TD>
			  </TR>
				<TR>
					<TD width="90">Province<BR>
  						<INPUT name="loc_province" type="text" class="blackText10px" id="loc_province" style="width: 80px; border: 1px solid #546085" maxlength="30">
					</TD>
					<TD width="10">&nbsp;</TD>
					<TD width="110">Pays<BR>
  						<INPUT name="loc_country" type="text" class="blackText10px" id="loc_country" style="width: 80px; border: 1px solid #546085" maxlength="30">
					</TD>
			  </TR>
			</TABLE>
		</TD>
	</TR>
	<TR>
		<TD height="25" valign="top">
			<TABLE border="0" align="right" cellpadding="0" cellspacing="0">
				<TR>
					<TD><IMG src="../images/tabs/tab_between_on_off.jpg" width="15" height="15"></TD>
					<TD bgcolor="#848894"><SPAN class="whiteText11px">&nbsp;&nbsp;<B><A href="#" onClick="document.location = '?ltab=profile&rtab=profile&ref=<?php echo rand(1,32747); ?>';">Annuler</A></B>&nbsp;&nbsp;</SPAN></TD>
					<TD><IMG src="../images/tabs/tab_between_off_off.jpg" width="15" height="15"></TD>
					<TD bgcolor="#848894" class="whiteText11px">&nbsp;&nbsp;<B><A href="#" onClick="document.profileform.submit()">Sauvegarder</A></B>&nbsp;&nbsp;</TD>
				</TR>
			</TABLE>
		</TD>
	</TR>
	<TR>
		<TD bgcolor="#ffffff">
			<TABLE  border="0" cellpadding="5" cellspacing="0" class="blueText11px">
				<TR>
					<TD><B>R&ocirc;le de base</B></TD>
				</TR>
				<TR>
					<TD align="left" valign="top">
						<SELECT name="info_basicrole" id="info_basicrole" style="width: 210px">
							<?php $roles = mysql_query('SELECT * FROM types_personnels ORDER BY description_fr', $mysql_link); 
							while($role = mysql_fetch_assoc($roles)) {	?>
							<OPTION id="info_basicrole_<?php echo $role['id_type_pers']; ?>" value="<?php echo $role['id_type_pers']; ?>"><?php echo $role['description_fr']; ?></OPTION>
							<?php
							}
							?>
						</SELECT>
					</TD>
					</TR>
			</TABLE>
		</TD>
	</TR>
	<TR>
		<TD bgcolor="#546085"><IMG src="../images/spacer" width="1" height="2"></TD>
	</TR>
	<TR>
		<TD bgcolor="#ffffff">
			<TABLE  border="0" cellpadding="5" cellspacing="0" class="blueText11px">
				<TR>
					<TD colspan="3"><B>Status particuliers </B></TD>
				</TR>
				<TR>
					<TD width="90" align="left" valign="top">
						<INPUT name="info_flagrecrue" type="checkbox" id="info_flagrecrue" value="32">
						Recrue					</TD>
					<TD width="10">&nbsp;</TD>
					<TD width="110" align="left" valign="top">&nbsp;					</TD>
			  </TR>
			</TABLE>
		</TD>
	</TR>
	<TR>
		<TD bgcolor="#546085"><IMG src="../images/spacer" width="1" height="2"></TD>
	</TR>
	<TR>
		<TD bgcolor="#ffffff">
			<TABLE  border="0" cellpadding="5" cellspacing="0" class="blueText11px">
				<TR>
					<TD colspan="3"><B>Informations gouv.</B></TD>
				</TR>
				<TR>
					<TD width="90" align="left" valign="top">NAS<BR>
  						<INPUT name="info_nas" type="text" class="blackText10px" id="info_nas" style="width: 80px; border: 1px solid #546085" maxlength="11">
					</TD>
					<TD width="10">&nbsp;</TD>
					<TD width="110" align="left" valign="top"># Ass Maladie<BR>
  						<INPUT name="info_healthins" type="text" class="blackText10px" id="info_healthins" style="width: 80px; border: 1px solid #546085" maxlength="32">
					</TD>
			  </TR>
			</TABLE>
		</TD>
	</TR>
	<TR>
		<TD bgcolor="#546085"><IMG src="../images/spacer" width="1" height="2"></TD>
	</TR>
	<TR>
		<TD bgcolor="#ffffff">
			<TABLE  border="0" cellpadding="5" cellspacing="0" class="blueText11px">
				<TR>
					<TD colspan="3"><B>Langues</B></TD>
				</TR>
				<TR>
					<TD width="90" align="left" valign="top">Principale<BR>
  						<INPUT name="info_lang1" type="text" class="blackText10px" id="info_lang1" style="width: 80px; border: 1px solid #546085" maxlength="4">
					</TD>
					<TD width="10">&nbsp;</TD>
					<TD width="110" align="left" valign="top">Secondaire<BR>
  						<INPUT name="info_lang2" type="text" class="blackText10px" id="info_lang2" style="width: 80px; border: 1px solid #546085" maxlength="4">
					</TD>
			  </TR>
			</TABLE>
		</TD>
	</TR>
	<TR>
		<TD bgcolor="#546085"><IMG src="../images/spacer" width="1" height="2"></TD>
	</TR>
	<TR>
		<TD bgcolor="#ffffff">
			<TABLE  border="0" cellpadding="5" cellspacing="0" class="blueText11px">
				<TR>
					<TD colspan="3"><B>Contr&ocirc;le et s&eacute;curit&eacute; </B></TD>
				</TR>
				<TR>
					<TD width="90" align="left" valign="top">&Eacute;tat<BR>
						<INPUT name="sys_status" type="radio" value="0"> Inactif<BR>
						<INPUT name="sys_status" type="radio" value="1"> Actif<BR>
						<INPUT name="sys_status" type="radio" value="2"> Archiv&eacute;
					</TD>
					<TD width="10">&nbsp;</TD>
					<TD width="110" align="left" valign="top">Visibilit&eacute;<BR>
						<INPUT name="sys_scope" type="radio" value="0"> Public<BR>
						<INPUT name="sys_scope" type="radio" value="1"> Priv&eacute;<BR>
						<INPUT name="sys_scope" type="radio" value="2"> Restreint<BR>
						<INPUT name="sys_scope" type="radio" value="3"> Personnel				</TD>
			  </TR>
			</TABLE>
		</TD>
	</TR>
	<TR>
		<TD bgcolor="#546085"><IMG src="../images/spacer" width="1" height="2"></TD>
	</TR>
	<TR>
		<TD bgcolor="#ffffff">
			<TABLE  border="0" cellpadding="5" cellspacing="0" class="blueText11px">
				<TR>
					<TD colspan="3" align="left" valign="top"><IMG src="../images/icons/help.jpg" align="absmiddle" border="0"> <A href="#" onClick="window.open('security.php?object_table=register&object_id=<?php echo $_SESSION['id_register']; ?>', 'security', 'width=500, height=350')" class="lnkBase11px">Voir les informations de s&eacute;curit&eacute; </A></TD>
				</TR>
			</TABLE>
		</TD>
	</TR>
</TABLE>
 </FORM>
<SCRIPT language="javascript" type="text/javascript">
	//Check the appropriate boxes and fill in the appropriate data
	document.profileform.info_lname.value = "<?php echo mysql_escape_string($register['info_lname']); ?>";
	document.profileform.info_mname.value = "<?php echo mysql_escape_string($register['info_mname']); ?>";
	document.profileform.info_fname.value = "<?php echo mysql_escape_string($register['info_fname']); ?>";
	document.profileform.info_datenais.value = "<?php echo mysql_escape_string($register['info_datenais']); ?>";
	document.profileform.loc_city.value = "<?php echo mysql_escape_string($register['loc_city']); ?>";
	document.profileform.loc_postalcode.value = "<?php echo mysql_escape_string($register['loc_postalcode']); ?>";
	document.profileform.loc_province.value = "<?php echo mysql_escape_string($register['loc_province']); ?>";
	document.profileform.loc_country.value = "<?php echo mysql_escape_string($register['loc_country']); ?>";
	document.profileform.info_nas.value = "<?php echo mysql_escape_string($register['info_nas']); ?>";
	document.profileform.info_healthins.value = "<?php echo mysql_escape_string($register['info_healthins']); ?>";
	document.profileform.info_lang1.value = "<?php echo mysql_escape_string($register['info_lang1']); ?>";
	document.profileform.info_lang2.value = "<?php echo mysql_escape_string($register['info_lang2']); ?>";
	document.profileform.info_flagrecrue.checked = <?php if(($register['info_flags'] && 32) == 32) {echo 'true'; } else {echo 'false'; } ?>;
	var rolenode = document.profileform.info_basicrole.options.namedItem("info_basicrole_<?php echo mysql_escape_string($register['info_basicrole']); ?>");
	if(rolenode != null) {
		document.profileform.info_basicrole.selectedIndex = rolenode.index;
	}
	document.profileform.sys_status[<?php echo $register['sys_status']; ?>].checked = true;
	document.profileform.sys_scope[<?php echo $register['sys_scope']; ?>].checked = true;
</SCRIPT>
<?php } else { ?>
<TABLE width="100%"  border="0" cellpadding="0" cellspacing="2" bgcolor="ffffff" class="blueText11px">
	<TR>
		<TD align="center" valign="middle">		
			<P>&nbsp;</P>
			<P>
				Choisissez un r&eacute;sultat dans <BR>
				la liste de <A href="?ltab=search&rtab=results" class="lnkBase11px">recherche</A> avant <BR>
				d'afficher  le profil.
			</P>
			<P>&nbsp;</P>
		</TD>
	</TR>
</TABLE>
<?php } ?>