mirror of
https://github.com/atlanticbiomedical/portal-legacy.git
synced 2025-07-02 01:47:28 -04:00
initial commit
This commit is contained in:
11
apps/atlbiomed/modules/process/templates/_device.php
Executable file
11
apps/atlbiomed/modules/process/templates/_device.php
Executable file
@ -0,0 +1,11 @@
|
||||
|
||||
<? if(empty($devices)) {?>
|
||||
<option value='-1'>No Device</option>
|
||||
<? }else{?>
|
||||
<option value='-2'>Select A Device</option>
|
||||
<?php
|
||||
}?>
|
||||
<?php foreach($devices as $device) { ?>
|
||||
<option value='<?print $device->getIdentification(); ?>'><?print $device->getIdentification(); ?></option>
|
||||
<?php } ?>
|
||||
|
57
apps/atlbiomed/modules/process/templates/_device_changed.php
Executable file
57
apps/atlbiomed/modules/process/templates/_device_changed.php
Executable file
@ -0,0 +1,57 @@
|
||||
<?
|
||||
|
||||
$oldDevice_name = ($oldDevice->getSpecification()) ? $oldDevice->getSpecification()->getDeviceName() : '';
|
||||
$oldDevice_manufacturer = ($oldDevice->getSpecification()) ? $oldDevice->getSpecification()->getManufacturer() : '';
|
||||
$oldDevice_serial = $oldDevice->getSerialNumber();
|
||||
$oldDevice_model = ($oldDevice->getSpecification()) ? $oldDevice->getSpecification()->getModelNumber() : '';
|
||||
?>
|
||||
|
||||
<?php
|
||||
//$_device_name = "<select>";
|
||||
if(!empty($newDevice)){
|
||||
$_device_name .= "<option value='".$newDevice['device_name']."'>".$newDevice['device_name']."</option>";
|
||||
if(!empty($oldDevice_name)){
|
||||
$_device_name .= "<option value='$oldDevice_name'>$oldDevice_name</option>";
|
||||
}
|
||||
}
|
||||
//$_device_name .= "</select>";
|
||||
//print $_device_name;
|
||||
|
||||
|
||||
//$_manufacturer = "<select>";
|
||||
if(!empty($newDevice)){
|
||||
$_manufacturer .= "<option value='".$newDevice['manufacturer']."'>".$newDevice['manufacturer']."</option>";
|
||||
}
|
||||
if(!empty($oldDevice_manufacturer)){
|
||||
$_manufacturer .= "<option value='$oldDevice_manufacturer'>$oldDevice_manufacturer</option>";
|
||||
}
|
||||
//$_manufacturer .= "</select>";
|
||||
//print $_manufacturer;
|
||||
|
||||
|
||||
//$_serial ="<select>";
|
||||
if(!empty($newDevice))
|
||||
$_serial.= "<option value='".$newDevice['serial']."'>".$newDevice['serial']."</option>";
|
||||
if(!empty($oldDevice_serial))
|
||||
$_serial.= "<option value='$oldDevice_serial'>$oldDevice_serial</option>";
|
||||
//$_serial.= "</select>";
|
||||
//print $_serial;
|
||||
|
||||
//$_model = "<select>";
|
||||
if(!empty($newDevice))
|
||||
$_model .= "<option value='".$newDevice['model']."'>".$newDevice['model']."</option>";
|
||||
if(!empty($oldDevice_model))
|
||||
$_model .= "<option value='$oldDevice_model'>$oldDevice_model</option>";
|
||||
//$_model .= "</select>";
|
||||
//print $_model;
|
||||
|
||||
print "
|
||||
{
|
||||
serial: \"$_serial\",
|
||||
model: \"$_model\",
|
||||
manufacturer: \"$_manufacturer\",
|
||||
device_name: \"$_device_name\"
|
||||
}";
|
||||
?>
|
||||
|
||||
|
70
apps/atlbiomed/modules/process/templates/_process_match.php
Executable file
70
apps/atlbiomed/modules/process/templates/_process_match.php
Executable file
@ -0,0 +1,70 @@
|
||||
|
||||
<div>
|
||||
<div class='regularCont'>
|
||||
<div class='titleBar'>Match (<a href='javascript:void(0);' onclick='toggle_matched()' id='toggle_matched_but'>Show</a>)</div>
|
||||
<div class='innerCont' id='matched_cont' style='display:NONE'>
|
||||
<table id='noMatchTable'>
|
||||
<tr>
|
||||
<td class='partial_match_column_title'>Assoc. Client</td>
|
||||
<td class='partial_match_column_title'>Device ID</td>
|
||||
<td class='partial_match_column_title'>Device Name</td>
|
||||
<td class='partial_match_column_title'>Manufacturer</td>
|
||||
<td class='partial_match_column_title'>Model</td>
|
||||
<td class='partial_match_column_title'>Serial</td>
|
||||
<td class='partial_match_column_title'></td>
|
||||
</tr>
|
||||
<?php
|
||||
foreach($match as $partial) { ?>
|
||||
<tr>
|
||||
<td >
|
||||
<select id='new_client_match_<?php print $partial['random_id']; ?>' >
|
||||
<option value='-1' selected='selected'>Existing Client</option>
|
||||
<?php foreach($clients as $client) { ?>
|
||||
<option value='<?print $client->getId(); ?>'><?print $client->getClientIdentification(); ?></option>>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select id='device_id_match_<?php print $partial['random_id']; ?>' style='width: 120px'>
|
||||
<option value='<?php print $partial['device_id']; ?>'><?php print $partial['device_id']; ?></option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select id='device_name_match_<?php print $partial['random_id']; ?>' style='width: 120px'>
|
||||
<option value='<?php print $partial['device_name']; ?>'><?php print print $partial['device_name']; ?></option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select id='manufacturer_match_<?php print $partial['random_id']; ?>' style='width: 120px'>
|
||||
<option value='<?php print $partial['manufacturer']; ?>'><?php print $partial['manufacturer']; ?></option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select id='model_match_<?php print $partial['random_id']; ?>' style='width: 120px'>
|
||||
<option value='<?php print $partial['model']; ?>'><?php print $partial['model']; ?></option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select id='serial_match_<?php print $partial['random_id']; ?>' style='width: 120px'>
|
||||
<option value='<?php print $partial['serial']; ?>'><?php print $partial['serial']; ?></option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<input id='input_<?php print $partial['random_id']; ?>' type='button' value='save' onclick="saveFullMatchUpdate(<?php print $partial['id']; ?>,<?php print $partial['random_id']; ?>)">
|
||||
|
||||
<input type='hidden' id='location_match_<?php print $partial['random_id']; ?>' value='<?php print $partial['location']; ?>'>
|
||||
<input type='hidden' id='date_match_<?php print $partial['random_id']; ?>' value='<?php print $partial['date']; ?>'>
|
||||
<input type='hidden' id='pass_fail_match_<?php print $partial['random_id']; ?>' value='<?php print $partial['pass_fail']; ?>'>
|
||||
<input type='hidden' id='extra_data_match_<?php print $partial['random_id']; ?>' value='<?php print serialize($partial['extraData']); ?>'>
|
||||
<input type='hidden' id='test_data_match_<?php print $partial['random_id']; ?>' value='<?php print serialize($partial['testData']); ?>'>
|
||||
<input type='hidden' id='comments_match_<?php print $partial['random_id']; ?>' value='<?php print $partial['comments']; ?>'>
|
||||
</td>
|
||||
<td>
|
||||
(<?php print $partial['client_name']?>)<?php print $partial['warning'];?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
86
apps/atlbiomed/modules/process/templates/_process_no_match.php
Executable file
86
apps/atlbiomed/modules/process/templates/_process_no_match.php
Executable file
@ -0,0 +1,86 @@
|
||||
|
||||
|
||||
<div class='regularCont'>
|
||||
<div class='titleBar'>No Match</div>
|
||||
<div class='innerCont'>
|
||||
<table>
|
||||
<tr>
|
||||
<td class='partial_match_column_title'>Client</td>
|
||||
<td class='partial_match_column_title'>Option</td>
|
||||
<td class='partial_match_column_title'>Device ID</td>
|
||||
<td class='partial_match_column_title' style='width: 130px'>ID Options</td>
|
||||
<td class='partial_match_column_title'>Device Name</td>
|
||||
<td class='partial_match_column_title'>Manufacturer</td>
|
||||
<td class='partial_match_column_title'>Model</td>
|
||||
<td class='partial_match_column_title'>Serial</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<?php foreach($noMatch as $partial) { ?>
|
||||
<tr>
|
||||
<td>
|
||||
<select id='client_<?php print $partial['random_id']; ?>' onChange='updateDevices(<?php print $partial['random_id']; ?>); restoreFields(<?php print $partial['random_id']; ?>)'>
|
||||
<option value='-1' selected='selected'>Select A Client</option>
|
||||
<?php foreach($clients as $client) { ?>
|
||||
<option value='<?print $client->getId(); ?>'><?print $client->getClientIdentification(); ?></option>>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select id='option_<?php print $partial['random_id']; ?>' onchange='optionChanged(<?php print $partial['random_id']; ?>)'>
|
||||
<option value='1'>Add As New Device</option>
|
||||
<option value='2'>Associate Device</option>
|
||||
</select>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<select id='device_id_<?php print $partial['random_id']; ?>' style='width: 100px'>
|
||||
<option value='<?php print $partial['device_id']; ?>'><?php print $partial['device_id']; ?></option>
|
||||
</select>
|
||||
<select id='get_devices_<?php print $partial['random_id']; ?>' style='width: 100px; display:none' onChange='device_id_changed(<?php print $partial['random_id']; ?>)'>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select id='device_id_option_<?php print $partial['random_id']; ?>' style='width: 130px' disabled='disabled'>
|
||||
<option value='-1'>-Use Existing Id-</option>
|
||||
<option value='<?php print $partial['device_id']; ?>'><?php print $partial['device_id']; ?></option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select id='device_name_<?php print $partial['random_id']; ?>' style='width: 120px'>
|
||||
<option value='<?php print $partial['device_name']; ?>'><?php print $partial['device_name']; ?></option>
|
||||
</select>
|
||||
<input type='hidden' id='hidden_device_name_<?php print $partial['random_id']; ?>' value='<?php print $partial['device_name']; ?>'>
|
||||
</td>
|
||||
<td>
|
||||
<select id='manufacturer_<?php print $partial['random_id']; ?>' style='width: 120px'>
|
||||
<option value='<?php print $partial['manufacturer']; ?>'><?php print $partial['manufacturer']; ?></option>
|
||||
</select>
|
||||
<input type='hidden' id='hidden_manufacturer_<?php print $partial['random_id']; ?>' value='<?php print $partial['manufacturer']; ?>'>
|
||||
</td>
|
||||
<td>
|
||||
<select id='model_<?php print $partial['random_id']; ?>' style='width: 120px'>
|
||||
<option value='<?php print $partial['model']; ?>'><?php print $partial['model']; ?></option>
|
||||
</select>
|
||||
<input type='hidden' id='hidden_model_<?php print $partial['random_id']; ?>' value='<?php print $partial['model']; ?>'>
|
||||
</td>
|
||||
<td>
|
||||
<select id='serial_<?php print $partial['random_id']; ?>' style='width: 120px'>
|
||||
<option value='<?php print $partial['serial']; ?>'><?php print $partial['serial']; ?></option>
|
||||
</select>
|
||||
<input type='hidden' id='hidden_serial_<?php print $partial['random_id']; ?>' value='<?php print $partial['serial']; ?>'>
|
||||
</td>
|
||||
<td>
|
||||
<input id='input_<?php print $partial['random_id']; ?>' type='button' value='save' onclick='save_no_match(<?php print $partial['random_id']; ?>)'>
|
||||
<input type='hidden' id='location_<?php print $partial['random_id']; ?>' value='<?php print $partial['location']; ?>'>
|
||||
<input type='hidden' id='date_<?php print $partial['random_id']; ?>' value='<?php print $partial['date']; ?>'>
|
||||
<input type='hidden' id='pass_fail_<?php print $partial['random_id']; ?>' value='<?php print $partial['pass_fail']; ?>'>
|
||||
<input type='hidden' id='extra_data_<?php print $partial['random_id']; ?>' value='<?php print serialize($partial['extraData']); ?>'>
|
||||
<input type='hidden' id='test_data_<?php print $partial['random_id']; ?>' value='<?php print serialize($partial['testData']); ?>'>
|
||||
<input type='hidden' id='comments_<?php print $partial['random_id']; ?>' value='<?php print $partial['comments']; ?>'>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
77
apps/atlbiomed/modules/process/templates/_process_partial_match.php
Executable file
77
apps/atlbiomed/modules/process/templates/_process_partial_match.php
Executable file
@ -0,0 +1,77 @@
|
||||
|
||||
<div>
|
||||
<div class='regularCont'>
|
||||
<div class='titleBar'>Partial Match</div>
|
||||
<div class='innerCont'>
|
||||
<table id='noMatchTable'>
|
||||
<tr>
|
||||
<td class='partial_match_column_title'>New Client</td>
|
||||
<td class='partial_match_column_title'>Device ID</td>
|
||||
<td class='partial_match_column_title'>Device Name</td>
|
||||
<td class='partial_match_column_title'>Manufacturer</td>
|
||||
<td class='partial_match_column_title'>Model</td>
|
||||
<td class='partial_match_column_title'>Serial</td>
|
||||
<td class='partial_match_column_title'></td>
|
||||
</tr>
|
||||
<?php
|
||||
foreach($partialMatch as $partial) { ?>
|
||||
<tr>
|
||||
<td >
|
||||
<select id='new_client_partial_<?php print $partial['random_id']; ?>' >
|
||||
<option value='-1' selected='selected'>Existing Client</option>
|
||||
<?php foreach($clients as $client) { ?>
|
||||
<option value='<?print $client->getId(); ?>'><?print $client->getClientIdentification(); ?></option>>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</td>
|
||||
<td >
|
||||
<select id='device_id_<?php print $partial['random_id']; ?>' style='width: 120px'>
|
||||
<option value='<?php print $partial['device_id']; ?>'><?php print $partial['device_id']; ?></option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select id='device_name_<?php print $partial['random_id']; ?>' style='width: 120px<?php if($partial['misMatch']['device_name']==true){ print ";border: 1px solid red";}?>'>
|
||||
<?php foreach($partial['device_name'] as $device_name) { ?>
|
||||
<option value='<?php print $device_name; ?>'><?php print $device_name; ?></option>
|
||||
<?php }?>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select id='manufacturer_<?php print $partial['random_id']; ?>' style='width: 120px<?php if($partial['misMatch']['manufacturer']==true){ print ";border: 1px solid red";}?>'>
|
||||
<?php foreach($partial['manufacturer'] as $manufacturer) { ?>
|
||||
<option value='<?php print $manufacturer; ?>'><?php print $manufacturer; ?></option>
|
||||
<?php }?>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select id='model_<?php print $partial['random_id']; ?>' style='width: 120px<?php if($partial['misMatch']['model']==true){ print ";border: 1px solid red";}?>'>
|
||||
<?php foreach($partial['model'] as $model) { ?>
|
||||
<option value='<?php print $model; ?>'><?php print $model; ?></option>
|
||||
<?php }?>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select id='serial_<?php print $partial['random_id']; ?>' style='width: 120px<?php if($partial['misMatch']['serial']==true){ print ";border: 1px solid red";}?>'>
|
||||
<?php foreach($partial['serial'] as $serial) { ?>
|
||||
<option value='<?php print $serial; ?>'><?php print $serial; ?></option>
|
||||
<?php }?>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<input id='input_<?php print $partial['random_id']; ?>' type='button' value='save' onclick='save_partial_match(<?php print $partial['random_id']; ?>)'>
|
||||
<input type='hidden' id='location_<?php print $partial['random_id']; ?>' value='<?php print $partial['location']; ?>'>
|
||||
<input type='hidden' id='date_<?php print $partial['random_id']; ?>' value='<?php print $partial['date']; ?>'>
|
||||
<input type='hidden' id='pass_fail_<?php print $partial['random_id']; ?>' value='<?php print $partial['pass_fail']; ?>'>
|
||||
<input type='hidden' id='extra_data_<?php print $partial['random_id']; ?>' value='<?php print serialize($partial['extraData']); ?>'>
|
||||
<input type='hidden' id='test_data_<?php print $partial['random_id']; ?>' value='<?php print serialize($partial['testData']); ?>'>
|
||||
<input type='hidden' id='comments_<?php print $partial['random_id']; ?>' value='<?php print $partial['comments']; ?>'>
|
||||
</td>
|
||||
<td>
|
||||
(<?php print $partial['client_name']?>)<?php print $partial['warning'];?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
3
apps/atlbiomed/modules/process/templates/deviceIdChangedSuccess.php
Executable file
3
apps/atlbiomed/modules/process/templates/deviceIdChangedSuccess.php
Executable file
@ -0,0 +1,3 @@
|
||||
<?php
|
||||
include_partial('device_changed',array('oldDevice'=>$oldDevice, 'newDevice'=>$newDevice))
|
||||
?>
|
78
apps/atlbiomed/modules/process/templates/generateReportSuccess.php
Executable file
78
apps/atlbiomed/modules/process/templates/generateReportSuccess.php
Executable file
@ -0,0 +1,78 @@
|
||||
<div class='regularCont'>
|
||||
<div class='innerCont'><table>
|
||||
<tr>
|
||||
<td style='width: 100px'>Report
|
||||
</td>
|
||||
<td style='width: 100px'>Status
|
||||
</td>
|
||||
<td style='width: 200px'>
|
||||
Date
|
||||
</td>
|
||||
<td style='width: 50px'>
|
||||
Pass
|
||||
</td>
|
||||
<td style='width: 50px'>
|
||||
Fail
|
||||
</td>
|
||||
<td style='width: 50px'>
|
||||
Missed
|
||||
</td>
|
||||
<td style='width: 50px'>
|
||||
Bp
|
||||
</td>
|
||||
<td style='width: 50px'>
|
||||
Trace
|
||||
</td>
|
||||
<td style='width: 50px'>
|
||||
Outlets
|
||||
</td>
|
||||
<td style='width: 200px'>
|
||||
Action
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
foreach($finalReport as $report){
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<a target='_blank' href='/index.php/process/createPdf/id/<?php print $report->getId(); ?>'>View Report</a>
|
||||
</td>
|
||||
<td>
|
||||
<?php print ucwords($report->getPassFail()); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php print $report->formattedDate(); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php print (int)$report->getTotalPassed(); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php print (int)$report->getTotalFailed(); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php print (int)$report->getTotalMissed(); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php print (int)$report->getTotalBp(); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php print (int)$report->getTotalTrace(); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php print (int)$report->getTotalOutlets(); ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href='javascript:void(0)' onclick='deleteReport(<?php print $report->getId(); ?>,<?php print $report->getClientId(); ?>)' >Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
if(empty($finalReport)){
|
||||
?>
|
||||
<tr><td colspan='4'><div style='text-align:center;font-weight:bold;'>No Reports Found</div></td></tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
2
apps/atlbiomed/modules/process/templates/getDevicesSuccess.php
Executable file
2
apps/atlbiomed/modules/process/templates/getDevicesSuccess.php
Executable file
@ -0,0 +1,2 @@
|
||||
<?php
|
||||
include_partial('device',array('devices'=>$devices)); ?>
|
44
apps/atlbiomed/modules/process/templates/indexSuccess.php
Executable file
44
apps/atlbiomed/modules/process/templates/indexSuccess.php
Executable file
@ -0,0 +1,44 @@
|
||||
<div class='regularCont'>
|
||||
<div class='titleBar'>New File Upload</div>
|
||||
<div class='innerCont'>
|
||||
<form name='uploadForm' id='uploadForm' action='process/processUpload' method='post' enctype='multipart/form-data'>
|
||||
<input type='file' name='upload'>
|
||||
<input type='submit' name='submit' value='Upload'>
|
||||
<input type='button' name='unprocessed' value='View Unprocessed' onclick="document.location='/index.php/unprocessed/index'">
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<iframe name='iframe' id='iframe' width="0" height="0" border="0" style='visibility:hidden'>
|
||||
</iframe>
|
||||
|
||||
<div class='regularCont'>
|
||||
<div class='titleBar'>Reporting</div>
|
||||
<div class='innerCont'>
|
||||
<table style='margin: 4px;float:left'>
|
||||
<tr><td>Client</td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo select_tag('client', options_for_select($clients, $client_id,'include_custom=Please Select a Client'), array('id'=>'current_client','onchange'=>'process_client_change()') );?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td>Contact</td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type='text' value='' id='theContact'>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table style='float:left; margin-left:20px;'>
|
||||
<tr><td> <div id='listedReport'></div>
|
||||
</td></tr></table>
|
||||
<div style='clear:both'></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div id='listedDevices'>
|
||||
</div>
|
||||
|
140
apps/atlbiomed/modules/process/templates/listDevicesSuccess.php
Executable file
140
apps/atlbiomed/modules/process/templates/listDevicesSuccess.php
Executable file
@ -0,0 +1,140 @@
|
||||
<br><br>
|
||||
<div class='regularCont'>
|
||||
<div class='titleBar'>Client Devices</div>
|
||||
<div class='innerCont'>
|
||||
|
||||
<div >
|
||||
<? if(!empty($devices)){?>
|
||||
<input type='button' value='Quote Failed Item' onclick='quoted()'>
|
||||
<input type='button' value='Pending Repairs' onClick='pendingRepair()'>
|
||||
<input type='button' value='Schedule Repair' onClick="scheduleRepair(<?php print $client_id;?>)">
|
||||
<input type='button' value='Reschedule Missing' onClick="rescheduleMissing(<?php print $client_id;?>)">
|
||||
<input type='button' value='Print Final Report' onClick="generateReport()">
|
||||
<? }else{
|
||||
?>
|
||||
<input type='button' value='Quote Failed Item' disabled='disabled'>
|
||||
<input type='button' value='Pending Repairs' disabled='disabled'>
|
||||
<input type='button' value='Schedule Repair' disabled='disabled'>
|
||||
<input type='button' value='Reschedule Missing' disabled='disabled'>
|
||||
<input type='button' value='Print Final Report' disabled='disabled'>
|
||||
<?php
|
||||
} ?>
|
||||
</div>
|
||||
<br/>
|
||||
<table style='margin-left: 30px;'>
|
||||
|
||||
<tr>
|
||||
<td style='width: 20px; font-weight:bold'>
|
||||
|
||||
</td>
|
||||
<td style='width:150px; font-weight:bold'>
|
||||
Device Id
|
||||
</td>
|
||||
<td style='width:150px; font-weight:bold'>
|
||||
Device
|
||||
</td>
|
||||
<td style='width:150px;font-weight:bold'>
|
||||
Manufacturer
|
||||
</td>
|
||||
<td style='width:150px;font-weight:bold'>
|
||||
Model
|
||||
</td>
|
||||
<td style='width:150px;font-weight:bold'>
|
||||
Serial
|
||||
</td>
|
||||
<td style='width:150px;font-weight:bold'>
|
||||
Location
|
||||
</td>
|
||||
<td style='width:150px;font-weight:bold'>
|
||||
Status
|
||||
</td>
|
||||
<td style='width:150px;font-weight:bold'>
|
||||
Comments
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
$listDeviceIdAr = array();
|
||||
|
||||
foreach($devices as $device){
|
||||
if($device->getSpecification()){
|
||||
$manufacturer = $device->getSpecification()->getManufacturer();
|
||||
$model = $device->getSpecification()->getModelNumber();
|
||||
$d_name = $device->getSpecification()->getDeviceName();
|
||||
}
|
||||
|
||||
$listDeviceIdAr[] = $device->getId();
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<input type='checkbox' id='checkbox_<?php print $device->getId(); ?>' />
|
||||
</td>
|
||||
<td>
|
||||
<input type='text' id='device_' value='<?php print $device->getIdentification(); ?>'/>
|
||||
</td>
|
||||
<td>
|
||||
<input type='text' id='dd_name_' value='<?php print $d_name; ?>'/>
|
||||
</td>
|
||||
<td>
|
||||
<input type='text' id='manufacturer_' value='<?php print $manufacturer; ?>'/>
|
||||
</td>
|
||||
<td>
|
||||
<input type='text' id='serial_' value='<?php print $model; ?>'/>
|
||||
</td>
|
||||
<td>
|
||||
<input type='text' id='serial_' value='<?php print $device->getSerialNumber(); ?>'/>
|
||||
</td>
|
||||
<td>
|
||||
<input type='text' id='serial_' value='<?php print $device->getLocation(); ?>'/>
|
||||
</td>
|
||||
<td>
|
||||
<select style='width: 140px'>
|
||||
<option value='<?php print ucwords($device->getStatus()); ?>'/><?php print ucwords($device->getStatus()); ?></option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<input type='text' id='device_comment_' value='<?php print $device->getComments(); ?>' onblur='save_comments(this,<?php print $device->getId(); ?>)'/>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }
|
||||
if(empty($devices)){
|
||||
?><td>
|
||||
<!--checkboxes would be here -->
|
||||
</td>
|
||||
<tr>
|
||||
<td>
|
||||
<input type='checkbox' />
|
||||
</td>
|
||||
<td>
|
||||
<input type='text' id='device_' value=' '/>
|
||||
</td>
|
||||
<td>
|
||||
<input type='text' id='dd_name_' />
|
||||
</td>
|
||||
<td>
|
||||
<input type='text' id='manufacturer_' />
|
||||
</td>
|
||||
<td>
|
||||
<input type='text' id='serial_' />
|
||||
</td>
|
||||
<td>
|
||||
<input type='text' id='serial_' />
|
||||
</td>
|
||||
<td>
|
||||
<input type='text' id='serial_' />
|
||||
</td>
|
||||
<td>
|
||||
<input type='text' id='device_comment_' />
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<input type='hidden' id='hidden_device_id' value='<?php print implode(',',$listDeviceIdAr); ?>'/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type='text/javascript'>
|
||||
window.insertContact('<?php print $contact; ?>');
|
||||
</script>
|
22
apps/atlbiomed/modules/process/templates/processUploadSuccess.php
Executable file
22
apps/atlbiomed/modules/process/templates/processUploadSuccess.php
Executable file
@ -0,0 +1,22 @@
|
||||
<div style='font-size: 13px; width: 300px; border: 1px solid black; margin-top: 30px;'>
|
||||
<div style='color: #fff; background-color:#08C46E ; font-weight: bold; text-align:center'> UPLOAD STATUS </div>
|
||||
<div style='padding: 5px;'>
|
||||
<?php
|
||||
print "<b>Filename</b>: ".$filename." <br/>";
|
||||
print "<b>Total Uploaded</b>: ".(count($match)+count($partialMatch)+count($noMatch))." <br/>";
|
||||
print "<b>Matched</b>: ".count($match)."<br/>";
|
||||
print "<b>Partial Match</b>: ".count($partialMatch)."<br/>";
|
||||
print "<b>No Match</b>: ".count($noMatch)."<br/>";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<input type='hidden' name='filename' id='filename' value='<?php echo $filename; ?>'/>
|
||||
<div id='test'></div>
|
||||
<?php
|
||||
if(!empty($match))
|
||||
include_partial('process_match', array('match' => $match, 'clients'=>$clients));
|
||||
if(!empty($partialMatch))
|
||||
include_partial('process_partial_match', array('partialMatch' => $partialMatch));
|
||||
if(!empty($noMatch))
|
||||
include_partial('process_no_match', array('noMatch' => $noMatch, 'clients'=>$clients));
|
||||
?>
|
Reference in New Issue
Block a user