如何根据本周,上周,3周前和上个月的codeigniter过滤内容

时间:2015-09-22 14:10:17

标签: php codeigniter

关于如何将过滤器选项添加到下拉框并根据下拉列表中的项目显示内容,我有点空白。

这是我的代码:

<select class="select-style">
   <option value="this-week">This Week</option>
   <option value="last-week">Last Week</option>
   <option value="3-weeks">3 Weeks ago</option>
   <option value="last-month">Last Month</option>
</select>

这是表格的代码:

<table class="table table-bordered padding-bottom-20 background-4-tablist">
            <thead>
                <tr class="row text-center">
                    <th class="padding-left-9">DATE ACCEPTED</th>
                    <th class="padding-left-9">PROJECT NAME</th>
                    <th class="padding-left-9">BUYER NAME</th>
                    <th class="text-center">AMOUNT</th>
                </tr>
            </thead>
            <tbody> 
            <?php foreach($get_approved_project_list as $row)
            {
            $p_date=strtotime($row->p_submitdate);
            ?> 
                <tr class="row text-center">
                    <td class="col-md-3 info_1"><?php echo date('d-m-y',$p_date); ?></td>
                    <td class="col-md-3 info_1"><?php echo $row->p_title; ?></td>
                    <td class="col-md-3 info_1"><?php echo $row->p_buyname; ?></td>
                    <td class="col-md-3 info_1 text-center"><?php echo $row->p_totalpri; ?></td>
                </tr>
            <?php } ?>

            </tbody>

        </table>

注意:我只发布了观看次数

0 个答案:

没有答案