PHP Zend framework 配置与调试(二)
来源:互联网 发布:数据有效性检验 编辑:程序博客网 时间:2024/06/07 03:25
一、Scripts中index.html内容:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>显示数据</title>
</head>
<body>
<a href="<?php echo $this->baseUrl ?>/index/add/">增加数据</a>
<table width="800px" border="1">
<thead>
<tr><th class="title" colspan="2">数据显示列表</th></tr>
<tr><td>标题(title)</td><td>内容(content)</td></tr>
</thead>
<tbody>
<?php foreach($this->messages as $message):?>
<tr>
<th><?php echo $message['title']; ?></th>
<td><?php echo $message['content']; ?></td>
<td width="100px"><a href="<?php echo $this->baseUrl ?>/index/edit/id/<?php echo $message['id']; ?>/">编辑数据</a></td>
<td width="100px"><a href="<?php echo $this->baseUrl ?>/index/del/id/<?php echo $message['id']; ?>/">删除数据</a></td>
</tr>
<?php endforeach;?>
</tbody>
</table>
</body>
</html>
二、add.html内容:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>增加数据</title>
</head>
<body>
<form method="post" action="<?php echo $this->baseUrl?>/index/add/">
<b>增加数据</b><br>
标题:<input type="text" name="title" value="" size="20"><br/>
内容:<textarea name="content" id="content" col="40"></textarea><br/>
<input type="submit" value="增加数据"/>
</form>
</body>
</html>
三、edit.html内容:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>修改数据</title>
</head>
<body>
<a href="<?php echo $this->baseUrl ?>/index/add/">增加数据</a><br/>
<a href="<?php echo $this->baseUrl ?>/index/index/">显示数据</a><br/>
<hr>
<form method="post" action="<?php echo $this->baseUrl?>/index/edit/">
<?php foreach($this->messages as $message):?>
标题:<input type="text" name="title" value="<?php echo $message['title']; ?>" size="20"><br/><br/>
内容:<textarea name="content" id="content" col="40"><?php echo $message['content'] ?></textarea><br/>
<input type="hidden" name="id" value="<?php echo $message['id']; ?>" /><br/>
<input type="submit" value="修改数据"/>
<?php endforeach; ?>
</form>
</body>
</html>
四、del.html内容:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>删除数据</title>
</head>
<body>
<a href="<?php echo $this->baseUrl ?>/index/add/">增加数据</a><br/>
<a href="<?php echo $this->baseUrl ?>/index/index/">显示数据</a><br/>
<hr>
<form method="post" action="<?php echo $this->baseUrl?>/index/edit/">
<?php foreach($this->messages as $message):?>
<b>标题:</b><?php echo $message['title']; ?><br/>
<b>内容:</b><?php echo $message['content'] ?><br/>
<input type="hidden" name="id" value="<?php echo $message['id']; ?>" /><br/>
<input type="submit" value="确认删除数据"/>
<?php endforeach; ?>
</form>
</body>
</html>
- PHP Zend framework 配置与调试(二)
- PHP Zend framework 配置与调试(一)
- xampp下zend framework 1.11.0 quickstart、配置与调试
- PHP100视频教程75:Zend framework 配置与调试 解压密码
- Zend Framework 配置与应用
- php zend framework框架配置(1)
- Zend Framework(二) model与view使用
- Zend Framework介绍与安装配置
- Zend Framework介绍与安装配置
- 使用zend studio配置Xdebug调试PHP
- php Zend framework 学习
- zend framework php
- Php Zend framework
- PHP zend framework学习心得
- php/zend framework学习心得
- PHP zend framework学习心得
- Zend Framework 中的 Php 编码标准 (二) - 命名约定
- Zend Framework 中的 Php 编码标准 (二) - 命名约定
- 数据库水平切分的实现原理解析---分库,分表,主从,集群,负载均衡器
- Linux下获取本机所有IP
- [Oracle] 查询修改序列对象的当前值
- 修改MXD图层连接的方法
- C++标准模板库(STL)—简介
- PHP Zend framework 配置与调试(二)
- MBTI职业性格测试-你注定是个程序员?
- RedHat Linux 5企业版开启远程桌面
- linux 交叉开发工具链的生成步骤
- linux 交叉开发工具链的生成步骤
- AutoHotkey 通过命令行获得传递参数
- 删除SVN文件的方法
- XMLGregorianCalendar与Date的类型相互转换
- ubuntu装完后要做的事