Update table.php

This commit is contained in:
Alessandro Ferro 2022-07-20 10:36:05 +02:00
parent 3766a28ae8
commit f075c81ddd

View File

@ -1,7 +1,7 @@
<?php <?php
/** /**
* PhpXpress v1.0 * PhpXpress v1.0.1
* *
* @see https://github.com/xfarrow/phpxpress The PhpXpress GitHub project * @see https://github.com/xfarrow/phpxpress The PhpXpress GitHub project
* *
@ -59,6 +59,7 @@
* to unexpected results * to unexpected results
*/ */
private $pedantic_type_check = false; private $pedantic_type_check = false;
private $id_table = "Pxpress_MyTable";
/** /**
* Draw the Table. * Draw the Table.
@ -79,7 +80,7 @@
if($this->hoverAnimation) $tableClass.= " table-hover"; if($this->hoverAnimation) $tableClass.= " table-hover";
if($this->small) $tableClass.= " table-sm"; if($this->small) $tableClass.= " table-sm";
echo "<table class = '$tableClass'>"; echo "<table id = '$this->id_table' class = '$tableClass'>";
/** /**
** **
@ -364,5 +365,9 @@
} }
$this->pedantic_type_check = $bool; $this->pedantic_type_check = $bool;
} }
function set_table_id($id){
$this->id_table = $id;
}
} }
?> ?>