Changed order of attrib format params
SVN revision: 575
This commit is contained in:
+16
-14
@@ -817,11 +817,24 @@ listed here to display a date filter. Using that filter, the last day, week, mon
|
||||
on can be displayed.
|
||||
<p>
|
||||
|
||||
<LI><b><code>Format <attribute> = <width>,<size>,<flags>,<css_class_name>,<css_class_value></code></b>
|
||||
<LI><b><code>Format <attribute> = <flags>,<css_class_name>,<css_class_value>,<width>,<size></code></b>
|
||||
<br>
|
||||
Optional formatting parameters for attributes. Following items can be defined in the
|
||||
comma-separated list:<p>
|
||||
|
||||
Values used for single message display page:
|
||||
<ul>
|
||||
<li><b><flags></b> Sum of following flags:
|
||||
<ul>
|
||||
<li><b> 1</b>: Display attribute in same line as previous attribute
|
||||
<li><b> 2</b>: Display radio buttons or check boxes in separate lines (if applicable)
|
||||
</ul>
|
||||
<li><b><css_class_name></b>,<b><css_class_value></b> Cascading Style Sheet class
|
||||
names used for cells containing attribute name or value, respectively. The classes must
|
||||
be defined in the style sheet file (usually <i>themes/default/default.css</i>).
|
||||
</ul>
|
||||
<p>
|
||||
|
||||
Values used for new message entry form:
|
||||
<ul>
|
||||
<li><b><width></b> Width of the text entry field in characters
|
||||
@@ -829,19 +842,8 @@ Values used for new message entry form:
|
||||
</ul>
|
||||
<p>
|
||||
|
||||
Values used for single message display page:
|
||||
<ul>
|
||||
<li><b><flags></b> Sum of following flags:
|
||||
<ul>
|
||||
<li> 1: Display attribute in same line as previous attribute
|
||||
<li> 2: Display radio buttons or check boxes in separate lines (if applicable)
|
||||
</ul>
|
||||
<li><b><css_class_name></b>,<b><css_class_value></b> Cascading Style Sheet class
|
||||
names used for cells containing attribute name or value, respectively. The classes must
|
||||
be defined in the style sheet file (usually <i>themes/default/default.css</i>).
|
||||
</ul>
|
||||
<p>
|
||||
Default is <i>"80, 500, 0, attribname, attribvalue"</i>.
|
||||
Default is <i>"0, attribname, attribvalue, 80, 500"</i>. Trailing parameters can be ommitted,
|
||||
so specifying for example only the flags is possible.
|
||||
|
||||
</UL>
|
||||
|
||||
|
||||
+16
-13
@@ -6,6 +6,9 @@
|
||||
Contents: Web server program for Electronic Logbook ELOG
|
||||
|
||||
$Log$
|
||||
Revision 1.128 2003/07/04 18:06:44 midas
|
||||
Changed order of attrib format params
|
||||
|
||||
Revision 1.127 2003/07/04 16:06:50 midas
|
||||
Removed width from attrname cells (should be in CSS now)
|
||||
|
||||
@@ -5719,16 +5722,16 @@ char fl[8][NAME_LENGTH];
|
||||
if (getcfg(lbs->name, str, format))
|
||||
{
|
||||
n = strbreak(format, fl, 8);
|
||||
if (n > 0 && atoi(fl[0]) > 0)
|
||||
input_size = atoi(fl[0]);
|
||||
if (n > 1 && atoi(fl[1]) > 0)
|
||||
input_maxlen = atoi(fl[1]);
|
||||
if (n > 0)
|
||||
format_flags = atoi(fl[0]);
|
||||
if (n > 1)
|
||||
strlcpy(class_name, fl[1], sizeof(class_name));
|
||||
if (n > 2)
|
||||
format_flags = atoi(fl[2]);
|
||||
if (n > 3)
|
||||
strlcpy(class_name, fl[3], sizeof(class_name));
|
||||
if (n > 4)
|
||||
strlcpy(class_value, fl[4], sizeof(class_value));
|
||||
strlcpy(class_value, fl[2], sizeof(class_value));
|
||||
if (n > 3 && atoi(fl[3]) > 0)
|
||||
input_size = atoi(fl[3]);
|
||||
if (n > 4 && atoi(fl[4]) > 0)
|
||||
input_maxlen = atoi(fl[4]);
|
||||
}
|
||||
|
||||
strcpy(star, (attr_flags[index] & AF_REQUIRED) ? "<font color=red>*</font>" : "");
|
||||
@@ -11050,10 +11053,10 @@ BOOL first;
|
||||
if (getcfg(lbs->name, str, format))
|
||||
{
|
||||
n = strbreak(format, fl, 8);
|
||||
if (n > 3)
|
||||
strlcpy(class_name, fl[3], sizeof(class_name));
|
||||
if (n > 4)
|
||||
strlcpy(class_value, fl[4], sizeof(class_value));
|
||||
if (n > 1)
|
||||
strlcpy(class_name, fl[1], sizeof(class_name));
|
||||
if (n > 2)
|
||||
strlcpy(class_value, fl[2], sizeof(class_value));
|
||||
}
|
||||
|
||||
if ((format_flags[i] & AFF_SAME_LINE) == 0)
|
||||
|
||||
Reference in New Issue
Block a user