<fieldset>
                        <div class="control-group">
                            <div class="controls">
                                <?php 
echo \Fuel\Core\Form::textarea('comment', '', array('class' => 'form-control', 'rows' => 2, 'cols' => 50, 'required' => ''));
?>
                                <?php 
echo \Fuel\Core\Form::hidden('project_task_id', $task->id);
?>
                                <?php 
echo \Fuel\Core\Form::hidden('user_id', $user_id);
?>
                            </div>
                        </div>

                        <div class="control-group"> 
                            <?php 
echo \Fuel\Core\Form::submit('submit', 'Submit Comment', array('class' => 'btn btn-success'));
?>
                        </div>
                    </fieldset>

                    <?php 
echo \Fuel\Core\Form::close();
?>
                </td>
            </tr>
        </tbody>
    </table>
</div>
示例#2
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>