* Finish task #39451.

This commit is contained in:
tianshujie98
2021-06-18 09:05:37 +08:00
parent a73d28f969
commit 53cf8a8b2a
2 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -68,9 +68,9 @@
}
else
{
$app = '';
if($action->objectType == 'meeting') $app = $action->project ? "data-app='project'" : "data-app='my'";
echo html::a($this->createLink($module, $methodName, $params), $action->objectName, '_self', "title={$action->objectName} $app");
$openApp = '';
if($action->objectType == 'meeting') $openApp = $action->project ? "data-app='project'" : "data-app='my'";
echo html::a($this->createLink($module, $methodName, $params), $action->objectName, '_self', "title={$action->objectName} $openApp");
}
?>
</td>
+4 -4
View File
@@ -1755,7 +1755,7 @@ class block extends control
$today = helper::today();
$now = date('H:i:s', strtotime(helper::now()));
$stmt = $this->dao->select('*')->from(TABLE_MEETING)
$meetings = $this->dao->select('*')->from(TABLE_MEETING)
->Where('deleted')->eq('0')
->andWhere('(date')->gt($today)
->orWhere('(begin')->gt($now)
@@ -1764,9 +1764,9 @@ class block extends control
->andwhere('(host')->eq($this->app->user->account)
->orWhere('participant')->in($this->app->user->account)
->markRight(1)
->orderBy('id_desc');
if(isset($params->meetingNum)) $stmt->limit($params->meetingNum);
$meetings = $stmt->fetchAll();
->orderBy('id_desc')
->beginIF(isset($params->meetingNum))->limit($params->meetingNum)
->fetchAll();
$count['meeting'] = count($meetings);
$this->view->meetings = $meetings;