110 lines
4.1 KiB
PHP
110 lines
4.1 KiB
PHP
<?php
|
|
/* Smarty version 5.7.0, created on 2026-02-08 19:56:23
|
|
from 'file:views/project.tpl' */
|
|
|
|
/* @var \Smarty\Template $_smarty_tpl */
|
|
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
|
|
'version' => '5.7.0',
|
|
'unifunc' => 'content_6988ea67daa639_83777802',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'cf8cd41232f90f60b8532c811496cf0ce7d4ac25' =>
|
|
array (
|
|
0 => 'views/project.tpl',
|
|
1 => 1770580435,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
'file:../app/views/partials/preview.tpl' => 1,
|
|
),
|
|
))) {
|
|
function content_6988ea67daa639_83777802 (\Smarty\Template $_smarty_tpl) {
|
|
$_smarty_current_dir = 'D:\\projetphp\\views';
|
|
$_smarty_tpl->getInheritance()->init($_smarty_tpl, true);
|
|
?>
|
|
|
|
|
|
<?php
|
|
$_smarty_tpl->getInheritance()->instanceBlock($_smarty_tpl, 'Block_14142237226988ea67da2403_00733236', "content");
|
|
$_smarty_tpl->getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir);
|
|
}
|
|
/* {block "content"} */
|
|
class Block_14142237226988ea67da2403_00733236 extends \Smarty\Runtime\Block
|
|
{
|
|
public function callBlock(\Smarty\Template $_smarty_tpl) {
|
|
$_smarty_current_dir = 'D:\\projetphp\\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"} */
|
|
}
|