2008-01-26 00:04:01 +01:00
|
|
|
<?php
|
2011-08-08 18:00:16 +02:00
|
|
|
/* Copyright (C) 2005-2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
2018-10-27 14:43:12 +02:00
|
|
|
* Copyright (C) 2005-2006 Regis Houssin <regis.houssin@inodbox.com>
|
2008-01-26 00:04:01 +01:00
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
2013-01-16 15:36:08 +01:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2008-01-26 00:04:01 +01:00
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2019-09-23 21:55:30 +02:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2008-01-26 00:04:01 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/**
|
2016-09-24 06:48:40 +02:00
|
|
|
* \file htdocs/adherents/subscription/info.php
|
2009-10-10 18:00:35 +02:00
|
|
|
* \ingroup member
|
2016-09-24 06:48:40 +02:00
|
|
|
* \brief Page with information of subscriptions of a member
|
2011-08-27 16:24:16 +02:00
|
|
|
*/
|
2008-01-26 00:04:01 +01:00
|
|
|
|
2016-10-02 20:15:11 +02:00
|
|
|
require '../../main.inc.php';
|
2012-08-22 23:11:24 +02:00
|
|
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
|
|
|
|
require_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent.class.php';
|
|
|
|
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/member.lib.php';
|
2016-09-24 06:48:40 +02:00
|
|
|
require_once DOL_DOCUMENT_ROOT.'/adherents/class/subscription.class.php';
|
2008-01-26 00:04:01 +01:00
|
|
|
|
2018-09-07 10:40:36 +02:00
|
|
|
// Load translation files required by the page
|
2020-04-10 10:59:32 +02:00
|
|
|
$langs->loadLangs(array("companies", "members", "bills", "users"));
|
2008-01-26 00:04:01 +01:00
|
|
|
|
2021-10-22 22:15:59 +02:00
|
|
|
if (empty($user->rights->adherent->lire)) {
|
2008-01-26 00:04:01 +01:00
|
|
|
accessforbidden();
|
2021-03-01 00:19:52 +01:00
|
|
|
}
|
2008-01-26 00:04:01 +01:00
|
|
|
|
2020-04-10 10:59:32 +02:00
|
|
|
$rowid = GETPOST("rowid", 'int');
|
2008-01-26 00:04:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
2016-09-24 06:48:40 +02:00
|
|
|
* View
|
2008-01-26 00:04:01 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
$form = new Form($db);
|
|
|
|
|
|
2017-12-21 12:47:49 +01:00
|
|
|
llxHeader();
|
|
|
|
|
|
2016-09-24 06:48:40 +02:00
|
|
|
$object = new Subscription($db);
|
|
|
|
|
$result = $object->fetch($rowid);
|
2008-01-26 00:04:01 +01:00
|
|
|
|
2016-09-24 06:48:40 +02:00
|
|
|
$head = subscription_prepare_head($object);
|
2008-01-26 00:04:01 +01:00
|
|
|
|
2020-10-22 22:50:03 +02:00
|
|
|
print dol_get_fiche_head($head, 'info', $langs->trans("Subscription"), -1, 'payment');
|
2017-07-08 00:42:55 +02:00
|
|
|
|
2019-12-05 15:22:06 +01:00
|
|
|
$linkback = '<a href="'.DOL_URL_ROOT.'/adherents/subscription/list.php?restore_lastsearch_values=1">'.$langs->trans("BackToList").'</a>';
|
2017-07-08 00:42:55 +02:00
|
|
|
|
|
|
|
|
dol_banner_tab($object, 'rowid', $linkback, 1);
|
|
|
|
|
|
|
|
|
|
print '<div class="fichecenter">';
|
|
|
|
|
|
|
|
|
|
print '<div class="underbanner clearboth"></div>';
|
|
|
|
|
|
|
|
|
|
print '<br>';
|
2008-01-26 00:04:01 +01:00
|
|
|
|
2016-09-24 06:48:40 +02:00
|
|
|
$object->info($rowid);
|
2008-01-26 00:04:01 +01:00
|
|
|
|
|
|
|
|
print '<table width="100%"><tr><td>';
|
2016-09-24 06:48:40 +02:00
|
|
|
dol_print_object_info($object);
|
2008-01-26 00:04:01 +01:00
|
|
|
print '</td></tr></table>';
|
|
|
|
|
|
|
|
|
|
print '</div>';
|
|
|
|
|
|
|
|
|
|
|
2020-10-27 18:19:31 +01:00
|
|
|
print dol_get_fiche_end();
|
2017-07-08 00:42:55 +02:00
|
|
|
|
2018-07-28 14:29:28 +02:00
|
|
|
// End of page
|
2011-08-27 16:24:16 +02:00
|
|
|
llxFooter();
|
2015-12-11 12:29:19 +01:00
|
|
|
$db->close();
|