View previous topic :: View next topic |
Author |
Message |
tamir101
Joined: 09 Aug 2007 Posts: 10
|
Posted: Sun 02 Sep '07 10:45 Post subject: auto checkbox in a table |
|
|
Hi,
If i want to organize for example 50 numbers auto in a table.
I will explain-
Code: |
<form action=XXXXX.stm method=post>
<RC$count= 0>
<table border = 2>
<RCQtest sql="SELECT server FROM general1 WHERE site=XXX">
<tr>
<RCwhile RCFtest=1>
<RCif RC$count=10>
</tr>
<RC$count= 0>
<RCendif>
<td><input type="checkbox" name="RHA" value = <RCDtest.1>><RCDtest.1></td>
<RC$count= RC$count + 1>
<RCendwhile>
</table>
|
RC$count- will count the variables and when it would be equal to 8 (at this example) the number 9 will start at a new line.
Have have an error in my code, the result is at the some line.
This is the desirable result
1 2 3 4 5 6 7 8
9 10 11 12 13 14 15 16
17 18 19 20 21...etc. |
|
Back to top |
|
ipjs

Joined: 19 May 2005 Posts: 7
|
Posted: Tue 04 Sep '07 2:11 Post subject: Re: auto checkbox in a table |
|
|
tamir101 wrote: | Hi,
If i want to organize for example 50 numbers auto in a table.
I will explain-
Code: |
<form action=XXXXX.stm method=post>
<RC$count= 0>
<table border = 2>
<RCQtest sql="SELECT server FROM general1 WHERE site=XXX">
<tr>
<RCwhile RCFtest=1>
<RCif RC$count=10>
</tr>
<RC$count= 0>
<RCendif>
<td><input type="checkbox" name="RHA" value = <RCDtest.1>><RCDtest.1></td>
<RC$count= RC$count + 1>
<RCendwhile>
</table>
|
RC$count- will count the variables and when it would be equal to 8 (at this example) the number 9 will start at a new line.
Have have an error in my code, the result is at the some line.
This is the desirable result
1 2 3 4 5 6 7 8
9 10 11 12 13 14 15 16
17 18 19 20 21...etc. |
<RC$count !!!! = RC$count + 1>
!!!! - one blank space |
|
Back to top |
|
tamir101
Joined: 09 Aug 2007 Posts: 10
|
Posted: Tue 04 Sep '07 14:12 Post subject: |
|
|
I've changed it and still not working...
<RC$count!!! =!!! RC$count + 1>
!!!- one blank space. |
|
Back to top |
|
ipjs

Joined: 19 May 2005 Posts: 7
|
Posted: Thu 06 Sep '07 21:07 Post subject: |
|
|
tamir101 wrote: | I've changed it and still not working...
<RC$count!!! =!!! RC$count + 1>
!!!- one blank space. |
--------------------------
<form action=XXXXX.stm method=post>
<RC$tab_cell =10>
<RCQtest sql="SELECT server FROM general1 WHERE site=XXX">
<RCwhile RCFtest = 1 >
<RC$end_cod>
<RCif RCErowsaffected=1><table border=1><tr>
<RCelseif RC@expr( RCErowsaffected /RC$tab_cell)=RC@floor( RCErowsaffected/RC$tab_cell)><RC$end_cod =\</tr\>\<tr\>>
<RCelse><RC$end_cod =>
<RCendif>
<td>><input type="checkbox" name="RHA" value = "<RCDtest.1>"><RCDtest.1></td>
<RCendwhile>
<RCif RCErowsaffected!0>
<RCif RC$end_cod=NULL AND RC$tab_cell<RCErowsaffected>
<td colspan="<RC@ceiling(RC@expr( RC@ceiling( RCErowsaffected/RC$tab_cell) *RC$tab_cell - RCErowsaffected))>"> </td>
<RCendif>
</tr></table>
<RCendif>
</form> |
|
Back to top |
|