随机点名系统在线帮助文档
******************************************************
******************************************************
本系统包含两个版本:
A.点名系统桌面版
B.点名系统Web版
作者 : 华中科技大学计算机系04级04班raywill
Email: hustos@163.com
Blog : http://raywill.blog.sohu.com
QQ : 547753994
本软件在线帮助地址:
http://raywill.blog.sohu.com/40983686.html
******************************************************
******************************************************
点名系统Web版 使用说明:
1.文件需求
运行本系统,您需要以下文件:
images文件夹中的图片
web文件夹下所有数据
student.xml数据文件
2.平台要求
本系统需要IE6以上浏览器的支持
3.Shorcut


点名系统桌面版 使用说明:
1.文件需求
运行本系统,您需要以下文件:
本目录下所有ocx,dll文件
{
comctrl32.ocx
comdlg32.ocx
mci32.ocx
systray.ocx
asycfilt.dll
cmctlchs.dll
cmdlgchs.dll
comcat.dll
olepro32.dll
vb6chs.dll
vb6stkit.dll
}
StuSys.exe 执行程序主程序
student.xml 数据文件
config.xml 系统配置文件
skin文件夹 皮肤文件(可以通过config.xml来修改路径)
skin2文件夹 可选
images文件夹 学生照片文件(可以通过config.xml来修改路径)
default.jpg 缺省照片文件
aud.wav
stop.wav 声音效果文件
Help.HTML 本地使用帮助文件
readme.txt 本说明文件
2.平台
可执行于XP系统(2000,98未测试)
3.使用方法
参见Help.HTML
4.Shorcut And DirectHelp
(点击图片可以查看大图)
功能简介

更换皮肤

5.详解配置:
config.xml
——————————————————————————
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<!–
This is the default configuration file for the system.
The system will look up this file at startup time seeking for startup-time parameters. Don’t modify this file if you don’t know what you are doing!
autostop:true or false
true means it will stop automatically in ‘randomtime’ seconds
false means never stop untill you click the ‘stop’ button
randomtime:0 – 100000
randomtime specify the random time,in seonds
xmlfile: a valid file path of a valid xml data file
this is the default file that the system will load at startup time
you can change it to another valid xml filename at your will.
helpfile: url of the help file
NOTE:Don’t Edit any other part of this file!!
hustos@qq.com
00:43 2007-4-7
–>
<autostop>true</autostop>
<randomtime>2</randomtime>
<xmlfile>student.xml</xmlfile>
<helpfile>http://raywill.blog.sohu.com/40983686.html</helpfile>
<skinfolder>skin</skinfolder>
</configuration>
——————————————————————————
说明:
autostop
可选值:true,false
选择true表示会在randomtime秒内自动停止;选择false,表示系统不会自动停止,用户可以点击“停止”按钮来产生一个随机结果。
randomtime
自可选择值:1~100000 (可以更大,但你肯定用不着^^)
表示自动随机选择持续的时间。如2秒,表示2秒后自动停止,产生一个随机结果。
xmlfile
可选值:系统目录下一个合法的xml数据文件名称
系统启动时默认装载xmlfile指定的数据文件。你可以预先写好不同的数据文件,将经常使用的文件选择为启动时默认装载。
helpfile
可选值:一个合法的网址或您电脑上的一个html文件地址
点击帮助时系统将用ie来打开本地址。
skinfolder
可选值:系统目录下的皮肤文件夹相对路径
通过修改此项,你可以应用您自己设计的皮肤,让界面更加绚丽~
注意:在自己制作皮肤的时候,文件名必须和原来的皮肤文件名一致,文件类型必须为bmp,否则系统将出错。
student.xml
——————————————————————————
<?xml version="1.0" encoding="utf-8"?>
<class>
<student>
<id score="3">012004016602</id>
<class>01</class>
<name>Maray</name>
<image_path>images/02.jpg</image_path>
</student>
<student>
<id score="15">012004016601</id>
<class>01</class>
<name>Raywill</name>
<image_path>images/01.jpg</image_path>
<room>4-411</room>
</student>
<student>
<id score="2">012004016603</id>
<class>01</class>
<name>Tom</name>
<image_path>images/20.gif</image_path>
<favorate>篮球,电子竞技,看书</favorate>
<home>Hankou,Wuhan,Hubei</home>
</student>
</class>
——————————————————————————
说明:
核心内容:
第一条(id=012004016602)为最基本配置,一共包含4个部分,缺一不可:
id:学号。必须为一个12位的数字。
score:被选中次数。每次被选中并回答问题正确,可以加分。
class:班级。必须为1位或2位的班级代号。
name:姓名。
image_path:该学生的图片存贮的相对路径。如果此项为空,将自动使用系统默认图片代替。(web版不具备此功能,若图片不存在,会显示为一红叉)
自定义内容:
除了这些项目,用户可以自由在必填项目后添加其他项目。如第二条第三条,第二条中添加了room项,第三条添加了favorate,home项。
系统中,这些自定义的项目会在信息栏显示(将鼠标移动到信息栏上就可以看到),如下图所示:
注意:用户自定义条目只能添加在必选条目之后!否则可能导致系统出错。
相关链接:
理解学习XML: http://blog.csdn.net/maray/archive/2007/04/08/1556825.aspx