-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
124 lines (101 loc) · 4.79 KB
/
index.php
File metadata and controls
124 lines (101 loc) · 4.79 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<?php
$useragent = $_SERVER['HTTP_USER_AGENT'];
include('includes/connection.php');
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>IRMSERV - Costs Admin</title>
<?php
$mobile = explode('Mobile', $useragent);
// if (count($mobile) > 1):
?>
<meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=yes">
<script src="js/jquery.min.js" type="text/javascript"></script>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<link rel="apple-touch-startup-image" sizes="768×1024" media="screen, mobile" href="images/splash.png" />
<link rel="apple-touch-icon-precomposed" href="images/appcosts.jpg"/>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<meta name="HandheldFriendly" content="true">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="MobileOptimized" content="width">
<?php
// endif;
?>
<link rel="stylesheet" href="css/irm-main.css">
<link rel="stylesheet" href="css/irm-login.css">
</head>
<body>
<div data-role="page">
<div data-role="header">
<h1>IRMSERV - Costs Admin</h1>
<div data-role="navbar">
<ul>
<li><a href="index.php" data-icon="grid" data-iconpos="top">Charts</a></li>
<li><a href="b.html" data-icon="category" data-iconpos="top">Category</a></li>
<li><a href="b.html" data-icon="star" data-iconpos="top">Provider</a></li>
<li><a href="custos-list.php" data-icon="costs" data-iconpos="top">Costs</a></li>
</ul>
</div><!-- /navbar -->
</div><!-- /header -->
<div id="content" data-role="content">
<div data-role="collapsible-set">
<?php
$q = $conn->query('select * from categoriacustos');
while ($r = $q->fetch_object()):
?>
<div data-role="collapsible">
<h3><?php echo $r->categorianome; ?></h3>
<div class="ui-block-b mais"> <a href="grafico.php?categoria=<?php echo $r->idCategoriaCustos ?>" itemProp="installUrl" >Chart</a></div>
<ol data-role="listview">
<?php
$q2 = $conn->query("select * from fornecedor where categoriacusto_fk= {$r->idCategoriaCustos}");
while ($r2 = $q2->fetch_object()):
?>
<li><div class="ui-grid-a">
<div class="ui-block-a" data-theme="a"> <?php echo $r2->fornecedornome ?></div>
<div class="ui-block-b"> <a href="grafico.php?fornecedor=<?php echo $r2->idFornecedor ?>" >Chart</a></div>
</div>
</li>
<?php
endwhile;
?>
</ol>
</div>
<?php
endwhile;
?>
</div>
</div><!-- /content -->
<div id="content2" data-role="content">
</div><!-- /content -->
<div data-role="footer" class="ui-bar">
</div>
</div><!-- /page -->
<script type="text/javascript">
var addToHomeConfig = {
startDelay: 0,
touchIcon: true
};
// Listen for ALL links at the top level of the document. For
// testing purposes, we're not going to worry about LOCAL vs.
// EXTERNAL links - we'll just demonstrate the feature.
$( document ).on(
"click",
"a",
function( event ){
// Stop the default behavior of the browser, which
// is to change the URL of the page.
event.preventDefault();
// Manually change the location of the page to stay in
// "Standalone" mode and change the URL at the same time.
location.href = $( event.target ).attr( "href" );
}
);
</script>
<link rel="stylesheet" href="css/add2home.css">
<script type="application/javascript" src="js/add2home.js" charset="utf-8"></script>
</body>
</html>