version 1.14, 2000/03/22 21:18:56
|
version 1.16, 2000/06/27 18:28:48
|
Line 229 void web_printheader(FILE *out)
|
Line 229 void web_printheader(FILE *out)
|
fprintf(out,"<HTML><HEAD>\n"); |
fprintf(out,"<HTML><HEAD>\n"); |
fprintf(out,"<BODY BGCOLOR=\"#FFFFFF\" LINK=\"#0000EE\" VLINK=\"#EE1100\">\n"); |
fprintf(out,"<BODY BGCOLOR=\"#FFFFFF\" LINK=\"#0000EE\" VLINK=\"#EE1100\">\n"); |
} |
} |
|
|
#ifdef CAPA_WEB |
|
fprintf(out,"<!-- capasbin, CAPA Version %s, %s -->\n", |
|
CAPA_VER,COMPILE_DATE); |
|
#else |
|
fprintf(out,"<!-- capahtml, CAPA Version %s, %s -->\n", |
|
CAPA_VER,COMPILE_DATE); |
|
#endif |
|
} |
} |
|
|
void web_printfooter(FILE *out) |
void web_printfooter(FILE *out) |
Line 2759 int *hc;int *qc;int *fs;
|
Line 2751 int *hc;int *qc;int *fs;
|
configResult=read_capa_config("homework_weight",buf); |
configResult=read_capa_config("homework_weight",buf); |
if (configResult != 0 && configResult != -1 ) { |
if (configResult != 0 && configResult != -1 ) { |
sscanf(buf,"%f", &hw_w); |
sscanf(buf,"%f", &hw_w); |
if(hw_w <= 0.0 ) { |
if(hw_w < 0.0 ) { |
hw_w = DEFAULT_HW_W; |
hw_w = DEFAULT_HW_W; |
} |
} |
} else { |
} else { |
Line 2768 int *hc;int *qc;int *fs;
|
Line 2760 int *hc;int *qc;int *fs;
|
configResult=read_capa_config("quiz_weight",buf); |
configResult=read_capa_config("quiz_weight",buf); |
if (configResult != 0 && configResult != -1 ) { |
if (configResult != 0 && configResult != -1 ) { |
sscanf(buf,"%f", &qz_w); |
sscanf(buf,"%f", &qz_w); |
if(qz_w <= 0.0 ) { |
if(qz_w < 0.0 ) { |
qz_w = DEFAULT_QZ_W; |
qz_w = DEFAULT_QZ_W; |
} |
} |
} else { |
} else { |
Line 2777 int *hc;int *qc;int *fs;
|
Line 2769 int *hc;int *qc;int *fs;
|
configResult=read_capa_config("exam_weight",buf); |
configResult=read_capa_config("exam_weight",buf); |
if (configResult != 0 && configResult != -1 ) { |
if (configResult != 0 && configResult != -1 ) { |
sscanf(buf,"%f", &ex_w); |
sscanf(buf,"%f", &ex_w); |
if(ex_w <= 0.0 ) { |
if(ex_w < 0.0 ) { |
ex_w = DEFAULT_EX_W; |
ex_w = DEFAULT_EX_W; |
} |
} |
} else { |
} else { |
Line 2786 int *hc;int *qc;int *fs;
|
Line 2778 int *hc;int *qc;int *fs;
|
configResult=read_capa_config("final_weight",buf); |
configResult=read_capa_config("final_weight",buf); |
if (configResult != 0 && configResult != -1 ) { |
if (configResult != 0 && configResult != -1 ) { |
sscanf(buf,"%f", &fe_w); |
sscanf(buf,"%f", &fe_w); |
if(fe_w <= 0.0 ) { |
if(fe_w < 0.0 ) { |
fe_w = DEFAULT_FE_W; |
fe_w = DEFAULT_FE_W; |
} |
} |
} else { |
} else { |
Line 2795 int *hc;int *qc;int *fs;
|
Line 2787 int *hc;int *qc;int *fs;
|
configResult=read_capa_config("correction_weight",buf); |
configResult=read_capa_config("correction_weight",buf); |
if (configResult != 0 && configResult != -1 ) { |
if (configResult != 0 && configResult != -1 ) { |
sscanf(buf,"%f", &pc_w); |
sscanf(buf,"%f", &pc_w); |
if(pc_w <= 0.0 ) { |
if(pc_w < 0.0 ) { |
pc_w = DEFAULT_PC_W; |
pc_w = DEFAULT_PC_W; |
} |
} |
} else { |
} else { |