<?php
defined('BASEPATH') OR
exit('No direct script access allowed');
?><!DOCTYPE html>
<html lang="en">
<head>
<title>leave word</title>
<meta charset="utf-8">
<h3>留言板</h3>
</head>
<body>
<div id="title" style="height: 10px; weight: 100px"></div>
<div id="show" style="height: 200px; weight: 100px">
<?php foreach ($leavewords as $leaveword_lists): ?>
<h5>
<?php echo $leaveword_lists['utitle']; ?></h5>
<h6>
<?php echo $leaveword_lists['ucontent']; ?></h6>
<h6>
<?php echo $leaveword_lists['uname']; ?></h6>
<?php endforeach; ?>
</div>
<div id="put in" style="height: 100px; weight: 100px">
<h4>请留言</h4>
<br />
<?php echo validation_error
(); ?>
<?php echo form_open
('leaveword/home/put'); ?>
<div id="utitle" style="height: 10px; weight: 80px">
<label for="utitle">留言标题:</label>
<input type="input" name="utitle" /><br />
</div>
<div id="ucontent" style="height: 50px; weight: 80px">
<label for="ucontent">留言内容</label>
<textarea name="ucontent"></textarea><br />
</div>
<div id="uname" style="height: 10px; weight: 80px">
<label for="uname">用户名:</label>
<input type="input" name="uname" /><br />
</div>
<input type="submit" name="submit" value="发表留言">
</form>
</div>
</body>
</html>