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


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/franchise.php

<?php
include_once('includes/header.php');
include_once('franchise_pre.php');

require('../../../../xsl/ckeditor/init.php');

$ckeditor->config['toolbar'] = $toolbars['full'];
$ckeditor->config['height'] = 500;

is_logged();
?>

<div class="body">
	<form action="franchise_search_post.php" class="sky-form" method="post">
		<header>Recherche</header>

		<fieldset>
			<section>
				<label class="label">Franchise</label>
				<label class="select">
					<select name="franchise_selector" id="franchise_selector">
						<option value="">Choisir...</option>
						<?php
						foreach ($resultEquipes as $id => $name) {
							if (!empty($franchise_id)) {
								$selected = '';
								if ($franchise_id == $id) {
									$selected = 'selected';
								}
							}
							echo '<option value="'.$id.'" '.$selected.'>'.utf8_encode($name).'</option>';
						}
						?>
					</select>
				</label>
			</section>
		</fieldset>
		<footer>
			<button type="submit" class="button">Soumettre</button>
		</footer>
		<input type="hidden" name="action" value="search">
	</form>

	<br />

	<?php if (isset($_SESSION['post']['franchise'])) { ?>
		<form action="franchise_post.php" class="sky-form" method="post">
			<header>
				<?php
				if (!empty($franchise_id)) {
					echo utf8_encode($resultEquipes[$franchise_id]);
				}
				?>
			</header>

			<fieldset>
				<div id="tabs">
					<ul>
						<li><a href="#tabs-1">Historique FR</a></li>
						<li><a href="#tabs-2">Historique EN</a></li>
					</ul>
					<div id="tabs-1">
						<section>
							<label>Historique</label><br />
							<?php
							echo $ckeditor->editor('var_text_fr', utf8_encode($var_text_fr));
							?>
						</section>
					</div>
					<div id="tabs-2">
						<section>
							<label>Historique</label><br />
							<?php
							echo $ckeditor->editor('var_text_en', utf8_encode($var_text_en));
							?>
						</section>
					</div>
				</div>
			</fieldset>
			<footer>
				<button type="submit" class="button">Soumettre</button>
			</footer>
			
			<input type="hidden" name="franchise_id" value="<?= $franchise_id ?>">
			<input type="hidden" name="id_var_fr" value="<?= $id_var_fr ?>">
			<input type="hidden" name="id_var_en" value="<?= $id_var_en ?>">
			<input type="hidden" name="action" value="save">
		</form>
	<?php } ?>
</div>

<?php
include_once('includes/footer.php');
?>