-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
65 lines (59 loc) · 1.87 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
include 'conf/settings.php';
require 'autoload.php';
include 'conf/cidTexte_list.php';
//d($cidTexte_list);
//$nav = new Navigator();
//$nav->setPathToGlobalArchive();
//$nav->setPathToCode('LEGITEXT000006074234');
//$path_article = $nav->goToArticle('LEGIARTI000033052200');
//d($path_article);
//
//$filereader = new FileReader();
//$filecontent = $filereader->openFile($path_article);
//d($filecontent);
//$file_values = $filereader->setArticlesValuesFromXML($filecontent);
//d($file_values);
if (isset($_POST['choix-code'])){
//$code_infos = $cidTexte_list[$_POST['choix-code']];
$manager = new LegiManager();
$manager->setArchive('global');
$manager->setCode($_POST['choix-code']);
$manager->initCode();
$manager->launchFullCode();
}
?>
<html>
<head>
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<ul class="nav nav-tabs">
<li><a href="update.php">Update</a></li>
<li><a href="delete.php">Delete</a></li>
</ul>
</nav>
<div class="container">
<div class="row">
<div class="container-form form-update col-md-3">
<form id="legi-form" method="post" action="index.php">
<select name="choix-code">
<?php
foreach($cidTexte_list as $code_id => $code_infos)
{
echo '<option value="'. $code_infos['cIDTexte'] .'">' .$code_infos['full_name']. '</option>';
}
?>
</select>
<br><br>
<input type="submit" class="btn btn-success btn-sm" value="Go ninja go !!!">
</form>
</div>
</div>
</div>
<script src="assets/jquery-3.2.1.min.js"></script>
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
</body>
</html>