forked from geynen/GeynenFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.php
43 lines (42 loc) · 1.31 KB
/
main.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
<!DOCTYPE HTML>
<html lang="es">
<head>
<meta charset="utf-8" />
<title>Main</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
<style>
.ui-menu {
width: 200px;
}
</style>
<script src="http://code.jquery.com/jquery-1.8.3.js"></script>
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
<script src="lib/js/fun.js"></script>
<script>
function setRun(idview,action,argument,div){
$.ajax({
url: "vista/"+action+".php?idview="+idview+"&"+argument,
success: function(data) {
$('#'+div).html(data);
$( "button" ).button();
//alert('Load was performed.');
}
});
}
</script>
</head>
<body>
<div id="menu-left" style="display:inline-block; vertical-align:top">
<ul id="menu">
<li><a href="#" onClick="javascript: setRun(1,'listTabla','','content');">Tablas</a></li>
<li><a href="#" onClick="javascript: setRun(3,'listCampo','','content');">Campos</a></li>
<li><a href="#" onClick="javascript: setRun(1,'listGeneral','','content');">Tablas</a></li>
<li><a href="#" onClick="javascript: setRun(5,'listGeneral','','content');">Vista</a></li>
</ul>
</div>
<div id="content" style="display:inline-block"></div>
<script>
$( "#menu" ).menu();
</script>
</body>
</html>