"; $thk_msg .=""; $thk_msg .="Enviar Consulta¡TU CONSULTA HA SIDO RECIBIDA!
Hemos enviado un mensaje a tu e-mail para confirmarlo.
Pronto será revisada por el/la asesor/a correspondiente.
"; $thk_msg .=""; $thk_msg .=""; $thk_msg .="
DETALLES DEL ENVÍO
"; $thk_msg .=""; $thk_msg .=""; $thk_msg .="Nº de Seguimiento: $ticket_id"; $thk_msg .=""; $thk_msg .=""; $thk_msg .="NOMBRE: $name"; $thk_msg .=""; $thk_msg .=""; $thk_msg .="E-MAIL: $email"; $thk_msg .=""; $thk_msg .=""; $thk_msg .="ASUNTO: ".stripslashes($subject).""; $thk_msg .=""; $thk_msg .=""; $thk_msg .="CONSULTA: ".stripslashes(nl2br($message)).""; $thk_msg .=""; $thk_msg .=""; $thk_msg .="Departamento:$departments[$dept_id]"; $thk_msg .=""; $thk_msg .=""; $thk_msg .="Priority:$priorities[$prior_id]"; $thk_msg .=""; $thk_msg .=""; $subject123=$subject; //$email_message = file($admindir."admin/addticket_email.txt",'r'); //$filename = $admindir."addticket_email.txt"; //$handle = fopen($filename, "r"); //$contents = fread($handle, filesize($filename)); //fclose($handle); $to1 = $email; $sitename1=$_SERVER['SERVER_NAME']; $string1 = ereg_replace("www.","",$sitename); $headers1 = "MIME-Version: 1.0\r\n"; $headers1 .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers1 .= 'From:'.$mail_from. "\r\n" ; $sql_email1="SELECT * from admin_automail where mid=1"; $sql_email_result1 = mysql_query($sql_email1) or die("Query failed HERE GHHG: " . mysql_error()); $sql_email_row1 = mysql_fetch_array($sql_email_result1); //$subjectadmin=$sql_email_row1['subject']; $message11=stripslashes(nl2br($sql_email_row1['message'])); $message11=ereg_replace("@username",$name,$message11); $message11=ereg_replace("@ticketid",$ticket_id,$message11); $message11=ereg_replace("@subject",stripslashes($subject123),$message11); $message11=ereg_replace("@departments",$departments[$dept_id],$message11); //echo $message1; $subje1="Your ticket has been submitted"; @mail($to1, $subje1, $message11, $headers1); //echo $message11; //echo"

"; //Reply for Operator $sql_email_c="select dept_id,ticket_subject,ticket_email from tbl_tickets WHERE `ticket_id` = '$ticket_id'"; $sql_email_result_c = mysql_query($sql_email_c) or die("Query failed : " . mysql_error()); $sql_email_row_c = mysql_fetch_array($sql_email_result_c); $sub_ticket=stripslashes($sql_email_row_c[ticket_subject]); $from_ticket=$sql_email_row_c[ticket_email]; $sql_opera="select opera_id from tbl_relationship WHERE `dept_id` = ".$sql_email_row_c['dept_id']; $sql_result_opera = mysql_query($sql_opera) or die("Query failed 1: " . mysql_error()); //$sql_row_opera = mysql_fetch_array($sql_result_opera); while($sql_row_opera = mysql_fetch_array($sql_result_opera)) { $opera_id = $sql_row_opera['opera_id']; $strarvind.= $opera_id.","; } //while... if(strlen($strarvind)>0) { $strarvind = substr($strarvind,0,strlen($strarvind)-1); } if($strarvind!=""){ $sql_op="select opera_email from tbl_operators where opera_id in ($strarvind)"; $sql_op_result=mysql_query($sql_op) or die("Query failed 2: " . mysql_error()); //$sql_op_row=mysql_fetch_array($sql_op_result); while($sql_op_row=mysql_fetch_array($sql_op_result)) { $opera_email = $sql_op_row['opera_email']; $strarvind1.= $opera_email.","; } //while... if(strlen($strarvind1)>0) { $strarvind1 = substr($strarvind1,0,strlen($strarvind1)-1); } $to=$strarvind1; //echo "
To=>".$to."
"; //echo "
From=>".$from_ticket."
"; $sitename=$_SERVER['SERVER_NAME']; $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= 'From:'.$from_ticket. "\r\n" ; $sql_email="SELECT * from admin_automail where mid=3"; $sql_email_result = mysql_query($sql_email) or die("Query failed 3 : " . mysql_error()); $sql_email_row = mysql_fetch_array($sql_email_result); $dt=date("F j, Y, g:i a"); $message1=stripslashes(nl2br($sql_email_row['message'])); $message1=ereg_replace("@ticketid",$ticket_id,$message1); $message1=ereg_replace("Reply time","Created Time",$message1); $message1=ereg_replace("@time",$dt,$message1); $message1=ereg_replace("@subject",$sub_ticket,$message1); $message1=ereg_replace("@message",stripslashes(nl2br($message)),$message1); ///exit; $subje="New Ticket ,Ticket id :".$ticket_id; @mail($to, $subje, $message1, $headers); //echo $message1; }else{ $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= 'From:'.$from_ticket. "\r\n" ; $sql_email="SELECT * from admin_automail where mid=3"; $sql_email_result = mysql_query($sql_email) or die("Query failed 3 : " . mysql_error()); $sql_email_row = mysql_fetch_array($sql_email_result); $dt=date("F j, Y, g:i a"); $message1=stripslashes(nl2br($sql_email_row['message'])); $message1=ereg_replace("@ticketid",$ticket_id,$message1); $message1=ereg_replace("Reply time","Created Time",$message1); $message1=ereg_replace("@time",$dt,$message1); $message1=ereg_replace("@subject",$sub_ticket,$message1); $message1=ereg_replace("@message",stripslashes(nl2br($message)),$message1); $dept_not=$departments[$dept_id]; $to1=$mail_from; ///exit; $subje="Operator Not Asignned for Deptartment : $dept_not :: New Ticket ,Ticket id :".$ticket_id; @mail($to1, $subje, $message1, $headers); //echo $message1; } } } $sql_getdept_query="SELECT * FROM `tbl_departments` "; $sql_getdept_result = mysql_query($sql_getdept_query); while ($sql_getdept_row = mysql_fetch_array($sql_getdept_result, MYSQL_ASSOC)) { $showdepts .= ""; } $sql_getprior_query="SELECT * FROM `tbl_priorities` "; $sql_getprior_result = mysql_query($sql_getprior_query); while ($sql_getprior_row = mysql_fetch_array($sql_getprior_result, MYSQL_ASSOC)) { $showprior .= ""; } ?> Asesoría APDO - Asesoría Privada
Consulta Abierta (Anónima)
Consulta Abierta CONSULTA ABIERTA (Elige esta opción si no tienes e-mail)
Envía aquí una preguta que nuestros asesores responderán y publicarán en la Base de Conocimientos de Asesoría APDO.
 
*NOMBRE:
*ASUNTO:
*CONSULTA:
*DEPARTAMENTO:
*PRIORIDAD:

 

 

 

 

 

 

 

 

Hemos recibido tu consulta, un@ de nuestr@s asesoræs la revisará y publicará la respuesta en nuestra Base de Conocimientos."; } ?>

 
Teléfono CONSULTAS EN LÍNEA
Recibe asesoria en vivo y en directo a través de SKYPE con nuestros asesores on-line. Puede ver aquí abajo si hay operadoræs conectad@s.
APDO  Pako