From a511593da994da9ba3fc47adcdb32fe63ac73b5e Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Mon, 21 May 2018 16:48:06 +0200 Subject: transfert --- class/class.aff.php | 105 +++++++++++++++++++++++++++++++++------------------- 1 file changed, 67 insertions(+), 38 deletions(-) (limited to 'class/class.aff.php') diff --git a/class/class.aff.php b/class/class.aff.php index a62274e..3ae4662 100644 --- a/class/class.aff.php +++ b/class/class.aff.php @@ -17,7 +17,7 @@ class Aff public function lecture(Art $art, App $app) { - echo ''; + echo '
'; if ($art->secure() == 1) { echo '

cet article est privé

'; } @@ -28,6 +28,7 @@ class Aff if ($this->session() >= $art->secure()) { ?>
+

titre() ?>

soustitre() ?>
+
html($app) ?>
'; + echo '
'; } public function edit(Art $art, $list) @@ -60,7 +62,7 @@ class Aff if ($this->session() >= self::$edit) { ?> - +
@@ -85,11 +87,17 @@ class Aff
- + '; - echo '
'; - echo ''; - echo ''; - echo ''; ?> - +
+ + + + '; + ?> + + + + + + + + + + +
'; - echo ''; - echo ''; + } public function head($title, $tool) @@ -149,7 +167,8 @@ public function head($title, $tool) ?> - + + <?= $title ?> @@ -174,7 +193,7 @@ public function head($title, $tool) public function tag($getlist, $tag) { - echo ''; + echo '
'; echo ' '; - echo ' '; + echo '
'; } public function lien($getlist, $lien) { - echo ''; + echo '
'; echo ' '; - echo ' '; + echo '
'; } public function home($getlist) @@ -236,7 +255,7 @@ public function head($title, $tool) public function home2($getlist) { - echo ''; + echo '
'; if ($this->session() >= 2) { echo ' '; } - echo ' '; + echo '
'; } public function home2table($getlist) { - echo ''; + echo '
'; echo '
'; echo '

W

'; $this->search(); if ($this->session() >= 2) { echo '

Home

'; echo ''; - echo ''; + echo ''; foreach ($getlist as $item) { - $count = 0; + $liento = 0; + $lienfrom = 0; foreach ($getlist as $lien) { if (in_array($item->id(), $lien->lien('array'))) { - $count++; + $liento++; } } + foreach ($item->lien('array') as $count) { + $lienfrom++; + } echo ''; echo ''; echo ''; - echo ''; + echo ''; + echo ''; + echo ''; + echo ''; echo ''; echo ''; } echo '
titrerésumélienedit
titrerésumélien fromlien todernière modifdate de créationedit
' . $item->titre() . '' . $item->intro() . '' . $count . '' . $lienfrom . '' . $liento . '' . $item->datemodif('hrdi') . '' . $item->datecreation('hrdi') . 'modifier
'; } echo '
'; - echo ' '; + echo '
'; } public function aside($list) @@ -314,7 +340,7 @@ public function head($title, $tool) if (isset($_GET['id'])) { if ($this->session() == 0) { ?> -
+ @@ -324,7 +350,7 @@ public function head($title, $tool) } if ($this->session() >= 1) { ?> - +
@@ -372,13 +398,16 @@ public function head($title, $tool) if ($this->session() >= 2) { ?> +
+ Add Media

Ajouter un media

-
+ +