if(confirm('請先登錄MSN歐!')){document.location.href='http://event.zyxel.com.tw/everybodyloveme/"; echo "'}else{document.location.href='http://event.zyxel.com.tw/everybodyloveme/'};"; die(); } $link = mysql_connect($config['db_host'],$config['db_user'], $config['db_password']) or die("Could not connect : " . mysql_error()); mysql_select_db($config['db_name']) or die("Could not select database"); mysql_query("SET CHARACTER_SET_CLIENT = utf8, CHARACTER_SET_CONNECTION = utf8, CHARACTER_SET_DATABASE = utf8, CHARACTER_SET_RESULTS = utf8, CHARACTER_SET_SERVER = utf8, COLLATION_CONNECTION = utf8_general_ci, COLLATION_DATABASE = utf8_general_ci, COLLATION_SERVER = utf8_general_ci, AUTOCOMMIT=1"); if($vote_no!="" && $_SESSION["email"]!=""){ $query = "update everybodylove set vote=vote+1 where no='".$vote_no."'"; $result = mysql_query($query) or die("Query failed : " . mysql_error()); $query = "INSERT INTO everybodyvote(mail,vote,date) values('".$_SESSION["email"]."',1,'".date('Y-m-d H:i:s')."')"; $result = mysql_query($query) or die("Query failed : " . mysql_error()); } $query = "select mail from everybodyvote where mail='".$_SESSION["email"]."' and vote=1"; $result = mysql_query($query) or die("Query failed : " . mysql_error()); $RtnNum=mysql_num_rows($result); echo $RtnNum; if($RtnNum>=1){ mysql_free_result($result); //echo ""; $vote=1; } if($del!=""){ $query = "delete from everybodylove where no=$del"; $result = mysql_query($query) or die("Query failed : " . mysql_error()); echo ""; } mysql_query('SET NAMES utf8;'); if($print2=="yes"){ $query = "delete from everybodyvote"; $result = mysql_query($query) or die("Query failed : " . mysql_error()); $query = "update everybodylove set vote=0"; $result = mysql_query($query) or die("Query failed : " . mysql_error()); } $query = "select * from everybodylove where model='nsa' union select * from everybodylove where model='usg' order by vote desc"; $result = mysql_query($query) or die("Query failed : " . mysql_error()); $num_rows = mysql_num_rows($result); if($print=="yes"){ $query = "select * from everybodylove where 1 order by vote desc"; $result = mysql_query($query) or die("Query failed : " . mysql_error()); $num_rows = mysql_num_rows($result); } if($print1=="yes"){ $query = "select * from everybodyvote where 1"; $result = mysql_query($query) or die("Query failed : " . mysql_error()); $num_rows = mysql_num_rows($result); } if($print=="yes" || $print1=="yes"){ while($row = mysql_fetch_row($result)) { foreach($row as $value) { if ((!isset($value)) OR ($value == "")) { $value = "\t"; } else { $value = str_replace('"','"', $value); $value = '' . $value . '' . "\t"; } $line.= $value; } $data .= trim("".$line."")."\n"; $line=""; } $data = str_replace("\r","",$data); header("Content-Type: application/vnd.ms-excel;"); header("Content-Disposition: attachment; filename=export.xls"); header("Pragma: no-cache"); header("Expires: 0"); $xls_header = ' '; $xls_footer = '
'; print $xls_header.$data.$xls_footer; exit; die(); } if(time()alert('目前未開放票選歐!');"; }else{ if(time()>mktime(18,0,0,2,25,2011)){ echo ""; } } ?> 合勤MSN經銷商活動頁



=2){ echo "恭喜以上13位經銷商麻吉獲得福田瓦煎燒禮盒乙份,一整年都福氣飽滿!
"; echo "請中獎經銷麻吉提供以下資料email to: zoe.sun@zyxel.com.tw
"; echo "1)公司寶號全名+大名
"; echo "2)寄送地址
"; echo "3)聯絡電話
"; } ?>
OK
" action="list.php" method="post">
經銷商麻吉大名:
經銷商麻吉MSN:
0){ echo "win!"; } if($count2<=3 && $line["model"]=="usg" && $line["vote"]>0){ echo "win!"; } ?>
推薦客戶暱稱:
發布時間:
"/> =mktime(0,0,0,1,25,2011) && time()<=mktime(18,0,0,2,25,2011)){?> " value="說得好"/> "/>
=2){ echo "恭喜以上13位經銷商麻吉獲得福田瓦煎燒禮盒乙份,一整年都福氣飽滿!
"; echo "請中獎經銷麻吉提供以下資料email to: zoe.sun@zyxel.com.tw
"; echo "1)公司寶號全名+大名
"; echo "2)寄送地址
"; echo "3)聯絡電話
"; } ?>
word
 
ball