94 行
		
	
	
	
		
			2.8 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
		
		
			
		
	
	
			94 行
		
	
	
	
		
			2.8 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
|  | <div class="container"> | ||
|  | 
 | ||
|  | <br> | ||
|  | 	<?php if($this->session->flashdata('message')) { ?>
 | ||
|  | 		<!-- Display Message --> | ||
|  | 		<div class="alert-message error"> | ||
|  | 		  <p><?php echo $this->session->flashdata('message'); ?></p>
 | ||
|  | 		</div> | ||
|  | 	<?php } ?>
 | ||
|  | 
 | ||
|  | <div class="card"> | ||
|  | 	<h2 class="card-header">QSL Card Labels</h2> | ||
|  | 
 | ||
|  | 	<div class="card-body"> | ||
|  |     	<a href="<?php echo site_url('labels/create'); ?>" class="btn btn-outline-primary btn-sm">Create New Label Type</a> | ||
|  | 	 | ||
|  | 
 | ||
|  | 	<?php if ($labels) { | ||
|  | 		echo '<br/><br/>';?>
 | ||
|  | 						<table style="width:100%" class="table-sm labeltable table-bordered table-hover table-striped table-condensed text-center"> | ||
|  | 						<thead> | ||
|  | 							<tr> | ||
|  | 								<th>Name</th> | ||
|  | 								<th>Paper Type</th> | ||
|  | 								<th>Measurement</th> | ||
|  | 								<th>Width</th> | ||
|  | 								<th>Height</th> | ||
|  | 								<th>Font Size</th> | ||
|  | 								<th>QSOs</th> | ||
|  | 								<th>Last Modified</th> | ||
|  | 								<th>Use For Print</th> | ||
|  | 								<th>Edit</th> | ||
|  | 								<th>Delete</th> | ||
|  | 							</tr> | ||
|  | 						</thead> | ||
|  | 						<tbody> | ||
|  | 						<?php | ||
|  | 		foreach($labels as $label) { ?>
 | ||
|  | 			<tr class='label_<?php echo $label->id ?>'> | ||
|  | 			<td><?php echo $label->label_name; ?></td>
 | ||
|  | 			<td><?php echo $label->paper_type; ?></td>
 | ||
|  | 			<td><?php echo $label->metric; ?></td>
 | ||
|  | 			<td><?php echo $label->width; ?></td>
 | ||
|  | 			<td><?php echo $label->height; ?></td>
 | ||
|  | 			<td><?php echo $label->font_size; ?></td>
 | ||
|  | 			<td><?php echo $label->qsos; ?></td>
 | ||
|  | 			<td><?php echo $label->last_modified; ?></td>
 | ||
|  | 			<td><input type="checkbox" <?php if ($label->useforprint == 1) {echo 'checked';}?>></td>
 | ||
|  | 			<td><a href="<?php echo site_url('labels/edit/' . $label->id); ?>" class="btn btn-outline-primary btn-sm"><i class="fas fa-edit"></i></a></td> | ||
|  | 			<td><a href="<?php echo site_url('labels/delete/' . $label->id); ?>" class="btn btn-outline-primary btn-sm"><i class="fas fa-trash-alt"></i></a></td> | ||
|  | 			</tr> | ||
|  | 
 | ||
|  | 		<?php } | ||
|  | 		echo '</tbody></table>'; | ||
|  | 	} ?>
 | ||
|  | 
 | ||
|  | </div> | ||
|  | </div> | ||
|  | 
 | ||
|  | <br><br> | ||
|  | 
 | ||
|  | <div class="card"> | ||
|  | 	<h2 class="card-header">QSL Card Labels Pending</h2> | ||
|  | 
 | ||
|  | 	<div class="card-body"> | ||
|  | 	<table style="width:100%" class="table-sm table table-bordered table-hover table-striped table-condensed text-center"> | ||
|  | 				<thead> | ||
|  | 					<tr> | ||
|  | 						<th>Callsign</th> | ||
|  | 						<th>Station Location</th> | ||
|  | 						<th>Gridsquare</th> | ||
|  | 						<th>Labels Waiting</th> | ||
|  | 						<th>View QSOs</th> | ||
|  | 						<th>Print</th> | ||
|  | 					</tr> | ||
|  | 				</thead> | ||
|  | 				<tbody> | ||
|  | 					<?php foreach ($qsos as $qso) { | ||
|  | 						echo '<tr>'; | ||
|  | 						echo '<td>' . $qso->station_callsign . '</td>'; | ||
|  | 						echo '<td>' . $qso->station_profile_name . '</td>'; | ||
|  | 						echo '<td>' . $qso->station_gridsquare . '</td>'; | ||
|  | 						echo '<td>' . $qso->count . '</td>'; | ||
|  | 						echo '<td><a href="qslprint" class="btn btn-outline-info btn-sm"><i class="fas fa-search"></i></a></td>'; | ||
|  | 						echo '<td><a href="labels/print/'. $qso->station_id.'" class="btn btn-outline-success btn-sm"><i class="fas fa-print"></i></a></td>'; | ||
|  | 						echo '</tr>'; | ||
|  | 					} ?>
 | ||
|  | 				</tbody> | ||
|  | 		</table> | ||
|  | 
 | ||
|  | 	</div> | ||
|  | </div> | ||
|  | 
 | ||
|  | </div> |