<?php

if (!defined("IN_FUSION")) {
 die("Access Denied");
}

// Display user field input
if ($profile_method == "input") {
 $user_62 = isset($user_data['user_62']) ? $user_data['user_62'] : "";
 if ($this->isError()) {
 $user_62 = isset($_POST['user_62']) ? stripinput($_POST['user_62']) : $user_62;
 }

 echo "<tr>n";
 echo "<td class='tbl".$this->getErrorClass("user_62")."'><label for='user_62'>".$locale['uf_6'].$required."</label></td>n";
 echo "<td class='tbl".$this->getErrorClass("user_62")."'>";
 echo "<input type='text' id='user_62' name='user_62' value='".$user_62."' maxlength='3' class='textbox' style='width:200px;' />";
 echo "</td>n</tr>n";

 if ($required) {
 $this->setRequiredJavaScript("user_62", $locale['uf_6_error']);
 }

 // Display in profile
} else if ($profile_method == "display") {
 if ($user_data['user_62']) {
 echo "<tr>n";
 echo "<td class='tbl1'>".$locale['uf_6']."</td>n";
 echo "<td align='right' class='tbl1'>".$user_data['user_62']."</td>n";
 echo "</tr>n";
 }

 // Insert and update
} else if ($profile_method == "validate_insert" || $profile_method == "validate_update") {
 // Get input data
 if (isset($_POST['user_62']) && ($_POST['user_62'] != "" || $this->_isNotRequired("user_62"))) {
 if (isnum($_POST['user_62']) || $_POST['user_62'] == "") {
 // Set update or insert user data
 $this->_setDBValue("user_62", $_POST['user_62']);
 } else {
 $this->_setError("user_62", $locale['uf_6_error2']);
 }
 } else {
 $this->_setError("user_62", $locale['uf_6_error'], TRUE);
 }
}