| 39 | | <tr><th class="sel"> </th><th>Subject</th><th>Action</th></tr> |
| 40 | | </thead><tbody><?cs |
| 41 | | each:perm = admin.perms ?> |
| 42 | | <tr> |
| 43 | | <td><input type="checkbox" name="sel" value="<?cs var:perm.key ?>" /></td> |
| 44 | | <td><?cs var:perm.subject ?></td> |
| 45 | | <td><?cs var:perm.action ?></td> |
| 46 | | </tr><?cs |
| 47 | | /each ?></tbody> |
| | 39 | <tr><th width="100">Subject</th><th>Action</th></tr> |
| | 40 | </thead> |
| | 41 | <tbody> |
| | 42 | <?cs set:firstRun="1" ?> |
| | 43 | <?cs each:perm = admin.perms ?> |
| | 44 | <?cs # draws the start of a row for each new person ?> |
| | 45 | <?cs if:(perm.subject != lastSubject) ?> |
| | 46 | <?cs if:(firstRun=="0")?></td></tr><?cs /if ?> |
| | 47 | <tr> |
| | 48 | <td><?cs var:perm.subject ?></td> |
| | 49 | <td> |
| | 50 | <?cs /if ?> |
| | 51 | |
| | 52 | <div style="width:150px;display:block;float:left;"> |
| | 53 | <input type="checkbox" name="sel" value="<?cs var:perm.key ?>" /> |
| | 54 | <?cs var:perm.action ?> |
| | 55 | </div> |
| | 56 | |
| | 57 | <?cs set:firstRun="0"?> |
| | 58 | <?cs set:lastSubject=perm.subject?> |
| | 59 | <?cs /each ?> |
| | 60 | <?cs # this is needed to close-up after the last subject ?> |
| | 61 | </td></tr> |
| | 62 | </tbody> |