1
#include "report-data-html.h"
3
void init_div(struct tag_attr *div_attr, const char *css_class, const char *css_id)
5
div_attr->css_class=css_class;
6
div_attr->css_id=css_id;
10
init_top_table_attr(struct table_attributes *table_css, int rows, int cols){
11
table_css->pos_table_title=L;
12
table_css->table_class="emphasis1";
13
table_css->th_class="table_sysinfo";
14
table_css->td_class="";
15
table_css->tr_class="";
16
table_css->title_mod=0;
21
void init_title_attr(struct tag_attr *title_attr)
23
title_attr->css_class="content_title";
24
title_attr->css_id="";
27
void init_std_table_attr(struct table_attributes *table_css, int rows, int cols){
28
table_css->table_class="emphasis2";
29
table_css->tr_class="emph1";
30
table_css->th_class="emph_title";
31
table_css->td_class="";
32
table_css->pos_table_title=T;
33
table_css->title_mod=0;
37
void init_std_side_table_attr(struct table_attributes *table_css, int rows, int cols){
38
table_css->table_class="emphasis2 side_by_side_left";
39
table_css->tr_class="emph1";
40
table_css->th_class="emph_title";
41
table_css->td_class="";
42
table_css->pos_table_title=T;
43
table_css->title_mod=0;
49
void init_pkg_table_attr(struct table_attributes *table_css, int rows, int cols){
50
table_css->table_class="emphasis2 side_by_side_left";
51
table_css->tr_class="";
52
table_css->th_class="title";
53
table_css->td_class="package";
54
table_css->pos_table_title=T;
55
table_css->title_mod=0;
60
void init_core_table_attr(struct table_attributes *table_css, int title_mod,
62
table_css->table_class="emphasis2 side_by_side_left";
63
table_css->tr_class="";
64
table_css->th_class="title";
65
table_css->td_class="core";
66
table_css->pos_table_title=TC;
67
table_css->title_mod=title_mod;
72
void init_cpu_table_attr(struct table_attributes *table_css, int title_mod,
74
table_css->table_class="emphasis2 side_by_side_left";
75
table_css->tr_class="";
76
table_css->th_class="title";
77
table_css->td_class="cpu";
78
table_css->pos_table_title=TLC;
79
table_css->title_mod=title_mod;
85
void init_nowarp_table_attr(struct table_attributes *table_css, int rows, int cols){
86
table_css->table_class="emphasis2";
87
table_css->tr_class="emph1";
88
table_css->th_class="emph_title";
89
table_css->td_class="no_wrap";
90
table_css->pos_table_title=T;
91
table_css->title_mod=0;
96
void init_tune_table_attr(struct table_attributes *table_css, int rows, int cols){
97
table_css->table_class="emphasis2";
98
table_css->tr_class="tune";
99
table_css->th_class="emph_title";
100
table_css->td_class="";
101
table_css->pos_table_title=T;
102
table_css->rows=rows;
103
table_css->cols=cols;
106
/* Other Helper Functions */
108
double_to_string(double dval)
114
str = str.substr(0, str.find(".")+2);