User:Hummel-riegel/SRF Process/helpers/process form.php

From mediawiki.org
<?php

$html = '
	<form action="'.htmlspecialchars($returntitle->getFullURL()).'/send" method="POST">
		<table>			
			<colgroup>
				<col width="250" />
				<col width="250" />
				<col width="350" />				
			</colgroup>
			<tr>
				<td><label for="title">' . wfMsg('srf_specialcreateprocess-processname') . '</label></td>
				<td><input style="width: 240px;" type="text" name="title" id="title" value="'.$this->_title.'"/></td>
				<td>';

if(isset($errors['title'])) {
	$html .= $errors['title'];
};

$html .=		'</td>
			</tr>
			<tr>
				<td colspan=2>
					' . wfMsg('srf_specialcreateprocess-processsteps') . '
				</td>
			</tr>
			<tr>
				<td colspan=2>
					<textarea name="content" style="width: 494px;" rows="10">'.$this->_content.'</textarea>
				</td>';	

if(isset($errors['content'])) {
	$html .= $errors['content'];
};

$html .=		'</td>				
			</tr>
		</table>
		<input type="submit" value="' . wfMsg('srf_specialcreateprocess-processsend') . '" />		
	</form>';