freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

電子警察設(shè)計(jì)及其應(yīng)用畢業(yè)論文-資料下載頁

2025-06-27 16:20本頁面
  

【正文】 Flash組成,這是通用的表頭文件,只要是本站中涉及到要輸出表頭的都是調(diào)用該表頭的。頁尾只是一個表格,隨時可以調(diào)用,方法會在代碼中說明。頁面的主體才是重點(diǎn),這里給出了用戶的登陸界面,由于時間問題,只是做了個簡單的登陸系統(tǒng),而用戶想要自己信息的話,還無可奈何。下面讓我們來看看代碼吧,那里面的注釋會告訴你功能所在。其代碼如程序清單61所示。圖61 程序清單61 —該腳本產(chǎn)生站點(diǎn)主頁?php session_start()。//開啟會話 ?htmlheadmeta equiv=ContentType content=text/html。 charset=gb2312meta name=Author content=程相闖 cxc0378@meta name=Keywords content=車輛違章查詢系統(tǒng)meta name=description content= 車輛違章 查詢系統(tǒng) PHP+MySQL title車輛違章查詢系統(tǒng)/title!//控制頁面顯示樣式 !style type=text/cssbody,td,li,table,p {fontsize: 12px。lineheight:150%}input,h,option{fontsize:12px}a:link {textdecoration:none。color:000000}a:visited {textdecoration:none。color:000000}a:active {textdecoration:none。color:000000}a:hover {textdecoration:underline。color:ff0000}/style/headbody!//這里使用了Javascript語言 !script language=javascript function login() {//轉(zhuǎn)向登陸界面 //(about:blank,login1,39。scrollbars=auto39。)。 = 。 = 。 ()。 }function reg() {//轉(zhuǎn)向注冊函數(shù) = 。 = 。 ()。 }/script?phprequire(39。39。)。//調(diào)用頁面表頭文件?table width=750 border=0 align=center cellpadding=1 cellspacing=1 background=image/ bgcolor=eef2ff style=border:1px 6699FF solid。borderwidth:0 0 0 0 tr td width=186font face=Arial amp。nbsp。GMT+8: SCRIPT language=JavaScript type=text/JavaScript //輸出年月日和星期today = new Date()。var day。 var date。if(()==0) day = 星期日。if(()==1) day = 星期一。if(()==2) day = 星期二。if(()==3) day = 星期三。if(()==4) day = 星期四。if(()==5) day = 星期五。if(()==6) day = 星期六。date = (()) + 年 + (() + 1 ) + 月 + () + 日 + day。(date)。 /SCRIPT /font/td td width=410amp。nbsp。/td td width=144div align=center訪問統(tǒng)計(jì): ?php//計(jì)數(shù)器,如果不設(shè)置,它也會自動生成一個$fp=fopen(,r)。$num=fgets($fp,12)。fclose($fp)。$num+=1。$fp=fopen(,w)。fputs($fp,$num)。fclose($fp)。echo 39。font face=Arial39。.$num.39。/font39。? /div/td/tr/tablediv align=centerimg src=image/ width=750 height=5 /divtable width=750 height=280 border=0 align=center bgcolor=eef2ff tr td height=276 div align=center ?php//下面輸出的是個條件語句,用戶登陸前是登陸界面,登陸后出現(xiàn)歡迎界面if($_SESSION[39。valid_user39。]){echo 39。table width=170 height=120 border=0 align=center39。 echo39。 tr td height=25 colspan=2div align=center您好!39。.$_SESSION[39。valid_user39。]。 echo39。 /div/td/tr39。 echo39。 tr td height=25 colspan=2div align=center歡迎您訪問本站!39。 echo39。 /div/td/tr39。echo39。 tr td height=25 colspan=2div align=center現(xiàn)在您可以點(diǎn)擊菜單享受服務(wù)!/div/td/tr39。echo39。 tr td width=75 height=25div align=centera href=[退amp。nbsp。amp。nbsp。 出] /a/div/td39。 echo39。td width=75div align=centera href=[重新登陸]/a/div/td/tr39。 echo39。 /table39。}else{ echo39。form name=form1 method=POST action=div align=center 39。 echo 39。table width=141 height=110 border=0 align=center39。 echo39。 tr td height=30 colspan=2div align=center用戶:39。 echo39。 input name=uid type=text size=10 maxlength=2039。 echo39。 /div/td/tr39。 echo39。 tr td height=30 colspan=2div align=center密碼:39。 echo39。 input name=password type=password size=10 maxlength=1839。 echo39。 /div/td/tr39。 echo39。 tr td height=32 colspan=2 div align=center39。 echo39。 input type=submit name=login value=登 陸 39。 echo39。 amp。nbsp。amp。nbsp。 39。 echo39。 input type=submit name=register onClick=reg()。return false。 value=注 冊 39。 echo39。 /div/td/tr39。 echo39。 /table/div/form39。}? /div /td /tr/tablediv align=centerimg src=image/ width=750 height=5 /div?phprequire(39。39。)。// 調(diào)用頁面腳文件?/body/html例如,當(dāng)我登陸后,就會出現(xiàn)如圖62的情形。當(dāng)然如果非法用戶登陸,也會出現(xiàn)如圖63的情形。圖62 合法用戶登陸后的歡迎頁面 圖63 非法用戶登陸后的警告如果用戶沒有注冊是不可以享受本站服務(wù)的,所以新用戶要想成功查詢信息,必須先去注冊,下面我就介紹一下注冊系統(tǒng)。如圖64所示,這是我注冊的不完整的頁面。本頁除檢測用戶名使用的是PHP語言,點(diǎn)擊“檢測用戶名”,其余大部分是Javascript來實(shí)現(xiàn)的,主要是是實(shí)時判斷輸入合法性,這里不在贅述,最主要的是點(diǎn)擊“注冊”表單后的頁面處理程序,這里會進(jìn)一步判斷輸入合法性,如果合法會將信息插入數(shù)據(jù)庫,否則給出詳細(xì)的出錯信息。圖64 注冊系統(tǒng)主頁面程序清單62 —該腳本處理注冊頁面,給出合理結(jié)果?phpsession_start()。//開啟會話?htmlheadmeta equiv=ContentType content=text/html。 charset=gb2312meta name=Author content=程相闖 cxc0378@meta name=Keywords content=用戶注冊 檢測 提交數(shù)據(jù)庫meta equiv=refresh content=2。 url=title注冊處理/titlestyle type=text/cssbody,td,li {fontsize: 12px。lineheight:150%}input,h{fontsize:12px}a:link {textdecoration:none。color:000000}a:visited {textdecoration:none。color:000000}a:active {textdecoration:none。color:000000}a:hover {textdecoration:underline。color:ff0000}/style/headbody?php require(39。39。)。 //頁面頭部??php//接受表單傳遞變量,并定義短變量名$uid=$_POST[39。uid39。]。$password=$_POST[39。password39。]。$confirm_password=$_POST[39。confirm_password39。]。$question=$_POST[39。question39。]。$answer=$_POST[39。answer39。]。$uname=$_POST[39。uname39。]。$gender=$_POST[39。gender39。]。$birthyear=$_POST[39。birthyear39。]。$birthmonth=$_POST[39。birthmonth39。]。$birthdate=$_POST[39。birthdate39。]。$=$_POST[39。39。]。$workplace=$_POST[39。workplace39。]。$post_code=$_POST[39。post_code39。]。$tel=$_POST[39。tel39。]。//過濾輸入框信息,除去首尾空格$uid=trim($uid)。$answer=trim($answer)。$uname=trim($uname)。$=trim($)。$workplace=trim($workplace)。$post_code=trim($post_code)。$tel=trim($tel)。$qqnum=trim($qqnum)。//設(shè)置Email是否合法function valid_($address){ if (ereg(39。^[azAZ09_\.\]+@[azAZ09\]+\.[azAZ09\\.]+$39。, $address)) return true。 else return false。}//定義數(shù)據(jù)庫連接函數(shù)function db_connect(){ $result = new mysqli(39。localhost39。, 39。root39。, 39。1984032839。, 39。traffic39。)。 if (!$result) throw new Exception(39。不能連接到數(shù)據(jù)庫,請檢查連接!39。)。 else return $result。}//確定性別是否被選if ($gender==0)$gender=39。男39。else $gender=39。女39。//設(shè)置注冊函數(shù),并將合法結(jié)果插入數(shù)據(jù)庫function register_sql($uid, $password,$question,$answer,$uname,$gender,$birthyear,$birthmonth,$birthdate, $,$workplace,$post_code,$tel,$qqnum){ $conn = db_connect()。//連接數(shù)據(jù)庫,已定義 //檢測用戶名是否存在 $result = $connquery(select * from register where uid=39。$uid39。)。 if (!$result) throw new Exception(39。不能執(zhí)行!39。)。 if ($resultnum_rows0)
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1