-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlist.php
More file actions
89 lines (66 loc) · 2.35 KB
/
list.php
File metadata and controls
89 lines (66 loc) · 2.35 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
<?php
include_once('inc.php');
//DB操作
if($db = sqlite_open('iine.db',0705,$errmsg)){
//現在のカウントを取得
$sql = "SELECT * FROM iine WHERE url <> '' ORDER BY udate DESC LIMIT 0,100";
$result = sqlite_query($db, $sql);
$sites = sqlite_fetch_all($result);
sqlite_close($db);
} else {
//print_r($errmsg);
}
?>
<html>
<head>
<meta name="viewport" content="width=600px;" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?= $SITE_TITLE ?></title>
<style type="text/css">
<!--
* {
font-family:'ヒラギノ角ゴ Pro W3','Hiragino Kaku Gothic Pro','メイリオ',Meiryo,'MS Pゴシック',sans-serif;
}
//-->
</style>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
<!--
//-->
</script>
</head>
<body bgcolor="#f0f0f0">
<div style="width:600px; border:1px solid #1D4088; background:#627AAD; padding:5px;">
<span style="color:white; font-weight:bold;"><a href="./" style="color:white; text-decoration:none;">fakebook</a></span>
</div>
<div style="width:600px; border:1px solid #DDDDDD; background:white; padding:5px;">
<div style="text-align:right;">
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fhodade.adam.ne.jp%2Fiine%2F&layout=button_count&show_faces=true&width=100&action=like&font&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe>
</div>
<div>
言い値Sites
</div>
<? foreach ($sites as $site) { ?>
<a href="<?= $site['url'] ?>"><?= $site['title'] != '' ? $site['title'] : $site['url'] ?></a>
<?= $site['count'] ?>円
<br>
<? } ?>
<br>
</div>
<div style="height:20px; overflow:hidden;"></div>
<div style="width:600px; text-align:center; font-size:10px; color:gray;">
<a href="../">2012 HODADE SYSTEMS</a>
</div>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-6357211-16']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>