::use 'design.mtt'::

::_("Contact informations")::

::member.firstName:: ::member.lastName:: ::if member.firstName2!=null && member.lastName2!=null:: & ::member.firstName2:: ::member.lastName2:: ::end::
$$nullSafe(::member.address1::)
$$nullSafe(::member.address2::)
$$nullSafe(::member.zipCode::) $$nullSafe(::member.city::)

::if member.phone!=null:: ::_("Téléphone"):: : ::member.phone::
::end:: ::if member.email!=null:: ::_("E-mail"):: : ::member.email::
::end:: ::if member.email2!=null:: ::_("E-mail"):: : ::member.email2::
::end::

::_("Last login"):: : ::if member.ldate!=null:: ::member.ldate.toString():: ::else:: ::_("This member never logged in"):: ::end::
::_("Registred since"):: : ::if member.cdate!=null:: ::member.cdate.toString():: ::else:: ??? ::end::
::if member.pass==""::

::_("This member has not set a password")::
::end::

$$edit(::_("Edit")::,/member/edit/::member.id::) $$delete(::_("Remove from group")::,/member/delete/::member.id::?token=::token::) ::_("Put on waiting list"):: ::_("Received messages"):: ::if !member.isFullyRegistred():: ::_("Send an invitation"):: ::end::

::_("Log in as this member")::

::if user._amap.hasMembership()::

::_("Membership fee")::

::if userAmap.hasValidMembership():: $$bool(true) ::_("Membership up to date"):: ::else:: $$bool(false) ::_("Membership to renew"):: ::end:: ::_("for the period||full sentence : Membership up to date for the period 2017-2018"):: ::user._amap.getPeriodName(null)::
::_("Manage membership fees")::
::end::

::_("Current orders")::

::set o = userContracts:: ::if o.constOrders.length>0::

::_("CSA contracts")::

::foreach p o.constOrders:: ::end::
::_("Qty||short version for quantity"):: ::_("Product"):: ::_("Price"):: ::_("Contract")::
::raw p.smartQt:: ::p.productName:: ::if p.userId2 != null::
::_("Order alternated with"):: ::if member.id == p.userId:: ::p.userName2:: ::else:: ::p.userName:: ::end:: ::end::
::p.subTotal:: ::currency():: ::p.contractName::
::end:: ::if count(o.varOrders)>0:: ::foreach d o.varOrders.keys()::

::__("Order for ::date::",{date:d})::

::set total = 0:: ::foreach p o.varOrders.get(d):: ::end::
::_("Qty||short version for quantity"):: ::_("Product"):: ::_("U.P||short version of unit price"):: ::_("Sub-total"):: ::_("Fees"):: ::_("Total"):: ::_("Contract")::
::raw p.smartQt:: ::p.productName:: ::p.productPrice:: ::currency():: ::p.subTotal:: ::currency():: ::if p.percentageValue!=null:: ::formatNum(p.fees):: ::currency():: ::end:: ::formatNum(p.total):: ::currency():: ::set total = total + p.total:: ::p.contractName::
::_("TOTAL"):: ::formatNum(total):: ::currency()::
::end:: ::end::
::_("Balance"):: : ::if userAmap.balance<0:: ::set color = "C00":: ::else:: ::set color = "0C0":: ::end:: ::userAmap.balance:: ::currency():: ::_("Payments details")::

::_("Rights")::

::end::