From e08c9ee65449bc7f8a344da1392ebce64ba955a1 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Mon, 16 Sep 2013 16:42:25 +0000 Subject: [PATCH] Ajax file for bookmark --- include/ajax_bookmark.php | 92 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 include/ajax_bookmark.php diff --git a/include/ajax_bookmark.php b/include/ajax_bookmark.php new file mode 100644 index 000000000..6e8184bc7 --- /dev/null +++ b/include/ajax_bookmark.php @@ -0,0 +1,92 @@ +exec_sql("insert into bookmark(b_action,login) values($1,$2)", + array($_GET['ac'],$g_user->login)); +} +// remove bookmark +if (isset($_GET['bookmark_delete']) && isset ($_GET['book'])){ + $a_book=$_GET['book']; + for ($e=0;$eexec_sql("delete from bookmark where b_id=$1 and login=$2", + array($a_book[$e],$g_user->login)); + } +} + +$bookmark_sql="select distinct b_id,b_action,b_order,me_description, javascript" + . " from bookmark " + . "join v_menu_description on (code=b_action)" + . "where " + . "login=$1 order by b_order,b_action"; +$a_bookmark=$cn->get_array($bookmark_sql,array($g_user->login)); +$url="do.php?gDossier=".Dossier::id()."&ac="; +?> +
+
+ + + + + + + + + + +
+ value=$a_bookmark[$i]['b_id']; + echo $ch->input(); + ?> + + + + + + +
+ +
+
+ +

+ +

+ + +
\ No newline at end of file