source: trunk/phpgwapi/js/htmlarea/plugins/tmp.php @ 2

Revision 2, 1.1 KB checked in by niltonneto, 17 years ago (diff)

Removida todas as tags usadas pelo CVS ($Id, $Source).
Primeira versão no CVS externo.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1<table border="0" cellspacing="0"
2cellpadding="0">
3<?php
4//Liste des classes thérapeutiques
5$nomchamp = $_SESSION['activelangue'] .
6"_dos";
7$sql = "select * from dossiers_dos
8where 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
12if ($rs_dos->EOF) { ?>
13        <tr>
14                <td class="sstitre"><?php print
15                $_SESSION['INFOSCOMPTE']['CLASSESTH_EMPTY']; ?></td>
16                <td class="cell">&nbsp;</td>
17                <td>&nbsp;</td>
18                </tr>
19                <?php
20}
21else {
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.