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


PHP getEmails函数代码示例

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


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

示例1: generateCronOutput

function generateCronOutput()
{
    $handlerCommonCore = new \CommonCore();
    // Armar Wrapper HTML
    echo $handlerCommonCore->getPageHeaderHtml("Lector de Correos - Recepción de facturas XML");
    // Armar sección de prerequisitos
    $html = '   <header id="header" class="container">
                    <h1><span class="awe-envelope"></span> Lector de Correos - Recepción de facturas XML</h1>
                    <p>' . date("Y") . '</p>
                </header>
                <section class="container">
                    <div class="content-block">
                        <div class="row">
                            

                            <article class="data-block decent" style="margin-left: 0px;">
                                <div class="data-container" style="padding: 10px;">
                                    
                                    <header>
                                        <h2><span class="awe-check"></span> Prerequisitos</h2>
                                    </header>

                                    <section style="margin: 0px;">
                                        <table class="table table-condensed table-striped">';
    $validArray = checkPrereqs();
    $html .= $validArray["html"];
    $html .= '                          </table>
                                    </section>
                                </div>
                            </article>';
    // Armar sección para cada dirección de mail registrada
    // Solo si se cumplen los prerequisitos
    if ($validArray["status"]) {
        //Tomar todas las direcciones de correo registradas
        $mailsString = FlowSettingsCore::get(FLOW_RECEPCIONDOCUMENTOS, "RDE_MC_MAILS");
        if ($mailsString != "") {
            $mails = explode(",", $mailsString);
            foreach ($mails as $mail) {
                $mail = explode("|", $mail);
                $mail = array("ruc" => $mail[0], "servidor" => $mail[1], "usuario" => $mail[2], "password" => $mail[3]);
                $html .= '  <article class="data-block decent" style="margin-left: 0px;">
                                <div class="data-container" style="padding: 10px;">
                                    
                                    <header>
                                        <h2><span class="awe-check"></span> Correos para RUC: ' . $mail["ruc"] . '</h2>
                                    </header>

                                    <section style="margin: 0px;">';
                $validArray = openMailbox($mail["servidor"], $mail["usuario"], $mail["password"]);
                // Abrir dirección de correo
                $inbox = $validArray["status"];
                $html .= $validArray["html"];
                if ($inbox) {
                    $validArray = getEmails($inbox, $mail["ruc"]);
                    // Seleccionar e-mails nuevos
                    $emails = $validArray["status"];
                    $html .= $validArray["html"];
                    if (count($emails) > 0) {
                        $validArray = processAllEmails($inbox, $emails, $mail["ruc"]);
                        // Procesar todos los e-mails
                        $html .= $validArray["html"];
                        imap_close($inbox, CL_EXPUNGE);
                        $html .= '<strong>Estado:</strong> Conexión cerrada exitosamente <br />';
                    }
                }
                $html .= '          </section>
                                </div>
                            </article>';
            }
        } else {
            $html .= '<strong>AVISO:</strong> No existen datos de RUC parametrizados. Por favor configure la variable de proceso RDE_MC_MAILS';
        }
    }
    // Armar sección para archivos locales
    $html .= '  <article class="data-block decent" style="margin-left: 0px;">
                            <div class="data-container" style="padding: 10px;">
                                
                                <header>
                                    <h2><span class="awe-check"></span> Archivos locales:</h2>
                                </header>

                                <section style="margin: 0px;">';
    //Verificar si hay archivos locales en carpeta IN
    $inDirectory = FlowSettingsCore::get(FLOW_RECEPCIONDOCUMENTOS, "RDE_FILES_IN_PATH");
    $files = array_diff(scandir($inDirectory), array('..', '.'));
    if (count($files) > 0) {
        $validArray = processAllLocalFiles($files);
        $html .= $validArray["html"];
    } else {
        $html .= '<strong>AVISO:</strong> No existen archivos locales';
    }
    $html .= '                  </section>
                            </div>
                        </article>';
    $html .= '          </div>
                    </div>
                </section>';
    echo $html;
}
开发者ID:elcuy,项目名称:Novopan,代码行数:99,代码来源:JobDocElecMailChecker.php

示例2: writeEmailsToDB

 /**
  * @desc Searches Twitter.com For Email Adresses and Returns Them
  * @param null
  * @since 08.11.2009
  * @acces public 
  * @author  Faruk Yagbasan <wyde16@gmail.com>
  * @return  Null
  */
 public function writeEmailsToDB()
 {
     $this->initDB();
     $emails[] = getEmails($max_pages = 3);
     // no need to put dublicates out db field is unique
     $array_iter = new RecursiveArrayIterator($emails);
     $iter_iter = new RecursiveIteratorIterator($array_iter);
     foreach ($iter_iter as $email) {
         //hmm .. this part of code is genius written by faruk
         !empty($email) ? $this->emailValidator->check_email_address($email) : ($adresse['email'] = $email);
         // finaly we have a valid adress so put in to the db
         !$this->db->query_insert('emails', $adresse) ? $this->logger->error('ERROR on Insert Email : ' . $email . ' To DB') : $this->logger->error('Something is Wrong');
     }
     //some clen up
     unset($iter_iter);
     unset($array_iter);
     unset($emails);
 }
开发者ID:streetparade,项目名称:Twitter-Bot,代码行数:26,代码来源:twitter-bot.php

示例3: MQL

$query = new MQL();
$estatus = parametro("estado", SYS_TODAS);
$frecuencia = parametro("periocidad", SYS_TODAS);
$producto = parametro("convenio", SYS_TODAS);
$producto = parametro("producto", $producto);
$empresa = parametro("empresa", SYS_TODAS);
$sucursal = parametro("sucursal", SYS_TODAS, MQL_RAW);
$out = parametro("out", SYS_DEFAULT);
$FechaInicial = parametro("on", false);
$FechaInicial = parametro("fecha-0", $FechaInicial);
$FechaInicial = $FechaInicial == false ? FECHA_INICIO_OPERACIONES_SISTEMA : $xF->getFechaISO($FechaInicial);
$FechaFinal = parametro("off", false);
$FechaFinal = parametro("fecha-1", $FechaFinal);
$FechaFinal = $FechaFinal == false ? fechasys() : $xF->getFechaISO($FechaFinal);
$jsEvent = $out != OUT_EXCEL ? "initComponents()" : "";
$senders = getEmails($_REQUEST);
$xODat = new cPersonasCatalogoOtrosDatos();
$sql = "SELECT\r\n\t`socios`.`codigo`,\r\n\t`socios`.`nombre`,\r\n\t`socios_otros_parametros`.`clave_del_parametro` \r\nFROM\r\n\t`socios_otros_parametros` `socios_otros_parametros` \r\n\t\tINNER JOIN `socios` `socios` \r\n\t\tON `socios_otros_parametros`.`clave_de_persona` = `socios`.`codigo` \r\nWHERE\r\n\t(`socios_otros_parametros`.`clave_del_parametro` ='" . $xODat->AML_PEP_PRINCIPAL . "')\r\n\t\t\tOR\r\n\t(`socios_otros_parametros`.`clave_del_parametro` ='" . $xODat->AML_PEP_AFINIDAD . "')\t\t\t\r\n\tOR\r\n(`socios_otros_parametros`.`clave_del_parametro` ='" . $xODat->AML_PEP_CONSANGUINIDAD . "')\t\t\t\r\n\t\tOR\r\n(`socios_otros_parametros`.`clave_del_parametro` ='" . $xODat->AML_PEP_VINCULO_ECONOM . "')\t";
$titulo = "";
$archivo = "";
$xRPT = new cReportes($titulo);
$xRPT->setFile($archivo);
$xRPT->setOut($out);
$xRPT->setSQL($sql);
$xRPT->setTitle($xHP->getTitle());
//============ Reporte
$xT = new cTabla($sql, 1);
$xT->setTipoSalida($out);
$body = $xRPT->getEncabezado($xHP->getTitle(), $FechaInicial, $FechaFinal);
$xRPT->setBodyMail($body);
$xRPT->addContent($body);
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:personas-pep.rpt.php

示例4: getEmails

     if ($_SESSION['level'] != 'admin') {
         $sql .= " AND `added_by` = '" . $_SESSION['UA_DETAILS']['randid'] . "'";
     }
     if ($db->query($sql)) {
         $_SESSION['ERROR']['type'] = 'Done';
         $_SESSION['ERROR']['reason'] = "Question #" . $_GET['qid'] . " Deleted from the System.";
     } else {
         $_SESSION['ERROR']['type'] = 'Error';
         $_SESSION['ERROR']['reason'] = "Unable to delete the specified Question.Please Try again.";
     }
 }
 // Contact Admin
 if ($_GET['subaction'] == 'caadmin' && !empty($_POST['ca_subject']) && !empty($_POST['ca_message'])) {
     if ($auth->checkCaptcha($_POST['captcha_code'])) {
         $data['UA_DETAILS'] = $_SESSION['UA_DETAILS'];
         $data['ADMINS'] = getEmails($db, 'admin');
         $data['SUBJECT'] = $_POST['ca_subject'];
         $data['MESSAGE'] = $_POST['ca_message'];
         $data['MDEMAIL'] = 'md@trdc.in';
         $data['SITETITLE'] = SITENAME;
         $data['SITELINK'] = SITE_LINK;
         $data['MAILTEMPLATE'] = "contact_admin.html";
         if (getSettings($db, 'brdmail') == '1') {
             PQmail($db, $mail, $data, 'caadmin');
         } else {
             $_SESSION['ERROR']['type'] = 'Error';
             $_SESSION['ERROR']['reason'] = "Admin Has Blocked All Emails From The System.";
         }
     } else {
         $_SESSION['ERROR']['type'] = 'Error';
         $_SESSION['ERROR']['reason'] = "Entered Captcha Is Incorrect . Please Try Again.";
开发者ID:sangikumar,项目名称:IP,代码行数:31,代码来源:functions.php

示例5: parametro

$nombre = parametro("n", $nombre);
$apaterno = parametro("apaterno");
$apaterno = parametro("p", $apaterno);
$amaterno = parametro("amaterno");
$amaterno = parametro("m", $amaterno);
//sanear la variable para obtener el primer id.
$nombre = getPalabraDeFrase($nombre);
$apaterno = getPalabraDeFrase($apaterno);
$amaterno = getPalabraDeFrase($amaterno);
//
$UseMeta = parametro("metaphone", false, MQL_BOOL);
$UseJW = parametro("jarowinkler", false, MQL_BOOL);
$umbral = parametro("umbral", 80, MQL_INT);
$getPDF = parametro("report", false, MQL_BOOL);
$ret = parametro("return", false, MQL_BOOL);
$mails = getEmails($_REQUEST);
//st VARCHAR(55)) RETURNS varchar(128) CHARSET utf8
//jaro_winkler_similarity`(in1 VARCHAR(255),in2 VARCHAR(255)) RETURNS FLOAT
//agregar PDF
$xFMT = new cFormato(8801);
$txtLst = "";
//TODO: Cambiar
$action = "LIST";
$ByNombre = $nombre == "" ? "" : " AND (nombrecompleto SOUNDS LIKE '%{$nombre}%' OR nombrecompleto LIKE '%{$nombre}%') ";
$ByAPaterno = $apaterno == "" ? "" : " AND (apellidopaterno SOUNDS LIKE '%{$apaterno}%' OR apellidopaterno LIKE '%{$apaterno}%') ";
$ByAMaterno = $amaterno == "" ? "" : " AND (apellidomaterno SOUNDS LIKE '%{$amaterno}%' OR apellidomaterno LIKE '%{$amaterno}%') ";
//Metaphone
$ByMNombre = $nombre == "" ? "" : " AND func_DoubleMetaphone(nombrecompleto) = func_DoubleMetaphone('{$nombre}') ";
$ByMAPaterno = $apaterno == "" ? "" : " AND func_DoubleMetaphone(apellidopaterno) = func_DoubleMetaphone('{$apaterno}') ";
$ByMAMaterno = $amaterno == "" ? "" : " AND func_DoubleMetaphone(apellidomaterno) = func_DoubleMetaphone('{$amaterno}') ";
//Jaro Winkler
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:listanegra.svc.php

示例6: die

    exit;
}
if (!defined('REPORT') or REPORT === '') {
    die('Report not written.');
}
// write plain text result
if (PLAIN_FILE != '') {
    $l_PlainResult = preg_replace('|__AI_LINE1__|smi', '[', $l_PlainResult);
    $l_PlainResult = preg_replace('|__AI_LINE2__|smi', '] ', $l_PlainResult);
    $l_PlainResult = preg_replace('|__AI_MARKER__|smi', ' %> ', $l_PlainResult);
    if ($l_FH = fopen(PLAIN_FILE, "w")) {
        fputs($l_FH, $l_PlainResult);
        fclose($l_FH);
    }
}
$emails = getEmails(REPORT);
if (!$emails) {
    if ($l_FH = fopen($file, "w")) {
        fputs($l_FH, $l_Template);
        fclose($l_FH);
        stdOut("\nReport written to '{$file}'.");
    } else {
        stdOut("\nCannot create '{$file}'.");
    }
} else {
    $headers = array('MIME-Version: 1.0', 'Content-type: text/html; charset=UTF-8', 'From: ' . ($defaults['email_from'] ? $defaults['email_from'] : 'AI-Bolit@myhost'));
    for ($i = 0, $size = sizeof($emails); $i < $size; $i++) {
        mail($emails[$i], 'AI-Bolit Report ' . date("d/m/Y H:i", time()), $l_Result, implode("\r\n", $headers));
    }
    stdOut("\nReport sended to " . implode(', ', $emails));
}
开发者ID:AlexeyManikin,项目名称:aibolit,代码行数:31,代码来源:ai-bolit.php

示例7: site_setting_all

if ($_POST['object'] || $_FILES['templatefile']) {
    $cfg = site_setting_all();
    $mail = new PHPMailer();
    $mail->isSMTP();
    $mail->Host = 'smtp.gmail.com';
    $mail->SMTPAuth = true;
    $mail->Username = $cfg['email_user']->value;
    //gmail login
    $mail->Password = $cfg['email_passwd']->value;
    // gmail password
    $mail->Port = 465;
    $mail->CharSet = 'UTF-8';
    $mail->SMTPSecure = 'ssl';
    $mail->setFrom('turumburum@gmail.com', 'Mailer');
    if ($_POST['sendnewsletter'] == 'on') {
        $emails = getEmails();
    }
    foreach ($emails as $count => $email) {
        if (!$email) {
            continue;
        }
        $mail->addAddress($email, $email);
    }
    if ($_FILES['userfile']['name']) {
        $info = new SplFileInfo($_FILES['userfile']['name']);
        $uploadfile = $_FILES['userfile']['name'];
        $mail->addAttachment($_FILES['userfile']['tmp_name'], $uploadfile);
    }
    $mail->isHTML(true);
    $mail->Subject = $subject;
    $mail->Body = $text;
开发者ID:noskovgleb,项目名称:conference,代码行数:31,代码来源:creating_newsletter.php

示例8: Requests

 $query = "INSERT INTO Requests(reqNo, hash, creator, creatorEmail, creatorPhone, concernedPName, concernedPEmail, concernedPPhone, appStatus, reqGId, reqDate, eventStartDate, eventEndDate, eventStartTime, eventEndTime, eventTitle, eventDesc, eventDays,concernedAdmin, room, reqType) VALUES(\n\t'',\n\t'" . $hash . "',\n\t'" . $creator . "',\n\t'" . $creatorEmail . "',\n\t'" . $creatorPhone . "',\n\t'" . $concernedPName . "',\n\t'" . $concernedPEmail . "',\n\t'" . $concernedPPhone . "',\n\t'" . $appStatus . "',\n\t'" . $reqGId . "',\n\t'" . $reqDate . "',\n\t'" . $eventStartDate . "',\n\t'" . $eventEndDate . "',\n\t'" . $eventStartTime . "',\n\t'" . $eventEndTime . "',\n\t'" . $eventTitle . "',\n\t'" . $eventDesc . "',\n\t'" . $eventDays . "',\n\t'" . $concernedAdmin . "',\n\t'" . $room . "',\n\t'" . $reqType . "'\n);";
 $result = instanceClash($eventStartDate, $eventEndDate, $eventStartTime, $eventEndTime, $room);
 if ($result) {
     echo "Sorry! your request clashes with the following events:";
     $table = array();
     while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
         $table[] = $row;
     }
     print_r($table);
 } else {
     //Adding 2 Requests Table
     if (execute($query)) {
         echo "Successfull";
         $reqNo = getId($hash);
         echo $reqNo;
         $emails = getEmails($concernedAdmin);
         print_r($emails);
         foreach ($emails as $email) {
             forward($concernedPName, $email, $room, $reqNo, $concernedPEmail);
         }
     } else {
         die("Your code is crappy!");
     }
 }
 echo "lala";
 $reqID = getId($hash);
 $guy = $creatorEmail;
 $query = "INSERT INTO ccPerson(reqNo, email) values(\"{$reqID}\", \"{$guy}\");";
 execute($query);
 foreach ($ccPersons as $guy) {
     $query = "INSERT INTO ccPerson(reqNo, email) values(\"{$reqID}\", \"{$guy}\");";
开发者ID:nehaljwani,项目名称:SSAD,代码行数:31,代码来源:addRequest.php

示例9: parametro

$empresa = parametro("empresa", null, MQL_INT);
$step = MQL_ADD;
$idsocio = parametro("idsocio", DEFAULT_SOCIO, MQL_INT);
$directivo = parametro("directivo", "");
$iddirectivo = parametro("iddirectivo", DEFAULT_SOCIO, MQL_INT);
$diasaviso1 = parametro("dias_de_aviso1");
$diasaviso2 = parametro("dias_de_aviso2");
$diaspago1 = parametro("dias_de_pago1");
$diaspago2 = parametro("dias_de_pago2");
$diasnomina1 = parametro("dias_de_nomina1");
$diasnomina2 = parametro("dias_de_nomina2");
$periocidad1 = parametro("idperiocidad1", CREDITO_TIPO_PERIOCIDAD_SEMANAL, MQL_INT);
$periocidad2 = parametro("idperiocidad2", CREDITO_TIPO_PERIOCIDAD_QUINCENAL, MQL_INT);
$alias = parametro("nombrecorto");
$oficial = parametro("idoficial", getUsuarioActual(), MQL_INT);
$emails = getEmails(false, MQL_STRING);
$producto = parametro("idproducto", DEFAULT_TIPO_CONVENIO, MQL_INT);
$jscallback = parametro("callback");
$tiny = parametro("tiny");
$form = parametro("form");
$action = parametro("action", SYS_NINGUNO);
$mail1 = "";
$mail2 = "";
$mail3 = "";
$msg = "";
//$emaildeenvio		=
if ($action == MQL_ADD and $idsocio > DEFAULT_SOCIO) {
    //TODO: Actualizar
    $xEmp = new cEmpresas($idsocio);
    $xEmp->init();
    $dias_aviso = $xEmp->getConjugarPeriodo($periocidad1, $diasaviso1) . $xEmp->getConjugarPeriodo($periocidad2, $diasaviso2);
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:agregar-empresas.frm.php

示例10: handler_send

 function handler_send($page)
 {
     $page->changeTpl('emails/send.tpl');
     $page->setTitle('Envoyer un email');
     // action si on recoit un formulaire
     if (Post::has('save')) {
         if (!S::has_xsrf_token()) {
             return PL_FORBIDDEN;
         }
         unset($_POST['save']);
         if (trim(preg_replace('/-- .*/', '', Post::v('contenu'))) != "") {
             Post::set('to_contacts', explode(';', Post::s('to_contacts')));
             Post::set('cc_contacts', explode(';', Post::s('cc_contacts')));
             $data = serialize($_POST);
             XDB::execute('INSERT INTO  email_send_save (uid, data)
                                VALUES  ({?}, {?})
               ON DUPLICATE KEY UPDATE  data = VALUES(data)', S::user()->id('uid'), $data);
         }
         exit;
     } else {
         if (Env::v('submit') == 'Envoyer') {
             S::assert_xsrf_token();
             function getEmails($aliases)
             {
                 if (!is_array($aliases)) {
                     return null;
                 }
                 $uf = new UserFilter(new UFC_Hrpid($aliases));
                 $users = $uf->iterUsers();
                 $ret = array();
                 while ($user = $users->next()) {
                     $ret[] = $user->forlife;
                 }
                 return join(', ', $ret);
             }
             $error = false;
             foreach ($_FILES as &$file) {
                 if ($file['name'] && !PlUpload::get($file, S::user()->login(), 'emails.send', false)) {
                     $page->trigError(PlUpload::$lastError);
                     $error = true;
                     break;
                 }
             }
             if (!$error) {
                 XDB::execute("DELETE FROM  email_send_save\n                                    WHERE  uid = {?}", S::user()->id());
                 $to2 = getEmails(Env::v('to_contacts'));
                 $cc2 = getEmails(Env::v('cc_contacts'));
                 $txt = str_replace('^M', '', Env::v('contenu'));
                 $to = str_replace(';', ',', Env::t('to'));
                 $subj = Env::t('sujet');
                 $from = Env::t('from');
                 $cc = str_replace(';', ',', Env::t('cc'));
                 $bcc = str_replace(';', ',', Env::t('bcc'));
                 $email_regex = '/^[a-z0-9.\\-+_\\$]+@([\\-.+_]?[a-z0-9])+$/i';
                 foreach (explode(',', $to . ',' . $cc . ',' . $bcc) as $email) {
                     $email = trim($email);
                     if ($email != '' && !preg_match($email_regex, $email)) {
                         $page->trigError("L'adresse email " . $email . ' est erronée.');
                         $error = true;
                     }
                 }
                 if (empty($to) && empty($cc) && empty($to2) && empty($bcc) && empty($cc2)) {
                     $page->trigError("Indique au moins un destinataire.");
                     $error = true;
                 }
                 if ($error) {
                     $page->assign('uploaded_f', PlUpload::listFilenames(S::user()->login(), 'emails.send'));
                 } else {
                     $mymail = new PlMailer();
                     $mymail->setFrom($from);
                     $mymail->setSubject($subj);
                     if (!empty($to)) {
                         $mymail->addTo($to);
                     }
                     if (!empty($cc)) {
                         $mymail->addCc($cc);
                     }
                     if (!empty($bcc)) {
                         $mymail->addBcc($bcc);
                     }
                     if (!empty($to2)) {
                         $mymail->addTo($to2);
                     }
                     if (!empty($cc2)) {
                         $mymail->addCc($cc2);
                     }
                     $files =& PlUpload::listFiles(S::user()->login(), 'emails.send');
                     foreach ($files as $name => &$upload) {
                         $mymail->addUploadAttachment($upload, $name);
                     }
                     if (Env::v('wiki') == 'text') {
                         $mymail->setTxtBody(wordwrap($txt, 78, "\n"));
                     } else {
                         $mymail->setWikiBody($txt);
                     }
                     if ($mymail->send()) {
                         $page->trigSuccess("Ton email a bien été envoyé.");
                         $_REQUEST = array('bcc' => S::user()->bestEmail());
                         PlUpload::clear(S::user()->login(), 'emails.send');
                     } else {
//.........这里部分代码省略.........
开发者ID:Ekleog,项目名称:platal,代码行数:101,代码来源:email.php

示例11: viewBoxCalendar

function viewBoxCalendar($arrConf, $arrLang, $pDB, $local_templates_dir, $smarty, $module_name)
{
    $pCalendar = new paloSantoCalendar($pDB);
    $id = getParameter('id_event');
    $action = getParameter('action');
    $pDBACL = new paloDB($arrConf['dsn_conn_database1']);
    $pACL = new paloACL($pDBACL);
    $id_user = $pACL->getIdUser($_SESSION["elastix_user"]);
    $jsonObject = new PaloSantoJSON();
    $data = $pCalendar->getEventById($id, $id_user);
    $val = false;
    if ($data == "" && !isset($data)) {
        $jsonObject->set_error(_tr("Don't exist the event"));
        return $jsonObject->createJSON();
    }
    $data = $pCalendar->get_event_by_id($id);
    $type_event = $data['it_repeat'];
    $days_repeat = $data['days_repeat'];
    $data['it_repeat'] = returnEventToType($type_event, $arrLang);
    $data['visibility'] = "visibility: hidden;";
    $data['visibility_repeat'] = "visibility: hidden;";
    $data['notification_status'] = $data['notification'];
    $data['title'] = _tr("View Event");
    $new_date_ini = $data['starttime'];
    $new_date_end = $data['endtime'];
    $data['date'] = date("d M Y H:i", strtotime($new_date_ini));
    $data['to'] = date("d M Y H:i", strtotime($new_date_end));
    $data['Contact'] = $arrLang['Contact'];
    $data['Email'] = $arrLang['Email'];
    if ($data['notification'] == "on") {
        $arrContacts = getEmailToTables($data['emails_notification']);
        $data['emails_notification'] = getEmails($data['emails_notification']);
        $data['visibility'] = "visibility: visible;";
        $data = array_merge($data, $arrContacts);
    } else {
        $data['size_emails'] = 0;
    }
    if ($type_event == 5) {
        $data['visibility_repeat'] = "visibility: visible;";
    }
    if ($type_event == 6) {
        $visibility_repeat = "visibility: visible;";
    }
    if ($days_repeat != "") {
        $arr = getDaysByCheck($days_repeat, 2);
        $data = array_merge($data, $arr);
    }
    if ($data['call_to'] != "") {
        $visibility_alert = "";
    } else {
        $visibility_alert = "display:none";
    }
    $date_ini = getParameter("event_date");
    if (!preg_match("/^[0-9]{4}-[0-9]{2}-[0-9]{2}\$/", $date_ini)) {
        $date_ini = date("M d Y");
    }
    $dateServer = gmdate("D M d Y H:i:s TO (e)", strtotime($date_ini));
    //Fri Nov 12 2010 00:00:00 GMT-0500 (ECT)
    $arrForm = createFieldForm($arrLang);
    $oForm = new paloForm($smarty, $arrForm);
    $smarty->assign("add_phone", $arrLang["Search in Address Book"]);
    $smarty->assign("SAVE", $arrLang["Save"]);
    $smarty->assign("EDIT", $arrLang["Edit"]);
    $smarty->assign("DELETE", $arrLang["Delete"]);
    $smarty->assign("CANCEL", $arrLang["Cancel"]);
    $smarty->assign("Start_date", $arrLang["Start_date"]);
    $smarty->assign("Notification_Alert", $arrLang["Notification_Alert"]);
    $smarty->assign("End_date", $arrLang["End_date"]);
    $smarty->assign("REQUIRED_FIELD", $arrLang["Required field"]);
    $smarty->assign("module_name", $module_name);
    $smarty->assign("notification_email", $arrLang["notification_email"]);
    $smarty->assign("id_event", $id);
    $smarty->assign("Call_alert", $arrLang["Call_alert"]);
    //  $smarty->assign("visibility_emails",$visibility_emails);
    $smarty->assign("icon", "modules/{$module_name}/images/agenda_calendar.png");
    $smarty->assign("visibility_alert", $visibility_alert);
    $smarty->assign("LBL_EDIT", $arrLang["Edit Event"]);
    $smarty->assign("LBL_LOADING", $arrLang["Loading"]);
    $smarty->assign("LBL_DELETING", $arrLang["Deleting"]);
    $smarty->assign("LBL_SENDING", $arrLang["Sending Request"]);
    $smarty->assign("START_TYPE", $arrLang["START_TYPE"]);
    $smarty->assign("DATE_SERVER", $dateServer);
    $smarty->assign("Color", $arrLang["Color"]);
    $smarty->assign("Listen", $arrLang["Listen"]);
    $smarty->assign("Listen_here", _tr("Click here to listen"));
    $htmlForm = $oForm->fetchForm("{$local_templates_dir}/evento.tpl", $arrLang["Calendar"], array());
    $content = "<form  method='POST' style='margin-bottom:0;' action='?menu={$module_name}' name='formNewEvent' id='formNewEvent' onsubmit='return sendNewEvent();'>" . $htmlForm . "</form>";
    $data["html"] = $content;
    $jsonObject->set_message($data);
    return $jsonObject->createJSON();
}
开发者ID:netconstructor,项目名称:elastix-mt-gui,代码行数:91,代码来源:index.php

示例12: execute

                //echo $req['reqNo'];
                //echo "<HI><br><br><br><br>\n";
                $otherQuery = "update Requests set appStatus = 'Rejected', reqRejectReason = 'A request conflicting with your request was accepted.' where reqNo = {$req['reqNo']}";
                //echo $otherQuery."\n";
                execute($otherQuery);
                reject($req['creator'], $req['creatorEmail'], $req['room'], $req['reqNo'], getCC($rID));
                reject($req['concernedPName'], $req['concernedPEmail'], $req['room'], $req['reqNo'], getCC($rID));
            }
        }
        $req = getRequestByID($rID);
        accept($req['creator'], $req['creatorEmail'], $req['room'], $req['reqNo'], getCC($rID));
        accept($req['concernedPName'], $req['concernedPEmail'], $req['room'], $req['reqNo'], getCC($rID));
    } else {
        if ($_POST['reqAction'] == $c) {
            $sq = "update Requests set concernedAdmin = {$_POST['forwardID']} where reqNo = {$_POST['reqID']}";
            $req = getRequestByID($rID);
            $emails = getEmails($_POST['forwardID']);
            //print_r($emails);
            foreach ($emails as $email) {
                forward($req['concernedPName'], $email, $req['room'], $req['reqNo'], $req['concernedPEmail'], getCC($rID));
            }
        }
    }
}
//echo $sq;
execute($sq);
//echo "<br />";
//cho "HIHIHIII";
//print_r($clashArray);
//echo "HIHIHIII";
echo "<script> window.location.replace('table.php') </script>";
开发者ID:nehaljwani,项目名称:SSAD,代码行数:31,代码来源:acceptRejectHash.php


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