New: Use picto in tab title
This commit is contained in:
parent
093b88ad8d
commit
b174715f9b
@ -81,7 +81,7 @@ if ($user->rights->adherent->cotisation->creer && $_POST["action"] == 'cotisatio
|
|||||||
}
|
}
|
||||||
$cotisation=$_POST["cotisation"]; // Amount of subscription
|
$cotisation=$_POST["cotisation"]; // Amount of subscription
|
||||||
$label=$_POST["label"];
|
$label=$_POST["label"];
|
||||||
|
|
||||||
if (! $datecotisation)
|
if (! $datecotisation)
|
||||||
{
|
{
|
||||||
$errmsg=$langs->trans("BadDateFormat");
|
$errmsg=$langs->trans("BadDateFormat");
|
||||||
@ -91,7 +91,7 @@ if ($user->rights->adherent->cotisation->creer && $_POST["action"] == 'cotisatio
|
|||||||
{
|
{
|
||||||
$datesubend=dol_time_plus_duree(dol_time_plus_duree($datecotisation,$defaultdelay,$defaultdelayunit),-1,'d');
|
$datesubend=dol_time_plus_duree(dol_time_plus_duree($datecotisation,$defaultdelay,$defaultdelayunit),-1,'d');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Payment informations
|
// Payment informations
|
||||||
$accountid=$_POST["accountid"];
|
$accountid=$_POST["accountid"];
|
||||||
$operation=$_POST["operation"]; // Payment mode
|
$operation=$_POST["operation"]; // Payment mode
|
||||||
@ -186,7 +186,7 @@ $adho->fetch_optionals();
|
|||||||
*/
|
*/
|
||||||
$head = member_prepare_head($adh);
|
$head = member_prepare_head($adh);
|
||||||
|
|
||||||
dol_fiche_head($head, 'subscription', $langs->trans("Member"));
|
dol_fiche_head($head, 'subscription', $langs->trans("Member"), 0, 'user');
|
||||||
|
|
||||||
print '<form action="fiche.php" method="post">';
|
print '<form action="fiche.php" method="post">';
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
@ -433,13 +433,13 @@ if ($action == 'addsubscription' && $user->rights->adherent->cotisation->creer)
|
|||||||
print '<tr><td>'.$langs->trans("Label").'</td>';
|
print '<tr><td>'.$langs->trans("Label").'</td>';
|
||||||
print '<td><input name="label" type="text" size="32" value="'.$langs->trans("Subscription").' ';
|
print '<td><input name="label" type="text" size="32" value="'.$langs->trans("Subscription").' ';
|
||||||
print dol_print_date(($datefrom?$datefrom:time()),"%Y").'" ></td></tr>';
|
print dol_print_date(($datefrom?$datefrom:time()),"%Y").'" ></td></tr>';
|
||||||
|
|
||||||
// Bank account
|
// Bank account
|
||||||
if ($conf->banque->enabled && $conf->global->ADHERENT_BANK_USE)
|
if ($conf->banque->enabled && $conf->global->ADHERENT_BANK_USE)
|
||||||
{
|
{
|
||||||
// Title payments
|
// Title payments
|
||||||
print '<tr><td colspan="2"><b>'.$langs->trans("Payment").'</b></td></tr>';
|
print '<tr><td colspan="2"><b>'.$langs->trans("Payment").'</b></td></tr>';
|
||||||
|
|
||||||
// Bank account
|
// Bank account
|
||||||
print '<tr><td>'.$langs->trans("FinancialAccount").'</td><td>';
|
print '<tr><td>'.$langs->trans("FinancialAccount").'</td><td>';
|
||||||
$html->select_comptes($_POST["accountid"],'accountid',0,'',1);
|
$html->select_comptes($_POST["accountid"],'accountid',0,'',1);
|
||||||
@ -449,17 +449,17 @@ if ($action == 'addsubscription' && $user->rights->adherent->cotisation->creer)
|
|||||||
print '<tr><td>'.$langs->trans("PaymentMode").'</td><td>';
|
print '<tr><td>'.$langs->trans("PaymentMode").'</td><td>';
|
||||||
$html->select_types_paiements($_POST["operation"],'operation');
|
$html->select_types_paiements($_POST["operation"],'operation');
|
||||||
print "</td></tr>\n";
|
print "</td></tr>\n";
|
||||||
|
|
||||||
print '<tr><td>'.$langs->trans('Numero');
|
print '<tr><td>'.$langs->trans('Numero');
|
||||||
print ' <em>('.$langs->trans("ChequeOrTransferNumber").')</em>';
|
print ' <em>('.$langs->trans("ChequeOrTransferNumber").')</em>';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td><input name="num_chq" type="text" size="8" value="'.(empty($_POST['num_chq'])?'':$_POST['num_chq']).'"></td></tr>';
|
print '<td><input name="num_chq" type="text" size="8" value="'.(empty($_POST['num_chq'])?'':$_POST['num_chq']).'"></td></tr>';
|
||||||
|
|
||||||
print '<tr><td>'.$langs->trans('CheckTransmitter');
|
print '<tr><td>'.$langs->trans('CheckTransmitter');
|
||||||
print ' <em>('.$langs->trans("ChequeMaker").')</em>';
|
print ' <em>('.$langs->trans("ChequeMaker").')</em>';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td><input name="chqemetteur" size="32" type="text" value="'.(empty($_POST['chqemetteur'])?$facture->client->nom:$_POST['chqemetteur']).'"></td></tr>';
|
print '<td><input name="chqemetteur" size="32" type="text" value="'.(empty($_POST['chqemetteur'])?$facture->client->nom:$_POST['chqemetteur']).'"></td></tr>';
|
||||||
|
|
||||||
print '<tr><td>'.$langs->trans('Bank');
|
print '<tr><td>'.$langs->trans('Bank');
|
||||||
print ' <em>('.$langs->trans("ChequeBank").')</em>';
|
print ' <em>('.$langs->trans("ChequeBank").')</em>';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|||||||
@ -651,7 +651,7 @@ if ($action == 'edit')
|
|||||||
*/
|
*/
|
||||||
$head = member_prepare_head($adh);
|
$head = member_prepare_head($adh);
|
||||||
|
|
||||||
dol_fiche_head($head, 'general', $langs->trans("Member"));
|
dol_fiche_head($head, 'general', $langs->trans("Member"), 0, 'user');
|
||||||
|
|
||||||
$rowspan=15;
|
$rowspan=15;
|
||||||
$rowspan+=sizeof($adho->attribute_label);
|
$rowspan+=sizeof($adho->attribute_label);
|
||||||
@ -947,7 +947,7 @@ if ($rowid && $action != 'edit')
|
|||||||
*/
|
*/
|
||||||
$head = member_prepare_head($adh);
|
$head = member_prepare_head($adh);
|
||||||
|
|
||||||
dol_fiche_head($head, 'general', $langs->trans("Member"));
|
dol_fiche_head($head, 'general', $langs->trans("Member"), 0, 'user');
|
||||||
|
|
||||||
if ($msg) print '<div class="error">'.$msg.'</div>';
|
if ($msg) print '<div class="error">'.$msg.'</div>';
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2005-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2005-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2005-2006 Regis Houssin <regis@dolibarr.fr>
|
* Copyright (C) 2005-2006 Regis Houssin <regis@dolibarr.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -18,11 +18,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/adherents/info.php
|
* \file htdocs/adherents/info.php
|
||||||
\ingroup member
|
* \ingroup member
|
||||||
\brief Page des informations d'un adherent
|
* \brief Page des informations d'un adherent
|
||||||
\version $Id$
|
* \version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
require_once(DOL_DOCUMENT_ROOT."/lib/functions2.lib.php");
|
require_once(DOL_DOCUMENT_ROOT."/lib/functions2.lib.php");
|
||||||
@ -55,7 +55,7 @@ $adh->info($_GET["id"]);
|
|||||||
*/
|
*/
|
||||||
$head = member_prepare_head($adh);
|
$head = member_prepare_head($adh);
|
||||||
|
|
||||||
dol_fiche_head($head, 'info', $langs->trans("Member"));
|
dol_fiche_head($head, 'info', $langs->trans("Member"), 0, 'user');
|
||||||
|
|
||||||
|
|
||||||
print '<table width="100%"><tr><td>';
|
print '<table width="100%"><tr><td>';
|
||||||
|
|||||||
@ -80,7 +80,7 @@ if (! $result)
|
|||||||
*/
|
*/
|
||||||
$head = member_prepare_head($adh);
|
$head = member_prepare_head($adh);
|
||||||
|
|
||||||
dol_fiche_head($head, 'ldap', $langs->trans("Member"));
|
dol_fiche_head($head, 'ldap', $langs->trans("Member"), 0, 'user');
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -129,7 +129,7 @@ $langs->load("admin");
|
|||||||
// LDAP DN
|
// LDAP DN
|
||||||
print '<tr><td>LDAP '.$langs->trans("LDAPMemberDn").'</td><td class="valeur">'.$conf->global->LDAP_MEMBER_DN."</td></tr>\n";
|
print '<tr><td>LDAP '.$langs->trans("LDAPMemberDn").'</td><td class="valeur">'.$conf->global->LDAP_MEMBER_DN."</td></tr>\n";
|
||||||
|
|
||||||
// LDAP Clé
|
// LDAP Cl<EFBFBD>
|
||||||
print '<tr><td>LDAP '.$langs->trans("LDAPNamingAttribute").'</td><td class="valeur">'.$conf->global->LDAP_KEY_MEMBERS."</td></tr>\n";
|
print '<tr><td>LDAP '.$langs->trans("LDAPNamingAttribute").'</td><td class="valeur">'.$conf->global->LDAP_KEY_MEMBERS."</td></tr>\n";
|
||||||
|
|
||||||
// LDAP Server
|
// LDAP Server
|
||||||
@ -173,7 +173,7 @@ if ($result > 0)
|
|||||||
{
|
{
|
||||||
if (! is_array($records))
|
if (! is_array($records))
|
||||||
{
|
{
|
||||||
print '<tr '.$bc[false].'><td colspan="2"><font class="error">'.$langs->trans("ErrorFailedToReadLDAP").'</font></td></tr>';
|
print '<tr '.$bc[false].'><td colspan="2"><font class="error">'.$langs->trans("ErrorFailedToReadLDAP").'</font></td></tr>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -50,7 +50,7 @@ $adh->fetch($id);
|
|||||||
if ($_POST["action"] == 'update' && $user->rights->adherent->creer && ! $_POST["cancel"])
|
if ($_POST["action"] == 'update' && $user->rights->adherent->creer && ! $_POST["cancel"])
|
||||||
{
|
{
|
||||||
$db->begin();
|
$db->begin();
|
||||||
|
|
||||||
$res=$adh->update_note($_POST["note"],$user);
|
$res=$adh->update_note($_POST["note"],$user);
|
||||||
if ($res < 0)
|
if ($res < 0)
|
||||||
{
|
{
|
||||||
@ -76,14 +76,14 @@ $html = new Form($db);
|
|||||||
if ($id)
|
if ($id)
|
||||||
{
|
{
|
||||||
$head = member_prepare_head($adh);
|
$head = member_prepare_head($adh);
|
||||||
|
|
||||||
dol_fiche_head($head, 'note', $langs->trans("Member"));
|
dol_fiche_head($head, 'note', $langs->trans("Member"), 0, 'user');
|
||||||
|
|
||||||
if ($msg) print '<div class="error">'.$msg.'</div>';
|
if ($msg) print '<div class="error">'.$msg.'</div>';
|
||||||
|
|
||||||
print "<form method=\"post\" action=\"note.php\">";
|
print "<form method=\"post\" action=\"note.php\">";
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
|
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
|
|
||||||
// Reference
|
// Reference
|
||||||
@ -140,7 +140,7 @@ if ($id)
|
|||||||
print "</table>";
|
print "</table>";
|
||||||
print "</form>\n";
|
print "</form>\n";
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -258,7 +258,7 @@ if ($rowid > 0)
|
|||||||
$head[$h][2] = 'card';
|
$head[$h][2] = 'card';
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
dol_fiche_head($head, 'card', $langs->trans("MemberType"));
|
dol_fiche_head($head, 'card', $langs->trans("MemberType"), 0, 'group');
|
||||||
|
|
||||||
|
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
@ -330,7 +330,7 @@ if ($rowid > 0)
|
|||||||
$head[$h][2] = 'card';
|
$head[$h][2] = 'card';
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
dol_fiche_head($head, 'card', $langs->trans("MemberType"));
|
dol_fiche_head($head, 'card', $langs->trans("MemberType"), 0, 'group');
|
||||||
|
|
||||||
|
|
||||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'?rowid='.$rowid.'">';
|
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'?rowid='.$rowid.'">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user