require_once "stud_addapp.class.php"; $citem = new selitem(); $itype = $_SESSION['itype']; $iname = $_SESSION['icode']; $stuno = $_SESSION["studno"]; $studcode = $_SESSION["studcode"]; $irank = $_SESSION['irank']; $trank = getRank($irank); //$showitem=$citem->finditem($icode); if ($_POST['submit']) { // echo $showtime=date("Y-d-m H:i:s"); $itemcode = $citem->setitem($itype, $iname, $irank); $itenc = $itemcode[0]['item_code']; //echo $itenc; // print_r($itemcode); $insertok = $citem->insertapp($itype, $itenc, $studno, $studcode, $showtime); //写入表 } ?> <!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="stud_confaddapp.css" title="text/css"/> <title>home</title> </head> <body> <div id="tijiao" class="zhiti"> 是否确认提交您所选择的项目 <br /> <form method="POST">
require "stud_addapp.class.php"; $studno = $_SESSION["studno"]; $citem = new selitem(); $citem->run(); $show = new stud(); $showinfo = $show->showstud($studno); $itype = $_POST['i_type']; $iname = $_POST['i_name']; $irank = $_POST['i_rank']; $studno = $showinfo[0]['stud_no']; $studcode = $showinfo[0]['stud_orgcode']; if (isset($_POST['submit'])) { $acode = $citem->setitem($itype, $iname, $irank); $code = $acode[0]['item_code']; if ($acode !== null) { $citem->insertapp($itype, $code, $studno, $studcode); } } $title = "申报项目"; require_once "header.php"; ?> <script type="text/javascript"> /*window.onload = function() { if (document.getElementsByTagName) { var s = document.getElementsByTagName("select"); if (s.length > 0) { window.select_current = new Array(); for(var i=0, select; select = s[i]; i++){ select.onfocus = function(){ window.select_current[this.id] = this.selectedIndex; }