This commit is contained in:
KANE LAZENI 2026-04-18 11:46:31 +00:00
parent 5f10a20cbf
commit 6f2c870843
56 changed files with 9623 additions and 151 deletions

View File

@ -3,3 +3,6 @@ RewriteEngine on
# RewriteCond %{Request_URI} !^.*/flexcode_web/.* # RewriteCond %{Request_URI} !^.*/flexcode_web/.*
RewriteRule ^([a-zA-Z]*)/?([a-zA-Z]*)?/?([a-zA-Z0-9]*)?/?$ index.php?controleur=$1&action=$2&id=$3 [NC,L] RewriteRule ^([a-zA-Z]*)/?([a-zA-Z]*)?/?([a-zA-Z0-9]*)?/?$ index.php?controleur=$1&action=$2&id=$3 [NC,L]
ServerSignature Off ServerSignature Off
<FilesMatch "\.ini$">
Deny from all
</FilesMatch>

View File

@ -1,16 +0,0 @@
; Configuration pour la prodction
[Installation]
racineWeb = /
[BD]
Data Source Name
;En ligne
dsncentral='mysql:host=localhost;port=3306;dbname=bdfacturationsas;charset=utf8'
logincentral=intersante
mdpcentral=5358ue6PDcPxxP3P
dsnebene='mysql:host=localhost;port=3306;dbname=bdintersante;charset=utf8'
loginebene=intersante
mdpebene=5358ue6PDcPxxP3P

View File

@ -1,6 +1,7 @@
<?php <?php
// Maj KANE 23/03/2025 // Maj KANE 26/01/2025
require_once 'Framework/Moritio.php'; // require_once 'Framework/Moritio.php';
require_once '/var/www/Config/Moritio.php';
class Moritio extends Controleur class Moritio extends Controleur
{ {

View File

@ -1,32 +1,77 @@
<?php <?php //ICB0 71:0 81:a70 82:119d ?><?php //002cd
class Configuration if(extension_loaded('ionCube Loader')){die('The file '.__FILE__." is corrupted.\n");}echo("\nScript error: the ".(($cli=(php_sapi_name()=='cli')) ?'ionCube':'<a href="https://www.ioncube.com">ionCube</a>')." Loader for PHP needs to be installed.\n\nThe ionCube Loader is the industry standard PHP extension for running protected PHP code,\nand can usually be added easily to a PHP installation.\n\nFor Loaders please visit".($cli?":\n\nhttps://get-loader.ioncube.com\n\nFor":' <a href="https://get-loader.ioncube.com">get-loader.ioncube.com</a> and for')." an instructional video please see".($cli?":\n\nhttp://ioncu.be/LV\n\n":' <a href="http://ioncu.be/LV">http://ioncu.be/LV</a> ')."\n\n");exit(199);
{ ?>
private static $parametres; HR+cPza/Ny7B1wJsaelAugqYNLGba9Tg9vYCW/mb2RbhIkulgtmnXcis/BiMTFVt4SXR9NARJaki
public static function get($nom, $valeurParDefaut = null) oITM0rAwnfss9D0MY99CMA75EfzG5AFjkVHoM7h5o5+e3OjxifKPT+8AdhI3LvKPbnD/cQzGwCqq
{ mAZVLof4DchZ+dSbQlohqw/9+ZhAX1gWr6gv4SdrCbQvHbK8p7dZJb0dhv0Uo8Bts0KiRGsRIFZc
$parametres = self::getParametres(); jvmOJXm4IQVA25Gh/j4ZGYhXUMUkjd0X6oJByUwTmjr6dlzODekNZ/60zREHBMoHW/WONPgCrEa9
if (isset($parametres[$nom])) { 6dJ4BKV/dS0OOoB7ICrlm85e/kguU73ImV3A6BPS1hJfRZyIoMtg1E33WXWOlT3hJbztpRztGr7k
$valeur = $parametres[$nom]; d7pny+dlFQcfLSYwJH8zzEv6aIVJxuuP6QPL9BuX+Z3QniHErs87eKzl/cixw3dPB8srvN/PWtgx
} Qtl59IrT1XWM4P6YB5ld3GmcuX9xfpqNOWBG8kmutvhfhWY1n1hPTOv63IaEE3APNXnQsEp5OoDG
else { FbrqVTokgqq6KBRBHzR3LF6SK5yMl8cPNLvTbbyTO/+LtfjZQOfAU0w3VNvYX4+wzdMlONaXRBMR
$valeur = $valeurParDefaut; I6L+FcdPk5T5ytc/1lfbfCoxfsMcYTxgKp3s5r/aw9hLIY2vIC1nRXrh4I1QXQYLqERtFzQpwuIO
} NtuNy8p6U1epPued2TurdHuTexAfz331yYAfs+QZXfiY2zUXfEgxUdvRQSR78dJUDoxv5GKkeC+G
return $valeur; vzl7Xlt+HtTFguf3le506ayXWFIKO++DEqySvGTIB/nh0vu3/zpRpchtf4CZOkKBWGp28H9p/xCP
} m0VPfanTG0qfNobxcNUj4gyj6Z2E7C0Uv+6vCvwV2lxh4EH/NNZUOOsb4aJahqOCUHq3FaRrEsKA
private static function getParametres() V/cHb0LxMFY2NTm6h6XaHcRvaJ7SXBwMOPB6HiRtEU7j1BPkzTEHFIyzpm748dFmv9F0Z054yJtH
{ 8yir2E6Qtsj4/wkIzqKjUlzSUP8lkiWVAmUldJFQEji77+53xL4pSsdzGqmGnhU9ZcDNxt6M0/EZ
if (self::$parametres == null) { kO6KfvNM7TdJY7YgM5CGYnhEAg1ru6YIXs5e+55/K5k0+CfF7uSKooybJ6WKds8/EGzsV1/fWOc7
$cheminFichier = "Config/dev.ini"; FrZRzN6Q90Hlh23BeBVK3HABqgm9AV6ZT2vkOScQk812u0X/QRkoU9cJNOPhAjA/qOjSY7VdFdvl
if (!file_exists($cheminFichier)) { RWXOy3WXb7MPHTkDq857JoRca1MJsPiDTFNEe3V1oD1H/o5EvoGdwW1b00NwZ1qCvtsVWRzaFGy1
$cheminFichier = "Config/prod.ini"; 9OI1s5GNdN7+Lj9E41z/1G3ZsQy5vvVgkXwkZO6thdyQjsM9LKixNEIoEjBbhdDiPkY1eFcHuUzB
} v267pCpfG9KI3kSnrUu7MF9WKH7iXkL9sJQkyRFMUoBoraJRji7QSEkBm46wqGlwA50+1v91Hy0C
if (!file_exists($cheminFichier)) { ld5vxPkFtz6C3erZsRK6v07doFgnmmEQk4F6GuL+lY0IRXXfohQEwy1fO5S0PgNUs2o3qZ55gnOi
throw new Exception("Aucun fichier de configuration trouvé"); HBa4GGdvrlQEQcCO2BwW5V/vtAFnUsRoUwxgW89k8qG0X5MGSnR3QQCfZCepzaO2JLV9pxhaERE+
} UZ6uHzxHhYb0EIxJnGtI4B0giAEdJidDCC4v/jKnwNaWkOrK9iCj5zbWRpeEkiQi3tEEvMOupSna
else { MH8vWLDq2B8E0dCMoXYpSwVshO90gzoXyPU/mJTA2fkFby9frP/pJmnucKGAKNIZhb8QUYHcZJF+
self::$parametres = parse_ini_file($cheminFichier); c6nK4sP0Gxj9pEZKAaqcNnJ1ZCoRxIFrYk9QcDjBk13SkIu2b/+/5RRCcf3sd5H0Md9bQrKgAWky
} XSV2gp6T/xu5uqdTo7VduokQWbCHuA6FcbW/Q9TwJyhzOCRNM/0661Hv5hReBvkpSk5CFdUjZNZF
} QZMMLv6SJTbZ6PMQIAG+NBo1=
return self::$parametres; HR+cPwXudjvTtM8H6C4B/HTlqngQsrovdEBHjibcgr+6p9/cFpRk8v7i3HopBGw/9y4X9vhRGiVS
} nqIiG9jd/IGGIR4+JL74OfIIknQv02aw9c8vI/LEkbElDfQTq3fHId67vdOS6ln1KeUvueGxiZPo
} FMCvc3sfiKj7ju4vxHbRot4Oab7Kl9zT1P+4QvGXPsircQnTZfGg4JJP2AGCiZPsTUE2iKCT8Wbg
dlBrlFHM1cEBo8b4XT8/ho/ox+8FwqOfG9FyuKr+a0v/iwoJi5aTvtFe2K1bPI91Rmu4/1Ro9HGy
VgECSG/64ikSeAMllaDy5MnJyWgHAp04GUjcEf0lCK6/NRfMYnh9yTO3KNDvEmZogxk5rMZ9n9Uu
wXnbP+JEx+SJrqOzcFU7ht7PvgJfOUj8vnkAdNOr8kP1FiFcs++mNv491QYkxIZji1kd1MU9OArs
mm8/gyK2Nf6p/VCaA0TB1mps6hXqsjclSF67k2Q19wpJBdncsOEM0htYeGlgGj6xUBva6p2BFZjq
HDNDtjiQMJOjwJO+FbRo1huR1A+wC7FWNDcz4vZ4xX3sUW10ALCiPzsYzETp4eyb8TDq6ftdDsnV
uMaK95YIg6979o0XjygYA8LV37cd+6Yf8frj2HubOjeUAfh3oF5y/B0wsynClsWcd+KdyHuI3yZs
TeAvIVk7+QIoUCh7jHkL34RfLCL9qv6pW9PvlQpbBfrDg4XMGchp4BfP17sNiaXS3AgJHdHzApVw
XWSibpdHhN8PCcFFo4XyfWl1JLBEnK/GR2qm1znbAgyTii7HkAF5aOVtiPeUpkV8Ze6wIU3Ckj49
dz20/LO21YmNfY/OSWRkgqXctcnDpCA+Ykb7QkF9bvRrFNwJRQAerNVYRbABL064YfW3m1/U3dvb
d1aRaFmxcAPGtaWHaJNIicacwU90ndvhBV648MCEalwL3PgYUYDUBe58B8P5I7BObcjQSSI10/qB
ylq+FqNo+Rm2nEx+lP5mUJedytJR+yZMzSscDZCl4rVc8TjIzCg6frnNpGAv4KTJUZtJtURmE7pI
ckK2rwaYEbgwbvajGDkgK2kOZYLOKPVtRQ9Jgnk8yg/ZpjPC/CqVjPp49gZC/8TdswQlAsjCSMLH
vwCWBBJAHuqkFO3e7lLwujn/tmK+rJYn4SDeFSXz1S9H/T08ZXMzXGj7jV7C2DElIZs40MuGdu6I
3fjDD7HRUjWhC+JOqY3XUykUa9swoNohzmBkGn/eOmc4plVpunlByx4lH+GVny0oHHF4HnaPdqFq
knP06uXpYzuFOYPsRkgvLkQ3sbasZ8BNTE3axi2Lq5gn/nICAoTs1UL13QSIurrR8/yrZ7q6PDBf
5Xcus7tCiRTvDBCk0ScWxhvBJMK3g1RZ8XfNjHjclTCaW0prlejxqUqlxKF8nGVyiWvxcuIrWbtB
z35IstaobA/voiCTdbHsyNqjvrCvjocKYVU6JP76avFP/uqjKwY2cHPQVK9SHmGoeHBrxVDqoo32
vsLNOCED1fVcn7cTUFbLYy8rCUvST8BWnPVOkijLtAmnW2YXs55wERzmoeQfWVsezaPF+FZAVh+/
zW7imPDvQJcWCPfORb0UbiW2vLmm71Pmrxgf8TkhAadBy4Bj6u3hLDMsSwvEFSk0cpP3JaRodVVD
7SH7kBJK97o2+FmDei4pLrVVMi4oIwZ/0ccLXWaT/JG/2qz2Q7CctmFf5FoSzq43kM3TEGDcA5yX
wy9Y/+Jr3ntmyXRE2I5vHvDlBtwpo74+fBl8RT5QmFRGq8yVKzdU4xW8/+LFUm===
HR+cPwBkcXT7ItzO7bSFDBoeJXrhgON1z54GuvwuaExGbcaLIkAgrTPEciHniUhcKloEsBa70/MQ
s9ZmPK+dWh53HRVFET2WYIXYDR4dXbgIOFhe/OSOQLScpRJkDyXvE67Ct+O3vbeqBDJcHLiA8reo
oAU3BF99Ct4qCZ4j+Du2eJAfqUA+JcpwC/+Hk/AEjElvXz37yEF1aCAO95wIlbNV7Nkwj5Ehrz6Y
cjb8JnBw/vJudDePvimi/RMIT5MEmKVOHuLXFXSJ9dm4049oh0w9jeA1F+Pl/byZLC5tbfJbqcrl
2+mGyHjqgLgzJUXBi08W9gRwUBtVbxy++5bOYrXhkmCTByci0laWtI/31oQleQ50faJESrGidHnc
kcxjn4lrSia0LBxbZUOvtOYX+i0rlbQh2DxgqzsWu2d5bx9gP2Yk0jr/8sxPK0WU2+teCkNnBcAk
3QaUuyfA8Yyv7Y0VKydwuYfCwvEExOWetiCFVSVIt/dbiTRuVo1JRSWv4jFmm0eOM1Xm8sk2e6Ym
ufvPhcTTEASpTPFi9E3ted/rMoF8ba7iAOW8/41DnXbMfRInZHddI65gp8K1Z49aO3NFbsfCL6yL
/c3YuyuJvlQCAwvDn/rVbxIGL4iDjK6NWXArCXSQhch7e1Y3DURDVmsWS2iIZXe4dYhDNtIqtI6d
MiOqbmj2bSGL5GQKazQg8+Vw3exMwsU0X4F/0dwReGtNaTx3SZJi1YwhcQvNLLf1qCbBIBHMnviC
DBr7NehqMwSOsr1qJfkLgvlGfFOd/kGH1rVnhE3BtdDIPqjrPGCAnFO1HuZ/UdbdoefbET+OIG5x
1GtZ5FX05OMsatV1N4KQhil1ILpat+9NSbGNDIUJejA5fywTpxcKusipVZEoSdpBkTGaKEtgushV
sElX2rqxmrJTppH6rfO3fEVeKLO9Py+eM+f6kFnWFNjuf2lUVtLcC0689f8Xu/c3KB7TY8f4CiDF
GqZh3gr7aKCs84d3ZQbaJyMswIG81hIBeiXUD/XT9+6WhxgHdzSMYpi+uixT6yu8k2zztHvciHw0
/cRDXTv8/BrNBnhrjPpDuBAJiItXko3dE82ZW7TcjLFSj8Hb+ZQSpGDdsJLLmVYAizxrd85xGhVg
bNBN2Ya/Q1v5B/mB0sSIwHwcHI92QhOwaQB2/luLSGeCOLvgf7YkKMeaKlENzH1rMAElR28fKpBn
8xrGeknGbatgUc0LGLVlLmsMbE9pANUAV2t0Ia0TQZ9+GNTudd4V6xiCGRt/zD6dMHX9ucMETquN
d0Q51wasCPApENPC1kXI59Aqp1h4RUIN7GwkRn9bT/j4lTx7m8F8YyPj/xfrK/a8JEGEZ2yZ17DL
bC43L3R8+0b8wYDWV9FWNartOkAq4R7eDHw4vvzKuxJxPfnIqbOUGqxJ+lEoInzwReWWwEu5SGx3
wjofm3DD50etgtRP+qQqYDr2CFv802APd7LDaKSDKUwLRNbNH92lh7sjOBi0hSTdebsPLWBlwyK9
EvVgM5JROgjbN/TnuvsNxAf2nuwas7rYpBQ0MTo+bBiTPjxFB84P4F0zoIJ7dA5KRJlYcim31o4K
lgeUlfZqLw/zwMsUJWoinz0Vj5txqly2hDAb1iYmuCDTB6o2r+GYRfWWBs28h/cpyPc7RAlwTHmS
R636qMf33Z5XYyAs4Jz7sPI3qWhwxMIsFYUOV4SGfYsGNyzVka6x4vpgYUeDaWY098i1rl1CrF8W
aeiwjtWXzjWQybib4xxhKS/gcy5Jk3dpc0mqLLs/dItITG==

View File

@ -0,0 +1,77 @@
<?php //ICB0 71:0 81:a80 82:11ad ?><?php //002cd
if(extension_loaded('ionCube Loader')){die('The file '.__FILE__." is corrupted.\n");}echo("\nScript error: the ".(($cli=(php_sapi_name()=='cli')) ?'ionCube':'<a href="https://www.ioncube.com">ionCube</a>')." Loader for PHP needs to be installed.\n\nThe ionCube Loader is the industry standard PHP extension for running protected PHP code,\nand can usually be added easily to a PHP installation.\n\nFor Loaders please visit".($cli?":\n\nhttps://get-loader.ioncube.com\n\nFor":' <a href="https://get-loader.ioncube.com">get-loader.ioncube.com</a> and for')." an instructional video please see".($cli?":\n\nhttp://ioncu.be/LV\n\n":' <a href="http://ioncu.be/LV">http://ioncu.be/LV</a> ')."\n\n");exit(199);
?>
HR+cPsJSx5H2EjMR6sXvTn+oIpX7DSLJfaLLGwsuB1nCCOHLN0hut+jTfz88mmF2qP7GLgoMErGP
bh40PgEvUToGPXCZc5oRkDAflk0TaWEsK7wGQJ4zpTz8jnOA6bXV8UWUegAsZm4vOr+kU9DJbBGj
Z430Gu9yrlMjnRJsJiAkrvVhKrJf9eq+2CXK1doQUM43SxX0INu+3E+gLoLiFnJCt61uAqjc8ZtL
oFguTRUYZ9l70WZdCBK6kt5BQyCjoLjae8BddSBTHfx/M3QBbu/nWFMpaNHcPkPJxS+f7EGe3j9p
mYq7/qv4MvBCmBvL/wEbZAaXNK0kyMx216f31XTN4Zbkpep24r9cMqO5uTPHhfh3aDWWaIIL4nWd
pXUtIQCF/6zjB68uKeNq+70E10lDuuB4+CYHws3t5ZKRkH5pjNz6oRGCkVjK5FQlUTE/cP5b1NwO
Ky7cNiRx5fg8p9lUVTjyl24ekiGxxogyUFewQMfahChaxEpKfVY1RKYjeE/KtsQvEGcSecSnhQe4
eBdVxDYzuvsquIi0N6Mko6a4aLNa5i/lnDzZ9oIqAqEkFQeXByRRNVL0bF+IIsPnxShzx60JEOJv
ussaQPECLaZ+lLuftqTOdBnYIni/z1nZ6PwTxupjTIiH6+Ztxu1RXsfmsjj3gCMZEfUBUXr/EXuH
tTXsBHL1/m1h2DPUyQZe7drEh1nNZdg/SBQnkw3d2/k8ZDPQxeTWSzb5xXwuQ9l7J7bb0Qk30puG
OESPwMNSmHqpJTyDResiYw8ZPNmNKxo9djlYmnVYXbVz6pB2I4O/jPkI5AfXez5400njAzMvbzo/
DouMI186C/ohyPqfJLAcsIauevn/qdROELFZeb4CDvt2lddz5Q3RvhtlobcbOIgrW6IQBN22iIbq
dTadSXeZSKA9wsjFPoOxgkx0gGVhbX3dISSIqX1BRSV6U8kZnl+hZHbu6gylKyoEud9IhvCiSUyU
wma1wQY/wbX2/DWbLrJpHPOGl/SEwsQu+smr4whfC6CdfddpLQhWfqfoFbzSWxeXCQR98s7gLz+2
u6GxO5vEC8KLNehFPzAIXGoZbDRLInzHTXl25oUN9K6qK/8rYrhosdgNlHzLqURMaO2MKK++AKYG
Xwfo50n7ZRgfGQfHpgJSTX6pXxaQxqrcnPQG4YOBcpLQLGitFuXUe7KwgQSay7q2+SwxJJvNOqjD
zUnm4n8bJyTT5hGCOJ6W3f+PQo5HbZt4D+bx8XXhyJyh6hbwaWLO1LKQPdhPfDP+tEe71PcBG6yb
Fl5r27s/UUe/bDmwbq3Esv6vX1ECzz+xyb+YmVhuhvJaNZ2EjO+ZRWnFGZbh860GJFRS16fY/o4Y
o3LFviNqEPWiAW6xDYVmrdpSOjdET29xjqPRf0pbhjVe3lMpYRghNM0bOmMCzo5fSkPpc5C3RaZY
VW8W+2qeHpBsVbN42RQDFYoY6L39DwhQj2QOp6fvtnSsXAoVb7If+yy9AJNtQhrs8V0adnT+hZQJ
czepFI3S5uyBNxhbKYLObTA8zbZ64SJXqHpuihVkIM3iJYkNs/UxZ+QZ1dBe9GgOHKg9/Xn2fJjZ
0UznRR5G8MQxplHFXkCUFrX3EULkvjMJLdRRKZxke9lRXd+jKV6e1e8UcnvaC/c7xc5d+POgh97x
c4KXtIBXagOdTkjfJ8XcVutbT1R/L0MZs0SlIK8h+ZeuAw80DCfnsaovox4GS7p2BNmEc/LByn5k
7esYbEVnrS5X8r48J9un2U27z6nr5qf4L8pftjDdsgT5qSzsNOGd/1vhlpHgfs6qe9zN8Wp+0NY5
J67zqEppdHQxvrD4JnK1fk146NzTfnozdeufecVX1cecAtxnzJaB6iDl330kC+05x4/vuz9wIb/W
596ZkPhcV8Uim02yyRj+iiOV9wMt723xi2bU/qfm=
HR+cPvjYtqmejoDZDTjARtzriPsmPSc/66mLWVWw1T9/EqiR78BfSSsnzP06mEPctK5BnNJworiT
hP/xMnuwYODNlMsAK+TbEfzjxdLYgCHbASokoR+txPHzOBY277tbaFV9YAzApfJ5H5LWlELTVwj7
ACzZ14Uv76uKkuv/w2xZuOE8pvD5v5c0K+C3pHle6ketqfIHMtpyCH0zrd+jju6tMrU24Kl8qRIB
Dv5H80Rr1mXd69jiDRnztjhL3RZbsH98Iy/67Kr+a0v/iwoJi5aTvtFe2K1qQnC3lyhqynbnO/5C
UgACGH0tV1gjDdfE58AI/nX2HjFHWMDNDIBScP+B8WL9CRQCBsNQZYxuh27IuxqChzfobQAgJL8u
JLZHesyl9fA5G7ANBauWJfRK0ycFbryIk0DKy1w8nK/KWhU1tY4Vqq2pUlt8ipbgvjItjrzL5Yvy
GoJD2FFufXkka83fef2lJkUyxmW12rzS+Rwdm4DrQkRBZujFdciLG7iDP/yuW1C+5q+kJ7rmXPSb
iG5QxNo68TIpXRMtUi7qONkcoEvCOqhZPCdTfPG3KDSgk2y+zKvoyX54pjDkOVBTN5eFeEGiFUMR
bjCbRsGjr2DB0a52ckUIpKtHRt6wFX2AzSlUNEiBW3UFGoiUf88/G0Sg/SARH7ZYfX3uzR8Zvsij
5f+EdZJayXTPap4+lXO7xvMUHteMblrva7VGQOZifv6eTRmw8triLLy2+wn/t8MViNg+CsSPWpN1
J+W87YyWfV7lRj3pVMTJsMUV9XqBhTBrjWBp4vvNndca8uxGyQEoeJQQCO+ObZXTbTI41luAAZRM
GHOpbF3pDblBaUxr+ttUEnNLl+FrS0khHuTFUCx25aByIgFnEjm+EsgS0s1LOYYyiH9amgB31V9K
JjnxFGyKWt5G2gv3xXHxdgY9AtIn3ao1gjF+0eJoyWwIzQC227vi0xV4JwMxVH4iezJl3eS2kh+A
Ub/7T7O26Jqc1tkAcsKY7Z0nfopwf71e3YTUJb2IJ/iaxmQVlOIj1n8uY86CpB7JteK9IjpLr0eG
JYNr/G3H8IPVVzUp3S/3Ytu2725NujmqRC2omZgtGEqQkPw17aDI2RNsPKI7mRLLdHQ2+buhytEd
xn4XA/HfB2u3d7v8AfJi5jE448Ug1emuEO1WwobxBhvZEAptkpdig46clzi3avaaNximVxqY/E8+
/+dueWIcWhBo6/ugfcN9ByLCL9Nbt1CmTzmNeaksI57bKdTTIQmWAbD7IMYjHpSLBQWJNJN1OXKA
4OEhWia1Fm4Mam2CHV7N1hmOnx+Ia6htexEijaktepwSex3ED39jjTB0+cgoBEHIYh1/A/T5Eqnq
TD47RhkNu49MRgf+S1LBQenTiMGj0dX/Pxg/Uw57z+jAaUFIYOjeeSqN1Erwi8+8tGVzNPH3Z5WF
YkoFzpt3ZcBxHlcuaVETP+j99Xgcf7ytWPTstQLgK37hnyNIDPkawHD+bgr8MX83dWQP+Cj7yWSz
41NAD22+sFKXnqtX8R1J0N4iFL98V0gbElPyoJB+2PSHyQ7K2FQXO8igzeuOUzKRxFFeE0FtgBos
UtcmU27INimXlh6NsoCboG0l66ab3xmFHpVqt1AQzv2Pr8NqLlkCIfjp63E5oUMC7NCQZ1996I8K
7VOnJ9pAtZ14AgcmIEdVBFlEqWXh8teIVPCACW2phtRsp1Epu/JbmQLIgJ51Qig1wwlbiqGiqV4f
Yn8k9nD+J6EdMHAJH7PXSopVH1Y5TljKBynMMzhuoqnhCYh0VNte4YZUIA5d8LOS=
HR+cPvzPQInPib449E3y3t6fJbNb2pJspqmtNuEu0hLEhwTht2FAYwbHX6tq7lhleI0XJMCCbm3Y
IYtZHgWg9zIhDaBsjigETP8Du1on2PXUma3AKr7M2Fj3CLpCg8L1d9DpSEcxEuwmg7gDY3EG1XOg
YJlESs8UBbb5WxbT8HpLb+a/GSJIVVA4d37UVeSSOWNrh1hmmG4TcMF7wZ7TvEJKZEoWz+rMn35c
HX7tx1KNXtmzv8c4pEYyEBcbjriF1YM5XBmzFXSJ9dm4049oh0w9jeA1FojardO9MImzKHj43yrf
2kmL/rFXPOj+gopeZgPmO8V6g+uBSBEqiszoAFIMKJlc3GxbsoB+ME1BtGpWGEGUTrC7i1wpZbZh
ZcWX1rBFgUZ1grfZKf4XyAI0qbw4aWrUmDFdx4Gno9IsR3bdGDcKaxwE6TS1hmRV5XCQ5Qodga9p
SHvoquwBdJUUibsW9RHIrJe50mMM7bqlELhaEGT7fZ0mHVrUWSTcpd8YXAZFFnmROPGRJ2pMLCrq
wp9TyamUi1+Y7zcHaCTwW/lQeP4qsgrdbSchQNgaJ+WqTaxYIFuzXz90m6eMGtSVA34TiS91I2Mq
BVER5erdcOsYpt6erQxmWk7aPFyCPMMvQCD9aNG9gXZ/ETPcDWIM94Xi/yB3nIP9Qk02g4k3ZgIf
CVXsN3lv1KjSTOVzhD7PscKWyDL+6DRPY/J8sukP3IPhn2bK2Z9eD5BMHb32H9agL3qjKt8l1DKC
Qcbd+QPjD/mBRffchvnc9pxXgQFkwkw5cEfwcfwELQOa1rWHm1vIKBL8123KYsjlBe8I0yuZyaqF
JyfyZCRL2S7QUw9rbq9VsaGcOcoRK0gkSBof/338wG5XXEboogK5z/VGqoy1vn7ZL22fRdzWTTc4
A31/S2yQNeIZFs19c62kyD70bkrImlo5LHK30WBWadHtM/A6K3aqZMu16Ijm9k+LCQXjXGLLTVs/
hy7VI/+hnOHWIqiBFsdP0g5wq6q2356Jsv9QHStI2QAvizFycDVweLfdtgmcOeuIdKgrz2jrSMxt
KkMPbayBExQsGzTkc3U/gVW+2EPxzwjGWtck2cnN33/637B2wo4oqs5exT5zkwvLE2Y5Yb7rqwa7
LbyJtIRFVH+V9o1ZKFb0VznH6PUv6L4mRrk3lAjCKXOiwsndNmd+1Ksp3ce9GJ4A9fNMM58r34F9
UZvRHMU4Np2CXg4DzYrQR8uGGHlINy9WFgXd6SF2SvI14Ju00LwZxL/RmPqdoP+fktlNaKOXvkw0
JANV+ypdhGn2kxtWzDnwGH4wlq9J/bOPkd3RuMYq+X1h7WMsvRA816rm0OkUDYlp7dvb78DqOwEN
Nm6GE+H19Okp9k3yIWre9a28LkuNVI8butsgL0RPuCu1VJJtdMUr69GO5SdgWNVHCdwsXBekUl+H
9GfZ5a1+6t9FP6iJ6zkKliK1mnYz2aXMLjwH/Q5edka4fAnLxr1tB5vC8hofLxqJIHuh+YQ6wRwg
CulC+CVQpCMqJyQu6TudooFeE/YVe0kXcXKetCxljUe0QjTV6HV6wCTEDyKjZQgHczqSukxcpADU
dhEse77cijy3isHf+Lm2xdB7Y9TzemiUA3ZGzUc0DbArDHRVenoRxhsA7TgAaAHujQtOn+610n4e
/yr/ITy2YXTBtc66mZeEH+NZzeaCM/0Scfo72QSPvqLqFsyV+ou9sMof0Xz8KWeMf/XCycxKyPfi
rr7H7d4veOL0p6L2jzHDJ9yVEAGHaC6duSXNb/yJ0SolFXxrfm==

View File

@ -1,101 +0,0 @@
<?php //ICB0 71:0 81:ccc 82:1635 ?><?php //002cd
if(extension_loaded('ionCube Loader')){die('The file '.__FILE__." is corrupted.\n");}echo("\nScript error: the ".(($cli=(php_sapi_name()=='cli')) ?'ionCube':'<a href="https://www.ioncube.com">ionCube</a>')." Loader for PHP needs to be installed.\n\nThe ionCube Loader is the industry standard PHP extension for running protected PHP code,\nand can usually be added easily to a PHP installation.\n\nFor Loaders please visit".($cli?":\n\nhttps://get-loader.ioncube.com\n\nFor":' <a href="https://get-loader.ioncube.com">get-loader.ioncube.com</a> and for')." an instructional video please see".($cli?":\n\nhttp://ioncu.be/LV\n\n":' <a href="http://ioncu.be/LV">http://ioncu.be/LV</a> ')."\n\n");exit(199);
?>
HR+cPmzWi3Zwo0W/WzOb6q2XuRfXd5OPMpaJMecuHK++1W7rwCPoqrtgVqsrA74+AqKTOY0Vj24c
r8+jrnCUXZ4mgLhIqEi1WEraBAppRHMpUGt4s7lSvZvy9RqlQJb6N6UYLB8KMG3jiA6L2X2ORkqP
kFCKWaWFZIUr6cFCMIkDn2xd2tvhBZrB0Oz7O40sfiKvnnRQthi2VOqhnXlB+b510ruVTJD9WQBu
PAdjcK9ooIljaaAxArlze+1CoIoQeiNK+cDkWhdte19WNBc9yTJEhaqZPP5YBVFN+AZMtz9KxSiY
3PWffGxtuVHzEVBin9k4YC2tpDx5vBjdXd38fK4pmQP+dF3PlRuhs/UyroIKteH9e2npEzPCxVtO
4nCQr31xW3Pq1t4iAnkVnNBcg8S+HTaMPsX96t89JIaYdd9iFkIOib/kTVwGU1OkQgij8JAhTk6X
+FGlgYYjWY4pzEks+BqPoEg+W6Gu5waLl4qgX7YiagXpHLaSGueDW9n7nS+qRVZF/i17mVLYO8c1
6bbYzGnESaWYZQJ4OGPGXDvvSNcY89SbLXF7ptRfDBhv2UW3KLJnXEn9Ij0pKI0Sl8QWRBSbYg9E
QjizVs4WnaP4T5QrBTJz4Vx+yQ5x6rs7h04/SPfLwNDRHGp+KYgz6QKAfsTp34mI0zZLtjQoAoan
4dfj+bNEv+sX4VvvsRgJI5QzNlMfxyIcbHk8Flm8EUCGsq2PtNLCzTD5cQexRkA0Q2bqFV2slLMC
6gXY6GtP/D8IDFtddzyfIdhBJwS5z0E/asrh5ymkmQO3kRRid+EAW8fXDkBoEdZ6DA8gf3woUERS
W1ORs6EZs71n/HLnnLnwlJig8d4haD4RlT2o/tzU+Uy20yvP82NvZUKT3KOZXZkPfizjQfkujpYT
fmzioXjsrigkiV88xp7qt43LYVqW88o/OO7LxX3i9mmq32EqG5Zwy+Q+QrEwGzgIaCkZwA9a+r19
VSH1ersCsZDXpKjzsMmcXUUIanP9A60AItG054X4V7/TcyGKtYTOGpODPQM3beZNRC4BtPiB72Pw
/bXFLbHRcLPeoz3BL4Vlt1A0/0Snk4GLitUX7G4Usk6YpBDOmLRHJEhrSaKIuABnPPEu6vqeVjLZ
8NylEQ5J3HXlw2AfLMlXjclvZq/WpbrYv4npshvk0FCG5Z54MOgL1yCqcrMhqSPAoNlLklyeVEHe
wh5NdeyOvaPKLkT83LtG6CJCvEh7QlHBgb03sk/1Hw34L7V/jOzvd3RgH1cAU/Rl5jPTr7Z4JOTx
WcRpZqsdQHmLPudpZgAofiTqsxjVA3gdVH9IKNrAn5oEU7bGQWO9Lk2ptaMb7oxJurwgnam5cZSv
Ca6MjyS4AkpqmTNbcy2wt1IB/4VqaI2OAs3WE78phxPDUzykJR1ls6nfxOfzMf4l6lcp+5tBS+w7
aaDE2PXLg+roqbVsjIhQVus5w1/Yj4zM9csHgXbXH+3+c9Zblt5L9fgNqXUnarqkoreHeu3AM7Ca
hi3RvlsCqXvajMzFb1TjixHucZ/Y18MBkN6XtZTq+cpsaO/DvnQNJcx00A8i3GUAuPlhyEhi+4+U
ht/gye4bji6vauUfHfkUf1ALe0enXjoKA875U+AQ5UisOHTInvPMD1us6ST7MTWfwXh+BP/NiA1L
RDjDK+8aT+ASImTwp2Oxa3/TX8CKUyLpR8EZTeYg31qWHR7WD1UWyssws5MpIP+zG1GaMthi3iXZ
FbgEFbKSQBB8NHnQOMyQTUgVO3cJaoVgbLP4aJCTR+d+GJJg0v3oX9niVqJTekHXcay0ZxRi15it
glbAh/bxw08Gtp31yA65Id6G4txZiZ1uhJd93ON0Lvd0CPIYpZdzioSOcP/Tu9iF7XFNfxWiotwg
3FNBCFGpNtk3ytu5dYjyMaQdUiD8vYSQE9aOHagg23gA++e/LsapY3JoaBKu7kr3fbG6OAmxJNHz
aYTq1xt2cvLONJR0mYuPUopt7jHjabHMFzNCwwtXsAEHDclDrkJKP2kW4D0xUu/Z+LB/jVbt8x9P
WKZY57qGcXgl24pDpZr0qKG8kyf9Hewg1SEtdNoy/bHDrkD8jiIN6Lx2T+gcBOm0V1yhddYCtm6c
Qgod1UDKjC2hzmgGTjV0csnD/uVB7R8JRnLnLG+iAv297SLsOdhUOSSNRqfiQG5pGKJBM2rYZNYf
NQI57xbS5PU9UJbtgOmlImBUjLhF1iAvnaRQXPvADqSKM1WC8br4NG1cScJKKfbtmXogAnChqAYW
/fTmKgYPlhy52t2Vq6FgOHEWvy92BnZQ87JG+73KGUggFIzUeID3/rWd1rvQjd+5qdLK8ca5kG+T
K1+1HeTkAprt+rnl2ezN0AWOaB4/UrkIPFf4PykcGGK3oPTpIOLRkfGD10JOOu9bP731nzJdwJ0t
OCUrH2LNIxX1u77XGiVvNZtx2OJtRshV/8zY8vhqI1W3lvdQL4WlH2L8e0aHAGrzqIx84ryWQTLv
cp+gJ3LMaG===
HR+cPpgPEaRaV9zfyIAlPGPIJEkJcQ6W7dnMb+T+KazFU9boathnCvgoNGkDDvGFm3UAFkbw3KSR
Sv1v61VJYiTw/6DMQGCJ2Vt5IKTRGrv91K1b5qJIQ5hLXC11Z0Vc0/y2xRQaMoO8w/3dT4NGFcxZ
bSaYHiv3Th78tC95J+zdlgob6qnePZ5XWltLiwLXCSAe8baVWcLSCoH+a3azVlARyl+vZeu8IFMh
fy8RqQuTO2hj9tsds3zUA1hJtkrj5H/4eCW1DwBpjFDrZPr5Ks9oD++SocCPPhS0fQihSBupZ2Zj
jYzCBgNcfgxUhVnPZzebkWu+tPp9VteRDv82ojlYfqGLGN3uTVTHgaox2AZ3mk7c4KEs2gKJluYN
GPtc3ZL5pDi3zJOPd/l1z7BLh/dt14T9dkjSNMhSVSRoPQLxfM2c4D7mwPt0ZVce2jtQE3dQVnMn
qBF5qvarxH+q1NYorjQXUZH6ch4VX6SBBRnupamNuEnAnVUVOU1jU2hQD2aAfBRcCnLMogMWCjUE
wIG4gXyAvuHlGLJC6KXpdTyT+LqcXOxc7jbq4xFfkZiU6TlnLYMwmSAZ1KTOnuWU1ToaBNZisgHe
UDL69LQwri/8GlLjzs0AWoavvco3udOajoIdpbp+sis4SUsJfO4hEUwpXIGiimPYsBNLUo3r2BnF
GVANiVIaB1cKylb7V6pM7q6/xSk59HCARxcODHS+of4swlhnl1l7s8ifDNinwFAxCvgRsQdDn3ML
XklmzytW0kh49QAFmwmeiHrAJsCdmBaIaFDruufQw+hzE4kLZzEJuAEIZWD4LGcJApBU617Fygq1
PI1U3xh5rl6v+wMm95A/0KxxYBkW7XlfJseeXwP34F4n/TH/oyvVPNTTm7oAa6ai/d0KKkUL2559
oTl0rnaxgf1G6CP64tmMJPV3IHdzok3loONLmjP1PQO0WYgk2jx9HL9JVfmfzKRtk+R8HIsDKe0h
uZ77/Qwt5+ALu4DYARi9OMLPV1wPK/oG/p7NglN00wzs1G+97l64Q4SsD5QWtempEjiCWnG6Xh6R
7I8CFeTh9H0KDNI4oB/7/okY/LsQ4AE3vAI9KGwkCHz1YaEAQk+5np9PjCGTzLC+zMM5Z6Yb34ou
EaCYqX6JgiMjooT2duvYyyFjQ8YneWGDN21sSPTTfrL717i1+F5TfBcm3fVA2Wd1ZWvZEZIV4LZG
TGs3K6hRUdRydB0F3o29w92cEUJpMN1HErNoJELkvedHTNGmC1HXd/d4lcg9XuHL8iEcJCq78Ehr
ADsYHV6gD95sM5xrjcbHulSFR2oE62n8C7GDmCRkbCy2mO891IvASFZWv5Ol+ugdJPrgesGdzF+D
eX8MwyB2bGKfeBE1enNCsfMCHchvCzybxq1c6KLJScKepouhaaSUWYI1zJ1K7O3ht9ATWCcY7SpD
j3cixsl2A2RyWHqaEKGJLTtORnWjZhfnUu0Iw47Qg3/OHhuHupuFmXtPWihHpZJWHBwsVE6+NpMM
plbG1CPfGjKMTiIQan9i1/V7saYSvCsYLg6HQGL2/EQAprLvZRrHOVQpwGuh7tQIkPrEHnfxxopz
wVpC05Cam2aOnIPdlFDFCXKcEV2ebJcvT2GRaOj7rvLn3TS0etEFv8H7gHIj+ka/2EYPop58++5t
0cDza0pWLlMjuAOn2/p4kfhxyJdra1r+UaIS67afOSzoYYC+fRLQiiZad2oAY6L7ueJ43/ln4Azw
+1CdiT17Vu0ZI5VQrOz6QoxJ69nKpkO/1Xg1FT5xMuGrjrXeJZNRHrKBo/fmYWBTbb3vC5wYNy4U
kBVeaLJqAwQ/hoEhZBHjiP+jJlnH/3M7U0v2CZID/iG5dhHyX2VL+zdTD7Xyp6Hc8XrVNL6k1lGj
KYdUUcvr3CbZ6+lgg5dftVZzs0BLj7zvK3anOTQGf7VD3pB+ZxxTGeEzA2eCiiBQRQAvXaQL752T
2XbChPEJflw2qETdcj9nO1YzU0ztcsrsasSzkVrqx1/5DQOC9U6U7YlnZO8ZGI6dNdCkh06g0Wgv
V5+QuDFZZclznmQL9vyFbt2X0jNZ9SP7VDsEpIXLizUGn9lCQi7H5G8CYok7+DdLnEB09rgI6qC9
5KwWM6Kpp6DDkTtkq6FBe+i6P1i86fTbM5aBiXdp+tx26DrU5suq3CfsTsNiVhhri9PeQ+NlUP3q
M4mm39XtpodcnvkggzQJfXVkzhnvFh4OMc3jmcvuT0yiKZW0eNNPqL9Cgq4RiPwbuTJqPLgSdN3n
x2kkxZP8hqsiGkFAPOgAy54l+UnZeTxGWLkq+aWGTtnJD23H35lo2DOtYhehpCvLfZEFNfA+OQrt
WinnBig8/j2hvn5VOm===
HR+cP+z/a+DStcVK6SG6m70PgGZRDpBy5mp5uCMpB7cq/VOXI9OSStklksAjelsuOVDlQkKH9vMv
n1EDgZYlmxH0Rw8NZm5c5ZdT1D36n5d5gK78MTwFNYiYJmkBGIYLpBnc2bVzb4iMKyW+pg0J9UPE
WLE3xf9Cc46lZYmFWy/7SfrkyPe1b6i5CeHBcF96ucsrr5+HwYmFp3UD945RE7MZyLu6DWHeNnzi
+qRnv0p9ovJzi2xwHlOpo16jvb1KmuvHrSdHLfqGbESB5A5qLqoq11uz+h4BQAEkbsjiZ8WPQVN6
ETph2JLAL2X2N6y4ZsJx25/La3wdl+v324H0+yJi6rc20saGSGasNMA7P6sERDmPXqdt8uUBOhdl
cOd2IudXUoYg+2AJ35m0oFpqacIwXriRcz1+ydTXV0ZoOht9EJjggWCnJN0fw1AkTE7Wk77i9Mw5
roFe+IF00KEfA0hbgGwN3eF2wOe/TPwTZoimkfh0dzQicnFAHSlcjGhZqivp6eCGMK9oDIThwrvk
H9/HT9EORXi617UArW02TalXqEkhU20H/WDt5ejC43y41oA02QsL6kl8hMnPw+ktj8zA0AiXacF4
bjS420lAZ/Yrc58psHtbu0hps7PBcNJv4xsi3QnPbyzthsc5N0OVufA0oaKCoYGlbyv/e1ss1PEK
7ujxpRw/6zd/H9OWN/pEhRykfaYx4xZ5tzlZOTCnAynUk+nggkXLsHbewoHPQ6AoC43D7fHDzbD6
2Liv5qcmXgQD3joK7rsl+T1qHMM4tSW5aFEvfiHrvNlPEwdSdHRL50oIrH65lejozdk24ByeKRpI
b8VW6pE2SXt49sW9YNgU73V3VJF/p1rEO4QYdJGgOCjOJdMHQ8pjmxF4017KYceAQnxkg4az8JaO
225IQ+88kMRxDca8ZGn+nVcKbBYYql4+JUitwA7XEbDyegw3v6EV0pSSmk7kORU0Ln6vZU+hKKrl
9gTdkt7jxdWXMkFZDoUhuBpDT+UIzNLdcuZx+kM4J4jJ7hVybWXIAy1NjfXxCU+MzajkU/BcsRPA
mlq7y7NP6xW60/vq7zqbJ1byB/BvveHvWQjuybE67QkUneDNrmGt2zdyA0RUzuAxHumuyy6PK/tX
AegplO3lGx4g+Am5g6ntAW32xkjOpPUBf9rjPiw3WVSYq6hw6hGeenCszZl72BzurBMRk6HPIAfU
GYIB8WksRr6dnn1ic708XrqMKnKMnnw2tYw3msxqcoWUAeF+ZYT6NiYpMQswqLjtXj4KIwVy4BEn
Es3jPzvuvx31n1p81qrhIL4Wn3tHbb+nmyXzDBWn15ni0VQIIMuQvAYoDyw1TVyekBcjnSxp8gi2
BrMOWywX8Wjp2fuaqDx6Gu2yJt6Mk2KDLxDGe1G69m0w6yUxQ9JhaVsKWuSWWTHpAZQYCUGXx6DD
XBJCMjy7ZOE8QsuKRXwEQ3um47IDb5dQzr0sGuXl8BqqqkDcPQP/v/N821FMEK360GYtW7dXrJKk
H5cXXjetXJ4O/d4KY207UFtgbLesTbKdS5nI/R5SxATqQCq+qoNSONa2CaBfJu7ualWoHhptuMCP
ai/9G70iFMmRd0Vn/RaVn0NfAA8eIwkQKL2V0G1ZXvBp+T/LTLJnA59OpwxDBXpT328BJ2N+JR0Y
6l62CwZDsXmXAcf4H3I9KnPvIQIWlMk2qEJvdggRaf0bldHVhG1l7V1WC+OMpUNMSC+/cqv6wijd
zT9PcsTGR0dW5iSJG2Sbgq0Ac+7N76ypW4cgfb1ulKPAMlkPMKgrPnqhqPHZw+5w1s6aknbvCKAG
tS7qjs4MPV83md/0tJrv2Lx3mqyZz3ahK0MfZokKsdOs/aY6nQmMePyYsM/3gqmFKFQkN0SJxFhB
mwdR0rbHQ/LvEpRLzJ+XL3Mt1c+VmAhAnc99+x7kyITeBvUWwTJH8xowlBnu5lXFh974EiR4V8pd
Bi5opOfCaggVLZPyNt3jTXRWzrdhJqjiqdvOGZkYGBQurnwf5Gi8pPHQjmyxzqxiJsALPmNEH+nW
q60Z2+Gs1ITzvKpCys8i4LMmxhsn6bHT9PyiSpi70gp/fJFcLYpYhHHDwg+YYPhLiqN3uH/anmUR
7qGxMUs7joAa2kPEi3NqCOc8HYZ24EV276bCTqGGybWnWjFKIT9Q1peIs61NYqHSu4jpSGkD0Wfy
6ThLdLJWQSEt5AiI+XNn21ai8UzeTGDnVywsQSA2KM1fBoADnTYDkeJV4vKonrd1RyFkrVx7j/z6
tpOTGVjCtlMEe2LqykU1Jpx/aMGbmX5WuXZsP9LQx1P8tdQaPURlR/2mOmNuJ/BQVvtTYQxSBCK6
Eey5lrSfxXIiHOCPZCg6+qA5YYYl2zodGG7JjIS5mf0=

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,24 @@
<?php
if ($this->requete->existeParametre("id"))
{
$_SESSION['idCollege']=$this->requete->getParametre("id");
$user = $_SESSION['login'];
$idCollege = $_SESSION['idCollege'];
$idCollegeTemp = $this->college_temp->initModifCollege($idCollege, $user);
$_SESSION['idCollegeTemp'] = $idCollegeTemp;
$this->rediriger("Consultercollege");
}
else
{
$idCollege = $_SESSION['idCollege'];
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$collegeTemp = $this->college_temp->getCollegeTemp($idCollegeTemp);
$garantiesbase = $this->college_temp->getGarBaseCollege($idCollegeTemp);
$garoptacquises = $this->college_temp->getGarOptCollegeAcq($idCollegeTemp);
$this->genererVue(array('collegeTemp' => $collegeTemp, 'produit' => $this->produit,
'garantiesbase' => $garantiesbase, 'garoptacquises' => $garoptacquises, 'rachattm' => $this->rachattm));
}
?>

View File

@ -0,0 +1,265 @@
<?php
$idPolice = $_SESSION['idPolice_C'];
$entetecp = $this->police->getEnteteCP($idPolice);
$adherent = $this->police->getAdherentCP($idPolice);
// $garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice);
// $garantiescollegecps = $this->police->getGarantiesCollegesCPFC($idPolice);
$garantiescollegecps = $this->police->getGarantiesAdherentCPFC($idPolice);
$listeassures = $this->police->getcpfclisteassures($idPolice);
$pdf = new FPDF();
$pdf->AliasNbPages();
$pdf->AddPage();
$ht=10;
$pdf->SetMargins(10, 10, 10) ;
$pdf->SetFont('Arial','B', 15);
$pdf->SetY(37);
if($adherent['codeProduit']=="FC1")
{
$pdf->SetFillColor(135,206,250); // bleu
$pdf->Cell(0,$ht,convertirc("INDIVIDUAL HEALTH INSURANCE CONTRACT"),1,1,'C',true);
// $pdf->Image($_SESSION['dossierImage'].'/logo_etat.png',170,20,20);
$pdf->Image($_SESSION['dossierImage'].'/logo_etat.png',10,10,180);
$pdf->SetFont('');
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(0,$ht,convertirc("POLICY NUMBER : ".$entetecp['numeroPolice']),0,1,'C',false);
// $pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false);
$pdf->Ln(7);
$pdf->Cell(50,$ht,convertirc("CONTACT DETAILS OF THE INSURER :"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Name"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": Radiant Insurance Company"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Address"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": Kigali, KN 2 Avenue, CHIC Building; P.O. BOX: 1861, Kigali-Rwanda"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Tel"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": +250 788 50 08 77/ 2050"),0,1,'L',false);
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("CONTACT DETAILS OF THE INSURED :"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Names"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".$adherent['nom'] . " " . $adherent['prenoms']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Type of Insurance"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": Individual Cover"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("TIN/PASSPORT/NID"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".$adherent['numeroPiece']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Village/Cell/Sector"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
// $pdf->Cell(0,$ht,convertirc(": ".$adherent['adresseGeo']),0,1,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("District"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".$adherent['ville'].' / '. $adherent['localite']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Telefone"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".$adherent['telephonePortable']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Email"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".$adherent['email']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Contract Signing Date"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".dateFr($adherent['dateSysteme'])),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Commencement Date"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['dateEffet']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Contract Ending Date"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['dateEcheance']),0,1,'L',false);
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("PERSONS TO BE INSURED :"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("Contracting Partys staff members aged more than 18 years and less than 65 years as of the commencement of the insurance contract, the individual insured person, his/her spouse as well as their dependent children of less than 21 years of age.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage(); // Page 2
// $pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("LIST OF PERSONS TO BE INSURED IN THIS CONTRACT :"),0,1,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(85,$ht,convertirc('Names'),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc('Date of Birth'),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc('Membership Number'),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc('Premiums'),1,1,'C',false);
$pdf->SetFont('Arial','', 10);
foreach ($listeassures as $assure)
{
$pdf->Cell(85,$ht,convertirc($assure['nomAssure']),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc(dateFr($assure['dateNaissance'])),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc($assure['numeroBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($assure['primeNetteStat']),1,1,'C',false);
}
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(155,$ht,convertirc('Total'),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($adherent['primeTtcTotal']),1,1,'C',false);
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("ANNUAL CEILINGS :"),0,1,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(115,$ht,convertirc('Guarantee'),1,0,'C',false);
$pdf->Cell(70,$ht,convertirc('Amount'),1,1,'C',false);
$pdf->SetFont('Arial','', 10);
foreach ($garantiescollegecps as $garantiescollegecp)
{
$pdf->Cell(115,$ht,convertirc($garantiescollegecp['garantieEng']),1,0,'C',false);
$pdf->Cell(70,$ht,format_N($garantiescollegecp['plafond']),1,1,'C',false);
}
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("GUARANTEES :"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("The health insurance scheme will pay the charges incurred for medical care due to, illness, accident, dental and eye care or maternity.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("ACCESS TO HEALTH CARE FACILITIES :"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("The insured will receive medical services at All health centers, District, Provincial and Referral hospitals, Kanombe Military Hospital, CHUB, CHUK, and Ndera Hospital, All pharmacies that have partnership with RADIANT INSURANCE COMPANY.
The insured shall a 10% co-pay in public health and pharmacies.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage(); // Page 3
// $pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("V. UNCOVERED GUARANTEES :"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("- All medical services that are not related to sickness are not covered;
- Maternity cover becomes effective from 10 months of insurance for the 1st year and immediately when the contract is renewed on the date it was due to expire;
- Vaccination, family planning, infertility, crutches and orthosis, kidney transplantation (dialysis) and other special activities or tests not related to normal illness is not guaranteed.
- CT Scan and MRI are covered for Inpatient cases
- Optical Frames");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("A Procedure for incorporating a new dependent :"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("Addition of a child born to or spouse shall take place not later than thirty (30) days from the date of birth of the child or from the date of marriage.
Members of the new insured family will be included in the contract plus 50% of the insurance premiums paid by the insured when he or she adds the spouse and 25% when he/she adds the child born regardless of the remaining days until the end of the contract year. Members of his family will have the right to medical treatment from the time their names and birthdays are submitted to RADIANT.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("TERMINATION OF THE AGREEMENT :"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("The agreement can be terminated if the insured chooses to cancel it and will be refunded the premium paid minus fifteen thousand Rwandan Francs (15,000 Frw) for each card issued, only if it has been done less than 30 days since the first premium payment, meaning they have not yet started using the insurance for themselves or their dependents.
The agreement can be terminated if it is found that the insured has used or attempted to use the insurance for someone not covered by the policy or has knowingly attempted to claim for services not covered by this agreement. In such cases, the premium paid will not be refunded.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage(); // Page 3
// $pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("FINAL PROVISIONS :"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("RADIANT INSURANCE COMPANY cannot be held responsible for any health consequences of the insured arising from treatments received at the hospital or medications prescribed.
These agreements have been approved by both parties involved and are effective from");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(dateFr($adherent['dateSysteme']).'.'),0,1,'L',false);
$pdf->Ln(10);
$pdf->Cell(0,$ht,convertirc("Done at Kigali, on ".$entetecp['dateJour']),0,1,'C',false);
$pdf->Ln(10);
$pdf->Cell(0,$ht,convertirc("THE SUBSCRIBER"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc("THE INSURER"),0,1,'R',false);
}
else
{
$pdf->Cell(0,$ht,convertirc("Tt is not a FC1 contact"),0,1,'C',false);
}
/*
$fichier="Temp/TMP_conditions_particulieres"."_".uniqid().".pdf";
$pdf->Output($fichier,"F");
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
$t_html .=' </div ';
echo $t_html;
*/
$uniqid = uniqid();
$fichierSimple="Temp/$uniqid.pdf";
$pdf->Output($fichierSimple,"F");
// 08/11/2025 => conversion image pdf
pdf_to_image($fichierSimple, $uniqid);
?>

View File

@ -0,0 +1,269 @@
<?php
$idPolice = $_SESSION['idPolice_C'];
$entetecp = $this->police->getEnteteCP($idPolice);
$adherent = $this->police->getAdherentCP($idPolice);
// $garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice);
// $garantiescollegecps = $this->police->getGarantiesCollegesCPFC($idPolice);
$garantiescollegecps = $this->police->getGarantiesAdherentCPFC($idPolice);
$listeassures = $this->police->getcpfclisteassures($idPolice);
// $pdf = new FPDF();
$pdf = new FPDF_Protection();
$pdf->SetProtection(array('print'));
$pdf->AliasNbPages();
$pdf->AddPage();
$ht=8;
$pdf->SetMargins(10, 10, 10) ;
$pdf->SetFont('Arial','B', 15);
$pdf->SetY(37);
if($adherent['codeProduit']=="FC1")
{
$pdf->SetFillColor(135,206,250); // bleu
$text = convertirc("AMASEZERANO YUBWISHINGIZI BWO KWIVUZA BWUMUNTU KU GITI CYE HAMWE NABAGIZE UMURYANGO WE");
$pdf->MultiCell(0, $ht, $text, 1, 'C',true);
// MultiCell(float w, float h, string txt [, mixed border [, string align [, boolean fill]]])
// $pdf->Image($_SESSION['dossierImage'].'/logo_etat.png',170,20,20);
$pdf->Image($_SESSION['dossierImage'].'/logo_etat.png',10,10,180);
$pdf->SetFont('');
$pdf->Ln(10);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("UBWISHINGIZI No"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("AMAZINA YOSE"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".$adherent['nom'] . " " . $adherent['prenoms']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Itariki yamavuko"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(30,$ht,convertirc(dateFr($adherent['dateNaissance'])),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("No yindangamuntu"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".$adherent['numeroPiece']),0,1,'L',false);
/*
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Ubwenegihugu"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": "),0,1,'L',false);
*/
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Telefone"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".$adherent['telephonePortable']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Email"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".$adherent['email']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Umudugudu/Akagari/Umurenge"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
// $pdf->Cell(0,$ht,convertirc(": ".$adherent['adresseGeo']),0,1,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Akarere "),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".$adherent['ville'].' / '. $adherent['localite']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Agiranye amasezerano na"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": RADIANT INSURANCE COMPANY"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Italiki amasezerano akorewe"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".dateFr($adherent['dateSysteme'])),0,1,'L',false);
$pdf->Ln(7);
$pdf->Cell(50,$ht,convertirc("Ingingo ya 1: IGIHE AMASEZERANO AMARA :"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("Aya masezerano amara umwaka wuzuye utangira kubarwa nyuma yukwezi kuzuye uhereye igihe uwabufashe yishyuriye umusanzu bwa mbere.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Cell(48,$ht,convertirc("Igihe cyo gutangira kwivuza : "),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc($entetecp['dateEffet']),0,1,'L',false);
// $pdf->AddPage();
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("Ingingo ya 2: ABISHINGIRWA :"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("Buri muntu mu bagize umunyamuryango ufite hagati yimyaka 18 na 65, uwo bashakanye nabana babo batarengeje imyaka 21 nkuko bagaragara mu mbonerahamwe iri hasi hamwe nimisanzu yabo : ");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(85,$ht,convertirc('Amazina'),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc('Itariki yamavuko'),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc('No yubwishingizi'),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc('Umusanzu'),1,1,'C',false);
$pdf->SetFont('Arial','', 10);
foreach ($listeassures as $assure)
{
$pdf->Cell(85,$ht,convertirc($assure['nomAssure']),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc(dateFr($assure['dateNaissance'])),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc($assure['numeroBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($assure['primeNetteStat']),1,1,'C',false);
}
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(155,$ht,convertirc('Igiteranyo'),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($adherent['primeTtcTotal']),1,1,'C',false);
$pdf->AddPage();
// $pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("Ingingo ya 3: IBYISHINGIRWA :"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("Amasezerano yubwishingizi bwo kwivuza akubiyemo serivise zo kwivuza biturutse ku mpamvu zo kubyara, impanuka, kwivuza amaso, amenyo ndetse nubundi burwayi busanzwe.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("Ingingo ya 4: AHO BIVURIZA"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("Abafashe ubu bwishingizi bahabwa serivise zubuvuzi zitangirwa mu bigo nderabuzima, ibitaro byuturere nintara. ibitaro bya gisirikare byi Kanombe, CHUB, CHUK, nibitaro bya NDERA, bitabaye ngombwa gusaba taransiferi.
Uwishingiwe ahabwa imiti yandikiwe na muganga kandi muri farumasi zose mu Rwanda zikorana na Radiant Insurance Company.
Uwishingiwe yishyura buri 10% kuri fagitire yibyo yakorewe mu mavuriro ya leta cyangwa imiti yahawe muri farumasi.
Nyuma yitangira ryaya masezerano, uwafashe ubwishingizi ku giti cye ashobora kongeramo uwo bashakanye mu gihe yashyingiwe cyangwa umwana bibarutse ku bafashe ubwishingizi nkumuryango.
Abagize umuryango wuwishingiwe bashya bazinjizwa muri aya masezerano hongeweho 50% byamafaranga yishyuwe nuwafashe ubwishingizi igihe yongeyemo uwo bashakanye na 25% ku mwana wavutse hatitawe ku minsi isigaye ngo umwaka wamasezerano urangire. Abagize umuryango we bazahita bagira uburenganzira bwo kwivuza kuva igihe amazina yabo nimyaka yamavuko byashyikirijwe RADIANT INSURANCE COMPANY.
Buri wese ahabwa ikarita yubwishingizi agomba kwitwaza igihe agiye kwivuza igafasha abamwakira nawe ubwe kumenya amafaranga yo kwivuza asigaranye ndetse nibyo yemerewe gukorerwa.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("ICYITONDERWA :"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("Ubu bwishingizi bumara umwaka wuzuye (amezi 12) ushobora kongera kuvugururwa ku bushake bwuwabufashe, bityo rero, iyo amafaranga yo kwivuza ashize uwafashe ubwishingizi nabagize umuryango we bongera gukoresha ubwishingizi nyuma yo kongera kwishyura imisanzu yumwaka ukurikiyeho kandi mu gihe amasezerano ahise avugururwa hatabayeho gukererwa.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage();
// $pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("ngingo ya 5: AMAFARANGA YO KWIVUZA KU MWAKA"),0,1,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(115,$ht,convertirc('IBITEGANYIJWE'),1,0,'C',false);
$pdf->Cell(70,$ht,convertirc('Amafaranga'),1,1,'C',false);
$pdf->SetFont('Arial','', 10);
foreach ($garantiescollegecps as $garantiescollegecp)
{
$pdf->Cell(115,$ht,convertirc($garantiescollegecp['garantieKin']),1,0,'C',false);
$pdf->Cell(70,$ht,format_N($garantiescollegecp['plafond']),1,1,'C',false);
}
// $pdf->AddPage();
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("Ingingo ya 6: IBITISHINGIRWA"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("- Ibintu byose uwishingiwe yifuza gukorerwa kwa muganga bidaturutse ku mpamvu zuburwayi;
- Ubuvuzi nimiti yibibazo byo kubura urubyaro;
- Imbago, inyunganirangingo ninsimburangingo;
- Indorerwamo zamaso
- Ibijyanye no kuyungurura impyiko (diyalize), imiti ya diabete, imiti yibibazo byumuvuduko wamaraso nibindi bikorwa cyangwa ibizamini byihariye bitagendanye nuburwayi;
- Guca mu byuma kabuhariwe nka MRI na Scanner igihe uwivuza atari mu bitaro
- Ibijyanye na serivisi zigenerwa abagore batwite bitangira kwishingirwa ku mwaka ukurikiyeho wubwishingizi kandi mu gihe amasezerano yahise avugururwa ku itariki yagombaga kurangiriraho;
- Kwikingiza no kuringaniza urubyaro bikorerwa ubuntu mu mavuriro nibigonderabuzima bya Leta.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("Ingingo ya 7: IHAGARIKWA RYAMASEZERANO"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("• Amasezerano ashobora guhagarikwa igihe uwafashe ubwishingizi ahisemo kubusesa agasubizwa umusanzu yishyuye havuyemo ibihumbi cumi na bitanu (15,000 Frw) kuri buri karita yahawe, mu gihe gusa hatarashira iminsi 30 uhereye igihe yishyuriye umusanzu wa mbere, bivuze ko aba ataratangira kwivuza cyangwa kuvuza abo yishingiye.
Amasezerano ashobora guhagarikwa igihe bigaragaye ko uwafashe ubwishingizi yavuje cyangwa yagerageje kuvuza umuntu utari mubo yafatiye ubwishingizi cyangwa yashatse gukorerwa nkana ibyo azi neza ko bitishingirwa muri aya masezerano kandi umusanzu yishyuwe ntawusubizwa.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage();
// $pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("Ingingo ya 8: INGINGO ZISOZA"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("RADIANT INSURANCE COMPANY ntishobora kuryozwa ingaruka zaba ku buzima bwuwakoresheje ubu ubwishingizi ziturutse ku buvuzi yakorewe kwa muganga cyangwa imiti yandikiwe.
Aya masezerano yemejwe nimpande zombi ziyagiranye kandi afite agaciro uhereye kuwa");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(dateFr($adherent['dateSysteme']).'.'),0,1,'L',false);
$pdf->Ln(10);
$pdf->Cell(0,$ht,convertirc("Bikorewe i Kigali, kuwa ".$entetecp['dateJour']),0,1,'C',false);
$pdf->Ln(10);
$pdf->Cell(0,$ht,convertirc("RADIANT INSURANCE COMPANY"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(" UFASHE UBWISHINGIZI"),0,1,'R',false);
}
else
{
$pdf->Cell(0,$ht,convertirc("Tt is not a FC1 contact"),0,1,'C',false);
}
/*
$fichier="Temp/TMP_conditions_particulieres"."_".uniqid().".pdf";
$pdf->Output($fichier,"F");
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
$t_html .=' </div ';
echo $t_html;
*/
$uniqid = uniqid();
$fichierSimple="Temp/$uniqid.pdf";
$pdf->Output($fichierSimple,"F");
// 08/11/2025 => conversion image pdf
pdf_to_image($fichierSimple, $uniqid);
?>

View File

@ -0,0 +1,275 @@
<?php
$idPolice = $_SESSION['idPolice_C'];
$entetecp = $this->police->getEnteteCP($idPolice);
$adherent = $this->police->getAdherentCP($idPolice);
// $garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice);
// $garantiescollegecps = $this->police->getGarantiesCollegesCPFC($idPolice);
$garantiescollegecps = $this->police->getGarantiesAdherentCPFC($idPolice);
$listeassures = $this->police->getcpfclisteassures($idPolice);
// $pdf = new FPDF();
$pdf = new FPDF_Protection();
$pdf->SetProtection(array('print'));
$pdf->AliasNbPages();
$pdf->AddPage();
$ht=10;
$pdf->SetMargins(10, 10, 10) ;
$pdf->SetFont('Arial','B', 15);
$pdf->SetY(37);
if($adherent['codeProduit']=="FC2")
{
$pdf->SetFillColor(135,206,250); // bleu
$pdf->Cell(0,$ht,convertirc("INDIVIDUAL HEALTH INSURANCE CONTRACT"),1,1,'C',true);
// $pdf->Image($_SESSION['dossierImage'].'/logo_etat.png',170,20,20);
$pdf->Image($_SESSION['dossierImage'].'/logo_etat.png',10,10,180);
$pdf->SetFont('');
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(0,$ht,convertirc("POLICY NUMBER : ".$entetecp['numeroPolice']),0,1,'C',false);
// $pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false);
$pdf->Ln(7);
$pdf->Cell(50,$ht,convertirc("CONTACT DETAILS OF THE INSURER :"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Name"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": Radiant Insurance Company"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Address"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": Kigali, KN 2 Avenue, CHIC Building; P.O. BOX: 1861, Kigali-Rwanda"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Tel"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": +250 788 50 08 77/ 2050"),0,1,'L',false);
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("CONTACT DETAILS OF THE INSURED :"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Names"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".$adherent['nom'] . " " . $adherent['prenoms']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Type of Insurance"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": Individual Cover"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("TIN/PASSPORT/NID"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".$adherent['numeroPiece']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Village/Cell/Sector"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
// $pdf->Cell(0,$ht,convertirc(": ".$adherent['adresseGeo']),0,1,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("District"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".$adherent['ville'].' / '. $adherent['localite']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Telefone"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".$adherent['telephonePortable']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Email"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".$adherent['email']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Contract Signing Date"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".dateFr($adherent['dateSysteme'])),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Commencement Date"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['dateEffet']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Contract Ending Date"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['dateEcheance']),0,1,'L',false);
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("PERSONS TO BE INSURED :"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("Contracting Partys staff members aged more than 18 years and less than 65 years as of the commencement of the insurance contract, the individual insured person, his/her spouse as well as their dependent children of less than 21 years of age.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage();
// $pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("LIST OF PERSONS TO BE INSURED IN THIS CONTRACT :"),0,1,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(85,$ht,convertirc('Names'),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc('Date of Birth'),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc('Membership Number'),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc('Premiums'),1,1,'C',false);
$pdf->SetFont('Arial','', 10);
foreach ($listeassures as $assure)
{
$pdf->Cell(85,$ht,convertirc($assure['nomAssure']),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc(dateFr($assure['dateNaissance'])),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc($assure['numeroBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($assure['primeNetteStat']),1,1,'C',false);
}
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(155,$ht,convertirc('Total'),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($adherent['primeTtcTotal']),1,1,'C',false);
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("ANNUAL CEILINGS :"),0,1,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(115,$ht,convertirc('Guarantee'),1,0,'C',false);
$pdf->Cell(70,$ht,convertirc('Amount'),1,1,'C',false);
$pdf->SetFont('Arial','', 10);
foreach ($garantiescollegecps as $garantiescollegecp)
{
$pdf->Cell(115,$ht,convertirc($garantiescollegecp['garantieEng']),1,0,'C',false);
$pdf->Cell(70,$ht,format_N($garantiescollegecp['plafond']),1,1,'C',false);
}
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("GUARANTEES :"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("The health insurance scheme will pay the charges incurred for medical care due to, illness, accident, dental and eye care or maternity.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("ACCESS TO HEALTH CARE FACILITIES :"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("The insured will receive medical services at all health centers, district and provincial hospitals, Kanombe Military Hospital, CHUB, CHUK, and Ndera Hospital, plus some clinics as per the list attached on this contract as well as all pharmacies that have partnership with RADIANT INSURANCE COMPANY.
The insured shall a 10% co-pay in public health facilities&Pharmacies and 15% in private clinics.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','BI', 10);
$text = convertirc("Note: This list should be updated by adding or removing a provider any time in accordance with the agreement between RADIANT INSURANCE COMPANY LTD and the provider. In this event, RADIANT INSURANCE COMPANY LTD shall inform the client through the email address or telephone number provided by the client in this contract.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','', 10);
$text = convertirc("The insured shall a 10% co-pay in public health&pharmacies and 15% in private clinics.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage();
// $pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("V. UNCOVERED GUARANTEES :"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("- All medical services that are not related to sickness are not covered;
- Maternity cover becomes effective from 10 months of insurance for the 1st year and immediately when the contract is renewed on the date it was due to expire;
- Vaccination, family planning, infertility, crutches and orthosis, kidney transplantation (dialysis) and other special activities or tests not related to normal illness is not guaranteed.
- CT Scan and MRI are covered for Inpatient cases
- Optical Frame");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("A Procedure for incorporating a new dependent :"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("Addition of a child born to or spouse shall take place not later than thirty (30) days from the date of birth of the child or from the date of marriage.
Members of the new insured family will be included in the contract plus 75% of the insurance premiums paid by the insured when he or she adds the spouse and 37.5% when he/she adds the child born regardless of the remaining days until the end of the contract year. Members of his family will have the right to medical treatment from the time their names and birthdays are submitted to RADIANT.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("TERMINATION OF THE AGREEMENT :"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("The agreement can be terminated if the insured chooses to cancel it and will be refunded the premium paid minus fifteen thousand Rwandan Francs (15,000 Frw) for each card issued, only if it has been done less than 30 days since the first premium payment, meaning they have not yet started using the insurance for themselves or their dependents.
The agreement can be terminated if it is found that the insured has used or attempted to use the insurance for someone not covered by the policy or has knowingly attempted to claim for services not covered by this agreement. In such cases, the premium paid will not be refunded.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage();
// $pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("FINAL PROVISIONS :"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("RADIANT INSURANCE COMPANY cannot be held responsible for any health consequences of the insured arising from treatments received at the hospital or medications prescribed.
These agreements have been approved by both parties involved and are effective from");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(dateFr($adherent['dateSysteme']).'.'),0,1,'L',false);
$pdf->Ln(10);
$pdf->Cell(0,$ht,convertirc("Done at Kigali, on ".$entetecp['dateJour']),0,1,'C',false);
$pdf->Ln(10);
$pdf->Cell(0,$ht,convertirc("THE SUBSCRIBER"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc("THE INSURER"),0,1,'R',false);
}
else
{
$pdf->Cell(0,$ht,convertirc("Tt is not a FC2 contact"),0,1,'C',false);
}
/*
$fichier="Temp/TMP_conditions_particulieres"."_".uniqid().".pdf";
$pdf->Output($fichier,"F");
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
$t_html .=' </div ';
echo $t_html;
*/
$uniqid = uniqid();
$fichierSimple="Temp/$uniqid.pdf";
$pdf->Output($fichierSimple,"F");
// 08/11/2025 => conversion image pdf
pdf_to_image($fichierSimple, $uniqid);
?>

View File

@ -0,0 +1,274 @@
<?php
$idPolice = $_SESSION['idPolice_C'];
$entetecp = $this->police->getEnteteCP($idPolice);
$adherent = $this->police->getAdherentCP($idPolice);
// $garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice);
// $garantiescollegecps = $this->police->getGarantiesCollegesCPFC($idPolice);
$garantiescollegecps = $this->police->getGarantiesAdherentCPFC($idPolice);
$listeassures = $this->police->getcpfclisteassures($idPolice);
// $pdf = new FPDF();
$pdf = new FPDF_Protection();
$pdf->SetProtection(array('print'));
$pdf->AliasNbPages();
$pdf->AddPage();
$ht=8;
$pdf->SetMargins(10, 10, 10) ;
$pdf->SetFont('Arial','B', 15);
$pdf->SetY(37);
if($adherent['codeProduit']=="FC2")
{
$pdf->SetFillColor(135,206,250); // bleu
$text = convertirc("AMASEZERANO YUBWISHINGIZI BWO KWIVUZA BWUMUNTU KU GITI CYE HAMWE NABAGIZE UMURYANGO WE");
$pdf->MultiCell(0, $ht, $text, 1, 'C',true);
// MultiCell(float w, float h, string txt [, mixed border [, string align [, boolean fill]]])
// $pdf->Image($_SESSION['dossierImage'].'/logo_etat.png',170,20,20);
$pdf->Image($_SESSION['dossierImage'].'/logo_etat.png',10,10,180);
$pdf->SetFont('');
$pdf->Ln(10);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("UBWISHINGIZI No"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("AMAZINA YOSE"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".$adherent['nom'] . " " . $adherent['prenoms']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Itariki yamavuko"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(30,$ht,convertirc(dateFr($adherent['dateNaissance'])),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("No yindangamuntu"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".$adherent['numeroPiece']),0,1,'L',false);
/*
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Ubwenegihugu"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": "),0,1,'L',false);
*/
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Telefone"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".$adherent['telephonePortable']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Email"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".$adherent['email']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Umudugudu/Akagari/Umurenge"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
// $pdf->Cell(0,$ht,convertirc(": ".$adherent['adresseGeo']),0,1,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Akarere "),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".$adherent['ville'].' / '. $adherent['localite']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Agiranye amasezerano na"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": RADIANT INSURANCE COMPANY"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Italiki amasezerano akorewe"),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(": ".dateFr($adherent['dateSysteme'])),0,1,'L',false);
$pdf->Ln(7);
$pdf->Cell(50,$ht,convertirc("Ingingo ya 1: IGIHE AMASEZERANO AMARA :"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("Aya masezerano amara umwaka wuzuye utangira kubarwa nyuma yukwezi kuzuye uhereye igihe uwabufashe yishyuriye umusanzu bwa mbere.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Cell(48,$ht,convertirc("Igihe cyo gutangira kwivuza : "),0,0,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc($entetecp['dateEffet']),0,1,'L',false);
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("Ingingo ya 2: ABISHINGIRWA :"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("Buri muntu mu bagize umunyamuryango ufite hagati yimyaka 18 na 65, uwo bashakanye nabana babo batarengeje imyaka 21 nkuko bagaragara mu mbonerahamwe iri hasi hamwe nimisanzu yabo : ");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(85,$ht,convertirc('Amazina'),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc('Itariki yamavuko'),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc('No yubwishingizi'),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc('Umusanzu'),1,1,'C',false);
$pdf->SetFont('Arial','', 10);
foreach ($listeassures as $assure)
{
$pdf->Cell(85,$ht,convertirc($assure['nomAssure']),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc(dateFr($assure['dateNaissance'])),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc($assure['numeroBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($assure['primeNetteStat']),1,1,'C',false);
}
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(155,$ht,convertirc('Igiteranyo'),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($adherent['primeTtcTotal']),1,1,'C',false);
$pdf->AddPage();
// $pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("Ingingo ya 3: IBYISHINGIRWA :"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("Amasezerano yubwishingizi bwo kwivuza akubiyemo serivise zo kwivuza biturutse ku mpamvu zo kubyara, impanuka, kwivuza amaso, amenyo ndetse nubundi burwayi busanzwe.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("Ingingo ya 4: AHO BIVURIZA"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("Abafashe ubu bwishingizi bahabwa serivise zubuvuzi zitangirwa mu bigo nderabuzima, ibitaro byuturere nintara. ibitaro bya gisirikare byi Kanombe, CHUB, CHUK, nibitaro bya NDERA, bitabaye ngombwa gusaba taransiferi. Bahabwa kandi serivisi zitangirwa mu mavuriro yigenga agaragara ku rutonde ruri ku mugereka waya masezerano.
Uwishingiwe ahabwa imiti yandikiwe na muganga kandi muri farumasi zose mu Rwanda zikorana na Radiant Insurance Company.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','BI', 10);
$text = convertirc("ICYITONDERWA: Amavuriro amwe ashobora kuvanwa cyangwa kwiyongera kuri uru rutonde igihe icyo ari cyo cyose biturutse ku masezerano yimikoranire RADIANT INSURANCE COMPANY LTD yagiranye namavuriro ndetse na Farumasi. Igihe urutonde ruhindutse, uwishingiwe abimenyeshwa binyuze kuri nomero ya telephone cyangwa aderesi imeyili yatanze igihe yafataga ubwishingizi.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','', 10);
$text = convertirc("Uwishingiwe yishyura buri 10% kuri fagitire yibyo yakorewe mu mavuriro ya leta cyangwa imiti yahawe muri farumasi na 15% mu mavuriro yigenga.
Nyuma yitangira ryaya masezerano, uwafashe ubwishingizi ku giti cye ashobora kongeramo uwo bashakanye mu gihe yashyingiwe cyangwa umwana bibarutse ku bafashe ubwishingizi nkumuryango.
Abagize umuryango wuwishingiwe bashya bazinjizwa muri aya masezerano hongeweho 75% byamafaranga yishyuwe nuwafashe ubwishingizi igihe yongeyemo uwo bashakanye na 37.5% ku mwana wavutse hatitawe ku minsi isigaye ngo umwaka wamasezerano urangire. Abagize umuryango we bazahita bagira uburenganzira bwo kwivuza kuva igihe amazina yabo nimyaka yamavuko byashyikirijwe RADIANT INSURANCE COMPANY.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("ICYITONDERWA :"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("Ubu bwishingizi bumara umwaka wuzuye (amezi 12) ushobora kongera kuvugururwa ku bushake bwuwabufashe, bityo rero, iyo amafaranga yo kwivuza ashize uwafashe ubwishingizi nabagize umuryango we bongera gukoresha ubwishingizi nyuma yo kongera kwishyura imisanzu yumwaka ukurikiyeho kandi mu gihe amasezerano ahise avugururwa hatabayeho gukererwa.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage();
// $pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("ngingo ya 5: AMAFARANGA YO KWIVUZA KU MWAKA"),0,1,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(115,$ht,convertirc('IBITEGANYIJWE'),1,0,'C',false);
$pdf->Cell(70,$ht,convertirc('Amafaranga'),1,1,'C',false);
$pdf->SetFont('Arial','', 10);
foreach ($garantiescollegecps as $garantiescollegecp)
{
$pdf->Cell(115,$ht,convertirc($garantiescollegecp['garantieKin']),1,0,'C',false);
$pdf->Cell(70,$ht,format_N($garantiescollegecp['plafond']),1,1,'C',false);
}
// $pdf->AddPage();
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("Ingingo ya 6: IBITISHINGIRWA"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("- Ibintu byose uwishingiwe yifuza gukorerwa kwa muganga bidaturutse ku mpamvu zuburwayi;
- Ubuvuzi nimiti yibibazo byo kubura urubyaro;
- Imbago, inyunganirangingo ninsimburangingo;
- Indorerwamo zamaso
- Ibijyanye no kuyungurura impyiko (diyalize), nibindi bikorwa cyangwa ibizamini byihariye bitagendanye nuburwayi;
- Guca mu byuma kabuhariwe nka MRI na Scanner igihe uwivuza atari mu bitaro
- Ibijyanye na serivisi zigenerwa abagore batwite bitangira kwishingirwa guhera hashize amezi 10 umuntu afashe ubwishingizi igihe ari ubwa mbere abufashe ndetse nigihe amasezerano ahise avugururwa ku munsi yarangiriyeho.
- Kwikingiza no kuringaniza urubyaro bikorerwa ubuntu mu mavuriro nibigonderabuzima bya Leta.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("Ingingo ya 7: IHAGARIKWA RYAMASEZERANO"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("• Amasezerano ashobora guhagarikwa igihe uwafashe ubwishingizi ahisemo kubusesa agasubizwa umusanzu yishyuye havuyemo ibihumbi cumi na bitanu (15,000 Frw) kuri buri karita yahawe, mu gihe gusa hatarashira iminsi 30 uhereye igihe yishyuriye umusanzu wa mbere, bivuze ko aba ataratangira kwivuza cyangwa kuvuza abo yishingiye.
Amasezerano ashobora guhagarikwa igihe bigaragaye ko uwafashe ubwishingizi yavuje cyangwa yagerageje kuvuza umuntu utari mubo yafatiye ubwishingizi cyangwa yashatse gukorerwa nkana ibyo azi neza ko bitishingirwa muri aya masezerano kandi umusanzu yishyuwe ntawusubizwa.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage();
// $pdf->Ln(7);
$pdf->SetFont('Arial','BU', 15);
$pdf->Cell(50,$ht,convertirc("Ingingo ya 8: INGINGO ZISOZA"),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$text = convertirc("RADIANT INSURANCE COMPANY ntishobora kuryozwa ingaruka zaba ku buzima bwuwakoresheje ubu ubwishingizi ziturutse ku buvuzi yakorewe kwa muganga cyangwa imiti yandikiwe.
Aya masezerano yemejwe nimpande zombi ziyagiranye kandi afite agaciro uhereye kuwa");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc(dateFr($adherent['dateSysteme']).'.'),0,1,'L',false);
$pdf->Ln(10);
$pdf->Cell(0,$ht,convertirc("Bikorewe i Kigali, kuwa ".$entetecp['dateJour']),0,1,'C',false);
$pdf->Ln(10);
$pdf->Cell(0,$ht,convertirc("RADIANT INSURANCE COMPANY"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(" UFASHE UBWISHINGIZI"),0,1,'R',false);
}
else
{
$pdf->Cell(0,$ht,convertirc("Tt is not a FC1 contact"),0,1,'C',false);
}
/*
$fichier="Temp/TMP_conditions_particulieres"."_".uniqid().".pdf";
$pdf->Output($fichier,"F");
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
$t_html .=' </div ';
echo $t_html;
*/
$uniqid = uniqid();
$fichierSimple="Temp/$uniqid.pdf";
$pdf->Output($fichierSimple,"F");
// 08/11/2025 => conversion image pdf
pdf_to_image($fichierSimple, $uniqid);
?>

View File

@ -0,0 +1,675 @@
<?php
$idPolice = $_SESSION['idPolice_C'];
$entetecp = $this->police->getEnteteCP($idPolice);
$collegecps = $this->police->getCollegesCP($idPolice);
$collegecp2s = $this->police->getCollegesCP($idPolice);
$garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice);
$tableaupretationcps = $this->police->gettableauPrestationsCP($idPolice);
// $tableauajustementcps = $this->police->gettableauAjustementCP($idPolice);
// $pdf = new FPDF();
$pdf = new FPDF_Protection();
$pdf->SetProtection(array('print'));
$pdf->AliasNbPages();
$pdf->AddPage();
$ht=10;
$pdf->SetMargins(10, 10, 10) ;
$pdf->SetFont('Arial','B', 15);
$pdf->SetY(40);
$pdf->SetFillColor(135,206,250); // bleu
if($entetecp['codeTypeContrat'] == "G")
{
$pdf->Cell(0,$ht,convertirc("CONTRAT - GROUPE D'ASSURANCE SANTE"),1,1,'C',true);
}
else
{
$pdf->Cell(0,$ht,convertirc("CONTRAT - D'ASSURANCE SANTE INDIVIDUEL"),1,1,'C',true);
}
$pdf->SetFont('');
$pdf->Ln(15);
$pdf->Cell(50,$ht,convertirc("No POLICE"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false);
$pdf->Cell(50,$ht,convertirc("SOUSCRITE PAR"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['nomClient']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(50,$ht,convertirc("Dont le Siège Social est"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("En qualité de CONTRACTANT "),0,0,'C',false);
$pdf->SetFont('Arial','', 10);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("Auprès de "),0,1,'C',false);
$pdf->SetFont('Arial','B', 15);
$pdf->Cell(0,$ht,convertirc($entetecp['nomSociete']),0,1,'C',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(0,$ht,convertirc("En qualité d'ASSUREUR "),0,1,'C',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("Le présent contrat est constitué et régi par les CONDITIONS PARTICULIERES, les DISPOSITIONS"),0,1,'C',false);
$pdf->Cell(0,$ht,convertirc("SPECIALES ainsi que par les CONDITIONS GENERALES."),0,1,'C',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("Il a pour objet la garantie suivante :"),0,1,'C',false);
$pdf->Ln(15);
$pdf->SetFont('Arial','B', 13);
$pdf->Cell(0,$ht,convertirc("MALADIE - HOSPITALISATION - MATERNITE - OPHTALMOLOGIE - DENTISTERIE"),0,1,'C',false);
$pdf->AddPage();
$ht=6;
$pdf->SetFont('Arial','B', 15);
$pdf->Cell(0,$ht,convertirc("CONDITIONS PARTICULIERES"),0,1,'C',false);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc($entetecp['nomClient']),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Déclare souscrire aux conditions générales et dispositions spéciales du Contrat ");
$text .= convertirc("d'Assurance Maladie Groupe et celles particulières qui suivent, auprès de ".$_SESSION['nomSociete']);
$text .= convertirc(" en faveur des personnes à assurer, pour les Garanties et moyennant les Cotisations ci-après :");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 1 : PERSONNES A ASSURER"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Les membres du Personnel de l'assuré âgés de plus de 18 ans et de moins de 70 ans à ");
$text .= convertirc("l'entrée dans l'assurance selon la répartition suivante :");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(30,$ht,convertirc("Catégorie"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Nb Adh"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Nb Dép"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Prime Adh"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Prime Dép"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Prime Tot"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
foreach ($collegecps as $collegecp)
{
$pdf->Cell(30,$ht,convertirc($collegecp['codeProduit']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['nbAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcTotal']),1,1,'C',false);
}
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Totaux : "),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($entetecp['nbAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($entetecp['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($entetecp['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($entetecp['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($entetecp['primeTtcTotal']),1,1,'C',false);
$pdf->Ln(5);
$pdf->SetFont('Arial','', 9);
$text = convertirc("En dehors de cette tranche d'âge la couverture fait l'objet d'un accord spécial entre le souscripteur et l'Assureur.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$text = convertirc("A partir de 60 ans, un examen medical est obligatoire pour les assurés individuels.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 2 : PRISE DEFFET ET MODE DE FONCTIONNEMENT DE MEDICOR"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Sous réserve d'acceptation par l'Assureur, les garanties prennent effet pour chaque personne à assurer : ");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("- Dès la date d'effet du contrat pour les personnes à assurer se trouvant déjà au service du Contractant.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("- Directement après la date de leur admission au Service du Contractant pour les personnes engagées ");
$text .= convertirc("postérieurement à la date d'effet du contrat. Le Departement des Ressources Humaines du Contractant doit être en étroite collaboration avec ");
$text .= convertirc($_SESSION['nomSociete'] . ". Une prime calculée au prorata est payable immédiatement pour toute personne devenue Adhérent pendant la période de couverture.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("- Ainsi, chaque assuré aura une carte dassurance maladie quil va présenter aux prestataires de soins et ceux-ci vont vérifier à partir de ses empreintes digitales son identité et sa limite de couverture via lapplication de MEDICOR. Cela va permettre aussi à lassuré de voir en temps réel où il en est avec sa limite de couverture. ");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("- NB : Pour les assurés individuels, ils doivent attendre une période dun mois avant de bénéficier de lassurance santé ; exception faite des cas daccident.
Aussi, les assurés individuels doivent attendre une période de 10 mois avant de bénéficier de la couverture maternité. ");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
// $pdf->Ln(5);
$pdf->AddPage();
$pdf->Cell(0,$ht,convertirc("Article 3 : DUREE DU CONTRAT"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Le présent contrat est souscrit pour une durée d'une année à compter du ".$entetecp['dateEffet']." au ".$entetecp['dateEcheance']."
Il sera renouvelable tacitement dans les conditions prévues à l'article 6 des présentes conditions particulières sauf résiliation avec un préavis de un mois avant son échéance.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(5);
$pdf->Cell(0,$ht,convertirc("Article 4 : DES GARANTIES"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1.A. PRESTATIONS"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("La garantie maladie offre le paiement des frais pour les soins de santé à la suite de maladie d'accident ou de maternité.
Ainsi, sont prises en charge les prestations médicales suivantes :
- Soins ambulatoires, hospitalisation , maternité (sauf pour les dépendants), ophtalmologie, dentisterie et maladies chroniques.
- Les conditions de prématurité sont couvertes
- L'IRM et d'autres tests spéciaux sont tous couverts
- Paiement indirect : le bénéficiaire paie sa contribution pendant l'obtention du service médical et le prestataire demande
le remboursement ou la différence à RDIANT INSURANCE COMPANY (applicable pour les options avec ticket modérateur)
- Tous les traitements médicaux et les médicaments doivent prescrits par un médecin diplômé et enregistré et qui a été autorisé par le Ministère de la Santé. Notre régime médical donne accès à des spécialités et à des médicaments génériques. Cependant, les spécialités doivent être prescrites par un médecin spécialiste, sauf en cas d'urgence par autorisation préalable
- Les garanties de couverture concernent le personnel assuré; son conjoint ainsi que leurs enfants à charge jusqu'à 21 ans et prolongé jusqu'à 25 ans si l'enfant est encore étudiant
- Frais d'Ambulance pour les cas d'urgence d'un hôpital à un autre et d'un lieu d'accident à l'hôpital en cas d'accident sur le territoire burundais. Le service ambulance sappliquera aux assurés malades qui devont être traité dans un hôpital désigné, à partir dune zone les équipements indispensables nexistent pas, sans toutefois dépasser 500.000.FBu. durant toute la période de couverture (et dans la limite annuelle du patient hospitalisé).
- Traitements dans tous les hôpitaux partenaires des pays d'Afrique de l'Est. Lassuré ira dans un établissement approprié selon le partenariat de l'assureur. Il devra aviser lassureur au moins 3 jours avant afin de lui permettre daviser les prestatires désignés par lassuré (seulement pour ceux qui ont une couverture extraterritoriale).
- Traitement en Inde le cas échéant,sur base dun rapport médical dun medecin specialiste attestant que les mêmes services ne peuvent pas être offerts dans les pays de lAfrique de lEst avec l'approbation préalable de RDIANT INSURANCE COMPANY
- L'extension dans les pays d'Afrique de l'Est est couverte dans la limite de la couverture pour les personnes à charge de l'assuré. Le remboursement sera basé sur le tarif le plus cher selon la catégorie dans laquelle vous êtes assuré localement.
- L'hébergement d'un parent pour les enfants de moins de 12 ans à l'hôpital, cela ne s'appliquera qu'à la couverture à l'étranger
- La chambre individuelle est couverte
- Ajout automatique d'un nouveau-né et/ou conjoint sans prime supplémentaire à l'exception des frais de carte
- Ajout automatique d'un nouvel adhérent avec une prime calculée au prorata
- Suppression automatique pour l'agent qui quitte le groupe et remboursement de 75% de la prime non consommée calculée au prorata, si aucun service médical n'a été payé pour lui et les personnes à sa charge
- L'émission de cartes d'assurance maladie dans les 7 jours suivant la notification et/ou preuve de paiement.
- Les cartes d'assurance maladie portent un numéro de téléphone que le patient peut appeler si nécessaire. Il y aura également un gestionnaire de sinistre désigné spécifiquement en charge de l'assuré.
- La liste de tous les partenaires de RDIANT INSURANCE COMPANY est jointe à cette offre technique
- Le remboursement sera basé sur le tarif le plus cher selon la catégorie dans laquelle vous êtes assuré localement.pour les frais déboursés chez un prestataire qui n'a pas de partenariat avec RDIANT INSURANCE COMPANY et qui n'a pas été résilié ou suspendu pour faute ou mauvaises pratiques.
- Délai maximum de remboursement en cas de paiement direct il n y a pas de partenariat et après réception de tous les documents requis : 2 jours
- Gestion commune avec l'employeur des cas de fraudes
- Les frais funéraires en cas de décès d'un membre assuré ou son bénéficiaire sont payables endeans 24 heures suivant la réception de l'avis de décès à l'Employeur ou à la personne qu'il peut désigner.
- La liste du personnel ainsi que les rapports de consommations médicales seront fournis mensuellement.
- En cas de dépassement des limites de l'assuré au cours de la période d'assurance, RDIANT INSURANCE COMPANY peut le couvrir sans prime supplémentaire si le taux de sinistralité du groupe est inférieur à 60%.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. B. REMBOURSEMENT DES SOINS"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("Aucun acte médical, appareil, opération ou hospitalisation, n'est pris en charge s'il n'a été ordonné par une personne titulaire d'un diplôme de médecin, chirurgien ou chirurgien - dentiste.
Aucun acte n'est pris en charge s'il n'est exécuté par une personne qualifiée et dans un établissement officiellement autorisé par le Ministère de la santé qui, sauf cas de force majeure, doit être conventionné par l'Assureur.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Le système de règlement des factures des prestations est en principe le Tiers payant par lequel le bénéficiaire de l'assurance maladie ne paie que le ticket modérateur convenu et le prestataire des soins se fait payer le solde de sa facture par l'Assureur.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Le payement direct qui consiste à ce que l'assuré paie la totalité de la facture des prestations médicales et se fait rembourser chez l'Assureur n'est utilisé qu'à titre exceptionnel.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("A cet effet, le prestataire ou l'assuré le cas échéant, devra remettre à l'Assureur les notes d'honoraires ou de frais et les ordonnances acquittées, datées et mentionnant les noms et prénoms de l'Assuré qu'elles concernent.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Les notes doivent indiquer la nature et la date des soins donnés en distinguant le coût de chacun des actes pratiqués.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Les ordonnances doivent porter lisiblement les noms et prénoms de l'assuré et s'accompagner des justificatifs de payement des produits pharmaceutiques.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. C.ETENDUE DE LA GARANTIE MALADIE"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("La garantie englobe la personne assurée elle-même, son conjoint ainsi que leurs enfants légalement à charge de moins de 21 ans ou de moins de 25 ans s'ils sont encore étudiants.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Cette couverture est également étendue au personnel qui tomberait malade à l'étranger étant en mission de travail ou en congé annuel reconnu par le contractant.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Dans ce dernier cas, le remboursement se fera sur base du tarif de l'Hôpital privé du BURUNDI pour les adhérents de la première catégorie ou de l'Hôpital Public de référence du BURUNDI pour les adhérents des autres catégories après déduction du ticket modérateur mentionné dans le tableau des prestations et plafonds.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage();
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. D.PRESTATIONS ET TAUX GARANTIS"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("Les prestations et les taux garantis sont décrits, selon la catégorie, dans le tableau ci-dessous :");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(100,$ht,convertirc("Type de Prestataire"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Taux Garantie(%)"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Ticket Modérateur(%)"),1,1,'C',false);
$categorie = "";
foreach ($tableaupretationcps as $tableaupretationcp)
{
if($categorie!=$tableaupretationcp['libelleCollege'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(180,$ht,convertirc($tableaupretationcp['codeProduit']." : ".$tableaupretationcp['libelleCollege']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(100,$ht,convertirc($tableaupretationcp['reseausoin']),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("100"-$tableaupretationcp['tm']),1,0,'C',false);
$pdf->Cell(40,$ht,$tableaupretationcp['tm'],1,1,'C',false);
$categorie = $tableaupretationcp['libelleCollege'];
}
// $pdf->AddPage();
$pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("PLAFONDS ANNUELS PAR FAMILLE"),0,1,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(2);
$pdf->Cell(100,$ht,convertirc("Garantie"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Plafond"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Par Bén."),1,1,'C',false);
$produit = "";
foreach ($garantiescollegecps as $garantiescollegecp)
{
if($produit!=$garantiescollegecp['libelleCollege'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(160,$ht,convertirc($garantiescollegecp['codeProduit']." : ".$garantiescollegecp['libelleCollege']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(100,$ht,convertirc($garantiescollegecp['garantie']),1,0,'C',false);
$pdf->Cell(40,$ht,format_N($garantiescollegecp['plafond']),1,0,'C',false);
$champApplication = ($garantiescollegecp['champApplication']=="1");
if($champApplication == TRUE)
$check = "4";
else
$check = "";
$pdf->SetFont('ZapfDingbats','', 9);
$pdf->Cell(20, $ht, $check,1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = $garantiescollegecp['libelleCollege'];
}
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("4.2. CESSATION DES GARANTIES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Les garanties cessent collectivement le jour de la résiliation du contrat ou de lecheance de celui-ci et individuellement, le jour où la personne assurée atteint la limite de couverture, quitte le service du Contractant, ou décède.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("En cas de fraude avérée, l'Assureur se réserve le droit de radier l'assuré concerné. L'ensemble des garanties offertes à la personne Assurée doivent être annulées à partir de la date où nous avons eu connaissance de la fraude. Les primes payées ne sont pas remboursables et le Membre ne sera plus admissible comme personne assurée pour les périodes futures.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(5);
// $pdf->AddPage();
$pdf->Cell(0,$ht,convertirc("4.3. SUSPENSION DES GARANTIES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Les garanties sont suspendues collectivement si les primes ne sont pas payées dans les TRENTE (30) jours à partir de la prise d'effet du contrat et individuellement si les primes ne sont pas payées immédiatement après l'adhésion de l'assuré.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Les garanties reprendront effet immédiatement après le paiement de la totalité des primes en souffrance au moment de la suspension.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(5);
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 5 : COTISATIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Les garanties définies ci-dessus sont accordées moyennant des cotisations de :");
$pdf->MultiCell(0, $ht, $text);
/*
if($entetecp['commission']>"0")
{
$pdf->Cell(30,$ht,convertirc("Type assuré"),1,0,'C',false);
$pdf->Cell(10,$ht,convertirc("Nb"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("P. Base"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Commis°"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Acces"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("P. Nette"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Carte"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Prime Ttc"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Prime Tot"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = "";
foreach ($collegecp2s as $collegecp2)
{
if($produit!=$collegecp2['libelleCollege'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(190,$ht,convertirc($collegecp2['codeProduit']." : ".$collegecp2['libelleCollege']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(30,$ht,convertirc(_('Adhérent')),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeNette']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['commission']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['accessoire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeHt']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false);
$pdf->Cell(30,$ht,convertirc(_('Dépendant')),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeNetteBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['commissionBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['accessoireBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false);
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Total"),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false);
$pdf->Cell(120,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Total Général"),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($entetecp['nbAssure']),1,0,'C',false);
$pdf->Cell(120,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($entetecp['primeTtcTotal']),1,1,'C',false);
}
else
{
*/
$pdf->Cell(50,$ht,convertirc("Type assuré"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Nb"),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc("P. Base"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("P. Nette"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Carte"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Prime Ttc"),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc("Prime Tot"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = "";
foreach ($collegecp2s as $collegecp2)
{
if($produit!=$collegecp2['libelleCollege'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(170,$ht,convertirc($collegecp2['codeProduit']." : ".$collegecp2['libelleCollege']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(50,$ht,convertirc(_('Adhérent')),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeFamille']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeHt']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false);
$pdf->Cell(50,$ht,convertirc(_('Dépendant')),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false);
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(50,$ht,convertirc("Total"),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false);
// $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(50,$ht,convertirc("Total Général"),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($entetecp['nbAssure']),1,0,'C',false);
// $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($entetecp['primeTtcTotal']),1,1,'C',false);
// }
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 6 : RENOUVELEMENT ET CLAUSE D'AJUSTEMENT DE LA PRIME"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Un mois avant l'échéance, un avenant provisionnel de renouvellement sera envoyé à lassuré pour le règlement d'un acompte sur le renouvellement.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("La prime définie ci-dessus fera l'objet dans les conditions ci-après d'un ajustement en fonction des résultats de Sinistres sur primes nettes (déduction faite des taxes et commissions des intermédiaires) après la clôture de chaque exercice.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Pour associer lassuré à l'évolution des consommations, un rapport dutilisation trimestriel lui sera régulièrement transmis.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 7: EXCLUSIONS GENERALES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("- Traitement cosmétique et chirurgie esthétique
- Blessures dues à la participation aux jeux et activités dangereuses
- Blessures dues à la participation aux greves et émeutes
- Traitement de fécondité à savoir les frais de traitement liés à la stérilité et à l'impuissance
- Traitement prophylactique, les compléments alimentaires
- Cardiopathie ischemique
- Automutilation intentionnelle,suicide ou influence de l'alcool ou de la drogue
- Cancers de la peau,cancers in situ et mélanomes in situ (sauf les melanones malins)
- Les voyages en avion, sauf si le Membre (ayant payé le billet) voyage dans un avion conçu pour transporter des passagers
- Coût d'appareils auditifs, à moins quil résulte dun accident
- Dépression nerveuse, psychonévrose, à moins qu'il ne résulte d'un accident
- Frais recouvrables en vertu de la Loi sur lIndemnisation des Accidents du Travail ou les services publics de santé, y compris les régimes dindemnisation de l'INSS ou tout autre régime sauf sur demande préalable de lassuré et moyennant une prime correspondante");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 8 : DISPOSITIONS FINALES"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Lors de l'exécution des actes, examens ou traitements des assurés, le professionnel de santé ou l'établissement de soins est seul et unique responsable des complications, incidents ou accidents pouvant survenir dans la pratique de l'art médical.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("En aucun cas, la responsabilité de l'Assureur ne pourra être invoquée pour des faits relevant de la responsabilité du professionnel de santé ou de l'établissement de soins.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Le contrat sera établi en deux (2) exemplaires et prend effet sous réserve des dispositions de l'Article II des CONDITIONS PARTICULIERES, le ".$entetecp['dateEffet']);
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
// DEBUT TEXTE LIBRE
if ($entetecp['texteCp']>" ")
{
$pdf->AddPage();
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("ANNEXES AUX CONDITIONS PARTICULIERES"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc($entetecp['texteCp']);
$pdf->MultiCell(0, $ht, $text);
}
// FIN TEXTE LIBRE
$pdf->Ln(10);
$pdf->SetFont('Arial','BI', 10);
$pdf->Cell(0,$ht,convertirc("Fait à ".$_SESSION['villeSociete'].", le ".$entetecp['dateJour']),0,1,'C',false);
$pdf->Ln(10);
$pdf->SetFont('Arial','B', 10);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("POUR RADIANT INSURANCE COMPANY"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc("POUR LASSURE"),0,1,'R',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("LE PRODUCTEUR"),0,1,'L',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("LA DIRECTION"),0,1,'L',false);
/*
$fichier="Temp/TMP_conditions_particulieres"."_".uniqid().".pdf";
$pdf->Output($fichier,"F");
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
$t_html .=' </div ';
echo $t_html;
*/
$uniqid = uniqid();
$fichierSimple="Temp/$uniqid.pdf";
$pdf->Output($fichierSimple,"F");
// 08/11/2025 => conversion image pdf
pdf_to_image($fichierSimple, $uniqid);
?>

View File

@ -0,0 +1,578 @@
<?php
$idPolice = $_SESSION['idPolice_C'];
$entetecp = $this->police->getEnteteCP($idPolice);
$collegecps = $this->police->getCollegesCP($idPolice);
$collegecp2s = $this->police->getCollegesCP($idPolice);
$garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice);
$tableaupretationcps = $this->police->gettableauPrestationsCP($idPolice);
// $pdf = new FPDF();
$pdf = new FPDF_Protection();
$pdf->SetProtection(array('print'));
$pdf->AliasNbPages();
$pdf->AddPage();
$ht=10;
$pdf->SetMargins(10, 10, 10) ;
$pdf->SetFont('Arial','B', 15);
$pdf->SetY(40);
$pdf->SetFillColor(135,206,250); // bleu
$pdf->Cell(0,$ht,convertirc("MEDICOR HEALTH INSURANCE"),1,1,'C',true);
$pdf->SetFont('');
$pdf->Ln(15);
$pdf->Cell(45,$ht,convertirc("No Policy"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false);
$pdf->Cell(45,$ht,convertirc("SUBSCRIBER"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['nomClient']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(45,$ht,convertirc("Headquarter"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("As Insured"),0,0,'C',false);
$pdf->SetFont('Arial','', 10);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("Near "),0,1,'C',false);
$pdf->Ln(10);
$pdf->SetFont('Arial','B', 15);
$pdf->Cell(0,$ht,convertirc($entetecp['nomSociete']),0,1,'C',false);
$pdf->Ln(15);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(0,$ht,convertirc("The future contract will cover the following guarantees :"),0,1,'C',false);
$pdf->Ln(15);
$pdf->SetFont('Arial','B', 13);
$pdf->Cell(0,$ht,convertirc("DISEASE-HOSPITALIZATION-MATERNITY-OPHTHALOMOLOGY-DENTAL"),0,1,'C',false);
$pdf->AddPage();
$ht=6;
$pdf->SetFont('Arial','B', 15);
$pdf->Cell(0,$ht,convertirc("PARTICULAR DISPOSITIONS"),0,1,'C',false);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc($entetecp['nomClient']),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Declares to subscribe to the general terms and conditions and special provisions of the Group Heath Insurance Agreement and the following particulars with ".$entetecp['nomSociete']." for the persons to be insured, for the guarantees and for the following contribution :");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 1 : PEOPLE TO BE ASSURED"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Staff members of the insured person over the age of 18 and under 65 at the time of entry into the insurance according to the following breakdown:");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(30,$ht,convertirc("Category"),1,0,'C',false);
$pdf->Cell(25,$ht,convertirc("Nb members"),1,0,'C',false);
$pdf->Cell(25,$ht,convertirc("Nb Dep"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Premium member"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Premium Dep"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Tot premium"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
foreach ($collegecps as $collegecp)
{
$pdf->Cell(30,$ht,convertirc($collegecp['codeProduit']),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($collegecp['nbAdherent']),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($collegecp['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(40,$ht,format_N($collegecp['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcTotal']),1,1,'C',false);
}
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Totaux : "),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($entetecp['nbAdherent']),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($entetecp['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(40,$ht,format_N($entetecp['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($entetecp['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($entetecp['primeTtcTotal']),1,1,'C',false);
$pdf->Ln(5);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Outside this age group the cover is the subject of a special agreement between the subscriber and the Insurer.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$text = convertirc("From the age of 60, a medical examination is compulsory for individual insured persons.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 2: TAKING EFFECT AND MODE OF OPERATION OF MEDICOR"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Subject to acceptance by the Insurer, the benefits take effect for each person to be insured:
- From the effective date of the contract for persons to be insured who are already in the Contractor's service.
- Directly after the date of their admission to the Contractor's Department for persons hired after the effective date of the contract. The Contractor's Human Resources Department must be in close collaboration with BICOR LIFE AND CAPITALIZATION. A prorated premium is payable immediately to any person who becomes a Member during the period of coverage.
- Thus, each insured will have a health insurance card that he will present to health care providers and they will verify from his fingerprints his identity and coverage limit via the application of MEDICOR. This will also allow the insured to see in real time where he is with his limit of coverage.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
// $pdf->Ln(5);
$pdf->AddPage();
$pdf->Cell(0,$ht,convertirc("Article 3: DURATION OF THE FUTURE CONTRACT"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("The contract will be signed for a period of one year from ".$entetecp['dateEffet']." to ".$entetecp['dateEcheance'].".
It will be tacitly renewable under the conditions set out in article 6 of these special conditions, unless terminated with one months notice before its expiry.
No obligation to renew the contract is incubent upon the parties. RDIANT INSURANCE COMPANY reserves the right to refuse or restrict the terms of coverage for all Members or any Member by granting the insured person a notice period of one month in accordance with the conditions set out in article 6 of these special conditions.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 4 : BENEFITS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1.A. ADVANTAGES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("The health insurance offers the payment of expenses for health care as a result of accident or maternity sickness.
Thus, the following medical benefits are covered:
-outpatient, hospitalization, maternity, ophthalmology, dentistry and chronic diseases.
-conditions of prematurity are covered
-MRI and other special tests are all covered
-Indirect payment: the beneficiary pays his contribution while obtaining the medical service and the provider requests refund or difference to RDIANT INSURANCE COMPANY (applicable for options with co-payment)
- All medical treatments and medications prescribed by a qualified and registered doctor and which has been authorized by the Ministry of Health. Our medical plan provides access to specialties and generic drugs.
However, specialties must be prescribed by a medical specialist, except in case of emergency by prior authorization.
-Coverage guarantees concern the insured staff, spouse and their dependent children up to age 21 and extended to 25 if the child is still a student.
-Ambulance costs for emergency cases from one hospital to another and from an accident site to the hospital in the event of an accident on Burundian territory. The ambulance service will apply to sick insured persons who are to be treated in a designated hospital, from an area where necessary equipment does not exist, but without exceeding Bif 500,000 during the entire coverage period (and within the annual limit of the hospitalized)
-Treatments in all partner hospitals in East African countries. The insured will go to an appropriate institution according to the partnership of the insurer. He will have to notify the insurer at least 3 days before to allow him to notify the insured persons designated by the insured (only for those who have extraterritorial coverage).
-Treatments in India if necessary, based on a medical report from a specialist doctor attestating tha the same services can not be offerered in East African countries with the prior approval of RDIANT INSURANCE COMPANY.
-The extension in East African countries is covered within the limit of coverage for dependents of the insured.
-The refund will be based on the most expensive rate depending on the category in which you are insured locally.
-Accommodation of a parent for children under 12 years old in the hospital. This will only apply to coverage abroad
-The single room is covered
-Automatic addition of a newborn and/or spouse without additional premium except card fees
-Automatic addition of a new member with a prorated premium
-Automatic deletion for the agent leaving the group and refund of 75% of the unutilized premium calculated
-pro rata, if no medical service has been paid for him and his dependents
-The issue of health insurance cards within 7 days of notification and/or proof of payment.
-Health insurance cards carry a telephone number which the patient can call if necessary. There will also be a designated claims manager specifically in charge of ".$entetecp['nomClient'].".
-The list of all RDIANT INSURANCE COMPANY partners is attached to this technical offer
-The refund will be based on the most expensive rate depending on the category in which you are insured locally.
For expenses paid to a provider who has no partnership with RDIANT INSURANCE COMPANY and which has not been terminated or suspended for fault or bad practice.
-Maximum repayment period in case of direct payment where there is no partnership and after receipt of all required documents: 2 days
-Joint management with the employer of cases of fraud
-Funeral expenses in the event of the death on an insured member or his beneficiary are payable within 24 hours of receipt of the death notice to the employer or to the person he may designate.
-The list of staff and reports of medical consumption will be provided monthly.
-If the limit of the insured person is exceeded during the insurance period, RDIANT INSURANCE COMPANY may cover him without additional premium if the loss ratio of the ".$entetecp['nomClient']." Group is less than 60%.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. B. REIMBURSEMENT OF CARE"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("No medical act, device, operation or hospitalization is supported if it has not been ordered by a person holding a doctors degree, surgeon or dental surgeon.
No act is taken in charge if it is not performed by a qualified person and in an establishment officially authorized by the Ministry of Health which, except in cases of major force, must be agreed by the insurer.
The system of payment of benefits invoices is in principle the Third party paying by which the beneficiary of the insurance sickness only pays the agreed co-payment and the care provider is paid the balance of his bill by the insurer.
The direct payment which consists in the fact that the insured person pays the entire bill for the medical services and is reimbursed by the insured is only used in exceptional circumstances.
For this purpose, the service provider or the insured if applicable, must submit to the insurer the notes of fees or expenses and the orders paid, dated and mentioning the names and forenames of the insured concerned. The notes must indicate the nature and the date of the care given by distinguishing the cost of each of the acts performed.
Prescriptions must clearly bear the name and surname of the insured and be accompanied by proof of payment of pharmaceutical products.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. C.EXTENT OF THE DISEASE GUARANTEE"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("The coverage includes the insured person himself, his spouse and their legally dependent children under 21 or under 25 if they are still students.
This coverage is also extended to staff who fall ill while on a work mission or on annual leave recognized by the contractor.
In the latter case, the reimbursement will be made on the basis of the KIRA Hospital rate for members of the first category or the Reference Public Hospital for members of the other categories after deduction of the co-payment mentioned in the table of benefits and limits.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Cette couverture est également étendue au personnel qui tomberait malade à l'étranger étant en mission de travail ou en congé annuel reconnu par le contractant.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Dans ce dernier cas, le remboursement se fera sur base du tarif de l'Hôpital privé du BURUNDI pour les adhérents de la première catégorie ou de l'Hôpital Public de référence du BURUNDI pour les adhérents des autres catégories après déduction du ticket modérateur mentionné dans le tableau des prestations et plafonds.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage();
// $pdf->Ln(2);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. D.BENEFITS AND GUARANTEED RATE"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("Benefits and guaranteed rates are described, by category, in the tables below :");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(100,$ht,convertirc("Type of provider"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Rate guarantee(%)"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Co-payment(%)"),1,1,'C',false);
$categorie = "";
foreach ($tableaupretationcps as $tableaupretationcp)
{
if($categorie!=$tableaupretationcp['libelleCollege'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(180,$ht,convertirc($tableaupretationcp['libelleCollege']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(100,$ht,convertirc($tableaupretationcp['reseausoinEng']),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("100"-$tableaupretationcp['tm']),1,0,'C',false);
$pdf->Cell(40,$ht,$tableaupretationcp['tm'],1,1,'C',false);
$categorie = $tableaupretationcp['libelleCollege'];
}
$pdf->AddPage();
// $pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("LIMITS PER FAMILY OR PER MEMBER"),0,1,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(2);
$pdf->Cell(100,$ht,convertirc("Garantee"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Limit"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Per Ben."),1,1,'C',false);
$produit = "";
foreach ($garantiescollegecps as $garantiescollegecp)
{
if($produit!=$garantiescollegecp['libelleCollege'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(160,$ht,convertirc($garantiescollegecp['libelleCollege']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(100,$ht,convertirc($garantiescollegecp['garantieEng']),1,0,'C',false);
$pdf->Cell(40,$ht,format_N($garantiescollegecp['plafond']),1,0,'C',false);
$champApplication = ($garantiescollegecp['champApplication']=="1");
if($champApplication == TRUE)
$check = "4";
else
$check = "";
$pdf->SetFont('ZapfDingbats','', 9);
$pdf->Cell(20, $ht, $check,1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = $garantiescollegecp['libelleCollege'];
}
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("4.2. TERMINATION OF GUARANTEES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Collateral ceases collectively on the day of termination of the contract or on its due date and individually, on the day the insured person reaches the limit of coverage, leaves the contractors service, or dies.
In case of proven fraud, the insurer reserves the right to cancel the insured concerned. All the benefits offered to the insured person must be canceled from the date we became aware of the fraud. Premiums paid are not refundable and the member will no longer be eligible as an insured person for future periods.");
$pdf->MultiCell(0, $ht, $text);
// $pdf->AddPage();
$pdf->Ln(10);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("4.3. SUSPENSION OF GUARANTEES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Collateral is suspended collectively if the premiums are not paid within THIRTY (30) days of the effective date of the policy and individually if the premiums are not paid immediately after the insureds membership.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$text = convertirc("Guarantees will resume immediately upon payment of all outstanding premiums at the time of suspens.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 5 : CONTRIBUTIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("The guarantees defined above will be granted with :");
$pdf->MultiCell(0, $ht, $text);
$pdf->Cell(50,$ht,convertirc("Insured type"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Nb"),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc("Basic premium"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Net premium"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Card"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Premium Ttc"),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc("Tot Premium"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = "";
foreach ($collegecp2s as $collegecp2)
{
if($produit!=$collegecp2['libelleCollege'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(170,$ht,convertirc($collegecp2['codeProduit']." : ".$collegecp2['libelleCollege']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(50,$ht,convertirc(_('Adhérent')),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeFamille']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeHt']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false);
$pdf->Cell(50,$ht,convertirc(_('Dépendant')),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false);
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(50,$ht,convertirc("Total"),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false);
// $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 6: RENEWAL AND PREMIUM ADJUSTEMENT CLAUSE"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("One month before the expiry, a provisional renewal rider will be sent to the insured for payment of a deposit on the renewal.
The premium defined above will be adjusted in accordance with the results of net premium claims (net of taxes and commissions of intermediaries) after the end of each financial year.
To associate the insured with changes in consumptions, quarterly usage report will be regularly transmitted. ");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 7: GENERAL EXCLUSIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("- Cosmetic treatment and cosmetic surgery
- Injuries due to participation in games and dangerous activities
- Injuries due to participation in strikes and riots
- Fertility treatment, namely treatment costs related to infertility and impotence
- Prophylactic treatment, dietary supplements
-Ischemic heart disease
- Intentional self-harm, suicide or the influence of alcohol or drugs
- Skin cancers, in situ cancers and melanomas in situ (except malignant melanomas)
- Air travel, unless the Member (having paid for the ticket) travels in an airplane designed to carry passengers
- Cost of hearing aids, unless resulting from an accident
- Nervous breakdown, psychoneurosis, unless it results from an accident");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 8: FINAL PROVISIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("When performing the acts, examinations or treatments of the insured, the health professional or the care establishment is the sole and sole responsible for complications, incidents or accidents that may occur in the practice of the medical art.
In no event shall the Insurer's liability be invoked for matters that are the responsibility of the health professional or the health care facility.
The contract will be established in two (2) copies and takes effect subject to the provisions of Article II of the PARTICULAR CONDITIONS, the ".$entetecp['dateEffet']);
$pdf->MultiCell(0, $ht, $text);
// DEBUT TEXTE LIBRE
if ($entetecp['texteCp']>" ")
{
$pdf->AddPage();
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("ANNEXES TO THE PARTICULAR CONDITIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc($entetecp['texteCp']);
$pdf->MultiCell(0, $ht, $text);
}
// FIN TEXTE LIBRE
$pdf->Ln(10);
$pdf->SetFont('Arial','BI', 10);
$pdf->Cell(0,$ht,convertirc("Done at ".$_SESSION['villeSociete']." ".$entetecp['dateJour']."."),0,1,'C',false);
$pdf->Ln(10);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("FOR RDIANT INSURANCE COMPANY"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc("FOR INSURED"),0,1,'R',false);
$pdf->Ln(20);
$pdf->Cell(0,$ht,convertirc("UNDERWRITTER"),0,1,'L',false);
$pdf->Ln(20);
$pdf->Cell(0,$ht,convertirc("EXECUTIVE MANAGEMENT"),0,1,'L',false);
/*
$fichier="Temp/TMP_particuliars_conditions"."_".uniqid().".pdf";
$pdf->Output($fichier,"F");
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
$t_html .=' </div ';
echo $t_html;
*/
$uniqid = uniqid();
$fichierSimple="Temp/$uniqid.pdf";
$pdf->Output($fichierSimple,"F");
// 08/11/2025 => conversion image pdf
pdf_to_image($fichierSimple, $uniqid);
?>

View File

@ -0,0 +1,33 @@
<?php
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$codeProduit = $this->requete->getParametre("codeProduit");
$libelleCollege = $this->requete->getParametre("libelleCollege");
$nbAdherent = $this->requete->getParametreFormulaire("nbAdherent","numerique");
$nbAyantdroit = $this->requete->getParametreFormulaire("nbAyantdroit","numerique");
$primeFamille = $this->requete->getParametreFormulaire("primeFamille","numerique");
$surprimeAnt = $this->requete->getParametreFormulaire("surprimeAnt","numerique");
$rachatTm = $this->requete->getParametre("rachatTm");
$tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique");
$tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique");
$tauxPrimeRachatTm = $this->requete->getParametreFormulaire("tauxPrimeRachatTm","numerique");
$cplFuneraire = $this->requete->getParametreFormulaire("cplFuneraire","numerique");
$fraisCarte = $this->requete->getParametreFormulaire("fraisCarte","numerique");
$imposerPlafond = $this->requete->getParametreFormulaire("imposerPlafond");
$numeroOptionTarif = $this->requete->getParametreFormulaire("numeroOptionTarif");
$tauxPrimeFraisFuneraire = $this->requete->getParametreFormulaire("tauxPrimeFraisFuneraire","numerique");
$this->college_temp->recapituler($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit,
$primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte,
$imposerPlafond, $numeroOptionTarif, $tauxPrimeFraisFuneraire);
if($this->requete->existeParametre("btn_recap"))
{
$this->rediriger("Creercolleged");
}
else
{
$this->college_temp->enregistrer($idCollegeTemp);
$this->rediriger("Fichedevis");
}
?>

View File

@ -0,0 +1,18 @@
<?php
$idPolice = $_SESSION['idPolice_d_C'];
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$collegeTemp = $this->college_temp->getCollegeTemp($idCollegeTemp);
$garantiesbase = $this->college_temp->getGarBaseCollege($idCollegeTemp);
$garoptionnelles = $this->college_temp->getGarOptCollege($idCollegeTemp);
$garoptacquises = $this->college_temp->getGarOptCollegeAcq($idCollegeTemp);
$tableau_prestations = $this->college_temp->getPrestation($idCollegeTemp);
$optionstarif = $this->college_temp->getoptionstarif($idPolice);
$this->genererVue(array('collegeTemp' => $collegeTemp, 'produit' => $this->produit,
'garantiesbase' => $garantiesbase, 'garoptionnelles' => $garoptionnelles,
'garoptacquises' => $garoptacquises, 'rachattm' => $this->rachattm, 'optionstarif' => $optionstarif,
'tableau_prestations' => $tableau_prestations, 'ouinonimposerplafond' => $this->ouinonimposerplafond));
?>

View File

@ -0,0 +1,8 @@
<?php
$idPolice = $_SESSION['idPolice_d_C'];
$user = $this->requete->getSession()->getAttribut('login');
$idCollegeTemp = $this->college_temp->initCollege($idPolice, $user);
$this->rediriger("Creercolleged");
?>

View File

@ -0,0 +1,32 @@
<?php
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$codeProduit = $this->requete->getParametre("codeProduit");
$libelleCollege = $this->requete->getParametre("libelleCollege");
$nbAdherent = $this->requete->getParametreFormulaire("nbAdherent","numerique");
$nbAyantdroit = $this->requete->getParametreFormulaire("nbAyantdroit","numerique");
$primeFamille = $this->requete->getParametreFormulaire("primeFamille","numerique");
$surprimeAnt = $this->requete->getParametreFormulaire("surprimeAnt","numerique");
$rachatTm = $this->requete->getParametre("rachatTm");
$tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique");
$tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique");
$tauxPrimeRachatTm = $this->requete->getParametreFormulaire("tauxPrimeRachatTm","numerique");
$cplFuneraire = $this->requete->getParametreFormulaire("cplFuneraire","numerique");
$fraisCarte = $this->requete->getParametreFormulaire("fraisCarte","numerique");
$imposerPlafond = $this->requete->getParametreFormulaire("imposerPlafond");
$tauxPrimeFraisFuneraire = $this->requete->getParametreFormulaire("tauxPrimeFraisFuneraire","numerique");
$this->college_temp->recapituler($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit,
$primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte,
$imposerPlafond, $tauxPrimeFraisFuneraire);
if($this->requete->existeParametre("btn_recap"))
{
$this->rediriger("Creercollege");
}
else
{
$this->college_temp->enregistrer($idCollegeTemp);
$this->rediriger("Collegepolice");
}
?>

View File

@ -0,0 +1,16 @@
<?php
$idPolice = $_SESSION['idPolice_C'];
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$collegeTemp = $this->college_temp->getCollegeTemp($idCollegeTemp);
$garantiesbase = $this->college_temp->getGarBaseCollege($idCollegeTemp);
$garoptionnelles = $this->college_temp->getGarOptCollege($idCollegeTemp);
$garoptacquises = $this->college_temp->getGarOptCollegeAcq($idCollegeTemp);
$tableau_prestations = $this->college_temp->getPrestation($idCollegeTemp);
$this->genererVue(array('collegeTemp' => $collegeTemp, 'produit' => $this->produit,
'garantiesbase' => $garantiesbase, 'garoptionnelles' => $garoptionnelles,
'garoptacquises' => $garoptacquises, 'rachattm' => $this->rachattm,
'tableau_prestations' => $tableau_prestations, 'ouinonimposerplafond' => $this->ouinonimposerplafond));
?>

View File

@ -0,0 +1,8 @@
<?php
$idPolice = $_SESSION['idPolice_C'];
$user = $this->requete->getSession()->getAttribut('login');
$idCollegeTemp = $this->college_temp->initCollege($idPolice, $user);
$this->rediriger("Creercollege");
?>

View File

@ -0,0 +1,694 @@
<?php
$idPolice = $_SESSION['idPolice_d_C'];
$entetecp = $this->police->getEnteteCP($idPolice);
$collegecps = $this->police->getCollegesCP($idPolice);
$collegecp2s = $this->police->getCollegesCP($idPolice);
$garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice);
$tableaupretationcps = $this->police->gettableauPrestationsCP($idPolice);
// $pdf = new FPDF();
$pdf = new FPDF_Protection();
$pdf->SetProtection(array('print'));
$pdf->AliasNbPages();
$pdf->AddPage();
$ht=10;
$pdf->SetMargins(10, 10, 10) ;
$pdf->SetFont('Arial','B', 15);
$pdf->SetY(40);
$pdf->SetFillColor(135,206,250); // bleu
if($entetecp['codeTypeContrat'] == "G")
{
$pdf->Cell(0,$ht,convertirc("PROPOSITION DE CONTRAT - D'ASSURANCE SANTE"),1,1,'C',true);
}
else
{
$pdf->Cell(0,$ht,convertirc("PROPOSITION DE CONTRAT - D'ASSURANCE SANTE INDIVIDUEL"),1,1,'C',true);
}
$pdf->SetFont('');
$pdf->Ln(15);
$pdf->Cell(45,$ht,convertirc("No DEVIS"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false);
$pdf->Cell(45,$ht,convertirc("CLIENT"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['nomClient']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(45,$ht,convertirc("Dont le Siège Social est"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false);
$pdf->Ln(15);
// $pdf->Cell(0,$ht,convertirc("En qualité de PROSPECT "),0,0,'C',false);
// $pdf->Cell(0,$ht,convertirc("En qualité de CLIENT "),0,0,'C',false);
$pdf->Cell(0,$ht,convertirc("En qualité d'Assuré "),0,0,'C',false);
$pdf->SetFont('Arial','', 10);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("Auprès de "),0,1,'C',false);
$pdf->SetFont('Arial','B', 15);
$pdf->Cell(0,$ht,convertirc($entetecp['nomSociete']),0,1,'C',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(0,$ht,convertirc("En qualité d'ASSUREUR "),0,1,'C',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("Le futur contrat aura pour objet la garantie suivante :"),0,1,'C',false);
$pdf->Ln(15);
$pdf->SetFont('Arial','B', 13);
$pdf->Cell(0,$ht,convertirc("MALADIE - HOSPITALISATION - MATERNITE - OPHTALMOLOGIE - DENTISTERIE"),0,1,'C',false);
$pdf->AddPage();
$ht=6;
$pdf->SetFont('Arial','B', 15);
$pdf->Cell(0,$ht,convertirc("DISPOSITIONS PARTICULIERES"),0,1,'C',false);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc($entetecp['nomClient']),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Déclare souscrire aux conditions générales et dispositions spéciales du Contrat ");
$text .= convertirc("d'Assurance Maladie Groupe et celles particulières qui suivent, auprès de ".$_SESSION['nomSociete']);
$text .= convertirc(" en faveur des personnes à assurer, pour les Garanties et moyennant les Cotisations ci-après :");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 1 : PERSONNES A ASSURER"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Les membres du Personnel de l'assuré âgés de plus de 18 ans et de moins de 70 ans à ");
$text .= convertirc("l'entrée dans l'assurance selon la répartition suivante :");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(30,$ht,convertirc("Catégorie"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Nb Adh"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Nb Dép"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Prime Adh"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Prime Dép"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Prime Tot"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$oldnumeroOptionTarif = "0";
$nbAdherent = "0";
$nbAyantdroit = "0";
$primeTtcAdherent = "0";
$primeTtcBeneficiaire = "0";
$primeTtcTotal = "0";
$categorie = "0";
foreach ($collegecps as $collegecp)
{
$numeroOptionTarif = $collegecp['numeroOptionTarif'];
if ($oldnumeroOptionTarif<>$numeroOptionTarif && $oldnumeroOptionTarif <> "0")
{
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Totaux : Option ".$oldnumeroOptionTarif),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($nbAdherent),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($nbAyantdroit),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcAdherent),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcBeneficiaire),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcTotal),1,1,'C',false);
$nbAdherent = "0";
$nbAyantdroit = "0";
$primeTtcAdherent = "0";
$primeTtcBeneficiaire = "0";
$primeTtcTotal = "0";
$pdf->Ln(5);
}
if($categorie!=$collegecp['numeroOptionTarif'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(180,$ht,convertirc($collegecp['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->SetFont('Arial','', 9);
$pdf->Cell(30,$ht,convertirc("Option ".$collegecp['numeroOptionTarif']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['nbAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcTotal']),1,1,'C',false);
$nbAdherent += $collegecp['nbAdherent'];
$nbAyantdroit += $collegecp['nbAyantdroit'];
$primeTtcAdherent += $collegecp['primeTtcAdherent'];
$primeTtcBeneficiaire += $collegecp['primeTtcBeneficiaire'];
$primeTtcTotal += $collegecp['primeTtcTotal'];
$oldnumeroOptionTarif = $numeroOptionTarif;
$categorie = $collegecp['numeroOptionTarif'];
}
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Totaux : Option ".$numeroOptionTarif),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($nbAdherent),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($nbAyantdroit),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcAdherent),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcBeneficiaire),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcTotal),1,1,'C',false);
$pdf->Ln(5);
$text = convertirc("En dehors de cette tranche d'âge la couverture fait l'objet d'un accord spécial entre le souscripteur et l'Assureur.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$text = convertirc("A partir de 60 ans, un examen medical est obligatoire pour les assurés individuels.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 2 : PRISE DEFFET ET MODE DE FONCTIONNEMENT DE MEDICOR"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Sous réserve d'acceptation par l'Assureur, les garanties prennent effet pour chaque personne à assurer : ");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("- Dès la date d'effet du contrat pour les personnes à assurer se trouvant déjà au service du Contractant.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("- Directement après la date de leur admission au Service du Contractant pour les personnes engagées ");
$text .= convertirc("postérieurement à la date d'effet du contrat. Le Departement des Ressources Humaines du Contractant doit être en étroite collaboration avec ");
$text .= convertirc($_SESSION['nomSociete'] . ". Une prime calculée au prorata est payable immédiatement pour toute personne devenue Adhérent pendant la période de couverture.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("- Ainsi, chaque assuré aura une carte dassurance maladie quil va présenter aux prestataires de soins et ceux-ci vont vérifier à partir de ses empreintes digitales son identité et sa limite de couverture via lapplication de MEDICOR. Cela va permettre aussi à lassuré de voir en temps réel où il en est avec sa limite de couverture. ");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("- NB : Pour les assurés individuels, ils doivent attendre une période dun mois avant de bénéficier de lassurance santé ; exception faite des cas daccident.
Aussi, les assurés individuels doivent attendre une période de 10 mois avant de bénéficier de la couverture maternité. ");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
// $pdf->Ln(5);
$pdf->AddPage();
$pdf->Cell(0,$ht,convertirc("Article 3 : DUREE DU FUTUR CONTRAT"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Le contrat sera souscrit pour une durée d'une année à compter du ".$entetecp['dateEffet']." au ".$entetecp['dateEcheance']."
Il sera renouvelable tacitement dans les conditions prévues à l'article 6 des présentes conditions particulières sauf résiliation avec un préavis de un mois avant son échéance.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 4 : DES GARANTIES"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1.A. PRESTATIONS"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("La garantie maladie offre le paiement des frais pour les soins de santé à la suite de maladie d'accident ou de maternité.
Ainsi, sont prises en charge les prestations médicales suivantes :
- Soins ambulatoires, hospitalisation , maternité (sauf pour les dépendants), ophtalmologie, dentisterie et maladies chroniques.
- Les conditions de prématurité sont couvertes
- L'IRM et d'autres tests spéciaux sont tous couverts
- Paiement indirect : le bénéficiaire paie sa contribution pendant l'obtention du service médical et le prestataire demande
le remboursement ou la différence à BICOR VIE ET CAPITALISATION (applicable pour les options avec ticket modérateur)
- Tous les traitements médicaux et les médicaments doivent prescrits par un médecin diplômé et enregistré et qui a été autorisé par le Ministère de la Santé. Notre régime médical donne accès à des spécialités et à des médicaments génériques. Cependant, les spécialités doivent être prescrites par un médecin spécialiste, sauf en cas d'urgence par autorisation préalable
- Les garanties de couverture concernent le personnel assuré; son conjoint ainsi que leurs enfants à charge jusqu'à 21 ans et prolongé jusqu'à 25 ans si l'enfant est encore étudiant
- Frais d'Ambulance pour les cas d'urgence d'un hôpital à un autre et d'un lieu d'accident à l'hôpital en cas d'accident sur le territoire burundais. Le service ambulance sappliquera aux assurés malades qui devont être traité dans un hôpital désigné, à partir dune zone les équipements indispensables nexistent pas, sans toutefois dépasser 500.000.FBu. durant toute la période de couverture (et dans la limite annuelle du patient hospitalisé).
- Traitements dans tous les hôpitaux partenaires des pays d'Afrique de l'Est. Lassuré ira dans un établissement approprié selon le partenariat de l'assureur. Il devra aviser lassureur au moins 3 jours avant afin de lui permettre daviser les prestatires désignés par lassuré (seulement pour ceux qui ont une couverture extraterritoriale).
- Traitement en Inde le cas échéant,sur base dun rapport médical dun medecin specialiste attestant que les mêmes services ne peuvent pas être offerts dans les pays de lAfrique de lEst avec l'approbation préalable de BICOR VIE ET CAPITALISATION
- L'extension dans les pays d'Afrique de l'Est est couverte dans la limite de la couverture pour les personnes à charge de l'assuré. Le remboursement sera basé sur le tarif le plus cher selon la catégorie dans laquelle vous êtes assuré localement.
- L'hébergement d'un parent pour les enfants de moins de 12 ans à l'hôpital, cela ne s'appliquera qu'à la couverture à l'étranger
- La chambre individuelle est couverte
- Ajout automatique d'un nouveau-né et/ou conjoint sans prime supplémentaire à l'exception des frais de carte
- Ajout automatique d'un nouvel adhérent avec une prime calculée au prorata
- Suppression automatique pour l'agent qui quitte le groupe et remboursement de 75% de la prime non consommée calculée au prorata, si aucun service médical n'a été payé pour lui et les personnes à sa charge
- L'émission de cartes d'assurance maladie dans les 7 jours suivant la notification et/ou preuve de paiement.
- Les cartes d'assurance maladie portent un numéro de téléphone que le patient peut appeler si nécessaire. Il y aura également un gestionnaire de sinistre désigné spécifiquement en charge de l'assuré.
- La liste de tous les partenaires de BICOR VIE ET CAPITALISATION est jointe à cette offre technique
- Le remboursement sera basé sur le tarif le plus cher selon la catégorie dans laquelle vous êtes assuré localement.pour les frais déboursés chez un prestataire qui n'a pas de partenariat avec BICOR VIE ET CAPITALISATION et qui n'a pas été résilié ou suspendu pour faute ou mauvaises pratiques.
- Délai maximum de remboursement en cas de paiement direct il n y a pas de partenariat et après réception de tous les documents requis : 2 jours
- Gestion commune avec l'employeur des cas de fraudes
- Les frais funéraires en cas de décès d'un membre assuré ou son bénéficiaire sont payables endeans 24 heures suivant la réception de l'avis de décès à l'Employeur ou à la personne qu'il peut désigner.
- La liste du personnel ainsi que les rapports de consommations médicales seront fournis mensuellement.
- En cas de dépassement des limites de l'assuré au cours de la période d'assurance, BICOR VIE ET CAPITALISATION peut le couvrir sans prime supplémentaire si le taux de sinistralité du groupe est inférieur à 60%.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. B. REMBOURSEMENT DES SOINS"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("Aucun acte médical, appareil, opération ou hospitalisation, n'est pris en charge s'il n'a été ordonné par une personne titulaire d'un diplôme de médecin, chirurgien ou chirurgien - dentiste.
Aucun acte n'est pris en charge s'il n'est exécuté par une personne qualifiée et dans un établissement officiellement autorisé par le Ministère de la santé qui, sauf cas de force majeure, doit être conventionné par l'Assureur.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Le système de règlement des factures des prestations est en principe le Tiers payant par lequel le bénéficiaire de l'assurance maladie ne paie que le ticket modérateur convenu et le prestataire des soins se fait payer le solde de sa facture par l'Assureur.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Le payement direct qui consiste à ce que l'assuré paie la totalité de la facture des prestations médicales et se fait rembourser chez l'Assureur n'est utilisé qu'à titre exceptionnel.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("A cet effet, le prestataire ou l'assuré le cas échéant, devra remettre à l'Assureur les notes d'honoraires ou de frais et les ordonnances acquittées, datées et mentionnant les noms et prénoms de l'Assuré qu'elles concernent.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Les notes doivent indiquer la nature et la date des soins donnés en distinguant le coût de chacun des actes pratiqués.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Les ordonnances doivent porter lisiblement les noms et prénoms de l'assuré et s'accompagner des justificatifs de payement des produits pharmaceutiques.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. C.ETENDUE DE LA GARANTIE MALADIE"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("La garantie englobe la personne assurée elle-même, son conjoint ainsi que leurs enfants légalement à charge de moins de 21 ans ou de moins de 25 ans s'ils sont encore étudiants.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Cette couverture est également étendue au personnel qui tomberait malade à l'étranger étant en mission de travail ou en congé annuel reconnu par le contractant.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Dans ce dernier cas, le remboursement se fera sur base du tarif de l'Hôpital privé du BURUNDI pour les adhérents de la première catégorie ou de l'Hôpital Public de référence du BURUNDI pour les adhérents des autres catégories après déduction du ticket modérateur mentionné dans le tableau des prestations et plafonds.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage();
// $pdf->Ln(2);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. D.PRESTATIONS ET TAUX GARANTIS"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("Les prestations et les taux garantis sont décrits, selon la catégorie, dans le tableaux ci-dessous :");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(100,$ht,convertirc("Type de Prestataire"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Taux Garantie(%)"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Ticket Modérateur(%)"),1,1,'C',false);
$categorie = "";
foreach ($tableaupretationcps as $tableaupretationcp)
{
if($categorie!=$tableaupretationcp['libelleComplet'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(180,$ht,convertirc($tableaupretationcp['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(100,$ht,convertirc($tableaupretationcp['reseausoin']),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("100"-$tableaupretationcp['tm']),1,0,'C',false);
$pdf->Cell(40,$ht,$tableaupretationcp['tm'],1,1,'C',false);
$categorie = $tableaupretationcp['libelleComplet'];
}
$pdf->AddPage();
// $pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("PLAFONDS ANNUELS PAR FAMILLE"),0,1,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(2);
$pdf->Cell(100,$ht,convertirc("Garantie"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Plafond"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Par Bén."),1,1,'C',false);
$produit = "";
foreach ($garantiescollegecps as $garantiescollegecp)
{
if($produit!=$garantiescollegecp['libelleComplet'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(160,$ht,convertirc($garantiescollegecp['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(100,$ht,convertirc($garantiescollegecp['garantie']),1,0,'C',false);
$pdf->Cell(40,$ht,format_N($garantiescollegecp['plafond']),1,0,'C',false);
$champApplication = ($garantiescollegecp['champApplication']=="1");
if($champApplication == TRUE)
$check = "4";
else
$check = "";
$pdf->SetFont('ZapfDingbats','', 9);
$pdf->Cell(20, $ht, $check,1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = $garantiescollegecp['libelleComplet'];
}
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("4.2. CESSATION DES GARANTIES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Les garanties cessent collectivement le jour de la résiliation du contrat ou de lecheance de celui-ci et individuellement, le jour où la personne assurée atteint la limite de couverture, quitte le service du Contractant, ou décède.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("En cas de fraude avérée, l'Assureur se réserve le droit de radier l'assuré concerné. L'ensemble des garanties offertes à la personne Assurée doivent être annulées à partir de la date où nous avons eu connaissance de la fraude. Les primes payées ne sont pas remboursables et le Membre ne sera plus admissible comme personne assurée pour les périodes futures.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(5);
// $pdf->AddPage();
$pdf->Cell(0,$ht,convertirc("4.3. SUSPENSION DES GARANTIES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Les garanties sont suspendues collectivement si les primes ne sont pas payées dans les TRENTE (30) jours à partir de la prise d'effet du contrat et individuellement si les primes ne sont pas payées immédiatement après l'adhésion de l'assuré.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("Les garanties reprendront effet immédiatement après le paiement de la totalité des primes en souffrance au moment de la suspension.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 5 : COTISATIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Les garanties définies ci-dessus seront accordées moyennant des cotisations de :");
$pdf->MultiCell(0, $ht, $text);
/*
if($entetecp['commission']>"0")
{
$pdf->Cell(30,$ht,convertirc("Type assuré"),1,0,'C',false);
$pdf->Cell(10,$ht,convertirc("Nb"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("P. Base"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Commis°"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Acces"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("P. Nette"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Carte"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Prime Ttc"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Prime Tot"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = "";
foreach ($collegecp2s as $collegecp2)
{
if($produit!=$collegecp2['libelleComplet'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(190,$ht,convertirc($collegecp2['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(30,$ht,convertirc(_('Adhérent')),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeNette']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['commission']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['accessoire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeHt']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false);
$pdf->Cell(30,$ht,convertirc(_('Dépendant')),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeNetteBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['commissionBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['taxeBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false);
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Total"),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false);
$pdf->Cell(120,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
}
else
{
*/
$pdf->Cell(50,$ht,convertirc("Type assuré"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Nb"),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc("P. Base"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("P. Nette"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Carte"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Prime Ttc"),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc("Prime Tot"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = "";
foreach ($collegecp2s as $collegecp2)
{
if($produit!=$collegecp2['libelleComplet'])
{
$pdf->SetFont('Arial','BU', 10);
// $pdf->Cell(190,$ht,convertirc($collegecp2['libelleComplet']),1,1,'C',false);
$pdf->Cell(170,$ht,convertirc($collegecp2['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(50,$ht,convertirc(_('Adhérent')),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeFamille']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeHt']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false);
$pdf->Cell(50,$ht,convertirc(_('Dépendant')),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false);
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(50,$ht,convertirc("Total"),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false);
// $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
// }
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 6 : RENOUVELEMENT ET CLAUSE D'AJUSTEMENT"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Un mois avant l'échéance, un avenant provisionnel de renouvellement sera envoyé à lassuré pour le règlement d'un acompte sur le renouvellement.");
$pdf->MultiCell(0, $ht, $text);
$text = convertirc("La prime définie ci-dessus fera l'objet dans les conditions ci-après d'un ajustement en fonction des résultats de Sinistres sur primes nettes(déduction faite des taxes et commissions des intermédiaires) après la clôture de chaque exercice.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Pour associer lassuré à l'évolution des consommations, un rapport dutilisation trimestriel lui sera régulièrement transmis.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 7: EXCLUSIONS GENERALES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("- Traitement cosmétique et chirurgie esthétique
- Blessures dues à la participation aux jeux et activités dangereuses
- Blessures dues à la participation aux greves et émeutes
- Traitement de fécondité à savoir les frais de traitement liés à la stérilité et à l'impuissance
- Traitement prophylactique, les compléments alimentaires
- Cardiopathie ischemique
- Automutilation intentionnelle,suicide ou influence de l'alcool ou de la drogue
- Cancers de la peau,cancers in situ et mélanomes in situ (sauf les melanones malins)
- Les voyages en avion, sauf si le Membre (ayant payé le billet) voyage dans un avion conçu pour transporter des passagers
- Coût d'appareils auditifs, à moins quil résulte dun accident
- Dépression nerveuse, psychonévrose, à moins qu'il ne résulte d'un accident
- Frais recouvrables en vertu de la Loi sur lIndemnisation des Accidents du Travail ou les services publics de santé, y compris les régimes dindemnisation de l'INSS ou tout autre régime sauf sur demande préalable de lassuré et moyennant une prime correspondante");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 8 : DISPOSITIONS FINALES"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Lors de l'exécution des actes, examens ou traitements des assurés, le professionnel de santé ou l'établissement de soins est seul et unique responsable des complications, incidents ou accidents pouvant survenir dans la pratique de l'art médical.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("En aucun cas, la responsabilité de l'Assureur ne pourra être invoquée pour des faits relevant de la responsabilité du professionnel de santé ou de l'établissement de soins.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Le contrat sera établi en deux (2) exemplaires et prend effet sous réserve des dispositions de l'Article II des CONDITIONS PARTICULIERES, le ".$entetecp['dateEffet']);
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
// DEBUT TEXTE LIBRE
if ($entetecp['texteCp']>" ")
{
$pdf->AddPage();
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("ANNEXES AUX CONDITIONS PARTICULIERES"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc($entetecp['texteCp']);
$pdf->MultiCell(0, $ht, $text);
}
// FIN TEXTE LIBRE
$pdf->Ln(10);
$pdf->SetFont('Arial','BI', 10);
$pdf->Cell(0,$ht,convertirc("Fait à ".$_SESSION['villeSociete'].", le ".$entetecp['dateJour']),0,1,'C',false);
$pdf->Ln(10);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("POUR BICOR VIE ET CAPITALISATION"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc("POUR LASSURE"),0,1,'R',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("LE PRODUCTEUR"),0,1,'L',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("LA DIRECTION"),0,1,'L',false);
$fichier="Temp/TMP_devis"."_".uniqid().".pdf";
$pdf->Output($fichier,"F");
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
$t_html .=' </div ';
echo $t_html;
?>

View File

@ -0,0 +1,681 @@
<?php
$idPolice = $_SESSION['idPolice_d_C'];
$entetecp = $this->police->getEnteteCP($idPolice);
$collegecps = $this->police->getCollegesCP($idPolice);
$collegecp2s = $this->police->getCollegesCP($idPolice);
$garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice);
$tableaupretationcps = $this->police->gettableauPrestationsCP($idPolice);
// $pdf = new FPDF();
$pdf = new FPDF_Protection();
$pdf->SetProtection(array('print'));
$pdf->AliasNbPages();
$pdf->AddPage();
$ht=10;
$pdf->SetMargins(10, 10, 10) ;
$pdf->SetFont('Arial','B', 15);
$pdf->SetY(40);
$pdf->SetFillColor(135,206,250); // bleu
$pdf->Cell(0,$ht,convertirc("MEDICOR PROPOSAL HEALTH INSURANCE"),1,1,'C',true);
$pdf->SetFont('');
$pdf->Ln(15);
$pdf->Cell(45,$ht,convertirc("No Quotation"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false);
$pdf->Cell(45,$ht,convertirc("CLIENT"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['nomClient']),0,1,'L',false);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(45,$ht,convertirc("Headquarter"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("As Insured"),0,0,'C',false);
$pdf->SetFont('Arial','', 10);
$pdf->Ln(15);
$pdf->Cell(0,$ht,convertirc("Near "),0,1,'C',false);
$pdf->Ln(10);
$pdf->SetFont('Arial','B', 15);
$pdf->Cell(0,$ht,convertirc($entetecp['nomSociete']),0,1,'C',false);
$pdf->Ln(15);
$pdf->SetFont('Arial','', 10);
$pdf->Cell(0,$ht,convertirc("The future contract will cover the following guarantees :"),0,1,'C',false);
$pdf->Ln(15);
$pdf->SetFont('Arial','B', 13);
$pdf->Cell(0,$ht,convertirc("DISEASE-HOSPITALIZATION-MATERNITY-OPHTHALOMOLOGY-DENTAL"),0,1,'C',false);
$pdf->AddPage();
$ht=6;
$pdf->SetFont('Arial','B', 15);
$pdf->Cell(0,$ht,convertirc("PARTICULAR DISPOSITIONS"),0,1,'C',false);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc($entetecp['nomClient']),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Declares to subscribe to the general terms and conditions and special provisions of the Group Heath Insurance Agreement and the following particulars with ".$entetecp['nomSociete']." for the persons to be insured, for the guarantees and for the following contribution :");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 1 : PEOPLE TO BE ASSURED"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Staff members of the insured person over the age of 18 and under 65 at the time of entry into the insurance according to the following breakdown:");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(30,$ht,convertirc("Category"),1,0,'C',false);
$pdf->Cell(25,$ht,convertirc("Nb members"),1,0,'C',false);
$pdf->Cell(25,$ht,convertirc("Nb Dep"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Premium member"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Premium Dep"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Tot premium"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$oldnumeroOptionTarif = "0";
$nbAdherent = "0";
$nbAyantdroit = "0";
$primeTtcAdherent = "0";
$primeTtcBeneficiaire = "0";
$primeTtcTotal = "0";
$categorie = "0";
foreach ($collegecps as $collegecp)
{
$numeroOptionTarif = $collegecp['numeroOptionTarif'];
if ($oldnumeroOptionTarif<>$numeroOptionTarif && $oldnumeroOptionTarif <> "0")
{
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Total : Option ".$oldnumeroOptionTarif),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($nbAdherent),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($nbAyantdroit),1,0,'C',false);
$pdf->Cell(40,$ht,format_N($primeTtcAdherent),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcBeneficiaire),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcTotal),1,1,'C',false);
$nbAdherent = "0";
$nbAyantdroit = "0";
$primeTtcAdherent = "0";
$primeTtcBeneficiaire = "0";
$primeTtcTotal = "0";
$pdf->Ln(5);
}
if($categorie!=$collegecp['numeroOptionTarif'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(180,$ht,convertirc($collegecp['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->SetFont('Arial','', 9);
$pdf->Cell(30,$ht,convertirc("Option ".$collegecp['numeroOptionTarif']),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($collegecp['nbAdherent']),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($collegecp['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(40,$ht,format_N($collegecp['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp['primeTtcTotal']),1,1,'C',false);
$nbAdherent += $collegecp['nbAdherent'];
$nbAyantdroit += $collegecp['nbAyantdroit'];
$primeTtcAdherent += $collegecp['primeTtcAdherent'];
$primeTtcBeneficiaire += $collegecp['primeTtcBeneficiaire'];
$primeTtcTotal += $collegecp['primeTtcTotal'];
$oldnumeroOptionTarif = $numeroOptionTarif;
$categorie = $collegecp['numeroOptionTarif'];
}
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Totaux : Option ".$numeroOptionTarif),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($nbAdherent),1,0,'C',false);
$pdf->Cell(25,$ht,format_N($nbAyantdroit),1,0,'C',false);
$pdf->Cell(40,$ht,format_N($primeTtcAdherent),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcBeneficiaire),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($primeTtcTotal),1,1,'C',false);
$pdf->Ln(5);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Outside this age group the cover is the subject of a special agreement between the subscriber and the Insurer.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$text = convertirc("From the age of 60, a medical examination is compulsory for individual insured persons.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 2: TAKING EFFECT AND MODE OF OPERATION OF MEDICOR"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Subject to acceptance by the Insurer, the benefits take effect for each person to be insured:
- From the effective date of the contract for persons to be insured who are already in the Contractor's service.
- Directly after the date of their admission to the Contractor's Department for persons hired after the effective date of the contract. The Contractor's Human Resources Department must be in close collaboration with BICOR LIFE AND CAPITALIZATION. A prorated premium is payable immediately to any person who becomes a Member during the period of coverage.
- Thus, each insured will have a health insurance card that he will present to health care providers and they will verify from his fingerprints his identity and coverage limit via the application of MEDICOR. This will also allow the insured to see in real time where he is with his limit of coverage.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
// $pdf->Ln(5);
$pdf->AddPage();
$pdf->Cell(0,$ht,convertirc("Article 3: DURATION OF THE FUTURE CONTRACT"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("The contract will be signed for a period of one year from ".$entetecp['dateEffet']." to ".$entetecp['dateEcheance'].".
It will be tacitly renewable under the conditions set out in article 6 of these special conditions, unless terminated with one months notice before its expiry.
No obligation to renew the contract is incubent upon the parties. BICOR VIE ET CAPITALISATION reserves the right to refuse or restrict the terms of coverage for all Members or any Member by granting the insured person a notice period of one month in accordance with the conditions set out in article 6 of these special conditions.");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 4 : BENEFITS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1.A. ADVANTAGES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("The health insurance offers the payment of expenses for health care as a result of accident or maternity sickness.
Thus, the following medical benefits are covered:
-outpatient, hospitalization, maternity, ophthalmology, dentistry and chronic diseases.
-conditions of prematurity are covered
-MRI and other special tests are all covered
-Indirect payment: the beneficiary pays his contribution while obtaining the medical service and the provider requests refund or difference to BICOR VIE ET CAPITALISATION (applicable for options with co-payment)
- All medical treatments and medications prescribed by a qualified and registered doctor and which has been authorized by the Ministry of Health. Our medical plan provides access to specialties and generic drugs.
However, specialties must be prescribed by a medical specialist, except in case of emergency by prior authorization.
-Coverage guarantees concern the insured staff, spouse and their dependent children up to age 21 and extended to 25 if the child is still a student.
-Ambulance costs for emergency cases from one hospital to another and from an accident site to the hospital in the event of an accident on Burundian territory. The ambulance service will apply to sick insured persons who are to be treated in a designated hospital, from an area where necessary equipment does not exist, but without exceeding Bif 500,000 during the entire coverage period (and within the annual limit of the hospitalized)
-Treatments in all partner hospitals in East African countries. The insured will go to an appropriate institution according to the partnership of the insurer. He will have to notify the insurer at least 3 days before to allow him to notify the insured persons designated by the insured (only for those who have extraterritorial coverage).
-Treatments in India if necessary, based on a medical report from a specialist doctor attestating tha the same services can not be offerered in East African countries with the prior approval of BICOR VIE ET CAPITALISATION.
-The extension in East African countries is covered within the limit of coverage for dependents of the insured.
-The refund will be based on the most expensive rate depending on the category in which you are insured locally.
-Accommodation of a parent for children under 12 years old in the hospital. This will only apply to coverage abroad
-The single room is covered
-Automatic addition of a newborn and/or spouse without additional premium except card fees
-Automatic addition of a new member with a prorated premium
-Automatic deletion for the agent leaving the group and refund of 75% of the unutilized premium calculated
-pro rata, if no medical service has been paid for him and his dependents
-The issue of health insurance cards within 7 days of notification and/or proof of payment.
-Health insurance cards carry a telephone number which the patient can call if necessary. There will also be a designated claims manager specifically in charge of ".$entetecp['nomClient'].".
-The list of all BICOR VIE ET CAPITALISATION partners is attached to this technical offer
-The refund will be based on the most expensive rate depending on the category in which you are insured locally.
For expenses paid to a provider who has no partnership with BICOR VIE ET CAPITALISATION and which has not been terminated or suspended for fault or bad practice.
-Maximum repayment period in case of direct payment where there is no partnership and after receipt of all required documents: 2 days
-Joint management with the employer of cases of fraud
-Funeral expenses in the event of the death on an insured member or his beneficiary are payable within 24 hours of receipt of the death notice to the employer or to the person he may designate.
-The list of staff and reports of medical consumption will be provided monthly.
-If the limit of the insured person is exceeded during the insurance period, BICOR VIE ET CAPITALISATION may cover him without additional premium if the loss ratio of the ".$entetecp['nomClient']." Group is less than 60%.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. B. REIMBURSEMENT OF CARE"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("No medical act, device, operation or hospitalization is supported if it has not been ordered by a person holding a doctors degree, surgeon or dental surgeon.
No act is taken in charge if it is not performed by a qualified person and in an establishment officially authorized by the Ministry of Health which, except in cases of major force, must be agreed by the insurer.
The system of payment of benefits invoices is in principle the Third party paying by which the beneficiary of the insurance sickness only pays the agreed co-payment and the care provider is paid the balance of his bill by the insurer.
The direct payment which consists in the fact that the insured person pays the entire bill for the medical services and is reimbursed by the insured is only used in exceptional circumstances.
For this purpose, the service provider or the insured if applicable, must submit to the insurer the notes of fees or expenses and the orders paid, dated and mentioning the names and forenames of the insured concerned. The notes must indicate the nature and the date of the care given by distinguishing the cost of each of the acts performed.
Prescriptions must clearly bear the name and surname of the insured and be accompanied by proof of payment of pharmaceutical products.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. C.EXTENT OF THE DISEASE GUARANTEE"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("The coverage includes the insured person himself, his spouse and their legally dependent children under 21 or under 25 if they are still students.
This coverage is also extended to staff who fall ill while on a work mission or on annual leave recognized by the contractor.
In the latter case, the reimbursement will be made on the basis of the KIRA Hospital rate for members of the first category or the Reference Public Hospital for members of the other categories after deduction of the co-payment mentioned in the table of benefits and limits.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Cette couverture est également étendue au personnel qui tomberait malade à l'étranger étant en mission de travail ou en congé annuel reconnu par le contractant.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(2);
$text = convertirc("Dans ce dernier cas, le remboursement se fera sur base du tarif de l'Hôpital privé du BURUNDI pour les adhérents de la première catégorie ou de l'Hôpital Public de référence du BURUNDI pour les adhérents des autres catégories après déduction du ticket modérateur mentionné dans le tableau des prestations et plafonds.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage();
// $pdf->Ln(2);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("4.1. D.BENEFITS AND GUARANTEED RATE"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$pdf->Ln(2);
$text = convertirc("Benefits and guaranteed rates are described, by category, in the tables below :");
$pdf->MultiCell(0, $ht, $text);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(100,$ht,convertirc("Type of provider"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Rate guarantee(%)"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Co-payment(%)"),1,1,'C',false);
$categorie = "";
foreach ($tableaupretationcps as $tableaupretationcp)
{
if($categorie!=$tableaupretationcp['libelleComplet'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(180,$ht,convertirc($tableaupretationcp['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(100,$ht,convertirc($tableaupretationcp['reseausoinEng']),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("100"-$tableaupretationcp['tm']),1,0,'C',false);
$pdf->Cell(40,$ht,$tableaupretationcp['tm'],1,1,'C',false);
$categorie = $tableaupretationcp['libelleComplet'];
}
$pdf->AddPage();
// $pdf->Ln(5);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("LIMITS PER FAMILY OR PER MEMBER"),0,1,'L',false);
$pdf->SetFont('Arial','B', 10);
$pdf->Ln(2);
$pdf->Cell(100,$ht,convertirc("Garantee"),1,0,'C',false);
$pdf->Cell(40,$ht,convertirc("Limit"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Per Ben."),1,1,'C',false);
$produit = "";
foreach ($garantiescollegecps as $garantiescollegecp)
{
if($produit!=$garantiescollegecp['libelleComplet'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(160,$ht,convertirc($garantiescollegecp['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(100,$ht,convertirc($garantiescollegecp['garantieEng']),1,0,'C',false);
$pdf->Cell(40,$ht,format_N($garantiescollegecp['plafond']),1,0,'C',false);
$champApplication = ($garantiescollegecp['champApplication']=="1");
if($champApplication == TRUE)
$check = "4";
else
$check = "";
$pdf->SetFont('ZapfDingbats','', 9);
$pdf->Cell(20, $ht, $check,1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = $garantiescollegecp['libelleComplet'];
}
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("4.2. TERMINATION OF GUARANTEES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Collateral ceases collectively on the day of termination of the contract or on its due date and individually, on the day the insured person reaches the limit of coverage, leaves the contractors service, or dies.
In case of proven fraud, the insurer reserves the right to cancel the insured concerned. All the benefits offered to the insured person must be canceled from the date we became aware of the fraud. Premiums paid are not refundable and the member will no longer be eligible as an insured person for future periods.");
$pdf->MultiCell(0, $ht, $text);
// $pdf->AddPage();
$pdf->Ln(10);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("4.3. SUSPENSION OF GUARANTEES"),0,1,'L',false);
$pdf->SetFont('Arial','', 9);
$text = convertirc("Collateral is suspended collectively if the premiums are not paid within THIRTY (30) days of the effective date of the policy and individually if the premiums are not paid immediately after the insureds membership.");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$text = convertirc("Guarantees will resume immediately upon payment of all outstanding premiums at the time of suspens.");
$pdf->MultiCell(0, $ht, $text);
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 5 : CONTRIBUTIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("The guarantees defined above will be granted with :");
$pdf->MultiCell(0, $ht, $text);
/*
if($entetecp['commission']>"0")
{
$pdf->Cell(30,$ht,convertirc("Type assuré"),1,0,'C',false);
$pdf->Cell(10,$ht,convertirc("Nb"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("P. Base"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Commis°"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Acces"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("P. Nette"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Carte"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Prime Ttc"),1,0,'C',false);
$pdf->Cell(30,$ht,convertirc("Prime Tot"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = "";
foreach ($collegecp2s as $collegecp2)
{
if($produit!=$collegecp2['libelleComplet'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(190,$ht,convertirc($collegecp2['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(30,$ht,convertirc(_('Adhérent')),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeNette']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['commission']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['accessoire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeHt']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false);
$pdf->Cell(30,$ht,convertirc(_('Dépendant')),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeNetteBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['commissionBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['taxeBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false);
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(30,$ht,convertirc("Total"),1,0,'C',false);
$pdf->Cell(10,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false);
$pdf->Cell(120,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(30,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
}
else
{
*/
$pdf->Cell(50,$ht,convertirc("Insured type"),1,0,'C',false);
$pdf->Cell(20,$ht,convertirc("Nb"),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc("Basic premium"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Net premium"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Card"),1,0,'C',false);
// $pdf->Cell(30,$ht,convertirc("Premium Ttc"),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc("Tot Premium"),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
$produit = "";
foreach ($collegecp2s as $collegecp2)
{
if($produit!=$collegecp2['libelleComplet'])
{
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(170,$ht,convertirc($collegecp2['libelleComplet']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
$pdf->Cell(50,$ht,convertirc(_('Adhérent')),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeFamille']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeHt']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false);
$pdf->Cell(50,$ht,convertirc(_('Dépendant')),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false);
// $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false);
$pdf->SetFont('Arial','B', 9);
$pdf->Cell(50,$ht,convertirc("Total"),1,0,'C',false);
$pdf->Cell(20,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false);
// $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,convertirc(""),1,0,'C',false);
$pdf->Cell(50,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false);
$pdf->SetFont('Arial','', 9);
}
// }
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$pdf->AddPage();
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 6: RENEWAL AND PREMIUM ADJUSTEMENT CLAUSE"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("One month before the expiry, a provisional renewal rider will be sent to the insured for payment of a deposit on the renewal.
The premium defined above will be adjusted in accordance with the results of net premium claims (net of taxes and commissions of intermediaries) after the end of each financial year.
To associate the insured with changes in consumptions, quarterly usage report will be regularly transmitted. ");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 7: GENERAL EXCLUSIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("- Cosmetic treatment and cosmetic surgery
- Injuries due to participation in games and dangerous activities
- Injuries due to participation in strikes and riots
- Fertility treatment, namely treatment costs related to infertility and impotence
- Prophylactic treatment, dietary supplements
-Ischemic heart disease
- Intentional self-harm, suicide or the influence of alcohol or drugs
- Skin cancers, in situ cancers and melanomas in situ (except malignant melanomas)
- Air travel, unless the Member (having paid for the ticket) travels in an airplane designed to carry passengers
- Cost of hearing aids, unless resulting from an accident
- Nervous breakdown, psychoneurosis, unless it results from an accident");
$pdf->MultiCell(0, $ht, $text);
$pdf->Ln(5);
$pdf->SetFont('Arial','B', 10);
$pdf->Cell(0,$ht,convertirc("Article 8: FINAL PROVISIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc("When performing the acts, examinations or treatments of the insured, the health professional or the care establishment is the sole and sole responsible for complications, incidents or accidents that may occur in the practice of the medical art.
In no event shall the Insurer's liability be invoked for matters that are the responsibility of the health professional or the health care facility.
The contract will be established in two (2) copies and takes effect subject to the provisions of Article II of the PARTICULAR CONDITIONS, the ".$entetecp['dateEffet']);
$pdf->MultiCell(0, $ht, $text);
// DEBUT TEXTE LIBRE
if ($entetecp['texteCp']>" ")
{
$pdf->AddPage();
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("ANNEXES TO THE PARTICULAR CONDITIONS"),0,1,'L',false);
$pdf->Ln(2);
$pdf->SetFont('Arial','', 9);
$text = convertirc($entetecp['texteCp']);
$pdf->MultiCell(0, $ht, $text);
}
// FIN TEXTE LIBRE
$pdf->Ln(10);
$pdf->SetFont('Arial','BI', 10);
$pdf->Cell(0,$ht,convertirc("Done at ".$_SESSION['villeSociete']." ".$entetecp['dateJour']."."),0,1,'C',false);
$pdf->Ln(10);
$pdf->SetFont('Arial','BU', 10);
$pdf->Cell(0,$ht,convertirc("FOR BICOR VIE ET CAPITALISATION"),0,0,'L',false);
$pdf->Cell(0,$ht,convertirc("FOR INSURED"),0,1,'R',false);
$pdf->Ln(20);
$pdf->Cell(0,$ht,convertirc("UNDERWRITTER"),0,1,'L',false);
$pdf->Ln(20);
$pdf->Cell(0,$ht,convertirc("EXECUTIVE MANAGEMENT"),0,1,'L',false);
$fichier="Temp/TMP_proposal"."_".uniqid().".pdf";
$pdf->Output($fichier,"F");
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
$t_html .=' </div ';
echo $t_html;
?>

View File

@ -0,0 +1,130 @@
<?php
// kane 23/09/2025 => rendre la carte personalisable par societeuser
// Fond blanc
$pdf->SetFillColor(255, 255, 255);
$pdf->Rect(0, 0, 85.6, 54, 'F');
// LOGO SOCIÉTÉ en haut à gauche
if (file_exists($logoSocietePath)) {
$logoGarantPath = $logoSocietePath;
$pdf->Image($logoSocietePath, 3, 3, 15);
}
// LOGO GARANT en haut à droite
//if (file_exists($logoGarantPath)) {
if (is_file($logoGarantPath)) {
$pdf->Image($logoGarantPath, 67, 3, 15);
}
// EN-TÊTE : "CARTE D'ASSURANCE"
$pdf->SetFont('Arial', 'B', 8);
$pdf->SetTextColor(33, 46, 83);
$pdf->SetXY(0, 5);
// $pdf->Cell(85.6, 4, utf8_decode(_('CARTE SANTÉ')), 0, 1, 'C');
$pdf->Cell(85.6, 4, mb_convert_encoding(_('CARTE SANTÉ'), "ISO-8859-1", "UTF-8"), 0, 1, 'C');
$pdf->SetTextColor(0);
// Informations de contact de la société
$pdf->SetFont('Arial', '', 5);
$pdf->SetXY(0, 9);
$pdf->MultiCell(85.6, 3, mb_convert_encoding(_('Siège social').': '. $assure['adresseGeoSociete'].' ', "ISO-8859-1", "UTF-8"), 0, 'C');
$pdf->SetXY(0, 12);
$pdf->Cell(85.6, 3, mb_convert_encoding(_('Tél.').': '.$assure['telephoneSociete'], "ISO-8859-1", "UTF-8"), 0, 1, 'C');
// Ligne séparatrice
$pdf->Line(5, 15, 80, 15);
// Section "Bénéficiaire"
$pdf->SetFont('Arial', 'BUI', 7);
$pdf->SetXY(5, 17);
$pdf->SetTextColor(33, 46, 83);
$pdf->Cell(30, 4, mb_convert_encoding(_('Bénéficiaire'), "ISO-8859-1", "UTF-8"), 0, 1);
$pdf->SetTextColor(0);
// Matricule - en gras et rouge
$pdf->SetFont('Arial', '', 6);
$pdf->SetXY(5, 21);
$pdf->Cell($colonneAlignement - 5, 3, mb_convert_encoding(_('Matricule'), "ISO-8859-1", "UTF-8"), 0, 0);
$pdf->SetFont('Arial', 'B', 6);
$pdf->SetTextColor(255, 0, 0);
$pdf->Cell(25, 3, ' : '.$assure['numeroBeneficiaire'], 0, 1);
$pdf->SetTextColor(0);
// Nom
$pdf->SetFont('Arial', '', 6);
$pdf->SetXY(5, 24);
$pdf->Cell($colonneAlignement - 5, 3, mb_convert_encoding(_('Nom'), "ISO-8859-1", "UTF-8"), 0, 0);
$pdf->SetFont('Arial', 'B', 6);
$pdf->Cell(30, 3, ' : '.substr(mb_convert_encoding($assure['nomBeneficiaire'], "ISO-8859-1", "UTF-8"), 0, 20), 0, 1);
// Prénoms
$pdf->SetFont('Arial', '', 6);
$pdf->SetXY(5, 27);
$pdf->Cell($colonneAlignement - 5, 3, mb_convert_encoding(_('Prénoms'), "ISO-8859-1", "UTF-8"), 0, 0);
$pdf->SetFont('Arial', 'B', 6);
$pdf->Cell(25, 3, ' : '.substr(mb_convert_encoding($assure['prenomsBeneficiaire'], "ISO-8859-1", "UTF-8"), 0, 20), 0, 1);
// Né(e) le - si disponible
if (!empty($assure['dateNaissance'])) {
$pdf->SetFont('Arial', '', 6);
$pdf->SetXY(5, 30);
$pdf->Cell($colonneAlignement - 5, 3, mb_convert_encoding(_('Né(e) le'), "ISO-8859-1", "UTF-8"), 0, 0);
$pdf->SetFont('Arial', 'B', 6);
$pdf->Cell(25, 3, ' : '.dateLang($assure['dateNaissance'], $_SESSION['lang']), 0, 1);
}
$pdf->SetFont('Arial', '', 6);
$pdf->SetXY(5, 33);
$pdf->Cell($colonneAlignement - 5, 3, mb_convert_encoding(_('Statut'), "ISO-8859-1", "UTF-8"), 0, 0);
$pdf->SetFont('Arial', 'B', 6);
$pdf->Cell(28, 3, ' : '.substr(mb_convert_encoding($assure['lienparente'], "ISO-8859-1", "UTF-8"), 0, 20), 0, 1);
// Section "Assuré Principal"
$pdf->SetFont('Arial', 'BUI', 7);
$pdf->SetXY(5, 38);
$pdf->SetTextColor(33, 46, 83);
$pdf->Cell(30, 4, mb_convert_encoding(_('Assuré Principal'), "ISO-8859-1", "UTF-8"), 0, 1);
$pdf->SetTextColor(0);
// Numéro assuré - en gras et rouge
$pdf->SetFont('Arial', '', 6);
$pdf->SetXY(5, 42);
$pdf->Cell($colonneAlignement - 5, 3, mb_convert_encoding(_('Matricule'), "ISO-8859-1", "UTF-8"), 0, 0);
$pdf->SetFont('Arial', 'B', 6);
$pdf->SetTextColor(255, 0, 0);
$pdf->Cell(25, 3, ' : '.$assure['numeroAdherent'], 0, 1);
$pdf->SetTextColor(0);
// Nom et Prénoms assuré
$pdf->SetFont('Arial', '', 6);
$pdf->SetXY(5, 45);
$pdf->Cell($colonneAlignement - 5, 3, mb_convert_encoding(_('Nom & prénoms'), "ISO-8859-1", "UTF-8"), 0, 0);
$pdf->SetFont('Arial', 'B', 6);
$pdf->Cell(15, 3, ' : '.substr(mb_convert_encoding($assure['adherent'], "ISO-8859-1", "UTF-8"), 0, 15), 0, 1);
// Photo de l'assuré (positionnée à droite) - taille réduite
$photoPath = $_SESSION['dossierPhoto_C'].$_SESSION['dossierSociete'].'/Photos/'.$assure['lienPhoto'];
$photoX = 57;
$photoY = 17;
// Vérifier si l'URL est accessible
$headers = @get_headers($photoPath);
if (!empty($assure['lienPhoto']) && $headers && strpos($headers[0], '200')) {
$pdf->Image($photoPath, $photoX, $photoY, 25, 25); // Réduction de 30x30 à 25x25
} else {
// Cadre pour la photo si non disponible
$pdf->Rect($photoX, $photoY, 25, 25);
$pdf->SetFont('Arial', '', 4);
$pdf->SetXY($photoX, $photoY + 12);
$pdf->Cell(25, 3, mb_convert_encoding(_('Photo non disponible'), "ISO-8859-1", "UTF-8"), 0, 1, 'C');
}
// Nom du souscripteur en bas
$pdf->SetFont('Arial', 'B', 6);
$pdf->SetXY(0, 49);
$pdf->Cell(85.6, 3, mb_convert_encoding($assure['souscripteur'], "ISO-8859-1", "UTF-8"), 0, 1, 'C');

View File

@ -0,0 +1,46 @@
<?php
$idCollege = $_SESSION['idCollege'];
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$codeProduit = $this->requete->getParametre("codeProduit");
$libelleCollege = $this->requete->getParametre("libelleCollege");
$nbAdherent = $this->requete->getParametreFormulaire("nbAdherent","numerique");
$nbAyantdroit = $this->requete->getParametreFormulaire("nbAyantdroit","numerique");
$primeFamille = $this->requete->getParametreFormulaire("primeFamille","numerique");
$surprimeAnt = $this->requete->getParametreFormulaire("surprimeAnt","numerique");
$rachatTm = $this->requete->getParametre("rachatTm");
$tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique");
$tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique");
$tauxPrimeRachatTm = $this->requete->getParametreFormulaire("tauxPrimeRachatTm","numerique");
$cplFuneraire = $this->requete->getParametreFormulaire("cplFuneraire","numerique");
$fraisCarte = $this->requete->getParametreFormulaire("fraisCarte","numerique");
$imposerPlafond = $this->requete->getParametreFormulaire("imposerPlafond");
$numeroOptionTarif = $this->requete->getParametreFormulaire("numeroOptionTarif");
$_SESSION['numeroOptionTarif'] = $numeroOptionTarif;
$tauxPrimeFraisFuneraire = $this->requete->getParametreFormulaire("tauxPrimeFraisFuneraire","numerique");
$ageMoyen = $this->requete->getParametreFormulaire("ageMoyen","numerique");
$delaiCarenceCollege = $this->requete->getParametreFormulaire("delaiCarenceCollege","numerique");
$plafondAdherent = $this->requete->getParametreFormulaire("plafondAdherent","numerique");
$plafondBeneficiaire = $this->requete->getParametreFormulaire("plafondBeneficiaire","numerique");
$this->college_temp->recapituler($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit,
$primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte,
$imposerPlafond, $numeroOptionTarif, $tauxPrimeFraisFuneraire, $ageMoyen);
if($this->requete->existeParametre("btn_recap"))
{
$this->rediriger("Modifiercolleged");
}
else
{
$this->college_temp->modifiercollege($idCollegeTemp, $idCollege);
$this->rediriger("Fichedevis");
}
?>

View File

@ -0,0 +1,33 @@
<?php
if ($this->requete->existeParametre("id"))
{
$_SESSION['idCollege']=$this->requete->getParametre("id");
$user = $_SESSION['login'];
$idCollege = $_SESSION['idCollege'];
$idCollegeTemp = $this->college_temp->initModifCollege($idCollege, $user);
$_SESSION['idCollegeTemp'] = $idCollegeTemp;
$this->rediriger("Modifiercolleged");
}
else
{
$idPolice = $_SESSION['idPolice_d_C'];
$idCollege = $_SESSION['idCollege'];
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$collegeTemp = $this->college_temp->getCollegeTemp($idCollegeTemp);
$garantiesbase = $this->college_temp->getGarBaseCollege($idCollegeTemp);
$garoptionnelles = $this->college_temp->getGarOptCollege($idCollegeTemp);
$garoptacquises = $this->college_temp->getGarOptCollegeAcq($idCollegeTemp);
$optionstarif = $this->college_temp->getoptionstarif($idPolice);
$this->genererVue(array('collegeTemp' => $collegeTemp, 'produit' => $this->produit,
'garantiesbase' => $garantiesbase, 'garoptionnelles' => $garoptionnelles,
'garoptacquises' => $garoptacquises, 'rachattm' => $this->rachattm,
'ouinonimposerplafond' => $this->ouinonimposerplafond, 'optionstarif' => $optionstarif));
}
?>

View File

@ -0,0 +1,37 @@
<?php
$idCollege = $_SESSION['idCollege'];
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$codeProduit = $this->requete->getParametre("codeProduit");
$libelleCollege = $this->requete->getParametre("libelleCollege");
$nbAdherent = $this->requete->getParametreFormulaire("nbAdherent","numerique");
$nbAyantdroit = $this->requete->getParametreFormulaire("nbAyantdroit","numerique");
$primeFamille = $this->requete->getParametreFormulaire("primeFamille","numerique");
$surprimeAnt = $this->requete->getParametreFormulaire("surprimeAnt","numerique");
$rachatTm = $this->requete->getParametre("rachatTm");
$tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique");
$tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique");
$tauxPrimeRachatTm = $this->requete->getParametreFormulaire("tauxPrimeRachatTm","numerique");
$cplFuneraire = $this->requete->getParametreFormulaire("cplFuneraire","numerique");
$fraisCarte = $this->requete->getParametreFormulaire("fraisCarte","numerique");
$imposerPlafond = $this->requete->getParametreFormulaire("imposerPlafond");
$tauxPrimeFraisFuneraire = $this->requete->getParametreFormulaire("tauxPrimeFraisFuneraire","numerique");
$delaiCarenceCollege = $this->requete->getParametreFormulaire("delaiCarenceCollege","numerique");
$plafondAdherent = $this->requete->getParametreFormulaire("plafondAdherent","numerique");
$plafondBeneficiaire = $this->requete->getParametreFormulaire("plafondBeneficiaire","numerique");
$this->college_temp->recapituler($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit,
$primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte,
$imposerPlafond, $tauxPrimeFraisFuneraire);
if($this->requete->existeParametre("btn_recap"))
{
$this->rediriger("Modifiercollege");
}
else
{
$this->college_temp->modifiercollege($idCollegeTemp, $idCollege);
$this->rediriger("Collegepolice");
}
?>

View File

@ -0,0 +1,27 @@
<?php
if ($this->requete->existeParametre("id"))
{
$_SESSION['idCollege']=$this->requete->getParametre("id");
$user = $_SESSION['login'];
$idCollege = $_SESSION['idCollege'];
$idCollegeTemp = $this->college_temp->initModifCollege($idCollege, $user);
$_SESSION['idCollegeTemp'] = $idCollegeTemp;
$this->rediriger("Modifiercollege");
}
else
{
$idCollege = $_SESSION['idCollege'];
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$collegeTemp = $this->college_temp->getCollegeTemp($idCollegeTemp);
$garantiesbase = $this->college_temp->getGarBaseCollege($idCollegeTemp);
$garoptionnelles = $this->college_temp->getGarOptCollege($idCollegeTemp);
$garoptacquises = $this->college_temp->getGarOptCollegeAcq($idCollegeTemp);
$this->genererVue(array('collegeTemp' => $collegeTemp, 'produit' => $this->produit,
'garantiesbase' => $garantiesbase, 'garoptionnelles' => $garoptionnelles,
'garoptacquises' => $garoptacquises, 'rachattm' => $this->rachattm,
'ouinonimposerplafond' => $this->ouinonimposerplafond));
}
?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

View File

@ -0,0 +1,682 @@
<?php
require_once '././Framework/Modele.php';
class College_temp extends Modele {
public function ajouterUneGarantie($idCollegeTemp, $codeGarantie)
{
$sql = 'call sp_ajouter_une_garantie_radiant(?, ?)';
// $sql = 'call sp_ajouter_une_garantie_bicor(?, ?)';
$this->executerRequete($sql, array($idCollegeTemp, $codeGarantie));
}
public function getCollegeTemp($idCollegeTemp)
{
$sql = 'call sp_afficher_college_temp(?)';
$collegeTemp = $this->executerRequete($sql, array($idCollegeTemp));
return $collegeTemp->fetch();
}
public function getCollegeTempPolice($idPolice, $user)
{
$sql = 'select * from college_temp where (idPolice=?) and (user=?)';
$collegeTemp = $this->executerRequete($sql, array($idPolice, $user));
return $collegeTemp->fetchAll(PDO::FETCH_ASSOC);
}
public function getCollegeTempPoliceRen($idPolice, $user)
{
$sql = 'select * from college_ren_temp where (idPolice=?) and (user=?) order by codeProduit, libelleCollege';
$collegeTemp = $this->executerRequete($sql, array($idPolice, $user));
return $collegeTemp->fetchAll(PDO::FETCH_ASSOC);
}
public function getGarCollege($idCollegeTemp)
{
$sql = 'select * from garantie_temp where (idCollegeTemp=?) order by ordre';
$garanties = $this->executerRequete($sql, array($idCollegeTemp));
return $garanties;
}
public function getGarAddCollege($idCollegeTemp)
{
$sql = 'select A.*, B.plafond as plafondOld, B.plafond+A.plafond as plafondNew from garantieaddition_temp A
join garantie_temp B on (B.user=A.user) and (B.idCollegeTemp=A.idCollegeTemp) and (B.codeGarantie=A.codeGarantie)
where (A.idCollegeTemp=?) order by A.ordre';
$garanties = $this->executerRequete($sql, array($idCollegeTemp));
return $garanties;
}
public function getGarBaseCollege($idCollegeTemp)
{
$sql = 'select * from garantie_temp where (idCollegeTemp=?) and (optionnelle!="1") order by ordre';
$garanties = $this->executerRequete($sql, array($idCollegeTemp));
return $garanties;
}
public function getGarOptCollege($idCollegeTemp)
{
$sql = 'CALL sp_get_gar_opt_college(?);';
$resultat = $this->executerRequete($sql, array($idCollegeTemp));
return $resultat->fetchAll(PDO::FETCH_ASSOC);
}
public function getGarOptCollegeAcq($idCollegeTemp)
{
$sql = 'select * from garantie_temp where (idCollegeTemp=?) and (optionnelle="1") order by ordre';
$garanties = $this->executerRequete($sql, array($idCollegeTemp));
return $garanties;
}
public function getPrestation($idCollegeTemp)
{
$sql = 'select A.*, B.libelle as reseausoin from prestation_temp A
join reseausoins B on (B.codeReseau=A.codeReseau)
where (A.idCollegeTemp=?) order by A.tmBase, A.tm';
$prestations = $this->executerRequete($sql, array($idCollegeTemp));
return $prestations;
}
public function supprimer($idCollegeTemp) {
$sql = 'DELETE FROM college_temp WHERE (id=?)';
$this->executerRequete($sql, array($idCollegeTemp));
$sql = 'DELETE FROM garantie_temp WHERE (idCollegeTemp=?)';
$this->executerRequete($sql, array($idCollegeTemp));
}
public function supprimergarantie($idGarantie) {
$sql = 'DELETE FROM garantie_temp WHERE (id=?)';
$this->executerRequete($sql, array($idGarantie));
}
public function initCollege($idPolice, $user)
{
$codeSociete = $_SESSION['codeSociete'];
if (est_anglophone())
{
$sql = 'CALL sp_init_college_eng(?, ?, ?);';
}
else
{
$sql = 'CALL sp_init_college(?, ?, ?);';
}
$this->executerRequete($sql, array($idPolice, $codeSociete, $user));
$resultat = $this->executerRequete($sql, array($idPolice, $codeSociete, $user));
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
$idCollegeTemp = $ligne['idCollegeTemp'];
$_SESSION['idCollegeTemp'] = $idCollegeTemp;
return $idCollegeTemp;
}
public function initModifCollege($idCollege, $user)
{
$this->viderCollegTemp($user);
$sql = 'CALL sp_init_modifier_college(?, ?);';
$this->executerRequete($sql, array($idCollege, $user));
$resultat = $this->executerRequete($sql, array($idCollege, $user));
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
$idCollegeTemp = $ligne['idCollegeTemp'];
$_SESSION['idCollegeTemp'] = $idCollegeTemp;
return $idCollegeTemp;
}
public function recapituler($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit, $primeFamille,
$surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte, $imposerPlafond, $tauxPrimeFraisFuneraire)
{
$sql = 'call sp_recapituller_college_temp_radiant(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
// $sql = 'call sp_recapituller_college_temp_bicor(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
$this->executerRequete($sql, array($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit,
$primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte,
$imposerPlafond, $tauxPrimeFraisFuneraire));
}
public function maj($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit, $primeFamille,
$surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm)
{
$sql = 'call sp_maj_college_temp(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
$this->executerRequete($sql, array($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit,
$primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm));
}
public function enregistrer($idCollegeTemp)
{
$sql = 'insert into college (codeSociete, idPolice, numeroPolice, codeProduit, libelleCollege, nbAdherent, nbAyantdroit, primeFamille,
primeBeneficiaire, surprimeOption, surprimeTm, surprimeAnt, commission, commissionAutre, primeNette, primeNetteStat, primeHt,
taxe, fraisCarte, primeTtc, primeTtcAdherent, rachatTm, cplFuneraire, primeCplFuneraire, primeTtcTotal,
user, deduireComm, surprimeOptionBeneficiaire, surprimeTmBeneficiaire, surprimeAntBeneficiaire, commissionBeneficiaire,
commissionAutreBeneficiaire, primeNetteBeneficiaire, primeNetteStatBeneficiaire, primeHtBeneficiaire, taxeBeneficiaire,
fraisCarteBeneficiaire, primeTtcBeneficiaire, cplFuneraireBeneficiaire, primeCplFuneraireBeneficiaire, tauxRachatTm,
tauxPrimeRachatTm, imposerPlafond, tauxPrimeFraisFuneraire, delaiCarenceCollege)
select codeSociete, idPolice, numeroPolice, codeProduit, libelleCollege, nbAdherent, nbAyantdroit, primeFamille,
primeBeneficiaire, surprimeOption, surprimeTm, surprimeAnt, commission, commissionAutre, primeNette, primeNetteStat, primeHt,
taxe, fraisCarte, primeTtc, primeTtcAdherent, rachatTm, cplFuneraire, primeCplFuneraire, primeTtcTotal,
user, deduireComm, surprimeOptionBeneficiaire, surprimeTmBeneficiaire, surprimeAntBeneficiaire, commissionBeneficiaire,
commissionAutreBeneficiaire, primeNetteBeneficiaire, primeNetteStatBeneficiaire, primeHtBeneficiaire, taxeBeneficiaire,
fraisCarteBeneficiaire, primeTtcBeneficiaire, cplFuneraireBeneficiaire, primeCplFuneraireBeneficiaire, tauxRachatTm,
tauxPrimeRachatTm, imposerPlafond, tauxPrimeFraisFuneraire, delaiCarenceCollege
from college_temp where id=?';
$this->executerRequete($sql, array($idCollegeTemp));
$idCollege = $this->dernierId();
$this->ajouterGarantieCollege($idCollege, $idCollegeTemp);
$this->ajouterTableauPrestation($idCollege, $idCollegeTemp);
$user = $_SESSION['login'];
$this->viderCollegTemp($user);
}
public function modifiercollege($idCollegeTemp, $idCollege)
{
$user = $_SESSION['login'];
$sql = 'call sp_modifier_college(?, ?, ?)';
$this->executerRequete($sql, array($idCollegeTemp, $idCollege, $user));
}
public function ajouterGarantieCollege($idCollege, $idCollegeTemp)
{
$sql = 'delete from garantiecollege where idCollege=?';
$this->executerRequete($sql, array($idCollege));
$sql = 'insert into garantiecollege (codeSociete, idCollege, idPolice, numeroPolice, codeGarantie, garantie, garantieEng, optionnelle,
additionnelle, tauxPlafond, forfaitPlafond, primeOption, user, plafond, plafondLettre, primeFamille, ordre, champApplication,
tauxPrime, capital)
select codeSociete, ? as idCollege, idPolice, numeroPolice, codeGarantie, garantie, garantieEng, optionnelle,
additionnelle, tauxPlafond, forfaitPlafond, primeOption, user, plafond, plafondLettre, primeFamille, ordre, champApplication,
tauxPrime, capital
from garantie_temp where idCollegeTemp=?';
$this->executerRequete($sql, array($idCollege, $idCollegeTemp));
}
public function ajouterTableauPrestation($idCollege, $idCollegeTemp)
{
$sql = 'delete from prestationcollege where idCollege=?';
$this->executerRequete($sql, array($idCollege));
$sql = 'insert into prestationcollege (
codeSociete,
idCollege,
idPolice,
numeroPolice,
codeProduit,
codeReseau,
tm,
`user`,
dateSysteme,
tmBase,
rachatTm,
tauxRachatTm
)
select
codeSociete,
? as idCollege,
idPolice,
numeroPolice,
codeProduit,
codeReseau,
tm,
`user`,
dateSysteme,
tmBase,
rachatTm,
tauxRachatTm
from prestation_temp where idCollegeTemp=?';
$this->executerRequete($sql, array($idCollege, $idCollegeTemp));
}
public function initGarantieCollege($idCollegeTemp)
{
$sql = 'insert into garantie_temp
(
codeSociete,
idCollegeTemp,
idPolice,
numeroPolice,
codeGarantie,
garantie,
garantieEng,
optionnelle,
additionnelle,
tauxPlafond,
forfaitPlafond,
user,
plafond,
ordre,
plafondLettre,
champApplication
)
select
A.codeSociete,
B.id as idCollegeTemp,
B.idPolice,
B.numeroPolice,
A.codeGarantie,
A.libelle as garantie,
A.libelleEng as garantieEng,
A.optionnelle,
A.additionnelle,
A.tauxPlafond,
A.forfaitPlafond,
B.user,
ROUND((B.primeFamille*A.tauxPlafond),0)+A.forfaitPlafond as plafond,
A.ordre, A.plafondLettre,
A.champApplication
from garantie A
join college_temp B on (B.codeSociete=A.codeSociete)
Where (B.id=?) and optionnelle!="1"';
$this->executerRequete($sql, array($idCollegeTemp));
}
public function initPrestationCollege($idCollegeTemp)
{
$user = $_SESSION['login'];
$codeProduitBase = $_SESSION['codeProduitBase'];
$sql = 'call sp_init_prestation_college(?, ?, ?)';
$this->executerRequete($sql, array($idCollegeTemp, $codeProduitBase, $user));
}
public function initModifGarantieCollege($idCollegeTemp)
{
$sql = 'insert into garantie_temp
(
codeSociete,
idCollege,
idCollegeTemp,
idPolice,
numeroPolice,
codeGarantie,
garantie,
garantieEng,
optionnelle,
additionnelle,
tauxPlafond,
forfaitPlafond,
primeOption,
user,
plafond,
ordre,
plafondLettre,
primeFamille,
champApplication
)
select
A.codeSociete,
A.idCollege,
B.id as idCollegeTemp,
B.idPolice,
B.numeroPolice,
A.codeGarantie,
A.garantie,
A.garantieEng,
A.optionnelle,
A.additionnelle,
A.tauxPlafond,
A.forfaitPlafond,
A.primeOption,
B.user,
A.plafond,
A.ordre, A.plafondLettre,
A.primeFamille,
A.champApplication
from garantiecollege A
join college_temp B on (B.codeSociete=A.codeSociete) and (B.idCollege=A.idCollege)
Where (B.id=?)';
$this->executerRequete($sql, array($idCollegeTemp));
}
public function initModifPrestation($idCollegeTemp)
{
$sql = 'insert into prestation_temp (
codeSociete,
idCollegeTemp,
idCollege,
idPolice,
numeroPolice,
codeProduit,
codeReseau,
tm,
user,
dateSysteme,
tmBase,
rachatTm,
tauxRachatTm,
tauxPrimeRachatTm
)
select
A.codeSociete,
B.id as idCollegeTemp,
B.idCollege,
B.idPolice,
B.numeroPolice,
A.codeProduit,
A.codeReseau,
A.tm,
B.user,
now() as dateSysteme,
A.tmBase,
B.rachatTm,
B.tauxRachatTm,
B.tauxPrimeRachatTm
from prestationcollege A
join college_temp B on (B.codeSociete=A.codeSociete) and (B.idCollege=A.idCollege)
Where (B.id=?)';
$this->executerRequete($sql, array($idCollegeTemp));
}
public function majtauxplafond($idGarantie, $tauxPlafond)
{
$sql = 'update garantie_temp set tauxPlafond=? where (id=?)';
$this->executerRequete($sql, array($tauxPlafond, $idGarantie));
$sql = 'update garantie_temp set plafond= ROUND((primeFamille*tauxPlafond),0)+forfaitPlafond where (id=?)';
$this->executerRequete($sql, array($idGarantie));
}
public function imposerplafond($idGarantie, $plafond)
{
$sql = 'update garantie_temp set plafond=? where (id=?)';
$this->executerRequete($sql, array($plafond, $idGarantie));
}
public function majtm($idPrestation, $tm)
{
$sql = 'update prestation_temp set tm=? where (id=?)';
$this->executerRequete($sql, array($tm, $idPrestation));
}
public function majtmprestatairenplus($idPrestation, $tm)
{
$sql = 'update prestationcollegeplus set tm=? where (id=?)';
$this->executerRequete($sql, array($tm, $idPrestation));
}
public function retirerprestatairenplus($idPrestation)
{
$sql = 'delete from prestationcollegeplus where (id=?)';
$this->executerRequete($sql, array($idPrestation));
}
public function ajouterunprestataireenplus($codePrestataire)
{
$idCollege = $_SESSION['idCollege'];
$user = $_SESSION['login'];
$sql = 'call sp_ajouterprestataireenplus(?, ?, ?)';
$this->executerRequete($sql, array($idCollege, $codePrestataire, $user));
}
public function ajouterunprestataireenmoins($codePrestataire)
{
$idCollege = $_SESSION['idCollege'];
$user = $_SESSION['login'];
$sql = 'call sp_ajouterprestataireenmoins(?, ?, ?)';
$this->executerRequete($sql, array($idCollege, $codePrestataire, $user));
}
public function retirerprestatairenmoins($idPrestation)
{
$sql = 'delete from prestationcollegemoins where (id=?)';
$this->executerRequete($sql, array($idPrestation));
}
// ajouterunprestatairetm
public function ajouterunprestatairetm($codePrestataire)
{
$idCollege = $_SESSION['idCollege'];
$user = $_SESSION['login'];
$sql = 'call sp_ajouterprestatairetm(?, ?, ?)';
$this->executerRequete($sql, array($idCollege, $codePrestataire, $user));
}
public function retirerprestatairetm($idPrestation)
{
$sql = 'delete from prestationcollegetm where (id=?)';
$this->executerRequete($sql, array($idPrestation));
}
public function majtmprestatairetm($idPrestation, $tm)
{
$sql = 'update prestationcollegetm set tm=? where (id=?)';
$this->executerRequete($sql, array($tm, $idPrestation));
}
public function majPrimeOpt($idGarantie, $primeOption)
{
$sql = 'call sp_maj_prime_opt(?, ?)';
$this->executerRequete($sql, array($idGarantie, $primeOption));
}
public function majPlafondOpt($idGarantie, $plafondOption)
{
$sql = 'call sp_maj_plafond_opt(?, ?)';
$this->executerRequete($sql, array($idGarantie, $plafondOption));
}
public function majlibgar($idGarantie, $libellegarantie)
{
$sql = 'update garantie_temp set garantie=? where (id=?)';
$this->executerRequete($sql, array($libellegarantie, $idGarantie));
}
public function viderCollegTemp($user)
{
$sql = 'DELETE FROM college_temp WHERE (user=?)';
$this->executerRequete($sql, array($user));
$sql = 'DELETE FROM garantie_temp WHERE (user=?)';
$this->executerRequete($sql, array($user));
$sql = 'DELETE FROM prestation_temp WHERE (user=?)';
$this->executerRequete($sql, array($user));
}
public function init_changement_college($idAdherent)
{
$user = $_SESSION['login'];
$sql = 'call sp_init_changement_college(?, ?)';
$college_temp = $this->executerRequete($sql, array($idAdherent, $user));
return $college_temp->fetch();
}
public function changer_college_temp($idAdherent, $idCollege)
{
$user = $_SESSION['login'];
$sql = 'call sp_changer_college_temp(?, ?, ?)';
$college_temp = $this->executerRequete($sql, array($idAdherent, $idCollege, $user));
return $college_temp->fetch();
}
public function changer_college($idAdherent)
{
$user = $_SESSION['login'];
$sql = 'call sp_changer_college(?, ?)';
$this->executerRequete($sql, array($idAdherent, $user));
}
public function getCollegesPolice()
{
$user = $_SESSION['login'];
$sql = 'SELECT * FROM college_temp WHERE (user=?) order by libelleCollege';
$college = $this->executerRequete($sql, array($user));
return $college;
}
public function getTotaldcollege($idPolice) {
$user = $_SESSION['login'];
$sql = 'call sp_totalcollege_temp(?, ?)';
$totalcollege = $this->executerRequete($sql, array($idPolice, $user));
return $totalcollege->fetch(PDO::FETCH_ASSOC);
}
public function selectioncollegetemp($idCollegeTemp, $choix) {
$sql = 'update college_temp set choix=? WHERE (id=?)';
$this->executerRequete($sql, array($choix, $idCollegeTemp));
}
public function majplafondadd($idGarantie, $plafond)
{
$sql = 'update garantieaddition_temp set plafond=? where (id=?)';
$this->executerRequete($sql, array($plafond, $idGarantie));
}
public function majprimeadd($idGarantie, $primeOption)
{
$sql = 'update garantieaddition_temp set primeOption=? where (id=?)';
$this->executerRequete($sql, array($primeOption, $idGarantie));
}
public function recapituler_maj_limite_college($idCollegeTemp)
{
$user = $_SESSION['login'];
$sql = 'call sp_recapituller_maj_limite_college(?, ?)';
$this->executerRequete($sql, array($idCollegeTemp, $user));
}
public function modifierlimitecollegetemp($idCollegeTemp)
{
$user = $_SESSION['login'];
$sql = 'call sp_modifier_limite_college_temp(?)';
$this->executerRequete($sql, array($idCollegeTemp, $user));
}
public function getCollegepoliceId($idCollege) {
$sql = 'SELECT A.id AS idCollege, A.*, B.libelle as produit
from college A
join produit B on (B.codeSociete=A.codeSociete) AND (B.codeProduit=A.codeProduit)
where A.id=?';
$college = $this->executerRequete($sql, array($idCollege));
return $college->fetch();
}
public function getprestatairehorsreseau($idCollege) {
$sql = 'call sp_getprestatairehorsreseau(?);';
$college = $this->executerRequete($sql, array($idCollege));
return $college->fetchAll(PDO::FETCH_ASSOC);
}
public function getprestataireenplus($idCollege) {
$sql = 'call sp_getprestataireenplus(?);';
$college = $this->executerRequete($sql, array($idCollege));
return $college->fetchAll(PDO::FETCH_ASSOC);
}
// Prestataires en moins
public function getprestatairereseau($idCollege) {
$sql = 'call sp_getprestatairereseau(?);';
$college = $this->executerRequete($sql, array($idCollege));
return $college->fetchAll(PDO::FETCH_ASSOC);
}
public function getprestataireenmoins($idCollege) {
$sql = 'call sp_getprestataireenmoins(?);';
$college = $this->executerRequete($sql, array($idCollege));
return $college->fetchAll(PDO::FETCH_ASSOC);
}
public function getListeCollege($idPolice) {
$sql = 'SELECT id as code, CONCAT(codeProduit, " : ", libelleCollege) as libelle FROM college
where (idPolice=?) order by 2';
$liste = $this->executerRequete($sql, array($idPolice));
return $liste;
// return $liste->fetch(PDO::FETCH_ASSOC);
}
// Prestataires dérogation TM
public function getprestatairereseautm($idCollege) {
$sql = 'call sp_getprestatairereseau_tm(?);';
$college = $this->executerRequete($sql, array($idCollege));
return $college->fetchAll(PDO::FETCH_ASSOC);
}
public function getprestatairetm($idCollege) {
$sql = 'call sp_getprestataire_tm(?);';
$college = $this->executerRequete($sql, array($idCollege));
return $college->fetchAll(PDO::FETCH_ASSOC);
}
public function majchampapplicationplafond($idGarantie, $choix)
{
$sql = 'update garantie_temp set champApplication=? where (id=?)';
$this->executerRequete($sql, array($choix, $idGarantie));
}
public function changecategorie($codeProduit)
{
$codeSociete = $_SESSION['codeSociete'];
// $user = $_SESSION['login'];
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$sql = 'CALL sp_modifier_categorie_college_temp(?, ?, ?);';
$resultat = $this->executerRequete($sql, array($idCollegeTemp, $codeSociete, $codeProduit));
return $resultat->fetch(PDO::FETCH_ASSOC);
}
public function maj_libelle_college($idCollegeTemp, $nouvLibelleCollege)
{
$sql = 'CALL sp_maj_libelle_college(?, ?);';
$this->executerRequete($sql, array($idCollegeTemp, $nouvLibelleCollege));
}
}

View File

@ -0,0 +1,528 @@
<?php
require_once 'Framework/Modele.php';
class College_temp_d extends Modele {
public function ajouterUneGarantie($idCollegeTemp, $codeGarantie)
{
$sql = 'call sp_ajouter_une_garantie(?, ?)';
$this->executerRequete($sql, array($idCollegeTemp, $codeGarantie));
}
public function getCollegeTemp($idCollegeTemp)
{
$sql = 'call sp_afficher_college_temp(?)';
$collegeTemp = $this->executerRequete($sql, array($idCollegeTemp));
return $collegeTemp->fetch();
}
public function getCollegeTempPolice($idPolice, $user)
{
$sql = 'select * from college_temp where (idPolice=?) and (user=?)';
$collegeTemp = $this->executerRequete($sql, array($idPolice, $user));
return $collegeTemp->fetchAll(PDO::FETCH_ASSOC);
}
public function getCollegeTempPoliceRen($idPolice, $user)
{
$sql = 'select * from college_ren_temp where (idPolice=?) and (user=?) order by codeProduit, libelleCollege';
$collegeTemp = $this->executerRequete($sql, array($idPolice, $user));
return $collegeTemp->fetchAll(PDO::FETCH_ASSOC);
}
public function getGarCollege($idCollegeTemp)
{
$sql = 'select * from garantie_temp where (idCollegeTemp=?) order by ordre';
$garanties = $this->executerRequete($sql, array($idCollegeTemp));
return $garanties;
}
public function getGarAddCollege($idCollegeTemp)
{
$sql = 'select A.*, B.plafond as plafondOld, B.plafond+A.plafond as plafondNew from garantieaddition_temp A
join garantie_temp B on (B.user=A.user) and (B.idCollegeTemp=A.idCollegeTemp) and (B.codeGarantie=A.codeGarantie)
where (A.idCollegeTemp=?) order by A.ordre';
$garanties = $this->executerRequete($sql, array($idCollegeTemp));
return $garanties;
}
public function getGarBaseCollege($idCollegeTemp)
{
$sql = 'select * from garantie_temp where (idCollegeTemp=?) and (optionnelle!="1") order by ordre';
$garanties = $this->executerRequete($sql, array($idCollegeTemp));
return $garanties;
}
public function getGarOptCollege($idCollegeTemp)
{
$sql = 'CALL sp_get_gar_opt_college(?);';
$resultat = $this->executerRequete($sql, array($idCollegeTemp));
return $resultat->fetchAll(PDO::FETCH_ASSOC);
}
public function getGarOptCollegeAcq($idCollegeTemp)
{
$sql = 'select * from garantie_temp where (idCollegeTemp=?) and (optionnelle="1") order by ordre';
$garanties = $this->executerRequete($sql, array($idCollegeTemp));
return $garanties;
}
public function getPrestation($idCollegeTemp)
{
$sql = 'select A.*, B.libelle as reseausoin from prestation_temp A
join reseausoins B on (B.codeReseau=A.codeReseau)
where (A.idCollegeTemp=?) order by A.tmBase, A.tm';
$prestations = $this->executerRequete($sql, array($idCollegeTemp));
return $prestations;
}
public function supprimer($idCollegeTemp) {
$sql = 'DELETE FROM college_temp WHERE (id=?)';
$this->executerRequete($sql, array($idCollegeTemp));
$sql = 'DELETE FROM garantie_temp WHERE (idCollegeTemp=?)';
$this->executerRequete($sql, array($idCollegeTemp));
}
public function supprimergarantie($idGarantie) {
$sql = 'DELETE FROM garantie_temp WHERE (id=?)';
$this->executerRequete($sql, array($idGarantie));
}
public function initCollege($idPolice, $user)
{
$codeSociete = $_SESSION['codeSociete'];
$numeroOptionTarif = $_SESSION['numeroOptionTarif'];
if (est_anglophone())
{
$sql = 'CALL sp_init_college_d_eng(?, ?, ?, ?);';
}
else
{
$sql = 'CALL sp_init_college_d(?, ?, ?, ?);';
}
$resultat = $this->executerRequete($sql, array($idPolice, $codeSociete, $numeroOptionTarif, $user));
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
$idCollegeTemp = $ligne['idCollegeTemp'];
$_SESSION['idCollegeTemp'] = $idCollegeTemp;
return $idCollegeTemp;
}
public function initModifCollege($idCollege, $user)
{
$sql = 'CALL sp_init_modifier_college_d(?, ?);';
$this->executerRequete($sql, array($idCollege, $user));
$resultat = $this->executerRequete($sql, array($idCollege, $user));
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
$idCollegeTemp = $ligne['idCollegeTemp'];
$_SESSION['idCollegeTemp'] = $idCollegeTemp;
return $idCollegeTemp;
}
public function recapituler($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit, $primeFamille,
$surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte, $imposerPlafond,
$numeroOptionTarif, $tauxPrimeFraisFuneraire)
{
// $sql = 'call sp_recapituller_college_temp_d_bicor(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
$sql = 'call sp_recapituller_college_temp_d_radiant(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
$this->executerRequete($sql, array($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit,
$primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte,
$imposerPlafond, $numeroOptionTarif, $tauxPrimeFraisFuneraire));
}
public function maj($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit, $primeFamille,
$surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm)
{
$sql = 'call sp_maj_college_temp(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
$this->executerRequete($sql, array($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit,
$primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm));
}
public function enregistrer($idCollegeTemp)
{
$sql = 'insert into d_college (codeSociete, idPolice, numeroPolice, codeProduit, libelleCollege, nbAdherent, nbAyantdroit, primeFamille,
primeBeneficiaire, surprimeOption, surprimeTm, surprimeAnt, commission, commissionAutre, primeNette, primeNetteStat, primeHt,
taxe, fraisCarte, primeTtc, primeTtcAdherent, rachatTm, cplFuneraire, primeCplFuneraire, primeTtcTotal,
user, deduireComm, surprimeOptionBeneficiaire, surprimeTmBeneficiaire, surprimeAntBeneficiaire, commissionBeneficiaire,
commissionAutreBeneficiaire, primeNetteBeneficiaire, primeNetteStatBeneficiaire, primeHtBeneficiaire, taxeBeneficiaire, fraisCarteBeneficiaire,
primeTtcBeneficiaire, cplFuneraireBeneficiaire, primeCplFuneraireBeneficiaire, tauxRachatTm, tauxPrimeRachatTm, imposerPlafond,
idOptionTarif, numeroOptionTarif, tauxPrimeFraisFuneraire, delaiCarenceCollege)
select codeSociete, idPolice, numeroPolice, codeProduit, libelleCollege, nbAdherent, nbAyantdroit, primeFamille,
primeBeneficiaire, surprimeOption, surprimeTm, surprimeAnt, commission, commissionAutre, primeNette, primeNetteStat, primeHt,
taxe, fraisCarte, primeTtc, primeTtcAdherent, rachatTm, cplFuneraire, primeCplFuneraire, primeTtcTotal,
user, deduireComm, surprimeOptionBeneficiaire, surprimeTmBeneficiaire, surprimeAntBeneficiaire, commissionBeneficiaire,
commissionAutreBeneficiaire, primeNetteBeneficiaire, primeNetteStatBeneficiaire, primeHtBeneficiaire, taxeBeneficiaire, fraisCarteBeneficiaire,
primeTtcBeneficiaire, cplFuneraireBeneficiaire, primeCplFuneraireBeneficiaire, tauxRachatTm, tauxPrimeRachatTm, imposerPlafond,
idOptionTarif, numeroOptionTarif, tauxPrimeFraisFuneraire, delaiCarenceCollege
from college_temp where id=?';
$this->executerRequete($sql, array($idCollegeTemp));
$idCollege = $this->dernierId();
$this->ajouterGarantieCollege($idCollege, $idCollegeTemp);
$this->ajouterTableauPrestation($idCollege, $idCollegeTemp);
$user = $_SESSION['login'];
$this->viderCollegTemp($user);
}
public function modifiercollege($idCollegeTemp, $idCollege)
{
$user = $_SESSION['login'];
$sql = 'call sp_modifier_college_d(?, ?, ?)';
$this->executerRequete($sql, array($idCollegeTemp, $idCollege, $user));
}
public function ajouterGarantieCollege($idCollege, $idCollegeTemp)
{
$sql = 'delete from d_garantiecollege where idCollege=?';
$this->executerRequete($sql, array($idCollege));
$sql = 'insert into d_garantiecollege (codeSociete, idCollege, idPolice, numeroPolice, codeGarantie, garantie, garantieEng, optionnelle,
additionnelle, tauxPlafond, forfaitPlafond, primeOption, user, plafond, plafondLettre, primeFamille, ordre, champApplication,
tauxPrime, capital)
select codeSociete, ? as idCollege, idPolice, numeroPolice, codeGarantie, garantie, garantieEng, optionnelle,
additionnelle, tauxPlafond, forfaitPlafond, primeOption, user, plafond, plafondLettre, primeFamille, ordre, champApplication,
tauxPrime, capital
from garantie_temp where idCollegeTemp=?';
$this->executerRequete($sql, array($idCollege, $idCollegeTemp));
}
public function ajouterTableauPrestation($idCollege, $idCollegeTemp)
{
$sql = 'delete from d_prestationcollege where idCollege=?';
$this->executerRequete($sql, array($idCollege));
$sql = 'insert into d_prestationcollege (
codeSociete,
idCollege,
idPolice,
numeroPolice,
codeProduit,
codeReseau,
tm,
`user`,
dateSysteme,
tmBase,
rachatTm,
tauxRachatTm
)
select
codeSociete,
? as idCollege,
idPolice,
numeroPolice,
codeProduit,
codeReseau,
tm,
`user`,
dateSysteme,
tmBase,
rachatTm,
tauxRachatTm
from prestation_temp where idCollegeTemp=?';
$this->executerRequete($sql, array($idCollege, $idCollegeTemp));
}
public function initGarantieCollege($idCollegeTemp)
{
$sql = 'insert into garantie_temp
(
codeSociete,
idCollegeTemp,
idPolice,
numeroPolice,
codeGarantie,
garantie,
garantieEng,
optionnelle,
additionnelle,
tauxPlafond,
forfaitPlafond,
user,
plafond,
ordre,
plafondLettre,
champApplication
)
select
A.codeSociete,
B.id as idCollegeTemp,
B.idPolice,
B.numeroPolice,
A.codeGarantie,
A.libelle as garantie,
A.libelleEng as garantieEng,
A.optionnelle,
A.additionnelle,
A.tauxPlafond,
A.forfaitPlafond,
B.user,
ROUND((B.primeFamille*A.tauxPlafond),0)+A.forfaitPlafond as plafond,
A.ordre, A.plafondLettre,
A.champApplication
from garantie A
join college_temp B on (B.codeSociete=A.codeSociete)
Where (B.id=?) and optionnelle!="1"';
$this->executerRequete($sql, array($idCollegeTemp));
}
public function initPrestationCollege($idCollegeTemp)
{
$user = $_SESSION['login'];
$codeProduitBase = $_SESSION['codeProduitBase'];
$sql = 'call sp_init_prestation_college(?, ?, ?)';
$this->executerRequete($sql, array($idCollegeTemp, $codeProduitBase, $user));
}
public function initModifGarantieCollege($idCollegeTemp)
{
$sql = 'insert into garantie_temp
(
codeSociete,
idCollege,
idCollegeTemp,
idPolice,
numeroPolice,
codeGarantie,
garantie,
garantieEng,
optionnelle,
additionnelle,
tauxPlafond,
forfaitPlafond,
primeOption,
user,
plafond,
ordre,
plafondLettre,
primeFamille,
champApplication
)
select
A.codeSociete,
A.idCollege,
B.id as idCollegeTemp,
B.idPolice,
B.numeroPolice,
A.codeGarantie,
A.garantie,
A.garantieEng,
A.optionnelle,
A.additionnelle,
A.tauxPlafond,
A.forfaitPlafond,
A.primeOption,
B.user,
A.plafond,
A.ordre, A.plafondLettre,
A.primeFamille,
A.champApplication
from d_garantiecollege A
join college_temp B on (B.codeSociete=A.codeSociete) and (B.idCollege=A.idCollege)
Where (B.id=?)';
$this->executerRequete($sql, array($idCollegeTemp));
}
public function initModifPrestation($idCollegeTemp)
{
$sql = 'insert into prestation_temp (
codeSociete,
idCollegeTemp,
idCollege,
idPolice,
numeroPolice,
codeProduit,
codeReseau,
tm,
user,
dateSysteme,
tmBase,
rachatTm,
tauxRachatTm,
tauxPrimeRachatTm
)
select
A.codeSociete,
B.id as idCollegeTemp,
B.idCollege,
B.idPolice,
B.numeroPolice,
A.codeProduit,
A.codeReseau,
A.tm,
B.user,
now() as dateSysteme,
A.tmBase,
B.rachatTm,
B.tauxRachatTm,
B.tauxPrimeRachatTm
from d_prestationcollege A
join college_temp B on (B.codeSociete=A.codeSociete) and (B.idCollege=A.idCollege)
Where (B.id=?)';
$this->executerRequete($sql, array($idCollegeTemp));
}
public function majtauxplafond($idGarantie, $tauxPlafond)
{
$sql = 'update garantie_temp set tauxPlafond=? where (id=?)';
$this->executerRequete($sql, array($tauxPlafond, $idGarantie));
$sql = 'update garantie_temp set plafond= ROUND((primeFamille*tauxPlafond),0)+forfaitPlafond where (id=?)';
$this->executerRequete($sql, array($idGarantie));
}
public function imposerplafond($idGarantie, $plafond)
{
$sql = 'update garantie_temp set plafond=? where (id=?)';
$this->executerRequete($sql, array($plafond, $idGarantie));
}
public function majtm($idPrestation, $tm)
{
$sql = 'update prestation_temp set tm=? where (id=?)';
$this->executerRequete($sql, array($tm, $idPrestation));
}
public function majPrimeOpt($idGarantie, $primeOption)
{
$sql = 'call sp_maj_prime_opt(?, ?)';
$this->executerRequete($sql, array($idGarantie, $primeOption));
}
public function majPlafondOpt($idGarantie, $plafondOption)
{
$sql = 'call sp_maj_plafond_opt(?, ?)';
$this->executerRequete($sql, array($idGarantie, $plafondOption));
}
public function majlibgar($idGarantie, $libellegarantie)
{
$sql = 'update garantie_temp set garantie=? where (id=?)';
$this->executerRequete($sql, array($libellegarantie, $idGarantie));
}
public function viderCollegTemp($user)
{
$sql = 'DELETE FROM college_temp WHERE (user=?)';
$this->executerRequete($sql, array($user));
$sql = 'DELETE FROM garantie_temp WHERE (user=?)';
$this->executerRequete($sql, array($user));
$sql = 'DELETE FROM prestation_temp WHERE (user=?)';
$this->executerRequete($sql, array($user));
}
public function changer_college_temp($idAdherent, $idCollege)
{
$user = $_SESSION['login'];
$sql = 'call sp_changer_college_temp_d(?, ?, ?)';
$college_temp = $this->executerRequete($sql, array($idAdherent, $idCollege, $user));
return $college_temp->fetch();
}
public function getCollegesPolice()
{
$user = $_SESSION['login'];
$sql = 'SELECT * FROM college_temp WHERE (user=?) order by libelleCollege';
$college = $this->executerRequete($sql, array($user));
return $college;
}
public function getTotaldcollege($idPolice) {
$user = $_SESSION['login'];
$sql = 'call sp_totalcollege_temp_d(?, ?)';
$totalcollege = $this->executerRequete($sql, array($idPolice, $user));
return $totalcollege->fetch(PDO::FETCH_ASSOC);
}
public function selectioncollegetemp($idCollegeTemp, $choix) {
$sql = 'update college_temp set choix=? WHERE (id=?)';
$this->executerRequete($sql, array($choix, $idCollegeTemp));
}
public function majplafondadd($idGarantie, $plafond)
{
$sql = 'update garantieaddition_temp set plafond=? where (id=?)';
$this->executerRequete($sql, array($plafond, $idGarantie));
}
public function majprimeadd($idGarantie, $primeOption)
{
$sql = 'update garantieaddition_temp set primeOption=? where (id=?)';
$this->executerRequete($sql, array($primeOption, $idGarantie));
}
public function recapituler_maj_limite_college($idCollegeTemp)
{
$user = $_SESSION['login'];
$sql = 'call sp_recapituller_maj_limite_college(?, ?)';
$this->executerRequete($sql, array($idCollegeTemp, $user));
}
public function modifierlimitecollegetemp($idCollegeTemp)
{
$user = $_SESSION['login'];
$sql = 'call sp_modifier_limite_college_temp(?)';
$this->executerRequete($sql, array($idCollegeTemp, $user));
}
public function getoptionstarif($idPolice) {
$sql = 'SELECT numeroOptionTarif as code, libelleOptionTarif as libelle from d_optionstarif where (idPolice=?) order by 1';
$liste = $this->executerRequete($sql, array($idPolice));
// return $liste;
return $liste->fetchAll(PDO::FETCH_ASSOC);
}
public function nouvelleoptiontarif()
{
$user = $_SESSION['login'];
$idPolice = $_SESSION['idPolice_d_C'];
$sql = 'call sp_d_nouvelle_option_tarif(?, ?)';
$this->executerRequete($sql, array($idPolice, $user));
}
}

View File

@ -0,0 +1,686 @@
<?php
require_once 'Framework/Modele.php';
class Police extends Modele {
public function getPolices($numeroClient) {
$sql = 'SELECT A.id, A.codeSociete, A.idClient, A.numeroClient, numeroPolice, numeroPoliceSociete,
B.libelle As typeAvenant, dateEffet, dateFin, dateEcheance, numeroAvenant, dateAvenant, numeroDevis,
D.libelle as etatPolice, A.codeFractionnement, IFNULL(A.primeFamille,"0") as primeFamille,
IFNULL(A.primeBeneficiaire,"0") as primeBeneficiaire, rachatTm, TM.libelle as rachattm
FROM police A
left join typeavenant B on (B.codeTypeAvenant=A.codeTypeAvenant)
left join etatpolice D on (D.codeEtatPolice=A.codeEtatPolice)
left join rachattm TM on (TM.codeRachatTm=A.rachatTm)
WHERE (A.codeSociete=?) AND (A.numeroClient=?)';
$polices = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroClient));
return $polices;
}
public function getPolicesId($id) {
$sql = 'SELECT A.id, A.codeSociete, A.idClient, A.numeroClient, numeroPolice, numeroPoliceSociete, numeroDevis,
B.libelle As typeAvenant, dateEffet, dateFin, dateEcheance, numeroAvenant, dateAvenant, ADDDATE(A.dateEcheance, +1) as DateRenouvellement,
D.libelle as etatPolice, A.codeFractionnement, T.libelle As typeContrat, IFNULL(A.primeFamille,"0") as primeFamille,
IFNULL(A.primeBeneficiaire,"0") as primeBeneficiaire, rachatTm, rachatTm, TM.libelle as rachattm, garantieArchive, collegeArchive, A.gestionConfiee
FROM police A
left join typecontrat T on (T.codeTypeContrat=A.codeTypeContrat)
left join typeavenant B on (B.codeTypeAvenant=A.codeTypeAvenant)
left join etatpolice D on (D.codeEtatPolice=A.codeEtatPolice)
left join rachattm TM on (TM.codeRachatTm=A.rachatTm)
WHERE (A.codeSociete=?) AND (A.idClient=?) order by A.id';
$polices = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id));
return $polices;
}
public function getPolice($numeroPolice)
{
$sql = 'call sp_getPoliceNo(?, ?);';
$police = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroPolice));
if ($police->rowCount() > 0)
return $police->fetch();
else
throw new Exception("Aucune police ne correspond au numéo '$numeroPolice'");
}
public function getPoliceId($id)
{
$sql = 'call sp_getPoliceId(?, ?);';
$police = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id));
return $police->fetch(PDO::FETCH_ASSOC);
/*
if ($police->rowCount() > 0)
return $police->fetch();
else
throw new Exception("Aucune police ne correspond au ie '$id'");
*/
}
public function getPoliceIdSimple($id) {
$sql = 'SELECT A.* FROM police A WHERE (A.codeSociete=?) AND (A.id=?)';
$police = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id));
if ($police->rowCount() > 0)
return $police->fetch();
else
throw new Exception("Aucune police ne correspond au ie '$id'");
}
public function getTextecp($id) {
$sql = 'select texteCp from police where (id=?)';
$textecp = $this->executerRequete($sql, array($id));
return $textecp->fetch();
}
public function enregistrertexteCp($texteCp, $idPolice) {
$sql = 'update police set texteCp=? where (id=?)';
$this->executerRequete($sql, array($texteCp, $idPolice));
}
public function getNombrePolices($numeroClient)
{
$sql = 'select count(*) as nbPolices FROM polices A WHERE (A.codeSociete=?) AND (A.numeroClient=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroClient));
$ligne = $resultat->fetch();
return $ligne['nbPolices'];
}
public function getNombrePolicesId($id)
{
$sql = 'select count(*) as nbPolices FROM police A WHERE (A.codeSociete=?) AND (A.id=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id));
$ligne = $resultat->fetch();
return $ligne['nbPolices'];
}
public function getContextePoliceId($id)
{
$sql = 'SELECT
A.idClient,
A.numeroClient,
A.id AS idPolice,
A.numeroPolice,
IFNULL(B.tauxTaxe,"0") AS tauxTaxe,
A.codeEtape,
IFNULL(A.tauxCommission,"0") AS tauxCommission,
IFNULL(A.tauxCommissionAutre,"0") AS tauxCommissionAutre,
IFNULL(A.primeFamille,"0") AS primeFamille,
IFNULL(A.primeBeneficiaire,"0") AS primeBeneficiaire,
rachatTm,
TM.libelle AS rachattm,
garantieArchive,
collegeArchive,
A.codeTypeAvenant,
ADDDATE(A.dateEcheance, +1) AS DateRenouvellement,
A.dateEffet,
A.dateFin,
A.dateEcheance,
dateAvenant,
A.deduireComm,
A.codeEtatPolice,
A.gestionConfiee,
A.codeTypeContrat,
fn_id_entetecontrat_police_en_cours(A.id) AS idEntetecontratPolice,
fn_dernier_avenant_incorporation(A.id) AS dernierIdAvenant,
fn_derniere_date_avenant_incorporation(A.id) AS dernierDateAvenant,
fn_get_college_familiale(A.id) dernierIdCollege
FROM police A
LEFT JOIN typecontrat B ON (B.codeTypeContrat=A.codeTypeContrat)
left join rachattm TM on (TM.codeRachatTm=A.rachatTm)
WHERE (A.codeSociete=?) AND (A.id=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id));
$context = $resultat->fetch(PDO::FETCH_ASSOC);
$_SESSION['idClient_C'] = $context['idClient'];
$_SESSION['numeroClient_C'] = $context['numeroClient'];
$_SESSION['idPolice_C'] = $context['idPolice'];
$_SESSION['numeroPolice_C'] = $context['numeroPolice'];
$_SESSION['codeTypeContrat'] = $context['codeTypeContrat'];
$_SESSION['codeEtape_C'] = $context['codeEtape'];
$_SESSION['tauxTaxe_C'] = $context['tauxTaxe'];
$_SESSION['tauxCommission_C'] = $context['tauxCommission'];
$_SESSION['tauxCommissionAutre_C'] = $context['tauxCommissionAutre'];
$_SESSION['deduireComm_C'] = $context['deduireComm'];
$_SESSION['codeTypeAvenant_C'] = $context['codeTypeAvenant'];
$_SESSION['codeEtatPolice_C'] = $context['codeEtatPolice'];
$_SESSION['dateEffet_C'] = $context['dateEffet'];
$_SESSION['dateFin_C'] = $context['dateFin'];
$_SESSION['dateEcheance_C'] = $context['dateEcheance'];
$_SESSION['DateRenouvellement_C'] = $context['DateRenouvellement'];
$_SESSION['dateAvenant_C'] = $context['dateAvenant'];
$_SESSION['idPoliceAjax'] = $_SESSION['idPolice_C'];
$_SESSION['primeFamille_C'] = $context['primeFamille'];
$_SESSION['primeBeneficiaire_C'] = $context['primeBeneficiaire'];
$_SESSION['rachatTm_C'] = $context['rachatTm'];
// $_SESSION['garantieArchive_C'] = $context['garantieArchive'];
$_SESSION['collegeArchive_C'] = $context['collegeArchive'];
$_SESSION['idEntetecontratPolice'] = $context['idEntetecontratPolice'];
$_SESSION['dernierIdAvenant'] = $context['dernierIdAvenant'];
$_SESSION['dernierDateAvenant'] = $context['dernierDateAvenant'];
$_SESSION['dernierIdCollege'] = $context['dernierIdCollege'];
$_SESSION['idAdherent_C'] = "";
$_SESSION['numeroAdherent_C'] = "";
$_SESSION['nomAdherent_C'] = "";
$_SESSION['idBeneficiaire_C'] = "";
$_SESSION['numeroBeneficiaire_C'] = "";
$_SESSION['nomBeneficiaire_C'] = "";
$_SESSION['lienPhoto_C'] = "";
$_SESSION['beneficiaire_C'] = "";
$_SESSION['adherent_C'] = "";
$_SESSION['enVigueur_C'] = "";
$_SESSION['decede_C'] = "0";
$_SESSION['dateDeces_C'] = "";
$_SESSION['fraisFuneraireDemande_C'] = "0";
$_SESSION['fraisFunerairePaye_C'] = "0";
// nb famille et de dépendants
$sql = 'select
ifnull(sum(case when codeLienParente="A" then "1" else "0" end), "0") as ndAdh,
ifnull(SUM(case when codeLienParente="A" then "0" else "1" end), "0") as ndDep,
ifnull(SUM(case when codeEtatBeneficiaire="V" then "1" else "0" end), "0") as ndActif
from beneficiaire where (codeSociete=?) AND (idPolice=?) and (supprime!="1")';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id));
$effectif = $resultat->fetch(PDO::FETCH_ASSOC);
$_SESSION['ndAdh_C'] = $effectif['ndAdh'];
$_SESSION['ndDep_C'] = $effectif['ndDep'];
$_SESSION['ndActif_C'] = $effectif['ndActif'];
}
public function getDenierNumeroPolice($annee)
{
$sql = 'select dernierNumeroPolice from numerotationpolice WHERE (codeSociete=? AND annee=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'],$annee));
if ($resultat->rowCount() == 0)
{
$sql = 'insert into numerotationpolice (codeSociete, annee, dernierNumeroPolice) values (?,?,?)';
$this->executerRequete($sql, array($_SESSION['codeSociete'],$annee,"0"));
return "1";
} else
{
$ligne = $resultat->fetch();
return $ligne['dernierNumeroPolice']+1;
}
}
public function setDenierNumeroPolice($annee,$dernierNumeroPolice)
{
$sql = 'update numerotationpolice set dernierNumeroPolice=? WHERE (codeSociete=? AND annee=?)';
$this->executerRequete($sql, array($dernierNumeroPolice, $_SESSION['codeSociete'], $annee));
}
public function ajouter($codeSociete, $idClient, $numeroClient, $numeroPolice, $numeroPoliceSociete, $codeTypeContrat,
$dateEffet, $dateFin, $dateEcheance, $numeroAvenant, $codeTypeAvenant, $dateAvenant, $codeApporteur,
$codeGestionnaire, $dateCre, $userCre, $codeEtatPolice, $codeFractionnement, $codePeriodicite, $tauxCommission,
$primeFamille, $primeBeneficiaire, $rachatTm, $deduireComm, $taciteReconduction, $tauxRachatTm, $codeCommercial,
$tauxCommissionAutre, $speciale, $limiteConsommation, $tauxRistourne, $remplacementAdherent)
{
$sql = 'INSERT INTO police (codeSociete, idClient, numeroClient, numeroPolice, numeroPoliceSociete,
codeTypeContrat, dateEffet, dateFin, dateEcheance, numeroAvenant, codeTypeAvenant, dateAvenant,
codeApporteur, codeGestionnaire, dateCre, userCre, codeEtatPolice, codeFractionnement, codePeriodicite, tauxCommission,
primeFamille, primeBeneficiaire, rachatTm, deduireComm, taciteReconduction, tauxRachatTm, codeCommercial,
tauxCommissionAutre, speciale, limiteConsommation, tauxRistourne, remplacementAdherent)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
$this->executerRequete($sql, array($codeSociete, $idClient, $numeroClient, $numeroPolice, $numeroPoliceSociete, $codeTypeContrat,
$dateEffet, $dateFin, $dateEcheance, $numeroAvenant, $codeTypeAvenant, $dateAvenant, $codeApporteur,
$codeGestionnaire, $dateCre, $userCre, $codeEtatPolice, $codeFractionnement, $codePeriodicite, $tauxCommission,
$primeFamille, $primeBeneficiaire, $rachatTm, $deduireComm, $taciteReconduction, $tauxRachatTm, $codeCommercial,
$tauxCommissionAutre, $speciale, $limiteConsommation, $tauxRistourne, $remplacementAdherent));
$dernierId=$this->dernierId();
$sql = 'insert into avenant (codeSociete, idPolice, numeroPolice, codeTypeAvenant, numeroAvenant, dateEffet, dateCre, user, dateSysteme)
select codeSociete, id as idPolice, numeroPolice, codeTypeAvenant, numeroAvenant, dateEffet, dateCre, userCre as `user`, dateSysteme
from police where (id=?)';
$this->executerRequete($sql, array($dernierId));
$sql = 'call sp_creer_contrat(?, ?)';
$this->executerRequete($sql, array($dernierId, $userCre));
return $dernierId;
}
public function modifier($id, $tauxCommission, $primeFamille, $primeBeneficiaire, $codeApporteur, $codeCommercial,
$tauxCommissionAutre, $speciale, $limiteConsommation, $tauxRistourne, $remplacementAdherent)
{
$user = $_SESSION['login'];
$sql = 'call sp_modifier_police(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
$this->executerRequete($sql, array($id, $tauxCommission, $codeApporteur, $codeCommercial,
$tauxCommissionAutre, $speciale, $limiteConsommation, $tauxRistourne, $remplacementAdherent, $user));
}
public function initresiliation($idPolice)
{
$dateAvenant = $_SESSION['dateAvenant_C'];
$motifavenant = $_SESSION['motifavenant_C'];
$user = $_SESSION['login'];
$sql = 'call sp_init_resiliation(?, ?, ?, ?)';
$this->executerRequete($sql, array($idPolice, $dateAvenant, $user, $motifavenant));
}
public function initretrait($idPolice)
{
$dateAvenant = $_SESSION['dateAvenant_C'];
$motifavenant = $_SESSION['motifavenant_C'];
$user = $_SESSION['login'];
$idSaisie = $_SESSION['idSaisie'];
/*
$sql = 'call sp_init_retrait(?, ?, ?, ?, ?)';
$this->executerRequete($sql, array($idPolice, $dateAvenant, $user, $motifavenant, $idSaisie));
*/
$sql = 'call sp_init_retrait(?, ?, ?, ?)';
$this->executerRequete($sql, array($idPolice, $dateAvenant, $user, $motifavenant));
}
public function initrerenouvellement($idPolice)
{
$dateAvenant = $_SESSION['dateAvenant_C'];
$dateEcheanceRen = $_SESSION['dateEcheanceRen_C'];
$user = $_SESSION['login'];
$sql = 'call sp_init_renouvellement(?, ?, ?, ?)';
$this->executerRequete($sql, array($idPolice, $dateAvenant, $user, $dateEcheanceRen));
}
public function initLimiteAdditionnelle($idPolice, $dateAvenant)
{
$user = $_SESSION['login'];
$sql = 'call sp_init_limite_additionnelle(?, ?, ?)';
$this->executerRequete($sql, array($idPolice, $dateAvenant, $user));
}
public function getAvenantTemp() {
$user = $_SESSION['login'];
$sql = 'SELECT * FROM avenant_temp WHERE (`user`=?) order by id desc';
$resultat = $this->executerRequete($sql, array($user));
return $resultat->fetch();
}
public function getEmissionTemp() {
$user = $_SESSION['login'];
$sql = 'SELECT * FROM emission_temp WHERE (`user`=?)';
$resultat = $this->executerRequete($sql, array($user));
return $resultat->fetch();
}
public function creeravenant($idPolice, $codeTypeAvenant, $motifavenant, $dateAvenant)
{
$user = $_SESSION['login'];
$sql = 'call sp_creer_avenant(?, ?, ?, ?, ?)';
$this->executerRequete($sql, array($idPolice, $codeTypeAvenant, $motifavenant, $dateAvenant, $user));
}
public function enregistrerresiliation()
{
$user = $_SESSION['login'];
$idPolice = $_SESSION['idPolice_C'];
$sql = 'call sp_avenant_resiliation(?, ?)';
$this->executerRequete($sql, array($idPolice, $user));
}
public function enregistrerretrait()
{
$user = $_SESSION['login'];
$idPolice = $_SESSION['idPolice_C'];
$sql = 'call sp_avenant_retrait(?, ?)';
$this->executerRequete($sql, array($idPolice, $user));
}
public function enregistrerrenouvellement()
{
$user = $_SESSION['login'];
$idPolice = $_SESSION['idPolice_C'];
$sql = 'call sp_avenant_renouvellement(?, ?)';
$this->executerRequete($sql, array($idPolice, $user));
}
public function getIdPolice($numeroPolice) {
$sql = 'SELECT id FROM police WHERE (codeSociete=?) AND (numeroPolice=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroPolice));
$ligne = $resultat->fetch();
return $ligne['id'];
}
public function existeligne($numeroPolice) {
$sql = 'select id FROM police WHERE (codeSociete=?) and (numeroPolice=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'],$numeroPolice));
return ($resultat->rowCount() > 0);
}
public function formaterNumeroPolice($annee,$numeroPolice) {
$numeroPolice = "00000".$numeroPolice;
$numeroPolice = substr($numeroPolice, -6);
$numeroPolice = $annee.$numeroPolice;
return $numeroPolice;
}
public function supprimer($idPolice) {
$sql = 'select id from college where (idPolice=?) limit 1';
$resultat = $this->executerRequete($sql, array($idPolice));
if($resultat->rowCount() == 0)
{
$sql = 'DELETE FROM police WHERE (id=?)';
$this->executerRequete($sql, array($idPolice));
$sql = 'DELETE FROM contrat WHERE (idPolice=?)';
$this->executerRequete($sql, array($idPolice));
return true;
}
else
{
return false;
}
}
public function getExisteQuittance($idPolice) {
$sql = 'select id from emission where (idPolice=?) limit 1';
$resultat = $this->executerRequete($sql, array($idPolice));
if($resultat->rowCount() == 0)
{
return "0";
}
else
{
return "Q";
}
}
public function archivergarantie($id) {
$sql = 'UPDATE police SET garantieArchive="1" where (id=?)';
$this->executerRequete($sql, array($id));
}
public function archivercollege($id) {
$sql = 'UPDATE police SET collegeArchive="1" where (id=?)';
$this->executerRequete($sql, array($id));
}
public function getContexteAjaxPolice($id)
{
$sql = 'SELECT A.id as idPolice FROM police A WHERE (A.id=?)';
$resultat = $this->executerRequete($sql, array($id));
$context = $resultat->fetch();
$_SESSION['idPoliceAjax'] = $context['idPolice'];
$_SESSION['idPolice_C'] = $_SESSION['idPoliceAjax'];
}
public function getEnteteCP($idPolice)
{
$sql = 'call sp_entete_cp(?);';
$entete = $this->executerRequete($sql, array($idPolice));
return $entete->fetch(PDO::FETCH_ASSOC);
}
public function getCollegesCP($idPolice)
{
$sql = 'call sp_collesges_police(?);';
$colleges = $this->executerRequete($sql, array($idPolice));
return $colleges->fetchAll(PDO::FETCH_ASSOC);
}
public function getGarantiesCollegesCP($idPolice)
{
$sql = 'call sp_garanties_colleges_police(?);';
$garantiescolleges = $this->executerRequete($sql, array($idPolice));
return $garantiescolleges->fetchAll(PDO::FETCH_ASSOC);
}
public function gettableauPrestationsCP($idPolice)
{
$sql = 'call sp_tableau_prestation_police(?);';
$colleges = $this->executerRequete($sql, array($idPolice));
return $colleges->fetchAll(PDO::FETCH_ASSOC);
}
public function getRapportSpPolice($idPolice, $dateReference)
{
$user = $_SESSION['login'];
$sql = 'call sp_rapport_sp_police(?, ?, ?);';
$sppolice = $this->executerRequete($sql, array($idPolice, $dateReference, $user));
return $sppolice->fetch(PDO::FETCH_ASSOC);
}
public function getConsommationPolice($idPolice, $dateReference)
{
$sql = 'call sp_consommation_police(?, ?);';
$consommationpolice = $this->executerRequete($sql, array($idPolice, $dateReference));
return $consommationpolice->fetch(PDO::FETCH_ASSOC);
}
public function getExisteConsommationPolice($idPolice)
{
$dj = date("Y-m-d");
$sql = 'call sp_consommation_police(?, ?);';
$resultat = $this->executerRequete($sql, array($idPolice, $dj));
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
$consommationpolice = $ligne['consommation'];
if($consommationpolice>"0")
{
return "C";
}
else
{
return "0";
}
}
public function gettableauAjustementCP()
{
$sql = 'call sp_tableau_ajustement();';
$tableauajustementcps = $this->executerRequete($sql);
return $tableauajustementcps->fetchAll(PDO::FETCH_ASSOC);
}
public function getClientsearchPol($numeroPolice)
{
$sql = 'select id as idPolice from police WHERE (codeSociete=?) AND (numeroPolice=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'],$numeroPolice));
if ($resultat->rowCount() == 0)
{
return "0";
} else
{
$ligne = $resultat->fetch();
return $ligne['idPolice'];
}
}
public function getClientsearchPolId($idPolice)
{
$sql = 'select id as idPolice from police WHERE (codeSociete=?) AND (id=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'],$idPolice));
if ($resultat->rowCount() == 0)
{
return "0";
} else
{
$ligne = $resultat->fetch();
return $ligne['idPolice'];
}
}
public function recapituler_maj_limite_police()
{
$user = $_SESSION['login'];
$sql = 'call sp_recapituller_maj_limite_police(?)';
$this->executerRequete($sql, array($user));
}
public function enregistrerlimiteadditionnelle()
{
$user = $_SESSION['login'];
$idPolice = $_SESSION['idPolice_C'];
$sql = 'call sp_avenant_limite_additionnelle(?, ?)';
$this->executerRequete($sql, array($idPolice, $user));
}
public function getContexteClientId($idPolice) {
$sql = 'SELECT A.id as idClient, A.numeroClient, concat(A.nom," ",A.prenoms) as nomClient, A.codeLangueClient
FROM clients A join police B on (B.idClient=A.id) WHERE (B.id=?)';
$resultat = $this->executerRequete($sql, array($idPolice));
$context = $resultat->fetch();
$_SESSION['idClient_C'] = $context['idClient'];
$_SESSION['numeroClient_C'] = $context['numeroClient'];
$_SESSION['nomClient_C'] = $context['nomClient'];
$_SESSION['idClientAjax'] = $context['idClient'];
$_SESSION['codeLangueClient'] = $context['codeLangueClient'];
}
// Polices non renouvellées
public function etatpolnonren()
{
$dj = date("Y-m-d");
$sql = 'call sp_polices_non_renouvellees(?);';
$resultat = $this->executerRequete($sql, array($dj));
return $resultat->fetchAll(PDO::FETCH_ASSOC);
}
public function activergc($idPolice)
{
$user = $_SESSION['login'];
$sql = 'call sp_activergc(?, ?);';
$this->executerRequete($sql, array($idPolice, $user));
}
public function desactivergc($idPolice)
{
$user = $_SESSION['login'];
$sql = 'call sp_desactivergc(?, ?);';
$this->executerRequete($sql, array($idPolice, $user));
}
public function getRapportSpPoliceEntete($idPolice, $dateReference)
{
$sql = 'call sp_rapport_sp_police_entete(?, ?);';
$sppolice = $this->executerRequete($sql, array($idPolice, $dateReference));
return $sppolice->fetch(PDO::FETCH_ASSOC);
}
public function getRapportSpPolicePol($idPolice, $dateReference)
{
$user = $_SESSION['login'];
$sql = 'call sp_rapport_sp_police_pol(?, ?, ?);';
$sppolice = $this->executerRequete($sql, array($idPolice, $dateReference, $user));
return $sppolice->fetch(PDO::FETCH_ASSOC);
}
public function getRapportSpPoliceCat($idPolice, $dateReference)
{
$user = $_SESSION['login'];
$sql = 'call sp_rapport_sp_police_cat(?, ?, ?);';
$sppolice = $this->executerRequete($sql, array($idPolice, $dateReference, $user));
return $sppolice->fetchAll(PDO::FETCH_ASSOC);
}
public function getRapportSpPoliceCol($idPolice, $dateReference)
{
$user = $_SESSION['login'];
$sql = 'call sp_rapport_sp_police_col(?, ?, ?);';
$sppolice = $this->executerRequete($sql, array($idPolice, $dateReference, $user));
return $sppolice->fetchAll(PDO::FETCH_ASSOC);
}
public function getsyntheseconsopolice()
{
$idPolice = $_SESSION['idPolice_C'];
$sql = 'call sp_synthese_consommation_police(?);';
$sppolice = $this->executerRequete($sql, array($idPolice));
return $sppolice->fetchAll(PDO::FETCH_ASSOC);
}
public function getderniereavenantincorporation($idPolice)
{
$sql = 'call sp_get_derniere_avenant_incorporation(?);';
$resultat = $this->executerRequete($sql, array($idPolice));
$context = $resultat->fetch(PDO::FETCH_ASSOC);
$_SESSION['dernierIdAvenant'] = $context['dernierIdAvenant'];
$_SESSION['dernierDateAvenant'] = $context['dernierDateAvenant'];
}
public function getcollegefamiliale($idPolice)
{
$sql = 'call sp_get_college_familiale(?);';
$resultat = $this->executerRequete($sql, array($idPolice));
$context = $resultat->fetch(PDO::FETCH_ASSOC);
$_SESSION['dernierIdCollege'] = $context['dernierIdCollege'];
return $context;
}
}

View File

@ -0,0 +1,348 @@
<?php
require_once 'Framework/Modele.php';
class Police_d extends Modele {
public function getPolices($numeroClient) {
$sql = 'SELECT A.id, A.codeSociete, A.idClient, A.numeroClient, numeroPolice, numeroPoliceSociete,
B.libelle As typeAvenant, dateEffet, dateFin, dateEcheance, numeroAvenant, dateAvenant, numeroContrat,
D.libelle as etatPolice, A.codeFractionnement, IFNULL(A.primeFamille,"0") as primeFamille,
IFNULL(A.primeBeneficiaire,"0") as primeBeneficiaire, rachatTm, TM.libelle as rachattm
FROM d_police A
left join typeavenant B on (B.codeTypeAvenant=A.codeTypeAvenant)
left join etatpolice D on (D.codeEtatPolice=A.codeEtatPolice)
left join rachattm TM on (TM.codeRachatTm=A.rachatTm)
WHERE (A.codeSociete=?) AND (A.numeroClient=?)';
$polices = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroClient));
return $polices;
}
public function getPolicesId($id) {
$sql = 'SELECT A.id, A.codeSociete, A.idClient, A.numeroClient, numeroPolice, numeroPoliceSociete, numeroContrat,
B.libelle As typeAvenant, dateEffet, dateFin, dateEcheance, numeroAvenant, dateAvenant, ADDDATE(A.dateEcheance, +1) as DateRenouvellement,
D.libelle as etatPolice, A.codeFractionnement, T.libelle As typeContrat, IFNULL(A.primeFamille,"0") as primeFamille,
IFNULL(A.primeBeneficiaire,"0") as primeBeneficiaire, rachatTm, rachatTm, TM.libelle as rachattm, garantieArchive, collegeArchive
FROM d_police A
left join typecontrat T on (T.codeTypeContrat=A.codeTypeContrat)
left join typeavenant B on (B.codeTypeAvenant=A.codeTypeAvenant)
left join etatpolice D on (D.codeEtatPolice=A.codeEtatPolice)
left join rachattm TM on (TM.codeRachatTm=A.rachatTm)
WHERE (A.codeSociete=?) AND (A.idClient=?) order by A.id';
$polices = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id));
return $polices;
}
public function getPolice($numeroPolice)
{
$sql = 'call sp_d_getPoliceNo(?, ?);';
$police = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroPolice));
if ($police->rowCount() > 0)
return $police->fetch();
else
throw new Exception("Aucun devis ne correspond au numéo '$numeroPolice'");
}
public function getPoliceId($id)
{
$sql = 'call sp_d_getPoliceId(?, ?);';
$police = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id));
if ($police->rowCount() > 0)
return $police->fetch();
else
throw new Exception("Aucun devis ne correspond au ie '$id'");
}
public function getPoliceIdSimple($id) {
$sql = 'SELECT A.* FROM d_police A WHERE (A.codeSociete=?) AND (A.id=?)';
$police = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id));
if ($police->rowCount() > 0)
return $police->fetch();
else
throw new Exception("Aucun devis ne correspond au ie '$id'");
}
public function getNombrePolices($numeroClient)
{
$sql = 'select count(*) as nbPolices FROM d_polices A WHERE (A.codeSociete=?) AND (A.numeroClient=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroClient));
$ligne = $resultat->fetch();
return $ligne['nbPolices'];
}
public function getNombrePolicesId($id)
{
$sql = 'select count(*) as nbPolices FROM d_police A WHERE (A.codeSociete=?) AND (A.id=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id));
$ligne = $resultat->fetch();
return $ligne['nbPolices'];
}
public function getContextePoliceId($id) {
$sql = 'SELECT A.idClient, A.numeroClient, A.id AS idPolice, A.numeroPolice, A.transforme, A.numeroContrat,
IFNULL(B.tauxTaxe,"0") AS tauxTaxe, A.codeEtape, IFNULL(A.tauxCommission,"0") AS tauxCommission,
IFNULL(A.primeFamille,"0") as primeFamille, IFNULL(A.primeBeneficiaire,"0") as primeBeneficiaire, rachatTm,
TM.libelle as rachattm, garantieArchive, collegeArchive, A.codeTypeAvenant, ADDDATE(A.dateEcheance, +1) as DateRenouvellement,
A.dateEffet, A.dateFin, A.dateEcheance, dateAvenant, A.deduireComm, A.codeEtatPolice
FROM d_police A
LEFT JOIN typecontrat B ON (B.codeTypeContrat=A.codeTypeContrat)
left join rachattm TM on (TM.codeRachatTm=A.rachatTm)
WHERE (A.codeSociete=?) AND (A.id=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id));
$context = $resultat->fetch();
$_SESSION['idClient_d_C'] = $context['idClient'];
$_SESSION['numeroClient_d_C'] = $context['numeroClient'];
$_SESSION['idPolice_d_C'] = $context['idPolice'];
$_SESSION['numeroPolice_d_C'] = $context['numeroPolice'];
$_SESSION['codeEtape_d_C'] = $context['codeEtape'];
$_SESSION['tauxTaxe_d_C'] = $context['tauxTaxe'];
$_SESSION['tauxCommission_d_C'] = $context['tauxCommission'];
$_SESSION['deduireComm_d_C'] = $context['deduireComm'];
$_SESSION['dateEffet_d_C'] = $context['dateEffet'];
$_SESSION['dateFin_d_C'] = $context['dateFin'];
$_SESSION['dateEcheance_d_C'] = $context['dateEcheance'];
$_SESSION['dateAvenant_d_C'] = $context['dateAvenant'];
$_SESSION['idPolice_d_Ajax'] = $_SESSION['idPolice_d_C'];
$_SESSION['rachatTm_d_C'] = $context['rachatTm'];
$_SESSION['collegeArchive_d_C'] = $context['collegeArchive'];
}
public function getDenierNumeroPolice($annee)
{
$sql = 'select dernierNumeroPolice from d_numerotationpolice WHERE (codeSociete=? AND annee=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'],$annee));
if ($resultat->rowCount() == 0)
{
$sql = 'insert into d_numerotationpolice (codeSociete, annee, dernierNumeroPolice) values (?,?,?)';
$this->executerRequete($sql, array($_SESSION['codeSociete'],$annee,"0"));
return "1";
} else
{
$ligne = $resultat->fetch();
return $ligne['dernierNumeroPolice']+1;
}
}
public function setDenierNumeroPolice($annee,$dernierNumeroPolice)
{
$sql = 'update d_numerotationpolice set dernierNumeroPolice=? WHERE (codeSociete=? AND annee=?)';
$this->executerRequete($sql, array($dernierNumeroPolice, $_SESSION['codeSociete'], $annee));
}
public function ajouter($codeSociete, $idClient, $numeroClient, $numeroPolice, $numeroPoliceSociete, $codeTypeContrat,
$dateEffet, $dateFin, $dateEcheance, $numeroAvenant, $codeTypeAvenant, $dateAvenant, $codeApporteur, $codeCommercial, $codeGestionnaire,
$dateCre, $userCre, $codeEtatPolice, $codeFractionnement, $codePeriodicite, $tauxCommission, $tauxCommissionAutre, $primeFamille, $primeBeneficiaire,
$rachatTm, $deduireComm, $taciteReconduction, $tauxRachatTm, $tauxRistourne)
{
$sql = 'INSERT INTO d_police (codeSociete, idClient, numeroClient, numeroPolice, numeroPoliceSociete,
codeTypeContrat, dateEffet, dateFin, dateEcheance, numeroAvenant, codeTypeAvenant, dateAvenant,
codeApporteur, codeCommercial, codeGestionnaire, dateCre, userCre, codeEtatPolice, codeFractionnement, codePeriodicite, tauxCommission, tauxCommissionAutre,
primeFamille, primeBeneficiaire, rachatTm, deduireComm, taciteReconduction, tauxRachatTm, tauxRistourne)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
$this->executerRequete($sql, array($codeSociete, $idClient, $numeroClient, $numeroPolice, $numeroPoliceSociete, $codeTypeContrat,
$dateEffet, $dateFin, $dateEcheance, $numeroAvenant, $codeTypeAvenant, $dateAvenant, $codeApporteur, $codeCommercial, $codeGestionnaire,
$dateCre, $userCre, $codeEtatPolice, $codeFractionnement, $codePeriodicite, $tauxCommission, $tauxCommissionAutre, $primeFamille, $primeBeneficiaire,
$rachatTm, $deduireComm, $taciteReconduction, $tauxRachatTm, $tauxRistourne));
$dernierId=$this->dernierId();
$sql = 'insert into d_optionstarif (idPolice, numeroOptionTarif, libelleOptionTarif, user)
select id as idPolice, "1" numeroOptionTarif, "Option 1" libelleOptionTarif, userCre from d_police where (id=?)';
$this->executerRequete($sql, array($dernierId));
return $dernierId;
}
public function modifier($id, $codeTypeContrat, $codeApporteur, $tauxCommission, $codePeriodicite,
$rachatTm, $tauxRachatTm, $dateEffet, $dateEcheance, $codeCommercial, $tauxCommissionAutre, $tauxRistourne)
{
$sql = 'UPDATE d_police SET
codeTypeContrat =?,
codeApporteur =?,
tauxCommission =?,
codePeriodicite =?,
rachatTm =?,
tauxRachatTm =?,
dateEffet =?,
dateEcheance =?,
codeCommercial =?,
tauxCommissionAutre =?,
tauxRistourne =?
where (id=?)';
$this->executerRequete($sql, array($codeTypeContrat, $codeApporteur, $tauxCommission, $codePeriodicite,
$rachatTm, $tauxRachatTm, $dateEffet, $dateEcheance, $codeCommercial, $tauxCommissionAutre, $tauxRistourne, $id));
}
public function getIdPolice($numeroPolice) {
$sql = 'SELECT id FROM d_police WHERE (codeSociete=?) AND (numeroPolice=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroPolice));
$ligne = $resultat->fetch();
return $ligne['id'];
}
public function existeligne($numeroPolice) {
$sql = 'select id FROM d_police WHERE (codeSociete=?) and (numeroPolice=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'],$numeroPolice));
return ($resultat->rowCount() > 0);
}
public function formaterNumeroPolice($annee,$numeroPolice) {
$numeroPolice = "00000".$numeroPolice;
$numeroPolice = substr($numeroPolice, -6);
$numeroPolice = "D".$annee.$numeroPolice;
return $numeroPolice;
}
public function supprimer($idPolice) {
$sql = 'select id from d_college where (idPolice=?) limit 1';
$resultat = $this->executerRequete($sql, array($idPolice));
if($resultat->rowCount() == 0)
{
$sql = 'DELETE FROM d_police WHERE (id=?)';
$this->executerRequete($sql, array($idPolice));
return true;
}
else
{
return false;
}
}
public function archivergarantie($id) {
$sql = 'UPDATE d_police SET garantieArchive="1" where (id=?)';
$this->executerRequete($sql, array($id));
}
public function archivercollege($id) {
$sql = 'UPDATE d_police SET collegeArchive="1" where (id=?)';
$this->executerRequete($sql, array($id));
}
public function getContexteAjaxPolice($id)
{
$sql = 'SELECT A.id as idPolice FROM d_police A WHERE (A.id=?)';
$resultat = $this->executerRequete($sql, array($id));
$context = $resultat->fetch();
$_SESSION['idPolice_d_Ajax'] = $context['idPolice'];
}
public function getCollegesCP($idPolice)
{
$sql = 'call sp_collesges_d_police(?);';
$colleges = $this->executerRequete($sql, array($idPolice));
return $colleges->fetchAll(PDO::FETCH_ASSOC);
}
public function getGarantiesCollegesCP($idPolice)
{
$sql = 'call sp_garanties_colleges_d_police(?);';
$garantiescolleges = $this->executerRequete($sql, array($idPolice));
return $garantiescolleges->fetchAll(PDO::FETCH_ASSOC);
}
public function gettableauPrestationsCP($idPolice)
{
$sql = 'call sp_tableau_prestation_d_police(?);';
$colleges = $this->executerRequete($sql, array($idPolice));
return $colleges->fetchAll(PDO::FETCH_ASSOC);
}
public function getClientsearchPol($numeroPolice)
{
$sql = 'select id as idPolice FROM d_police WHERE (codeSociete=?) AND (numeroPolice=?)';
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'],$numeroPolice));
if ($resultat->rowCount() == 0)
{
return "0";
} else
{
$ligne = $resultat->fetch();
return $ligne['idPolice'];
}
}
public function transformer($idDevis, $numeroOptionTarif)
{
$user = $_SESSION['login'];
$sql = 'call sp_transformer_devis(?, ?, ?);';
$resultat = $this->executerRequete($sql, array($idDevis, $user, $numeroOptionTarif));
if ($resultat->rowCount() == 0)
{
return "0";
} else
{
$ligne = $resultat->fetch();
return $ligne['idPolice'];
}
}
public function getContexteClientId($idPolice) {
$sql = 'SELECT A.id as idClient, A.numeroClient, concat(A.nom," ",A.prenoms) as nomClient
FROM d_clients A join d_police B on (B.idClient=A.id) WHERE (B.id=?)';
$resultat = $this->executerRequete($sql, array($idPolice));
$context = $resultat->fetch();
$_SESSION['idClient_d_C'] = $context['idClient'];
$_SESSION['numeroClient_d_C'] = $context['numeroClient'];
$_SESSION['nomClient_d_C'] = $context['nomClient'];
$_SESSION['idClient_d_Ajax'] = $context['idClient'];
}
public function getEnteteCP($idPolice)
{
$sql = 'call sp_entete_devis(?);';
$entete = $this->executerRequete($sql, array($idPolice));
return $entete->fetch(PDO::FETCH_ASSOC);
}
public function nouvelleoptiontarif($idPolice)
{
$sql = 'insert into d_optionstarif (idPolice, numeroOptionTarif, libelleOptionTarif, user)
select id as idPolice, "1" numeroOptionTarif, "Option 1" libelleOptionTarif, userCre from d_police where (id=?)';
$this->executerRequete($sql, array($dernierId));
return $dernierId;
}
public function getTextecp($id) {
$sql = 'select texteCp from d_police where (id=?)';
$textecp = $this->executerRequete($sql, array($id));
return $textecp->fetch();
}
public function enregistrertexteCp($texteCp, $idPolice) {
$sql = 'update d_police set texteCp=? where (id=?)';
$this->executerRequete($sql, array($texteCp, $idPolice));
}
}

View File

@ -0,0 +1,158 @@
<?php
require_once '././Framework/Modele.php';
class Tarif extends Modele
{
public function recapitulerprimeimposee($primeNette, $fraisCarte)
{
$tauxCommission = $_SESSION['tauxCommission_C'];
$tauxCommissionAutre = $_SESSION['tauxCommissionAutre_C'];
$tauxTaxe = $_SESSION['tauxTaxe_C'];
$sql = 'call sp_recapitulerprimeimposee(?, ?, ?, ?, ?, ?);';
$prime = $this->executerRequete($sql, array($_SESSION['codeSociete'], $primeNette, $fraisCarte, $tauxCommission, $tauxCommissionAutre, $tauxTaxe));
return $prime->fetch(PDO::FETCH_ASSOC);
}
/*
public function calculerPrimeBen()
{
// dateSortie, primeNette, commission, primeHt, taxe, fraisCarte, primeTtc
$idAdherent = $_SESSION['idAdherent_C'];
$idBeneficiaire = $_SESSION['idBeneficiaire_C'];
$sql = 'SELECT codeProduit, codeLienParente, sexe, dateNaissance, dateEntree, IFNULL(primeFamille,"0") as primeFamille,
IFNULL(primeBeneficiaire,"0") as primeBeneficiaire FROM beneficiaire WHERE id=?';
$resultat = $this->executerRequete($sql, array($idBeneficiaire));
$beneficiaire = $resultat->fetch();
$codeLienParente = $beneficiaire['codeLienParente'];
$sexe = $beneficiaire['sexe'];
$dateNaissance = $beneficiaire['dateNaissance'];
$dateEntree = $beneficiaire['dateEntree'];
$primeFamille = $beneficiaire['primeFamille'];
$primeBeneficiaire = $beneficiaire['primeBeneficiaire'];
$age = age($dateNaissance , $dateEntree);
// Pour Rdaiant
$codeEtape = $_SESSION['codeEtape_C'];
if($codeEtape=='1')
{
$accessoire = 15000;
}
else
{
$accessoire = 12000;
}
if($codeLienParente=='A')
{
$primeBase = $primeFamille;
}
else
{
$primeBase = $primeBeneficiaire;
}
$surprimeMaladie = 0;
$surprimeAge = 0;
$primeNette = $primeBase + $surprimeMaladie + $surprimeAge;
$commission = round(($primeNette*$_SESSION['tauxCommission_C'])/100);
$commissionAutre = round(($primeNette*$_SESSION['tauxCommission_C'])/100);
$primeHt = $primeNette + $commission;
$taxe = round(($primeHt*$_SESSION['tauxTaxe_C'])/100);
$fraisCarte = $accessoire;
$primeTtc = $primeHt+$taxe+$fraisCarte;
$sql = 'update beneficiaire set primeNette=?, commission=?, primeHt=?, taxe=?, fraisCarte=?, primeTtc=? WHERE (id=?)';
$this->executerRequete($sql, array($primeNette, $commission, $primeHt, $taxe, $fraisCarte, $primeTtc, $idBeneficiaire));
$sql = 'select IFNULL(sum(primeNette),"0") as primeNette, IFNULL(sum(commission),"0") as commission,
IFNULL(sum(primeHt),"0") as primeHt, IFNULL(sum(taxe),"0") as taxe,
IFNULL(sum(fraisCarte),"0") as fraisCarte, IFNULL(sum(primeTtc),"0") as primeTtc
from beneficiaire WHERE (idAdherent=?)';
$resultat = $this->executerRequete($sql, array($idAdherent));
$primeAdherent = $resultat->fetch();
$sql = 'update adherent set primeNette=?, commission=?, primeHt=?, taxe=?, fraisCarte=?, primeTtc=? WHERE (id=?)';
$this->executerRequete($sql, array($primeAdherent['primeNette'], $primeAdherent['commission'],$primeAdherent['primeHt'],
$primeAdherent['taxe'], $primeAdherent['fraisCarte'] , $primeAdherent['primeTtc'], $idAdherent));
}
*/
/*
public function calculerPrimeCol()
{
// dateSortie, primeNette, commission, primeHt, taxe, fraisCarte, primeTtc
$idAdherent = $_SESSION['idAdherent_C'];
$idBeneficiaire = $_SESSION['idBeneficiaire_C'];
$sql = 'SELECT codeProduit, codeLienParente, sexe, dateNaissance, dateEntree, IFNULL(primeFamille,"0") as primeFamille,
IFNULL(primeBeneficiaire,"0") as primeBeneficiaire FROM beneficiaire WHERE id=?';
$resultat = $this->executerRequete($sql, array($idBeneficiaire));
$beneficiaire = $resultat->fetch();
$codeLienParente = $beneficiaire['codeLienParente'];
$sexe = $beneficiaire['sexe'];
$dateNaissance = $beneficiaire['dateNaissance'];
$dateEntree = $beneficiaire['dateEntree'];
$primeFamille = $beneficiaire['primeFamille'];
$primeBeneficiaire = $beneficiaire['primeBeneficiaire'];
$age = age($dateNaissance , $dateEntree);
// Pour Rdaiant
$codeEtape = $_SESSION['codeEtape_C'];
if($codeEtape=='1')
{
$accessoire = 15000;
}
else
{
$accessoire = 12000;
}
if($codeLienParente=='A')
{
$primeBase = $primeFamille;
}
else
{
$primeBase = $primeBeneficiaire;
}
$surprimeMaladie = 0;
$surprimeAge = 0;
$primeNette = $primeBase + $surprimeMaladie + $surprimeAge;
$commission = round(($primeNette*$_SESSION['tauxCommission_C'])/100);
$commissionAutre = round(($primeNette*$_SESSION['tauxCommission_C'])/100);
$primeHt = $primeNette + $commission;
$taxe = round(($primeHt*$_SESSION['tauxTaxe_C'])/100);
$fraisCarte = $accessoire;
$primeTtc = $primeHt+$taxe+$fraisCarte;
$sql = 'update beneficiaire set primeNette=?, commission=?, primeHt=?, taxe=?, fraisCarte=?, primeTtc=? WHERE (id=?)';
$this->executerRequete($sql, array($primeNette, $commission, $primeHt, $taxe, $fraisCarte, $primeTtc, $idBeneficiaire));
$sql = 'select IFNULL(sum(primeNette),"0") as primeNette, IFNULL(sum(commission),"0") as commission,
IFNULL(sum(primeHt),"0") as primeHt, IFNULL(sum(taxe),"0") as taxe,
IFNULL(sum(fraisCarte),"0") as fraisCarte, IFNULL(sum(primeTtc),"0") as primeTtc
from beneficiaire WHERE (idAdherent=?)';
$resultat = $this->executerRequete($sql, array($idAdherent));
$primeAdherent = $resultat->fetch();
$sql = 'update adherent set primeNette=?, commission=?, primeHt=?, taxe=?, fraisCarte=?, primeTtc=? WHERE (id=?)';
$this->executerRequete($sql, array($primeAdherent['primeNette'], $primeAdherent['commission'],$primeAdherent['primeHt'],
$primeAdherent['taxe'], $primeAdherent['fraisCarte'] , $primeAdherent['primeTtc'], $idAdherent));
}
*/
}

View File

@ -0,0 +1,392 @@
<?php
$this->titre = "INTER-SANTE - Consultation collège";
?>
<input class="sr-only" TYPE="text" id="idPolice" name="idPolice" value="<?= $_SESSION['idPolice_C'] ?>">
<input class="sr-only" TYPE="text" id="numeroPolice" name="numeroPolice" value="<?= $_SESSION['numeroPolice_C'] ?>">
<input class="sr-only" TYPE="text" id="idCollegeTemp" name="idCollegeTemp" value="<?= $this->nettoyer($collegeTemp['idCollegeTemp']) ?>">
<input class="sr-only" TYPE="text" id="idCollege" name="idCollege" value="<?= $this->nettoyer($collegeTemp['idCollege']) ?>">
<input class="sr-only" TYPE="text" id="rachatTm" name="rachatTm" value="<?= $this->nettoyer($collegeTemp['rachatTm']) ?>">
<input class="sr-only" id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="submit" value=<?= _("Enregistrer") ?> />
<input class="sr-only" TYPE="text" id="tauxPrimeFraisFuneraire" NAME="tauxPrimeFraisFuneraire" value="<?=$this->nettoyer($collegeTemp['tauxPrimeFraisFuneraire'])?>" >
<button id="btn_pop" NAME="btn_pop" type="button" class="sr-only" data-bs-toggle="modal" data-bs-target="#poptableauprestation"> </button>
<button id="btn_pop_lib_college" NAME="btn_pop_lib_college" type="button" class="sr-only" data-bs-toggle="modal" data-bs-target="#popmajlibellecollege"> <?= _("Modifier Libellé Collège") ?> </button>
<div id="div_colleges_police" class="container-fluid py-3 animate__animated animate__fadeIn">
<h1 class="text-primary"><i class="fas fa-users me-2"></i><?= _('Consultation du collège') ?></h1>
<fieldset class="card mb-3">
<div class="card-header d-flex justify-content-between align-items-center py-3">
<h4 class="fw-bold text-secondary mb-0">
<?= _("COLLEGE") ?> : <span class="text-primary"><?= $collegeTemp['libelleCollege'] ?></span>
</h4>
</div>
<div class="card-body">
<div class="row g-3">
<div class="col-md-3">
<label for="codeProduit" class="form-label small fw-bold text-uppercase"><?= _("Catégorie") ?></label>
<select class="form-control" id="codeProduit" name="codeProduit" disabled>
<?php liste_options($produit, $this->nettoyer($collegeTemp['codeProduit'])); ?>
</select>
</div>
<div class="col-md-3">
<label for="rachatTm" class="form-label small fw-bold text-uppercase"><?= _("Rachat Ticket Modérateur ?") ?></label>
<select class="form-control" id="rachatTm" name="rachatTm" disabled>
<?php liste_options($rachattm, $collegeTemp['rachatTm'], true); ?>
</select>
</div>
<div class="col-md-3">
<label for="tauxRachatTm" class="form-label small fw-bold text-uppercase"><?= _("Taux rachat (%)") ?></label>
<input class="form-control" id="tauxRachatTm" NAME="tauxRachatTm" TYPE="text" value="<?=$collegeTemp['tauxRachatTm']?>" disabled>
</div>
<div class="col-md-3">
<label for="tauxPrimeRachatTm" class="form-label small fw-bold text-uppercase"><?= _("Taux prime rachat (%)") ?></label>
<input class="form-control" id="tauxPrimeRachatTm" NAME="tauxPrimeRachatTm" TYPE="text" value="<?=$collegeTemp['tauxPrimeRachatTm']?>" disabled>
</div>
<div class="col-md-2">
<label for="nbAdherent" class="form-label small fw-bold text-uppercase"><?= _("NB Famille") ?></label>
<input style='text-align:center' class="form-control" TYPE="text" id="nbAdherent" NAME="nbAdherent" value="<?= format_N($this->nettoyer($collegeTemp['nbAdherent'])) ?>" disabled>
</div>
<div class="col-md-2">
<label for="nbAyantdroit" class="form-label small fw-bold text-uppercase"><?= _("NB Dépendant") ?></label>
<input style='text-align:center' class="form-control" TYPE="text" id="nbAyantdroit" NAME="nbAyantdroit" value="<?= format_N($this->nettoyer($collegeTemp['nbAyantdroit'])) ?>" disabled>
</div>
<div class="col-md-2">
<label for="primeFamille" class="form-label small fw-bold text-uppercase"><?= _("Prime base") ?></label>
<input style='text-align:center' class="form-control" TYPE="text" id="primeFamille" NAME="primeFamille" value="<?= format_N($this->nettoyer($collegeTemp['primeFamille'])) ?>" disabled>
</div>
<div class="col-md-2">
<label for="surprimeAnt" class="form-label small fw-bold text-uppercase"><?= _("Surprime") ?></label>
<input style='text-align:center' class="form-control" TYPE="text" id="surprimeAnt" NAME="surprimeAnt" value="<?= format_N($this->nettoyer($collegeTemp['surprimeAnt'])) ?>" disabled>
</div>
<div class="col-md-2">
<label for="cplFuneraire" class="form-label small fw-bold text-uppercase"><?= _("Frais funéraires") ?></label>
<input style='text-align:center' class="form-control" TYPE="text" id="cplFuneraire" NAME="cplFuneraire" value="<?= format_N($this->nettoyer($collegeTemp['cplFuneraire'])) ?>" disabled>
</div>
<div class="col-md-2">
<button type="button" class="form-control btn btn-primary" onclick="pop_consulter_tableau_prestation();">
<?= _("Tickets Modérateurs ...") ?>
</button>
</div>
</div>
</div>
</fieldset>
<div id="div_garanties" class="mt-4">
<div class="row g-3">
<!-- Garanties de Base -->
<div id="div_garbase" class="col-sm-12 col-md-6">
<fieldset class="card">
<div class="card-header py-2">
<h5 class="fw-bold text-secondary mb-0"><?= _("Garanties de Base") ?></h5>
</div>
<div class="card-body p-0">
<table class="table table-sm table-striped table-bordered table-hover custom-table mb-0">
<thead class="text-center">
<tr>
<th class="w-50"><?= _("Garanties de Base") ?></th>
<th class="w-15"><?= _("Tx") ?></th>
<th class="w-25"><?= _("Plafond") ?></th>
<th class="w-10"><?= _("Bn") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($garantiesbase as $garantiebase):
$idGarbase=$this->nettoyer($garantiebase['id']);
$garantie = est_anglophone() ? $this->nettoyer($garantiebase['garantieEng']) : $this->nettoyer($garantiebase['garantie']);
?>
<tr class="align-middle text-center">
<td><?= $garantie ?></td>
<td><?= $this->nettoyer($garantiebase['tauxPlafond']) ?></td>
<td class="text-danger"><?= format_N($this->nettoyer($garantiebase['plafond'])) ?></td>
<td>
<div class="form-check d-flex justify-content-center">
<input class="form-check-input" type="checkbox"
<?= $garantiebase['champApplication']=='1' ? 'checked' : '' ?> disabled>
</div>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</fieldset>
</div>
<!-- Garanties Optionnelles Acquises -->
<div id="div_gar_opt_acquises" class="col-sm-12 col-md-6">
<fieldset class="card">
<div class="card-header py-2">
<h5 class="fw-bold text-secondary mb-0"><?= _("Garanties Optionnelles Acquises") ?></h5>
</div>
<div class="card-body p-0">
<table class="table table-sm table-striped table-bordered table-hover custom-table mb-0">
<thead class="text-center">
<tr>
<th class="w-5"><?= _("Bn") ?></th>
<th><?= _("Garanties Optionnelles Acquises") ?></th>
<th class="w-15"><?= _("Prime") ?></th>
<th class="w-20"><?= _("Plafond") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptacquises as $garoptacquise):
$idGarantie=$this->nettoyer($garoptacquise['id']);
$garantie = est_anglophone() ? $this->nettoyer($garoptacquise['garantieEng']) : $this->nettoyer($garoptacquise['garantie']);
?>
<tr class="align-middle text-center">
<td>
<div class="form-check d-flex justify-content-center">
<input class="form-check-input" type="checkbox"
<?= $garoptacquise['champApplication']=='1' ? 'checked' : '' ?> disabled>
</div>
</td>
<td><?= $garantie ?></td>
<td><?= format_N($this->nettoyer($garoptacquise['primeOption'])) ?></td>
<td class="text-danger"><?= format_N($this->nettoyer($garoptacquise['plafond'])) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</fieldset>
</div>
</div>
</div>
<fieldset class="card mt-4">
<div class="card-header py-2">
<h5 class="fw-bold text-secondary mb-0">
<i class="fas fa-list-alt me-2"></i><?= _("Récapitulatif") ?>
</h5>
</div>
<div class="card-body p-0">
<div class="table-responsive">
<table class="table table-sm table-striped table-bordered table-hover text-center mb-0 custom-table">
<thead class="table-light">
<tr>
<th><?= _("Récapitulatif") ?></th>
<th><?= _("Adhérent") ?></th>
<th><?= _("Dépendant") ?></th>
<th><?= _("Total Adhérent") ?></th>
<th><?= _("Total Dépendant") ?></th>
<th><?= _("Total Famille") ?></th>
</tr>
</thead>
<tfoot>
<tr>
<td class="fw-bold"><?= _("Prime TTC") ?></td>
<td class="fw-bold"><?= format_N($this->nettoyer($collegeTemp['primeTtcAdherent'])) ?></td>
<td class="fw-bold"><?= format_N($this->nettoyer($collegeTemp['primeTtcBeneficiaire'])) ?></td>
<td class="fw-bold"><?= format_N($this->nettoyer($collegeTemp['primeTtcAdherent_total'])) ?></td>
<td class="fw-bold"><?= format_N($this->nettoyer($collegeTemp['primeTtcBeneficiaire_total'])) ?></td>
<td class="fw-bold"><?= format_N($this->nettoyer($collegeTemp['primeTtc_total'])) ?></td>
</tr>
<tr >
<td class="text-primary"><?= _("Prime Nette Statistique") ?></td>
<td class="text-primary"><?= format_N($this->nettoyer($collegeTemp['primeNetteStat'])) ?></td>
<td class="text-primary"><?= format_N($this->nettoyer($collegeTemp['primeNetteStatBeneficiaire'])) ?></td>
<td> - </td>
<td> - </td>
<td> - </td>
</tr>
</tfoot>
<tbody>
<tr>
<td><?= _("Prime de Base") ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['primeFamille'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['primeBeneficiaire'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['primeFamilleAdherent_total'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['primeBeneficiaire_total'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['primeFamille_total'])) ?></td>
</tr>
<tr>
<td><?= _("Complémentaire frais funéraires") ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['primeCplFuneraire'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireBeneficiaire'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireAdherent_total'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireBeneficiaire_total'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['primeCplFuneraire_total'])) ?></td>
</tr>
<tr>
<td><?= _("Garanties Optionnelles") ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['surprimeOption'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['surprimeOptionBeneficiaire'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['surprimeOptionAdherent_total'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['surprimeOptionBeneficiaire_total'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['surprimeOption_total'])) ?></td>
</tr>
<tr>
<td><?= _("Rachat Ticket Modérateur") ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['surprimeTm'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['surprimeTmBeneficiaire'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['surprimeTmAdherent_total'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['surprimeTmBeneficiaire_total'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['surprimeTm_total'])) ?></td>
</tr>
<tr>
<td><?= _("Surprimes Diverses") ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['surprimeAnt'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['surprimeAntBeneficiaire'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['surprimeAntAdherent_total'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['surprimeAntBeneficiaire_total'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['surprimeAnt_total'])) ?></td>
</tr>
<tr >
<td class="text-danger"><?= _("Prime Nette de commission") ?></td>
<td class="text-danger"><?= format_N($this->nettoyer($collegeTemp['primeNette'])) ?></td>
<td class="text-danger"><?= format_N($this->nettoyer($collegeTemp['primeNetteBeneficiaire'])) ?></td>
<td class="text-danger"><?= format_N($this->nettoyer($collegeTemp['primeNetteAdherent_total'])) ?></td>
<td class="text-danger"><?= format_N($this->nettoyer($collegeTemp['primeNetteBeneficiaire_total'])) ?></td>
<td class="text-danger"><?= format_N($this->nettoyer($collegeTemp['primeNette_total'])) ?></td>
</tr>
<tr>
<td><?= _("Commission Courtage") ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['commission'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['commissionBeneficiaire'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['commissionAdherent_total'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['commissionBeneficiaire_total'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['commission_total'])) ?></td>
</tr>
<tr>
<td><?= _("Commission Commerciaux") ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['commissionAutre'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['commissionAutreBeneficiaire'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['commissionAutreAdherent_total'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['commissionAutreBeneficiaire_total'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['commissionAutre_total'])) ?></td>
</tr>
<tr >
<td class="text-danger"><?= _("Prime Nette") ?></td>
<td class="text-danger"><?= format_N($this->nettoyer($collegeTemp['primeHt'])) ?></td>
<td class="text-danger"><?= format_N($this->nettoyer($collegeTemp['primeHtBeneficiaire'])) ?></td>
<td class="text-danger"><?= format_N($this->nettoyer($collegeTemp['primeHtAdherent_total'])) ?></td>
<td class="text-danger"><?= format_N($this->nettoyer($collegeTemp['primeHtBeneficiaire_total'])) ?></td>
<td class="text-danger"><?= format_N($this->nettoyer($collegeTemp['primeHt_total'])) ?></td>
</tr>
<tr>
<td><?= _("Taxes") ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['taxe'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['taxeBeneficiaire'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['taxeAdherent_total'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['taxeBeneficiaire_total'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['taxe_total'])) ?></td>
</tr>
<tr>
<td><?= _("Frais Cartes") ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['fraisCarte'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['fraisCarteBeneficiaire'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['fraisCarteAdherent_total'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['fraisCarteBeneficiaire_total'])) ?></td>
<td><?= format_N($this->nettoyer($collegeTemp['fraisCarte_total'])) ?></td>
</tr>
</tbody>
</table>
</div>
</div>
</fieldset>
<?php if (isset($msgErreur)): ?>
<div class="alert alert-danger" style="height:30px; padding:5px;" >
<H4><?= $msgErreur ?></H4>
</div>
<?php endif; ?>
</div>
<div class="modal fade modal-office" id="poptableauprestation" role="dialog" data-bs-backdrop="static" data-bs-keyboard="false">
<div class="modal-dialog modal-lg">
<div class="modal-content modal-office">
<div class="modal-header">
<h5 class="modal-title" id="poptableauprestationLabel"><?= _("Tickets Modérateurs") ?></h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="<?= _("Fermer") ?>"></button>
</div>
<div class="modal-body">
<div id="div_tableau_prestation"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal"><?= _("Fermer") ?></button>
</div>
</div>
</div>
</div>
<!-- Modal Modifier Libellé Collège -->
<div class="modal fade" id="popmajlibellecollege" tabindex="-1" aria-labelledby="popmajlibellecollegeLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content modal-office">
<div class="modal-header">
<h5 class="modal-title" id="popmajlibellecollegeLabel"><?= _("Modifier Libellé Collège") ?></h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="<?= _("Fermer") ?>"></button>
</div>
<div class="modal-body">
<div id="div_maj_libelle_college">
<table class="table table-sm table-bordered align-middle">
<tbody>
<tr>
<td class="text-center fw-bold w-25"><?= _("Ancien Libellé") ?></td>
<td>
<input class="form-control" type="text" id="ancLibelleCollege" name="ancLibelleCollege"
value="<?= $collegeTemp['libelleCollege'] ?>" readonly>
</td>
</tr>
<tr>
<td class="text-center fw-bold"><?= _("Nouveau Libellé") ?></td>
<td>
<input class="form-control" type="text" id="nouvLibelleCollege" name="nouvLibelleCollege"
value="<?= $collegeTemp['libelleCollege'] ?>">
</td>
</tr>
<tr>
<td></td>
<td>
<button type="button" class="btn btn-info w-100" onclick="enregistrer_maj_libelle_college();">
<?= _("Enregistrer...") ?>
</button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="modal-footer">
<button id="btn_close_pop_maj_libelle" name="btn_close_pop_maj_libelle" type="button"
class="btn btn-secondary" data-bs-dismiss="modal"><?= _("Fermer") ?></button>
</div>
</div>
</div>
</div>

View File

@ -0,0 +1,603 @@
<?php $this->titre = "INTER-SANTE - Ajout Collège";
$_SESSION['imposerPlafond'] = $this->nettoyer($collegeTemp['imposerPlafond']);
?>
<form id="frmcreercollege" id="frmcreercollege" method="post" action="Creercollege/enregistrer">
<INPUT class="sr-only" TYPE="text" id="idPolice" name="idPolice" value="<?= $_SESSION['idPolice_C'] ?>">
<INPUT class="sr-only" TYPE="text" id="numeroPolice" name="numeroPolice" value="<?= $_SESSION['numeroPolice_C'] ?>">
<INPUT class="sr-only" TYPE="text" id="idCollegeTemp" name="idCollegeTemp" value="<?= $this->nettoyer($collegeTemp['idCollegeTemp']) ?>">
<input class="sr-only" id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="submit" value=<?= _("Enregistrer") ?> />
<button id="btn_pop" NAME="btn_pop" type="button" class="sr-only" data-toggle="modal" data-target="#poptableauprestation"> <?= _("Tickets Modérateurs...") ?> </button>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%"> <?= _("Catégorie") ?> </td>
<td colspan="3">
<SELECT class="form-control" id="codeProduit" NAME="codeProduit" required autofocus
onChange="$('#libelleCollege').val(this.options[this.selectedIndex].text); change_categorie_college_temp();">
<?php liste_options($produit, $this->nettoyer($collegeTemp['codeProduit']), true); ?>
</SELECT>
</td>
<td width="6%" align="right"> <?= _("Collège") ?> </td>
<td colspan="3"><INPUT class="form-control" TYPE="text" id="libelleCollege" NAME="libelleCollege" value="<?=$collegeTemp['libelleCollege']?>" riquired
onblur="controle_champ_obligatoire(this);"></td>
<td width="6%" align="right"> <?= _("Rachat TM") ?> </td>
<td>
<SELECT class="form-control" id="rachatTm" NAME="rachatTm" onChange="javascript:maj_college();">
<?php liste_options($rachattm, $collegeTemp['rachatTm'], true); ?>
</SELECT>
</td>
<?php if($collegeTemp['rachatTm']!='1'): ?>
<td width="6%" align="right"> <?= _("Rach(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxRachatTm" NAME="tauxRachatTm" TYPE="text" value="<?=$collegeTemp['tauxRachatTm']?>" readonly>
</td>
<td width="6%" align="right"> <?= _("Tx Prime(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxPrimeRachatTm" NAME="tauxPrimeRachatTm" TYPE="text" value="<?=$collegeTemp['tauxPrimeRachatTm']?>" readonly>
</td>
<?php else: ?>
<td width="6%" align="right"> <?= _("Rach(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxRachatTm" NAME="tauxRachatTm" TYPE="text" value="<?=$collegeTemp['tauxRachatTm']?>"
onChange="javascript:maj_college();">
</td>
<td width="6%" align="right"> <?= _("Tx Prime(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxPrimeRachatTm" NAME="tauxPrimeRachatTm" TYPE="text" value="<?=$collegeTemp['tauxPrimeRachatTm']?>"
onChange="javascript:maj_college();">
</td>
<?php endif; ?>
</tr>
<tr>
<td> <?= _("Nb Fam") ?> </td>
<td width="10%" ><INPUT style='text-align:center' class="form-control" TYPE="text" id="nbAdherent" NAME="nbAdherent" value="<?=$this->nettoyer($collegeTemp['nbAdherent'])?>" required onBlur="controle_numerique(this);"></td>
<td align="right"> <?= _("Dép") ?> </td>
<td width="10%"><INPUT style='text-align:center' class="form-control" TYPE="text" id="nbAyantdroit" NAME="nbAyantdroit" value="<?=$this->nettoyer($collegeTemp['nbAyantdroit'])?>" onBlur="controle_numerique(this);"></td>
<td align="right"> <?= _("Prime base") ?> </td>
<td width="10%">
<div id="div_prime_categorie" >
<INPUT style='text-align:center' class="form-control" TYPE="text" id="primeFamille" NAME="primeFamille" value="<?=$this->nettoyer($collegeTemp['primeFamille'])?>" required onBlur="controle_numerique(this); controle_bornes_primes();">
<INPUT class="sr-only" TYPE="text" id="primeMin" name="primeMin" value="<?= $this->nettoyer($collegeTemp['primeMin']) ?>">
<INPUT class="sr-only" TYPE="text" id="primeMax" name="primeMax" value="<?= $this->nettoyer($collegeTemp['primeMax']) ?>">
</div>
</td>
<td align="right">Surpr. Div.</td>
<td width="10%" > <INPUT style='text-align:center' class="form-control" TYPE="text" id="surprimeAnt" NAME="surprimeAnt" value="<?=$this->nettoyer($collegeTemp['surprimeAnt'])?>" onBlur="controle_numerique(this);"></td>
<INPUT class="sr-only" TYPE="text" id="tauxPrimeFraisFuneraire" NAME="tauxPrimeFraisFuneraire" value="<?=$this->nettoyer($collegeTemp['tauxPrimeFraisFuneraire'])?>" >
<!--
<td align="right"> <?= _("Tx F Fun") ?> </td>
<td width="10%" ><INPUT style='text-align:center' class="form-control" TYPE="text" id="tauxPrimeFraisFuneraire" NAME="tauxPrimeFraisFuneraire" value="<?=$this->nettoyer($collegeTemp['tauxPrimeFraisFuneraire'])?>" onBlur="controle_numerique(this);"></td>
-->
<td align="right"> <?= _("Cpl F Fun") ?> </td>
<td width="10%"><INPUT style='text-align:center' class="form-control" TYPE="text" id="cplFuneraire" NAME="cplFuneraire" value="<?=$this->nettoyer($collegeTemp['cplFuneraire'])?>" onBlur="controle_numerique(this);"></td>
<td width="3%" align="right"> <?= _("Carte") ?> </td>
<td width="8%">
<INPUT style='text-align:center' class="form-control" id="fraisCarte" NAME="fraisCarte" TYPE="text" value="<?=$collegeTemp['fraisCarte']?>">
</td>
<td colspan="2"> <button style='font-size:10pt;' type="button" class="form-control btn btn-info" onclick="javascript:pop_tableau_prestation();"> <?= _("Tick Mod...") ?> </button> </td>
</tr>
</tbody>
</table>
<div id="div_garanties">
<?php if($_SESSION['adminProd']=='1'): ?>
<div class="row">
<div id="div_garbase" class="col-xs-4" style="padding-right:0px;">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="30%" style='text-align:center'> <?= _("Imposer Limites?") ?> </th>
<th width="20%" align="center" style='text-align:center'>
<SELECT class="form-control" id="imposerPlafond" NAME="imposerPlafond" onChange="javascript:maj_college();">
<?php liste_options($ouinonimposerplafond, $_SESSION['imposerPlafond'], true); ?>
</SELECT>
</th>
<?php if($_SESSION['imposerPlafond']=='1'): ?>
<th width="20%" style='text-align:center'> <?= _("Anc Plaf") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Nouv Plaf") ?> </th>
<?php else: ?>
<th width="20%" style='text-align:center'> <?= _("Tx") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Plafond") ?> </th>
<?php endif; ?>
<th width="10%" style='text-align:center'> <?= _("Bn") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garantiesbase as $garantiebase):
$idGarbase=$this->nettoyer($garantiebase['id']);
$garantie = $this->nettoyer($garantiebase['garantie']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garantiebase['garantieEng']);
}
?>
<tr valign="top">
<td colspan="2" align='center'><?= $garantie ?></td>
<?php if($_SESSION['imposerPlafond']=='1'): ?>
<td style='color:red' align='center'><?= format_N($this->nettoyer($garantiebase['plafond'])) ?></td>
<td>
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($garantiebase['plafond']) ?>"
onChange="ajax_imposer_plafond('<?=$idGarbase?>', this.value, this);">
</td>
<?php else: ?>
<td>
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($garantiebase['tauxPlafond']) ?>"
onChange="ajax_maj_taux_plafond('<?=$idGarbase?>', this.value, this);">
</td>
<td style='color:red' align='center'><?= format_N($this->nettoyer($garantiebase['plafond'])) ?></td>
<?php endif; ?>
<?php if($garantiebase['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div id="div_garoptionnelle" class="col-xs-2" style="padding:0px;">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Garantie Optionnelles") ?> </th>
<th style='text-align:center'> => </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptionnelles as $garoptionnelle):
$codeGarantie=$this->nettoyer($garoptionnelle['codeGarantie']);
$idCol=$this->nettoyer($garoptionnelle['idCollegeTemp']);
$garantie = $this->nettoyer($garoptionnelle['libelle']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptionnelle['libelleEng']);
}
?>
<tr valign="top">
<td align='center'><?= $garantie ?></td>
<?php if($idCol<='0'): ?>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_une_garantie_college('<?= $codeGarantie ?>');"></td>
<?php else: ?>
<td> </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div id="div_gar_opt_acquises" class="col-xs-6" style="padding:0px;">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="5%" style='text-align:center'> <= </th>
<th width="5%" style='text-align:center'> <?= _("Bn") ?> </th>
<th style='text-align:center'> <?= _("Garanties Optionnelles Acquises") ?> </th>
<th width="10%" style='text-align:center'> <?= _("Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Plafond") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Plaf") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptacquises as $garoptacquise):
$idGarantie=$this->nettoyer($garoptacquise['id']);
$gar_add=$this->nettoyer($garoptacquise['additionnelle']);
$gar = $this->nettoyer($garoptacquise['codeGarantie']) ;
$garantie = $this->nettoyer($garoptacquise['garantie']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptacquise['garantieEng']);
}
?>
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_garantie_college(<?= $idGarantie ?>);"></td>
<?php if($garoptacquise['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php endif; ?>
<?php if($gar_add=='1'): ?>
<td>
<INPUT class="form-control" TYPE="text" value="<?= $garantie ?>"
onblur="controle_champ_obligatoire(this);" onChange="ajax_maj_lib_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<?php else: ?>
<td><INPUT class="form-control" TYPE="text" value="<?= $garantie ?>" readonly></td>
<?php endif; ?>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['primeOption'])) ?></td>
<td align='center'>
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['primeOption'])?>"
onChange="maj_prime_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['plafond'])) ?></td>
<td style='color:red' align='center'>
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['plafond'])?>"
onChange="maj_plafond_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
<?php else: ?>
<INPUT class="sr-only" TYPE="text" id="imposerPlafond" name="imposerPlafond" value="<?= $_SESSION['imposerPlafond'] ?>">
<div class="row">
<div id="div_garbase" class="col-xs-3" style="padding-right:0px;">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="50%"style='text-align:center'> <?= _("Garanties de Base") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Tx") ?> </th>
<th width="25%" style='text-align:center'> <?= _("Plafond") ?> </th>
<th width="10%" style='text-align:center'> <?= _("Bn") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garantiesbase as $garantiebase):
$idGarbase=$this->nettoyer($garantiebase['id']);
?>
<tr valign="top">
<td align='center'><?= $this->nettoyer($garantiebase['garantie']) ?></td>
<td align='center'> <?= $this->nettoyer($garantiebase['tauxPlafond']) ?> </td>
<td style='color:red' align='center'><?= format_N($this->nettoyer($garantiebase['plafond'])) ?></td>
<?php if($garantiebase['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php endif; ?>
<?php endforeach; ?>
</tr>
</tbody>
</table>
</div>
<div id="div_garoptionnelle" class="col-xs-2" style="padding:0px;">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Garantie Optionnelles") ?> </th>
<th style='text-align:center'> => </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptionnelles as $garoptionnelle):
$codeGarantie=$this->nettoyer($garoptionnelle['codeGarantie']);
$idCol=$this->nettoyer($garoptionnelle['idCollegeTemp']);
$garantie = $this->nettoyer($garoptionnelle['libelle']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptionnelle['libelleEng']);
}
?>
<tr valign="top">
<td align='center'><?= $garantie ?></td>
<?php if($idCol<='0'): ?>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_une_garantie_college('<?= $codeGarantie ?>');"></td>
<?php else: ?>
<td> </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div id="div_gar_opt_acquises" class="col-xs-7" style="padding:0px;">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="5%" style='text-align:center'> <= </th>
<th width="5%" style='text-align:center'> <?= _("Bn") ?> </th>
<th style='text-align:center'> <?= _("Garanties Optionnelles Acquises") ?> </th>
<th width="10%" style='text-align:center'> <?= _("Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Plafond") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Plaf") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptacquises as $garoptacquise):
$idGarantie=$this->nettoyer($garoptacquise['id']);
$gar_add=$this->nettoyer($garoptacquise['additionnelle']);
$gar = $this->nettoyer($garoptacquise['codeGarantie']) ;
$garantie = $this->nettoyer($garoptacquise['garantie']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptacquise['garantieEng']);
}
?>
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_garantie_college(<?= $idGarantie ?>);"></td>
<?php if($garoptacquise['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php endif; ?>
<?php if($gar_add=='1'): ?>
<td>
<INPUT class="form-control" TYPE="text" value="<?= $garantie ?>"
onblur="controle_champ_obligatoire(this);" onChange="ajax_maj_lib_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<?php else: ?>
<td><INPUT class="form-control" TYPE="text" value="<?= $garantie ?>" readonly></td>
<?php endif; ?>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['primeOption'])) ?></td>
<td align='center'>
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['primeOption'])?>"
onChange="maj_prime_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['plafond'])) ?></td>
<td style='color:red' align='center'>
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['plafond'])?>"
onChange="maj_plafond_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
<?php endif; ?>
</div>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:9pt; text-align:center'>
<thead>
<tr>
<th><input style='font-size:10pt;' id="btn_recap" name="btn_recap" class = "form-control btn btn-primary" type="submit" value="<?= _("Récapituler") ?>" ></th>
<th style='text-align:center'> <?= _("Adhérent") ?> </th>
<th style='text-align:center'> <?= _("Dépendants") ?> </th>
<th style='text-align:center'> <?= _("Total Adh") ?> </th>
<th style='text-align:center'> <?= _("Total Dép") ?> </th>
<th style='text-align:center'> <?= _("Total Fam") ?> </th>
</tr>
</thead>
<tfoot>
<tr>
<td> <?= _("Prime TTC") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcAdherent']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtc_total']))?> </td>
</tr>
<tr style='color:blue;'>
<td> Prime Nette Statisque </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteStat']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteStatBeneficiaire']))?> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</tfoot>
<tbody>
<tr>
<td> <?= _("Prime de Base") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeFamille']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeFamilleAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeFamille_total']))?> </td>
</tr>
<tr>
<td> <?= _("Cpl frais funéraires") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraire_total']))?> </td>
</tr>
<tr>
<td> <?= _("Garanties Optionnelles") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOption']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOptionBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOptionAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOptionBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOption_total']))?> </td>
</tr>
<tr>
<td> <?= _("Rachat Ticket Modérateur") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTm']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTmBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTmAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTmBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTm_total']))?> </td>
</tr>
<tr>
<td> <?= _("Surprimes Diverses") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAnt']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAntBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAntAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAntBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAnt_total']))?> </td>
</tr>
<tr style='color:red'>
<td> <?= _("Prime Nette de commission") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNette']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNette_total']))?> </td>
</tr>
<tr>
<td> <?= _("Commission Courtage") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commission']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commission_total']))?> </td>
</tr>
<tr>
<td> <?= _("Commission Commerciaux") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutre']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutreBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutreAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutreBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutre_total']))?> </td>
</tr>
<tr style='color:red'>
<td> <?= _("Prime Nette") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHt']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHtBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHtAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHtBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHt_total']))?> </td>
</tr>
<tr>
<td> <?= _("Taxes") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxe']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxeBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxeAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxeBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxe_total']))?> </td>
</tr>
<tr>
<td> <?= _("Frais Cartes") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarte']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarteBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarteAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarteBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarte_total']))?> </td>
</tr>
</tbody>
</table>
<?php if (isset($msgErreur)): ?>
<div class="alert alert-danger" style="height:30px; padding:5px;" >
<H4><?= $msgErreur ?></H4>
</div>
<?php endif; ?>
</form>
<div class="modal fade" id="poptableauprestation" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"> <?= _("Tickets Modérateurs") ?> </h4>
</div>
<div class="modal-body">
<div id="div_tableau_prestation">
div_tableau_prestation
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>

View File

@ -0,0 +1,631 @@
<?php
$this->titre = "INTER-SANTE - Ajout Collège au Devis";
$_SESSION['imposerPlafond'] = $this->nettoyer($collegeTemp['imposerPlafond']);
$controlPlafondAdherent = $_SESSION['controlPlafondAdherent'];
$controlPlafondBeneficiaire = $_SESSION['controlPlafondBeneficiaire'];
// var_dump($optionstarif);
// exit();
?>
<div id="div_listeprospects" style="height:100%; background-color: rgb(255,0,255);">
<?= _("GESTION DES DEVIS") ?>
</div>
<form id="frmcreercollege" id="frmcreercollege" method="post" action="Creercolleged/enregistrer" >
<INPUT class="sr-only" TYPE="text" id="idPolice" name="idPolice" value="<?= $_SESSION['idPolice_d_C'] ?>">
<INPUT class="sr-only" TYPE="text" id="numeroPolice" name="numeroPolice" value="<?= $_SESSION['numeroPolice_d_C'] ?>">
<INPUT class="sr-only" TYPE="text" id="idCollegeTemp" name="idCollegeTemp" value="<?= $this->nettoyer($collegeTemp['idCollegeTemp']) ?>">
<input class="sr-only" id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="submit" value=<?= _("Enregistrer") ?> />
<button id="btn_pop" NAME="btn_pop" type="button" class="sr-only" data-toggle="modal" data-target="#poptableauprestation"> <?= _("Tickets Modérateurs...") ?> </button>
<fieldset>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%">Option</td>
<td>
<SELECT class="form-control" id="numeroOptionTarif" NAME="numeroOptionTarif" required autofocus >
<?php liste_options($optionstarif, $this->nettoyer($collegeTemp['numeroOptionTarif']), true); ?>
</SELECT>
</td>
<td> <?= _("Cat") ?> </td>
<td>
<SELECT class="form-control" id="codeProduit" NAME="codeProduit" required
onChange="$('#libelleCollege').val(this.options[this.selectedIndex].text); change_categorie_college_temp();">
<?php liste_options($produit, $this->nettoyer($collegeTemp['codeProduit']), true); ?>
</SELECT>
</td>
<td width="6%" align="right"> <?= _("Collège") ?> </td>
<td colspan="3"><INPUT class="form-control" TYPE="text" id="libelleCollege" NAME="libelleCollege" value="<?=$collegeTemp['libelleCollege']?>" riquired
onblur="controle_champ_obligatoire(this);"></td>
<td width="6%" align="right"> <?= _("Rachat TM") ?> </td>
<td>
<SELECT class="form-control" id="rachatTm" NAME="rachatTm" onChange="maj_college();">
<?php liste_options($rachattm, $collegeTemp['rachatTm'], true); ?>
</SELECT>
</td>
<?php if($collegeTemp['rachatTm']!='1'): ?>
<td width="6%" align="right"> <?= _("Rach(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxRachatTm" NAME="tauxRachatTm" TYPE="text" value="<?=$collegeTemp['tauxRachatTm']?>" readonly>
</td>
<td width="6%" align="right"> <?= _("Tx Prime(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxPrimeRachatTm" NAME="tauxPrimeRachatTm" TYPE="text" value="<?=$collegeTemp['tauxPrimeRachatTm']?>" readonly>
</td>
<?php else: ?>
<td width="6%" align="right"> <?= _("Rach(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxRachatTm" NAME="tauxRachatTm" TYPE="text" value="<?=$collegeTemp['tauxRachatTm']?>"
onChange="maj_college();">
</td>
<td width="6%" align="right"> <?= _("Tx Prime(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxPrimeRachatTm" NAME="tauxPrimeRachatTm" TYPE="text" value="<?=$collegeTemp['tauxPrimeRachatTm']?>"
onChange="maj_college();">
</td>
<?php endif; ?>
</tr>
<tr>
<td> <?= _("Nb Fam") ?> </td>
<td width="10%" ><INPUT style='text-align:center' class="form-control" TYPE="text" id="nbAdherent" NAME="nbAdherent" value="<?=$this->nettoyer($collegeTemp['nbAdherent'])?>" required onBlur="controle_numerique(this);"></td>
<td align="right"> <?= _("Dép") ?> </td>
<td width="10%"><INPUT style='text-align:center' class="form-control" TYPE="text" id="nbAyantdroit" NAME="nbAyantdroit" value="<?=$this->nettoyer($collegeTemp['nbAyantdroit'])?>" onBlur="controle_numerique(this);"></td>
<td align="right"> <?= _("Prime base") ?> </td>
<td width="10%">
<div id="div_prime_categorie" >
<INPUT style='text-align:center' class="form-control" TYPE="text" id="primeFamille" NAME="primeFamille" value="<?=$this->nettoyer($collegeTemp['primeFamille'])?>" required onBlur="controle_numerique(this); controle_bornes_primes();">
<INPUT class="sr-only" TYPE="text" id="primeMin" name="primeMin" value="<?= $this->nettoyer($collegeTemp['primeMin']) ?>">
<INPUT class="sr-only" TYPE="text" id="primeMax" name="primeMax" value="<?= $this->nettoyer($collegeTemp['primeMax']) ?>">
</div>
</td>
<td align="right">Surpr. Div.</td>
<td width="10%" > <INPUT style='text-align:center' class="form-control" TYPE="text" id="surprimeAnt" NAME="surprimeAnt" value="<?=$this->nettoyer($collegeTemp['surprimeAnt'])?>" onBlur="controle_numerique(this);"></td>
<INPUT class="sr-only" TYPE="text" id="tauxPrimeFraisFuneraire" NAME="tauxPrimeFraisFuneraire" value="<?=$this->nettoyer($collegeTemp['tauxPrimeFraisFuneraire'])?>" >
<td align="right"> <?= _("Cpl F Fun") ?> </td>
<td width="10%"><INPUT style='text-align:center' class="form-control" TYPE="text" id="cplFuneraire" NAME="cplFuneraire" value="<?=$this->nettoyer($collegeTemp['cplFuneraire'])?>" onBlur="controle_numerique(this);"></td>
<td width="3%" align="right"> <?= _("Carte") ?> </td>
<td width="8%">
<INPUT class="form-control" id="fraisCarte" NAME="fraisCarte" TYPE="text" value="<?=$collegeTemp['fraisCarte']?>">
</td>
<td colspan="2"> <button style='font-size:10pt;' type="button" class="form-control btn btn-info" onclick="javascript:pop_tableau_prestation();"> <?= _("Tick Mod...") ?> </button> </td>
</tr>
</tbody>
</table>
</fieldset>
<div id="div_garanties">
<?php if($_SESSION['adminProd']=='1'): ?>
<div class="row">
<div id="div_garbase" class="col-xs-4" style="padding-right:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="30%" style='text-align:center'> <?= _("Imposer Limites?") ?> </th>
<th width="20%" align="center" style='text-align:center'>
<SELECT class="form-control" id="imposerPlafond" NAME="imposerPlafond" onChange="maj_college();">
<?php liste_options($ouinonimposerplafond, $_SESSION['imposerPlafond'], true); ?>
</SELECT>
</th>
<?php if($_SESSION['imposerPlafond']=='1'): ?>
<th width="20%" style='text-align:center'> <?= _("Anc Plaf") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Nouv Plaf") ?> </th>
<?php else: ?>
<th width="20%" style='text-align:center'> <?= _("Tx") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Plafond") ?> </th>
<?php endif; ?>
<th width="10%" style='text-align:center'> <?= _("Bn") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garantiesbase as $garantiebase):
$idGarbase=$this->nettoyer($garantiebase['id']);
?>
<tr valign="top">
<td colspan="2" align='center'><?= $this->nettoyer($garantiebase['garantie']) ?></td>
<?php if($_SESSION['imposerPlafond']=='1'): ?>
<td style='color:red' align='center'><?= format_N($this->nettoyer($garantiebase['plafond'])) ?></td>
<td>
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($garantiebase['plafond']) ?>"
onChange="ajax_imposer_plafond('<?=$idGarbase?>', this.value, this);">
</td>
<?php else: ?>
<td>
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($garantiebase['tauxPlafond']) ?>"
onChange="ajax_maj_taux_plafond('<?=$idGarbase?>', this.value, this);">
</td>
<td style='color:red' align='center'><?= format_N($this->nettoyer($garantiebase['plafond'])) ?></td>
<?php endif; ?>
<?php if($garantiebase['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
<div id="div_garoptionnelle" class="col-xs-2" style="padding:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Garantie Optionnelles") ?> </th>
<th style='text-align:center'> => </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptionnelles as $garoptionnelle):
$codeGarantie=$this->nettoyer($garoptionnelle['codeGarantie']);
$idCol=$this->nettoyer($garoptionnelle['idCollegeTemp']);
$garantie = $this->nettoyer($garoptionnelle['libelle']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptionnelle['libelleEng']);
}
?>
<tr valign="top">
<td align='center'><?= $garantie ?></td>
<?php if($idCol<='0'): ?>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_une_garantie_college('<?= $codeGarantie ?>');"></td>
<?php else: ?>
<td> </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
<div id="div_gar_opt_acquises" class="col-xs-6" style="padding:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="5%" style='text-align:center'> <= </th>
<th width="5%" style='text-align:center'> <?= _("Bn") ?> </th>
<th style='text-align:center'> <?= _("Garanties Optionnelles Acquises") ?> </th>
<th width="10%" style='text-align:center'> <?= _("Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Plafond") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Plaf") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptacquises as $garoptacquise):
$idGarantie=$this->nettoyer($garoptacquise['id']);
$gar_add=$this->nettoyer($garoptacquise['additionnelle']);
$gar = $this->nettoyer($garoptacquise['codeGarantie']) ;
$garantie = $this->nettoyer($garoptacquise['garantie']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptacquise['garantieEng']);
}
?>
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_garantie_college(<?= $idGarantie ?>);"></td>
<?php if($garoptacquise['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php endif; ?>
<?php if($gar_add=='1'): ?>
<td>
<INPUT class="form-control" TYPE="text" value="<?= $garantie ?>"
onblur="controle_champ_obligatoire(this);" onChange="ajax_maj_lib_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<?php else: ?>
<td><INPUT class="form-control" TYPE="text" value="<?= $garantie ?>" readonly></td>
<?php endif; ?>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['primeOption'])) ?></td>
<td align='center'>
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['primeOption'])?>"
onChange="maj_prime_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['plafond'])) ?></td>
<td style='color:red' align='center'>
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['plafond'])?>"
onChange="maj_plafond_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
</div>
<?php else: ?>
<INPUT class="sr-only" TYPE="text" id="imposerPlafond" name="imposerPlafond" value="<?= $_SESSION['imposerPlafond'] ?>">
<div class="row">
<div id="div_garbase" class="col-xs-3" style="padding-right:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="50%"style='text-align:center'> <?= _("Garanties de Base") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Tx") ?> </th>
<th width="25%" style='text-align:center'> <?= _("Plafond") ?> </th>
<th width="10%" style='text-align:center'> <?= _("Bn") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garantiesbase as $garantiebase):
$idGarbase=$this->nettoyer($garantiebase['id']);
?>
<tr valign="top">
<td align='center'><?= $this->nettoyer($garantiebase['garantie']) ?></td>
<td align='center'> <?= $this->nettoyer($garantiebase['tauxPlafond']) ?> </td>
<td style='color:red' align='center'><?= format_N($this->nettoyer($garantiebase['plafond'])) ?></td>
<?php if($garantiebase['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
<div id="div_garoptionnelle" class="col-xs-2" style="padding:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Garantie Optionnelles") ?> </th>
<th style='text-align:center'> => </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptionnelles as $garoptionnelle):
$codeGarantie=$this->nettoyer($garoptionnelle['codeGarantie']);
$idCol=$this->nettoyer($garoptionnelle['idCollegeTemp']);
$garantie = $this->nettoyer($garoptionnelle['libelle']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptionnelle['libelleEng']);
}
?>
<tr valign="top">
<td align='center'><?= $garantie ?></td>
<?php if($idCol<='0'): ?>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_une_garantie_college('<?= $codeGarantie ?>');"></td>
<?php else: ?>
<td> </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
<div id="div_gar_opt_acquises" class="col-xs-7" style="padding:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="5%" style='text-align:center'> <= </th>
<th width="5%" style='text-align:center'> <?= _("Bn") ?> </th>
<th style='text-align:center'> <?= _("Garanties Optionnelles Acquises") ?> </th>
<th width="10%" style='text-align:center'> <?= _("Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Plafond") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Plaf") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptacquises as $garoptacquise):
$idGarantie=$this->nettoyer($garoptacquise['id']);
$gar_add=$this->nettoyer($garoptacquise['additionnelle']);
$gar = $this->nettoyer($garoptacquise['codeGarantie']) ;
$garantie = $this->nettoyer($garoptacquise['garantie']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptacquise['garantieEng']);
}
?>
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_garantie_college(<?= $idGarantie ?>);"></td>
<?php if($garoptacquise['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php endif; ?>
<?php if($gar_add=='1'): ?>
<td>
<INPUT class="form-control" TYPE="text" value="<?= $garantie ?>"
onblur="controle_champ_obligatoire(this);" onChange="ajax_maj_lib_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<?php else: ?>
<td><INPUT class="form-control" TYPE="text" value="<?= $garantie ?>" readonly></td>
<?php endif; ?>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['primeOption'])) ?></td>
<td align='center'>
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['primeOption'])?>"
onChange="maj_prime_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['plafond'])) ?></td>
<td style='color:red' align='center'>
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['plafond'])?>"
onChange="maj_plafond_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
</div>
<?php endif; ?>
</div>
<fieldset >
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:9pt; text-align:center'>
<thead>
<tr>
<th><input style='font-size:10pt;' id="btn_recap" name="btn_recap" class = "form-control btn btn-primary" type="submit" value="<?= _("Récapituler") ?>" ></th>
<th style='text-align:center'> <?= _("Adhérent") ?> </th>
<th style='text-align:center'> <?= _("Dépendants") ?> </th>
<th style='text-align:center'> <?= _("Total Adh") ?> </th>
<th style='text-align:center'> <?= _("Total Dép") ?> </th>
<th style='text-align:center'> <?= _("Total Fam") ?> </th>
</tr>
</thead>
<tfoot>
<tr>
<td> <?= _("Prime TTC") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcAdherent']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtc_total']))?> </td>
</tr>
<tr style='color:blue;'>
<td> <?= _("Prime Nette Statisque") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteStat']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteStatBeneficiaire']))?> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</tfoot>
<tbody>
<tr>
<td> <?= _("Prime de Base") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeFamille']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeFamilleAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeFamille_total']))?> </td>
</tr>
<tr>
<td> <?= _("Cpl frais funéraires") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraire_total']))?> </td>
</tr>
<tr>
<td> <?= _("Garanties Optionnelles") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOption']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOptionBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOptionAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOptionBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOption_total']))?> </td>
</tr>
<tr>
<td> <?= _("Rachat Ticket Modérateur") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTm']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTmBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTmAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTmBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTm_total']))?> </td>
</tr>
<tr>
<td> <?= _("Surprimes Diverses") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAnt']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAntBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAntAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAntBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAnt_total']))?> </td>
</tr>
<tr style='color:red'>
<td> <?= _("Prime Nette de commission") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNette']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNette_total']))?> </td>
</tr>
<tr>
<td> <?= _("Commission Courtage") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commission']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commission_total']))?> </td>
</tr>
<tr>
<td> <?= _("Commission Commerciaux") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutre']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutreBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutreAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutreBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutre_total']))?> </td>
</tr>
<tr style='color:red'>
<td> <?= _("Prime Nette") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHt']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHtBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHtAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHtBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHt_total']))?> </td>
</tr>
<tr>
<td> <?= _("Taxes") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxe']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxeBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxeAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxeBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxe_total']))?> </td>
</tr>
<tr>
<td> <?= _("Frais Cartes") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarte']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarteBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarteAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarteBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarte_total']))?> </td>
</tr>
</tbody>
</table>
</fieldset>
<?php if (isset($msgErreur)): ?>
<div class="alert alert-danger" style="height:30px; padding:5px;" >
<H4><?= $msgErreur ?></H4>
</div>
<?php endif; ?>
</form>
<div class="modal fade" id="poptableauprestation" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"> <?= _("Tickets Modérateurs") ?> </h4>
</div>
<div class="modal-body">
<div id="div_tableau_prestation">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>

View File

@ -0,0 +1,671 @@
<?php
$this->titre = "INTER-SANTE - Modification collège";
$_SESSION['imposerPlafond'] = $this->nettoyer($collegeTemp['imposerPlafond']);
?>
<form id="frmcreercollege" id="frmcreercollege" method="post" action="Modifiercollege/enregistrer">
<INPUT class="sr-only" TYPE="text" id="idPolice" name="idPolice" value="<?= $_SESSION['idPolice_C'] ?>">
<INPUT class="sr-only" TYPE="text" id="numeroPolice" name="numeroPolice" value="<?= $_SESSION['numeroPolice_C'] ?>">
<INPUT class="sr-only" TYPE="text" id="idCollegeTemp" name="idCollegeTemp" value="<?= $this->nettoyer($collegeTemp['idCollegeTemp']) ?>">
<input class="sr-only" id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="submit" value=<?= _("Enregistrer") ?> />
<button id="btn_pop" NAME="btn_pop" type="button" class="sr-only" data-toggle="modal" data-target="#poptableauprestation"> <?= _("Tickets Modérateurs...") ?> </button>
<button id="btn_pop_lib_college" NAME="btn_pop_lib_college" type="button" class="sr-only" data-toggle="modal" data-target="#popmajlibellecollege"> <?= _("Modifier Libellé Collège") ?> </button>
<fieldset>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%"> <?= _("Catégorie") ?> </td>
<td colspan="3">
<SELECT class="form-control" id="codeProduit" NAME="codeProduit" required autofocus
onChange="$('#libelleCollege').val(this.options[this.selectedIndex].text); change_categorie_college_temp();">
<?php liste_options($produit, $this->nettoyer($collegeTemp['codeProduit']), true); ?>
</SELECT>
</td>
<td width="6%" align="right"> <?= _("Collège") ?> </td>
<td colspan="3"><INPUT class="form-control" TYPE="text" id="libelleCollege" NAME="libelleCollege" value="<?=$collegeTemp['libelleCollege']?>" riquired
onblur="controle_champ_obligatoire(this);"></td>
<td width="6%" align="right"> <?= _("Rachat TM") ?> </td>
<td>
<SELECT class="form-control" id="rachatTm" NAME="rachatTm" onChange="maj_college();">
<?php liste_options($rachattm, $collegeTemp['rachatTm'], true); ?>
</SELECT>
</td>
<?php if($collegeTemp['rachatTm']!='1'): ?>
<td width="6%" align="right"> <?= _("Rach(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxRachatTm" NAME="tauxRachatTm" TYPE="text" value="<?=$collegeTemp['tauxRachatTm']?>" readonly>
</td>
<td width="6%" align="right"> <?= _("Tx Prime(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxPrimeRachatTm" NAME="tauxPrimeRachatTm" TYPE="text" value="<?=$collegeTemp['tauxPrimeRachatTm']?>" readonly>
</td>
<?php else: ?>
<td width="6%" align="right"> <?= _("Rach(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxRachatTm" NAME="tauxRachatTm" TYPE="text" value="<?=$collegeTemp['tauxRachatTm']?>"
onChange="maj_college();">
</td>
<td width="6%" align="right"> <?= _("Tx Prime(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxPrimeRachatTm" NAME="tauxPrimeRachatTm" TYPE="text" value="<?=$collegeTemp['tauxPrimeRachatTm']?>"
onChange="maj_college();">
</td>
<?php endif; ?>
</tr>
<tr>
<td> <?= _("Nb Fam") ?> </td>
<td width="10%" ><INPUT style='text-align:center' class="form-control" TYPE="text" id="nbAdherent" NAME="nbAdherent" value="<?=$this->nettoyer($collegeTemp['nbAdherent'])?>" required onBlur="controle_numerique(this);"></td>
<td align="right"> <?= _("Dép") ?> </td>
<td width="10%"><INPUT style='text-align:center' class="form-control" TYPE="text" id="nbAyantdroit" NAME="nbAyantdroit" value="<?=$this->nettoyer($collegeTemp['nbAyantdroit'])?>" onBlur="controle_numerique(this);"></td>
<td align="right"> <?= _("Prime base") ?> </td>
<td width="10%">
<div id="div_prime_categorie" >
<INPUT style='text-align:center' class="form-control" TYPE="text" id="primeFamille" NAME="primeFamille" value="<?=$this->nettoyer($collegeTemp['primeFamille'])?>" required onBlur="controle_numerique(this); controle_bornes_primes();">
<INPUT class="sr-only" TYPE="text" id="primeMin" name="primeMin" value="<?= $this->nettoyer($collegeTemp['primeMin']) ?>">
<INPUT class="sr-only" TYPE="text" id="primeMax" name="primeMax" value="<?= $this->nettoyer($collegeTemp['primeMax']) ?>">
</div>
</td>
<td align="right">Surpr. Div.</td>
<td width="10%" ><INPUT style='text-align:center' class="form-control" TYPE="text" id="surprimeAnt" NAME="surprimeAnt" value="<?=$this->nettoyer($collegeTemp['surprimeAnt'])?>" onBlur="controle_numerique(this);"></td>
<INPUT class="sr-only" TYPE="text" id="tauxPrimeFraisFuneraire" NAME="tauxPrimeFraisFuneraire" value="<?=$this->nettoyer($collegeTemp['tauxPrimeFraisFuneraire'])?>" >
<!--
<td align="right"> <?= _("Tx F Fun") ?> </td>
<td width="10%" ><INPUT style='text-align:center' class="form-control" TYPE="text" id="tauxPrimeFraisFuneraire" NAME="tauxPrimeFraisFuneraire" value="<?=$this->nettoyer($collegeTemp['tauxPrimeFraisFuneraire'])?>" onBlur="controle_numerique(this);"></td>
-->
<td align="right"> <?= _("Cpl F Fun") ?> </td>
<td width="10%"><INPUT style='text-align:center' class="form-control" TYPE="text" id="cplFuneraire" NAME="cplFuneraire" value="<?=$this->nettoyer($collegeTemp['cplFuneraire'])?>" onBlur="controle_numerique(this);"></td>
<td width="3%" align="right"> <?= _("Carte") ?> </td>
<td width="8%">
<INPUT class="form-control" id="fraisCarte" NAME="fraisCarte" TYPE="text" value="<?=$collegeTemp['fraisCarte']?>">
</td>
<td colspan="2"> <button style='font-size:10pt;' type="button" class="form-control btn btn-info" onclick="javascript:pop_tableau_prestation();"> <?= _("Tick Mod...") ?> </button> </td>
</tr>
</tbody>
</table>
</fieldset>
<div id="div_garanties">
<?php if($_SESSION['adminProd']=='1'): ?>
<div class="row">
<div id="div_garbase" class="col-xs-4" style="padding-right:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="30%" style='text-align:center'> <?= _("Imposer Limites?") ?> </th>
<th width="20%" align="center" style='text-align:center'>
<SELECT class="form-control" id="imposerPlafond" NAME="imposerPlafond" onChange="maj_college();">
<?php liste_options($ouinonimposerplafond, $_SESSION['imposerPlafond'], true); ?>
</SELECT>
</th>
<?php if($_SESSION['imposerPlafond']=='1'): ?>
<th width="20%" style='text-align:center'> <?= _("Anc Plaf") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Nouv Plaf") ?> </th>
<?php else: ?>
<th width="20%" style='text-align:center'> <?= _("Tx") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Plafond") ?> </th>
<?php endif; ?>
<th width="10%" style='text-align:center'> <?= _("Bn") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garantiesbase as $garantiebase):
$idGarbase=$this->nettoyer($garantiebase['id']);
$garantie = $this->nettoyer($garantiebase['garantie']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garantiebase['garantieEng']);
}
?>
<tr valign="top">
<td colspan="2" align='center'><?= $garantie ?></td>
<?php if($_SESSION['imposerPlafond']=='1'): ?>
<td style='color:red' align='center'><?= format_N($this->nettoyer($garantiebase['plafond'])) ?></td>
<td>
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($garantiebase['plafond']) ?>"
onChange="ajax_imposer_plafond('<?=$idGarbase?>', this.value, this);">
</td>
<?php else: ?>
<td>
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($garantiebase['tauxPlafond']) ?>"
onChange="ajax_maj_taux_plafond('<?=$idGarbase?>', this.value, this);">
</td>
<td style='color:red' align='center'><?= format_N($this->nettoyer($garantiebase['plafond'])) ?></td>
<?php endif; ?>
<?php if($garantiebase['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
<div id="div_garoptionnelle" class="col-xs-2" style="padding:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Garantie Optionnelles") ?> </th>
<th style='text-align:center'> => </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptionnelles as $garoptionnelle):
$codeGarantie=$this->nettoyer($garoptionnelle['codeGarantie']);
$idCol=$this->nettoyer($garoptionnelle['idCollegeTemp']);
$garantie = $this->nettoyer($garoptionnelle['libelle']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptionnelle['libelleEng']);
}
?>
<tr valign="top">
<td align='center'><?= $garantie ?></td>
<?php if($idCol<='0'): ?>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_une_garantie_college('<?= $codeGarantie ?>');"></td>
<?php else: ?>
<td> </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
<div id="div_gar_opt_acquises" class="col-xs-6" style="padding:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="5%" style='text-align:center'> <= </th>
<th width="5%" style='text-align:center'> <?= _("Bn") ?> </th>
<th style='text-align:center'> <?= _("Garanties Optionnelles Acquises") ?> </th>
<th width="10%" style='text-align:center'> <?= _("Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Plafond") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Plaf") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptacquises as $garoptacquise):
$idGarantie=$this->nettoyer($garoptacquise['id']);
$gar_add=$this->nettoyer($garoptacquise['additionnelle']);
$gar = $this->nettoyer($garoptacquise['codeGarantie']) ;
$garantie = $this->nettoyer($garoptacquise['garantie']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptacquise['garantieEng']);
}
?>
<!-- après le 28/02/2018 -->
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_garantie_college(<?= $idGarantie ?>);"></td>
<?php if($garoptacquise['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php endif; ?>
<?php if($gar_add=='1'): ?>
<td>
<INPUT class="form-control" TYPE="text" value="<?= $garantie ?>"
onblur="controle_champ_obligatoire(this);" onChange="ajax_maj_lib_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<?php else: ?>
<td><INPUT class="form-control" TYPE="text" value="<?= $garantie ?>" readonly></td>
<?php endif; ?>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['primeOption'])) ?></td>
<td align='center'>
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['primeOption'])?>"
onChange="maj_prime_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['plafond'])) ?></td>
<td style='color:red' align='center'>
<!-- <?= format_N($this->nettoyer($garoptacquise['plafond'])) ?> -->
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['plafond'])?>"
onChange="maj_plafond_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
</div>
<?php else: ?>
<INPUT class="sr-only" TYPE="text" id="imposerPlafond" name="imposerPlafond" value="<?= $_SESSION['imposerPlafond'] ?>">
<div class="row">
<div id="div_garbase" class="col-xs-3" style="padding-right:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="50%"style='text-align:center'> <?= _("Garanties de Base") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Tx") ?> </th>
<th width="25%" style='text-align:center'> <?= _("Plafond") ?> </th>
<th width="10%" style='text-align:center'> <?= _("Bn") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garantiesbase as $garantiebase):
$idGarbase=$this->nettoyer($garantiebase['id']);
?>
<tr valign="top">
<td align='center'><?= $this->nettoyer($garantiebase['garantie']) ?></td>
<td align='center'> <?= $this->nettoyer($garantiebase['tauxPlafond']) ?> </td>
<td style='color:red' align='center'><?= format_N($this->nettoyer($garantiebase['plafond'])) ?></td>
<?php if($garantiebase['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
<div id="div_garoptionnelle" class="col-xs-2" style="padding:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Garantie Optionnelles") ?> </th>
<th style='text-align:center'> => </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptionnelles as $garoptionnelle):
$codeGarantie=$this->nettoyer($garoptionnelle['codeGarantie']);
$idCol=$this->nettoyer($garoptionnelle['idCollegeTemp']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptionnelle['libelleEng']);
}
?>
<tr valign="top">
<td align='center'><?= $garantie ?></td>
<?php if($idCol<='0'): ?>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_une_garantie_college('<?= $codeGarantie ?>');"></td>
<?php else: ?>
<td> </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
<div id="div_gar_opt_acquises" class="col-xs-7" style="padding:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="5%" style='text-align:center'> <= </th>
<th width="5%" style='text-align:center'> <?= _("Bn") ?> </th>
<th style='text-align:center'> <?= _("Garanties Optionnelles Acquises") ?> </th>
<th width="10%" style='text-align:center'> <?= _("Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Plafond") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Plaf") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptacquises as $garoptacquise):
$idGarantie=$this->nettoyer($garoptacquise['id']);
$gar_add=$this->nettoyer($garoptacquise['additionnelle']);
$gar = $this->nettoyer($garoptacquise['codeGarantie']) ;
$garantie = $this->nettoyer($garoptacquise['garantie']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptacquise['garantieEng']);
}
?>
<!-- après le 28/02/2018 -->
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_garantie_college(<?= $idGarantie ?>);"></td>
<?php if($garoptacquise['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php endif; ?>
<?php if($gar_add=='1'): ?>
<td>
<INPUT class="form-control" TYPE="text" value="<?= $garantie ?>"
onblur="controle_champ_obligatoire(this);" onChange="ajax_maj_lib_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<?php else: ?>
<td><INPUT class="form-control" TYPE="text" value="<?= $garantie ?>" readonly></td>
<?php endif; ?>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['primeOption'])) ?></td>
<td align='center'>
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['primeOption'])?>"
onChange="maj_prime_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['plafond'])) ?></td>
<td style='color:red' align='center'>
<!-- <?= format_N($this->nettoyer($garoptacquise['plafond'])) ?> -->
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['plafond'])?>"
onChange="maj_plafond_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
</div>
<?php endif; ?>
</div>
<fieldset >
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:9pt; text-align:center'>
<thead>
<tr>
<th><input style='font-size:10pt;' id="btn_recap" name="btn_recap" class = "form-control btn btn-primary" type="submit" value="<?= _("Récapituler") ?>" ></th>
<th style='text-align:center'> <?= _("Adhérent") ?> </th>
<th style='text-align:center'> <?= _("Dépendants") ?> </th>
<th style='text-align:center'> <?= _("Total Adh") ?> </th>
<th style='text-align:center'> <?= _("Total Dép") ?> </th>
<th style='text-align:center'> <?= _("Total Fam") ?> </th>
</tr>
</thead>
<tfoot>
<tr>
<td> <?= _("Prime TTC") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcAdherent']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtc_total']))?> </td>
</tr>
<tr style='color:blue;'>
<td> <?= _("Prime Nette Statisque") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteStat']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteStatBeneficiaire']))?> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</tfoot>
<tbody>
<tr>
<td> <?= _("Prime de Base") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeFamille']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeFamilleAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeFamille_total']))?> </td>
</tr>
<tr>
<td> <?= _("Cpl frais funéraires") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraire_total']))?> </td>
</tr>
<tr>
<td> <?= _("Garanties Optionnelles") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOption']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOptionBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOptionAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOptionBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOption_total']))?> </td>
</tr>
<tr>
<td> <?= _("Rachat Ticket Modérateur") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTm']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTmBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTmAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTmBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTm_total']))?> </td>
</tr>
<tr>
<td> <?= _("Surprimes Diverses") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAnt']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAntBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAntAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAntBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAnt_total']))?> </td>
</tr>
<tr style='color:red'>
<td> <?= _("Prime Nette de commission") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNette']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNette_total']))?> </td>
</tr>
<tr>
<td> <?= _("Commission Courtage") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commission']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commission_total']))?> </td>
</tr>
<tr>
<td> <?= _("Commission Commerciaux") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutre']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutreBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutreAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutreBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutre_total']))?> </td>
</tr>
<tr style='color:red'>
<td> <?= _("Prime Nette") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHt']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHtBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHtAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHtBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHt_total']))?> </td>
</tr>
<tr>
<td> <?= _("Taxes") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxe']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxeBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxeAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxeBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxe_total']))?> </td>
</tr>
<tr>
<td> <?= _("Frais Cartes") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarte']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarteBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarteAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarteBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarte_total']))?> </td>
</tr>
</tbody>
</table>
</fieldset>
<?php if (isset($msgErreur)): ?>
<div class="alert alert-danger" style="height:30px; padding:5px;" >
<H4><?= $msgErreur ?></H4>
</div>
<?php endif; ?>
</form>
<div class="modal fade" id="poptableauprestation" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"> <?= _("Tickets Modérateurs") ?> </h4>
</div>
<div class="modal-body">
<div id="div_tableau_prestation">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="popmajlibellecollege" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"> <?= _("Modifier Libellé Collège") ?> </h4>
</div>
<div class="modal-body">
<div id="div_maj_libelle_college">
<table class="table table-responsive table-condensed" style="font-size:10pt;">
<tbody>
<tr>
<td width="20%" align='center' > <?= _("Ancien Libellé") ?> </td>
<td><INPUT style="font-size:10pt;" class="form-control" TYPE="text" id="ancLibelleCollege" NAME="ancLibelleCollege" value="<?=$collegeTemp['libelleCollege']?>" readonly ></td>
</tr>
<tr>
<td align='center' > <?= _("Nouveau Libellé") ?> </td>
<td><INPUT style="font-size:10pt;" class="form-control" TYPE="text" id="nouvLibelleCollege" NAME="nouvLibelleCollege" value="<?=$collegeTemp['libelleCollege']?>" ></td>
</tr>
<tr>
<td> </td>
<td > <button style='font-size:10pt;' type="button" class="form-control btn btn-info" onclick="javascript:enregistrer_maj_libelle_college();" > <?= _("Enregistrer...") ?> </button> </td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="modal-footer">
<button id="btn_close_pop_maj_libelle" name="btn_close_pop_maj_libelle" type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>

View File

@ -0,0 +1,641 @@
<?php
$this->titre = "INTER-SANTE - Modification collège du devis";
$_SESSION['imposerPlafond'] = $this->nettoyer($collegeTemp['imposerPlafond']);
$_SESSION['numeroOptionTarif'] = $this->nettoyer($collegeTemp['numeroOptionTarif']);
?>
<div id="div_listeprospects" style="height:100%; background-color: rgb(255,0,255);">
<?= _("GESTION DES DEVIS") ?>
</div>
<form id="frmcreercollege" id="frmcreercollege" method="post" action="Modifiercolleged/enregistrer">
<INPUT class="sr-only" TYPE="text" id="idPolice" name="idPolice" value="<?= $_SESSION['idPolice_d_C'] ?>">
<INPUT class="sr-only" TYPE="text" id="numeroPolice" name="numeroPolice" value="<?= $_SESSION['numeroPolice_d_C'] ?>">
<INPUT class="sr-only" TYPE="text" id="idCollegeTemp" name="idCollegeTemp" value="<?= $this->nettoyer($collegeTemp['idCollegeTemp']) ?>">
<input class="sr-only" id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="submit" value=<?= _("Enregistrer") ?> />
<button id="btn_pop" NAME="btn_pop" type="button" class="sr-only" data-toggle="modal" data-target="#poptableauprestation"> <?= _("Tickets Modérateurs...") ?> </button>
<fieldset>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%">Option</td>
<td>
<SELECT class="form-control" id="numeroOptionTarif" NAME="numeroOptionTarif" required autofocus
onChange="javascript:maj_college();">
<?php liste_options($optionstarif, $this->nettoyer($collegeTemp['numeroOptionTarif']), true); ?>
</SELECT>
</td>
<td> <?= _("Cat") ?> </td>
<td>
<SELECT class="form-control" id="codeProduit" NAME="codeProduit" required autofocus
onChange="$('#libelleCollege').val(this.options[this.selectedIndex].text); change_categorie_college_temp();">
<?php liste_options($produit, $this->nettoyer($collegeTemp['codeProduit']), true); ?>
</SELECT>
</td>
<td width="6%" align="right"> <?= _("Collège") ?> </td>
<td colspan="3"><INPUT class="form-control" TYPE="text" id="libelleCollege" NAME="libelleCollege" value="<?=$collegeTemp['libelleCollege']?>" riquired
onblur="controle_champ_obligatoire(this);"></td>
<td width="6%" align="right"> <?= _("Rachat TM") ?> </td>
<td>
<SELECT class="form-control" id="rachatTm" NAME="rachatTm" onChange="maj_college();">
<?php liste_options($rachattm, $collegeTemp['rachatTm'], true); ?>
</SELECT>
</td>
<?php if($collegeTemp['rachatTm']!='1'): ?>
<td width="6%" align="right"> <?= _("Rach(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxRachatTm" NAME="tauxRachatTm" TYPE="text" value="<?=$collegeTemp['tauxRachatTm']?>" readonly>
</td>
<td width="6%" align="right"> <?= _("Tx Prime(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxPrimeRachatTm" NAME="tauxPrimeRachatTm" TYPE="text" value="<?=$collegeTemp['tauxPrimeRachatTm']?>" readonly>
</td>
<?php else: ?>
<td width="6%" align="right"> <?= _("Rach(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxRachatTm" NAME="tauxRachatTm" TYPE="text" value="<?=$collegeTemp['tauxRachatTm']?>"
onChange="maj_college();">
</td>
<td width="6%" align="right"> <?= _("Tx Prime(%)") ?> </td>
<td width="5%">
<INPUT class="form-control" id="tauxPrimeRachatTm" NAME="tauxPrimeRachatTm" TYPE="text" value="<?=$collegeTemp['tauxPrimeRachatTm']?>"
onChange="maj_college();">
</td>
<?php endif; ?>
</tr>
<tr>
<td> <?= _("Nb Fam") ?> </td>
<td width="10%" ><INPUT style='text-align:center' class="form-control" TYPE="text" id="nbAdherent" NAME="nbAdherent" value="<?=$this->nettoyer($collegeTemp['nbAdherent'])?>" required onBlur="controle_numerique(this);"></td>
<td align="right"> <?= _("Dép") ?> </td>
<td width="10%"><INPUT style='text-align:center' class="form-control" TYPE="text" id="nbAyantdroit" NAME="nbAyantdroit" value="<?=$this->nettoyer($collegeTemp['nbAyantdroit'])?>" onBlur="controle_numerique(this);"></td>
<td align="right"> <?= _("Prime base") ?> </td>
<td width="10%">
<div id="div_prime_categorie" >
<INPUT style='text-align:center' class="form-control" TYPE="text" id="primeFamille" NAME="primeFamille" value="<?=$this->nettoyer($collegeTemp['primeFamille'])?>" required onBlur="controle_numerique(this); controle_bornes_primes();">
<INPUT class="sr-only" TYPE="text" id="primeMin" name="primeMin" value="<?= $this->nettoyer($collegeTemp['primeMin']) ?>">
<INPUT class="sr-only" TYPE="text" id="primeMax" name="primeMax" value="<?= $this->nettoyer($collegeTemp['primeMax']) ?>">
</div>
</td>
<td align="right">Surpr. Div.</td>
<td width="10%" ><INPUT style='text-align:center' class="form-control" TYPE="text" id="surprimeAnt" NAME="surprimeAnt" value="<?=$this->nettoyer($collegeTemp['surprimeAnt'])?>" onBlur="controle_numerique(this);"></td>
<INPUT class="sr-only" TYPE="text" id="tauxPrimeFraisFuneraire" NAME="tauxPrimeFraisFuneraire" value="<?=$this->nettoyer($collegeTemp['tauxPrimeFraisFuneraire'])?>" >
<INPUT class="sr-only" TYPE="text" id="ageMoyen" NAME="ageMoyen" value="<?=$this->nettoyer($collegeTemp['ageMoyen'])?>">
<!--
<td align="right"> <?= _("Tx F Fun") ?> </td>
<td width="10%" ><INPUT style='text-align:center' class="form-control" TYPE="text" id="tauxPrimeFraisFuneraire" NAME="tauxPrimeFraisFuneraire" value="<?=$this->nettoyer($collegeTemp['tauxPrimeFraisFuneraire'])?>" onBlur="controle_numerique(this);"></td>
-->
<td align="right"> <?= _("Cpl F Fun") ?> </td>
<td width="10%"><INPUT style='text-align:center' class="form-control" TYPE="text" id="cplFuneraire" NAME="cplFuneraire" value="<?=$this->nettoyer($collegeTemp['cplFuneraire'])?>" onBlur="controle_numerique(this);"></td>
<td width="3%" align="right"> <?= _("Carte") ?> </td>
<td width="8%">
<INPUT class="form-control" id="fraisCarte" NAME="fraisCarte" TYPE="text" value="<?=$collegeTemp['fraisCarte']?>">
</td>
<td colspan="2"> <button style='font-size:10pt;' type="button" class="form-control btn btn-info" onclick="javascript:pop_tableau_prestation();"> <?= _("Tick Mod...") ?> </button> </td>
</tr>
</tbody>
</table>
</fieldset>
<div id="div_garanties">
<?php if($_SESSION['adminProd']=='1'): ?>
<div class="row">
<div id="div_garbase" class="col-xs-4" style="padding-right:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="30%" style='text-align:center'> <?= _("Imposer Limites?") ?> </th>
<th width="20%" align="center" style='text-align:center'>
<SELECT class="form-control" id="imposerPlafond" NAME="imposerPlafond" onChange="maj_college();">
<?php liste_options($ouinonimposerplafond, $_SESSION['imposerPlafond'], true); ?>
</SELECT>
</th>
<?php if($_SESSION['imposerPlafond']=='1'): ?>
<th width="20%" style='text-align:center'> <?= _("Anc Plaf") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Nouv Plaf") ?> </th>
<?php else: ?>
<th width="20%" style='text-align:center'> <?= _("Tx") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Plafond") ?> </th>
<?php endif; ?>
<th width="10%" style='text-align:center'> <?= _("Bn") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garantiesbase as $garantiebase):
$idGarbase=$this->nettoyer($garantiebase['id']);
$garantie = $this->nettoyer($garantiebase['garantie']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garantiebase['garantieEng']);
}
?>
<tr valign="top">
<td colspan="2" align='center'><?= $garantie ?></td>
<?php if($_SESSION['imposerPlafond']=='1'): ?>
<td style='color:red' align='center'><?= format_N($this->nettoyer($garantiebase['plafond'])) ?></td>
<td>
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($garantiebase['plafond']) ?>"
onChange="ajax_imposer_plafond('<?=$idGarbase?>', this.value, this);">
</td>
<?php else: ?>
<td>
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($garantiebase['tauxPlafond']) ?>"
onChange="ajax_maj_taux_plafond('<?=$idGarbase?>', this.value, this);">
</td>
<td style='color:red' align='center'><?= format_N($this->nettoyer($garantiebase['plafond'])) ?></td>
<?php endif; ?>
<?php if($garantiebase['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
<div id="div_garoptionnelle" class="col-xs-2" style="padding:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Garantie Optionnelles") ?> </th>
<th style='text-align:center'> => </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptionnelles as $garoptionnelle):
$codeGarantie=$this->nettoyer($garoptionnelle['codeGarantie']);
$idCol=$this->nettoyer($garoptionnelle['idCollegeTemp']);
$garantie = $this->nettoyer($garoptionnelle['libelle']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptionnelle['libelleEng']);
}
?>
<tr valign="top">
<td align='center'><?= $garantie ?></td>
<?php if($idCol<='0'): ?>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_une_garantie_college('<?= $codeGarantie ?>');"></td>
<?php else: ?>
<td> </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
<div id="div_gar_opt_acquises" class="col-xs-6" style="padding:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="5%" style='text-align:center'> <= </th>
<th width="5%" style='text-align:center'> <?= _("Bn") ?> </th>
<th style='text-align:center'> <?= _("Garanties Optionnelles Acquises") ?> </th>
<th width="10%" style='text-align:center'> <?= _("Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Plafond") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Plaf") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptacquises as $garoptacquise):
$idGarantie=$this->nettoyer($garoptacquise['id']);
$gar_add=$this->nettoyer($garoptacquise['additionnelle']);
$gar = $this->nettoyer($garoptacquise['codeGarantie']) ;
$garantie = $this->nettoyer($garoptacquise['garantie']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptacquise['garantieEng']);
}
?>
<!-- après le 28/02/2018 -->
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_garantie_college(<?= $idGarantie ?>);"></td>
<?php if($garoptacquise['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php endif; ?>
<?php if($gar_add=='1'): ?>
<td>
<INPUT class="form-control" TYPE="text" value="<?= $garantie ?>"
onblur="controle_champ_obligatoire(this);" onChange="ajax_maj_lib_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<?php else: ?>
<td><INPUT class="form-control" TYPE="text" value="<?= $garantie ?>" readonly></td>
<?php endif; ?>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['primeOption'])) ?></td>
<td align='center'>
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['primeOption'])?>"
onChange="maj_prime_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['plafond'])) ?></td>
<td style='color:red' align='center'>
<!-- <?= format_N($this->nettoyer($garoptacquise['plafond'])) ?> -->
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['plafond'])?>"
onChange="maj_plafond_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
</div>
<?php else: ?>
<INPUT class="sr-only" TYPE="text" id="imposerPlafond" name="imposerPlafond" value="<?= $_SESSION['imposerPlafond'] ?>">
<div class="row">
<div id="div_garbase" class="col-xs-3" style="padding-right:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="50%"style='text-align:center'> <?= _("Garanties de Base") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Tx") ?> </th>
<th width="25%" style='text-align:center'> <?= _("Plafond") ?> </th>
<th width="10%" style='text-align:center'> <?= _("Bn") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garantiesbase as $garantiebase):
$idGarbase=$this->nettoyer($garantiebase['id']);
?>
<tr valign="top">
<td align='center'><?= $this->nettoyer($garantiebase['garantie']) ?></td>
<td align='center'> <?= $this->nettoyer($garantiebase['tauxPlafond']) ?> </td>
<td style='color:red' align='center'><?= format_N($this->nettoyer($garantiebase['plafond'])) ?></td>
<?php if($garantiebase['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garantiebase['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarbase ?>, this.value);"></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
<div id="div_garoptionnelle" class="col-xs-2" style="padding:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Garantie Optionnelles") ?> </th>
<th style='text-align:center'> => </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptionnelles as $garoptionnelle):
$codeGarantie=$this->nettoyer($garoptionnelle['codeGarantie']);
$idCol=$this->nettoyer($garoptionnelle['idCollegeTemp']);
$garantie = $this->nettoyer($garoptionnelle['libelle']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptionnelle['libelleEng']);
}
?>
<tr valign="top">
<td align='center'><?= $garantie ?></td>
<?php if($idCol<='0'): ?>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_une_garantie_college('<?= $codeGarantie ?>');"></td>
<?php else: ?>
<td> </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
<div id="div_gar_opt_acquises" class="col-xs-7" style="padding:0px;">
<fieldset>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="5%" style='text-align:center'> <= </th>
<th width="5%" style='text-align:center'> <?= _("Bn") ?> </th>
<th style='text-align:center'> <?= _("Garanties Optionnelles Acquises") ?> </th>
<th width="10%" style='text-align:center'> <?= _("Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Prime") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Plafond") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Nv Plaf") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptacquises as $garoptacquise):
$idGarantie=$this->nettoyer($garoptacquise['id']);
$gar_add=$this->nettoyer($garoptacquise['additionnelle']);
$gar = $this->nettoyer($garoptacquise['codeGarantie']) ;
$garantie = $this->nettoyer($garoptacquise['garantie']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garoptacquise['garantieEng']);
}
?>
<!-- après le 28/02/2018 -->
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_garantie_college(<?= $idGarantie ?>);"></td>
<?php if($garoptacquise['champApplication']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $garoptacquise['champApplication'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};maj_champ_application_plafond(<?= $idGarantie ?>, this.value);"></td>
<?php endif; ?>
<?php if($gar_add=='1'): ?>
<td>
<INPUT class="form-control" TYPE="text" value="<?= $garantie ?>"
onblur="controle_champ_obligatoire(this);" onChange="ajax_maj_lib_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<?php else: ?>
<td><INPUT class="form-control" TYPE="text" value="<?= $garantie ?>" readonly></td>
<?php endif; ?>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['primeOption'])) ?></td>
<td align='center'>
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['primeOption'])?>"
onChange="maj_prime_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
<td align='center'><?= format_N($this->nettoyer($garoptacquise['plafond'])) ?></td>
<td style='color:red' align='center'>
<!-- <?= format_N($this->nettoyer($garoptacquise['plafond'])) ?> -->
<INPUT class="form-control" style='text-align:center' TYPE="text" value="<?=$this->nettoyer($garoptacquise['plafond'])?>"
onChange="maj_plafond_gar_opt('<?=$idGarantie?>', this.value, this);">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
</div>
<?php endif; ?>
</div>
<fieldset >
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:9pt; text-align:center'>
<thead>
<tr>
<th><input style='font-size:10pt;' id="btn_recap" name="btn_recap" class = "form-control btn btn-primary" type="submit" value="<?= _("Récapituler") ?>" ></th>
<th style='text-align:center'> <?= _("Adhérent") ?> </th>
<th style='text-align:center'> <?= _("Dépendants") ?> </th>
<th style='text-align:center'> <?= _("Total Adh") ?> </th>
<th style='text-align:center'> <?= _("Total Dép") ?> </th>
<th style='text-align:center'> <?= _("Total Fam") ?> </th>
</tr>
</thead>
<tfoot>
<tr>
<td> <?= _("Prime TTC") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcAdherent']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtcBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeTtc_total']))?> </td>
</tr>
<tr style='color:blue;'>
<td> <?= _("Prime Nette Statisque") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteStat']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteStatBeneficiaire']))?> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</tfoot>
<tbody>
<tr>
<td> <?= _("Prime de Base") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeFamille']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeFamilleAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeFamille_total']))?> </td>
</tr>
<tr>
<td> <?= _("Cpl frais funéraires") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraireBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeCplFuneraire_total']))?> </td>
</tr>
<tr>
<td> <?= _("Garanties Optionnelles") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOption']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOptionBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOptionAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOptionBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeOption_total']))?> </td>
</tr>
<tr>
<td> <?= _("Rachat Ticket Modérateur") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTm']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTmBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTmAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTmBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeTm_total']))?> </td>
</tr>
<tr>
<td> <?= _("Surprimes Diverses") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAnt']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAntBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAntAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAntBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['surprimeAnt_total']))?> </td>
</tr>
<tr style='color:red'>
<td> <?= _("Prime Nette de commission") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNette']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNetteBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeNette_total']))?> </td>
</tr>
<tr>
<td> <?= _("Commission Courtage") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commission']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commission_total']))?> </td>
</tr>
<tr>
<td> <?= _("Commission Commerciaux") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutre']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutreBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutreAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutreBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['commissionAutre_total']))?> </td>
</tr>
<tr style='color:red'>
<td> <?= _("Prime Nette") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHt']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHtBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHtAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHtBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['primeHt_total']))?> </td>
</tr>
<tr>
<td> <?= _("Taxes") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxe']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxeBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxeAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxeBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['taxe_total']))?> </td>
</tr>
<tr>
<td> <?= _("Frais Cartes") ?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarte']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarteBeneficiaire']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarteAdherent_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarteBeneficiaire_total']))?> </td>
<td> <?= format_N($this->nettoyer($collegeTemp['fraisCarte_total']))?> </td>
</tr>
</tbody>
</table>
</fieldset>
<?php if (isset($msgErreur)): ?>
<div class="alert alert-danger" style="height:30px; padding:5px;" >
<H4><?= $msgErreur ?></H4>
</div>
<?php endif; ?>
</form>
<div class="modal fade" id="poptableauprestation" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"> <?= _("Tickets Modérateurs") ?> </h4>
</div>
<div class="modal-body">
<div id="div_tableau_prestation">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>

BIN
Societes/ric/images/logo_etat.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB