public function f() { $plugin_name = $this->get('ur'); $token = phpfox::getService('younetcore.core')->getToken($plugin_name); if (isset($token['m'])) { $token['title'] = phpfox::getLib('database')->select('title')->from(phpfox::getT('product'), 'p')->where('p.product_id = "' . $token['m'] . '"')->execute('getSlaveField'); } phpfox::getBlock('younetcore.form', array('token' => $token)); $this->html('#verify_lis', $this->getContent(false) . "<script>q();</script>"); }
public function shareReview() { $iUserId = $this->get('user'); phpfox::isUser(true); if ($iUserId != phpfox::getUserId()) { $this->call("<script>tb_remove();</script>"); return false; } $this->setTitle(Phpfox::getPhrase('reviewactivity.share_review_activities')); phpfox::getBlock('reviewactivity.reviewactivity', array()); }
public function check() { $aNotifications = phpfox::getService('livenotification.notification')->getNotifications(); if (!count($aNotifications)) { $this->call('LN.options.onCheck = false;'); return false; } $aIds = array(); foreach ($aNotifications as $aNotification) { $aIds[] = $aNotification['notification_id']; } phpfox::getBlock('livenotification.notifications', array('aNotifications' => $aNotifications)); $this->call('LN.attach("' . $this->getContent() . '", ' . json_encode($aIds) . ');'); }