dolibarr/htdocs/adherents/subscription/info.php

81 lines
2.2 KiB
PHP
Raw Normal View History

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
* 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
*/
/**
* \file htdocs/adherents/subscription/info.php
* \ingroup member
* \brief Page with information of subscriptions of a member
*/
2008-01-26 00:04:01 +01:00
require '../../main.inc.php';
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';
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
$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
$rowid = GETPOST("rowid", 'int');
2008-01-26 00:04:01 +01:00
/*
* View
2008-01-26 00:04:01 +01:00
*/
$form = new Form($db);
llxHeader();
$object = new Subscription($db);
$result = $object->fetch($rowid);
2008-01-26 00:04:01 +01: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
$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
$object->info($rowid);
2008-01-26 00:04:01 +01:00
print '<table width="100%"><tr><td>';
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
llxFooter();
$db->close();