| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1587 人关注过本帖
标题:江湖急救:典型分页问题
只看楼主 加入收藏
junxipang
Rank: 1
等 级:新手上路
威 望:1
帖 子:9
专家分:0
注 册:2008-8-28
收藏
 问题点数:0 回复次数:7 
江湖急救:典型分页问题
我现在在做一个在线考试系统,考试题目从数据库提取后生成XML文件
但不知道如何进行分页,网上baidu,google了好长时间都没找到
只找到了一种题型的分页方法,但四种题型就不知道怎么做了
请各位高人帮忙解决一下

<test>
  <danxuan>
    <DanX_Id>6</DanX_Id>
    <DanX_Question>单选1</DanX_Question>
    <DanX_Choice1>g</DanX_Choice1>
    <DanX_Choice2>g</DanX_Choice2>
    <DanX_Choice3>g</DanX_Choice3>
    <DanX_Choice4>gg</DanX_Choice4>
    <DanX_Choice5>g</DanX_Choice5>
    <DanX_Answer>g</DanX_Answer>
    <DanX_Score>55</DanX_Score>
    <DanX_ChoosedMark>false</DanX_ChoosedMark>
  </danxuan>
  <danxuan>
    <DanX_Id>7</DanX_Id>
    <DanX_Question>单选2</DanX_Question>
    <DanX_Choice1>fgfd</DanX_Choice1>
    <DanX_Choice2>gdg</DanX_Choice2>
    <DanX_Choice3>gddg</DanX_Choice3>
    <DanX_Choice4>gdg</DanX_Choice4>
    <DanX_Choice5>gdg</DanX_Choice5>
    <DanX_Answer>dgdfg</DanX_Answer>
    <DanX_Score>22</DanX_Score>
    <DanX_ChoosedMark>false</DanX_ChoosedMark>
  </danxuan>
  <danxuan>
    <DanX_Id>9</DanX_Id>
    <DanX_Question>单选3</DanX_Question>
    <DanX_Choice1>dgdg</DanX_Choice1>
    <DanX_Choice2>fff</DanX_Choice2>
    <DanX_Choice3>fff</DanX_Choice3>
    <DanX_Choice4>fff</DanX_Choice4>
    <DanX_Choice5>fff</DanX_Choice5>
    <DanX_Answer>ff</DanX_Answer>
    <DanX_Score>99</DanX_Score>
    <DanX_ChoosedMark>false</DanX_ChoosedMark>
  </danxuan>
  <danxuan>
    <DanX_Id>14</DanX_Id>
    <DanX_Question>单选4</DanX_Question>
    <DanX_Choice1>df</DanX_Choice1>
    <DanX_Choice2>dff</DanX_Choice2>
    <DanX_Choice3>df</DanX_Choice3>
    <DanX_Choice4>fdf</DanX_Choice4>
    <DanX_Choice5>fdf</DanX_Choice5>
    <DanX_Answer>77</DanX_Answer>
    <DanX_Score>99</DanX_Score>
    <DanX_ChoosedMark>false</DanX_ChoosedMark>
  </danxuan>
  <danxuan>
    <DanX_Id>15</DanX_Id>
    <DanX_Question>单选5</DanX_Question>
    <DanX_Choice1>f</DanX_Choice1>
    <DanX_Choice2>ff</DanX_Choice2>
    <DanX_Choice3>ff</DanX_Choice3>
    <DanX_Choice4>f</DanX_Choice4>
    <DanX_Choice5>f</DanX_Choice5>
    <DanX_Answer>g09</DanX_Answer>
    <DanX_Score>9</DanX_Score>
    <DanX_ChoosedMark>false</DanX_ChoosedMark>
  </danxuan>
  <danxuan>
    <DanX_Id>17</DanX_Id>
    <DanX_Question>单选6</DanX_Question>
    <DanX_Choice1>f</DanX_Choice1>
    <DanX_Choice2>ff</DanX_Choice2>
    <DanX_Choice3>f</DanX_Choice3>
    <DanX_Choice4>f</DanX_Choice4>
    <DanX_Choice5>f</DanX_Choice5>
    <DanX_Answer>f</DanX_Answer>
    <DanX_Score>6</DanX_Score>
    <DanX_ChoosedMark>false</DanX_ChoosedMark>
  </danxuan>
  <danxuan>
    <DanX_Id>18</DanX_Id>
    <DanX_Question>单选7</DanX_Question>
    <DanX_Choice1>s</DanX_Choice1>
    <DanX_Choice2>s</DanX_Choice2>
    <DanX_Choice3>ss</DanX_Choice3>
    <DanX_Choice4>s</DanX_Choice4>
    <DanX_Choice5>s</DanX_Choice5>
    <DanX_Answer>s</DanX_Answer>
    <DanX_Score>55</DanX_Score>
  </danxuan>
  <danxuan>
    <DanX_Id>19</DanX_Id>
    <DanX_Question>单选8</DanX_Question>
    <DanX_Choice1>d</DanX_Choice1>
    <DanX_Choice2>d</DanX_Choice2>
    <DanX_Choice3>d</DanX_Choice3>
    <DanX_Choice4>d</DanX_Choice4>
    <DanX_Choice5>dd</DanX_Choice5>
    <DanX_Answer>d8</DanX_Answer>
    <DanX_Score>8</DanX_Score>
  </danxuan>
  <danxuan>
    <DanX_Id>20</DanX_Id>
    <DanX_Question>单选9</DanX_Question>
    <DanX_Choice1>dfd</DanX_Choice1>
    <DanX_Choice2>dfd</DanX_Choice2>
    <DanX_Choice3>dfdf</DanX_Choice3>
    <DanX_Choice4 />
    <DanX_Choice5 />
    <DanX_Answer />
    <DanX_Score>0</DanX_Score>
  </danxuan>
  <danxuan>
    <DanX_Id>21</DanX_Id>   
      <DanX_Question>单选10</DanX_Question>
    <DanX_Choice1>dfd</DanX_Choice1>
    <DanX_Choice2>dfd</DanX_Choice2>
    <DanX_Choice3>dfdf</DanX_Choice3>
    <DanX_Choice4 />
    <DanX_Choice4 />
    <DanX_Choice5 />
    <DanX_Answer />
    <DanX_Score>0</DanX_Score>
  </danxuan>
  <duoxuan>
    <DuoX_Id>1</DuoX_Id>
    <DuoX_Question>多选1</DuoX_Question>
    <DuoX_Choice1>ll</DuoX_Choice1>
    <DuoX_Choice2>ll</DuoX_Choice2>
    <DuoX_Choice3>l</DuoX_Choice3>
    <DuoX_Choice4>l</DuoX_Choice4>
    <DuoX_Answer>ee</DuoX_Answer>
    <DuoX_Score>33</DuoX_Score>
  </duoxuan>
  <duoxuan>
    <DuoX_Id>4</DuoX_Id>
    <DuoX_Question>多选2</DuoX_Question>
    <DuoX_Choice1>dd</DuoX_Choice1>
    <DuoX_Choice2>dd</DuoX_Choice2>
    <DuoX_Choice3>dd</DuoX_Choice3>
    <DuoX_Choice4>dd</DuoX_Choice4>
    <DuoX_Choice5>dd</DuoX_Choice5>
    <DuoX_Answer>dddd</DuoX_Answer>
    <DuoX_Score>66</DuoX_Score>
  </duoxuan>
  <duoxuan>
    <DuoX_Id>5</DuoX_Id>
    <DuoX_Question>多选3</DuoX_Question>
    <DuoX_Choice1>dfs</DuoX_Choice1>
    <DuoX_Choice2>fdsfs</DuoX_Choice2>
    <DuoX_Choice3>fsdfsdfsf</DuoX_Choice3>
    <DuoX_Choice4>fs</DuoX_Choice4>
    <DuoX_Choice5>f</DuoX_Choice5>
    <DuoX_Answer>99</DuoX_Answer>
    <DuoX_Score>99</DuoX_Score>
  </duoxuan>
  <duoxuan>
    <DuoX_Id>6</DuoX_Id>
    <DuoX_Question>多选4</DuoX_Question>
    <DuoX_Choice1>yy</DuoX_Choice1>
    <DuoX_Choice2>yyy</DuoX_Choice2>
    <DuoX_Choice3>yy</DuoX_Choice3>
    <DuoX_Choice4>yy</DuoX_Choice4>
    <DuoX_Choice5>yy</DuoX_Choice5>
    <DuoX_Answer>77</DuoX_Answer>
    <DuoX_Score>77</DuoX_Score>
  </duoxuan>
  <duoxuan>
    <DuoX_Id>7</DuoX_Id>
    <DuoX_Question>多选5</DuoX_Question>
    <DuoX_Choice1>gg</DuoX_Choice1>
    <DuoX_Choice2>ggg</DuoX_Choice2>
    <DuoX_Choice3>gg</DuoX_Choice3>
    <DuoX_Choice4>gg</DuoX_Choice4>
    <DuoX_Choice5>gg</DuoX_Choice5>
    <DuoX_Answer>gg</DuoX_Answer>
    <DuoX_Score>55</DuoX_Score>
  </duoxuan>
  <duoxuan>
    <DuoX_Id>8</DuoX_Id>
    <DuoX_Question>多选6</DuoX_Question>
    <DuoX_Choice1>ff</DuoX_Choice1>
    <DuoX_Choice2>ff</DuoX_Choice2>
    <DuoX_Choice3>ff</DuoX_Choice3>
    <DuoX_Choice4>f</DuoX_Choice4>
    <DuoX_Choice5>f</DuoX_Choice5>
    <DuoX_Answer>r</DuoX_Answer>
    <DuoX_Score>33</DuoX_Score>
  </duoxuan>
  <duoxuan>
    <DuoX_Id>9</DuoX_Id>
    <DuoX_Question>多选7</DuoX_Question>
    <DuoX_Choice1>df</DuoX_Choice1>
    <DuoX_Choice2>df</DuoX_Choice2>
    <DuoX_Choice3>fdf</DuoX_Choice3>
    <DuoX_Choice4>fdf</DuoX_Choice4>
    <DuoX_Choice5>dfdf</DuoX_Choice5>
    <DuoX_Answer>fdf</DuoX_Answer>
    <DuoX_Score>77</DuoX_Score>
  </duoxuan>
  <duoxuan>
    <DuoX_Id>10</DuoX_Id>
    <DuoX_Question>多选8</DuoX_Question>
    <DuoX_Choice1>df</DuoX_Choice1>
    <DuoX_Choice2>dfdf</DuoX_Choice2>
    <DuoX_Choice3>fsfsf</DuoX_Choice3>
    <DuoX_Choice4>fsfsf</DuoX_Choice4>
    <DuoX_Choice5>fsfs</DuoX_Choice5>
    <DuoX_Answer>88</DuoX_Answer>
    <DuoX_Score>99</DuoX_Score>
  </duoxuan>
  <duoxuan>
    <DuoX_Id>11</DuoX_Id>
    <DuoX_Question>多选9</DuoX_Question>
    <DuoX_Choice1 />
    <DuoX_Choice2 />
    <DuoX_Choice3 />
    <DuoX_Choice4 />
    <DuoX_Choice5 />
    <DuoX_Answer />
    <DuoX_Score>0</DuoX_Score>
  </duoxuan>
  <duoxuan>
    <DuoX_Id>12</DuoX_Id>
    <DuoX_Question>多选10</DuoX_Question>
    <DuoX_Choice1>null</DuoX_Choice1>
    <DuoX_Choice2 />
    <DuoX_Choice3 />
    <DuoX_Choice4 />
    <DuoX_Choice5 />
    <DuoX_Answer />
    <DuoX_Score>0</DuoX_Score>
  </duoxuan>
  <panduan>
    <PD_Id>1</PD_Id>
    <PD_Question>判断1</PD_Question>
    <PD_Answer>false</PD_Answer>
    <PD_Score>1121</PD_Score>
  </panduan>
  <panduan>
    <PD_Id>2</PD_Id>
    <PD_Question>判断2</PD_Question>
    <PD_Answer>true</PD_Answer>
    <PD_Score>1451</PD_Score>
  </panduan>
  <panduan>
    <PD_Id>3</PD_Id>
    <PD_Question>判断3</PD_Question>
    <PD_Answer>true</PD_Answer>
    <PD_Score>12</PD_Score>
  </panduan>
  <panduan>
    <PD_Id>4</PD_Id>
    <PD_Question>判断4</PD_Question>
    <PD_Answer>false</PD_Answer>
    <PD_Score>454</PD_Score>
  </panduan>
  <panduan>
    <PD_Id>5</PD_Id>
    <PD_Question>判断5</PD_Question>
    <PD_Answer>false</PD_Answer>
    <PD_Score>32</PD_Score>
  </panduan>
  <panduan>
    <PD_Id>6</PD_Id>
    <PD_Question>判断6</PD_Question>
    <PD_Answer>false</PD_Answer>
    <PD_Score>96</PD_Score>
  </panduan>
  <panduan>
    <PD_Id>7</PD_Id>
    <PD_Question>判断7</PD_Question>
    <PD_Answer>true</PD_Answer>
    <PD_Score>100</PD_Score>
  </panduan>
  <panduan>
    <PD_Id>8</PD_Id>
    <PD_Question>判断8</PD_Question>
    <PD_Answer>false</PD_Answer>
    <PD_Score>22</PD_Score>
  </panduan>
  <panduan>
    <PD_Id>9</PD_Id>
    <PD_Question>判断9</PD_Question>
    <PD_Answer>true</PD_Answer>
    <PD_Score>33</PD_Score>
  </panduan>
  <panduan>
    <PD_Id>10</PD_Id>
    <PD_Question>判断10</PD_Question>
    <PD_Answer>false</PD_Answer>
    <PD_Score>21</PD_Score>
  </panduan>
  <tiankong>
    <TK_Id>1</TK_Id>
    <TK_Question>填空1</TK_Question>
    <TK_Answer>ttttuuuu</TK_Answer>
    <TK_Score>99</TK_Score>
  </tiankong>
  <tiankong>
    <TK_Id>4</TK_Id>
    <TK_Question>填空2</TK_Question>
    <TK_Answer>dfdf</TK_Answer>
    <TK_Score>22</TK_Score>
  </tiankong>
  <tiankong>
    <TK_Id>5</TK_Id>
    <TK_Question>填空3</TK_Question>
    <TK_Answer>dffdd</TK_Answer>
    <TK_Score>2345</TK_Score>
  </tiankong>
  <tiankong>
    <TK_Id>6</TK_Id>
    <TK_Question>填空4</TK_Question>
    <TK_Answer>dgd</TK_Answer>
    <TK_Score>67</TK_Score>
  </tiankong>
  <tiankong>
    <TK_Id>7</TK_Id>
    <TK_Question>填空5</TK_Question>
    <TK_Answer />
    <TK_Score>0</TK_Score>
  </tiankong>
</test>
搜索更多相关主题的帖子: 江湖 典型 急救 
2008-08-28 10:51
junxipang
Rank: 1
等 级:新手上路
威 望:1
帖 子:9
专家分:0
注 册:2008-8-28
收藏
得分:0 
每页显示6条数据
2008-08-28 10:52
渚薰
Rank: 6Rank: 6
等 级:贵宾
威 望:22
帖 子:1132
专家分:0
注 册:2006-8-6
收藏
得分:0 
用js控制div的css(display),来“模拟”分页

个人ajax技术专题站: " target="_blank">http://www. 我不会闲你烦,只会闲你不够烦!
2008-08-28 11:14
junxipang
Rank: 1
等 级:新手上路
威 望:1
帖 子:9
专家分:0
注 册:2008-8-28
收藏
得分:0 
谢谢啦
2008-08-28 13:54
junxipang
Rank: 1
等 级:新手上路
威 望:1
帖 子:9
专家分:0
注 册:2008-8-28
收藏
得分:0 
斑竹能否给出代码啊 我刚接触JS不太懂 谢谢
2008-08-28 13:56
muzhoyto
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2008-8-28
收藏
得分:0 
为什么不直接在数据库中进行分页呢?
2008-08-28 14:20
junxipang
Rank: 1
等 级:新手上路
威 望:1
帖 子:9
专家分:0
注 册:2008-8-28
收藏
得分:0 
斑竹您给我的事例不能运行
2008-08-28 14:29
junxipang
Rank: 1
等 级:新手上路
威 望:1
帖 子:9
专家分:0
注 册:2008-8-28
收藏
得分:0 
在数据库分页怎么保存成XML文件啊 我认为在服务器端影响性能
2008-08-28 14:31
快速回复:江湖急救:典型分页问题
数据加载中...
 
   



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

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