网络营销电子商务研究中心  
How to buy the best prescription safety glasses in Canada? Let's study!
Go Back   网络营销电子商务研究中心 > 网站建设 > 帝国Cms
User Name
Password
 
FAQ Members List Calendar Cheap Glasses

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   IP: 114.238.104.73
Old 2015-10-11, 08:12 AM
Galesville Galesville is offline
初级会员
 
Join Date: 2009-02-08
Posts: 1
Galesville 现在声名狼藉
Default 如何给帝国cms留言板添加标题字段?

帝国的表单数据一般是通过eenewsindex.php获得
  其中:
  //增加留言
  elseif($enews==”AddGbook”)
  {
  AddGbook($_POST);
  }
  //增加反馈
  elseif($enews==”AddFeedback”)
  {
  $doetran=1;
  AddFeedback($_POST);
  }
  ================================
  AddGbook($_POST);和AddFeedback($_POST);都是自定义函数用来获得页面传递的值;
  AddGbook($_POST)函数在eenewsgbookfun.php
  AddFeedback($_POST)函数在eclassq_functions.php
  ===============================
  假如我要给留言板增加一个字段,方法如下
  在eenewsgbookfun.php
  第一步:增加$lytitle=RepPostStr($add[lytitle]);
  第二步:将参数写入数据库,找到insert into的语句加入相应的代码即可;
  第三步:在留言板数据表中增加一个字段lytitle
  第四步:在etoolgbookindex.php中的表单内加入相应的input就行了
  到此已经能完成字段数据的加入;
  读出字段的方法如下:
  前台:在etoolgbookindex.php找到$query=”select的查询语句,在末尾加入lytitle(记住加到末尾)
  然后在页面使用<?=$r[lytitle]?>调用就行了;
  后台:在eadmintoolgbook.php找到$query=”select的查询语句,在末尾加入lytitle(记住加到末尾)
  然后在页面使用<?=$r[lytitle]?>调用就行了;
  后台回复留言页:直接在页面加入<?=$r[lytitle]?>就行了
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Prescription-glasses.com offers prescription glasses online at discount prices.
All times are GMT +8. The time now is 10:59 PM.


Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.