<commit_before><?php
include APPPATH . 'views/header.php';

echo '
<div class="haendleradmin">
	<h1>Händleradmin</h1>
	' . anchor('haendleradmin/direktlinks', 'Direktlinks') . '
	
	
	<h2>Händler wählen</h2>
	
	<table class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th scope="column">Nr.</th>
				<th scope="column">Firma</th>
				<th scope="column">Person</th>
				<th scope="column">Status</th>
				<th scope="column">Quittungen</th>
				<th scope="column">Velos</th>
				<th scope="column">Abrechnung</th>
				<th scope="column">Bearbeiten</th>
			</tr>
		</thead>
		<tbody>';

foreach ($liste->result() as $haendler) {
	echo '
			<tr>
				<th scope="row">' . $haendler->id . '</th>
				<td>' . $haendler->firma . '</td>
				<td>' . $haendler->person . '</td>
				<td>' . $haendler->status . '</td>
				<td>' . anchor('haendleradmin/quittungen/' . $haendler->id, 'zuweisen', 'inactive="true"') . '</td>
				<td>' . anchor('haendlerformular/' . $haendler->code, 'kontrollieren', 'inactive="true"') . '</td>
				<td>' . anchor('haendleradmin/abrechnung/' . $haendler->id, 'Abrechnung'). '</td>
				<td>' . anchor('haendleradmin/haendlerconfig/' . $haendler->id, 'Bearbeiten'). '</td>		
			</tr>';
}	

echo '
		</tbody>
	</table>
</div>';<commit_msg>Zu #16: Händler hinzufügen (funktioniert noch nicht ganz - id)<commit_after><?php
include APPPATH . 'views/header.php';

echo '
<div class="haendleradmin">
	<h1>Händleradmin</h1>
	<div class="bottom20 Direktlinks">
		' . anchor('haendleradmin/direktlinks', 'Direktlinks') . '
	</div>
	<div class="bottom20 Händler hinzufügen">
	' . anchor('haendleradmin/haendlerconfig/', 'Händler hinzufügen') . '
	</div>
	
	<h2>Händler wählen</h2>
	
	<table class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th scope="column">Nr.</th>
				<th scope="column">Bereit?</th>
				<th scope="column">Firma</th>
				<th scope="column">Person</th>
				<th scope="column">Status</th>
				<th scope="column">Quittungen</th>
				<th scope="column">Velos</th>
				<th scope="column">Abrechnung</th>
				<th scope="column">Bearbeiten</th>
			</tr>
		</thead>
		<tbody>';

foreach ($liste->result() as $haendler) {
	echo '
			<tr>
				<th scope="row">' . $haendler->id . '</th>';
	if (0 == $haendler->uptodate) {
		echo '<td>NEIN</td>';
	}
	else {
		echo '<td>JA-> ' . $haendler->uptodate . ' </td>';
	}
				
	echo '
				<td>' . $haendler->firma . '</td>
				<td>' . $haendler->person . '</td>
				<td>' . $haendler->status . '</td>
				<td>' . anchor('haendleradmin/quittungen/' . $haendler->id, 'zuweisen', 'inactive="true"') . '</td>
				<td>' . anchor('haendlerformular/' . $haendler->code, 'kontrollieren', 'inactive="true"') . '</td>
				<td>' . anchor('haendleradmin/abrechnung/' . $haendler->id, 'Abrechnung'). '</td>
				<td>' . anchor('haendleradmin/haendlerconfig/' . $haendler->id, 'Bearbeiten'). '</td>		
			</tr>';
}	

echo '
		</tbody>
	</table>
</div>';
{'fraction_non_alphanumeric': 0.23469732837335136, 'fraction_numerical': 0.005072708826513358, 'mean_word_length': 3.53680981595092, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 130, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5515577', 'n_tokens_mistral': 1350, 'n_tokens_neox': 1212, 'n_words': 200}