Esempio n. 1
0
<h3>My Account</h3>
<?php 
echo FHtml::beginForm('', 'post', array('class' => 'form', 'id' => 'frmEditAccount'));
FHtml::hightlightErrorFields();
$user->scenario = 'editAccount';
if (isset($errors)) {
    echo FHtml::showErrors($errors);
}
if (isset($message)) {
    echo '<div style="font-weight: bold; padding-left: 165px;">' . $message . '</div>';
}
?>
        <div class="Input">
            <?php 
echo FHtml::activeHiddenField($user, 'Id');
?>
            <label for="User_Username">Username</label>
            <span style="line-height: 20px; font-weight: bold;margin: 3px 5px 0px 0px; background-color: none; display: block;"><?php 
echo FHtml::encode($user->Username);
?>
</span>
            <?php 
echo FHtml::activeHiddenField($user, 'Username');
?>
        </div>
        <div class="Input">
            <label for="User_FirstName">First name</label>
            <?php 
echo FHtml::activeTextField($user, 'FirstName', array('class' => 'text'));
?>
        </div>