-
Notifications
You must be signed in to change notification settings - Fork 0
/
detail.php
48 lines (48 loc) · 1.7 KB
/
detail.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
<?php
session_start();
if (!isset ($_SESSION["user"])){
header('Location: enter.php');
}
include ('functions.php');
$movement = getMovement($_GET['id']);
include('header.html');
?>
<style type="text/css">
.form-horizontal .control-label {
width: 460px;
}
</style>
<body>
<div class="container-narrow">
<?php include('menu.html'); ?>
<hr>
<div class="jumbotron">
<h1>Detalle de Movimiento</h1>
</div>
<form class="form-horizontal">
<div class="control-group">
<label class="control-label"><b>Fecha del movimiento:</b> <?php $date = new DateTime($movement['fecha']);echo $date->format('d/m/Y');?> </label>
</div>
<div class="control-group">
<label class="control-label"><b>Tipo:</b> <?php echo $movement['tipo'] ?></label>
</div>
<div class="control-group">
<label class="control-label"><b>Importe:</b> <?php echo number_format($movement['importe'],2,',','.') ?></label>
</div>
<div class="control-group">
<label class="control-label"><b>Concepto:</b> <?php echo $movement['concepto'] ?></label>
</div>
<div class="control-group">
<label class="control-label"><b>Autor:</b> <?php echo $movement['autor'] ?></label>
</div>
<div class="control-group">
<label class="control-label"><b>Comentarios:</b> <?php echo $movement['comentarios'] ?></label>
</div>
</form>
<hr>
</div>
<script src="./js/jquery.js"></script>
</body>
<?php
include('footer.html')
?>