1 hi I'm an administrator
3 <?php global $moduleFactory;?>
4 <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
5 <input type="hidden" name="course_id" value="<?php echo $this->course_id; ?>"/>
6 <div class="input-form">
9 <h3><?php echo $this->student_row['login']; ?></h3>
13 <?php echo _AT('privileges'); ?><br />
14 <table width="100%" border="0" cellspacing="5" cellpadding="0" summary="">
18 $this->student_row['privileges'] = intval($this->student_row['privileges']);
19 $module_list = $moduleFactory->getModules(AT_MODULE_STATUS_ENABLED, 0, TRUE);
20 $keys = array_keys($module_list);
21 foreach ($keys as $module_name) {
22 $module =& $module_list[$module_name];
23 if (!($module->getPrivilege() > 1)) {
27 echo '<td><label><input type="checkbox" name="privs['.$k.'][]" value="'.$module->getPrivilege().'" ';
29 if (query_bit($this->student_row['privileges'], $module->getPrivilege())) {
30 echo 'checked="checked"';
33 echo ' />'.$module->getName().'</label></td>';
35 if (!($count % $this->num_cols)) {
39 if ($count % $this->num_cols) {
40 echo '<td colspan="'.($this->num_cols-($count % $this->num_cols)).'"> </td>';
42 echo '<td colspan="'.$this->num_cols.'"> </td>';
51 <div class="row buttons">
52 <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
53 <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />