<?php
/* Smarty version 5.7.0, created on 2026-02-10 15:07:18
  from 'file:views/project.tpl' */

/* @var \Smarty\Template $_smarty_tpl */
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
  'version' => '5.7.0',
  'unifunc' => 'content_698b49a6958128_21190238',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'e3f999d4206c004969123c0e3f74733796438d51' => 
    array (
      0 => 'views/project.tpl',
      1 => 1770734029,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:../app/views/partials/preview.tpl' => 1,
  ),
))) {
function content_698b49a6958128_21190238 (\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\projet_php-guillaume\\views';
$_smarty_tpl->getInheritance()->init($_smarty_tpl, true);
?>


<?php 
$_smarty_tpl->getInheritance()->instanceBlock($_smarty_tpl, 'Block_733012504698b49a694f3a4_14549542', "content");
$_smarty_tpl->getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir);
}
/* {block "content"} */
class Block_733012504698b49a694f3a4_14549542 extends \Smarty\Runtime\Block
{
public function callBlock(\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\projet_php-guillaume\\views';
?>

<body>
    <section class="container mt-5 p-5 d-flex flex-column align-items-center">
        <div>
            <h2>Alimenter votre projet</h2>
			<form method="post">
				<button type="submit" class="btn btn-primary btn-lg" name="showForm">+</button>
				<?php if ((true && (true && null !== ($_POST['toContinue'] ?? null)))) {?>
					<button type="submit" class="btn btn-warning btn-lg" name="showFormContinue">Reprendre</button>
				<?php }?>
			</form>
			
						<?php if ((true && (true && null !== ($_POST['showForm'] ?? null))) || (true && (true && null !== ($_POST['showFormContinue'] ?? null)))) {?>
				<?php if ((true && (true && null !== ($_SESSION['user'] ?? null)))) {?>
				<form class="m-2" method="post" enctype="multipart/form-data" onsubmit="return confirm('Voulez-vous vraiment envoyer le formulaire ?')">
					<div>
						<label>Titre</label>
						<input type="text" name="titleProject">
					</div>
					<div> 
						<label>Description</label>
						<input type="text" name="descProject">
					</div>
					<div>
						<label>Texte Portfolio</label>
						<input type="text" name="textProject">
					</div>
					<div>
						<h3>Image thumbnail</h3>
						<input name="imageThumbnail" class="form-control" type="file">
					</div>
					<div>
						<h3>Image du projet</h3>
						<input name="imageProject" class="form-control" type="file">
					</div>
					<div class="mt-2">
						<button type="submit" class="btn btn-primary btn-md" name="sendMessage">Envoyer</button>
						<button type="submit" class="btn btn-warning btn-md" name="toContinue">Remettre à plus tard</button>
					</div>
				</form>
				<?php } else { ?>
				<div class="border rounded mt-5">
					<p class="text-danger p-2">Vous devez vous connecter pour accéder à cette fonctionnalité</p>
				</div>
				<?php }?>
			<?php }?>
			
        </div>
            <div>
                <h3>Description</h3>
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
                    Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. 
                    Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
            </div>
            <div>
                <h3>Photos behind the scene</h3>
                <div class="row mb-2">
                    <img>
                </div>
            </div>
            <div>
                <h3>Other projects</h3>
                <div class="row mb-2">
                    <?php
$_from = $_smarty_tpl->getSmarty()->getRuntime('Foreach')->init($_smarty_tpl, $_smarty_tpl->getValue('arrProjectToDisplay'), 'objProject');
$foreach0DoElse = true;
foreach ($_from ?? [] as $_smarty_tpl->getVariable('objProject')->value) {
$foreach0DoElse = false;
?>
                        <?php $_smarty_tpl->renderSubTemplate("file:../app/views/partials/preview.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir);
?>
                    <?php
}
$_smarty_tpl->getSmarty()->getRuntime('Foreach')->restore($_smarty_tpl, 1);?>
                </div>
            </div>
        </div>
    <section>
</body>
<?php
}
}
/* {/block "content"} */
}
