程式CODE

2013年4月7日 星期日

SFS3函式庫

取得年度學期選單
$date_select=class_ok_setup_year($sel_year,$sel_seme,"year_seme","jumpMenu_seme");

<script language='JavaScript'>
function jumpMenu(){
location=\"$PHP_SELF?act=$act&&year_seme=\" + document.myform.year_seme.options[document.myform.year_seme.selectedIndex].value + \"&class_id=\" + document.myform.class_id.options[document.myform.class_id.selectedIndex].value;
}
</script>




年級與班級選單
class_select=get_class_select($sel_year,$sel_seme,"","class_id","jumpMenu",$class_id);

<script language='JavaScript'>

function jumpMenu_seme(){
if(document.myform.year_seme.options[document.myform.year_seme.selectedIndex].value!=''){
location=\"$PHP_SELF?act=$act&year_seme=\" + document.myform.year_seme.options[document.myform.year_seme.selectedIndex].value;
}
}

</script>

沒有留言:

張貼留言