예제 #1
0
try {
	$checks->tossIfEmpty();
	$affected = fMessaging::retrieve('affected', fURL::get());
	?>
<a class="small btn primary" href="<?= Check::makeUrl('add');?>">Add Check</a>
<table class="zebra-striped">
          <thead>
		<tr>
    <th><?=fCRUD::printSortableColumn('name','Name'); ?></th>
    <th><?=fCRUD::printSortableColumn('target','Target'); ?></th>
    <th><?=fCRUD::printSortableColumn('warn','Warn'); ?></th>
    <th><?=fCRUD::printSortableColumn('error','Error'); ?></th>
    <th><?=fCRUD::printSortableColumn('sample','Sample'); ?></th>
    <th><?=fCRUD::printSortableColumn('baseline','Baseline'); ?></th>
    <th><?=fCRUD::printSortableColumn('over_under','Over/Under'); ?></th>
    <th><?=fCRUD::printSortableColumn('visiblity','Visibility'); ?></th>
    <th>Action</th>
       </tr></thead><tbody>    
	<?php
	$first = TRUE;
	foreach ($checks as $check) {
	?>
    	<tr>
        <td><?='<a href="' . CheckResult::makeUrl('list',$check) . '">' . $check->prepareName(); ?></a></td>
        <td><?=$check->prepareTarget(); ?></td>
        <td><?=$check->prepareWarn(); ?></td>
        <td><?=$check->prepareError(); ?></td>
        <td><?=$check->prepareSample(); ?></td>
        <td><?=$check->prepareBaseline(); ?></td>
        <td><?=$over_under_array[$check->getOver_Under()]; ?></td>
        <td><?=$visibility_array[$check->getVisibility()]; ?></td>
예제 #2
0
    ?>
</th>
                <th class="masterTooltip" title="Number of data points to use when calculating the moving average. Each data point spans one minute"><?php 
    echo fCRUD::printSortableColumn('sample', 'Sample');
    ?>
</th>
                <th><?php 
    echo fCRUD::printSortableColumn('baseline', 'Baseline');
    ?>
</th>
                <th class="masterTooltip" title="Over will trigger an alert when the value retrieved from Graphite is greater than the warning or error threshold. Under will trigger an alert when the value retrieved from Graphite is less than the warning or the error threshold"><?php 
    echo fCRUD::printSortableColumn('over_under', 'Over/Under');
    ?>
</th>
                <th class="masterTooltip" title="Public checks can be subscribed to by any user while private checks remain hidden from other users"><?php 
    echo fCRUD::printSortableColumn('visiblity', 'Visibility');
    ?>
</th>
                <th>Action</th>
            </tr></thead>
        <tbody>    
            <?php 
    $first = TRUE;
    foreach ($checks as $check) {
        ?>
                <tr>
                    <td><?php 
        echo '<a href="' . CheckResult::makeUrl('list', $check) . '">' . $check->prepareName();
        ?>
</a></td>    
                    <td style="max-width:300px; overflow:scroll;"><?php 
예제 #3
0
<div class="grid_12">

<?php 
$tpl->place('menu');
?>
<br />

<table class="list">
	<tr class="heading">
		<th>Colour</th>
		<th><?php 
echo fCRUD::printSortableColumn('consumables.name', 'Name');
?>
</th>
		<th colspan="2"><?php 
echo fCRUD::printSortableColumn('consumables.qty', 'Quantity');
?>
</th>
		<th>Printer models</th>
		<th>Operations</th>
	</tr>
	
	<?php 
foreach ($consumables as $c) {
    echo '<tr>';
    echo '<td style="width:100px;text-align:left;" class="col">';
    if ($c->col_c) {
        printf($colour, '0066B3');
    }
    if ($c->col_y) {
        printf($colour, 'FFCC00');
예제 #4
0
	<tr class="heading">
		<th filter="false">Colour</th>
		<th><?php 
echo fCRUD::printSortableColumn('consumables.name', 'Consumable');
?>
</th>
		<th><?php 
echo fCRUD::printSortableColumn('printers.name', 'Printer');
?>
</th>
		<th><?php 
echo fCRUD::printSortableColumn('models.name', 'Model');
?>
</th>
		<th filter="false"><?php 
echo fCRUD::printSortableColumn('events.date', 'Date');
?>
</th>
	</tr>
	</thead>
	
	<tbody>
	<?php 
foreach ($events as $e) {
    echo '<tr>';
    /* $img = ($p->colour == 1) ? 'colour.png' : 'mono.png';
    		$txt = ($p->colour == 1) ? 'C' : 'M';
    		echo '<td style="width:48px;text-align:center;">';
    		echo '<span style="display:none;">' . $txt . '</span>';
    		echo '<img src="web/img/' . $img . '" width="16" height="16" />';
    		echo '</td>'; */
예제 #5
0
파일: index.php 프로젝트: mrjwc/printmaster
?>
</th>
		<th><?php 
echo fCRUD::printSortableColumn('models.name', 'Model');
?>
</th>
		<th><?php 
echo fCRUD::printSortableColumn('printers.ipaddress', 'IP Address');
?>
</th>
		<th filter-type="ddl"><?php 
echo fCRUD::printSortableColumn('printers.server', 'Print server');
?>
</th>
		<th><?php 
echo fCRUD::printSortableColumn('printers.location', 'Location');
?>
</th>
		<th filter="false">Operations</th>
	</tr>
	</thead>
	
	<tbody>
	<?php 
foreach ($printers as $p) {
    echo '<tr>';
    $img = $p->colour == 1 ? 'colour.png' : 'mono.png';
    $txt = $p->colour == 1 ? 'C' : 'M';
    echo '<td style="width:48px;text-align:center;">';
    echo '<span style="display:none;">' . $txt . '</span>';
    echo '<img src="web/img/' . $img . '" width="16" height="16" />';
예제 #6
0
파일: index.php 프로젝트: mrjwc/printmaster
	<thead>
		<tr class="heading">
			<th><?php 
echo fCRUD::printSortableColumn('models.colour', 'Colour');
?>
</th>
			<th><?php 
echo fCRUD::printSortableColumn('manufacturers.name', 'Manufacturer');
?>
</th>
			<th><?php 
echo fCRUD::printSortableColumn('models.name', 'Name');
?>
</th>
			<th><?php 
echo fCRUD::printSortableColumn('printer_count', '# Printers');
?>
</th>
			<th>Operations</th>
		</tr>
	</thead>

	<tbody>
	<?php 
foreach ($models as $m) {
    echo '<tr>';
    $img = $m->colour == 1 ? 'colour.png' : 'mono.png';
    echo '<td style="width:48px;text-align:center;">';
    echo '<img src="web/img/' . $img . '" width="16" height="16" />';
    echo '</td>';
    echo '<td>' . $m->mfr_name . '</td>';
예제 #7
0
파일: index.php 프로젝트: mrjwc/printmaster
echo fCRUD::printSortableColumn('printers.name', 'Printer');
?>
</th>
			<th><?php 
echo fCRUD::printSortableColumn('models.name', 'Model');
?>
</th>
			<th filter="false"><?php 
echo fCRUD::printSortableColumn('events.date', 'Date');
?>
</th>
			<?php 
if (feature('costs') || feature('chargeback')) {
    ?>
			<th class="right"><?php 
    echo fCRUD::printSortableColumn('events.cost', 'Cost');
    ?>
</th>
			<?php 
}
?>
		</tr>
		</thead>

		<tbody>
		<?php 
$total_cost = 0;
foreach ($events as $e) {
    // Add up total cost
    if ($e->cost) {
        $total_cost += $e->cost;
예제 #8
0
fMessaging::show('success', fURL::get());
?>
<div id="main">
<?php 
try {
    $meetups->tossIfEmpty();
    $affected = fMessaging::retrieve('affected', fURL::get());
    ?>
	<table class="zebra-striped" >
		<tr>
			<th><?php 
    fCRUD::printSortableColumn('date', 'Date');
    ?>
</th>
			<th><?php 
    fCRUD::printSortableColumn('location', 'Location');
    ?>
</th>
			<th>Actions</th>
		</tr>
		<?php 
    foreach ($meetups as $meetup) {
        ?>
			<tr class="<?php 
        echo fCRUD::getRowClass($meetup->getDate()->__toString(), $affected);
        ?>
">
				<td class="<?php 
        echo fCRUD::getColumnClass('date');
        ?>
">
예제 #9
0
$tpl->place('menu');
?>
<br />

<table class="list">
	<tr class="heading">
		<th><?php 
echo fCRUD::printSortableColumn('models.colour', 'Colour');
?>
</th>
		<th><?php 
echo fCRUD::printSortableColumn('manufacturers.name', 'Manufacturer');
?>
</th>
		<th><?php 
echo fCRUD::printSortableColumn('models.name', 'Name');
?>
</th>
		<th>Operations</th>
	</tr>
	
	<?php 
foreach ($models as $m) {
    echo '<tr>';
    $img = $m->colour == 1 ? 'colour.png' : 'mono.png';
    echo '<td style="width:48px;text-align:center;">';
    echo '<img src="web/img/' . $img . '" width="16" height="16" />';
    echo '</td>';
    echo '<td>' . $m->mfr_name . '</td>';
    echo '<td class="name">' . $m->name . '</td>';
    echo '<td>';