Exemple #1
0
			function TimeSelect($name,$selected='')
	{
		$this_year=date('Y');
		$this_month=date('m');
		$this_day=date('d');
		$options=array(array("name"=>__("--请选择--"),"value"=>""),
		array("name"=>__("最近一天"),"value"=>mktime(0,0,0,$this_month,$this_day-1)),
		array("name"=>__("最近两天"),"value"=>mktime(0,0,0,$this_month,$this_day-2)),
		array("name"=>__("最近三天"),"value"=>mktime(0,0,0,$this_month,$this_day-3)),
		array("name"=>__("最近一周"),"value"=>mktime(0,0,0,$this_month,$this_day-7)),
		array("name"=>__("最近一个月"),"value"=>mktime(0,0,0,$this_month-1,$this_day)),
		array("name"=>__("最近两个月"),"value"=>mktime(0,0,0,$this_month-2,$this_day)),
		array("name"=>__("最近三个月"),"value"=>mktime(0,0,0,$this_month-3,$this_day)),
		array("name"=>__("最近半年"),"value"=>mktime(0,0,0,$this_month-6,$this_day)),
		array("name"=>__("最近一年"),"value"=>mktime(0,0,0,$this_month,$this_day,$this_year-1)),
		array("name"=>__("最近三年"),"value"=>mktime(0,0,0,$this_month,$this_day,$this_year-3)));
		return formhandler::select($name,$options,$selected);
	}
Exemple #2
0
    $db = NULL;
}
?>


<!DOCTYPE html>
<!--[if lte IE 6]><html class="preIE7 preIE8 preIE9"><![endif]-->
<!--[if IE 7]><html class="preIE8 preIE9"><![endif]-->
<!--[if IE 8]><html class="preIE9"><![endif]-->
<!--[if gte IE 9]><!--><html><!--<![endif]-->
 <head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>Login Page</title>
  <link rel="stylesheet" href="stylesheet.css" type="text/css">
 </head>
 <body>
<?php 
$loginForm = new formhandler();
$loginForm->textField("Naam", "username", FH_STRING);
$loginForm->passField("Wachtwoord", "password", FH_PASSWORD);
$loginForm->submitButton("Inloggen");
$loginForm->flush();
if (isset($msg)) {
    echo $msg;
}
?>
  
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
 </body>
</html>