iloveccs
Posts: 9
|
| Posted: 01/11/2006, 2:08 AM |
|
i need a page like this: http://www.5dinfo.net/1.html
how dose ccs do this?
bigclass and smallclass are in the same database,but in different table.
save these code as html page
<table width="416" height="198" border="1" cellpadding="2" cellspacing="0" bordercolor="#990000">
<tr>
<td><p class="STYLE1">bigclass_1</p>
<table width="200" border="1" cellpadding="1" cellspacing="0">
<tr>
<td class="STYLE1">smallclass_1</td>
</tr>
<tr>
<td class="STYLE1">smallclass_2</td>
</tr>
<tr>
<td class="STYLE1">smallclass_3</td>
</tr>
</table> </td>
</tr>
<tr>
<td><p class="STYLE1">bigclass_2</p>
<table width="200" border="1" cellpadding="1" cellspacing="0">
<tr>
<td class="STYLE1">smallclass_4</td>
</tr>
<tr>
<td class="STYLE1">smallclass_5</td>
</tr>
<tr>
<td class="STYLE1">smallclass_6</td>
</tr>
</table> </td>
</tr>
<tr>
<td><p class="STYLE1">bigclass_3</p>
<table width="200" border="1" cellpadding="1" cellspacing="0">
<tr>
<td class="STYLE1">smallclass_7</td>
</tr>
<tr>
<td class="STYLE1">smallclass_8</td>
</tr>
<tr>
<td class="STYLE1">smallclass_9</td>
</tr>
</table> </td>
</tr>
<tr>
<td><p class="STYLE1">bigclass_4</p>
<table width="200" border="1" cellpadding="1" cellspacing="0">
<tr>
<td class="STYLE1">smallclass_10</td>
</tr>
<tr>
<td class="STYLE1">smallclass_11</td>
</tr>
<tr>
<td class="STYLE1">smallclass_12</td>
</tr>
</table> </td>
</tr>
<tr>
<td><p class="STYLE1">bigclass_5</p>
<table width="200" border="1" cellpadding="1" cellspacing="0">
<tr>
<td class="STYLE1">smallclass_13</td>
</tr>
<tr>
<td class="STYLE1">smallclass_14</td>
</tr>
<tr>
<td class="STYLE1">smallclass_15</td>
</tr>
</table> </td>
</tr>
</table>
_________________
www.5dinfo.net |
 |
 |
Saud
Posts: 15
|
| Posted: 01/11/2006, 6:16 AM |
|
One way of doing this is by creating a Grid for (Bigclass) which include the class name and a label (for example small_classes) which holds the (bigclass number).
In the (Before Show) event for this created (small_classes) label, you can create a Custom SQL that reads the small classes from the other table which belongs to the current big class.
|
 |
 |
|