CodeIgniter中表格的使用
来源:互联网 发布:国家地理基础数据库 编辑:程序博客网 时间:2024/05/10 09:06
<table border="1" cellspacing="1" cellpadding="0" width="90%" >
<tr>
<td align="center">用户id</td>
<td align="center">用户昵称</td>
<td align="center">分享内容</td>
<td align="center">分享时间</td>
<td align="center">操作</td>
</tr>
<?php foreach($results as $result_item=>$value):?>
<?php if ($result_item%2 == 0): ?>
<tr bgcolor="#ddd">
<?php else: ?>
<tr bgcolor="#dddfff">
<?php endif ?>
<td><?php echo $value['publisher_id']; ?></td>
<td><?php echo $value['publisher_nick']; ?></td>
<td>
<?php if ($value['text'] != null): ?>
<?php echo $value['text'] ?>
<?php else: ?>
<?php endif ?>
</td>
<td><?php echo $value['publish_time'] ?></td>
<td align="center">删除</td>
</tr>
<tr>
<td colspan="5">
<?php for ($i = 1;$i<=5;$i++):?>
<?php if ($value['pic'.$i] != null): ?>
<img class="'+opts.imgClass+'" width="110" height="110" src="<?php echo 'http://oss.aliyuncs.com/'.$value['pic'.$i]?>" />
<?php endif ?>
<?php endfor ?>
</td>
</tr>
<?php endforeach ?>
</table>
<tr>
<td align="center">用户id</td>
<td align="center">用户昵称</td>
<td align="center">分享内容</td>
<td align="center">分享时间</td>
<td align="center">操作</td>
</tr>
<?php foreach($results as $result_item=>$value):?>
<?php if ($result_item%2 == 0): ?>
<tr bgcolor="#ddd">
<?php else: ?>
<tr bgcolor="#dddfff">
<?php endif ?>
<td><?php echo $value['publisher_id']; ?></td>
<td><?php echo $value['publisher_nick']; ?></td>
<td>
<?php if ($value['text'] != null): ?>
<?php echo $value['text'] ?>
<?php else: ?>
<?php endif ?>
</td>
<td><?php echo $value['publish_time'] ?></td>
<td align="center">删除</td>
</tr>
<tr>
<td colspan="5">
<?php for ($i = 1;$i<=5;$i++):?>
<?php if ($value['pic'.$i] != null): ?>
<img class="'+opts.imgClass+'" width="110" height="110" src="<?php echo 'http://oss.aliyuncs.com/'.$value['pic'.$i]?>" />
<?php endif ?>
<?php endfor ?>
</td>
</tr>
<?php endforeach ?>
</table>
- CodeIgniter中表格的使用
- CodeIgniter中分页类的使用
- codeigniter中控制器(controller)的使用
- CodeIgniter使用中遇到的问题
- CodeIgniter中使用Sqlite3
- php,使用CodeIgniter框架上传Excel表格,并存入到数据库中
- CodeIgniter的使用
- CodeIgniter,smarty的使用
- 在codeigniter中使用Pchart
- 解决CodeIgniter中不能使用SQLite3的问题
- php框架codeigniter中如何使用框架的session
- php框架codeigniter中如何使用框架的session
- php框架CodeIgniter的使用
- 使用codeigniter的输入类
- codeigniter html表格
- 在 CodeIgniter 中使用 Laravel Eloquent ORM
- 在 Codeigniter(CI)中引入外部的JS与CSS的配置及使用
- CodeIgniter中count_all_results出错的问题
- 刚毕业大学生说话技巧总结(会说话,减少奋斗30年)
- 数据库管理员的职责
- linux 脚本编写
- PE文件编辑器
- 六年谈-游戏工作室与游戏开发过程简介(转)
- CodeIgniter中表格的使用
- nyoj-354-Stripies
- Spring漏洞案例-Petclinic
- TextView中多行字的行间距
- CSS 选择器
- SQL Server SQL高级查询语句小结
- html/css教程:背景图片的定位问题详解
- C# ADO SqlHelper
- java使用递归解决全排列问题