Projet

Général

Profil

Paste
Statistiques
| Branche: | Révision:

ryxeo-glpi-git / inc / bookmark.function.php @ b67d8923

Historique | Voir | Annoter | Télécharger (1,97 ko)

1
<?php
2

    
3
/*
4
 * @version $Id: bookmark.function.php 7763 2009-01-06 18:44:50Z moyo $
5
 -------------------------------------------------------------------------
6
 GLPI - Gestionnaire Libre de Parc Informatique
7
 Copyright (C) 2003-2009 by the INDEPNET Development Team.
8

9
 http://indepnet.net/   http://glpi-project.org
10
 -------------------------------------------------------------------------
11

12
 LICENSE
13

14
 This file is part of GLPI.
15

16
 GLPI is free software; you can redistribute it and/or modify
17
 it under the terms of the GNU General Public License as published by
18
 the Free Software Foundation; either version 2 of the License, or
19
 (at your option) any later version.
20

21
 GLPI is distributed in the hope that it will be useful,
22
 but WITHOUT ANY WARRANTY; without even the implied warranty of
23
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24
 GNU General Public License for more details.
25

26
 You should have received a copy of the GNU General Public License
27
 along with GLPI; if not, write to the Free Software
28
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
29
 --------------------------------------------------------------------------
30
 */
31

    
32
if (!defined('GLPI_ROOT')) {
33
        die("Sorry. You can't access directly to this file");
34
}
35

    
36

    
37
/**
38
 * Display bookmark buttons
39
 *
40
 * @param $type bookmark type to use
41
 * @param $device_type device type of item where is the bookmark
42
 **/
43
function showSaveBookmarkButton($type,$device_type=0){
44
        global $CFG_GLPI,$LANG;
45
        echo "  <a href='#' onClick=\"var w = window.open('".$CFG_GLPI["root_doc"]."/front/popup.php?popup=edit_bookmark&amp;type=$type&amp;device_type=$device_type&amp;url=".rawurlencode($_SERVER["REQUEST_URI"])."' ,'glpipopup', 'height=400, width=600, top=100, left=100, scrollbars=yes' );w.focus();\">"; 
46
        echo "<img src='".$CFG_GLPI["root_doc"]."/pics/bookmark_record.png' title=\"".$LANG["buttons"][51]." ".$LANG["bookmark"][1]."\"  alt=\"".$LANG["buttons"][51]." ".$LANG["bookmark"][1]."\"  class='calendrier' >"; 
47
        echo "        </a>";
48
}
49

    
50
?>
Redmine Appliance - Powered by TurnKey Linux