@ -40,7 +40,7 @@ if($action == 'delete')
api_sql_query("UPDATE $tbl_session_rel_course SET nbr_users=nbr_users-$nbr_affected_rows WHERE id_session='$id_session' AND course_code='".addslashes($course_code)."'",__FILE__,__LINE__);
}
header('Location: '.$PHP_SELF .'?id_session='.$id_session.'&course_code='.urlencode($course_code).'&sort='.$sort);
header('Location: '.api_get_self() .'?id_session='.$id_session.'&course_code='.urlencode($course_code).'&sort='.$sort);
exit();
}
@ -66,7 +66,7 @@ api_display_tool_title($tool_name);
< div id = "main" >
< form method = "post" action = " <?php echo $PHP_SELF ; ?> ?id_session= <?php echo $id_session ; ?> &course_code= <?php echo urlencode ( $course_code ); ?> &sort= <?php echo $sort ; ?> " onsubmit = "javascript:if(!confirm(' <?php echo get_lang ( 'ConfirmYourChoice' ); ?> ')) return false;" >
< form method = "post" action = " <?php echo api_get_self () ; ?> ?id_session= <?php echo $id_session ; ?> &course_code= <?php echo urlencode ( $course_code ); ?> &sort= <?php echo $sort ; ?> " onsubmit = "javascript:if(!confirm(' <?php echo get_lang ( 'ConfirmYourChoice' ); ?> ')) return false;" >
< div align = "right" >
@ -75,7 +75,7 @@ if($page)
{
?>
< a href = " <?php echo $PHP_SELF ; ?> ?id_session= <?php echo $id_session ; ?> &course_code= <?php echo urlencode ( $course_code ); ?> &page= <?php echo $page - 1 ; ?> &sort= <?php echo $sort ; ?> " > <?php echo get_lang ( 'Previous' ); ?> </ a >
< a href = " <?php echo api_get_self () ; ?> ?id_session= <?php echo $id_session ; ?> &course_code= <?php echo urlencode ( $course_code ); ?> &page= <?php echo $page - 1 ; ?> &sort= <?php echo $sort ; ?> " > <?php echo get_lang ( 'Previous' ); ?> </ a >
<?php
}
@ -92,7 +92,7 @@ if($nbr_results > $limit)
{
?>
< a href = " <?php echo $PHP_SELF ; ?> ?id_session= <?php echo $id_session ; ?> &course_code= <?php echo urlencode ( $course_code ); ?> &page= <?php echo $page + 1 ; ?> &sort= <?php echo $sort ; ?> " > <?php echo get_lang ( 'Next' ); ?> </ a >
< a href = " <?php echo api_get_self () ; ?> ?id_session= <?php echo $id_session ; ?> &course_code= <?php echo urlencode ( $course_code ); ?> &page= <?php echo $page + 1 ; ?> &sort= <?php echo $sort ; ?> " > <?php echo get_lang ( 'Next' ); ?> </ a >
<?php
}
@ -109,9 +109,9 @@ else
< table class = "data_table" width = "100%" >
< tr >
< th > < / th >
< th >< a href = " <?php echo $PHP_SELF ; ?> ?id_session= <?php echo $id_session ; ?> &course_code= <?php echo urlencode ( $course_code ); ?> &sort=lastname" > Nom</ a ></ th >
< th >< a href = " <?php echo $PHP_SELF ; ?> ?id_session= <?php echo $id_session ; ?> &course_code= <?php echo urlencode ( $course_code ); ?> &sort=firstname" > Prénom</ a ></ th >
< th >< a href = " <?php echo $PHP_SELF ; ?> ?id_session= <?php echo $id_session ; ?> &course_code= <?php echo urlencode ( $course_code ); ?> &sort=username" > Identifiant</ a ></ th >
< th >< a href = " <?php echo api_get_self () ; ?> ?id_session= <?php echo $id_session ; ?> &course_code= <?php echo urlencode ( $course_code ); ?> &sort=lastname" > Nom</ a ></ th >
< th >< a href = " <?php echo api_get_self () ; ?> ?id_session= <?php echo $id_session ; ?> &course_code= <?php echo urlencode ( $course_code ); ?> &sort=firstname" > Prénom</ a ></ th >
< th >< a href = " <?php echo api_get_self () ; ?> ?id_session= <?php echo $id_session ; ?> &course_code= <?php echo urlencode ( $course_code ); ?> &sort=username" > Identifiant</ a ></ th >
< th > Actions< / th >
< / tr >
@ -132,7 +132,7 @@ foreach($Users as $key=>$enreg)
< td > <?php echo htmlentities ( $enreg [ 'firstname' ]); ?> </ td >
< td > <?php echo htmlentities ( $enreg [ 'username' ]); ?> </ td >
< td >
< a href = " <?php echo $PHP_SELF ; ?> ?id_session= <?php echo $id_session ; ?> &course_code= <?php echo urlencode ( $course_code ); ?> &sort= <?php echo $sort ; ?> &action=delete&idChecked[]= <?php echo $enreg [ 'user_id' ]; ?> " onclick = "javascript:if(!confirm(' <?php echo get_lang ( 'ConfirmYourChoice' ); ?> ')) return false;" >< img src = "../img/delete.gif" border = "0" align = "absmiddle" title = "Effacer" ></ a >
< a href = " <?php echo api_get_self () ; ?> ?id_session= <?php echo $id_session ; ?> &course_code= <?php echo urlencode ( $course_code ); ?> &sort= <?php echo $sort ; ?> &action=delete&idChecked[]= <?php echo $enreg [ 'user_id' ]; ?> " onclick = "javascript:if(!confirm(' <?php echo get_lang ( 'ConfirmYourChoice' ); ?> ')) return false;" >< img src = "../img/delete.gif" border = "0" align = "absmiddle" title = "Effacer" ></ a >
< / td >
< / tr >
@ -154,7 +154,7 @@ if($page)
{
?>
< a href = " <?php echo $PHP_SELF ; ?> ?id_session= <?php echo $id_session ; ?> &course_code= <?php echo urlencode ( $course_code ); ?> &page= <?php echo $page - 1 ; ?> &sort= <?php echo $sort ; ?> " > <?php echo get_lang ( 'Previous' ); ?> </ a >
< a href = " <?php echo api_get_self () ; ?> ?id_session= <?php echo $id_session ; ?> &course_code= <?php echo urlencode ( $course_code ); ?> &page= <?php echo $page - 1 ; ?> &sort= <?php echo $sort ; ?> " > <?php echo get_lang ( 'Previous' ); ?> </ a >
<?php
}
@ -171,7 +171,7 @@ if($nbr_results > $limit)
{
?>
< a href = " <?php echo $PHP_SELF ; ?> ?id_session= <?php echo $id_session ; ?> &course_code= <?php echo urlencode ( $course_code ); ?> &page= <?php echo $page + 1 ; ?> &sort= <?php echo $sort ; ?> " > <?php echo get_lang ( 'Next' ); ?> </ a >
< a href = " <?php echo api_get_self () ; ?> ?id_session= <?php echo $id_session ; ?> &course_code= <?php echo urlencode ( $course_code ); ?> &page= <?php echo $page + 1 ; ?> &sort= <?php echo $sort ; ?> " > <?php echo get_lang ( 'Next' ); ?> </ a >
<?php
}