commit
91d0fb0b7d
@ -1,37 +1,3 @@
|
|||||||
<?php
|
|
||||||
$appreciations = array(
|
|
||||||
array(
|
|
||||||
"NAME" => "test",
|
|
||||||
"PROFILE_IMG" => "1.jpg",
|
|
||||||
"COMMENT" => "j'me présente, je m'appelle henry",
|
|
||||||
"NOTE" => "2",
|
|
||||||
"DATE" => DATE("2020-07-08")
|
|
||||||
),
|
|
||||||
array(
|
|
||||||
"NAME" => "test",
|
|
||||||
"PROFILE_IMG" => "1.jpg",
|
|
||||||
"COMMENT" => "j'me présente, je m'appelle henry",
|
|
||||||
"NOTE" => "2",
|
|
||||||
"DATE" => DATE("2020-07-08")
|
|
||||||
),
|
|
||||||
array(
|
|
||||||
"NAME" => "test",
|
|
||||||
"PROFILE_IMG" => "1.jpg",
|
|
||||||
"COMMENT" => "j'me présente, je m'appelle henry",
|
|
||||||
"NOTE" => "2",
|
|
||||||
"DATE" => DATE("2020-07-08")
|
|
||||||
),
|
|
||||||
array(
|
|
||||||
"NAME" => "AAAA",
|
|
||||||
"PROFILE_IMG" => "/static/img/recipes/1.jpg",
|
|
||||||
"COMMENT" => "j'me présente, je m'appelle henry",
|
|
||||||
"NOTE" => "2",
|
|
||||||
"DATE" => DATE("2020-07-08")
|
|
||||||
),
|
|
||||||
);
|
|
||||||
?>
|
|
||||||
|
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<h1> Appréciations: </h1>
|
<h1> Appréciations: </h1>
|
||||||
<form method="POST" action="/">
|
<form method="POST" action="/">
|
||||||
@ -50,8 +16,8 @@ $appreciations = array(
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
foreach ($appreciations as $appreciation){
|
foreach ($A_view as $appreciation){
|
||||||
View::show("appreciations/appreciation", $appreciation);
|
View::show("appreciations/appreciation", $appreciation);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@ -35,7 +35,37 @@
|
|||||||
<p>By <?= $A_view["AUTHOR_USERNAME"] ?></p>
|
<p>By <?= $A_view["AUTHOR_USERNAME"] ?></p>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
View::show("appreciations/view")//need to be linked with recipe?
|
$appreciations = array(
|
||||||
|
array(
|
||||||
|
"NAME" => "test",
|
||||||
|
"PROFILE_IMG" => "/static/img/users/1.jpg",
|
||||||
|
"COMMENT" => "j'me présente, je m'appelle henry",
|
||||||
|
"NOTE" => "2",
|
||||||
|
"DATE" => DATE("2020-07-08")
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
"NAME" => "test",
|
||||||
|
"PROFILE_IMG" => "/static/img/users/1.jpg",
|
||||||
|
"COMMENT" => "j'me présente, je m'appelle henry",
|
||||||
|
"NOTE" => "2",
|
||||||
|
"DATE" => DATE("2020-07-08")
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
"NAME" => "test",
|
||||||
|
"PROFILE_IMG" => "/static/img/users/1.jpg",
|
||||||
|
"COMMENT" => "j'me présente, je m'appelle henry",
|
||||||
|
"NOTE" => "2",
|
||||||
|
"DATE" => DATE("2020-07-08")
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
"NAME" => "AAAA",
|
||||||
|
"PROFILE_IMG" => "/static/img/users/1.jpg",
|
||||||
|
"COMMENT" => "j'me présente, je m'appelle henry",
|
||||||
|
"NOTE" => "2",
|
||||||
|
"DATE" => DATE("2020-07-08")
|
||||||
|
),
|
||||||
|
);
|
||||||
|
View::show("appreciations/view", $appreciations)//need to be linked with recipe?
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
BIN
static/img/users/1.jpg
Normal file
BIN
static/img/users/1.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 452 KiB |
Loading…
Reference in New Issue
Block a user