get_one("select A.*,B.subject as ss,C.id as cid,C.subject as cs,C.content as ct from party_list A left join party_type B on A.btype=B.id left join form_type C on A.formid=C.id where A.id='$id'"); ?> 皮托科技Pitotech - get_one("select elename from form_element where id='$id'"); return $a['elename']; } /* if(file_exists("admin_pt/cache_element.php")){ include_once("admin_pt/cache_element.php"); }*/ $query=$db->query("select * from form_element order by id"); while($a=$db->fetch_array($query)){ $element[$a['elename']] = $a['subject']; } if($action == 'fill'){ $content = serialize($_POST); $db->query("insert into form_list(pid,content,addtime) values ('".$_POST['pid']."','".mysql_real_escape_string($content)."','".date("Y-m-d H:i:s")."')"); $a=$db->get_one("select * from party_list where id = '$partyid'"); $subject = substr($a['date'],0,10).' '.$a['subject']; $a=$db->get_one("select * from mail_config where types=1 order by id desc limit 0,1"); if(!empty($a)) { $smtpemailto= $a['smtpusermail'];//SMTP服務器的用戶郵箱 $mailsubject = $subject.'申請'.date("Y-m-d H:i:s"); $smtpserver = $a['smtpserver'];//SMTP服務器 $smtpserverport = $a['smtpserverport'];//SMTP服務器端口 $smtpusermail = $a['smtpusermail'];//SMTP服務器的用戶郵箱 $smtpuser = $a['smtpuser'];//SMTP服務器的用戶帳號 $smtppass = $a['smtppass'];//SMTP服務器的用戶密碼 $mailtype = "HTML";//郵件格式(HTML/TXT),TXT為文本郵件 $mailbody = "有新的{$subject}申請".date("Y-m-d H:i:s")."
"; $content = $_POST; $b=$db->get_one("select * from form_type where id='$pid' "); $content1 = unserialize($b['content']); $cos = $content1['formelement']; for($i=0;$iget_one("select * from form_element where subject='".$ss."'"); if($ff['types']==3){ $ids = char_cv($ids); } if($ff['elename'] == "fapiao"){ $ids.="  抬頭:".$content['tt']."  "; if(strstr($ids,'三聯式')) $ids.="  統一編號:".$content['bh']; } if($ff['elename'] == "zc"){ if(strstr($ids,"學生")) $ids.="  教授名稱:".$content['js']; } if(empty($ids)) $ids =" "; unset($ff); $mailbody .= stripslashes($ss).":".$ids."
"; } //echo $mailbody; /* $smtp = new smtp($smtpserver,25,true,$smtpuser,$smtppass); $smtp->debug = false; $mailtype = "HTML"; $issend=$smtp->sendmail($smtpemailto, 'info@mail.pitotech.com.tw', $mailsubject, $mailbody, $mailtype); */ $mail = new PHPMailer(false); $mail->IsSMTP(); // tell the class to use SMTP $mail->SMTPAuth = true; // enable SMTP authentication $mail->Port = 25; // set the SMTP server port $mail->Host = "61.67.232.154"; // SMTP server $mail->Username = "jean@youhome.com.tw"; // SMTP server username $mail->Password = "23343680"; // SMTP server password //$mail->IsSendmail(); // tell the class to use Sendmail //$mail->AddReplyTo("name@domain.com","First Last"); $mail->From = 'info@mail.pitotech.com.tw'; $mail->FromName = 'info@mail.pitotech.com.tw'; $mail->CharSet = "BIG5"; $mail->Encoding = "base64"; $mail->AddAddress($smtpemailto); $mail->IsHTML(true); // send as HTML $mail->Subject = $mailsubject; $mail->Body = $mailbody."

http://www.pito.com.tw "; //$mail->AltBody = ""; // optional, comment out and test //$mail->WordWrap = 80; // set word wrap //$mail->MsgHTML($mailbody); $mail->Send(); } echo ""; exit; } ?>
 
   
  query("select * from party_type order by orders desc,id desc"); $i=0; while($a=$db->fetch_array($query)){ if(empty($pid) && $i==0){ $pid=$a['id']; } ?>
 
 
   
   
   
   
 
get_one("select A.*,B.subject as ss,C.id as cid,C.subject as cs,C.content as ct from party_list A left join party_type B on A.btype=B.id left join form_type C on A.formid=C.id where A.id='$id'"); //print_r($a); $a['ct'] = unserialize($a['ct']); ?> >> 您所在的位置:最新活動--詳細內容
 
附件下載
query("select * from party_attach where news_id='$a[id]'"); while($b=$db->fetch_array($query)){ ?>
0){ getpost($a['formid'],$a['ct'],"100%"); } ?>
 
0){ //echo 'Redirect'; header("Location: http://www.pitotech.com.tw/contents/zh-tw/d4693877_Little_Birds.html"); exit(); } ?>