Esempio n. 1
0
                        <?php 
echo Form::password('userPassword', array('style' => 'width: 400px;margin-left: 0px;'));
?>
                    </td></tr>

                    <tr><td style="width: 900px"><label style="font-weight: bold">Display Name</label>
                        <p id="message">Choose a name for other user's to recognize you</p>
                        <?php 
echo Form::text('userDisplayName', Input::old('userDisplayName', $passedUser->displayname), array('style' => 'width: 400px;margin-left: 0px;'));
?>
                    </td></tr>

                    <tr><td style="width: 900px"><label style="font-weight: bold">User Type</label>
                        <p id="message">Authority of the user</p>
                        <?php 
echo Form::select('type', cmsHelper::getUserTypeArray(), Input::old('type', $passedUser->type - 2), Input::old("editingMode", $passedUser->id) == 1 || Auth::user()->id != 1 ? array("disabled" => "enabled") : array());
?>
                    </td></tr>
<!-- Form output starts     -->



<?php 
echo Form::hidden('editingMode', Input::old("editingMode", $passedUser->id));
?>
                <tr><td colspan="3"> <?php 
echo Form::submit(is_null($passedUser->id) ? "Add" : "Edit", array('id' => 'adminbutton'));
?>
   </td></tr>

<?php