PHP submitÎÊÌ⣨¼±£¬ÔÚÏߵȣ© - PHP / »ù´¡±à³Ì
<?php
@session_start();
require_once './module/t_doctor.inc';
$t_doctor = new t_doctor();
if(isset($Submit)){
$sql="select * from t_doctor WHERE docname='".$username."' AND password='".$password."' ";
$userInfo = $t_doctor->_execute($sql, "getRow");
if(!is_array($userInfo)){
AlertMsg("Óû§Ãû»òÃÜÂë´íÎó!");
GotoWeb("login.php");
die();
}else{
$_SESSION['s_userid'] = $userInfo['id'];
$_SESSION['s_password'] = $userInfo['password'];
$_SESSION['s_name'] = $userInfo['name'];
$_SESSION['s_docname'] = $userInfo['docname'];
$_SESSION['s_docid'] = $userInfo['id'];
$_SESSION['s_kefuid'] = $userInfo['id'];
if($userInfo['type'] == "")
$_SESSION['s_type'] = "D"; //±íʾҽÉúÐÅÏ¢
else
$_SESSION['s_type'] = $userInfo['type'];
AlertMsg("µÇ½³É¹¦!");
GotoWeb("./index.php");
die();
}
}
?>
<!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="Conte
Ïà¹ØÎÊ´ð£º
ÇëÎÊÏÂÄܲ»ÄÜÔÙwindows϶¨ÆÚÇå¿ÕmysqlÒ»¸ö±íÖеÄÈ«²¿Êý¾Ý£¬ÓÃPHPʵÏÖ£¡
лл¸÷λÁË
¾Í±ÈÈçÒ»¸öÐÇÆÚÇå¿ÕÒ»´Î
±ÈÈçÿ¸öÐÇÆÚÁùÁãµãÇå¿ÕÒ»´Î£¡
ллÁË
¼Æ»®ÈÎÎñ...php....sql...truncate....OK
Äã¾ÍÕâ½ÓÔÚҳà ......
Ôڲɼ¯Ò»¸öÒ³ÃæµÄʱºòͨ³£¶¼ÊÇʹÓÃfile_get_contents($url)
²»¹ý·µ»ØµÄ½á¹ûÓÐʱºò»á²»È«
Èç¹ûÔÚhtmlÖÐʹÓà document.ready,ÔÚÒ³Ãæ×¼±¸ºÃºó£¬Ê¹ÓÃajax¶ÁÈ¡±ðÒ»²¿·ÖµÄÊý¾Ý
ÔÙͨ¹ýÐÞ¸Ähtml±êÇ©µÄÄÚÈÝ£¬¾Í²¿·ÖµÄÊý¾Ý¾ ......
ÎÒÔÚÍøÕ¾µÄÒýµ¼Ò³ÖÐÌí¼ÓÁË<embed src="ÒôÀÖµØÖ·" autostart="true" loop="true" hidden="true"></embed>
Õâ¾ä»°£¬È»ºóÌøתҳÃæºó£¬±³¾°ÒôÀÖ¾ÍûÓÐÁË£¬ÔõôÈÃÕ ......
index.phpÄÚÈÝ£º
$smarty->assign('name',strtotime('-0'));
$smarty->display("index.html");
index.htmlÄÚÈÝ£º
{$name|date_format:'%Y-%m-%d'}<hr>
{$ ......