showSuccess.php 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <div class="content-add01">
  2. <div class="heading01"><h1>Adhérent : <?php echo $katao_member->getFullName() ?></h1></div>
  3. </div>
  4. <u>Historique de ses adhésions :</u>
  5. <a class="send_button_link" href="<?php /*echo url_for('@katao_member_sent_relance?id='.$userid)*/ ?>">Envoyer la relance</a>
  6. <a class="add_button_link" href="<?php echo url_for('@katao_member_adhesion_create?userid='.$userid) ?>">Ajouter une adhésion</a>
  7. <table class="admin-list">
  8. <thead>
  9. <tr>
  10. <th>Année</th>
  11. <th>Montant</th>
  12. <th>Moyen de paiement</th>
  13. <th>Nouvelle adhésion</th>
  14. <th>Actions</th>
  15. </tr>
  16. </thead>
  17. <tbody>
  18. <?php foreach($list_objet as $obj): ?>
  19. <tr>
  20. <td>
  21. <?php echo $obj->getYear('Y') ?>
  22. </td>
  23. <td>
  24. <?php echo $obj->getAmount()." €" ?>
  25. </td>
  26. <td>
  27. <?php echo KataoMemberAdhesionPeer::$HASH_TABLE['payment_kind'][$obj->getPaymentKind()] ?>
  28. <?php
  29. if($obj->getPaymentKind() == 2){
  30. echo "n° ".$obj->getCheckNo();
  31. }
  32. ?>
  33. </td>
  34. <td>
  35. <?php echo KataoMemberAdhesionPeer::$HASH_TABLE['type'][$obj->getType()] ?>
  36. </td>
  37. <td>
  38. <a href='<?php echo url_for('@katao_member_adhesion_edit?id='.$obj->getId().'&userid='.$userid) ?>'><?php echo image_tag('actions/edit.png') ?></a>
  39. <?php echo catalyz_link_to_image_tag('@katao_member_adhesion_delete?userid='.$userid.'&id='.$obj->getId(), 'actions/delete.png', array('title' => 'Supprimer', 'confirm' => 'Êtes-vous sûr de vouloir supprimer cette adhésion ?'), array('alt' => 'Supprimer')) ?>
  40. </td>
  41. </tr>
  42. <?php endforeach ?>
  43. </tbody>
  44. </table>
  45. <br />
  46. <u>Historique de ses noeuds :</u>
  47. <table class="admin-list">
  48. <tr>
  49. <th nowrap="nowrap">Début</th>
  50. <th nowrap="nowrap">Fin</th>
  51. <th nowrap="nowrap">Noeud</th>
  52. </tr>
  53. <?php foreach ($katao_member->getNodesHistory() as $history): ?>
  54. <tr valign="top">
  55. <td nowrap="nowrap"><?php echo $history['begin'] ?></td>
  56. <td nowrap="nowrap"><?php echo $history['end'] ?></td>
  57. <td nowrap="nowrap"><?php echo $history['node'] ?></td>
  58. </tr>
  59. <?php endforeach ?>
  60. </table>
  61. <br /><u>Liste de ses filleuls :</u>
  62. <?php $filleuls = $katao_member->getKataoMembersRelatedByKataoMemberId() ?>
  63. <?php if (0 == count($filleuls)): ?>
  64. <p><i>Aucun filleul.</i></p>
  65. <?php else: ?>
  66. <ul>
  67. <?php foreach ($filleuls as/*(KataoMember)*/ $filleul): ?>
  68. <li><?php echo link_to($filleul->getFullName(), '@katao_member_show?id=' . $filleul->getId()) ?></li>
  69. <?php endforeach ?>
  70. </ul>
  71. <?php endif ?>
  72. <?php if (0 < count($history_euro)): ?>
  73. <br /><u>Historique de ses transactions en € :</u>
  74. <table class="profile-list">
  75. <tr>
  76. <th nowrap="nowrap" width="1%">Date</th>
  77. <th>Nature</th>
  78. <th nowrap="nowrap" width="1%">Montant</th>
  79. <th nowrap="nowrap" width="1%">Solde</th>
  80. </tr>
  81. <?php $is_firt = true ?>
  82. <?php foreach ($history_euro as $history): ?>
  83. <tr valign="top">
  84. <td nowrap="nowrap" width="1%"><?php echo CatalyzDate::formatShort($history['date']) ?></td>
  85. <td><?php echo $history['summary'] ?></td>
  86. <td nowrap="nowrap" width="1%" style="text-align: right!important"><?php echo ('initial' != $history['type'])?Utils::formatCurrencyEuro($history['amount']):'' ?></td>
  87. <td nowrap="nowrap" width="1%" style="text-align: right!important"<?php echo $is_firt?' class="bold"':'' ?>><?php echo Utils::formatCurrencyEuro($history['account']) ?></td>
  88. </tr>
  89. <?php $is_firt = false ?>
  90. <?php endforeach ?>
  91. </table>
  92. <?php endif ?>
  93. <?php if (0 < count($history_sol)): ?>
  94. <br /><u>Historique de ses transactions en <?php echo wpConfig::getAdditionalCurrencyName() ?> :</u>
  95. <table class="profile-list">
  96. <tr>
  97. <th nowrap="nowrap" width="1%">Date</th>
  98. <th>Nature</th>
  99. <th nowrap="nowrap" width="1%">Montant</th>
  100. <th nowrap="nowrap" width="1%">Solde</th>
  101. </tr>
  102. <?php $is_firt = true ?>
  103. <?php foreach ($history_sol as $history): ?>
  104. <tr valign="top">
  105. <td nowrap="nowrap" width="1%"><?php echo CatalyzDate::formatShort($history['date']) ?></td>
  106. <td><?php echo $history['summary'] ?></td>
  107. <td nowrap="nowrap" width="1%" style="text-align: right!important"><?php echo ('initial' != $history['type'])?Utils::formatCurrencySol($history['amount']):'' ?></td>
  108. <td nowrap="nowrap" width="1%" style="text-align: right!important"<?php echo $is_firt?' class="bold"':'' ?>><?php echo Utils::formatCurrencySol($history['account']) ?></td>
  109. </tr>
  110. <?php $is_firt = false ?>
  111. <?php endforeach ?>
  112. </table>
  113. <?php endif ?>