* Finish task.

This commit is contained in:
zhouxudong
2022-08-09 09:43:34 +00:00
parent 6f8f9b52e9
commit 808d01aa17
6 changed files with 90 additions and 60 deletions
-17
View File
@@ -704,23 +704,6 @@ class program extends control
echo $html;
}
/**
* Ajax: Get childish information.
*
* @param int $programID
* @access public
* @return void
*/
public function ajaxGetChildInfo($programID)
{
$data = array();
$minChildBegin = $this->dao->select('begin as minBegin')->from(TABLE_PROGRAM)->where('id')->ne($programID)->andWhere('deleted')->eq(0)->andWhere('path')->like("%,{$programID},%")->orderBy('begin_asc')->fetch('minBegin');
$maxChildEnd = $this->dao->select('end as maxEnd')->from(TABLE_PROGRAM)->where('id')->ne($programID)->andWhere('deleted')->eq(0)->andWhere('path')->like("%,{$programID},%")->andWhere('end')->ne('0000-00-00')->orderBy('end_desc')->fetch('maxEnd');
$data = array('minChildBegin' => $minChildBegin, 'maxChildEnd' => $maxChildEnd);
echo json_encode($data);
}
/**
* Update program order.
*