示例#1
0
///
///	[Filename]
///		学生项目申请页面
///
///	[Description]
///		学生项目申请申请页面
///
///	[History]
///		Date        	Version  	Author    	Content
///		---------- 	 -------  	--------  	 ------------------------------------
///	    2009/11/16      1.1    	龙首成      	  学生管理
// header('Content-Type:   text/html;   charset=utf-8');
require "include/sessionstud.php";
require "include/function.include.php";
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);
    //写入表
示例#2
0
///	[Filename]
///		学生项目申请页面
///
///	[Description]
///		学生项目申请申请页面
///
///	[History]
///		Date        	Version  	Author    	Content
///		---------- 	 -------  	--------  	 ------------------------------------
///	    2009/11/16      1.1    	龙首成      	  学生管理
// header('Content-Type:   text/html;   charset=utf-8');
require "include/sessionstud.php";
require "stud_home.class.php";
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);
    }
}