| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 806 人关注过本帖
标题:循环显示问题!
只看楼主 加入收藏
xuanwang
Rank: 1
等 级:新手上路
帖 子:117
专家分:0
注 册:2009-6-29
收藏
得分:0 
这个程序中只有查询功能,没的添加数据功能,难道不能在循环中解决吗,或者还有别的更好的方法。。。
2009-07-23 08:23
xuanwang
Rank: 1
等 级:新手上路
帖 子:117
专家分:0
注 册:2009-6-29
收藏
得分:0 
以下是个静态页面,就是要达到这种效果,要循环输出
后三列:
总计=合计+合计
网上=网上+网上
纸介=纸介+纸介

<html xmlns="http://www.
<head>
<title> </title>
<script type="text/javascript">
</script>
</head>
<body>
<div style="background:#CCFFFF;text-align:center;">
<div style="text-align:center">
    <br />
    <table style="width: 843px; height: 240px" border="1">
        <tr>
            <td rowspan="2" style="width: 19px">
                序号 </td>
            <td rowspan="2" style="width: 207px">
                &nbsp; &nbsp;
                教学服务站 </td>
            <td colspan="8" style="height: 44px">
                &nbsp; &nbsp; &nbsp;&nbsp;
                学历教育报名人数 </td>
            <td style="height: 44px" colspan="5">
                &nbsp;
                非学历教育报名人数 </td>
            <td style="width: 32px" rowspan="2">
                总计 </td>
            <td style="width: 33px" rowspan="2">
                网上 </td>
            <td style="width: 30px" rowspan="2">
                纸介 </td>
        </tr>
        <tr>
            <td style="width: 31px">
                合计 </td>
            <td style="width: 32px">
                网上 </td>
            <td style="width: 31px">
                纸介 </td>
            <td style="width: 67px">
                高中起点专科 </td>
            <td style="width: 69px">
                高中起点本科 </td>
            <td style="width: 50px">
                专科起点本科 </td>
            <td colspan="2" style="width: 50px">
                本科第二学历 </td>
            <td style="width: 40px">
                合计 </td>
            <td style="width: 39px">
                网上 </td>
            <td style="width: 37px">
                纸介 </td>
            <td style="width: 46px">
                单科选修 </td>
            <td style="width: 46px">
                专业进修 </td>
        </tr>
        <tr>
            <td style="width: 19px">
                1 </td>
            <td style="width: 207px">
                北京教学服务中心 </td>
            <td style="width: 31px">
                5 </td>
            <td style="width: 32px">
                0 </td>
            <td style="width: 31px">
                5 </td>
            <td style="width: 67px">
                0 </td>
            <td style="width: 69px">
                0 </td>
            <td style="width: 50px">
                0 </td>
            <td style="width: 179px" colspan="2">
                5 </td>
            <td style="width: 40px">
                5 </td>
            <td style="width: 39px">
                0 </td>
            <td style="width: 37px">
                5 </td>
            <td style="width: 46px">
                0 </td>
            <td style="width: 46px">
                5 </td>
            <td style="width: 32px">
                10 </td>
            <td style="width: 33px">
                0 </td>
            <td style="width: 30px">
                10 </td>
        </tr>
        <tr>
            <td style="width: 19px">
                2 </td>
            <td style="width: 207px">
                广州教学服务中心 </td>
            <td style="width: 31px">
                5 </td>
            <td style="width: 32px">
                0 </td>
            <td style="width: 31px">
                5 </td>
            <td style="width: 67px">
                0 </td>
            <td style="width: 69px">
                0 </td>
            <td style="width: 50px">
                0 </td>
            <td style="width: 179px" colspan="2">
                5 </td>
            <td style="width: 40px">
                5 </td>
            <td style="width: 39px">
                0 </td>
            <td style="width: 37px">
                5 </td>
            <td style="width: 46px">
                0 </td>
            <td style="width: 46px">
                5 </td>
            <td style="width: 32px">
                10 </td>
            <td style="width: 33px">
                0 </td>
            <td style="width: 30px">
                10 </td>
        </tr>
        <tr>
            <td style="width: 19px">
                3 </td>
            <td style="width: 207px">
                安徽教学服务中心 </td>
            <td style="width: 31px">
                5 </td>
            <td style="width: 32px">
                0 </td>
            <td style="width: 31px">
                5 </td>
            <td style="width: 67px">
                0 </td>
            <td style="width: 69px">
                0 </td>
            <td style="width: 50px">
                0 </td>
            <td style="width: 179px" colspan="2">
                5 </td>
            <td style="width: 40px">
                5 </td>
            <td style="width: 39px">
                0 </td>
            <td style="width: 37px">
                5 </td>
            <td style="width: 46px">
                0 </td>
            <td style="width: 46px">
                5 </td>
            <td style="width: 32px">
                10 </td>
            <td style="width: 33px">
                0 </td>
            <td style="width: 30px">
                10 </td>
        </tr>
        <tr>
            <td colspan="2">
                &nbsp; &nbsp;&nbsp; 合计 </td>
            <td style="width: 31px">
                15 </td>
            <td style="width: 32px">
                0 </td>
            <td style="width: 31px">
                15 </td>
            <td style="width: 67px">
                0 </td>
            <td style="width: 69px">
                0 </td>
            <td style="width: 50px">
                0 </td>
            <td colspan="2" style="width: 179px">
                15 </td>
            <td style="width: 40px">
                15 </td>
            <td style="width: 39px">
                0 </td>
            <td style="width: 37px">
                15 </td>
            <td style="width: 46px">
                0 </td>
            <td style="width: 46px">
                15 </td>
            <td style="width: 32px">
                30 </td>
            <td style="width: 33px">
                0 </td>
            <td style="width: 30px">
                30 </td>
        </tr>
    </table>
    <br />
</div>
</div>
</body>
</html>
2009-07-23 09:32
快速回复:循环显示问题!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.018298 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved