第四次作业
代码首页:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>OA系统后台管理</title> </head> <body> <!-- 后台分为上下二部分,其中下部再分为左右二部分,左边显示菜单,右边是对应的内容 --> <table border="0" cellspacing="1" cellpadding="5" width="960"> <!-- 顶部 --> <tr height=60> <td colspan="2"> <iframe src="inc/top.html" name="top" height="70" width="100%" frameborder="0" scrolling="no"></iframe> </td> </tr> <tr><td width="100%" colspan="2"><hr></td></tr> <!-- 中间主体:分左右二栏 --> <tr> <!-- 左边菜单栏 --> <td> <iframe src="inc/left.html" name="left" height="600" width="140" frameborder="0" scrolling="no"></iframe> </td> <!-- 右边内容区 --> <td> <iframe src="inc/default.html" name="right" height="600" width="800" frameborder="0" scrolling="no"></iframe> </td> </tr> <tr><td width="100%" colspan="2"><hr></td></tr> <!-- 底部 --> <tr> <td colspan="2"> <iframe src="inc/footer.html" name="footer" height="70" width="100%" frameborder="0"></iframe> </td> </tr> </table> </body> </html>
代码顶部:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>top</title> </head> <body> <table border="0" bgcolor="skyblue" width="100%"> <tr> <td valign="middle"><img src="../images/logo.png" width="80"></td> <td width="650" valign="middel"><h2>平台管理系统</h2></td> <td valign="middle"><p><a href="">admin</a> <a href="">退出</a></p></td> </tr> </table> </body> </html>
代码中部主体左:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>left</title> </head> <body> <h4><img src="../images/user.jpg" width="30">用户管理</h4> <ul type="none"> <!-- a标签的target属性值设置为要访问的框架的name名即可,这里是在右侧显示:right --> <li><img src="../images/file.jpg" width="20"><a href="user.html" target="right">用户查询</a></li> <li><img src="../images/file.jpg" width="20"><a href="">用户分类</a></li> </ul> <hr> <h4><img src="../images/folder.jpg" width="30">角色管理</h4> <ul type="none"> <li><img src="../images/file.jpg" width="20"><a href="role.html" target="right">角色查询</a></li> <li><img src="../images/file.jpg" width="20"><a href="">权限管理</a></li> </ul> <hr> <h4><img src="../images/folder.jpg" width="30">部门管理</h4> <ul type="none"> <li><img src="../images/file.jpg" width="20"><a href="department.html" target="right">部门查询</a></li> <li><img src="../images/file.jpg" width="20"><a href="">分类管理</a></li> </ul> <hr> <h4><img src="../images/set.jpg" width="20">系统设置</h4> <ul type="none"> <li><img src="../images/file.jpg" width="20"><a href="system.html" target="right">基本配置</a></li> <li><img src="../images/file.jpg" width="20"><a href="">高级配置</a></li> </ul> </body> </html>
代码主体右默认:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>系统首页</title> </head> <body> <table border="1" cellspacing="0" cellpadding="5" bgcolor="#f0f0f0"> <caption><h3>系统信息表</h3></caption> <tr> <th width="160" bgcolor="lightcyan">系统名称</th> <td width="400">泛微 8.1</td> </tr> <tr> <th bgcolor="lightcyan">授权信息</th> <td>XXXXX公司</td> </tr> <tr> <th bgcolor="lightcyan">数据库</th> <td>MySQL 5.7</td> </tr> <tr> <th bgcolor="lightcyan">用户并发数</th> <td>100</td> </tr> <tr> <th bgcolor="lightcyan">用户授权</th> <td>1000</td> </tr> </table> </body> </html>
代码链接1
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>用户管理</title> </head> <body> <table border="1" cellspacing="0" cellpadding="5" width="80%"> <caption><h3>用户管理<small><a href="">添加</a></small></h3></caption> <thead> <!-- bgcolor可以设置行或单元格的背景颜色 --> <tr bgcolor="lightcyan"> <!-- <th>标签内部文本默认会加粗居中显示,非常适合做表头 --> <th>ID</th> <th>用户名</th> <th>头像</th> <th>邮箱</th> <th>状态</th> <th>注册时间</th> <th colspan="2">操作</th> </tr> <tr> <td>01</td> <td>阿大</td> <td><img src="../images/head.jpg" width="30"></td> <td>aaa@php.cn</td> <td>启用</td> <td>2017-09-01</td> <td> <a href=""><img src="../images/edit.jpg" width="30" alt="编辑" title="编辑"></a> <a href=""><img src="../images/del.jpg" width="30" alt="删除" title="删除"></a> </td> </tr> <tr> <td>02</td> <td>阿二</td> <td><img src="../images/head.jpg" width="30"></td> <td>bbb@php.cn</td> <td>启用</td> <td>2017-12-11</td> <td> <a href=""><img src="../images/edit.jpg" width="30" alt="编辑" title="编辑"></a> <a href=""><img src="../images/del.jpg" width="30" alt="删除" title="删除"></a> </td> </tr> <tr> <td>03</td> <td>阿三</td> <td><img src="../images/head.jpg" width="30"></td> <td>ccc@php.cn</td> <td>禁用</td> <td>2018-01-01</td> <td> <a href=""><img src="../images/edit.jpg" width="30" alt="编辑" title="编辑"></a> <a href=""><img src="../images/del.jpg" width="30" alt="删除" title="删除"></a> </td> </tr> <tr> <td>04</td> <td>阿四</td> <td><img src="../images/head.jpg" width="30"></td> <td>ddd@php.cn</td> <td>启用</td> <td>2017-02-01</td> <td> <a href=""><img src="../images/edit.jpg" width="30" alt="编辑" title="编辑"></a> <a href=""><img src="../images/del.jpg" width="30" alt="删除" title="删除"></a> </td> </tr> <tr> <td>05</td> <td>阿五</td> <td><img src="../images/head.jpg" width="30"></td> <td>eee@php.cn</td> <td>启用</td> <td>2016-10-21</td> <td> <a href=""><img src="../images/edit.jpg" width="30" alt="编辑" title="编辑"></a> <a href=""><img src="../images/del.jpg" width="30" alt="删除" title="删除"></a> </td> </tr> </tbody> </table> <p> <a href="">首页</a> <a href="">上一页</a> <a href="">1</a> <a href="">2</a> <a href="">3</a> <a href="">...</a> <a href="">下一页</a> <a href="">尾页</a> </p> </body> </html>
代码链接2
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>商品管理</title> </head> <body> <table border="1" cellspacing="0" cellpadding="5" width="80%"> <caption><h3>商品管理<small><a href="">添加</a></small></h3></caption> <thead> <!-- bgcolor可以设置行或单元格的背景颜色 --> <tr bgcolor="lightcyan"> <!-- <th>标签内部文本默认会加粗居中显示,非常适合做表头 --> <th>ID</th> <th >名称</th> <th>缩略图</th> <th>级别</th> <th>状态</th> <th colspan="2">操作</th> </tr> <tr> <td>01</td> <td>大娃</td> <td><img src="../images/role.jpg" width="30"></td> <td>天字一号</td> <td>正常</td> <td>2017-09-01</td> <td> <a href=""><img src="../images/edit.jpg" width="30" alt="编辑" title="编辑"></a> <a href=""><img src="../images/del.jpg" width="30" alt="删除" title="删除"></a> </td> </tr> <tr> <td>02</td> <td>二娃</td> <td><img src="../images/role.jpg" width="30"></td> <td>天字二号</td> <td>弃用</td> <td>2017-12-11</td> <td> <a href=""><img src="../images/edit.jpg" width="30" alt="编辑" title="编辑"></a> <a href=""><img src="../images/del.jpg" width="30" alt="删除" title="删除"></a> </td> </tr> <tr> <td>03</td> <td>三娃</td> <td><img src="../images/role.jpg" width="30"></td> <td>天字三号</td> <td>正常</td> <td>2018-01-01</td> <td> <a href=""><img src="../images/edit.jpg" width="30" alt="编辑" title="编辑"></a> <a href=""><img src="../images/del.jpg" width="30" alt="删除" title="删除"></a> </td> </tr> <tr> <td>04</td> <td>四娃</td> <td><img src="../images/role.jpg" width="30"></td> <td>天字四号</td> <td>正常</td> <td>2017-02-01</td> <td> <a href=""><img src="../images/edit.jpg" width="30" alt="编辑" title="编辑"></a> <a href=""><img src="../images/del.jpg" width="30" alt="删除" title="删除"></a> </td> </tr> <tr> <td>05</td> <td>五娃</td> <td><img src="../images/role.jpg" width="30"></td> <td>天字五号</td> <td>正常</td> <td>2018-01-21</td> <td> <a href=""><img src="../images/edit.jpg" width="30" alt="编辑" title="编辑"></a> <a href=""><img src="../images/del.jpg" width="30" alt="删除" title="删除"></a> </td> </tr> </tbody> </table> <p> <a href="">首页</a> <a href="">上一页</a> <a href="">1</a> <a href="">2</a> <a href="">3</a> <a href="">...</a> <a href="">下一页</a> <a href="">尾页</a> </p> </body> </html>
代码链接3:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>订单管理</title> </head> <body> <table border="1" cellspacing="0" cellpadding="5" width="80%"> <caption><h3>订单管理<small><a href="">添加</a></small></h3></caption> <thead> <!-- bgcolor可以设置行或单元格的背景颜色 --> <tr bgcolor="lightcyan"> <!-- <th>标签内部文本默认会加粗居中显示,非常适合做表头 --> <th>部门编号</th> <th>部门名称</th> <th>缩略图</th> <th>部门信息</th> <th>状态</th> <th>人数</th> <th colspan="2">操作</th> </tr> <tr> <td>01</td> <td>办公室</td> <td><img src="../images/office.jpg" width="30"></td> <td>实权部门</td> <td>开启</td> <td>8</td> <td> <a href=""><img src="../images/edit.jpg" width="30" alt="编辑" title="编辑"></a> <a href=""><img src="../images/del.jpg" width="30" alt="删除" title="删除"></a> </td> </tr> <tr> <td>02</td> <td>工程部</td> <td><img src="../images/office.jpg" width="30"></td> <td>苦力部门</td> <td>开启</td> <td>10</td> <td> <a href=""><img src="../images/edit.jpg" width="30" alt="编辑" title="编辑"></a> <a href=""><img src="../images/del.jpg" width="30" alt="删除" title="删除"></a> </td> </tr> <tr> <td>03</td> <td>财务部</td> <td><img src="../images/office.jpg" width="30"></td> <td>管钱的</td> <td>开启</td> <td>3</td> <td> <a href=""><img src="../images/edit.jpg" width="30" alt="编辑" title="编辑"></a> <a href=""><img src="../images/del.jpg" width="30" alt="删除" title="删除"></a> </td> </tr> <tr> <td>04</td> <td>人力资源部</td> <td><img src="../images/office.jpg" width="30"></td> <td>都不待见</td> <td>封存</td> <td>1</td> <td> <a href=""><img src="../images/edit.jpg" width="30" alt="编辑" title="编辑"></a> <a href=""><img src="../images/del.jpg" width="30" alt="删除" title="删除"></a> </td> </tr> <tr> <td>05</td> <td>商务部</td> <td><img src="../images/office.jpg" width="30"></td> <td>拉客户</td> <td>开启</td> <td>5</td> <td> <a href=""><img src="../images/edit.jpg" width="30" alt="编辑" title="编辑"></a> <a href=""><img src="../images/del.jpg" width="30" alt="删除" title="删除"></a> </td> </tr> </tbody> </table> <p> <a href="">首页</a> <a href="">上一页</a> <a href="">1</a> <a href="">2</a> <a href="">3</a> <a href="">...</a> <a href="">下一页</a> <a href="">尾页</a> </p> </body> </html>
代码链接4:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>系统设置</title> </head> <body> <!-- 复用一个default.html页面代码 --> <table border="0" cellspacing="0" cellpadding="5"> <caption> <h3>系统配置信息表</h3> <hr width="80%"> </caption> <tr> <td width="160"><label for="title">网站标题:</label></td> <td width="400"><input type="text" id="title" name="title" value="" placeholder="不多于28个字符" size="50"></td> </tr> <tr> <td><label for="keywords">网站关键字:</label></td> <td><input type="text" id="keywords" name="keywords" value="" placeholder="不多于40个字符" size="50"></td> </tr> <tr> <td valign="middle"><label for="desc">网站描述:</label></td> <td><textarea id="desc" name="desc" rows="5" cols="50" placeholder="不多于120个字符"></textarea></td> </tr> <tr> <td colspan="2"> <input type="image" name="submit" src="../images/submit.jpg" width="90"> </td> </tr> </table> </body> </html>
手抄: