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



Your IP : 18.119.19.251


Current Path : /var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/cms/
Upload File :
Current File : /var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/cms/player.php

<?php 
include('includes/header.php');
is_logged(); 
?>
		<div class="body">
			
			<form action="search_post.php" class="sky-form" method="post">
				<header>Recherche</header>
				
				<fieldset>
					<section>
						<label class="label">League stats personne ID</label>
						<label class="input">
							<input type="text" name="player" value="<?php display_post('player'); ?>">
						</label>
					</section>
				</fieldset>
				<footer>
					<button type="submit" class="button">Soumettre</button>
				</footer>
				<input type="hidden" name="action" value="search">
			</form>		
			
			<?php if(isset($_SESSION['post']['result'])) { ?>	
			<!-- Red color scheme -->
		</br>
			<form action="player_post.php" class="sky-form" method="post" enctype="multipart/form-data">
				
				<header>
					<?php 
					 if(isset($_SESSION['post']['player_info'])) {
							//echo $_SESSION['post']['player_info'][0]['id_personnel'].' - '.utf8_encode($_SESSION['post']['player_info'][0]['info_lname']).', '.$_SESSION['post']['player_info'][0]['info_fname']; 								
							echo utf8_encode($_SESSION['post']['player_info'][0]['info_lname']).', '.$_SESSION['post']['player_info'][0]['info_fname']; 								
					 } ?>
				</header>
				
				<fieldset>
					
						<section>
							<label class="label">Image disponible</label>
							<div class="note">
								<div style="text-align:center; width:100%">	
								
								<?php
								$counter = '0';
								$found = 'false';
									foreach($_SESSION['post']['result'] as $info) { 									

											if (is_array($_SESSION['post']['player_media'])){
												foreach($_SESSION['post']['player_media'] as $info_media) {																								
													
													if ($info_media['media_type'] == 'image' && $info_media['media'] == $info){
														$checked = "checked";
														$found = 'true';
														break;													
													}
													else
													{
														$checked = "";	
													}
												}
											}
							
											$image_info .= '<div style= "display:inline-block; margin-right:10px;"><label><img src="'.$info.'" ><br><input type="radio" name="player_image" value= "'.$info.'" '.$checked.' style="display:none"></label></div>';
										
						 			} 
						 			
						 			if ($found == 'true'){
										 $image_default =	'<div style= "display:inline-block; margin-right:10px;"><label><img src="/images/personnels/noregisterpic.jpg" ><br><input type="radio" name="player_image" value="/personnels/noregisterpic.jpg" style="display:none"></label></div>';
						 			}
						 			else
						 			{
						 				$image_default =	'<div style= "display:inline-block; margin-right:10px;"><label><img src="/images/personnels/noregisterpic.jpg" ><br><input type="radio" name="player_image" checked value="/images/personnels/noregisterpic.jpg" style="display:none"></label></div>';	
						 			}
						 			
						 			echo $image_default.$image_info;
						 		?>
							</div>
							</div>
						</section>
					<? if(isset($_SESSION['post']['player_info']) != '') { ?>
					<div id="tabs">
						  <ul>
						    <li><a href="#tabs-1">Information Fr</a></li>
						    <li><a href="#tabs-2">Information En</a></li>						    
						  </ul>
						  <div id="tabs-1">
						  	<h2>VIDÉOS</h2>
								<section>
								<label class="label">
									Télécharger un vidéo (*.mp4).
								</label>		
								<input type="file" name="video_fr" id="video_fr"></br>
								</br>
								<label class="label">
									Sélectionner un vidéo.
								</label>								
									<label class="select">
										<select name="video_fr_selected" id="video_fr_selected">
								<?
											foreach($_SESSION['post']['player_media'] as $info_media) {												
												if ($info_media['media_type'] == 'video' && $info_media['lang'] == 'fr'){
													if ($info_media['media_selected'] == '1' ){
														$selected = "selected";
														$video_selected = $info_media['media'];	
													}
													else
													{
														$selected = "";	
													}
													echo '<option value="'.$info_media['media'].'" '.$selected.'>'.$info_media['media'].'</option>';
												}											
											}
								?>											
										</select>
										<i></i>
									</label>
								</br>
									<? if ($video_selected != ''){?>		
									<div id="video-container" class="" style="display: block;"><video src="uploads/video/<?=$video_selected;?>" controls="controls" type="video/mp4" width="50%"></video></div>			
									</br>
									Supprimer cette vidéo <input type="checkbox" name="delete_video_fr" value="<?=$video_selected;?>" >
									<? } ?>
									
								</section>
								<hr></br><h2>AUDIO</h2>
								<section>
									<label class="label">
										Télécharger un audio (*.mp3).
									</label>								
									<input type="file" name="audio_fr" id="audio_fr"></br></br>
									
									<label class="label">
										Sélectionner un audio.
									</label>										
									<label class="select">
										<select name="audio_fr_selected" id="audio_fr_selected">
								<?
											foreach($_SESSION['post']['player_media'] as $info_media) {												
												if ($info_media['media_type'] == 'audio' && $info_media['lang'] == 'fr'){
													if ($info_media['media_selected'] == '1' ){
														$selected = "selected";
														$audio_selected_fr = $info_media['media'];	
													}
													else
													{
														$selected = "";	
													}
													echo '<option value="'.$info_media['media'].'" '.$selected.'>'.$info_media['media'].'</option>';
												}											
											}
								?>											
										</select>
										<i></i>
									</label>
								</br>
								<? if ($audio_selected_fr != ''){?>		
										<div id="audio-container" style="display: block;"><audio src="uploads/audio/<?=$audio_selected_fr;?>" controls="controls" type="audio/ogg"></audio></div>
										</br>
									Supprimer l'audio <input type="checkbox" name="delete_audio_fr" value="<?=$audio_selected_fr;?>" >
									<? } ?>
								</section>						  	

								<section>
									<label >Commentaire</br></label>
								<textarea rows="10" cols="80" name="commentaire_fr" ><?
										if (is_array($_SESSION['post']['player_media'])){
											foreach($_SESSION['post']['player_media'] as $info_media) {												
												if ($info_media['media_type'] == 'comment' && $info_media['lang'] == 'fr'){
													echo utf8_encode($info_media['media']);
													break;													
												}											
											}
										}	
								?></textarea>
								</section>	
						  </div>
						  <div id="tabs-2">
						  	<h2>VIDÉOS</h2>
								<section>
								<label class="label">
									Télécharger un vidéo (*.mp4).
								</label>		
								<input type="file" name="video_en" id="video_en"></br>
							</br>
								<label class="label">
									Sélectionner un vidéo.
								</label>								
									<label class="select">
										<select name="video_en_selected" id="video_en_selected">
								<?
											foreach($_SESSION['post']['player_media'] as $info_media) {												
												if ($info_media['media_type'] == 'video' && $info_media['lang'] == 'en'){
													if ($info_media['media_selected'] == '1' ){
														$selected = "selected";
														$video_selected_en = $info_media['media'];	
													}
													else
													{
														$selected = "";	
													}
													echo '<option value="'.$info_media['media'].'" '.$selected.'>'.$info_media['media'].'</option>';
												}											
											}
								?>											
										</select>
										<i></i>
									</label>
																	</br>
									<? if ($video_selected_en != ''){?>								
									<div id="video-container" class="" style="display: block;"><video src="uploads/video/<?=$video_selected_en;?>" controls="controls" type="video/mp4" width="50%"></video></div>			
									</br>
									Supprimer cette vidéo <input type="checkbox" name="delete_video_en" value="<?=$video_selected;?>" >
									<? } ?>
								</section>
							<hr></br><h2>AUDIO</h2>
								<section>
									<label class="label">
										Télécharger un audio (*.mp3).
									</label>								
									<input type="file" name="audio_en" id="audio_en"></br></br>

									<label class="label">
										Sélectionner un audio.
									</label>
									<label class="select">
										<select name="audio_en_selected" id="audio_en_selected">
								<?
									if (is_array($_SESSION['post']['player_media'])){
											foreach($_SESSION['post']['player_media'] as $info_media) {												
												if ($info_media['media_type'] == 'audio' && $info_media['lang'] == 'en'){
													if ($info_media['media_selected'] == '1' ){
														$selected = "selected";
														$audio_selected_en = $info_media['media'];	
													}
													else
													{
														$selected = "";	
													}
													echo '<option value="'.$info_media['media'].'" '.$selected.'>'.$info_media['media'].'</option>';
												}											
											}
									}		
								?>											
										</select>
										<i></i>
									</label>
									</br>
									<? if ($audio_selected_en != ''){?>		
									<div id="audio-container" style="display: block;"><audio src="uploads/audio/<?=$audio_selected_en;?>" controls="controls" type="audio/ogg"></audio></div>
									</br>
									Supprimer l'audio <input type="checkbox" name="delete_audio_en" value="<?=$audio_selected_en;?>" >
									<? } ?>
								</section>						  	
						  	
								<section>
									<label >Commentaire</br></label>
									<textarea rows="4" cols="70" name="commentaire_en" ><?
											if (is_array($_SESSION['post']['player_media'])){
												foreach($_SESSION['post']['player_media'] as $info_media) {												
													if ($info_media['media_type'] == 'comment' && $info_media['lang'] == 'en'){
														echo utf8_encode($info_media['media']);
														break;													
													}											
												}
											}
								?></textarea>							
								</section>							    
						  </div>
<? } ?>
					</div>							

					
				</fieldset>
			<footer>
				<button type="submit" class="button">Submit</button>
			</footer>
			<input type="hidden" name="LSRegisterLink" value="<?=$_SESSION['post']['player_info'][0]['id_personnel'];?>">
			<input type="hidden" name="search_ls_id" value="<?=$_SESSION['post']['player'];?>">
			<input type="hidden" name="action" value="save">
		</form>
		<?php } ?>
		
			
		
<?php include('includes/footer.php'); ?>