Skip to content
This repository was archived by the owner on Jul 6, 2021. It is now read-only.

Commit 2fbebc9

Browse files
author
walid
committed
TAG 0.80.1
git-svn-id: https://forge.indepnet.net/svn/simcard/tags/0.80.1@15 3134369b-abb3-481d-a5ac-911e5e94f972
0 parents  commit 2fbebc9

26 files changed

Lines changed: 2435 additions & 0 deletions

ajax/phoneoperator.tabs.php

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?php
2+
/*
3+
* @version $Id$
4+
LICENSE
5+
6+
This file is part of the simcard plugin.
7+
8+
Order plugin is free software; you can redistribute it and/or modify
9+
it under the terms of the GNU General Public License as published by
10+
the Free Software Foundation; either version 2 of the License, or
11+
(at your option) any later version.
12+
13+
Order plugin is distributed in the hope that it will be useful,
14+
but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
GNU General Public License for more details.
17+
18+
You should have received a copy of the GNU General Public License
19+
along with GLPI; along with Behaviors. If not, see <http://www.gnu.org/licenses/>.
20+
--------------------------------------------------------------------------
21+
@package order
22+
@author the order plugin team
23+
@copyright Copyright (c) 2010-2011 Order plugin team
24+
@license GPLv2+
25+
http://www.gnu.org/licenses/gpl.txt
26+
@link https://forge.indepnet.net/projects/order
27+
@link http://www.glpi-project.org/
28+
@since 2009
29+
---------------------------------------------------------------------- */
30+
31+
define('GLPI_ROOT', '../../..');
32+
include (GLPI_ROOT . "/inc/includes.php");
33+
header("Content-Type: text/html; charset=UTF-8");
34+
header_nocache();
35+
36+
$dropdown = new PluginSimcardPhoneOperator();
37+
include (GLPI_ROOT . "/ajax/dropdown.common.tabs.php");
38+
39+
?>

ajax/simcard.tabs.php

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
<?php
2+
/*
3+
* @version $Id$
4+
LICENSE
5+
6+
This file is part of the simcard plugin.
7+
8+
Order plugin is free software; you can redistribute it and/or modify
9+
it under the terms of the GNU General Public License as published by
10+
the Free Software Foundation; either version 2 of the License, or
11+
(at your option) any later version.
12+
13+
Order plugin is distributed in the hope that it will be useful,
14+
but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
GNU General Public License for more details.
17+
18+
You should have received a copy of the GNU General Public License
19+
along with GLPI; along with Simcard. If not, see <http://www.gnu.org/licenses/>.
20+
--------------------------------------------------------------------------
21+
@package simcard
22+
@author the simcard plugin team
23+
@copyright Copyright (c) 2010-2011 Simcard plugin team
24+
@license GPLv2+
25+
http://www.gnu.org/licenses/gpl.txt
26+
@link https://forge.indepnet.net/projects/simcard
27+
@link http://www.glpi-project.org/
28+
@since 2009
29+
---------------------------------------------------------------------- */
30+
31+
define('GLPI_ROOT', '../../..');
32+
include (GLPI_ROOT . "/inc/includes.php");
33+
header("Content-Type: text/html; charset=UTF-8");
34+
header_nocache();
35+
36+
if (!isset($_POST["id"])) {
37+
exit();
38+
}
39+
40+
if (!isset($_REQUEST['glpi_tab'])) {
41+
exit();
42+
}
43+
44+
if (!isset($_POST["withtemplate"])) {
45+
$_POST["withtemplate"] = "";
46+
}
47+
48+
$simcard = new PluginSimcardSimcard();
49+
if ($_POST['id']>0 && $simcard->can($_POST['id'],'r')) {
50+
switch($_REQUEST['glpi_tab']) {
51+
case -1 :
52+
PluginSimcardSimcard_Item::showForSimcard($simcard);
53+
Infocom::showForItem($simcard, $_POST["withtemplate"]);
54+
Contract::showAssociated($simcard, $_POST["withtemplate"]);
55+
Document::showAssociated($simcard);
56+
Ticket::showListForItem('PluginSimcardSimcard', $_POST["id"]);
57+
Reservation::showForItem('PluginSimcardSimcard', $_POST["id"]);
58+
Plugin::displayAction($simcard, $_REQUEST['glpi_tab'], $_POST["withtemplate"]);
59+
break;
60+
61+
case 1 :
62+
PluginSimcardSimcard_Item::showForSimcard($simcard);
63+
break;
64+
case 2 :
65+
Infocom::showForItem($simcard, $_POST["withtemplate"]);
66+
Contract::showAssociated($simcard, $_POST["withtemplate"]);
67+
break;
68+
69+
case 3 :
70+
Document::showAssociated($simcard);
71+
break;
72+
73+
case 4 :
74+
Ticket::showListForItem('PluginSimcardSimcard', $_POST["id"]);
75+
break;
76+
77+
case 5 :
78+
showNotesForm($_POST['target'],'PluginSimcardSimcard',$_POST["id"]);
79+
break;
80+
81+
case 6 :
82+
Reservation::showForItem('PluginSimcardSimcard', $_POST["id"]);
83+
break;
84+
85+
case 12 :
86+
Log::showForItem($simcard);
87+
break;
88+
89+
default :
90+
if (!Plugin::displayAction($simcard, $_REQUEST['glpi_tab'], $_POST["withtemplate"])) {
91+
}
92+
break;
93+
}
94+
95+
}
96+
97+
ajaxFooter();
98+
99+
?>

ajax/simcardsize.tabs.php

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?php
2+
/*
3+
* @version $Id$
4+
LICENSE
5+
6+
This file is part of the simcard plugin.
7+
8+
Order plugin is free software; you can redistribute it and/or modify
9+
it under the terms of the GNU General Public License as published by
10+
the Free Software Foundation; either version 2 of the License, or
11+
(at your option) any later version.
12+
13+
Order plugin is distributed in the hope that it will be useful,
14+
but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
GNU General Public License for more details.
17+
18+
You should have received a copy of the GNU General Public License
19+
along with GLPI; along with Behaviors. If not, see <http://www.gnu.org/licenses/>.
20+
--------------------------------------------------------------------------
21+
@package order
22+
@author the order plugin team
23+
@copyright Copyright (c) 2010-2011 Order plugin team
24+
@license GPLv2+
25+
http://www.gnu.org/licenses/gpl.txt
26+
@link https://forge.indepnet.net/projects/order
27+
@link http://www.glpi-project.org/
28+
@since 2009
29+
---------------------------------------------------------------------- */
30+
31+
define('GLPI_ROOT', '../../..');
32+
include (GLPI_ROOT . "/inc/includes.php");
33+
header("Content-Type: text/html; charset=UTF-8");
34+
header_nocache();
35+
36+
$dropdown = new PluginSimcardSimcardSize();
37+
include (GLPI_ROOT . "/ajax/dropdown.common.tabs.php");
38+
39+
?>

ajax/simcardvoltage.tabs.php

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?php
2+
/*
3+
* @version $Id$
4+
LICENSE
5+
6+
This file is part of the simcard plugin.
7+
8+
Order plugin is free software; you can redistribute it and/or modify
9+
it under the terms of the GNU General Public License as published by
10+
the Free Software Foundation; either version 2 of the License, or
11+
(at your option) any later version.
12+
13+
Order plugin is distributed in the hope that it will be useful,
14+
but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
GNU General Public License for more details.
17+
18+
You should have received a copy of the GNU General Public License
19+
along with GLPI; along with Behaviors. If not, see <http://www.gnu.org/licenses/>.
20+
--------------------------------------------------------------------------
21+
@package order
22+
@author the order plugin team
23+
@copyright Copyright (c) 2010-2011 Order plugin team
24+
@license GPLv2+
25+
http://www.gnu.org/licenses/gpl.txt
26+
@link https://forge.indepnet.net/projects/order
27+
@link http://www.glpi-project.org/
28+
@since 2009
29+
---------------------------------------------------------------------- */
30+
31+
define('GLPI_ROOT', '../../..');
32+
include (GLPI_ROOT . "/inc/includes.php");
33+
header("Content-Type: text/html; charset=UTF-8");
34+
header_nocache();
35+
36+
$dropdown = new PluginSimcardSimcardVoltage();
37+
include (GLPI_ROOT . "/ajax/dropdown.common.tabs.php");
38+
39+
?>

front/phoneoperator.form.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?php
2+
/*
3+
* @version $Id$
4+
LICENSE
5+
6+
This file is part of the simcard plugin.
7+
8+
Order plugin is free software; you can redistribute it and/or modify
9+
it under the terms of the GNU General Public License as published by
10+
the Free Software Foundation; either version 2 of the License, or
11+
(at your option) any later version.
12+
13+
Order plugin is distributed in the hope that it will be useful,
14+
but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
GNU General Public License for more details.
17+
18+
You should have received a copy of the GNU General Public License
19+
along with GLPI; along with Simcard. If not, see <http://www.gnu.org/licenses/>.
20+
--------------------------------------------------------------------------
21+
@package simcard
22+
@author the simcard plugin team
23+
@copyright Copyright (c) 2010-2011 Simcard plugin team
24+
@license GPLv2+
25+
http://www.gnu.org/licenses/gpl.txt
26+
@link https://forge.indepnet.net/projects/simcard
27+
@link http://www.glpi-project.org/
28+
@since 2009
29+
---------------------------------------------------------------------- */
30+
31+
define('GLPI_ROOT', '../../..');
32+
include (GLPI_ROOT . "/inc/includes.php");
33+
34+
$dropdown = new PluginSimcardPhoneOperator();
35+
include (GLPI_ROOT . "/front/dropdown.common.form.php");
36+
?>

front/phoneoperator.php

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?php
2+
/*
3+
* @version $Id$
4+
LICENSE
5+
6+
This file is part of the simcard plugin.
7+
8+
Order plugin is free software; you can redistribute it and/or modify
9+
it under the terms of the GNU General Public License as published by
10+
the Free Software Foundation; either version 2 of the License, or
11+
(at your option) any later version.
12+
13+
Order plugin is distributed in the hope that it will be useful,
14+
but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
GNU General Public License for more details.
17+
18+
You should have received a copy of the GNU General Public License
19+
along with GLPI; along with Simcard. If not, see <http://www.gnu.org/licenses/>.
20+
--------------------------------------------------------------------------
21+
@package simcard
22+
@author the simcard plugin team
23+
@copyright Copyright (c) 2010-2011 Simcard plugin team
24+
@license GPLv2+
25+
http://www.gnu.org/licenses/gpl.txt
26+
@link https://forge.indepnet.net/projects/simcard
27+
@link http://www.glpi-project.org/
28+
@since 2009
29+
---------------------------------------------------------------------- */
30+
31+
32+
define('GLPI_ROOT', '../../..');
33+
include (GLPI_ROOT . "/inc/includes.php");
34+
35+
$dropdown = new PluginSimcardPhoneOperator();
36+
include (GLPI_ROOT . "/front/dropdown.common.php");
37+
?>

front/profile.form.php

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?php
2+
/*
3+
* @version $Id$
4+
LICENSE
5+
6+
This file is part of the simcard plugin.
7+
8+
Order plugin is free software; you can redistribute it and/or modify
9+
it under the terms of the GNU General Public License as published by
10+
the Free Software Foundation; either version 2 of the License, or
11+
(at your option) any later version.
12+
13+
Order plugin is distributed in the hope that it will be useful,
14+
but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
GNU General Public License for more details.
17+
18+
You should have received a copy of the GNU General Public License
19+
along with GLPI; along with Simcard. If not, see <http://www.gnu.org/licenses/>.
20+
--------------------------------------------------------------------------
21+
@package simcard
22+
@author the simcard plugin team
23+
@copyright Copyright (c) 2010-2011 Simcard plugin team
24+
@license GPLv2+
25+
http://www.gnu.org/licenses/gpl.txt
26+
@link https://forge.indepnet.net/projects/simcard
27+
@link http://www.glpi-project.org/
28+
@since 2009
29+
---------------------------------------------------------------------- */
30+
31+
define('GLPI_ROOT', '../../..');
32+
include (GLPI_ROOT."/inc/includes.php");
33+
34+
checkRight("profile", "r");
35+
36+
$prof = new PluginSimcardProfile();
37+
38+
//Save profile
39+
if (isset ($_POST['update'])) {
40+
$prof->update($_POST);
41+
}
42+
glpi_header($_SERVER['HTTP_REFERER']);
43+
?>

0 commit comments

Comments
 (0)