PHP学习29号作业

PHP学习29号作业

1

2

3

4

5

6

7

8

9

<?php

// 栏目表

return [

0=> [id=>1, name=>新闻,desc=>新闻列表],

1=> [id=>2, name=>产品,desc=>产品列表],

1=> [id=>3, name=>xxx,desc=>xxx列表],

];

2=>  [

        id => 3,

        name => 详情-通用-模板,

        style => [

            default => detail_general_default.php,

            light => detail_general_light.php,

            dark => detail_general_dark.php,

        ]

// 1. xxx列表信息支付系统对接mhkj33

$cid = 3;

$news = array_filter($arts, function ($art) use ($cid) {

    return $art[cid] == $cid;

});

<div class=”news”>

    <h3>xxx列表</h3>

    <div class=”list”>

      <?php for ($i=0;$i<5;$i++) : extract($news[$i])?>

      <a

        href=”<?=$url.?cid=.$cid.&id=.$id?>”><?=mb_substr($title, 0, 18) ?>…</a>

      <?php endfor ?>

    </div>

  </div>

批改老师:支付系统对接mhkj33PHPz 批改状态:合格 老师批语:作业标题不用带有时间, 可以根据作业内容自行选取
作者最新博文
2022-11-25 00:03:25

© 版权声明
THE END
喜欢就支持一下吧
点赞529 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容