Gossamer Forum
Home : Products : DBMan : Discussions :

Re: [RedRum] build_checkbox_field question

Quote Reply
Re: [RedRum] build_checkbox_field question In reply to
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
Subject Author Views Date
Thread build_checkbox_field question csky 3417 Oct 14, 2001, 2:29 AM
Post Re: [seasky] build_checkbox_field question
QooQ 3344 Oct 14, 2001, 3:42 AM
Post Re: [seasky] build_checkbox_field question
Paul 3343 Oct 14, 2001, 3:54 AM
Thread Re: [seasky] build_checkbox_field question
csky 3362 Oct 14, 2001, 12:41 PM
Thread Re: [seasky] build_checkbox_field question
Paul 3347 Oct 14, 2001, 1:17 PM
Post Re: [RedRum] build_checkbox_field question
csky 3334 Oct 15, 2001, 8:15 AM
Thread Re: [seasky] build_checkbox_field question
csky 3311 Oct 21, 2001, 11:41 AM
Post Re: [seasky] build_checkbox_field question
Paul 3281 Oct 22, 2001, 6:49 AM