Losing Theme
Losing Theme
Im using the themeroller and when i submit a form with PHP_SELF to add a new row to the table with the form values i lose the theme, how can i set it back?
im also building the table on php code from a sqlite file
like this:
[code]
foreach ($db->query("SELECT * FROM PROBLEMA WHERE LOTE_EXTERNO_ID_ASSOCIADO='$l_ext'") as $row)
{
$tablecontents .= "
{$row['LOTE_EXTERNO_ID_ASSOCIADO']}
{$row['Numero_Placa']}
{$row['Defeito']}
{$row['Posicao']}
" ;
}
echo $tablecontents;
[/code]
it does work and theme is applied, but right after the submit it loses the theme (but it still works and the row is added).
thanks!
im also building the table on php code from a sqlite file
like this:
[code]
foreach ($db->query("SELECT * FROM PROBLEMA WHERE LOTE_EXTERNO_ID_ASSOCIADO='$l_ext'") as $row)
{
$tablecontents .= "
{$row['LOTE_EXTERNO_ID_ASSOCIADO']}
{$row['Numero_Placa']}
{$row['Defeito']}
{$row['Posicao']}
" ;
}
echo $tablecontents;
[/code]
it does work and theme is applied, but right after the submit it loses the theme (but it still works and the row is added).
thanks!
This discussion has been closed.
Replies
Allan
this is my form code
[code]
[/code]
table code
[code][/code]
should i post all my code here?
thanks for the help Allan.
Allan
seems like i cant post all the code since its too long, im posting 2 times, if its ok not you can delete it.. thanks for all the help.
[code]
Procura
@import "DataTables-1.7.5/media/css/demo_page.css";
@import "DataTables-1.7.5/media/css/demo_table.css";
@import "TableTools/media/css/TableTools.css";
@import "css/custom-theme/jquery-ui-1.8.6.custom.css";
.tbl_bg {
background-color: #D7D7D7;
border: 1px solid #898989;
}
.alt {
background-color: #EBEBEB;
}
.altalt {
background-color: #EBEBEB;
border-bottom: 1px solid #898989;
}
.tbl_bg p {
font-size: 0.8em;
text-align: left;
margin: 0;
padding: 5px;
font-family: Arial, Helvetica, sans-serif;
}
.lft_bdr {
border-left: 1px solid #898989;
}
.input {
width: 80px;
border: 1px solid #ACACAC;
margin: 0;
padding: 2px;
}
textarea {
width: 200px;
height: 100px;
border: 1px solid #ACACAC;
}
$(document).ready(function() {
TableToolsInit.sSwfPath = "TableTools/media/swf/ZeroClipboard.swf";
$('#table1').dataTable( {
//"bPaginate": true,
"bLengthChange": true,
// "bFilter": true,
// "bSort": true,
"bInfo": false,
"sDom": '<"H"lfr>t<"F"ipT>',
"bAutoWidth": false,
"bRetrieve": true,
"bJQueryUI": true
});
} );
$(function() {
$( '#datap' ).datepicker();
});
function fnClickAddRow(n__placa,defeito2,posicao2) {
var lext = "<?php echo $l_ext ; ?>";
$('#table1').dataTable().fnAddData( [
lext,
n__placa,
defeito2,
posicao2
]);
}
function executeOnSubmit()
{
var res = confirm("Deseja incluir um novo defeito?");
[/code]
if(res)
return true;
else
return false;
}
Lote Externo
N
Allan
here are screenshots from before and after the submit:
http://img26.imageshack.us/img26/8324/16907348.jpg
http://img811.imageshack.us/img811/3811/80439089.jpg
thanks!