コード例 #1
0
ファイル: test.php プロジェクト: yuxujian/YuNote
<?php

require_once 'empService.class.php';
$empService = new empService();
$res = $empService->get_emp_info(3);
echo "ok----";
echo $res;
コード例 #2
0
ファイル: updateEmp.php プロジェクト: yuxujian/YuNote
<?php 
require_once '../../model/empService.class.php';
require_once '../../model/emp.class.php';
if (!empty($_GET['flag'])) {
    $flag = $_GET['flag'];
    if ($flag == 'update') {
        $empService = new empService();
        $emp_class = $empService->get_emp_info($_GET['id']);
    }
}
?>

<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>

</head>
<body>
<h1>修改员工</h1>
<form action="/empManage/controller/empProcess.php" method="post">
<table>
<tr><td>ID</td><td><input type="text" name="id" value="<?php 
echo $emp_class->getId();
?>
" readonly="readonly"/></td></tr>
<tr><td>用户名</td><td><input type="text" name="name" value="<?php 
echo $emp_class->getName();
?>
"/></td></tr>
<tr><td>等级</td><td><input type="text" name="grade" value="<?php