Line 134... |
Line 134... |
134 |
if ($Expiration!=''){ $Expiration=date("d - m - Y",strtotime($Expiration));}
|
134 |
if ($Expiration!=''){ $Expiration=date("d - m - Y",strtotime($Expiration));}
|
135 |
else { $Expiration='-';}
|
135 |
else { $Expiration='-';}
|
136 |
if ($show != 3) //utilisateur normal
|
136 |
if ($show != 3) //utilisateur normal
|
137 |
{
|
137 |
{
|
138 |
//Appel du ticket d'impression , passage en paramètres des valeurs à afficher
|
138 |
//Appel du ticket d'impression , passage en paramètres des valeurs à afficher
|
139 |
echo' <form name="impression" method="post" action="ticket_user.php" target=_blank>
|
139 |
echo' <form name="impression" method="post" action="ticket_user.php" target="_blank">
|
140 |
<input type="hidden" name="langue_imp" value="'.$langue_imp.'">
|
140 |
<input type="hidden" name="langue_imp" value="'.$langue_imp.'">
|
141 |
<input type="hidden" name="log_imp" value="'.$login.'">
|
141 |
<input type="hidden" name="log_imp" value="'.$login.'">
|
142 |
<input type="hidden" name="passwd_imp" value="'.$passwd_imp.'">
|
142 |
<input type="hidden" name="passwd_imp" value="'.$passwd_imp.'">
|
143 |
<input type="hidden" name="sto_imp" value="'.$sto_imp.'">
|
143 |
<input type="hidden" name="sto_imp" value="'.$sto_imp.'">
|
144 |
<input type="hidden" name="mas_imp" value="'.$mas_imp.'">
|
144 |
<input type="hidden" name="mas_imp" value="'.$mas_imp.'">
|
145 |
<input type="hidden" name="mds_imp" value="'.$mds_imp.'">
|
145 |
<input type="hidden" name="mds_imp" value="'.$mds_imp.'">
|
146 |
<input type="hidden" name="mms_imp" value="'.$mms_imp.'">
|
146 |
<input type="hidden" name="mms_imp" value="'.$mms_imp.'">
|
147 |
<input type="hidden" name="exp_imp" value="'.$Expiration.'">
|
147 |
<input type="hidden" name="exp_imp" value="'.$Expiration.'">
|
148 |
</form>';
|
148 |
</form>';
|
149 |
echo' <script type="text/javascript"> document.forms["impression"].submit();</script>';
|
149 |
echo' <a href="#" onclick="document.forms[\'impression\'].submit();">Ticket</a>';
|
150 |
//fin ticket impression
|
150 |
//fin ticket impression
|
151 |
}
|
151 |
}
|
152 |
else //utilisateur = adresse mac
|
152 |
else //utilisateur = adresse mac
|
153 |
{
|
153 |
{
|
154 |
exec("sudo /usr/bin/systemctl reload chilli.service");
|
154 |
exec("sudo /usr/bin/systemctl reload chilli.service");
|
Line 425... |
Line 425... |
425 |
</select></td></tr>";
|
425 |
</select></td></tr>";
|
426 |
}
|
426 |
}
|
427 |
echo "</table>";
|
427 |
echo "</table>";
|
428 |
if($create == 1)
|
428 |
if($create == 1)
|
429 |
{
|
429 |
{
|
430 |
$ticket_name="ticket_".$login.".pdf";
|
- |
|
431 |
echo "<a href=\"$ticket_name\">Ticket</a><br/><br/>";
|
- |
|
432 |
echo "<center><a href=\"user_admin.php?login=$login\">$l_show_profile</a></center>";
|
430 |
echo "<center><a href=\"user_admin.php?login=$login\">$l_show_profile</a></center>";
|
433 |
}
|
431 |
}
|
434 |
else
|
432 |
else
|
435 |
{
|
433 |
{
|
436 |
echo "<input type=submit class=button value=\"$l_create\" OnClick=\"return formControl('newuser');\">";
|
434 |
echo "<input type=submit class=button value=\"$l_create\" OnClick=\"return formControl('newuser');\">";
|