150 lines
5.8 KiB
PHP
150 lines
5.8 KiB
PHP
<?php
|
|
/* Smarty version 5.7.0, created on 2026-02-17 16:50:35
|
|
from 'file:views/project.tpl' */
|
|
|
|
/* @var \Smarty\Template $_smarty_tpl */
|
|
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
|
|
'version' => '5.7.0',
|
|
'unifunc' => 'content_69949c5bba2e78_15118675',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'e3f999d4206c004969123c0e3f74733796438d51' =>
|
|
array (
|
|
0 => 'views/project.tpl',
|
|
1 => 1771345389,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
'file:../app/views/partials/preview.tpl' => 1,
|
|
),
|
|
))) {
|
|
function content_69949c5bba2e78_15118675 (\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_168273369269949c5bb97b88_70245840', "content");
|
|
$_smarty_tpl->getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir);
|
|
}
|
|
/* {block "content"} */
|
|
class Block_168273369269949c5bb97b88_70245840 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 class="col-6">
|
|
<fieldset>
|
|
<legend class="form-label">Type de recherche par catégories</legend>
|
|
<div class="col-md-6">
|
|
<label for="author" class="form-label">Catégorie</label>
|
|
<select class="form-select" id="category" name="category">
|
|
<option value="0" <?php if ($_smarty_tpl->getValue('intCategory') == 0) {?>selected<?php }?>>Toutes les catégories</option>
|
|
<?php
|
|
$_from = $_smarty_tpl->getSmarty()->getRuntime('Foreach')->init($_smarty_tpl, $_smarty_tpl->getValue('arrCategory'), 'arrDetCategory');
|
|
$foreach0DoElse = true;
|
|
foreach ($_from ?? [] as $_smarty_tpl->getVariable('arrDetCategory')->value) {
|
|
$foreach0DoElse = false;
|
|
?>
|
|
<option value="<?php echo $_smarty_tpl->getValue('arrDetCategory')['category_id'];?>
|
|
"
|
|
<?php if ($_smarty_tpl->getValue('intCategory') == $_smarty_tpl->getValue('arrDetCategory')['category_id']) {?>selected<?php }?>
|
|
>
|
|
<?php echo $_smarty_tpl->getValue('arrDetCategory')['category_name'];?>
|
|
|
|
</option>
|
|
<?php
|
|
}
|
|
$_smarty_tpl->getSmarty()->getRuntime('Foreach')->restore($_smarty_tpl, 1);?>
|
|
</select>
|
|
</div>
|
|
</fieldset>
|
|
</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="sendProject">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');
|
|
$foreach1DoElse = true;
|
|
foreach ($_from ?? [] as $_smarty_tpl->getVariable('objProject')->value) {
|
|
$foreach1DoElse = 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"} */
|
|
}
|