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>
<?php FormHelper::create('loginForm'); FormHelper::input('email', "E-mail", Request::post('email'), array('placeholder' => 'Digite o seu e-mail', 'style' => 'max-width:400px', 'validation' => array('regex' => FormHelper::EMAIL, 'message' => 'Digite um <strong>E-mail</strong> válido.'))); FormHelper::password('password', "Senha", Request::post('password'), array('placeholder' => 'Digite o sua senha', 'style' => 'max-width:400px;', 'validation' => array('regex' => FormHelper::NOT_EMPTY, 'message' => 'Digite uma <strong>Senha</strong> para logar.'))); ?> <br/><?php FormHelper::startGroup(); FormHelper::submitAjax("Enviar", "auth", array('class' => 'button')); FormHelper::endGroup(); FormHelper::end();
<?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>