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