Forum Index Search Forum Register Log in

Runs on XP to Win 10

Current

Download 7.0

Download 7.1 Beta5 upgrade



A donation makes a contribution towards the time and effort that's going in to running this site.

Steffen

Contact:
My mail address is
at the top of the paypal form :

Your donations will help to keep this site alive and well.


Update your links !! November 2016 the forum is at www.apachelounge.com/sambar

In the forum there are links to sambarserver.info,
replace "sambarserver.info" with "apachelounge.com/sambar"
auto checkbox in a table

 
Post new topic   Reply to topic    Sambar Forum Index -> Coding & Script Corner
View previous topic :: View next topic  
Author Message
tamir101



Joined: 09 Aug 2007
Posts: 10

PostPosted: Sun 02 Sep '07 10:45    Post subject: auto checkbox in a table Reply with quote

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
View user's profile
ipjs



Joined: 19 May 2005
Posts: 7

PostPosted: Tue 04 Sep '07 2:11    Post subject: Re: auto checkbox in a table Reply with quote

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
View user's profile
tamir101



Joined: 09 Aug 2007
Posts: 10

PostPosted: Tue 04 Sep '07 14:12    Post subject: Reply with quote

I've changed it and still not working... Sad
<RC$count!!! =!!! RC$count + 1>
!!!- one blank space.
Back to top
View user's profile
ipjs



Joined: 19 May 2005
Posts: 7

PostPosted: Thu 06 Sep '07 21:07    Post subject: Reply with quote

tamir101 wrote:
I've changed it and still not working... Sad
<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))>">&nbsp;</td>
<RCendif>
</tr></table>
<RCendif>

</form>
Back to top
View user's profile

Post new topic   Reply to topic    Sambar Forum Index -> Coding & Script Corner
Page 1 of 1