Losing Theme

Losing Theme

DrakoDrako Posts: 73Questions: 0Answers: 0
edited December 2010 in General
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!

Replies

  • allanallan Posts: 63,214Questions: 1Answers: 10,415 Site admin
    I afraid I don't understand what you mean by losing the theme. When you submit the form do you reload the page and the table is redrawn without the theme? I can only presume that a class isn't being set or something.

    Allan
  • DrakoDrako Posts: 73Questions: 0Answers: 0
    it is exactly this that is happening, after the reload the class is not being set, but the code for the table is the same since im just using PHP_SELF.

    this is my form code

    [code]
    [/code]

    table code
    [code][/code]

    should i post all my code here?

    thanks for the help Allan.
  • allanallan Posts: 63,214Questions: 1Answers: 10,415 Site admin
    Ideally if you can give us a link so I can actually see it happening that would be great.

    Allan
  • DrakoDrako Posts: 73Questions: 0Answers: 0
    My webserver is local, im just making a little websystem to be used locally =/

    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]
  • DrakoDrako Posts: 73Questions: 0Answers: 0
    [code]
    if(res)
    return true;
    else
    return false;
    }










    Lote Externo
    N
  • allanallan Posts: 63,214Questions: 1Answers: 10,415 Site admin
    Nothing obvious I'm afraid. I'd suggest poking around in Firebug to see if there is a class name missing or something.

    Allan
  • DrakoDrako Posts: 73Questions: 0Answers: 0
    nothing changes on firebug (i never really used it, maybe you can tell me where to check, i might be doing something wrong)

    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!
This discussion has been closed.