Ejemplo n.º 1
0
<?php

// +----------------------------------------------------------------------
// | Demila [ Beautiful Digital Content Trading System ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015 http://demila.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Email author@demila.org
// +----------------------------------------------------------------------
_setView(__FILE__);
_setTitle($langArray['service']);
$data = array();
$service = new service();
$data = $service->getAll(START, LIMIT);
abr('data', $data);
$p = paging("?m=" . $_GET['m'] . "&c=service&p=", "&id=" . $_GET['id'], PAGE, LIMIT, $service->foundRows);
abr('paging', $p);
require_once ROOT_PATH . '/apps/lists/leftlist_admin.php';
    if ($row->oe_kurzbz == $oe_kurzbz) {
        $selected = 'selected';
    } else {
        $selected = '';
    }
    echo '<OPTION value="' . $row->oe_kurzbz . '" ' . $selected . '>' . $row->organisationseinheittyp_kurzbz . ' ' . $row->bezeichnung . '</OPTION>';
}
echo '</SELECT>
<input type="submit" value="Filtern" />
</form>';
if ($oe_kurzbz != '') {
    if (!$service->getServicesOrganisationseinheit($oe_kurzbz)) {
        die($service->errormsg);
    }
} else {
    if (!$service->getAll()) {
        die($service->errormsg);
    }
}
echo '<table class="tablesorter" id="myTable">
	<thead>
		<tr>
			<th>ID</th>
			<th>Bezeichnung</th>
			<th>Beschreibung</th>
			<th>Organisationseinheit</th>
			<th>Content_ID</th>
			<th colspan="3">Aktion</th>
		</tr>
	</thead>
	<tbody>';