Vergleich admin/inc/class_table.php - 1.8.5 - 1.8.29

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 31Zeile 31
	/**
* Construct an individual cell for this table.
*

	/**
* Construct an individual cell for this table.
*

	 * @param string The HTML content for this cell.
* @param array Array of extra information about this cell (class, id, colspan, rowspan, width)

	 * @param string $data The HTML content for this cell.
* @param array $extra Array of extra information about this cell (class, id, colspan, rowspan, width)

	 */
function construct_cell($data, $extra=array())
{

	 */
function construct_cell($data, $extra=array())
{

Zeile 42Zeile 42
	/**
* Construct a row from the earlier defined constructed cells for the table.
*

	/**
* Construct a row from the earlier defined constructed cells for the table.
*

	 * @param array Array of extra information about this row (class, id)

	 * @param array $extra Array of extra information about this row (class, id)

	 */
function construct_row($extra = array())
{

	 */
function construct_row($extra = array())
{

Zeile 111Zeile 111
	/**
* return the cells of a row for the table based row.
*

	/**
* return the cells of a row for the table based row.
*

	 * @param string The id of the row you want to give it.
* @param boolean Whether or not to return or echo the resultant contents.

	 * @param string $row_id The id of the row you want to give it.
* @param boolean $return Whether or not to return or echo the resultant contents.

	 * @return string The output of the row cells (optional).
*/
function output_row_cells($row_id, $return=false)

	 * @return string The output of the row cells (optional).
*/
function output_row_cells($row_id, $return=false)

Zeile 142Zeile 142
	/**
* Construct a header cell for this table.
*

	/**
* Construct a header cell for this table.
*

	 * @param string The HTML content for this header cell.
* @param array Array of extra information for this header cell (class, style, colspan, width)

	 * @param string $data The HTML content for this header cell.
* @param array $extra Array of extra information for this header cell (class, style, colspan, width)

	 */
function construct_header($data, $extra=array())
{

	 */
function construct_header($data, $extra=array())
{

Zeile 153Zeile 153
	/**
* Output this table to the browser.
*

	/**
* Output this table to the browser.
*

	 * @param string The heading for this table.
* @param int The border width for this table.
* @param string The class for this table.
* @param boolean Whether or not to return or echo the resultant contents.

	 * @param string $heading The heading for this table.
* @param int $border The border width for this table.
* @param string $class The class for this table.
* @param boolean $return Whether or not to return or echo the resultant contents.

	 * @return string The output of the row cells (optional).
*/
function output($heading="", $border=1, $class="general", $return=false)

	 * @return string The output of the row cells (optional).
*/
function output($heading="", $border=1, $class="general", $return=false)

Zeile 174Zeile 174
	/**
* Fetch the built HTML for this table.
*

	/**
* Fetch the built HTML for this table.
*

	 * @param string The heading for this table.
* @param int The border width for this table.
* @param string The class for this table.
* @param string The id for this table.

	 * @param string $heading The heading for this table.
* @param int $border The border width for this table.
* @param string $class The class for this table.
* @param string $table_id The id for this table.

	 * @return string The built HTML.
*/
function construct_html($heading="", $border=1, $class=null, $table_id="")

	 * @return string The built HTML.
*/
function construct_html($heading="", $border=1, $class=null, $table_id="")

Zeile 212Zeile 212
			foreach($this->_headers as $key => $data)
{
$table .= "\t\t\t<th";

			foreach($this->_headers as $key => $data)
{
$table .= "\t\t\t<th";

 
				if(!isset($data['extra']['class']))
{
$data['extra']['class'] = '';
}

				if($key == 0)
{
$data['extra']['class'] .= " first";

				if($key == 0)
{
$data['extra']['class'] .= " first";

Zeile 220Zeile 224
				{
$data['extra']['class'] .= " last";
}

				{
$data['extra']['class'] .= " last";
}

				if(isset($data['extra']['class']))

				if(!empty($data['extra']['class']))

				{
$table .= " class=\"".$data['extra']['class']."\"";
}

				{
$table .= " class=\"".$data['extra']['class']."\"";
}