110 lines
4.1 KiB
PHP
110 lines
4.1 KiB
PHP
<?php
|
|
/* Smarty version 5.7.0, created on 2026-02-10 08:17:39
|
|
from 'file:views/project.tpl' */
|
|
|
|
/* @var \Smarty\Template $_smarty_tpl */
|
|
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
|
|
'version' => '5.7.0',
|
|
'unifunc' => 'content_698ae9a3ee5104_18468093',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'3309f8a981537e6cbbf8869c67d6dd307aa06ae3' =>
|
|
array (
|
|
0 => 'views/project.tpl',
|
|
1 => 1770634036,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
'file:../app/views/partials/preview.tpl' => 1,
|
|
),
|
|
))) {
|
|
function content_698ae9a3ee5104_18468093 (\Smarty\Template $_smarty_tpl) {
|
|
$_smarty_current_dir = 'C:\\wamp64\\www\\DWWM_2025\\projet2\\views';
|
|
$_smarty_tpl->getInheritance()->init($_smarty_tpl, true);
|
|
?>
|
|
|
|
|
|
<?php
|
|
$_smarty_tpl->getInheritance()->instanceBlock($_smarty_tpl, 'Block_2126029828698ae9a3edc808_29541958', "content");
|
|
$_smarty_tpl->getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir);
|
|
}
|
|
/* {block "content"} */
|
|
class Block_2126029828698ae9a3edc808_29541958 extends \Smarty\Runtime\Block
|
|
{
|
|
public function callBlock(\Smarty\Template $_smarty_tpl) {
|
|
$_smarty_current_dir = 'C:\\wamp64\\www\\DWWM_2025\\projet2\\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)))) {?>
|
|
<form 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>
|
|
<input name="imageProject" class="form-control" type="file">
|
|
</div>
|
|
<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>
|
|
</form>
|
|
<?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"} */
|
|
}
|