-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.php
70 lines (68 loc) · 1.8 KB
/
app.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
<?php
include_once 'class.MySQL.php';
include_once 'db.php';
$mySql=new MySQL();
$boardId = isset($_REQUEST['boardId'])?$_REQUEST['boardId']:"36";//ĬÈϵÄͨÓÃID
$sql = "select * from tb_1_app where boardId=$boardId";
$mySql->executeSQL($sql);
$result=$mySql->arrayedResult;
$mySql->executeSQL("select * from tb_1_board");
$boards =$mySql->arrayedResult;
?>
<!DOCTYPE unspecified PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<style type="text/css">
</style>
</head>
<body>
<script type="text/javascript">
function doBoard(val){
location.href="?boardId="+val;
}
</script>
<label>Select Type</label>
<select onchange="doBoard(this.value)">
<?php for ($i=0;$i<count($boards);$i++){
$selected="";
if ($boardId==$boards[$i]['id'] ) $selected="selected=\"selected\"";
echo "<option value='{$boards[$i]['id']}' $selected>{$boards[$i]['name']}</option>";
}?>
</select>
<br />
<table id="t01" border="0" style="width: 100%">
<?php
$pro= new UtilA($result, $result);
for ($i=0;$i<count($result);$i++){
$style=$i%2==0?"":"background: #eee";
$savePath = $pro->path2url($result[$i]['savePath']);
?>
<tr style="<?php echo $style?>">
<td><?php
echo "<a href='$savePath' target='blank'><img width=60 height=60 src='{$pro->path2url($result[$i]['iconPath'])}' /></a>";
?>
</td>
<td>
<table border="0">
<tr>
<td><?php echo "<a href='$savePath' target='blank'>".$result[$i]['title']."</a>"; ?>
</td>
</tr>
<tr>
<td><?php echo $result[$i]['verCode'].".".$result[$i]['verName']?>
</td>
</tr>
<tr>
<td><?php echo $result[$i]['note'];?></td>
</tr>
</table>
</td>
</tr>
<?php
}
?>
</table>
</body>
</html>