user_id=$user_id
proc_val=$proc_val
display_type=$display_type
cur_page_val=$cur_page_val
display_pages_option=$display_pages_option
query=$query
"); */ echo(" ITEL Billing System! "); // ========== Define Tag : body by Mode ======================================================== if($mode=="admin" || $mode=="kyk") // admin and main-manage only(user_levle ) echo(""); else echo(""); echo("
"); // ========== Proc Val : Send Mail Start ======================================================== if($proc_val == 'send_mail') { // ========== Comment Check ======================================================== $r=preg_split('/\n/', $comment, -1, PREG_SPLIT_OFFSET_CAPTURE); /// separete by tab reset ($r); $values =''; while (list ($key, $val) = each ($r)) { while (list ($k, $v) = each ($val)) if($k==0) $values .= $v."
"; } // ========== Assign Values ======================================================== $comment = $values; if($tomail) $tomail = $frommail; if(!$frommail || !$tomail || !$subject || !$comment) global_func_show_error_message("Invalid Data.!!"); // ========== Sending Email ======================================================== global_func_sendmail($frommail,$tomail,$ccmail,$bccmail,$subject,$comment); echo ("
"); $proc_val = ''; exit; } // ========== Proc Val : Send Mail End ======================================================== // ========== Proc Val : - Initial Window - Start ======================================================== else { // ========== Get From Mail ======================================================== $query =" select contact_email from tb_user where user_id = '$array_cookies[user_id]'"; $result = global_func_mysql_query_exec($query); $frommail = mysql_result($rate_result,0); echo ("


Mail sending completed !!!!
To : $tomail
CC : $ccmail
BCC : $bccmail




ITEL Form Mail
From Mail $frommail
To Mail
CC
BCC
Subject
Comment

"); } // ========== Proc Val : - Initial Window - End ======================================================== ?>