Exemplo n.º 1
0
<?php

Fragments('audit/fragment', 'navigation');
?>

<div>
<form action="/audit/search" method="get" >
	<input type="text" id="search" name="search" value="" /> <input type="submit" value="查询" />
</form>

</div>
<div>
	<ul>
		<?php 
foreach ($log as $lg) {
    ?>
		<li>

			<p><?php 
    echo $lg['title'];
    ?>
</p>
			<p><?php 
    echo $lg['contents'];
    ?>
</p>
			<p> <?php 
    echo timeByDay($lg['posts_time']);
    ?>
 - <?php 
    echo $lg['ip_section1'];
Exemplo n.º 2
0
<?php

echo Fragments('fragment', 'bbs_header');
?>

首页内容 </br>

<?php 
foreach ($forum as $f) {
    ?>
	<a href="/thread/<?php 
    echo $f['forum_id'];
    ?>
"><?php 
    echo $f['forum_name'];
    ?>
</a>
<?php 
}
?>

<?php 
echo Fragments('fragment', 'bbs_footer');