edit_file.html
4.98 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<?php
// include('cfg/file_name.php');
?>
<main class="mn-inner">
<div class="row">
<div class="card">
<div class="card-content">
<span class="card-title"><?=manage_file?></span><br>
<div class="row">
<div class="row" >
<form class="p-v-xs" action='php/upload.php' method="post" enctype="multipart/form-data">
<div class="file-field input-field">
<div class="btn teal lighten-1">
<span>NTP :</span>
<input name='ntp' type="file">
<input type="hidden" name="type" value="ntp">
</div>
<div class="file-path-wrapper">
<input class="file-path validate" type="text" placeholder='Upload NTP File'>
</div>
</div>
<a class="waves-effect waves-light btn m-b-xs"><input class="" type="submit" value="<?=UPDATE?>"></a>
<a class="waves-effect waves-light btn red m-b-xs" href="php/manage_file.php?type=ntp">Download</a>
</form>
<form class="p-v-xs" action='php/upload.php' method="post" enctype="multipart/form-data">
<div class="file-field input-field">
<div class="btn teal lighten-1">
<span>Network :</span>
<input name='network' type="file">
<input type="hidden" name="type" value="network">
</div>
<div class="file-path-wrapper">
<input class="file-path validate" type="text" placeholder='Upload Network File'>
</div>
</div>
<a class="waves-effect waves-light btn m-b-xs"><input class="" type="submit" value="<?=UPDATE?>"></a>
<a class="waves-effect waves-light btn red m-b-xs" href="php/manage_file.php?type=network">Download</a>
</form>
<form class="p-v-xs" action='php/upload.php' method="post" enctype="multipart/form-data">
<div class="file-field input-field">
<div class="btn teal lighten-1">
<span>Config :</span>
<input name='config' type="file">
<input type="hidden" name="type" value="config">
</div>
<div class="file-path-wrapper">
<input class="file-path validate" type="text" placeholder='Upload config File'>
</div>
</div>
<a class="waves-effect waves-light btn m-b-xs"><input class="" type="submit" value="<?=UPDATE?>"></a>
<a class="waves-effect waves-light btn red m-b-xs" href="php/manage_file.php?type=config">Download</a>
</form>
<form class="p-v-xs" action='php/upload.php' method="post" enctype="multipart/form-data">
<div class="file-field input-field">
<div class="btn teal lighten-1">
<span>vAlert8common Config :</span>
<input name='vAlert8common' type="file">
<input type="hidden" name="type" value="vAlert8common">
</div>
<div class="file-path-wrapper">
<input class="file-path validate" type="text" placeholder='Upload vAlert8common config File'>
</div>
</div>
<a class="waves-effect waves-light btn m-b-xs"><input class="" type="submit" value="<?=UPDATE?>"></a>
<a class="waves-effect waves-light btn red m-b-xs" href="php/manage_file.php?type=vAlert8commonconfig">Download</a>
</form>
Backup :
<a href="php/backup_file.php" class="waves-effect waves-light btn blue m-b-xs">Command</a> <br>
<span>[vAlert8Cfg.bak,vAlert8commoncfg.bak, vAlert8Bak.exe, interfacesBackup]</span><br>
Reset :
<a href="php/reload.php?item=file" class="waves-effect waves-light btn red m-b-xs">Reset</a> <br>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
<div class="left-sidebar-hover"></div>
<!-- Javascripts -->
<script src="assets/plugins/jquery/jquery-2.2.0.min.js"></script>
<script src="assets/plugins/materialize/js/materialize.min.js"></script>
<script src="assets/plugins/material-preloader/js/materialPreloader.min.js"></script>
<script src="assets/plugins/jquery-blockui/jquery.blockui.js"></script>
<script src="assets/plugins/select2/js/select2.min.js"></script>
<script src="assets/js/alpha.min.js"></script>
<script src="assets/js/pages/form-select2.js"></script>
<script>
$('.update').click(function(){
$.ajax( {
type: "POST",
url: $('#edit_dns').attr( 'action' ),
data: $('#edit_dns').serialize(),
success: function( response ) {
if(response == '1'){
alert('Success !');
location.href='index.php?item=edit_dns';
}else{
alert('Error !');
}
}
});
})
</script>
</body>
</html>