Home : Products : DBMan : Discussions :

Products: DBMan: Discussions: Re: [RedRum] build_checkbox_field question: Edit Log

Here is the list of edits for this post
Re: [RedRum] build_checkbox_field question
Of course! Here it is:

This is in html_record_form:

if ($per_admin) {
print qq|
<tr><td colspan="2" align="center"><br>
<TABLE CELLPADDING=1 CELLSPACING=0 BORDER=0>
|;


for (0 .. 19) {
print qq|<tr>|;
for (0 .. 4) {
$counter2 = $counter2+1;
$counter = $counter+1;
print qq|<td align="left" valign="top"><$font>|;
print &build_checkbox_field ($counter,"$rec{'$counter'}");
print qq|$rec{'$counter'}</td>|;
}

print qq|</tr>|;
}

print qq|
</table>
</td></tr>
|;
}


This is in %db_checkbox_fields:

%db_checkbox_fields = (

'1' => 'ng-001',
'2' => 'ng-002',
'3' => 'ng-003',
'4' => 'ng-004', etcetera

And this is in db_def:

1 => [14, 'alpha', 0, 255, 0, '', ''],
2 => [15, 'alpha', 0, 255, 0, '', ''],
3 => [16, 'alpha', 0, 255, 0, '', ''],
4 => [17, 'alpha', 0, 255, 0, '', ''], etcetera...

I hope you can cope with this rather unusual way of looping (which shouldn't be the issue of it not working)

Thanks and greetings
CSky

Last edited by:

seasky: Oct 15, 2001, 8:16 AM

Edit Log: