<div class="content-wrapper">

    <section class="content-header">
        <?php echo $this->partial('layout/breadcrumb'); ?>

        <h1 class="pull-right">
            <?php echo $this->HelpUrl('pcAd'); ?>
        </h1>

    </section>

    <section class="content">
        <?php echo $this->partial('layout/messages'); ?>

        <div class="row">
            <div class="col-xs-12">
                <div class="box shop-box">

                    <div class="box-body table-responsive no-padding">
                        <table class="table table-hover">
                            <thead>
                            <tr class="shop-bg-thead">
                                <th width="60%"><?php echo $this->translate('广告'); ?></th>
                                <th width="25%"><?php echo $this->translate('广告位置'); ?></th>
                                <th width="15%"><?php echo $this->translate('操作'); ?></th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php if(!empty($this->adList)) foreach ($this->adList as $value) { ?>
                                <tr>
                                    <td><?php echo $this->escapeHtml($value['placeName']); ?></td>
                                    <td><?php echo $this->escapeHtml($value['className']); ?></td>
                                    <td>
                                        <a href="<?php echo $this->url('operation-ad',
                                            ['action'=>'adEdit'], ['query' => ['class' => $value['classCode'], 'placeCode' => $value['placeCode']]]); ?>"
                                           class="btn btn-xs btn-success"><i class="fa fa-pencil"></i> <?php echo $this->translate('设置广告'); ?>
                                        </a>
                                    </td>
                                </tr>
                            <?php } ?>
                            </tbody>
                        </table>
                    </div>

                </div>

            </div>
        </div>

    </section>
</div>