Subversion Repositories ALCASAR

Rev

Rev 2853 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2853 Rev 3028
Line 4... Line 4...
4
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
4
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
<TITLE>Users import</TITLE>
5
<TITLE>Users import</TITLE>
6
<link rel="stylesheet" href="/css/acc.css" type="text/css">
6
<link rel="stylesheet" href="/css/acc.css" type="text/css">
7
</HEAD>
7
</HEAD>
8
<body>
8
<body>
-
 
9
<div id="ldoverlay" class="overlay">
-
 
10
	<div class="lds-spinner" id="spinner"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>
-
 
11
</div>
9
<?php
12
<?php
10
// Choice of language
13
// Choice of language
11
$Language = 'en';
14
$Language = 'en';
12
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
15
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
13
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
16
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
Line 324... Line 327...
324
	}
327
	}
325
else echo "$l_group_empty";
328
else echo "$l_group_empty";
326
echo "<br>";
329
echo "<br>";
327
echo "<input type='hidden' name='choix' value='csv'>";
330
echo "<input type='hidden' name='choix' value='csv'>";
328
if (($choix == "csv") && isset($result)) echo "<b>".$result."</b><BR>";
331
if (($choix == "csv") && isset($result)) echo "<b>".$result."</b><BR>";
329
echo "<input type=\"submit\" value=\"$l_send\">";
332
echo "<input type=\"submit\" onClick=\"this.disabled=true; document.getElementById('ldoverlay').style.display='block'; value=\"$l_send\">";
330
echo "</FORM></td>";
333
echo "</FORM></td>";
331
echo "<td>";
334
echo "<td>";
332
$ImportFileList = getImportFileList();
335
$ImportFileList = getImportFileList();
333
if (count($ImportFileList) > 0){
336
if (count($ImportFileList) > 0){
334
	echo "$l_imported_files";
337
	echo "$l_imported_files";
Line 347... Line 350...
347
echo "$l_db_import_help <br><br>";
350
echo "$l_db_import_help <br><br>";
348
echo "<FORM action='$_SERVER[PHP_SELF]' method=POST ENCTYPE=\"multipart/form-data\">";
351
echo "<FORM action='$_SERVER[PHP_SELF]' method=POST ENCTYPE=\"multipart/form-data\">";
349
echo "$l_file (.sql or .sql.gz) : <input type=\"file\" name=\"import-users\"><br>";
352
echo "$l_file (.sql or .sql.gz) : <input type=\"file\" name=\"import-users\"><br>";
350
echo "<input type='hidden' name='choix' value='bdd'>";
353
echo "<input type='hidden' name='choix' value='bdd'>";
351
if (($choix == "bdd") && isset($result)) echo "<b>".$result."</b><BR>";
354
if (($choix == "bdd") && isset($result)) echo "<b>".$result."</b><BR>";
352
echo "<input type=\"submit\" value=\"$l_send\">";
355
echo "<input type=\"submit\" onClick=\"this.disabled=true; document.getElementById('ldoverlay').style.display='block'; value=\"$l_send\">";
353
echo "</FORM>";
356
echo "</FORM>";
354
echo "</td></tr>";
357
echo "</td></tr>";
355
echo "<tr><td valign=\"middle\" align=\"left\">";
358
echo "<tr><td valign=\"middle\" align=\"left\">";
356
echo "<H3><CENTER>$l_db_reset</CENTER></H3>";
359
echo "<H3><CENTER>$l_db_reset</CENTER></H3>";
357
echo "$l_db_import_help<br><br>";
360
echo "$l_db_import_help<br><br>";
358
echo "<FORM onsubmit=\"return confirm('$l_empty_warn');\" action='$_SERVER[PHP_SELF]' method=POST>";
361
echo "<FORM onsubmit=\"return confirm('$l_empty_warn');\" action='$_SERVER[PHP_SELF]' method=POST>";
359
echo "<input type='hidden' name='choix' value='raz'>";
362
echo "<input type='hidden' name='choix' value='raz'>";
360
echo "<input type=\"submit\" value=\"$l_empty\">";
363
echo "<input type=\"submit\" onClick=\"this.disabled=true; document.getElementById('ldoverlay').style.display='block'; value=\"$l_empty\">";
361
echo "</FORM>";
364
echo "</FORM>";
362
echo "</TD></TR></TABLE>";
365
echo "</TD></TR></TABLE>";
363
?>
366
?>
364
</BODY>
367
</BODY>
365
</HTML>
368
</HTML>