本文整理汇总了PHP中FormHelper::submitAjax方法的典型用法代码示例。如果您正苦于以下问题:PHP FormHelper::submitAjax方法的具体用法?PHP FormHelper::submitAjax怎么用?PHP FormHelper::submitAjax使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FormHelper
的用法示例。
在下文中一共展示了FormHelper::submitAjax方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
content:'';
}
}
</style>
<div class="content">
<?php
global $db;
$u = $db->getResult('user', '*', 'id=' . $id, true);
FormHelper::create('formUsuario');
?>
<div class="form-group name_group">
<label for="name">Nome</label><br/> <?php
echo $u['name'];
?>
</div>
<?php
FormHelper::input('email', "E-mail", $u['email'], array('placeholder' => 'Digite o e-mail', 'style' => 'max-width:400px', 'validation' => array('regex' => FormHelper::EMAIL, 'message' => 'Digite um <strong>E-mail</strong> válido.')));
FormHelper::password('senha', 'Senha', '', array('placeholder' => 'Preencha se quiser alterar a senha', 'style' => 'max-width:400px'));
FormHelper::password('novasenha', 'Nova senha', '', array('placeholder' => 'Digite a senha nova', 'style' => 'max-width:400px'));
FormHelper::password('repetir', 'Repita a nova senha', '', array('placeholder' => 'Repita a senha nova', 'style' => 'max-width:400px'));
?>
<br/><?php
FormHelper::startGroup();
FormHelper::submitAjax("Salvar", "salvar/" . $u['id'], array('class' => 'button'));
FormHelper::endGroup();
FormHelper::end();
?>
<script type="text/javascript">
</script>
</div>
示例2: array
<?php
FormHelper::input('custo', 'Custo', $r['custo'], array());
?>
</div>
</div>
<input type='hidden' value='0' id="finalizar" name='finalizar'/>
<?php
if ($ident && $r['finalizado'] == "0" || !$ident) {
FormHelper::textarea('observacao', 'Observação', '', array());
}
$obs = array();
if ($ident) {
$obs = "select \n observacao,\n datetime,\n (select name from user where o.user_id = id) as usuario\n from suporte_observacao o where suporte_id = " . $ident . " order by datetime desc";
$obs = $db->query($obs);
}
FormHelper::submitAjax('Salvar', 'salvar', array('class' => 'button', 'style' => 'margin:5px'));
if ($ident && $r['finalizado'] == "0") {
?>
<button
type="button"
class ='button'
style='margin:5px 15px 5px 5px;float:right'
onclick="finalizaSuporte_Sender(event,1)">Finalizar</button>
<?php
} else {
?>
<button
type="button"
class ='button'
style='margin:5px 15px 5px 5px;float:right'
onclick="finalizaSuporte_Sender(event,0)">Reabrir</button>