| '.$langs->trans('Numero');
diff --git a/htdocs/adherents/fiche_subscription.php b/htdocs/adherents/subscription/card.php
similarity index 87%
rename from htdocs/adherents/fiche_subscription.php
rename to htdocs/adherents/subscription/card.php
index a0f9f09ff0b..fb762a24345 100644
--- a/htdocs/adherents/fiche_subscription.php
+++ b/htdocs/adherents/subscription/card.php
@@ -16,7 +16,7 @@
*/
/**
- * \file htdocs/adherents/fiche_subscription.php
+ * \file htdocs/adherents/subscription/card.php
* \ingroup member
* \brief Page to add/edit/remove a member subscription
*/
@@ -24,7 +24,7 @@
require '../main.inc.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/member.lib.php';
require_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent.class.php';
-require_once DOL_DOCUMENT_ROOT.'/adherents/class/cotisation.class.php';
+require_once DOL_DOCUMENT_ROOT.'/adherents/class/subscription.class.php';
require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
$langs->load("companies");
@@ -33,7 +33,7 @@ $langs->load("members");
$langs->load("users");
$adh = new Adherent($db);
-$object = new Cotisation($db);
+$object = new Subscription($db);
$errmsg='';
$action=GETPOST("action",'alpha');
@@ -109,7 +109,7 @@ if ($user->rights->adherent->cotisation->creer && $_REQUEST["action"] == 'update
{
$db->commit();
- header("Location: fiche_subscription.php?rowid=".$object->id);
+ header("Location: card.php?rowid=".$object->id);
exit;
}
else
@@ -172,28 +172,14 @@ if ($user->rights->adherent->cotisation->creer && $action == 'edit')
{
/********************************************
*
- * Fiche en mode edition
+ * Subscription card in edit mode
*
********************************************/
$object->fetch($rowid);
$result=$adh->fetch($object->fk_adherent);
- /*
- * Affichage onglets
- */
- $h = 0;
- $head = array();
-
- $head[$h][0] = DOL_URL_ROOT.'/adherents/fiche_subscription.php?rowid='.$object->id;
- $head[$h][1] = $langs->trans("SubscriptionCard");
- $head[$h][2] = 'general';
- $h++;
-
- $head[$h][0] = DOL_URL_ROOT.'/adherents/info_subscription.php?rowid='.$object->id;
- $head[$h][1] = $langs->trans("Info");
- $head[$h][2] = 'info';
- $h++;
+ $head = subscription_prepare_head($object);
print ' |