Rev | Line | |
---|
[6779] | 1 | <table border="0" cellspacing="0" |
---|
| 2 | cellpadding="0"> |
---|
| 3 | <?php |
---|
| 4 | //Liste des classes thérapeutiques |
---|
| 5 | $nomchamp = $_SESSION['activelangue'] . |
---|
| 6 | "_dos"; |
---|
| 7 | $sql = "select * from dossiers_dos |
---|
| 8 | where idparent_dos = " . FOLDER_ROOT . " order by " . $nomchamp; |
---|
| 9 | $rs_dos = |
---|
| 10 | $utilisateur->parent->phptoolbox->DataAccess->Execute($sql); |
---|
| 11 | //Il n'y a pas de classes thérapeutiques |
---|
| 12 | if ($rs_dos->EOF) { ?> |
---|
| 13 | <tr> |
---|
| 14 | <td class="sstitre"><?php print |
---|
| 15 | $_SESSION['INFOSCOMPTE']['CLASSESTH_EMPTY']; ?></td> |
---|
| 16 | <td class="cell"> </td> |
---|
| 17 | <td> </td> |
---|
| 18 | </tr> |
---|
| 19 | <?php |
---|
| 20 | } |
---|
| 21 | else { |
---|
| 22 | $tab_usr_dos = |
---|
| 23 | $utilisateur->gettabclassessouscrites($currentuser->id_usr); |
---|
| 24 | //Affiche les classes thérapeutiques |
---|
| 25 | while ($row_dos = $rs_dos->FetchRow()) { ?> |
---|
| 26 | <tr> |
---|
| 27 | <td class="sstitre"><?php print |
---|
| 28 | $row_dos[$nomchamp]; ?></td> |
---|
| 29 | <td class="cell"><img |
---|
| 30 | src="images/spaceur.gif" width="15" height="1"></td> |
---|
| 31 | <td><input name="coches_dos[]" |
---|
| 32 | type="checkbox" disabled="true" value="<?php print $row_dos['id_dos']; |
---|
| 33 | ?>"<?php if (in_array($row_dos['id_dos'],$tab_usr_dos)) print ' |
---|
| 34 | checked'; ?>> |
---|
| 35 | </td> |
---|
| 36 | </tr> |
---|
| 37 | <?php } |
---|
| 38 | } ?> |
---|
| 39 | </table> |
---|
Note: See
TracBrowser
for help on using the repository browser.