-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmanage_backup.php
97 lines (90 loc) · 3.74 KB
/
manage_backup.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
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
<?php include 'server/server.php' ?>
<?php
$query = "SHOW TABLES FROM bis";
$result = $conn->query($query);
$tables = array();
while($row = $result->fetch_assoc()){
$tables[] = $row;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php include 'templates/header.php' ?>
<title>Manage Backup - Masili Health Service System</title>
</head>
<body>
<div class="wrapper">
<?php include 'templates/main-header.php' ?>
<?php include 'templates/sidebar.php' ?>
<div class="main-panel">
<div class="content">
<div class="page-inner">
<div class="row mt--2">
<div class="col-md-12">
<!-- action alert -->
<?php if(isset($_SESSION['message'])): ?>
<div class="alert alert-<?= $_SESSION['success']; ?> <?= $_SESSION['success']=='danger' ? 'bg-danger text-light' : null ?>" role="alert">
<?php echo $_SESSION['message']; ?>
</div>
<?php unset($_SESSION['message']); ?>
<?php endif ?>
<!-- end of action alert -->
<?php include 'templates/loading_screen.php' ?>
<div class="card">
<div class="card-header">
<div class="card-head-row">
<div class="card-title text-primary">
<h1>MANAGE BACKUP</h1>
</div>
</div>
</div>
<div class="card-body">
<form method="POST" action="manage_backup_exec.php">
<div class="row">
<div class="col-md-3">
<div class="form-group">
<label for="tables">Select Back-up data</label>
<div class="input-group mr-1">
<select class="form-control" id="tables" name="backup_data" required>
<option selected="selected" disabled="disabled" value="">--</option>
<option value="bis">bis_db</option>
<?php foreach($tables as $row): ?>
<option value='<?= $row['Tables_in_bis'] ?>'><?= $row['Tables_in_bis'] ?></option>
<?php endforeach ?>
</select>
<div class="input-group-append">
<input type="submit" class="btn btn-primary " value="Start backup">
</div>
<!-- <span class="loader loader-info ml-2 mt-2 <?= $_SESSION['success']; ?>"></span> -->
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Main Footer -->
<?php include 'templates/main-footer.php' ?>
<!-- End Main Footer -->
</div>
</div>
<?php include 'templates/footer.php' ?>
<style>
.text-primary, .text-primary a{
color: #1c9790 !important;
}
.btn-primary, .btn-primary:hover, .btn-primary:focus, .btn-primary:disabled{
background: #1c9790 !important;
border-color: #1c9790 !important;
}
.text-primary:hover, .text-primary a:hover{
color: #1c9790 !important;
}
</style>
</body>
</html>