You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
3.3 KiB
PHP
87 lines
3.3 KiB
PHP
<div class="container-fluid">
|
|
<div class="pull-right content-action">
|
|
<a href="<?php echo Zc::url(AdminRouteConst::adminAffiliateAccountEditAffiliateAccount)?>" class="btn btn-primary"><i class="glyphicon glyphicon-plus"></i>新增合作机构</a>
|
|
</div>
|
|
<ul class="breadcrumb">
|
|
<li><a href="<?php echo Zc::url(AdminRouteConst::adminHomeIndex)?>">主面板</a></li>
|
|
<li>推广合作</li>
|
|
</ul>
|
|
</div>
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<h3 class="panel-title"><i class="glyphicon glyphicon-th-list"></i>推广合作列表</h3>
|
|
</div>
|
|
<div class="panel-body">
|
|
<div class="panel-body">
|
|
<?php if($errorMsg){?>
|
|
<p class="alert alert-danger">
|
|
<?php echo $errorMsg;?>
|
|
</p>
|
|
<?php }?>
|
|
<?php if($successMsg){?>
|
|
<p class="alert alert-success">
|
|
<?php echo $successMsg;?>
|
|
</p>
|
|
<?php }?>
|
|
<form class="form-inline" action="<?php echo Zc::url(AdminRouteConst::adminAffiliateAccountIndex)?>">
|
|
<div class="form-group">
|
|
<div class="input-group">
|
|
<div class="input-group-addon">合作机构</div>
|
|
<input class="form-control" type="text" name="companyName"
|
|
placeholder="合作机构" value="<?php echo Zc::sh($_GET['companyName']); ?>">
|
|
</div>
|
|
</div>
|
|
<div class="form-group ml_10">
|
|
<label>状态:</label>
|
|
<?php
|
|
echo ZcHtml::dropDownList('status', $_GET['status'], ['' => '全部', StatusConst::normal => '正常', StatusConst::pause => '禁用'], ['class' => 'form-control']);
|
|
?>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary ml_10">搜索</button>
|
|
</form>
|
|
|
|
<table class="table table-bordered table-striped table-hover" style="margin-top:20px;">
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>合作机构</th>
|
|
<th>账号</th>
|
|
<th>类型</th>
|
|
<th>专属链接</th>
|
|
<th>累计订单数</th>
|
|
<th>状态</th>
|
|
<th>创建时间</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php if (!empty($accountList)) { ?>
|
|
<?php foreach ($accountList as $account) { ?>
|
|
<tr>
|
|
<td><?php echo $account['affiliate_account_id']; ?></td>
|
|
<td><?php echo $account['company_name']; ?></td>
|
|
<td><?php echo $account['username']; ?></td>
|
|
<td><?php echo $account['type'] ==AffiliateConst::affiliateTypeCustom?'自定义':'普通'; ?></td>
|
|
<td><?php echo $account['affiliate_link']; ?></td>
|
|
<td><?php echo $account['app_order_count']; ?></td>
|
|
<td><?php echo $account['status'] == StatusConst::normal ? '正常':'禁用'; ?></td>
|
|
<td><?php echo $account['gmt_create']; ?></td>
|
|
<td>
|
|
<a href="<?php echo Zc::url(AdminRouteConst::adminAffiliateAccountEditAffiliateAccount, ['affiliate_account_id' => $account['affiliate_account_id']])?>" class="btn btn-danger btn-sm">编辑</a>
|
|
<a href="<?php echo Zc::url(AdminRouteConst::adminAffiliateAccountAppOrderIndex, ['affiliate_account_id' => $account['affiliate_account_id']])?>" class="btn btn-primary btn-sm">详情</a>
|
|
</td>
|
|
</tr>
|
|
<?php } ?>
|
|
<?php } else { ?>
|
|
<tr>
|
|
<td colspan="8" align="center">--没有符合条件结果--</td>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="pull-right mt_10"><?php echo $pagination->renderLinks(); ?></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php echo HtmlTool::getStaticCommonFile(array('biz/admin/affiliate_account.js'), TsConst::jsAffiliate);?>
|