135 lines
4.7 KiB
PHP
135 lines
4.7 KiB
PHP
<?php
|
||
defined('IN_MET') or exit ('No permission');
|
||
|
||
load::own_class('appadmin');
|
||
|
||
class table_on extends appadmin
|
||
{
|
||
|
||
// 表格标题
|
||
private $table_theme; // 等待完善
|
||
|
||
public function __construct()
|
||
{
|
||
global $_M, $_YW;
|
||
parent::__construct();
|
||
parent::appnav();
|
||
parent::point('table_off', 'doindex', 'table');
|
||
$this->table_theme = load::own_class('table_theme', 'new');
|
||
}
|
||
|
||
|
||
//输出模板内容
|
||
public function __destruct()
|
||
{
|
||
global $_M, $_YW;
|
||
if ($this->destruct) {
|
||
if (empty($this->appshow)) $this->appshow = 'app/' . $this->tname;
|
||
require $this->show($this->appshow, $this->input);
|
||
}
|
||
}
|
||
|
||
//广告位统计
|
||
public function doelevator()
|
||
{
|
||
global $_M, $_YW;
|
||
parent::appurl(parent::tname());
|
||
$this->input['table'] = $this->table_theme->start($this->tname)->send_all(1);
|
||
}
|
||
|
||
//场所统计
|
||
public function dovillage()
|
||
{
|
||
global $_M, $_YW;
|
||
parent::appurl(parent::tname());
|
||
$this->input['table'] = $this->table_theme->start($this->tname)->send_all(1);
|
||
}
|
||
|
||
//广告合同关联表
|
||
public function doschedule()
|
||
{
|
||
global $_M, $_YW;
|
||
parent::appurl(parent::tname());
|
||
$this->input['table'] = $this->table_theme->start($this->tname)->send_all();
|
||
}
|
||
|
||
//合同统计
|
||
public function docontract()
|
||
{
|
||
global $_M, $_YW;
|
||
parent::appurl(parent::tname());
|
||
$this->input['table'] = $this->table_theme->start($this->tname)->send_all();
|
||
}
|
||
|
||
//企业资料
|
||
public function docustomer()
|
||
{
|
||
global $_M, $_YW;
|
||
parent::appurl(parent::tname());
|
||
$this->input['table'] = $this->table_theme->start($this->tname)->send_all(1);
|
||
}
|
||
|
||
//企业联系人
|
||
public function doworkers()
|
||
{
|
||
global $_M, $_YW;
|
||
parent::appurl(parent::tname());
|
||
$this->input['table'] = $this->table_theme->start($this->tname)->send_all(1);
|
||
}
|
||
|
||
//投放计划单
|
||
public function dolaunch()
|
||
{
|
||
global $_M, $_YW;
|
||
parent::appurl(parent::tname());
|
||
$this->input['table'] = $this->table_theme->start($this->tname)->send_all(1);
|
||
}
|
||
|
||
//参数配置
|
||
public function dopara()
|
||
{
|
||
global $_M, $_YW;
|
||
parent::appurl(parent::tname());
|
||
$this->input['table'] = $this->table_theme->start($this->tname)->send_all();
|
||
}
|
||
|
||
// 场所统计
|
||
public function dovillages()
|
||
{
|
||
global $_M, $_YW;
|
||
parent::appurl(parent::tname());
|
||
$vs_daytime = date('Y-m-d', time());
|
||
$this->input['top']['tips'] = '
|
||
<div class="alert dark alert-primary radius0 m-b-5">
|
||
<p><mark>闲置个数、排期中的个数、到期个数、预排的个数计算说明</mark></p>
|
||
<ol>
|
||
<li>若选择时间区段,若两者缺少其中一个则自动补全为当天时间(<span class="tag tag-danger">' . $vs_daytime . '</span>)</li>
|
||
<li><span class="tag tag-danger">闲置:</span>默认计算当天(' . $vs_daytime . ')的广告位闲置个数,选择时间区段后,计算的可以满足时间区段的广告位个数。(<span class="tag tag-danger">仅计算启用的广告位</span>)</li>
|
||
<li><span class="tag tag-danger">排期中:</span>默认计算当天(' . $vs_daytime . ')排期中的个数,选择时间区段后,计算的在时间区段内有排期的广告位个数。</li>
|
||
<li><span class="tag tag-danger">到期:</span>默认以当天(' . $vs_daytime . ')为准,计算<span class="tag tag-danger">7</span>天后到期的个数,选择时间区段后,计算的在时间区段内到期的广告位个数。</li>
|
||
<li><span class="tag tag-danger">预排:</span>默认计算当天(' . $vs_daytime . ')以后才开始的排期广告位个数,选择时间区段后,计算的是时间区段内排期状态为预排的广告位个数。</li>
|
||
</ol>
|
||
</div>';
|
||
$this->input['table'] = $this->table_theme->start($this->tname)->send_all(1);
|
||
}
|
||
|
||
// 场所统计
|
||
public function doelevators()
|
||
{
|
||
global $_M, $_YW;
|
||
parent::appurl(parent::tname());
|
||
$this->input['table'] = $this->table_theme->start($this->tname)->send_all(1);
|
||
}
|
||
|
||
// 巡查密钥列表
|
||
public function dokeylist()
|
||
{
|
||
global $_M, $_YW;
|
||
parent::appurl(parent::tname());
|
||
$this->input['table'] = $this->table_theme->start($this->tname)->send_all();
|
||
}
|
||
|
||
|
||
}
|
||
|
||
?>
|