帳號: 密碼: "; return $main; } //建立班級資料的表單 function class_form($class_sn=""){ $next_op="insert"; //初始值設定 $data['seme'] = $data['class_name'] = $data['teacher'] = $data['passwd'] = $opt1 = $opt2 = $opt3 = $opt4 = $opt5 = $opt6 = $opt7 = $opt8 = $radio1 = $radio0 = ""; if($class_sn){ //設定SQL語法 $sql="select * from `tncomu_class` where class_sn='{$class_sn}'"; //執行SQL語法 $result=mysql_query($sql) or die("無法執行:".mysql_error()); //擷取資料回來存到 $data $data=mysql_fetch_assoc($result); //還原下拉選單預設值 $opt1=($data['subject']=="語言與文化")?"selected":""; $opt2=($data['subject']=="生命與健康")?"selected":""; $opt3=($data['subject']=="社會與生活")?"selected":""; $opt4=($data['subject']=="自然與環境")?"selected":""; $opt5=($data['subject']=="美學與藝術")?"selected":""; $opt6=($data['subject']=="資訊與傳播")?"selected":""; $opt7=($data['subject']=="台江分校")?"selected":""; $opt8=($data['subject']=="台江大廟興學")?"selected":""; $radio1=($data['access']=="1")?"checked":""; $radio0=($data['access']=="0")?"checked":""; $next_op="update"; } $seme=empty($data['seme'])?get_seme():$data['seme']; $main="
進階搜尋
579人線上 (207人在瀏覽線上書籍)
會員: 0
訪客: 579