html12

摘要: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head> <title> </title></head><style type="text/css">body { margin: 0; padding: 0; background: #DFDFDF url(../Public/images/body_bg.gif) repeat-y ; cursor: E-resize;}< 阅读全文
posted @ 2012-10-08 02:16 yueyun168 阅读(246) 评论(0) 推荐(0) 编辑

html110

摘要: <!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="Content-Type" content="text/html; charset=utf- 阅读全文
posted @ 2012-10-08 02:15 yueyun168 阅读(594) 评论(0) 推荐(0) 编辑

代码 156

摘要: <?php// 添加应用模块实践class MessageAction extends Action{ //ThinkPHP特殊的操作方法 – 初始化 public function _initialize() { echo '每个操作都会先执行此方法逻辑内容<br /><br />'; } // URL访问实践2 public function test2 () { header("Content-Type:text/html; charset=utf-8"); echo '成功地访问了test2操作!'; } 阅读全文
posted @ 2012-09-17 00:06 yueyun168 阅读(128) 评论(0) 推荐(0) 编辑

代码3

摘要: <?php// 数据库添加数据class MessageAction extends Action{ // 数据添加页面 public function add() { $this->assign('title','添加数据'); $this->display(); } // 处理表单数据的方法 www.shkpw.com function insert() { header("Content-Type:text/html; charset=utf-8"); $dao=D('Message'); // 调用M 阅读全文
posted @ 2012-09-17 00:05 yueyun168 阅读(131) 评论(0) 推荐(0) 编辑

php代码

摘要: <?php// 首页class IndexAction extends Action{ // 测试模板变量输出 public function index(){ $value = 'hello,ThinkPHP'; $this->assign('title',$value); $this->display(); } /* 手动赋值插入数据 方法一 */ public function add1(){ // 使用D函数实例化一个模型类 $dao = D('Message'); // 然后给数据对象赋值 $dao->title 阅读全文
posted @ 2012-09-17 00:04 yueyun168 阅读(127) 评论(0) 推荐(0) 编辑

html

摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>系统发生错误</title><meta http-equiv="content-type" content="te 阅读全文
posted @ 2012-09-17 00:03 yueyun168 阅读(112) 评论(0) 推荐(0) 编辑

代码

摘要: <?php// 数据查询体验class SearchAction extends Action{ function _initialize() { // 为了方便使用dump函数查看结果输出,在初始化方法里统一编码 header("Content-Type:text/html; charset=utf-8"); } // 使用find方法查询1 public function find1(){ // 实例化模型 $dao = D('Message'); // 查询id为3的记录 $rs = $dao-> http://www.shkpw.comf 阅读全文
posted @ 2012-09-17 00:01 yueyun168 阅读(116) 评论(0) 推荐(0) 编辑

功能:用户发言页面

摘要: <?php /**********************************/ /*文件名:sendmsg.php*/ /*功能:用户发言页面*/ /**********************************/ include "config.inc.php";//包含配置信息 include "header.inc.php";//包含公用头部页面 //行为 $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'public 阅读全文
posted @ 2012-08-26 18:57 yueyun168 阅读(139) 评论(0) 推荐(0) 编辑

功能:在线用户显示页面

摘要: <?php /**************************************/ /*文件名:userlist.php*/ /*功能:在线用户显示页面*/ /**************************************/ include "config.inc.php";//包含配置信息 include "header.inc.php";//包含公用头部页面?><script language="JavaScript"> //页面刷新时间(秒) var refreshinterval 阅读全文
posted @ 2012-08-26 18:57 yueyun168 阅读(240) 评论(0) 推荐(0) 编辑

功能:用户注册程序

摘要: <?php /**************************************/ /*文件名:register.php*/ /*功能:用户注册程序*/ /**************************************/ include "config.inc.php";//包含配置信息 include "header.inc.php";//包含公用头部页面 //判断是否提交了数据 if (isset($_POST['submit'])) {//如果没有输入任何信息,则输出错误if(!$_POST[' 阅读全文
posted @ 2012-08-26 18:56 yueyun168 阅读(147) 评论(0) 推荐(0) 编辑