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
|
<?php require_once "inc/configure.php"; ?><!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>ENZA</title> <link rel="stylesheet" type="text/css" href="css/style.css" /> <?php require_once "inc/jsheader.php"; ?> </head> <body> <?php /* USD_CNY::initByDate('2013-12-31 09:40:25'); vdump(USD_CNY::getUSDAmount('CNY', 100) ); USD_CNY::initByDate('2013-11-05 09:51:00'); vdump(USD_CNY::getUSDAmount('CNY', 100) ); USD_CNY::initByDate('2013-10-16 08:52:00'); vdump(USD_CNY::getUSDAmount('CNY', 100) ); */
?> <a onclick="$('#myform').toggle();"> </a> <form action="sys_clog_add.php" name="myform" method="post" id="myform" style="display:none"> <textarea name="content" cols="60" rows="5"></textarea> <input type="submit" name="submit" value="submit" /> </form> <br /> <br /> <?php //echo "line:".__LINE__."file:".__FILE__."dir:".__DIR__; //echo '<select>'.input_masterWorker_option().'</select>';//echo getphptime() function convert($size) { $unit=array('b','kb','mb','gb','tb','pb'); return @round($size/pow(1024,($i=floor(log($size,1024)))),2).' '.$unit[$i]; } echo convert(memory_get_peak_usage(true))."---"; ?> Computer:<?=gethostbyaddr(getRealIpAddr())?><br /> <table border="1"> <th width="200">Date</th> <th width="500">ChangeLog</th> <?php $sql = "SELECT *, date(t) as dd from sys_clog order by ID DESC"; if (defined("MSSQL")) { $sql = "SELECT *, CONVERT(date, t) as dd from sys_clog WHERE t<GETDATE() order by ID DESC"; } $sth = $dbh->prepare($sql); $sth->execute( );
while($row = $sth->fetch()) { ?> <tr> <td><?=$row['dd']?></td><td><?=$row['content']?></td> </tr> <?php } ?> </table>
</body> </html>
|