Skip to content

Instantly share code, notes, and snippets.

View fernandolopes's full-sized avatar

FERNANDO LOPES DA SILVA fernandolopes

View GitHub Profile
@fernandolopes
fernandolopes / fernando
Created June 5, 2012 13:44
Como faço para mudar o tamanho da fonte e tipo de fonte de um button no jquery-ui
<div style=" float: right; padding: 20px 0 20px 35px; font-family:Verdana, Geneva, sans-serif; font-size:12px;">
<div class="Upload">oi</div>
</div>
@fernandolopes
fernandolopes / fernando
Created June 5, 2012 14:09
Div de filtros
<div class="form_filtro_container ui-widget ui-widget-content ui-corner-all">
<span class="form_filtro_titulo ui-widget-header ui-corner-all">LABEL</span>
</div>
<?php
if(!empty($_POST)){
require_once "SOAP/Client.php";
// SOAP/WSDL
$sw = new SOAP_WSDL ("http://192.168.1.60/web.php?wsdl");
// Proxy-Obj.
$proxy = $sw->getProxy ();
@fernandolopes
fernandolopes / fernando
Created June 6, 2012 11:33
Barra de rodape
====== html =========
<div id="footer" class="ui-accordion-header ui-helper-reset ui-state-default">Unicred - Todos os direitos reservados</div>
======= CSS ==========> o css está localizado no site.css
div#footer {
bottom: 0pt;
float: left;
height: 30px;
line-height: 30px;
margin-top: 40px;
@fernandolopes
fernandolopes / fernando
Created June 6, 2012 12:57
Código com o formulário de upload de arquivos
<form action="http://64.15.129.201:8027/unicredmais/retaguarda/upload/send" method="post" enctype="multipart/form-data">
<table class="table_form" style="width: 500px;">
<tbody><tr style="width: 110px;">
<td class="td_label">
<label for="arquivo">Arquivo: *</label>
</td>
<td class="td_field" style="width: 390px;">
<input type="file" name="arquivo" size="35" alt="Arquivo">
@fernandolopes
fernandolopes / fernando
Created June 6, 2012 16:42
mensagem de sucesso!
<div class="ui-widget">
<div class="ui-state-success ui-corner-all" style="margin-top: 20px; padding: 0 .7em;">
<p><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
Item removido com sucesso.</p>
</div>
</div>
@fernandolopes
fernandolopes / fernando
Created June 11, 2012 14:03
Reload por filtros do jquerygrid
url = '<?php echo url::base(); ?>fornecedor/ofertas/get_ofertas';
$('.form_filtro_submit').click(function() {
new_url = url +'?'+ $('.form_filtro').serialize();
$("#grid").jqGrid('setGridParam',{url:new_url}).trigger("reloadGrid");
return false;
})
@fernandolopes
fernandolopes / fernando
Created June 18, 2012 18:48
Kohana + ZEND SOAP SERVER
<?php defined('SYSPATH') OR die('No direct access allowed.');
ini_set('include_path', ini_get('include_path').PATH_SEPARATOR.APPPATH.'vendor/');
include Kohana::find_file('vendor','Zend/Soap/AutoDiscover');
include Kohana::find_file('vendor','Zend/Soap/Server');
class Atualiza_Senha_Controller extends Controller {
<?php
/**
* include the library files and the model
*/
class Service_Model extends Model
{
/**
<script>
function actions(cellvalue, options, rowObject) {
retorno = '<a style="margin-right: 5px" href="<?php echo url::base(); ?>market/fornecedores/show/'+rowObject.id+'" title="<?php echo kohana::lang('admin.show'); ?>">';
retorno += '<?php echo html::image('images/icons/zoom.png'); ?></a>';
retorno += '<a href="<?php echo url::base(); ?>market/fornecedores/edit/'+rowObject.id+'" title="<?php echo kohana::lang('admin.edit'); ?>">';
retorno += '<?php echo html::image('images/icons/page_edit.png'); ?></a>';
retorno += '&nbsp;&nbsp;'
retorno += '<a href="<?php echo url::base(); ?>market/fornecedores/disable/'+rowObject.id+'" title="<?php echo kohana::lang('admin.disable'); ?>" ';
retorno += 'onclick="return window.confirm(\'<?php echo kohana::lang('admin.confirm.supplier'); ?>\')"><?php echo html::image('images/icons/cross.png'); ?></a>';
return retorno;