header("Content-type:text/html;charset=utf-8"); include "add_user_fun.php"; //$query="select COLUMN_COMMENT, COLUMN_NAME from information_schema.columns where table_schema='choose_lesson_system' and table_name='user_stu'"; //$cn_query=mysql_query($query); //$result_1=mysql_fetch_row($query); //echo($result_1[0]); //print_r($result); function lwreplace($lwchar) { return str_replace(' ', '', $lwchar); } if (trim($_POST['user_name']) != NULL) { //echo($_POST['user_name']); //echo("<script>alert('锟斤拷锟斤拷晒锟絪s');</script>"); //******************************锟斤拷锟斤拷锟斤拷一些锟斤拷锟斤拷没锟叫革拷锟斤拷锟睫革拷权锟斤拷*****锟斤拷锟斤拷说学院 $stu_id = lwreplace(trim($_POST['stu_id'])); //$stu_pass=trim($_POST['stu_pass']); $stu_pass = $stu_id; $user_name = trim($_POST['user_name']); $en_name = trim($_POST['en_name']); $stu_sex = trim($_POST['stu_sex']); $stu_sch = trim($_POST['stu_sch']); $stu_maj = trim($_POST['stu_maj']); $stu_gra = trim($_POST['stu_gra']); $stu_clas = trim($_POST['stu_clas']); $stu_clas = $stu_gra . $stu_clas; $stu_bir = trim($_POST['stu_bir']); $passport_id = trim($_POST['passport_id']); $stu_nation = trim($_POST['stu_nation']); $stu_address1 = trim($_POST['stu_address1']); $stu_address2 = trim($_POST['stu_address2']);
$major = $_POST['major']; $grade = $_POST['grade']; //20130828改后录成班级,年级这块不要了吧,为空,不过里面的值是班级 //echo $school.'&&&'.$major.'^^^^'.$grade; //$cou_name=$qswh->decode(urlencode(trim($_POST['cou_name'])),1);//先通过编码,再转码,再通过服务器误别得到从utf8->gbk的转换 $cou_name = trim($_POST['cou_name']); $cou_code == $_POST['cou_code']; //$cou_type=$qswh->decode(urlencode($_POST['cou_type']),1); $cou_type = $_POST['cou_type']; //echo $cou_type; $cou_volume = $_POST['cou_volume']; //$cou_selected=$_POST['cou_selected']; //$cou_alltime=$_POST['cou_alltime']; $cou_credit = $_POST['cou_credit']; //$cou_grade_state=$_POST['cou_grade_state']; $cou_time_detail = lwreplace(trim($_POST['cou_time_detail'])); //详细课时 $cou_week_to = trim($_POST['cou_week_to']); //echo $cou_week_to; //$cou_time_begin_ch=$_POST['cou_time_begin_ch']; //$cou_time_end_ch=$_POST['cou_time_end_ch']; //$teach_school=$qswh->decode(urlencode($_POST['teach_school']),1); $teach_teacher = $_POST['teach_teacher']; //$teachering_material=$qswh->decode(urlencode($_POST['teachering_material']),1); $teachering_material = $_POST['teachering_material']; //$cou_term=$qswh->decode(urlencode($_POST['cou_term']),1); $cou_term = $_POST['cou_term']; //$cou_time_begin=$_POST['cou_time_begin']; //$cou_time_end=$_POST['cou_time_end']; //$cou_classroom=$qswh->decode(urlencode($_POST['cou_classroom']),1); $cou_classroom = $_POST['cou_classroom'];
header("Content-type:text/html;charset=utf-8"); include "add_user_fun.php"; //$query="select COLUMN_COMMENT, COLUMN_NAME from information_schema.columns where table_schema='choose_lesson_system' and table_name='user_stu'"; //$cn_query=mysql_query($query); //$result_1=mysql_fetch_row($query); //echo($result_1[0]); //print_r($result); function lwreplace($lwchar) { return str_replace(' ', '', $lwchar); } if (trim($_POST['user_name']) != NULL) { //echo($_POST['user_name']); //echo("<script>alert('锟斤拷锟斤拷晒锟絪s');</script>"); //******************************锟斤拷锟斤拷锟斤拷一些锟斤拷锟斤拷没锟叫革拷锟斤拷锟睫革拷权锟斤拷*****锟斤拷锟斤拷说学院 $tea_id = lwreplace(trim($_POST['tea_id'])); $tea_pass = $tea_id; //$tea_pass=trim($_POST['tea_pass']); $user_name = trim($_POST['user_name']); $tea_sex = trim($_POST['tea_sex']); $tea_sch = trim($_POST['tea_sch']); $jud = add_tea_user($tea_id, $tea_sch, $tea_pass, $user_name, $tea_sex); if ($jud) { echo '<script>alert("锟斤拷锟接成癸拷")</script>'; } //$sql="update `user_stu` set ch_name='$user_name', en_name='$en_name', stu_sex='$stu_sex', stu_maj='$stu_maj', stu_gra='$stu_gra', stu_clas='$stu_clas', stu_bir='$stu_bir', passport_id='$passport_id', stu_nation='$stu_nation', stu_address1='$stu_address1', stu_address2='$stu_address2', contact_way='$contact_way', fri_contact_way='$fri_contact_way' where stu_id='201063502140'"; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">