Location: PHPKode > projects > FtpREadmin > ftpreadmin-0.2/template/edit_user.tpl.php
<?php
/* ftpREadmin (ProFTPd MySQL Admin with Quota), Copyright (C) 2008 Vaidotas Gaidelis
 * ftpREadmin comes with ABSOLUTELY NO WARRANTY.
 * This is free software, and you are welcome to redistribute it
 * under the terms of the GNU General Public License.
 * Read 'COPYING' for further information.
 */
 
$content = "<form action=\"secure.php?pg=users&amp;action=update\" name=\"user_form\" method=\"post\" onSubmit=\"return validate_form();\">
	<table class=\"form\">
		<tr>
			<td>
				<label class=\"labelstyle\" for=\"username\">Username: </label><br/>
				<input disabled  value=\"".$row['userid']."\" class=\"inputstyle\" type=\"text\" name=\"userid\" maxlength=\"20\"/><br/>
				<label class=\"labelstyle\" for=\"password\">Password: </label><br/>
				<input value=\"".$row['passwd']."\"  class=\"inputstyle\" type=\"text\" name=\"passwd\" maxlength=\"20\"/><br/>
				<label class=\"labelstyle\" for=\"directory\">Home directory: </label><br/>
				<input disabled  value=\"".$row['homedir']."\" class=\"inputstyle\" type=\"text\" name=\"homedir\" maxlength=\"200\"/><br/>
				<label class=\"labelstyle\" for=\"comment\">Comment: </label><br/>
				<input value=\"".$row['comment']."\" class=\"inputstyle\" type=\"text\" name=\"comment\" maxlength=\"128\"/><br/>
			</td>
			<td>
				<label class=\"labelstyle\" for=\"quota type\">Quota type: </label><br/>
				<select name=\"quota_type\" class=\"inputstyle\">
				<option value=\"user\"".$quotaType['user']."> User</option>
				<option value=\"group\"".$quotaType['group']."> Group</option>
				<option value=\"class\"".$quotaType['class']."> Class</option>
				<option value=\"all\"".$quotaType['all']."> All</option>
				</select><br/>
				<label class=\"labelstyle\" for=\"per session\">Quota per session: </label><br/>
				<input type=\"radio\" name=\"per_session\" value=\"true\"".$perSession[1]." /> True<br/>
				<input type=\"radio\" name=\"per_session\" value=\"false\"".$perSession[0]." /> False<br/>
				<label class=\"labelstyle\" for=\"limit type\">Limit type: </label><br/>
				<input type=\"radio\" name=\"limit_type\" value=\"soft\"".$limitType['soft']." /> Soft<br/>
				<input type=\"radio\" name=\"limit_type\" value=\"hard\"".$limitType['hard']." /> Hard<br/>
			</td>
			<td>
				<label class=\"labelstyle\" for=\"quota in\">Quota in <small>(0 = no quotta)</small>: </label><br/>
				<input class=\"inputstyle\" type=\"text\" name=\"bytes_in_avail\" maxlength=\"128\" value=\"".$quotaIn['value']."\"/>
				<select name=\"quota_in_units\" class=\"inputstyle\">
				<option value=\"KB\"".$quotaInU['KB']."> KB</option>
				<option value=\"MB\"".$quotaInU['MB']."> MB</option>
				<option value=\"GB\"".$quotaInU['GB']."> GB</option>
				</select><br/>
				<label class=\"labelstyle\" for=\"quota out\">Quota out <small>(0 = no quotta)</small>: </label><br/>
				<input class=\"inputstyle\" type=\"text\" name=\"bytes_out_avail\" maxlength=\"128\" value=\"".$quotaOut['value']."\"/>
				<select name=\"quota_out_units\" class=\"inputstyle\">
				<option value=\"KB\"".$quotaOutU['KB']."> KB</option>
				<option value=\"MB\"".$quotaOutU['MB']."> MB</option>
				<option value=\"GB\"".$quotaOutU['GB']."> GB</option>
				</select><br/>
				<label class=\"labelstyle\" for=\"xfer limit\">Xfer limit <small>(0 = no limit)</small>: </label><br/>
				<input class=\"inputstyle\" type=\"text\" name=\"bytes_xfer_avail\" maxlength=\"128\" value=\"".$quotaXfer['value']."\"/>
				<select name=\"xfer_units\" class=\"inputstyle\">
				<option value=\"KB\"".$quotaXferU['KB']."> KB</option>
				<option value=\"MB\"".$quotaXferU['MB']."> MB</option>
				<option value=\"GB\"".$quotaXferU['GB']."> GB</option>
				</select>
				<br/><br/>
			</td>
		</tr>
	</table>
	<br/>
	<input type=\"hidden\" name=\"ftpUserId\" value=\"".$ftpUserID."\" />
	<input type=\"hidden\" name=\"username\" value=\"".$row['userid']."\" />
	<input class=\"inputstyle\" type=\"submit\" name=\"submit\" value=\"Done\"/>
	</form>";
?>
Return current item: FtpREadmin