Jump to content
Fórum Script Brasil
  • 0

java script + php


Bom dia Pessoal

Tenho esse código abaixo:

$diaini = '';
$diafim    = '';    

print "<form action='' method='POST'>";
print "<fieldset style='float: right; width: 45%; height: 157px;'>";
print "<legend><i class='fa fa-filter'></i> Selecione o periodo: </legend>";
print "<label for='perini'>Dia Inicial</label><br>";
print "<input type='text' id='diaini' name='diaini' class='required input_field' size='10' maxlength='10' value='".$diaini."'/>";
print "<br>";
print "<label for='perfim'>Dia Final</label><br>";
print "<input type='text' id='diafim' name='diafim' class='required input_field' size='10' maxlength='10' value='".$diafim."'/>";
print "<br><br>";
print "<span onclick='return SalvaPonto()' class='btnpeq'><i class='fa fa-check'></i> Salvar Dias</span>";
print "</fieldset>";
print "</form>";


$(function X() {
        constrainInput: true,
        dateFormat: 'dd/mm/yy',
        dayNames: ['Domingo','Segunda','Terça','Quarta','Quinta','Sexta','Sábado','Domingo'],
        dayNamesMin: ['D','S','T','Q','Q','S','S','D'],
        dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb','Dom'],
        monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'],
        monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun','Jul','Ago','Set','Out','Nov','Dez']


preciso chamar essa function X na variavel ($diaini e $diafim ), como faço?




Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Cloud Computing

  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...