From 7d65dff8462bb73e4e48ca43af9d15fd8b408b06 Mon Sep 17 00:00:00 2001 From: ARNO* <arno@rezo.net> Date: Sat, 27 Aug 2005 13:57:01 +0000 Subject: [PATCH] Listes d'articles par tranches: changement de tranche sans recharger la page (AJAX) - fichiers manquants --- .gitattributes | 2 ++ ecrire/ajax_page.php | 39 ++++++++++++++++++++++++++++++++++ ecrire/img_pack/searching.gif | Bin 0 -> 1141 bytes 3 files changed, 41 insertions(+) create mode 100644 ecrire/ajax_page.php create mode 100644 ecrire/img_pack/searching.gif diff --git a/.gitattributes b/.gitattributes index 08b594f00a..7c1e373d30 100644 --- a/.gitattributes +++ b/.gitattributes @@ -71,6 +71,7 @@ IMG/test.gif -text IMG/test.jpg -text IMG/test.png -text IMG/test_image.jpg -text +ecrire/ajax_page.php -text ecrire/img_pack/admin-12.gif -text ecrire/img_pack/administration-24.gif -text ecrire/img_pack/administration-48.png -text @@ -211,6 +212,7 @@ ecrire/img_pack/rubrique-12.gif -text ecrire/img_pack/rubrique-24.gif -text ecrire/img_pack/rv-12.gif -text ecrire/img_pack/rv.gif -text +ecrire/img_pack/searching.gif -text ecrire/img_pack/secteur-12.gif -text ecrire/img_pack/secteur-24.gif -text ecrire/img_pack/set-ecran-etroit.png -text diff --git a/ecrire/ajax_page.php b/ecrire/ajax_page.php new file mode 100644 index 0000000000..f42934d270 --- /dev/null +++ b/ecrire/ajax_page.php @@ -0,0 +1,39 @@ +<?php +/***************************************************************************\ + * SPIP, Systeme de publication pour l'internet * + * * + * Copyright (c) 2001-2005 * + * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * + * * + * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * + * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * +\***************************************************************************/ + + +include ("inc.php3"); +echo "<"."?xml version='1.0' encoding='UTF-8'?>"; + + + if ($GLOBALS["id_ajax_fonc"]) { + $res = spip_query("SELECT * FROM spip_ajax_fonc WHERE id_ajax_fonc = $id_ajax_fonc AND id_auteur=$connect_id_auteur"); + if ($row = spip_fetch_array($res)) { + $fonction = $row["fonction"]; + $variables = $row["variables"]; + + $variables = unserialize($variables); + while (list($i, $k) = each($variables)) { + $$i = $k; + + } + + // Appliquer la fonction + if ($fonction == "afficher_articles") { + afficher_articles ($titre_table, $requete, $afficher_visites, $afficher_auteurs); + } + } + + } + + + +?> \ No newline at end of file diff --git a/ecrire/img_pack/searching.gif b/ecrire/img_pack/searching.gif new file mode 100644 index 0000000000000000000000000000000000000000..bf510daca026ca666c43682a7265f8bb8d7ea018 GIT binary patch literal 1141 zcmb`_XHQ#a6u|N8J;2z6kg&moOcUZjN7A%3X#yl^o2E_Z0NRq4M@W1CBm^(u9^dP0 zN8k`fDHZ~&Rcyz_27?(k!h$jc2noazOMpP^y{9Pd%Zj|~`2fH3m(GcL6nX3R3jrp; zrV-ZH*JrU<^78VMlanP9Npy7d(b3V~-rmH-#KFPA>gwvy(9qo6+~VTm%*@R0?(XL1 zre3el$;s*O@2{<`Ei5c-Yip~isYy*ujf;!h*w|QES?TEL7#kZ43ky3uJS-?E*xufr zpPz4SZQbABUszaJT3RYDF4kx?6%`c}Mb*{Sm6es5Os1`^t(~2n`1ttr^mL=qI6FHV z8ynlu(4bbUo0^(zHk(u`wOXx3MMa&Rod$!Uxw+YFHYX$`^z`%$3=CvsWR#Yc#>B+n zIKI5RoS2xHpP%2@*f>5uzP7d&9v-e#Dn~{}T3T94N=l}ur$<Ler>3UX*Vij6D<>x> z)6&vNlI-p6wcG7oU0wC{^(iSS!^6XagM&#)N$u_J)z#JA-QCB>$JqZm;$x>L5zn99 zzxOmEG(^gvo#5g<CXbIHEZDKgaVCuOARXbr1QNN*<lw15#7pFosmjJ(Zsr$~j3S1* zg#0)Ze4XWiS3mQoACF8ko6MmIKuhgg8a%dR3bPJ^QyFbg<<&dR`*4IWBFpoAA; zAb9mU=+W(K-jpB!?qBhubb7jht~Z*fub!46{x9FLF_YwH+-h_a)>r<mJJpVG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