|
@@ -34,7 +34,7 @@ if($action == 'delete')
|
|
|
|
|
|
api_sql_query("DELETE FROM $tbl_session_rel_course_rel_user WHERE id_session IN($idChecked)",__FILE__,__LINE__);
|
|
api_sql_query("DELETE FROM $tbl_session_rel_course_rel_user WHERE id_session IN($idChecked)",__FILE__,__LINE__);
|
|
|
|
|
|
- header('Location: '.$PHP_SELF.'?sort='.$sort);
|
|
|
|
|
|
+ header('Location: '.api_get_self().'?sort='.$sort);
|
|
exit();
|
|
exit();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -69,7 +69,7 @@ if(isset($_GET['action'])){
|
|
<input type="text" name="keyword" value="<?php echo $_GET['keyword']; ?>"/>
|
|
<input type="text" name="keyword" value="<?php echo $_GET['keyword']; ?>"/>
|
|
<input type="submit" value="<?php echo get_lang('Search'); ?>"/>
|
|
<input type="submit" value="<?php echo get_lang('Search'); ?>"/>
|
|
</form>
|
|
</form>
|
|
-<form method="post" action="<?php echo $PHP_SELF; ?>?action=delete&sort=<?php echo $sort; ?>" onsubmit="javascript:if(!confirm('<?php echo get_lang('ConfirmYourChoice'); ?>')) return false;">
|
|
|
|
|
|
+<form method="post" action="<?php echo api_get_self(); ?>?action=delete&sort=<?php echo $sort; ?>" onsubmit="javascript:if(!confirm('<?php echo get_lang('ConfirmYourChoice'); ?>')) return false;">
|
|
|
|
|
|
<div align="left">
|
|
<div align="left">
|
|
|
|
|
|
@@ -85,7 +85,7 @@ else
|
|
{
|
|
{
|
|
?>
|
|
?>
|
|
|
|
|
|
- <a href="<?php echo $PHP_SELF; ?>?page=<?php echo $page-1; ?>&sort=<?php echo $sort; ?>"><?php echo get_lang('Previous'); ?></a>
|
|
|
|
|
|
+ <a href="<?php echo api_get_self(); ?>?page=<?php echo $page-1; ?>&sort=<?php echo $sort; ?>"><?php echo get_lang('Previous'); ?></a>
|
|
|
|
|
|
<?php
|
|
<?php
|
|
}
|
|
}
|
|
@@ -102,7 +102,7 @@ else
|
|
{
|
|
{
|
|
?>
|
|
?>
|
|
|
|
|
|
- <a href="<?php echo $PHP_SELF; ?>?page=<?php echo $page+1; ?>&sort=<?php echo $sort; ?>"><?php echo get_lang('Next'); ?></a>
|
|
|
|
|
|
+ <a href="<?php echo api_get_self(); ?>?page=<?php echo $page+1; ?>&sort=<?php echo $sort; ?>"><?php echo get_lang('Next'); ?></a>
|
|
|
|
|
|
<?php
|
|
<?php
|
|
}
|
|
}
|
|
@@ -119,10 +119,10 @@ else
|
|
<table class="data_table" width="100%">
|
|
<table class="data_table" width="100%">
|
|
<tr>
|
|
<tr>
|
|
<th> </th>
|
|
<th> </th>
|
|
- <th><a href="<?php echo $PHP_SELF; ?>?sort=name"><?php echo get_lang('NameOfTheSession'); ?></a></th>
|
|
|
|
- <th><a href="<?php echo $PHP_SELF; ?>?sort=nbr_courses"><?php echo get_lang('NumberOfCourses'); ?></a></th>
|
|
|
|
- <th><a href="<?php echo $PHP_SELF; ?>?sort=date_start"><?php echo get_lang('StartDate'); ?></a></th>
|
|
|
|
- <th><a href="<?php echo $PHP_SELF; ?>?sort=date_end"><?php echo get_lang('EndDate'); ?></a></th>
|
|
|
|
|
|
+ <th><a href="<?php echo api_get_self(); ?>?sort=name"><?php echo get_lang('NameOfTheSession'); ?></a></th>
|
|
|
|
+ <th><a href="<?php echo api_get_self(); ?>?sort=nbr_courses"><?php echo get_lang('NumberOfCourses'); ?></a></th>
|
|
|
|
+ <th><a href="<?php echo api_get_self(); ?>?sort=date_start"><?php echo get_lang('StartDate'); ?></a></th>
|
|
|
|
+ <th><a href="<?php echo api_get_self(); ?>?sort=date_end"><?php echo get_lang('EndDate'); ?></a></th>
|
|
<th><?php echo get_lang('Actions'); ?></th>
|
|
<th><?php echo get_lang('Actions'); ?></th>
|
|
</tr>
|
|
</tr>
|
|
|
|
|
|
@@ -152,7 +152,7 @@ else
|
|
<a href="add_users_to_session.php?page=session_list.php&id_session=<?php echo $enreg['id']; ?>"><img src="../img/add_user_big.gif" border="0" align="absmiddle" title="Inscrire des utilisateurs à cette session"></a>
|
|
<a href="add_users_to_session.php?page=session_list.php&id_session=<?php echo $enreg['id']; ?>"><img src="../img/add_user_big.gif" border="0" align="absmiddle" title="Inscrire des utilisateurs à cette session"></a>
|
|
<a href="add_courses_to_session.php?page=session_list.php&id_session=<?php echo $enreg['id']; ?>"><img src="../img/synthese_view.gif" border="0" align="absmiddle" title="Inscrire des cours à cette session"></a>
|
|
<a href="add_courses_to_session.php?page=session_list.php&id_session=<?php echo $enreg['id']; ?>"><img src="../img/synthese_view.gif" border="0" align="absmiddle" title="Inscrire des cours à cette session"></a>
|
|
<a href="session_edit.php?page=session_list.php&id=<?php echo $enreg['id']; ?>"><img src="../img/edit.gif" border="0" align="absmiddle" title="Editer"></a>
|
|
<a href="session_edit.php?page=session_list.php&id=<?php echo $enreg['id']; ?>"><img src="../img/edit.gif" border="0" align="absmiddle" title="Editer"></a>
|
|
- <a href="<?php echo $PHP_SELF; ?>?sort=<?php echo $sort; ?>&action=delete&idChecked=<?php echo $enreg['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(); ?>?sort=<?php echo $sort; ?>&action=delete&idChecked=<?php echo $enreg['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>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
|
|
|
|
@@ -175,7 +175,7 @@ else
|
|
{
|
|
{
|
|
?>
|
|
?>
|
|
|
|
|
|
- <a href="<?php echo $PHP_SELF; ?>?page=<?php echo $page-1; ?>&sort=<?php echo $sort; ?>"><?php echo get_lang('Previous'); ?></a>
|
|
|
|
|
|
+ <a href="<?php echo api_get_self(); ?>?page=<?php echo $page-1; ?>&sort=<?php echo $sort; ?>"><?php echo get_lang('Previous'); ?></a>
|
|
|
|
|
|
<?php
|
|
<?php
|
|
}
|
|
}
|
|
@@ -192,7 +192,7 @@ else
|
|
{
|
|
{
|
|
?>
|
|
?>
|
|
|
|
|
|
- <a href="<?php echo $PHP_SELF; ?>?page=<?php echo $page+1; ?>&sort=<?php echo $sort; ?>"><?php echo get_lang('Next'); ?></a>
|
|
|
|
|
|
+ <a href="<?php echo api_get_self(); ?>?page=<?php echo $page+1; ?>&sort=<?php echo $sort; ?>"><?php echo get_lang('Next'); ?></a>
|
|
|
|
|
|
<?php
|
|
<?php
|
|
}
|
|
}
|