[contrib] Add and Edit Category, Add Initial Body templates

All web design discussion, including Ultimate Quiz MOD support.

Moderator: CricketMX Forum Moderators

Post Reply
ABTOP
Greenhorn
Greenhorn
Posts: 24
Joined: Tue Jul 24, 2007 7:49 pm
Contact:

In anticipation of the version change, I decided to fix some templates.

First, the administrative templates for adding and editing categories.

The problem with the existing ones is that the fields are too small. Definitely too small. So I changed them a little bit so they visually resemble Edit Forum template. This is cosmetic change, no functionality added or removed. Both templates are almost identical.

Here you go:

quiz_add_category_body.tpl

Code: Select all

<form action="{F_FORM}" method="post">
<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
	<tr>
		<th class="thHead" colspan="2">{L_ADD}</th>
	</tr>
	
	<tr>
		<td width="100%" colspan="2" class="row1" align="center" valign="middle" height="100%">
			<span class="gen">{L_EXPLAINATION}</span>
		</td>
	</tr>

	<tr>
		<td class="row1">{L_NAME}</td>
		<td class="row2"><input type="text"  size="25" name="name" value="" />
		</td>
	</tr>
	<tr>
		<td class="row1">{L_DESCRIPTION}</td>
		<td class="row2"><textarea rows="5" cols="45" wrap="virtual" type="text" name="description" value="" /></textarea>
		</td>
	</tr>
	<tr>
		<td class="row1">{L_PASSWORD}</td>
		<td class="row2"><input type="password" size="25"  name="password" value="" />
		</td>
	</tr>
	
	<tr>
		<td class="row1">{L_CHOOSE_PER}</td>
			<td class="row2">
				<select name="permissions">
					<option id="0" value="0">{L_GUEST}</option>
					<option id="1" value="1">{L_REG}</option>
					<option id="2" value="2">{L_REG_HIDDEN}</option>
				</select>
			</td>
		</td>
	</tr>
	
	<tr>
		<td class="catBottom" colspan="2" align="center">
			<input class="liteoption" type="submit" value="{L_SUBMIT}" />
		</td>
	</tr>
</table>
</form>
quiz_edit_category_body.tpl

Code: Select all

<form action="{F_FORM}" method="post">
<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
	<tr>
		<th class="thHead" colspan="2">{L_EDITING}</th>
	</tr>
	
	<tr>
		<td width="100%" colspan="2" class="row1" align="center" valign="middle" height="100%">
			<span class="gen">{L_EXPLAINATION}</span>
		</td>
	</tr>

	<tr>
		<td class="row1">{L_NAME}</td>
		<td class="row2"><input type="text" size="25" name="name" value="{U_NAME}" />
		</td>
	</tr>
	<tr>
		<td class="row1">{L_DESCRIPTION}</td>
		<td class="row2"><textarea rows="5" cols="45" wrap="virtual" type="text" name="description" value="{U_DESCRIPTION}" />{U_DESCRIPTION}</textarea>
		</td>
	</tr>
	<tr>
		<td class="row1">{L_PASSWORD}</td>
		<td class="row2"><input type="password"  size="25" name="password" value="" />
		</td>
	</tr>
	
	<tr>
		<td class="row1">{L_CHOOSE_PER}</td>
			<td class="row2">
				<select name="permissions">
					<option id="0" value="0">{L_GUEST}</option>
					<option id="1" value="1">{L_REG}</option>
					<option id="2" value="2">{L_REG_HIDDEN}</option>
				</select>
			</td>
		</td>
	</tr>
	
	<tr>
		<td class="catBottom" colspan="2" align="center">
			<input class="liteoption" type="submit" value="{L_SUBMIT}" />
		</td>
	</tr>
</table>
</form>
ABTOP
Greenhorn
Greenhorn
Posts: 24
Joined: Tue Jul 24, 2007 7:49 pm
Contact:

Second, the Add Initial body template.

There is really no need to separate the choices for the types of quizzes. Now they are in one column and the radio buttons are presiding the text.

quiz_add_initial_body.tpl

Code: Select all

<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
	<form action="{F_FORM}" method="post">
		<tr>
			<th colspan="3" width="100%" class="thTop" nowrap="nowrap">&nbsp;{L_SUBMIT}&nbsp;</th>
		</tr>

		<tr>
			<td colspan="3" class="row1" align="center" valign="middle" height="50">
				<span class="genmed">
					{L_MIN_MAX}
				</span>
			</td>
		</tr>
		
		<tr>
			<td colspan="3" class="row2" align="center" valign="middle" height="50">
				<span class="gen">
					{L_SELECT_NUMBER}
					{U_DEFAULT}
				</span>
			</td>
		</tr>
		
		<tr>
			<td class="row1" align="left" valign="middle" height="50" style="padding-left:40%">
				<span class="gen">
					<input type="radio" name="type" value="true_false" />&nbsp;{L_TRUE_FALSE}<BR>
					<input type="radio" name="type" value="input_answer" />&nbsp;{L_INPUT}<BR>
					<input type="radio" name="type" value="multiple_choice" />&nbsp;{L_MULTIPLE_CHOICE}<BR>
				</span>
			</td>
		</tr>
		
		<tr>
			<th colspan="3" class="catBottom" align="center" height="28">
				<input class="liteoption" type="submit" value="{L_SUBMIT}" />
			</th>
		</tr>
	</form>
</table> 
<br />
<table width="100%" align="center" border="0">
	<tr>
		<td border="0" align="center">
			<span class="genmed">&nbsp;<a href="http://www.cmxmods.net/quiz.php">Ultimate Quiz MOD</a> &copy; <a href="http://www.online-scrabble.com">battye</a> 2004, 2005, 2006.&nbsp;
			</span>
		</td>
	</tr>
</table>
Post Reply