记录我的asp.Net的课程设计
效果展示
设计思想
- 疫情期间学生提交每天自己的健康状况
- 班主任可查看自己班的情况和批准请假的学生
参考资料
参考文献
《.net mvc 案例教程》
参考网站
部分代码展示
css界面美化
<style type="text/css">
#biaoge th {
padding-top: 5px;
padding-bottom: 4px;
background-color: #FFEBCD;
padding-top: 8px;
padding-bottom: 6px;
color: #000000;
}
/*#check th {
padding-top: 7px;
padding-bottom: 5px;
background-color: #FFEBCD;
color: #000000;*/
/*.le {
float: left;
position: absolute;
top:150px;
left: 300px;
}*/
/*.ri {
float: right ;
position:absolute;
top:150px;
left: 600px;
}*/
/*.btn {
position: absolute;
top: 600px;
left: 600px;
}*/
#lie {
text-align: right;
}
#zhengwen {
background-color: #FFEBCD;
background-image: url('../../img/1.jpg');
}
#btnsubmit {
width:100px;
height:40px;
background-color:#0026ff;
color:#000000;
font-size:20px;
width: 100px;
height: 40px;
background-color: #0026ff;
color: #000000;
font-size: 20px;
}
input{
font-size:5px;
color:#808080;
.biao {
width: 400px;
height: 550px;
border: groove 3px blue;
text-align: center;
background-color: #808080;
}
input {
font-size: 5px;
color: #808080;
}
img{
float:right;
}
h1{
color:white;
text-align:left;
}
</style>
</head>
<body id="zhengwen">
<h1 style="text-align:center">学生每日健康报备</h1>
<h1 >学生每日健康报备:</h1>
<div class="biao">
<table align="center" id="biaoge">
<tr>
<th id="lie">学生姓名:</th>
<th><input type="text" name="name" value="请输入您的姓名"onFocus="this.value=''"></th>
</tr>
<tr>
<th id="lie">联系电话:</th>
<th><input type="text" name="phone"value="请输入您常用联系电话"onFocus="this.value=''"></th>
</tr>
<tr>
<th id="lie">家庭住址:</th>
<th><input type="text" name="address"value="请输入您的现详细住址"onFocus="this.value=''"></th>
</tr>
<tr>
<th id="lie">今日体温:</th>
<th><input type="text" name="tiwen"></th>
</tr>
<tr>
<th id="lie">身体症状:</th>
<th>
<form>
<input type="checkbox" name="vehicle" value="Bike">良好
<input type="checkbox" name="vehicle" value="Car">发烧
<input type="checkbox" name="vehicle" value="Car">咳嗽<br>
<input type="checkbox" name="vehicle" value="Car">呕吐
<input type="checkbox" name="vehicle" value="Car">头痛
<input type="checkbox" name="vehicle" value="Car">昏迷
</form>
<table id="biaoge" align="center">
</th>
</tr>
<tr>
<th id="lie">是否来自武汉市:</th>
<th>
<label><input name="wuhanshi" type="radio" value="" />是 </label>
   
<label><input name="wuhanshi" type="radio" value="" />否 </label>
</th>
</tr>
<tr>
<th id="lie">是否来自湖北省:</th>
<th>
<label><input name="hubeisheng" type="radio" value="" />是 </label>
   
<label><input name="hubeisheng" type="radio" value="" />否 </label>
</th>
</tr>
<tr>
<th id="lie">是否接触过确诊人员:</th>
<th>
<label><input name="quezhen" type="radio" value="" />是 </label>
   
<label><input name="quezhen" type="radio" value="" />否 </label>
</th>
</tr>
<tr>
<th id="lie">是否接触疑似人员:</th>
<th>
<label><input name="yisi" type="radio" value="" />是 </label>
   
<label><input name="yisi" type="radio" value="" />否 </label>
</th>
</tr>
</table>
<br>
<div style="text-align:center">
<tr>
<th id="lie">学生姓名:</th>
<th><input type="text" name="name" value="请输入您的姓名" onFocus="this.value=''"></th>
</tr>
<tr>
<th id="lie">联系电话:</th>
<th><input type="text" name="phone" value="请输入您常用联系电话" onFocus="this.value=''"></th>
</tr>
<tr>
<th id="lie">家庭住址:</th>
<th><input type="text" name="address" value="请输入您的现详细住址" onFocus="this.value=''"></th>
</tr>
<tr>
<th id="lie">今日体温:</th>
<th><input type="text" name="tiwen"></th>
</tr>
<tr>
<th id="lie">出行方式:</th>
<th><input type="text" name="tiwen" value="私家车/火车/高铁" onFocus="this.value=''"></th>
</tr>
<input type="submit"name="btnsubmit" id="btnsubmit" value="提交" runat="server" οnclick="javascript:alert('提交成功!')"
onserverclick="btnSubmit_ServerClick" class="but_01" />
<tr>
<th id="lie">身体症状:</th>
<th>
</div>
<form>
<input type="checkbox" name="vehicle" value="Bike">良好
<input type="checkbox" name="vehicle" value="Car">发烧
<input type="checkbox" name="vehicle" value="Car">咳嗽<br>
<input type="checkbox" name="vehicle" value="Car">呕吐
<input type="checkbox" name="vehicle" value="Car">头痛
<input type="checkbox" name="vehicle" value="Car">昏迷
</form>
</th>
</tr>
<tr>
<th id="lie">是否来自武汉市:</th>
<th>
<label><input name="wuhanshi" type="radio" value="" />是 </label>
   
<label><input name="wuhanshi" type="radio" value="" />否 </label>
</th>
</tr>
<tr>
<th id="lie">是否来自湖北省:</th>
<th>
<label><input name="hubeisheng" type="radio" value="" />是 </label>
   
<label><input name="hubeisheng" type="radio" value="" />否 </label>
</th>
</tr>
<tr>
<th id="lie">是否接触过确诊人员:</th>
<th>
<label><input name="quezhen" type="radio" value="" />是 </label>
   
<label><input name="quezhen" type="radio" value="" />否 </label>
</th>
</tr>
<tr>
<th id="lie">是否接触疑似人员:</th>
<th>
<label><input name="yisi" type="radio" value="" />是 </label>
   
<label><input name="yisi" type="radio" value="" />否 </label>
</th>
</tr>
</table>
<br />
@*<div class="btn" >*@
<input type="submit" name="btnsubmit" id="btnsubmit" value="提交" runat="server" onclick="javascript:alert('提交成功!')"
onserverclick="btnSubmit_ServerClick" class="but_01" />
</div>
</body>
用到的语言
- html
- C#
- JAVA
- javascript
- SQL语句