From b3b9ca6944ed8cf665af90955448d8983487f4c5 Mon Sep 17 00:00:00 2001
From: "real3t@gmail.com" <>
Date: Thu, 2 Jan 2014 22:30:18 +0000
Subject: [PATCH] =?UTF-8?q?Squelettes=20de=20dev=20pour=20g=C3=A9n=C3=A9re?=
 =?UTF-8?q?r=20le=20PHP=20de=20cr=C3=A9ation=20de=20contenu?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .gitattributes                   |  3 ++-
 dev/gen_articles.html            | 38 ++++++++++++++++++++++++++++++++
 motconf.html => dev/motconf.html |  0
 3 files changed, 40 insertions(+), 1 deletion(-)
 create mode 100644 dev/gen_articles.html
 rename motconf.html => dev/motconf.html (100%)

diff --git a/.gitattributes b/.gitattributes
index 757ded9a..cd345b18 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -147,6 +147,8 @@ css/ie.css.html -text
 css/ie6.css -text
 css/ie7.css -text
 /datepicker_lang.js.html -text
+dev/gen_articles.html -text
+dev/motconf.html -text
 documents/casiertypo.png -text
 documents/contact.jpg -text
 documents/facebook.png -text
@@ -359,7 +361,6 @@ modeles/mod_lien_detail.html -text
 modeles/popup.html -text
 modeles/secteur_pdf.html -text
 /mot.html -text
-/motconf.html -text
 /mots_filtres.html -text
 /mots_filtres_agenda.html -text
 /motsfonctionnels.html -text
diff --git a/dev/gen_articles.html b/dev/gen_articles.html
new file mode 100644
index 00000000..c3a7e909
--- /dev/null
+++ b/dev/gen_articles.html
@@ -0,0 +1,38 @@
+#HTTP_HEADER{Content-Type: text/plain; charset=#CHARSET}
+<BOUCLE_ListeRubriques(RUBRIQUES){racine}{par num titre}{tout}>
+	create_rubrique("[(#TITRE*|sc_NewLine2str)]", '0', "[(#DESCRIPTIF*|sc_NewLine2str)]");[(#REM)
+	]<BOUCLE_MotsRub(MOTS){id_rubrique}>
+		create_rubrique_mot("[(#INFO_TITRE*{rubrique,#ID_RUBRIQUE}|sc_NewLine2str)]", "[(#TITRE*|sc_NewLine2str)]", "[(#INFO_TITRE*{groupe_mot,#ID_GROUPE}|sc_NewLine2str)]");[(#REM)
+	]</BOUCLE_MotsRub>[(#REM)
+	]<BOUCLE_ListeSsRubriques(RUBRIQUES){id_parent}{par num titre}{tout}>
+		create_rubrique("[(#TITRE*|sc_NewLine2str)]", #ID_PARENT, "[(#DESCRIPTIF*|sc_NewLine2str)]");[(#REM)
+	]<BOUCLE_MotsSsRub(MOTS){id_rubrique}>
+			create_rubrique_mot("[(#INFO_TITRE*{rubrique,#ID_RUBRIQUE}|sc_NewLine2str)]", "[(#TITRE*|sc_NewLine2str)]", "[(#INFO_TITRE*{groupe_mot,#ID_GROUPE}|sc_NewLine2str)]");[(#REM)
+	]</BOUCLE_MotsSsRub><BOUCLE_SSRub(BOUCLE_ListeSsRubriques) />[(#REM)
+	]</BOUCLE_ListeSsRubriques>
+	
+</BOUCLE_ListeRubriques>
+
+<BOUCLE_ListeArticles(ARTICLES){par id_rubrique}>
+	/* #TITRE* */
+	if ($article == "[(#TITRE*|sc_NewLine2str)]") {
+		$contenu[(#VAL{91}|chr)]'titre'[(#VAL{93}|chr)] = "[(#TITRE*|sc_NewLine2str)]";[
+		$contenu[(#VAL{91}|chr)]'chapo'[(#VAL{93}|chr)] = <<<EOF
+(#CHAPO*)
+EOF;][
+		$contenu[(#VAL{91}|chr)]'texte'[(#VAL{93}|chr)] = <<<EOF
+(#TEXTE*)
+EOF;][
+		$contenu[(#VAL{91}|chr)]'ps'[(#VAL{93}|chr)] = <<<EOF
+(#PS*)
+EOF;][
+		$contenu[(#VAL{91}|chr)]'surtitre'[(#VAL{93}|chr)] = "(#SURTITRE*|sc_NewLine2str)";][
+		$contenu[(#VAL{91}|chr)]'soustitre'[(#VAL{93}|chr)] = "(#SOUSTITRE*|sc_NewLine2str)";][
+		$contenu[(#VAL{91}|chr)]'nom_site'[(#VAL{93}|chr)] = "(#NOM_SITE*|sc_NewLine2str)";][
+		$contenu[(#VAL{91}|chr)]'url_site'[(#VAL{93}|chr)] = "(#URL_SITE*|sc_NewLine2str)";]
+	}
+	$article#ID_ARTICLE = trouve_article_sc("[(#TITRE*|sc_NewLine2str)]");
+		create_article($article#ID_ARTICLE, "[(#INFO_TITRE*{rubrique,#ID_RUBRIQUE}|sc_NewLine2str)]");
+
+
+</BOUCLE_ListeArticles>
\ No newline at end of file
diff --git a/motconf.html b/dev/motconf.html
similarity index 100%
rename from motconf.html
rename to dev/motconf.html
-- 
GitLab