| Method | Arguments | Description |
|---|---|---|
table |
null |
builds the table |
add_row |
$arr_html,$row |
adds a static row |
add_col |
$col,$header,$width, $html,$op='init_data' |
adds a new column |
get_sql |
$check_table_key=false |
return the final composed sql query considering or not the table_key improvement |
get_sql_select |
null |
return the sql query corresponding to selecting fields and tables parameters |
get_sql_where |
$check_table_key=true |
return the sql query corresponding to conditions parameters considering or not the table_key improvement |
get_sql_order |
null |
return the sql query corresponding to order parameters |
get_sql_limit |
null |
return the sql query corresponding to limit parameters |
change_tags |
$str |
change the tags for their value #ID#, #PAGE, #ITEMS_PER_PAGE#, #TOTAL_ITEMS# |
change_tag_col |
$str,$arr_cols |
change the column tags for their value #COL1#, #COL2#, ... |
set_cell_attribute |
$value,$row,$column |
set an html attribute to a specific row, column or cell |
draw_items_per_page |
$id_items_per_page |
displays the html fot a custom items per page |
display |
$op='',$ajax=false |
displays the creative table with its components $op - string separated by commas to recieve the components of the table separately i.e: 'form_init, search, items_per_page, table, thead, tbody, actions, pager, form_final, javascript' or 'form_ini,table,form_final' or 'thead,tbody', ... if $op='' all shown. |