-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathactualitzarVersioBD.php
More file actions
48 lines (42 loc) · 1.39 KB
/
actualitzarVersioBD.php
File metadata and controls
48 lines (42 loc) · 1.39 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
<?
session_start();
if($_SESSION['logged'])
{
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="styles.css" rel="stylesheet" type="text/css">
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type='text/javascript' src='menu_jquery.js'></script>
<title>Actualitzar Versió BD</title>
</head>
<body>
<?php include "barra_menu.php";//Incloem la barra del menu ?>
<center>
<h1> Actualitzar Versió BD</h1>
<h3> Versions Actual BD</h3>
<table>
<tr>
<td>Nom</td><td>Versió</td>
</tr>
<?php
include "php/dbCon.php";
$query = mysql_query("SELECT * FROM `e_version`");
while ($element = mysql_fetch_array($query)){
echo "<tr><td><b>".$element['name']."</b></td><td>".$element['version']."<tr>";
}
?>
</table>
<form id="subirImg" name="subirImg" enctype="multipart/form-data" method="post" action="php/serv_actualitzarVersioBD.php">
<input type="submit" id="button" name="subirBtn" id="subirBtn" style="margin-top:10px;" value="Actualitzar Versio BD" />
</form>
<center>
</body>
</html>
<?
} else {
header("Location: index.php");
}
?>