"; ?>


天美慈善基金會".$yearnow."寒假活動報名表"; if (isset($_GET["u1"])) { $insert_usercode = $_GET["u1"]; } else { $insert_usercode = ""; } if (isset($_GET["u2"])) { $insert_usercode2 = $_GET["u2"]; } else { $insert_usercode2 = ""; } $action_url="winter_signup_write.php"; if($insert_usercode != "" && $insert_usercode2 != "") { $action_url = $action_url."?u1=".$insert_usercode."&u2=".$insert_usercode2; } echo "
"; echo ""; echo "
"; echo "
"; $columns = array("name","sex","school","grade","classnum","email","homephone","mobile","line","callmethod","activity","comment","source","u1"); $columns_type = array("char","num","char","num","num","char","char","char","char","num","num","char","hidden","hidden"); $columns_size = array(10,"dbsel",20,"7-9","fill",50,12,12,20,"dbsel","dbck",20,"0","0"); $columns_default = array("GET","","","","","","","","","","","","","",""); $columns_title = array("姓名","性別","目前就讀學校","年級","班級","email","住家電話","手機電話","LINE ID","活動報名確認最佳聯絡方式","有興趣的活動及日期(可複選)","若報名超過一項活動,請填寫你最有興趣參加的活動","",""); $columns_note = array(0,"","","目前就讀的年級","","活動報名確認使用,請務必確實填寫","活動報名確認使用","活動報名確認使用,請務必確實填寫","若無不需填寫","","","","",""); $columns_check = array("","","","","","","","","optional","","","","",""); // Connecting, selecting database include_once ("include_db_con_tm.php"); for($i=0;$i".$thisdefault.""; } else { echo ""; } } elseif($columns_type[$i] == "num") { if($columns_size[$i] == "fill") { $thisdefault = ""; if($columns_default[$i] == "GET") { $thisdefault = $_GET[$columns[$i]]; } if($columns_default[$i] == "VARI") { $variname = "serial"; $thisdefault = $$variname; } echo "\n"; } elseif($columns_size[$i] == "binary") { echo "\n"; } elseif(substr($columns_size[$i],0,2) == "db") { if(is_numeric(substr($columns[$i],strlen($columns[$i])-1,1))) { $real_title = substr($columns[$i],0,strlen($columns[$i])-1); } else { $real_title = $columns[$i]; } $query = "select word,code from conversion where title = '".$real_title."' and switch = '1' order by listorder"; $result = mysql_query($query) or die('Query select failed convert'); if($columns_size[$i] == "dbsel") { echo "\n"; } elseif($columns_size[$i] == "dbck" || $columns_size[$i] == "dbra") { if($columns_size[$i] == "dbck") { $ckorra = "checkbox"; } else { $ckorra = "radio"; } echo ""; $checkitem = 0; while ($row = mysql_fetch_array( $result )) { echo "".$row["word"]."  "; $checkitem++; } $thischeckboxname = $columns[$i]."length"; $$thischeckboxname = $checkitem; echo ""; } } else { $firstpart = substr($columns_size[$i],0,strpos($columns_size[$i],"-")); $secondpart = substr($columns_size[$i],strpos($columns_size[$i],"-")+1,strlen($columns_size[$i])); echo "\n"; } } elseif($columns_type[$i] == "hidden") { $thisdefault = $_GET[$columns[$i]]; echo ""; } else { echo "columns_type not defined
"; } if($columns_note[$i] != "0") { echo " ".$columns_note[$i].""; } echo "
"; } // Closing connection mysql_close($link); echo "
"; echo "
"; ?>

若有任何問題,請來電財團法人台北市天美慈善基金會 (02)2 3 9 1-9 1 9 7 或 0 9 1 6-3 4 2 4 7 2。謝謝!