Page 1 of 1
layout problem
Posted: Fri Oct 15, 2004 12:20 pm
by battye
ive run into a small problem with the mod im making!
using the following code:
Code: Select all
<tr>
<td class="row1" align="center" valign="middle" height="50" rowspan="4"><span class="forumlink">{quizrow.ACTQ}</span></td>
<td class="row2" align="left" valign="left" height="50"><span class="gensmall">
{quizrow.RADICAL}
<input type="hidden" name="Hidden" value="{HIDDEN_FIELD}">
</span></td>
</tr>
I get:
http://www.cricketmx.com/testforum/view ... viewquiz=1
Any ideas?
Thanks

[/code]
Posted: Fri Oct 15, 2004 12:54 pm
by Grinch
I wish I could help but I know nothing about PHP. You might want to ask Dan.
Posted: Fri Oct 15, 2004 2:29 pm
by battye
That's HTML
Posted: Fri Oct 15, 2004 3:02 pm
by Grinch
How is it supposed to look?
Do you want the answers vertical?
Posted: Fri Oct 15, 2004 3:06 pm
by Grinch
Also what is:
{quizrow.ACTQ}
{quizrow.RADICAL}
{HIDDEN_FIELD}
What do these represent?
Posted: Fri Oct 15, 2004 3:19 pm
by battye
ACTQ is the question, RADICAL are the radio boxes, HIDDEN_FIELD is the quiz id (for sql purposes)
Posted: Fri Oct 15, 2004 3:20 pm
by Grinch
I think this is how you want it to look. Keep in mind I don't have the little buttons to click on. I am at work and did this on Notepad. It is straight HTML so I don't know how valuable this will be to you.
Code: Select all
<html>
<table border="1" cellpadding="5">
<tr>
<td class="row1" align="center" valign="middle" height="50" rowspan="4">Is this
working Correctly?</td>
<td class="row2" align="left" valign="left" height="50">
<p>no</p>
<p>yes</p>
<p>Don't ask Stupid Questions</p>
<p>What do you think?</p>
</td>
</table>
</html>
Is this going to work for you?
Posted: Fri Oct 15, 2004 3:25 pm
by Grinch
I saw you have part of it fixed. Can you post the code so I can see it?
Posted: Fri Oct 15, 2004 3:49 pm
by battye
Code: Select all
<!-- BEGIN quizrow -->
<tr>
<td class="row1" align="center" valign="middle" height="50" rowspan="1"><span class="forumlink">{quizrow.ACTQ}</span></td>
<td class="row2" align="left" valign="left" height="50"><span class="gensmall">
{quizrow.RADICAL}
<input type="hidden" name="Hidden" value="{HIDDEN_FIELD}">
</span></td>
</tr>
<!-- END quizrow -->
Posted: Fri Oct 15, 2004 3:56 pm
by Grinch
So all you did was change the rowspan to 1?
And if you change it back to 4 you get that jumbled mess?
I don't know why it is doing that to you. Something else in your code could be messing with it but I am not entirely sure. The HTML I wrote works and it is basically based off your code. But somewhere something is affecting that table. Could I see all the code by chance?
Posted: Fri Oct 15, 2004 3:58 pm
by Grinch
BTW I passed all your quizzes

Posted: Sat Oct 16, 2004 3:28 am
by battye
Code: Select all
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td align="left" valign="bottom" colspan="2">{QUIZ_HEADER}<br /></td>
</tr>
</table>
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<th colspan="1" width="100%" class="thTop" nowrap="nowrap"> {QUESTION} </th>
<th width="250" class="thTop" nowrap="nowrap"> {ANSWER} </th>
</tr>
<form name="form1" method="post" action="quizzer.php">
<!-- BEGIN quizrow -->
<tr>
<td class="row1" align="center" valign="middle" height="50" rowspan="1"><span class="forumlink">{quizrow.ACTQ}</span></td>
<td class="row2" align="left" valign="left" height="50"><span class="gensmall">
{quizrow.RADICAL}
<input type="hidden" name="Hidden" value="{HIDDEN_FIELD}">
</span></td>
</tr>
<!-- END quizrow -->
</table>
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th class="catBottom" colspan="4" align="center" height="28"><input class="liteoption" type="submit" value="Submit" /></form></td></th>
</tr>
</table>