当前位置: 首页>>代码示例>>PHP>>正文


PHP acymailing_getCID函数代码示例

本文整理汇总了PHP中acymailing_getCID函数的典型用法代码示例。如果您正苦于以下问题:PHP acymailing_getCID函数的具体用法?PHP acymailing_getCID怎么用?PHP acymailing_getCID使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了acymailing_getCID函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: saveForm

 function saveForm()
 {
     $rule = new stdClass();
     $rule->ruleid = acymailing_getCID('ruleid');
     if (empty($rule->ruleid)) {
         $this->database->setQuery('SELECT max(ordering) FROM `#__acymailing_rules`');
         $rule->ordering = intval($this->database->loadResult()) + 1;
     }
     $rule->executed_on = '';
     $rule->action_message = '';
     $rule->action_user = '';
     $formData = JRequest::getVar('data', array(), '', 'array');
     foreach ($formData['rule'] as $column => $value) {
         acymailing_secureField($column);
         if (is_array($value)) {
             $rule->{$column} = serialize($value);
         } else {
             $rule->{$column} = strip_tags($value);
         }
     }
     $ruleid = $this->save($rule);
     if (!$ruleid) {
         return false;
     }
     JRequest::setVar('ruleid', $ruleid);
     return true;
 }
开发者ID:sumithMadhushan,项目名称:joomla-project,代码行数:27,代码来源:rules.php

示例2: saveForm

 function saveForm()
 {
     $app = JFactory::getApplication();
     $template = new stdClass();
     $template->tempid = acymailing_getCID('tempid');
     $formData = JRequest::getVar('data', array(), '', 'array');
     foreach ($formData['template'] as $column => $value) {
         acymailing_secureField($column);
         $template->{$column} = strip_tags($value);
     }
     $styles = JRequest::getVar('styles', array(), '', 'array');
     foreach ($styles as $class => $oneStyle) {
         $styles[$class] = str_replace('"', "'", $oneStyle);
         if (empty($oneStyle)) {
             unset($styles[$class]);
         }
     }
     $newStyles = JRequest::getVar('otherstyles', array(), '', 'array');
     if (!empty($newStyles)) {
         foreach ($newStyles['classname'] as $id => $className) {
             if (!empty($className) and $className != JText::_('CLASS_NAME') and !empty($newStyles['style'][$id]) and $newStyles['style'][$id] != JText::_('CSS_STYLE')) {
                 $className = str_replace(array(',', ' ', ':', '.', '#'), '', $className);
                 $styles[$className] = str_replace('"', "'", $newStyles['style'][$id]);
             }
         }
     }
     $template->styles = serialize($styles);
     $template->body = JRequest::getVar('editor_body', '', '', 'string', JREQUEST_ALLOWRAW);
     if (!empty($styles['color_bg'])) {
         $pat1 = '#^([^<]*<[^>]*background-color:)([^;">]{1,30})#i';
         $found = false;
         if (preg_match($pat1, $template->body)) {
             $template->body = preg_replace($pat1, '$1' . $styles['color_bg'], $template->body);
             $found = true;
         }
         $pat2 = '#^([^<]*<[^>]*bgcolor=")([^;">]{1,10})#i';
         if (preg_match($pat2, $template->body)) {
             $template->body = preg_replace($pat2, '$1' . $styles['color_bg'], $template->body);
             $found = true;
         }
         if (!$found) {
             $template->body = '<div style="background-color:' . $styles['color_bg'] . ';" width="100%">' . $template->body . '</div>';
         }
     }
     $acypluginsHelper = acymailing_get('helper.acyplugins');
     $acypluginsHelper->cleanHtml($template->body);
     $template->description = JRequest::getVar('editor_description', '', '', 'string', JREQUEST_ALLOWRAW);
     $tempid = $this->save($template);
     if (!$tempid) {
         return false;
     }
     if (empty($template->tempid)) {
         $orderClass = acymailing_get('helper.order');
         $orderClass->pkey = 'tempid';
         $orderClass->table = 'template';
         $orderClass->reOrder();
     }
     JRequest::setVar('tempid', $tempid);
     return true;
 }
开发者ID:alesconti,项目名称:FF_2015,代码行数:60,代码来源:template.php

示例3: saveForm

 function saveForm()
 {
     $app = JFactory::getApplication();
     $action = new stdClass();
     $action->action_id = acymailing_getCID('action_id');
     $formData = JRequest::getVar('data', array(), '', 'array');
     foreach ($formData['action'] as $column => $value) {
         if ($app->isAdmin() || $this->allowedField('action', $column)) {
             acymailing_secureField($column);
             $action->{$column} = strip_tags($value);
         }
     }
     if (empty($action->action_id)) {
         $action->nextdate = time() + intval($action->frequency);
     }
     if ($action->password == '********') {
         unset($action->password);
     }
     $action->conditions = json_encode($formData['conditions']);
     $action->actions = json_encode($formData['actions']);
     if (isset($action->published) && $action->published != 1) {
         $action->published = 0;
     }
     $action_id = $this->save($action);
     if (!$action_id) {
         return false;
     }
     JRequest::setVar('action_id', $action_id);
     return true;
 }
开发者ID:brenot,项目名称:forumdesenvolvimento,代码行数:30,代码来源:action.php

示例4: continuesend

 function continuesend()
 {
     $config = acymailing_config();
     if (acymailing_level(1) && $config->get('queue_type') == 'onlyauto') {
         JRequest::setVar('tmpl', 'component');
         acymailing_display(JText::_('ACY_ONLYAUTOPROCESS'), 'warning');
         return;
     }
     $newcrontime = time() + 120;
     if ($config->get('cron_next') < $newcrontime) {
         $newValue = new stdClass();
         $newValue->cron_next = $newcrontime;
         $config->save($newValue);
     }
     $mailid = acymailing_getCID('mailid');
     $totalSend = JRequest::getVar('totalsend', 0, '', 'int');
     $alreadySent = JRequest::getVar('alreadysent', 0, '', 'int');
     $helperQueue = acymailing_get('helper.queue');
     $helperQueue->mailid = $mailid;
     $helperQueue->report = true;
     $helperQueue->total = $totalSend;
     $helperQueue->start = $alreadySent;
     $helperQueue->pause = $config->get('queue_pause');
     $helperQueue->process();
     JRequest::setVar('tmpl', 'component');
 }
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:26,代码来源:send.php

示例5: view

 function view()
 {
     $mailid = acymailing_getCID('mailid');
     if (empty($mailid)) {
         $db =& JFactory::getDBO();
         $query = 'SELECT m.`mailid` FROM `#__acymailing_list` as l LEFT JOIN `#__acymailing_listmail` as lm ON l.listid=lm.listid LEFT JOIN `#__acymailing_mail` as m on lm.mailid = m.mailid';
         $query .= ' WHERE l.`visible` = 1 AND l.`published` = 1 AND m.`visible`= 1 AND m.`published` = 1';
         if (!empty($listid)) {
             $query .= ' AND l.`listid` = ' . (int) $listid;
         }
         $query .= ' ORDER BY m.`mailid` DESC LIMIT 1';
         $db->setQuery($query);
         $mailid = $db->loadResult();
         if (empty($mailid)) {
             return JError::raiseError(404, 'Newsletter not found');
         }
     }
     $access_sub = true;
     $mailClass = acymailing_get('helper.mailer');
     $mailClass->loadedToSend = false;
     $oneMail = $mailClass->load($mailid);
     if (empty($oneMail->mailid)) {
         return JError::raiseError(404, 'Newsletter not found : ' . $mailid);
     }
     if (!$access_sub or !$oneMail->published or !$oneMail->visible) {
         $key = JRequest::getString('key');
         if (empty($key) or $key !== $oneMail->key) {
             $app = JFactory::getApplication();
             $app->enqueueMessage('You can not have access to this e-mail', 'error');
             $app->redirect(acymailing_completeLink('lists', false, true));
             return false;
         }
     }
     $user = JFactory::getUser();
     if (!empty($user->email)) {
         $userClass = acymailing_get('class.subscriber');
         $receiver = $userClass->get($user->email);
     } else {
         $receiver = new stdClass();
         $receiver->name = JText::_('VISITOR');
     }
     $oneMail->sendHTML = true;
     $mailClass->dispatcher->trigger('acymailing_replaceusertags', array(&$oneMail, &$receiver, false));
     $document = JFactory::getDocument();
     $document->setTitle($oneMail->subject);
     if (!empty($oneMail->text)) {
         echo nl2br($mailClass->textVersion($oneMail->text, false));
     } else {
         echo nl2br($mailClass->textVersion($oneMail->body, true));
     }
 }
开发者ID:alesconti,项目名称:FF_2015,代码行数:51,代码来源:view.pdf.php

示例6: saveForm

 function saveForm()
 {
     $app = JFactory::getApplication();
     $list = new stdClass();
     $list->listid = acymailing_getCID('listid');
     $formData = JRequest::getVar('data', array(), '', 'array');
     if (!empty($formData['list']['category']) && $formData['list']['category'] == -1) {
         $formData['list']['category'] = JRequest::getString('newcategory', '');
     }
     foreach ($formData['list'] as $column => $value) {
         if ($app->isAdmin() || $this->allowedField('list', $column)) {
             acymailing_secureField($column);
             $list->{$column} = strip_tags($value);
         }
     }
     $list->description = JRequest::getVar('editor_description', '', '', 'string', JREQUEST_ALLOWHTML);
     if (isset($list->published) && $list->published != 1) {
         $list->published = 0;
     }
     $listid = $this->save($list);
     if (!$listid) {
         return false;
     }
     if (empty($list->listid)) {
         $orderClass = acymailing_get('helper.order');
         $orderClass->pkey = 'listid';
         $orderClass->table = 'list';
         $orderClass->groupMap = 'type';
         $orderClass->groupVal = empty($list->type) ? $this->type : $list->type;
         $orderClass->reOrder();
         $this->newlist = true;
     }
     if (!empty($formData['listcampaign'])) {
         $affectedLists = array();
         foreach ($formData['listcampaign'] as $affectlistid => $receiveme) {
             if (!empty($receiveme)) {
                 $affectedLists[] = $affectlistid;
             }
         }
         $listCampaignClass = acymailing_get('class.listcampaign');
         $listCampaignClass->save($listid, $affectedLists);
     }
     JRequest::setVar('listid', $listid);
     return true;
 }
开发者ID:Roma48,项目名称:abazherka,代码行数:45,代码来源:list.php

示例7: sendconfirm

 function sendconfirm()
 {
     $mailid = acymailing_getCID('mailid');
     $mailClass = acymailing_get('class.mail');
     $listmailClass = acymailing_get('class.listmail');
     $queueClass = acymailing_get('class.queue');
     $mail = $mailClass->get($mailid);
     $values = new stdClass();
     $values->nbqueue = $queueClass->nbQueue($mailid);
     if (empty($values->nbqueue)) {
         $lists = $listmailClass->getReceivers($mailid);
         $this->assignRef('lists', $lists);
         $db = JFactory::getDBO();
         $db->setQuery('SELECT count(subid) FROM `#__acymailing_userstats` WHERE `mailid` = ' . intval($mailid));
         $values->alreadySent = $db->loadResult();
     }
     $this->assignRef('values', $values);
     $this->assignRef('mail', $mail);
 }
开发者ID:Roma48,项目名称:abazherka,代码行数:19,代码来源:view.html.php

示例8: continuesend

 function continuesend()
 {
     $config = acymailing_config();
     $newcrontime = time() + 120;
     if ($config->get('cron_next') < $newcrontime) {
         $newValue = new stdClass();
         $newValue->cron_next = $newcrontime;
         $config->save($newValue);
     }
     $mailid = acymailing_getCID('mailid');
     $totalSend = JRequest::getVar('totalsend', 0, '', 'int');
     $alreadySent = JRequest::getVar('alreadysent', 0, '', 'int');
     $helperQueue = acymailing_get('helper.queue');
     $helperQueue->mailid = $mailid;
     $helperQueue->report = true;
     $helperQueue->total = $totalSend;
     $helperQueue->start = $alreadySent;
     $helperQueue->pause = $config->get('queue_pause');
     $helperQueue->process();
 }
开发者ID:alesconti,项目名称:FF_2015,代码行数:20,代码来源:send.php

示例9: store

 function store()
 {
     JRequest::checkToken() or die('Invalid Token');
     $oldMailid = acymailing_getCID('mailid');
     $mailClass = acymailing_get('class.mail');
     if ($mailClass->saveForm()) {
         $data = JRequest::getVar('data');
         $type = @$data['mail']['type'];
         if (!empty($type) and in_array($type, array('unsub', 'welcome'))) {
             $subject = addslashes($data['mail']['subject']);
             $mailid = JRequest::getInt('mailid');
             if ($type == 'unsub') {
                 $js = "var mydrop = window.top.document.getElementById('datalistunsubmailid'); ";
                 $js .= "var type = 'unsub';";
             } else {
                 //type=welcome
                 $js = "var mydrop = window.top.document.getElementById('datalistwelmailid'); ";
                 $js .= "var type = 'welcome';";
             }
             if (empty($oldMailid)) {
                 $js .= 'var optn = document.createElement("OPTION");';
                 $js .= "optn.text = '[{$mailid}] {$subject}'; optn.value = '{$mailid}';";
                 $js .= 'mydrop.options.add(optn);';
                 $js .= 'lastid = 0; while(mydrop.options[lastid+1]){lastid = lastid+1;} mydrop.selectedIndex = lastid;';
                 $js .= 'window.top.changeMessage(type,' . $mailid . ');';
             } else {
                 $js .= "lastid = 0; notfound = true; while(notfound && mydrop.options[lastid]){if(mydrop.options[lastid].value == {$mailid}){mydrop.options[lastid].text = '[{$mailid}] {$subject}';notfound = false;} lastid = lastid+1;}";
             }
             if (ACYMAILING_J30) {
                 $js .= 'window.top.jQuery("#datalist' . ($type == 'unsub' ? 'unsub' : 'wel') . 'mailid").trigger("liszt:updated");';
             }
             $doc = JFactory::getDocument();
             $doc->addScriptDeclaration($js);
         }
         acymailing_display(JText::_('JOOMEXT_SUCC_SAVED'), 'success');
     } else {
         acymailing_display(JText::_('ERROR_SAVING'), 'error');
     }
 }
开发者ID:educakanchay,项目名称:educared,代码行数:39,代码来源:email.php

示例10: scheduleconfirm

	function scheduleconfirm(){
		$this->chosen = false;

		$mailid = acymailing_getCID('mailid');
		$listmailClass = acymailing_get('class.listmail');
		$mailClass = acymailing_get('class.mail');

		$listHours = array();
		$listMinutess = array();
		$defaultMinutes = floor(acymailing_getDate(time(),'%M')/5)*5;
		$defaultHours = acymailing_getDate(time(),'%H');

		for($i=0; $i<24; $i++){ $listHours[] = JHTML::_('select.option', $i, ($i<10?'0'.$i:$i)); }
		$hours = JHTML::_('select.genericlist',   $listHours, 'sendhours', 'class="inputbox" size="1" style="width:60px;"', 'value', 'text', $defaultHours);
		for($i=0; $i<60; $i+=5){ $listMinutess[] = JHTML::_('select.option', $i, ($i<10?'0'.$i:$i)); }
		$minutes = JHTML::_('select.genericlist',   $listMinutess, 'sendminutes', 'class="inputbox" size="1" style="width:60px;"', 'value', 'text', $defaultMinutes);

		$this->assign('lists',$listmailClass->getReceivers($mailid));
		$this->assign('mail',$mailClass->get($mailid));
		$this->assign('hours', $hours);
		$this->assign('minutes', $minutes);
	}
开发者ID:utopszkij,项目名称:lmp,代码行数:22,代码来源:view.html.php

示例11: saveForm

 function saveForm()
 {
     $app = JFactory::getApplication();
     $config =& acymailing_config();
     $mail = new stdClass();
     $mail->mailid = acymailing_getCID('mailid');
     $formData = JRequest::getVar('data', array(), '', 'array');
     if (!empty($formData['mail']['subject'])) {
         $formData['mail']['subject'] = str_replace(chr(226) . chr(128) . chr(168), '', $formData['mail']['subject']);
     }
     foreach ($formData['mail'] as $column => $value) {
         if (!$app->isAdmin() && !in_array($column, $this->allowedFields)) {
             continue;
         }
         acymailing_secureField($column);
         if (in_array($column, array('params', 'summary'))) {
             $mail->{$column} = $value;
         } else {
             $mail->{$column} = strip_tags($value, '<ADV>');
         }
     }
     $mail->body = JRequest::getVar('editor_body', '', '', 'string', JREQUEST_ALLOWRAW);
     if (ACYMAILING_J25) {
         $mail->body = JComponentHelper::filterText($mail->body);
     }
     $acypluginsHelper = acymailing_get('helper.acyplugins');
     $acypluginsHelper->cleanHtml($mail->body);
     $mail->attach = array();
     $attachments = JRequest::getVar('attachments', array(), '', 'array');
     if (!empty($attachments)) {
         foreach ($attachments as $id => $filepath) {
             if (empty($filepath)) {
                 continue;
             }
             $attachment = new stdClass();
             $attachment->filename = strtolower($filepath);
             $attachment->size = filesize(JPATH_SITE . '/' . $filepath);
             $extension = substr($attachment->filename, strrpos($attachment->filename, '.'));
             if (preg_match('#\\.(php.?|.?htm.?|pl|py|jsp|asp|sh|cgi)#Ui', $attachment->filename)) {
                 acymailing_enqueueMessage(JText::sprintf('ACCEPTED_TYPE', substr($attachment->filename, strrpos($attachment->filename, '.') + 1), $config->get('allowedfiles')), 'notice');
                 continue;
             }
             $attachment->filename = str_replace(array('.', ' '), '_', substr($attachment->filename, 0, strpos($attachment->filename, $extension))) . $extension;
             $mail->attach[] = $attachment;
         }
     }
     if (isset($mail->filter)) {
         $mail->filter = array();
         $filterData = JRequest::getVar('filter');
         foreach ($filterData['type'] as $num => $oneType) {
             if (empty($oneType)) {
                 continue;
             }
             $mail->filter['type'][$num] = $oneType;
             $mail->filter[$num][$oneType] = $filterData[$num][$oneType];
         }
     }
     $toggleHelper = acymailing_get('helper.toggle');
     if (!empty($mail->type) && $mail->type == 'followup' && !empty($mail->mailid)) {
         $oldMail = $this->get($mail->mailid);
         if (!empty($mail->published) and !$oldMail->published) {
             $this->_publishfollowup($mail);
         }
         if ($oldMail->senddate != $mail->senddate) {
             $text = JText::_('FOLLOWUP_CHANGED_DELAY_INFORMED');
             $text .= ' ' . $toggleHelper->toggleText('update', $mail->mailid, 'followup', JText::_('FOLLOWUP_CHANGED_DELAY'));
             acymailing_enqueueMessage($text, 'notice');
         }
     }
     if (preg_match('#<a[^>]*subid=[0-9].*</a>#Uis', $mail->body, $pregResult)) {
         acymailing_enqueueMessage('There is a personal link in your Newsletter ( ' . $pregResult[0] . ' ) instead of a tag...<br />Please make sure to not copy/paste the link you received in your e-mail as it may break your unsubscribe or confirmation links.<br />Use our tags instead!', 'notice');
     }
     if (empty($mail->thumb)) {
         unset($mail->thumb);
     } elseif ($mail->thumb == 'delete') {
         $mail->thumb = '';
     }
     $mailid = $this->save($mail);
     if (!$mailid) {
         return false;
     }
     JRequest::setVar('mailid', $mailid);
     $status = true;
     if (!empty($formData['listmail'])) {
         $receivers = array();
         $remove = array();
         foreach ($formData['listmail'] as $listid => $receiveme) {
             if (!empty($receiveme)) {
                 $receivers[] = $listid;
             } else {
                 $remove[] = $listid;
             }
         }
         $listMailClass = acymailing_get('class.listmail');
         $status = $listMailClass->save($mailid, $receivers, $remove);
     }
     if (!empty($mail->type) && $mail->type == 'followup' && empty($mail->mailid) && !empty($mail->published)) {
         $mail->mailid = $mailid;
         $this->_publishfollowup($mail);
     }
//.........这里部分代码省略.........
开发者ID:proyectoseb,项目名称:ShoppyStore,代码行数:101,代码来源:mail.php

示例12: saveastmpl

 function saveastmpl()
 {
     $tmplClass = acymailing_get('class.template');
     $newTmpl = new stdClass();
     $formData = JRequest::getVar('data', array(), '', 'array');
     if (!empty($formData['mail']['tempid'])) {
         $template = $tmplClass->get($formData['mail']['tempid']);
         $newTmpl->styles = $template->styles;
         $newTmpl->stylesheet = $template->stylesheet;
         $newTmpl->category = $template->category;
     }
     if (!empty($formData['mail']['subject'])) {
         $formData['mail']['subject'] = str_replace(chr(226) . chr(128) . chr(168), '', $formData['mail']['subject']);
         $newTmpl->subject = strip_tags($formData['mail']['subject']);
         $newTmpl->name = strip_tags($formData['mail']['subject']);
     }
     $newTmpl->body = JRequest::getVar('editor_body', '', '', 'string', JREQUEST_ALLOWRAW);
     if (ACYMAILING_J25) {
         $newTmpl->body = JComponentHelper::filterText($newTmpl->body);
     }
     $acypluginsHelper = acymailing_get('helper.acyplugins');
     $acypluginsHelper->cleanHtml($newTmpl->body);
     if (!empty($formData['mail']['thumb']) && $formData['mail']['thumb'] == 'delete') {
         $newTmpl->thumb = null;
     } elseif (!empty($formData['mail']['thumb'])) {
         $newTmpl->thumb = strip_tags($formData['mail']['thumb']);
     } else {
         $mailid = acymailing_getCID('mailid');
         if (!empty($mailid)) {
             $mail = $this->get($mailid);
             $newTmpl->thumb = $mail->thumb;
         }
     }
     if (!empty($formData['mail']['altbody'])) {
         $newTmpl->altbody = strip_tags($formData['mail']['altbody']);
     }
     if (!empty($formData['mail']['fromname'])) {
         $newTmpl->fromname = strip_tags($formData['mail']['fromname']);
     }
     if (!empty($formData['mail']['fromemail'])) {
         $newTmpl->fromemail = strip_tags($formData['mail']['fromemail']);
     }
     if (!empty($formData['mail']['replyname'])) {
         $newTmpl->replyname = strip_tags($formData['mail']['replyname']);
     }
     if (!empty($formData['mail']['replyemail'])) {
         $newTmpl->replyemail = strip_tags($formData['mail']['replyemail']);
     }
     if (!empty($formData['mail']['summary'])) {
         $newTmpl->description = strip_tags($formData['mail']['summary']);
     }
     $newTmpl->ordering = 1;
     $tempid = $tmplClass->save($newTmpl);
     if (!empty($tempid)) {
         $formData['mail']['tempid'] = $tempid;
         acymailing_enqueueMessage(JText::_('ACY_SAVEASTMPL_VALID'), 'message');
     } else {
         acymailing_enqueueMessage(JText::_('ERROR_SAVING'), 'error');
     }
     return true;
 }
开发者ID:brenot,项目名称:forumdesenvolvimento,代码行数:61,代码来源:mail.php

示例13: form

    function form()
    {
        $listid = acymailing_getCID('listid');
        $listClass = acymailing_get('class.list');
        if (!empty($listid)) {
            $list = $listClass->get($listid);
            if (empty($list->listid)) {
                acymailing_display('List ' . $listid . ' not found', 'error');
                $listid = 0;
            }
        }
        if (empty($listid)) {
            $list = new stdClass();
            $list->visible = 1;
            $list->description = '';
            $list->category = '';
            $list->published = 1;
            $user = JFactory::getUser();
            $list->creatorname = $user->name;
            $list->access_manage = 'none';
            $list->access_sub = 'all';
            $list->languages = 'all';
            $colors = array('#3366ff', '#7240A4', '#7A157D', '#157D69', '#ECE649');
            $list->color = $colors[rand(0, count($colors) - 1)];
        }
        $editor = acymailing_get('helper.editor');
        $editor->name = 'editor_description';
        $editor->content = $list->description;
        $editor->setDescription();
        if (!ACYMAILING_J16) {
            $script = 'function submitbutton(pressbutton){
						if (pressbutton == \'cancel\') {
							submitform( pressbutton );
							return;
						}';
        } else {
            $script = 'Joomla.submitbutton = function(pressbutton) {
						if (pressbutton == \'cancel\') {
							Joomla.submitform(pressbutton,document.adminForm);
							return;
						}';
        }
        $script .= 'if(window.document.getElementById("name").value.length < 2){alert(\'' . JText::_('ENTER_TITLE', true) . '\'); return false;}';
        $script .= $editor->jsCode();
        if (!ACYMAILING_J16) {
            $script .= 'submitform( pressbutton );}';
        } else {
            $script .= 'Joomla.submitform(pressbutton,document.adminForm);}; ';
        }
        $script .= 'function affectUser(idcreator,name,email){
			window.document.getElementById("creatorname").innerHTML = name;
			window.document.getElementById("listcreator").value = idcreator;
		}';
        $doc = JFactory::getDocument();
        $doc->addScriptDeclaration($script);
        $colorBox = acymailing_get('type.color');
        acymailing_setTitle(JText::_('LIST'), 'acylist', 'list&task=edit&listid=' . $listid);
        $bar = JToolBar::getInstance('toolbar');
        JToolBarHelper::save();
        JToolBarHelper::apply();
        JToolBarHelper::cancel();
        JToolBarHelper::divider();
        $bar->appendButton('Pophelp', 'list-form');
        $this->assignRef('colorBox', $colorBox);
        if (acymailing_level(1)) {
            $this->assign('welcomeMsg', acymailing_get('type.welcome'));
            $this->assign('languages', acymailing_get('type.listslanguages'));
        }
        $unsubMsg = acymailing_get('type.unsub');
        $this->assignRef('unsubMsg', $unsubMsg);
        $this->assignRef('list', $list);
        $this->assignRef('editor', $editor);
    }
开发者ID:educakanchay,项目名称:educared,代码行数:73,代码来源:view.html.php

示例14: form

	function form(){
		$urlid = acymailing_getCID('urlid');
		$urlClass = acymailing_get('class.url');
		$this->assign('url',$urlClass->get($urlid));
	}
开发者ID:utopszkij,项目名称:lmp,代码行数:5,代码来源:view.html.php

示例15: process

 function process()
 {
     $mailid = acymailing_getCID('mailid');
     $queueClass = acymailing_get('class.queue');
     $queueStatus = $queueClass->queueStatus($mailid);
     $nextqueue = $queueClass->queueStatus($mailid, true);
     if (acymailing_level(1)) {
         $scheduleClass = acymailing_get('helper.schedule');
         $scheduleNewsletter = $scheduleClass->getScheduled();
         $this->assignRef('schedNews', $scheduleNewsletter);
     }
     if (empty($queueStatus) and empty($scheduleNewsletter)) {
         acymailing_display(JText::_('NO_PROCESS'), 'info');
     }
     $infos = new stdClass();
     $infos->mailid = $mailid;
     $this->assignRef('queue', $queueStatus);
     $this->assignRef('nextqueue', $nextqueue);
     $this->assignRef('infos', $infos);
 }
开发者ID:ForAEdesWeb,项目名称:AEW4,代码行数:20,代码来源:view.html.php


注:本文中的acymailing_getCID函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。