-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.php
80 lines (61 loc) · 2.4 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
<?php
$language = 'en';
if (isset($_GET['lang']))
{
switch ($_GET['lang'])
{
case 'nl':
$language = 'nl';
break;
case 'en':
$language = 'en';
break;
}
}
$page = (isset($_GET['p'])) ? $_GET['p'] : 'basic';
?>
<!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" dir="ltr" lang="nl">
<head>
<link rel="stylesheet" type="text/css" href="css/site.css" />
<script type="text/javascript" src="js/jquery/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/jquery.jqgrid/js/i18n/grid.locale-en.js"></script>
<script type="text/javascript" src="js/jquery.jqgrid/js/jquery.jqGrid.min.js"></script>
<script type="text/javascript" src="js/jquery.ui/jquery.ui.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/jqgrid/redmond/jquery-ui-1.7.1.custom.css" />
<link rel="stylesheet" type="text/css" href="js/jquery.jqgrid/css/ui.jqgrid.css" />
</head>
<body>
<div class="page">
<div id="header">
<div id="title">
<h1>PHP jqGrid Helper</h1>
</div>
<div id="menucontainer">
<ul id="menu">
<li><a href="?p=basic&lang=<?php echo $language ?>">Basic Example</a></li>
<li><a href="?p=search&lang=<?php echo $language ?>">Search</a></li>
<li><a href="?p=toolbar&lang=<?php echo $language ?>">Toolbar</a></li>
<li><a href="?p=multiselect&lang=<?php echo $language ?>">Multiselect</a></li>
<li><a href="?p=formatters&lang=<?php echo $language ?>">Formatters</a></li>
<li><a href="?p=events&lang=<?php echo $language ?>">Events</a></li>
<li><a href="?p=about&lang=<?php echo $language ?>">About</a></li>
<li><a href="?p=<?php echo $page ?>&lang=<?php echo ($language == 'en') ? 'nl' : 'en';?>"><img style="border:0px" src="images/<?php echo ($language == 'en') ? 'nl' : 'en';?>.gif"></img></a></li>
</ul>
</div>
</div>
<div style="clear:both"></div>
<div id="main">
<?php
include('jqGrid.php');
$filepath = 'examples/' . $language . '_' . $page . '_example.php';
if (file_exists($filepath))
{
include_once($filepath);
}
?>
<div id="footer">
Created by Daan Le Duc, 2010, The Netherlands
</div>
</div>
</div>
</body>