Go to the source code of this file.
Namespaces | |
| namespace | CLUSR |
Variables | |
| $cidReset = true | |
| $gidReset = true | |
| $tidReset = true | |
| $dialogBox = new DialogBox() | |
| $tbl_mdb_names = claro_sql_get_main_tbl() | |
| if((isset($_REQUEST['cidToEdit'])&&$_REQUEST['cidToEdit']== '')||!isset($_REQUEST['cidToEdit'])) else | $cidToEdit = $_REQUEST['cidToEdit'] |
| $validCmdList = array('unsub',) | |
| $validRefererList = array('clist',) | |
| $cmd = (isset($_REQUEST['cmd']) && in_array($_REQUEST['cmd'],$validCmdList) ? $_REQUEST['cmd'] : null) | |
| $cfrom = (isset($_REQUEST['cfrom']) && in_array($_REQUEST['cfrom'],$validRefererList) ? $_REQUEST['cfrom'] : null) | |
| $pager_offset = isset($_REQUEST['pager_offset'])?$_REQUEST['pager_offset'] :'0' | |
| $addToURL = '' | |
| $do = null | |
| if($cmd== 'unsub') if($do== 'unsub') | $courseData = claro_get_course_data($cidToEdit) |
| $sql | |
| $myPager = new claro_sql_pager($sql, $pager_offset, get_conf('userPerPage',20)) | |
| $sortKey = isset($_GET['sort']) ? $_GET['sort'] : 'user_id' | |
| $sortDir = isset($_GET['dir' ]) ? $_GET['dir' ] : SORT_ASC | |
| $userList = $myPager->get_result_list() | |
| $userDataList = array() | |
| foreach($userList as $lineId=> $user) | $htmlHeadXtra [] |
| $sortUrlList = $myPager->get_sort_url_list($_SERVER['PHP_SELF'] . '?cidToEdit=' . $cidToEdit) | |
| $dg_opt_list ['idLineShift'] = $myPager->offset + 1 | |
| $dg_opt_list ['colTitleList'] | |
| $dg_opt_list ['colAttributeList'] | |
| $dg_opt_list ['caption'] | |
| $nameTools = get_lang('Course members') | |
| $command_list [] | |
| if($cfrom=='clist') | $out = '' |
| $userDataGrid = new claro_datagrid($userDataList) | |
| $addToURL = '' |
Definition at line 62 of file admincourseusers.php.
| $cfrom = (isset($_REQUEST['cfrom']) && in_array($_REQUEST['cfrom'],$validRefererList) ? $_REQUEST['cfrom'] : null) |
Definition at line 59 of file admincourseusers.php.
| $cidReset = true |
Definition at line 20 of file admincourseusers.php.
| if ((isset($_REQUEST['cidToEdit'])&&$_REQUEST['cidToEdit']== '')||!isset($_REQUEST['cidToEdit'])) else $cidToEdit = $_REQUEST['cidToEdit'] |
Manage incoming.
Definition at line 53 of file admincourseusers.php.
| $cmd = (isset($_REQUEST['cmd']) && in_array($_REQUEST['cmd'],$validCmdList) ? $_REQUEST['cmd'] : null) |
Definition at line 58 of file admincourseusers.php.
| $command_list[] |
'<a class="claroCmd" href="adminregisteruser.php' . '?cidToEdit=' . $cidToEdit . '">' . get_lang('Enroll a user') . '</a>'
Definition at line 211 of file admincourseusers.php.
COMMAND
Definition at line 97 of file admincourseusers.php.
| $dg_opt_list['caption'] |
'<img src="' . get_icon_url('user') . '" ' . ' alt="' . get_lang('Student') . '" title="' . get_lang('Student') . '" />' . get_lang('Student') . ' - <img src="' . get_icon_url('manager') . '" ' . ' alt="' . get_lang('Course manager') . '" title="' . get_lang('Course manager') . '" />' . get_lang('Course manager')
Definition at line 198 of file admincourseusers.php.
| $dg_opt_list['colAttributeList'] |
array ( 'user_id' => array ('align' => 'center') , 'isCourseManager' => array ('align' => 'center') , 'cmd_cu_edit' => array ('align' => 'center') , 'cmd_cu_unenroll' => array ('align' => 'center') )
Definition at line 192 of file admincourseusers.php.
| $dg_opt_list['colTitleList'] |
array ( 'user_id' => '<a href="' . $sortUrlList['user_id'] . '">' . get_lang('User id') . '</a>' , 'name' => '<a href="' . $sortUrlList['name'] . '">' . get_lang('Last name') . '</a>' , 'firstname'=> '<a href="' . $sortUrlList['firstname'] . '">' . get_lang('First name') . '</a>' , 'profileId'=> '<a href="' . $sortUrlList['profileId'] . '">' . get_lang('Profile') . '</a>' , 'isCourseManager' => '<a href="' . $sortUrlList['isCourseManager'] . '">' . get_lang('Course manager') . '</a>' , 'cmd_cu_edit' => get_lang('Edit') , 'cmd_cu_unenroll' => get_lang('Unregister user') )
Definition at line 183 of file admincourseusers.php.
| $dg_opt_list['idLineShift'] = $myPager->offset + 1 |
Definition at line 182 of file admincourseusers.php.
| $dialogBox = new DialogBox() |
Definition at line 35 of file admincourseusers.php.
| $do = null |
Definition at line 63 of file admincourseusers.php.
| $gidReset = true |
Definition at line 20 of file admincourseusers.php.
| foreach ($userList as $lineId=> $user) $htmlHeadXtra[] |
"<script>
function confirmationReg (name)
{
if (confirm(\"".clean_str_for_javascript(get_lang('Are you sure you want to unregister'))." \"+ name + \" ? \"))
{return true;}
else
{return false;}
}
</script>"
Definition at line 167 of file admincourseusers.php.
| $myPager = new claro_sql_pager($sql, $pager_offset, get_conf('userPerPage',20)) |
Definition at line 113 of file admincourseusers.php.
| $nameTools = get_lang('Course members') |
Definition at line 206 of file admincourseusers.php.
| $out = '' |
Definition at line 225 of file admincourseusers.php.
| $pager_offset = isset($_REQUEST['pager_offset'])?$_REQUEST['pager_offset'] :'0' |
Definition at line 61 of file admincourseusers.php.
| $sortDir = isset($_GET['dir' ]) ? $_GET['dir' ] : SORT_ASC |
Definition at line 116 of file admincourseusers.php.
| $sortKey = isset($_GET['sort']) ? $_GET['sort'] : 'user_id' |
Definition at line 115 of file admincourseusers.php.
| $sortUrlList = $myPager->get_sort_url_list($_SERVER['PHP_SELF'] . '?cidToEdit=' . $cidToEdit) |
Definition at line 180 of file admincourseusers.php.
| $sql |
"SELECT U.user_id AS user_id, U.nom AS name, U.prenom AS firstname, U.username AS username, CU.profile_id AS profileId, CU.isCourseManager FROM `" . $tbl_mdb_names['user'] . "` AS U , `" . $tbl_mdb_names['rel_course_user'] . "` AS CU WHERE CU.`user_id` = U.`user_id` AND CU.`code_cours` = '" . claro_sql_escape($cidToEdit) . "'"
Definition at line 102 of file admincourseusers.php.
| $tbl_mdb_names = claro_sql_get_main_tbl() |
Definition at line 42 of file admincourseusers.php.
| $tidReset = true |
Definition at line 20 of file admincourseusers.php.
| $userDataGrid = new claro_datagrid($userDataList) |
Definition at line 231 of file admincourseusers.php.
| $userDataList = array() |
Definition at line 123 of file admincourseusers.php.
| $userList = $myPager->get_result_list() |
Definition at line 120 of file admincourseusers.php.
| $validCmdList = array('unsub',) |
Definition at line 55 of file admincourseusers.php.
| $validRefererList = array('clist',) |
Definition at line 56 of file admincourseusers.php.
1.6.3