예제 #1
0
			<label for="username">User Name(*): </label>
			<input type="text" name="username" id="username" maxlength="50">
			<br><br>
			<label for="password">Password(*):</label> &nbsp;&nbsp;
			<input type="password" name="password" id="password" maxlength="50">
			<br>
			<input type="submit" name="submit" value="Submit">
		</fieldset>
	</form>
  -->
	<?php 
// create Form using Fuel/Form
echo Form::open(array('action' => 'login/confirm', 'method' => 'post'));
// Create input text form
echo Form::label('User Name(*)', 'username');
echo "&nbsp;&nbsp;";
echo Form::input('username', '', array('maxlength' => 50, 'size' => 20));
echo "<br><br>";
// Create input password
echo Form::label('Password(*):', 'password');
echo "&nbsp;&nbsp;&nbsp;&nbsp;";
echo Form::password('password', '', array('maxlength' => 50, 'size' => 20));
echo "<br><br>";
// Create submit button
echo Form::submit('submit', 'LOGIN');
// Close Form
echo Form::close();
?>
  
</body>
</html>
예제 #2
0
echo \Fuel\Core\Form::open(array('class' => 'form-horizontal'));
?>

<fieldset>
    <div class="form-group">
        <?php 
echo \Fuel\Core\Form::label('Name', 'name', array('class' => 'control-label'));
?>
        <?php 
echo \Fuel\Core\Form::input('name', isset($comment->name) ? $comment->name : '', array('class' => 'form-control'));
?>
    </div>
    
    <div class="form-group">
        <?php 
echo \Fuel\Core\Form::label('Comment', 'comment', array('class' => 'control-label'));
?>
        <?php 
echo \Fuel\Core\Form::textarea('comment', Fuel\Core\Input::post('comment', isset($comment) ? $comment->comment : ''), array('class' => 'form-control'));
?>
        
    </div>
</fieldset>

<div class="actions">
    <?php 
echo \Fuel\Core\Form::hidden('message_id', isset($message) ? $message : '');
?>
    <?php 
echo \Fuel\Core\Form::submit('submit', 'Submit', array('class' => 'btn btn-primary'));
?>
예제 #3
0
?>
</p>

<p>
<?php 
echo Form::label('メールアドレス', 'email');
?>
(*) :
<?php 
echo Form::input('email', Input::post('email'));
?>
</p>

<p>
<?php 
echo Form::label('コメント', 'comment');
?>
(*) :
<?php 
echo Form::textarea('comment', Input::post('comment'), array('cols' => 70, 'rows' => 6));
?>
</p>


<div class="actions">
<?php 
echo Form::submit('submit', '確認');
?>
</div>

<p>
예제 #4
0
<fieldset>
    <div class="clearfix">
        <?php 
echo \Fuel\Core\Form::label('Label', 'label');
?>

        <div class="input">
            <?php 
echo \Fuel\Core\Form::input('label', \Fuel\Core\Input::post('label', isset($field) ? $field->label : ''));
?>
        </div>
    </div>

    <div class="clearfix">
        <?php 
echo \Fuel\Core\Form::label('Value', 'value');
?>

        <div class="input">
            <?php 
echo \Fuel\Core\Form::input('value', \Fuel\Core\Input::post('value', isset($field) ? $field->value : ''));
?>
        </div>
    </div>

    <div class="actions">
        <?php 
echo Form::submit('submit', 'Save', array('class' => 'btn btn-primary'));
?>
    </div>
</fieldset>