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

正文內(nèi)容

asp論壇的畢業(yè)設(shè)計-在線瀏覽

2024-08-08 07:52本頁面
  

【正文】 tint否是回復(fù)帖子數(shù)量3. Message(消息信息表),該表結(jié)構(gòu)如下表表3所示。表4 Popedom(論壇類別信息表)列名數(shù)據(jù)類型是否主鍵允許空值描述popedom_idint是否表Id自動生成popedom_Namevarchar否是論壇類別名稱5. Post(論壇帖子信息表),該表結(jié)構(gòu)如下表表5所示。表6 PostBack(帖子回復(fù)信息表)列名數(shù)據(jù)類型是否主鍵允許空值描述Postback_Idint是否表Id自動生成Postback_contentvarchar否是帖子回復(fù)內(nèi)容Postback_Senderint否是帖子回復(fù)人Postback_SendTimedatetime否是帖子回復(fù)時間Postback_PostIdint否是帖子標(biāo)號7. PostType(帖子類型信息表),該表結(jié)構(gòu)如下表表7所示。表8 Users(用戶信息表)列名數(shù)據(jù)類型是否主鍵允許空值描述UserIdint是否表Id自動生成UserNamevarchar否是用戶姓名UserPwdvarchar否是用戶密碼UserEmailvarchar否是用戶EmailUserPicvarchar否是用戶照片UserQxint否是用戶權(quán)限設(shè)置UserOnlineint否是是否在線UserIpvarchar否是用戶ipUserLoginDatedatetime否是用戶注冊時間IsAdminint否是是否管理員六、 系統(tǒng)的詳細(xì)設(shè)計與實(shí)現(xiàn)(一) 前臺設(shè)計與實(shí)現(xiàn)由于前臺功能模塊較多,而各模塊的實(shí)現(xiàn)過程都是類似的,所以對于系統(tǒng)前臺,現(xiàn)在只介紹系統(tǒng)重點(diǎn)設(shè)計。該頁面為論壇首頁頁面,當(dāng)用戶進(jìn)入本系統(tǒng)時會自動進(jìn)入本頁面。此BBS設(shè)計有母版頁存在,故論壇首頁實(shí)現(xiàn)代碼如下:asp:DataList ID=DataList1 runat=server DataKeyField=bigId DataSourceID=SqlDataSource1 BackColor=LightGoldenrodYellow BorderColor=Tan BorderWidth=1px CellPadding=2 ForeColor=Black FooterStyle BackColor=Tan / AlternatingItemStyle BackColor=PaleGoldenrod / SelectedItemStyle BackColor=DarkSlateBlue ForeColor=GhostWhite / HeaderStyle BackColor=Tan FontBold=True / ItemTemplate table align=left style=width: 100%。 tr td class=style8 % Eval(bigName) %/td td class=style7 align=left 區(qū)長:/td td class=style3 align=left asp:Label ID=Label1 runat=server Text=39。/asp:Label/td td class=style3 align=right 創(chuàng)建日期:/td td class=style3 align=left asp:Label ID=Label2 runat=server Text=39。/asp:Label /td /tr tr td class=style9a href=39。img src=images///a /td td class=style6 colspan=4 a href=39。%Eval (bigDescription) %/a/td /tr /table /ItemTemplate /asp:DataList圖11 Asp_netBBS論壇登錄頁面2. 該BBS論壇登錄頁面如下。若用戶未注冊按注冊按鈕進(jìn)入注冊頁面。 protected void Page_Load(object sender, EventArgs e) { } protected void User_login_Click(object sender, EventArgs e) { String Name = 。 String user_ip=。 (script(39。)/script)。 } } public void VldUserLogin(string strUserName, string strPassWord, string ip)//驗證并修改個別信息 { string strUserId = null。 int UserQx=0。 String strSql = SELECT UserId FROM Users WHERE UserName=39。 and UserPwd=39。//根據(jù)用戶名和密碼來查詢用戶的ID String strSql2 = SELECT IsAdmin FROM Users WHERE UserName=39。 and UserPwd=39。//根據(jù)用戶名和密碼來查詢用戶是否為管理的的標(biāo)志 String strSql3 = SELECT UserQx FROM Users WHERE UserName=39。 and UserPwd=39。//查詢用戶的權(quán)限 string strSql4 = update Users set UserOnline=39。,UserIp=39。WHERE UserName=39。 and UserPwd=39。 SqlConnection conn = new SqlConnection(connstring)。 = conn。 try { ()。 reader = ()。//獲取編號UserId ()。 (script(39。)/script)。 reader = ()。//獲取是否是管理員 ()。 reader = ()。//獲取權(quán)限 ()。 int result = ()。//往Session里賦值 Session[user_id] = strUserId。 //是否是管理員,用于前臺主框架是否顯示管理 Session[IsAdmin] = isadmin。//成功跳轉(zhuǎn) } } } catch(Exception ex) { ( 意外關(guān)閉)。 } finally { ()。若點(diǎn)擊重置則清空所有文本框內(nèi)容,進(jìn)行重新輸入。 private string user_Name1, pwd1, user_1,ip,pic。 public void Add_user() { string strconnection = ()。 SqlConnection conn = new SqlConnection(strconnection)。 SqlDataReader reader。 reader = ()。//取標(biāo)號最大值 Item()。 } ()。 } finally { ()。 } public void Item() //插入元素 { string strconnection = ()。 pwd1 = 。 user_1 = 。 + id + 39。 + user_Name1 + 39。 + pwd1 + 39。 + user_1 + 39。 + pic + 39。 SqlConnection conn = new SqlConnection(strconnection)。 SqlCommand cmd = new SqlCommand(insert, conn)。 } catch (Exception ex) { ()。 } ()。 (script(39。)/script)。 (script(39。)/script)。 } } protected void Button1_Click(object sender, EventArgs e) { //檢測該用戶是否已經(jīng)存在 string sql = select UserId from Users where UserName=39。 string strconnection = ()。 SqlCommand cmd = new SqlCommand(sql, conn)。 try { ()。 if (()) { ()。該用戶已經(jīng)存在39。 } else { (script(39。)/script)。 } finally { ()。該頁面為用戶發(fā)表帖子頁面,若用戶未登錄則自動跳轉(zhuǎn)到用戶登錄界面,提示用戶登錄,若用戶已登錄,則可以進(jìn)行發(fā)帖,按重置按鈕后則清空所有文本框。 protected void Page_Load(object sender, EventArgs e) { //驗證是否有用戶登錄 if (Session[user_id] == null) { ()。 string strTitle = 。 //內(nèi)容 string strContent = 。 //添加帖子表 AddPost(strTitle,strContent,UserId,PostType,PostSmall_Id)。 string strconnection = ()。 SqlConnection conn = new SqlConnection(strconnection)。//5_1_a_s_p_x = conn。 SqlDataReader reader。 reader = ()。//取標(biāo)號最大值 ()。 + id + 39。 + strTitle + 39。 + strContent + 39。 + post_sen
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1