Location: PHPKode > projects > FtpREadmin > ftpreadmin-0.2/template/add_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=add_user\" method=\"post\" name=\"user_form\" onSubmit=\"return validate_form();\">
				<table class=\"form\">
					<tr>
						<td>
							<label class=\"labelstyle\" for=\"username\">Username: </label><br/>
							<input class=\"inputstyle\" type=\"text\" onBlur=\"fillHomeDir('".$this->confArr['default_home_dir_prefix']."');\" name=\"userid\" maxlength=\"20\"/><br/>
							<label class=\"labelstyle\" for=\"password\">Password: </label><br/>
							<input class=\"inputstyle\" type=\"text\" name=\"passwd\" maxlength=\"20\"/><br/>
							<label class=\"labelstyle\" for=\"directory\">Home directory: </label><br/>
							<input class=\"inputstyle\" value=\"".$this->confArr['default_home_dir_prefix']."\" type=\"text\" name=\"homedir\" maxlength=\"200\"/><br/>
							<label class=\"labelstyle\" for=\"comment\">Comment: </label><br/>
							<input 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\"> User</option>
								<option  value=\"group\"> Group</option>
								<option  value=\"class\"> Class</option>
								<option  value=\"all\"> All</option>
							</select><br/>
							<label class=\"labelstyle\" for=\"per session\">Quota per session: </label><br/>
							<input type=\"radio\" name=\"per_session\" value=\"true\"> True<br/>
							<input type=\"radio\" name=\"per_session\" value=\"false\" checked> False<br/>
							<label class=\"labelstyle\" for=\"limit type\">Limit type: </label><br/>
							<input type=\"radio\" name=\"limit_type\" value=\"soft\"> Soft<br/>
							<input type=\"radio\" name=\"limit_type\" value=\"hard\" checked> Hard<br/>
						</td>
						<td>
							<label class=\"labelstyle\" for=\"quota in\">Quota in <small>(0 = no quotta)</small>: </label><br/>
							<input class=\"inputstyle\" value=\"0\" type=\"text\" name=\"bytes_in_avail\" maxlength=\"128\"/>
							<select name=\"quota_in_units\" class=\"inputstyle\">
								<option value=\"KB\"> KB</option>
								<option value=\"MB\" selected> MB</option>
								<option value=\"GB\"> GB</option>
							</select><br/>
							<label class=\"labelstyle\" for=\"quota out\">Quota out <small>(0 = no quotta)</small>: </label><br/>
							<input class=\"inputstyle\" value=\"0\" type=\"text\" name=\"bytes_out_avail\" maxlength=\"128\"/>
							<select name=\"quota_out_units\" class=\"inputstyle\">
								<option value=\"KB\"> KB</option>
								<option value=\"MB\" selected> MB</option>
								<option value=\"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\" value=\"0\" name=\"bytes_xfer_avail\" maxlength=\"128\"/>
							<select name=\"xfer_units\" class=\"inputstyle\">
								<option value=\"KB\"> KB</option>
								<option value=\"MB\" selected> MB</option>
								<option value=\"GB\"> GB</option>
							</select>
						</td>
					</tr>
				</table>
				<br/>				
				<input class=\"inputstyle\" type=\"submit\" name=\"submit\" value=\"Add user\"/>    
				<input class=\"inputstyle\" type=\"reset\" value=\"  Reset \"/>
				</form>";
?>
Return current item: FtpREadmin