<form name="frm_matching" action="{ACTION_MATCHING_QUESTION}" method="post" enctype="multipart/form-data">
<input type="hidden" name="id" value="{MATCHING_ID}" />
<table class="fullwidth">
<thead>
	<tr class="tblheader">
		<th colspan="6">{TEXT_QUESTION_TYPE}</th>
	</tr>
</thead>
<tr>
	<td class="option">{TEXT_TITLE}<span class="asterisk">*</span></td>
	<td class="option_value" colspan="5"><input name="title" type="text" value="{VALUE_MATCHING_TITLE}" size="50" /></td></tr>
<tr>
	<td class="option">{TEXT_AUTHOR}<span class="asterisk">*</span></td>
	<td class="option_value" colspan="5"><input name="author" type="text" value="{VALUE_MATCHING_AUTHOR}" size="50" /></td></tr>
<tr>
	<td class="option">{TEXT_COMMENT}</td>
	<td class="option_value" colspan="5"><input name="comment" type="text" value="{VALUE_MATCHING_COMMENT}" id="comment" size="50" /></td></tr>
<tr>
	<td class="option">{TEXT_QUESTION}<span class="asterisk">*</span></td>
	<td class="option_value" colspan="5"><textarea name="question" id="question" rows="10" cols="80" wrap="virtual" style="width:95%;">{VALUE_QUESTION}</textarea></td>
</tr>
<tr>
	<td class="option">{TEXT_SHUFFLE_ANSWERS}</td>
	<td class="option_value" colspan="5">
		<select name="shuffle" size="1">
			<option value="0"{SELECTED_NO}>{TXT_NO}</option>
			<option value="1"{SELECTED_YES}>{TXT_YES}</option>
			<option value="2"{SELECTED_SHUFFLE_TERMS}>{TXT_SHUFFLE_TERMS}</option>
			<option value="3"{SELECTED_SHUFFLE_PICTURES}>{TXT_SHUFFLE_PICTURES}</option>
		</select>
	</td>
</tr>
<tr>
	<td class="option">{TEXT_WORKING_TIME}<br />({TIME_FORMAT})</td>
	<td class="option_value" colspan="5">{VALUE_WORKING_TIME} </td>
</tr>
<tr>
	<td class="option">{TEXT_SOLUTION_HINT}</td>
	<td class="option_value" colspan="5">
		<input type="hidden" name="solution_hint" value="{VALUE_SOLUTION_HINT}" />
		{TEXT_VALUE_SOLUTION_HINT}
		<!-- BEGIN remove_solution -->
		<input type="submit" class="submit" name="cmd[removeSuggestedSolution]" value="{BUTTON_REMOVE_SOLUTION}" />
		<!-- END remove_solution -->
		<input type="submit" class="submit" name="cmd[addSuggestedSolution]" value="{BUTTON_ADD_SOLUTION}" />
		<select name="internalLinkType">
<!-- BEGIN internallink -->
		<option value="{TYPE_INTERNAL_LINK}">{TEXT_INTERNAL_LINK}</option>
<!-- END internallink -->
		</select>
	</td>
</tr>
<tr>
	<td class="submit">
	</td>
	<td class="submit" colspan="5">
		<select name="matching_type" id="matching_type">
			<option value="0"{SELECTED_PICTURES}>{TEXT_TYPE_TERMS_PICTURES}</option>
			<option value="1"{SELECTED_DEFINITIONS}>{TEXT_TYPE_TERMS_DEFINITIONS}</option>
		</select>
<!-- BEGIN multiline_answers -->
		<select name="multilineAnswers">
			<option value="0">{TEXT_HIDE_MULTILINE_ANSWERS}</option>
			<option value="1"{SELECTED_SHOW_MULTILINE_ANSWERS}>{TEXT_SHOW_MULTILINE_ANSWERS}</option>
		</select>
<!-- END multiline_answers -->
		<input type="submit" class="submit" name="cmd[editMode]" value="{SET_EDIT_MODE}" />
	</td>
</tr>
</table>
<table class="fullwidth">
	<tr>
		<td colspan="6" class="option">
			<input name="cmd[addTerm]" type="submit" class="submit" id="addTerm" value="{VALUE_ADD_TERM}" />
			<select name="termcount">
				<!-- BEGIN termcountvalues -->
				<option value="{TERMCOUNTVALUE}">{TERMCOUNTVALUE}</option>
				<!-- END termcountvalues -->
			</select>
			{TEXT_TERMS}
		</td>
	</tr>
	<!-- BEGIN termhead -->
	<tr class="tblheader">
		<th class="std"></th>
		<th class="std">{TEXT_TERMS}</th>
	</tr>
	<!-- END termhead -->
	<!-- BEGIN terms -->
	<tr>
		<td class="tblrow1" style="width: 20px;"><input type="checkbox" name="delete_terms[]" value="{TERM_ID}" /></td>
		<td class="tblrow1"><input type="text" size="80" class="fullwidth" name="terms_{TERM_ID}"{TERM_VALUE}  /></td>
	</tr>
	<!-- END terms -->
	<!-- BEGIN termfooter -->
	<tr>
		<td class="submit">
			<input type="checkbox" name="chb_check_all_terms" id="chb_check_all_terms" value="1" onclick="setChecked('frm_matching', 'delete_terms', document.frm_matching.chb_check_all_terms.checked);" />
		</td>
		<td class="submit"><label for="chb_check_all_terms"><strong>{SELECT_ALL}</strong></label></td>
	</tr>
	<tr>
		<td class="submit">{ARROW}</td>
		<td class="submit">
			<input type="submit" class="submit" name="cmd[deleteTerms]" value="{DELETE}" />
		</td>
	</tr>
	<!-- END termfooter -->
</table>
<table class="fullwidth">
	<tr>
		<td colspan="6" class="option"><input name="cmd[addPair]" type="submit" class="submit" id="add_answer" value="{VALUE_ADD_ANSWER}" /></td>
	</tr>
	<!-- BEGIN answerhead -->
	<tr class="tblheader">
		<th class="std"></th>
		<th class="std">{PICTURE_OR_DEFINITION}</th>
		<th class="std"></th>
		<th class="std">{TERM}</th>
		<th class="std">{TEXT_POINTS}</th>
	</tr>
	<!-- END answerhead -->
	<!-- BEGIN answers -->
	<tr class="{COLOR_CLASS}">
		<td class="{COLOR_CLASS}" width="20"><input type="checkbox" value="{ANSWER_ORDER}" name="chb_answer[]" /></td>
		<!--td class="option">{TEXT_MATCHING_PAIR} {VALUE_ANSWER_COUNTER}:</td-->
		<!-- BEGIN definitions -->
		<td class="{COLOR_CLASS}" width="25%">
			<!--textarea cols="80" rows="4" name="definition_{ANSWER_ORDER}_{DEFINITION_ID}" id="definition_{ANSWER_ORDER}_{DEFINITION_ID}">{VALUE_DEFINITION}</textarea-->
			<input class="fullwidth" name="definition_{ANSWER_ORDER}_{DEFINITION_ID}" type="text" id="definition_{ANSWER_ORDER}_{DEFINITION_ID}" size="20" value="{VALUE_DEFINITION}" />
		</td>
		<!-- END definitions -->
		<!-- BEGIN pictures -->
		<td class="{COLOR_CLASS}">
		<input type="hidden" name="uploaded_image" value="{IMAGE_FILENAME}" />
		<input type="hidden" name="picture_{ANSWER_ORDER}_{PICTURE_ID}" value="{IMAGE_FILENAME}" />
		<input name="picture_{ANSWER_ORDER}_{PICTURE_ID}" type="file" id="picture_{ANSWER_ORDER}_{PICTURE_ID}" size="20" value="{VALUE_PICTURE}" />
		<input type="submit" class="submit" name="cmd[upload]" value="{UPLOAD}" />
		<!-- BEGIN imageupload -->
		<br />{UPLOADED_IMAGE}
		<!-- END imageupload -->
		</td>
		<!-- END pictures -->
		<td class="{COLOR_CLASS}"><div align="center">{TEXT_MATCHES}</div></td>
		<td class="{COLOR_CLASS}" width="25%">
			<select name="termoption_{ANSWER_ORDER}_{TERM_ID}">
				<!-- BEGIN termoptions -->
				<option value="{TERMOPTION_VALUE}"{TERMOPTION_SELECTED}>{TERMOPTION_TEXT}</option>
				<!-- END termoptions -->
			</select>
		</td>
		<td class="{COLOR_CLASS}"><input name="points_{ANSWER_ORDER}" type="text" id="points_{ANSWER_ORDER}" size="3" value="{VALUE_MATCHINGPAIR_POINTS}" /></td>
	</tr>
	<!-- END answers -->
	<!-- BEGIN selectall -->
	<tr>
		<td class="{COLOR_CLASS}">
			<input type="checkbox" name="chb_check_all" id="chb_check_all" value="1" onclick="setChecked('frm_matching', 'chb_answer', document.frm_matching.chb_check_all.checked);" />
		</td>
		<td colspan="4" class="{COLOR_CLASS}"><label for="chb_check_all"><strong>{SELECT_ALL}</strong></label></td>
	</tr>
	<!-- END selectall -->
	<!-- BEGIN QFooter -->
	<tr><td class="submit">{ARROW}</td><td class="submit" colspan="5"><input type="submit" class="submit" name="cmd[delete]" value="{DELETE}" /></td></tr>
	<!-- END QFooter -->
	<tr>
		<td colspan="5" class="submit">
		<span class="asterisk">*</span><span class="small"> {TXT_REQUIRED_FLD}</span>
		<div align="right">
		<input name="cmd[save]" type="submit" class="submit" id="save_multiple_choice" value="{SAVE}" /> <input name="cmd[saveEdit]" type="submit" class="submit" value="{SAVE_EDIT}" />&nbsp;&nbsp;<input name="cmd[cancel]" type="submit" class="submit" id="cancel" value="{CANCEL}" />
		</div>
		</td>
	</tr>
</table>
</form>
<a name="bottom"></a>