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

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 36Zeile 36
	 */
function construct_cell($data, $extra=array())
{

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

		foreach(array('class', 'style', 'id') as $field)
{
// Common-used fields
if(!isset($extra[$field]))
{
$extra[$field] = '';
}
}


 
		$this->_cells[] = array("data" => $data, "extra" => $extra);
}

		$this->_cells[] = array("data" => $data, "extra" => $extra);
}





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

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

Zeile 57Zeile 48
	{
$i = 1;
$cells = '';

	{
$i = 1;
$cells = '';


foreach(array('class', 'style', 'id', 'rowspan', 'width') as $field)
{
// Common-used fields
if(!isset($extra[$field]))
{
$extra[$field] = '';
}
}

 

// We construct individual cells here
foreach($this->_cells as $key => $cell)
{
$cells .= "\t\t\t<td";


// We construct individual cells here
foreach($this->_cells as $key => $cell)
{
$cells .= "\t\t\t<td";

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


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

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

Zeile 85Zeile 73
				$i = 0;
}
$i++;

				$i = 0;
}
$i++;

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

			if($cell['extra']['class'])

			{
$cells .= " class=\"".trim($cell['extra']['class'])."\"";
}

			{
$cells .= " class=\"".trim($cell['extra']['class'])."\"";
}

Zeile 158Zeile 146
	 * @param array Array of extra information for this header cell (class, style, colspan, width)
*/
function construct_header($data, $extra=array())

	 * @param array Array of extra information for this header cell (class, style, colspan, width)
*/
function construct_header($data, $extra=array())

	{

	{

		$this->_headers[] = array("data" => $data, "extra" => $extra);
}


		$this->_headers[] = array("data" => $data, "extra" => $extra);
}


Zeile 211Zeile 199
				$class = "general";
}
$table .= " class=\"".$class."\"";

				$class = "general";
}
$table .= " class=\"".$class."\"";

		}

		}

		if($table_id != "")
{
$table .= " id=\"".$table_id."\"";

		if($table_id != "")
{
$table .= " id=\"".$table_id."\"";

Zeile 258Zeile 246
		foreach($this->_rows as $key => $table_row)
{
$table .= "\t\t<tr";

		foreach($this->_rows as $key => $table_row)
{
$table .= "\t\t<tr";

			if($table_row['extra']['id'])

			if(isset($table_row['extra']['id']))

			{
$table .= " id=\"{$table_row['extra']['id']}\"";
}

			{
$table .= " id=\"{$table_row['extra']['id']}\"";
}

 

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


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

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