forked from thegreenter/demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
85 lines (85 loc) · 3.2 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?php
set_time_limit(0);
?>
<!DOCTYPE html>
<html lang="es">
<head>
<?php include 'views/head.php'; ?>
<style>
ul.list-group li {
cursor: pointer;
}
</style>
<script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected]/dist/alpine.js" defer></script>
<link rel="stylesheet" href="assets/style.css?v=1">
</head>
<body>
<?php include 'views/top.php'; ?>
<div class="container"
x-data="{ examples: {invoices:[], reports: []} }"
x-init="
fetch('docs.php')
.then(response => response.json())
.then(data => examples = data)
"
>
<div class="row mb-4">
<div class="col-md-4">
<div class="card bg-primary">
<div class="card-header text-white">Comprobantes</div>
<div class="card-block">
<ul class="list-group">
<template x-for="item in examples.invoices" :key="item.file">
<li @click="loadUrl($event.target, item.file)" class="list-group-item">
<i class="fa fa-angle-right"></i> <span x-text="item.title"></span>
<span class="badge badge-secondary" x-text="item.tag"></span>
</li>
</template>
<li class="list-group-item">
<a href="examples/pages/status-cdr.php">Consulta CDR <i class="fa fa-external-link-alt"></i></a>
</li>
</ul>
</div>
</div>
</div>
<div class="col-md-8">
<div class="card">
<div class="card-header bg-success text-white">Resultado</div>
<div class="card-block">
<div class="card bg-light text-dark">
<div class="card-body">
<div id="result">De click en algún elemento de la lista.</div>
<div>Time: <span id="time"></span></div>
</div>
</div>
</div>
</div>
<br>
<div class="card bg-primary">
<div class="card-header text-white">PDF</div>
<div class="card-block">
<ul class="list-group">
<template x-for="item in examples.reports" :key="item.path">
<li class="list-group-item">
<a :href="item.path" target="_blank">
<span class="fa fa-external-link-alt"></span> <span x-text="item.name"></span>
</a>
</li>
</template>
</ul>
</div>
</div>
</div>
</div>
</div>
<?php include 'views/footer.php'; ?>
<script src="assets/demo.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-90097417-4"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-90097417-4');
</script>
</body>
</html>