public static function submit($field = 'submit', $value = 'Submit', array $attributes = array())
 {
     if (isset($attributes['class'])) {
         $attributes['class'] = 'btn ' . $attributes['class'];
     } else {
         $attributes['class'] = 'btn';
     }
     return parent::submit($field, $value, $attributes);
 }
                    <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>
Exemple #3
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>
Exemple #4
0
<?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>
<?php 
echo Form::close();
?>
</p>
Exemple #5
0
    ?>
</td>
        <td><?php 
    echo \Fuel\Core\Form::input('label', '', array('class' => 'span3'));
    ?>
</td>
        <td><?php 
    echo \Fuel\Core\Form::input('value', '', array('class' => 'span3'));
    ?>
</td>
        <td><?php 
    echo \Fuel\Core\Form::input('others', '', array('class' => 'span3', 'placeholder' => 'name1:content1 name2:content2 ...'));
    ?>
</td>
        <td><?php 
    echo \Fuel\Core\Form::submit('submit', 'Save', array('class' => 'btn btn-primary'));
    ?>
</td>
        <?php 
    echo \Fuel\Core\Form::close();
    ?>
    </tr>
    </tbody>
</table>

<p><?php 
    echo \Fuel\Core\Html::anchor('admin/pass/view/' . $pass->id, 'Back');
    ?>
</p>
<?php 
}
Exemple #6
0
     ?>
 <?php 
 }
 ?>
 <td>
     <?php 
 if (empty($pass->file_name)) {
     ?>
     <?php 
     echo \Fuel\Core\Form::open(array('action' => 'admin/pass/generate/' . $pass->id, 'method' => 'POST'));
     ?>
     <?php 
     echo \Fuel\Core\Form::hidden('cert_password_' . $pass->id, '');
     ?>
     <?php 
     echo \Fuel\Core\Form::submit('submit', 'Generate', array('class' => 'btn', 'onClick' => 'return generate_pkpass(' . $pass->id . ');'));
     ?>
     <?php 
 } else {
     ?>
     <?php 
     echo Html::anchor('admin/pass/update/' . $pass->id, 'Update', array('onclick' => "return confirm('Are you sure?')"));
     ?>
     | <?php 
     Html::anchor('admin/pass/remove/' . $pass->id, 'Remove', array('onclick' => "return confirm('Are you sure?')"));
     ?>
     <?php 
 }
 ?>
 </td>
 <td>
Exemple #7
0
echo \Fuel\Core\Form::input('login_id', \Fuel\Core\Input::post('login_id'), array('class' => 'form-control', 'placeholder' => 'ログインID'));
?>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-4 control-label">パスワード</label>
				<div class="col-sm-6">
					<?php 
echo \Fuel\Core\Form::input('password', '', array('type' => 'password', 'class' => 'form-control', 'placeholder' => 'パスワード'));
?>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-4 col-sm-10">
					<?php 
echo \Fuel\Core\Form::submit('submit', 'ログイン', array('class' => 'btn btn-primary btn-sm', 'id' => 'btn-login'));
?>
				</div>
			</div>
		<?php 
echo \Fuel\Core\Form::close();
?>

	</div>
</div>
<script type = "text/javascript" >
	$(function(){
		$('#btn-login').click(function(){
			if($('#form_login_id').val() == '' && $('#form_password').val() == '')
			{
				$('.show-info').html('');