Student.js
2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import React from 'react';
import TableRow from '@material-ui/core/TableRow';
import TableCell from '@material-ui/core/TableCell';
import StudentDelete from './StudentDelete';
class Student extends React.Component{
render(){
return(
<TableRow>
<TableCell> {this.props.st_Code} </TableCell>
<TableCell> {this.props.st_Name} </TableCell>
<TableCell> {this.props.st_Id} </TableCell>
<TableCell> {this.props.st_Major} </TableCell>
<TableCell> {this.props.st_Midscore} </TableCell>
<TableCell> {this.props.st_Finalscore} </TableCell>
<TableCell> {this.props.st_Assignscore} </TableCell>
<TableCell> {this.props.st_Attendscore} </TableCell>
<TableCell> {this.props.st_Score} </TableCell>
<TableCell><StudentDelete stateRefresh={this.props.stateRefresh} st_Code={this.props.st_Code}/></TableCell>
</TableRow>
/*<div>
<Searchscores st_Midscore={this.props.st_Midscore}
st_Finalscore = {this.props.st_Finalscore}
st_Assignscore = {this.props.st_Assignscore}
st_Attendscore = {this.props.st_Attendscore}/>
<Searchscore st_Score={this.props.st_Score}/>
<Searchothers st_Midscore={this.props.st_Midscore}
st_Finalscore = {this.props.st_Finalscore}
st_Assignscore = {this.props.st_Assignscore}
st_Attendscore = {this.props.st_Attendscore}
st_Score = {this.props.st_Score}/>
</div>*/
)
}
}
class Searchscores extends React.Component{
render(){
return(
<div>
<p>{this.props.st_Midscore}</p>
<p>{this.props.st_Finalscore}</p>
<p>{this.props.st_Assignscore}</p>
<p>{this.props.st_Attendscore}</p>
</div>
)
}
}
class Searchscore extends React.Component{
render(){
return(
<div>
<p>{this.props.st_Score}</p>
</div>
)
}
}
class Searchothers extends React.Component{
render(){
return(
<div>
<p>{this.props.st_Midscore}</p>
<p>{this.props.st_Finalscore}</p>
<p>{this.props.st_Assignscore}</p>
<p>{this.props.st_Attendscore}</p>
<p>{this.props.st_Score}</p>
</div>
)
}
}
export default Student;