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:
79
apps/atlbiomed/modules/scheduler/templates/editWorkorderSuccess.php
Executable file
79
apps/atlbiomed/modules/scheduler/templates/editWorkorderSuccess.php
Executable file
@ -0,0 +1,79 @@
|
||||
<?php use_helper('Object'); ?>
|
||||
<?php use_helper('Javascript'); ?>
|
||||
<?php use_helper('DateForm'); ?>
|
||||
|
||||
<div class="client_select">
|
||||
<?php echo form_tag('scheduler/index'); ?>
|
||||
<table><tr>
|
||||
<td width=50><b>Client: </b></td>
|
||||
<td><?php echo $client->getClientName(); ?></td>
|
||||
</tr></table>
|
||||
</form>
|
||||
</div>
|
||||
<div class="job_details">
|
||||
<?php echo form_tag('scheduler/jobScheduler', array('id' => 'jobScheduler')); ?>
|
||||
<?php echo input_hidden_tag('client_select', $client->getId()); ?>
|
||||
<?php echo input_hidden_tag('start_time'); ?>
|
||||
<?php echo input_hidden_tag('end_time'); ?>
|
||||
<?php echo input_hidden_tag('date', $date); ?>
|
||||
<?php echo input_hidden_tag('workorder_id', $workorder_id); ?>
|
||||
<?php echo input_hidden_tag('job_status', 'scheduled'); ?>
|
||||
<?php echo input_hidden_tag('job_date', $date); ?>
|
||||
<?php echo input_hidden_tag('edit', $mode); ?>
|
||||
<?php echo input_hidden_tag('technician'); ?>
|
||||
<table><tr>
|
||||
<td>Device: </td>
|
||||
<td><?php if (isset($specification_options))
|
||||
{
|
||||
echo select_tag('specification_select', options_for_select($specification_options, $specification_select), array(
|
||||
'onChange' => 'populateDeviceMenu()'));
|
||||
|
||||
} else {
|
||||
echo 'Please Select a Client...';
|
||||
} ?></td>
|
||||
</tr><tr>
|
||||
<td>Device ID: </td>
|
||||
<td><div id=device><?php echo select_tag('device_select', options_for_select($device_options)); ?></div></td>
|
||||
</tr><tr>
|
||||
<td>Reason: </td>
|
||||
<td><?php echo select_tag('reason_select', objects_for_select($reason_dropdown, 'getid', 'getvalue'), $edit_workorder->getReason()); ?></td>
|
||||
</tr><tr>
|
||||
<td>Notes: </td>
|
||||
<td><?php echo textarea_tag('notes', $edit_workorder->getRemarks() , 'size=25x3'); ?></td>
|
||||
</tr></table>
|
||||
</div>
|
||||
<div class="tech_details">
|
||||
<table><tr>
|
||||
<td>Technician: </td>
|
||||
<td colspan=2><div id='selectTech'><?php echo $technician->getLastName().', '.$technician->getFirstName(); ?></div></td>
|
||||
</tr><tr>
|
||||
<td>job date:</td>
|
||||
<td><div id="display_date"><?php echo input_date_tag('job_date', $date); ?></div></td>
|
||||
</tr><tr>
|
||||
<td>start time: </td>
|
||||
<td><?php echo input_tag('start_time_hours', $start_time_hours , array(
|
||||
'size' => '2',
|
||||
'maxlength' => '2')).' : '.
|
||||
input_tag('start_time_minutes', $start_time_minutes, array(
|
||||
'size' => '2',
|
||||
'maxlength' => '2')); ?></td>
|
||||
<td><?php echo radiobutton_tag('start_time_ampm[]','am', true).'am '.' '.
|
||||
radiobutton_tag('start_time_ampm[]','pm', false).'pm'; ?></td>
|
||||
</tr><tr>
|
||||
<td>end time: </td>
|
||||
<td><?php echo input_tag('end_time_hours', $end_time_hours, array(
|
||||
'size' => '2',
|
||||
'maxlength' => '2')).' : '.
|
||||
input_tag('end_time_minutes', $end_time_minutes, array(
|
||||
'size' => '2',
|
||||
'maxlength' => '2')); ?></td>
|
||||
<td><?php echo radiobutton_tag('end_time_ampm[]','am', true).'am '.' '.
|
||||
radiobutton_tag('end_time_ampm[]','pm', false).'pm'; ?></td>
|
||||
</tr><tr>
|
||||
<td><?php echo button_to('Schedule New', 'scheduler/index'); ?></td>
|
||||
<td><?php echo button_to('Delete Job', 'scheduler/deleteJob?id='.$edit_workorder->getId(), array('confirm' => 'Are you sure you want to delete this job?')); ?></td>
|
||||
<?php // <td><?php echo button_to('Delete Job', 'scheduler/deleteJob?workorder_id='.$edit_workorder->getId(), array('onClick' => "confirm('Are you sure you want to delete this job?')")); </td> ?>
|
||||
<td><?php echo submit_tag('Save Job'); ?></td>
|
||||
</tr></table>
|
||||
</div>
|
||||
</form>
|
@ -0,0 +1,58 @@
|
||||
<?php use_helper('Javascript'); ?>
|
||||
<h2>Available Technicians: </h2>
|
||||
<div id="availableTechs" >
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
$c_count = 0;
|
||||
foreach($availableTechnicians as $tech)
|
||||
{
|
||||
$available = $availableTimes[$tech->getId()];
|
||||
if (isset($available))
|
||||
{
|
||||
echo '<div class="availTech">'.$tech->getFirstName().' '.$tech->getLastName().'<br />';
|
||||
//parse time string
|
||||
$inc = 2;
|
||||
$available_minutes = $available % 100;
|
||||
$available_hours = ($available - $available_minutes) / 100;
|
||||
$available_hrs = $available_hours;
|
||||
if($available_hours > 12) { $available_hours = $available_hours - 12; }
|
||||
if($available_minutes == 0) { $available_minutes = '00'; }
|
||||
$available_endhours = $available_hours + 2;
|
||||
if($available_hours == 11) { $available_endhours = 1; }
|
||||
if($available_hours == 12) { $available_endhours = 2; }
|
||||
|
||||
$s_hours = substr($tech->getStartTime(),0,2);
|
||||
$s_mins = substr($tech->getStartTime(),2,2);
|
||||
$e_hours = substr($tech->getEndTime(),0,2);
|
||||
$e_mins = substr($tech->getEndTime(),2,2);
|
||||
|
||||
$available_minutes_str = (strlen($available_minutes)<2) ? "0".$available_minutes : $available_minutes;
|
||||
|
||||
echo link_to_function($available_hours.':'.$available_minutes_str, "selectTech(".$tech->getId().", '".$tech->getFirstName()."', '".$tech->getLastName()."', ".$available_hrs.", ".$available_minutes_str.")");
|
||||
echo " | ";
|
||||
echo link_to_function('Add', "selectSTech(".$tech->getId().", '".$tech->getFirstName()."', '".$tech->getLastName()."')");
|
||||
echo " | ";
|
||||
echo link_to_function('Day', "alldayTech(".$tech->getId().", '".$tech->getFirstName()."', '".$tech->getLastName()."', ".$s_hours.", ".$s_mins.", ".$e_hours.", ".$e_mins.")");
|
||||
echo " | ";
|
||||
echo link_to_function('Week', "allweekTech(".$tech->getId().", '".$tech->getFirstName()."', '".$tech->getLastName()."', ".intval($s_hours).", ".$s_mins.", ".$e_hours.", ".$e_mins.")");
|
||||
/*
|
||||
echo " | ";echo link_to_function('MWF', "MWF_TT(".$tech->getId().", '".$tech->getFirstName()."', '".$tech->getLastName()."', ".$s_hours.", ".$s_mins.", ".$e_hours.", ".$e_mins.",'mwf')");
|
||||
echo " | ";echo link_to_function('TT', "MWF_TT(".$tech->getId().", '".$tech->getFirstName()."', '".$tech->getLastName()."', ".$s_hours.", ".$s_mins.", ".$e_hours.", ".$e_mins.",'tt')");
|
||||
*/
|
||||
?><br />
|
||||
<input type='checkbox' value='1' id='d_m_<?php print $c_count; ?>' />M
|
||||
<input type='checkbox' value='1' id='d_t_<?php print $c_count; ?>' />T
|
||||
<input type='checkbox' value='1' id='d_w_<?php print $c_count; ?>' />W
|
||||
<input type='checkbox' value='1' id='d_tt_<?php print $c_count; ?>' />T
|
||||
<input type='checkbox' value='1' id='d_f_<?php print $c_count; ?>' />F
|
||||
|
||||
<?php echo link_to_function('Update', "MWF_TT(".$tech->getId().", '".$tech->getFirstName()."', '".$tech->getLastName()."', '".$s_hours."', '".$s_mins."', '".$e_hours."', '".$e_mins."','$c_count')"); ?>
|
||||
</div><?php $c_count++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div id='testing'></div>
|
1363
apps/atlbiomed/modules/scheduler/templates/indexSuccess.php
Normal file
1363
apps/atlbiomed/modules/scheduler/templates/indexSuccess.php
Normal file
File diff suppressed because it is too large
Load Diff
1324
apps/atlbiomed/modules/scheduler/templates/indexSuccess.php2
Executable file
1324
apps/atlbiomed/modules/scheduler/templates/indexSuccess.php2
Executable file
File diff suppressed because it is too large
Load Diff
2
apps/atlbiomed/modules/scheduler/templates/populateDeviceSuccess.php
Executable file
2
apps/atlbiomed/modules/scheduler/templates/populateDeviceSuccess.php
Executable file
@ -0,0 +1,2 @@
|
||||
<?php use_helper('Javascript'); ?>
|
||||
<?php echo select_tag('device_select', options_for_select($device_options)); ?>
|
39
apps/atlbiomed/modules/scheduler/templates/populateTechDisplaySuccess.php
Executable file
39
apps/atlbiomed/modules/scheduler/templates/populateTechDisplaySuccess.php
Executable file
@ -0,0 +1,39 @@
|
||||
<?php use_helper('Javascript'); ?>
|
||||
|
||||
<?php echo input_hidden_tag('schedule_date'); ?>
|
||||
<div id="techInfo">
|
||||
<div id="techMenu" style="padding: 4px">
|
||||
|
||||
<?php echo "<span style='height: 100%; display:table-cell;'>"; echo link_to_function('All', "selectTechSchedule('all')"); echo "</span>";
|
||||
|
||||
foreach($tech_info as $tech)
|
||||
{
|
||||
echo "<span style='padding-top: 0px; height: 20px; display:table-cell;' id = 'tech_id_".$tech->getId()."'>";
|
||||
echo link_to_function($tech->getFirstName().' '.$tech->getLastName(), "selectTechSchedule(".$tech->getId().")");
|
||||
echo "</span>";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="techSchedule">
|
||||
<?php
|
||||
$techCount = 0;
|
||||
|
||||
foreach($schedules as $schedule)
|
||||
{
|
||||
$techCount++;
|
||||
|
||||
include_partial('global/technicianSchedule', array('schedule' => $schedule, 'workorderCallbackFunction' => 'populateWorkorder'));
|
||||
|
||||
if ($techCount % 5 == 0){
|
||||
echo '</div><div class="techSchedule">';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div id="techMap" style="float:left">
|
||||
<iframe frameborder="0" id="techMapDisplay"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
26
apps/atlbiomed/modules/scheduler/templates/sendEmailSuccess.php
Executable file
26
apps/atlbiomed/modules/scheduler/templates/sendEmailSuccess.php
Executable file
@ -0,0 +1,26 @@
|
||||
|
||||
<?php use_helper('Javascript'); ?>
|
||||
|
||||
<?php echo input_hidden_tag('schedule_date'); ?>
|
||||
<div id="techInfo">
|
||||
|
||||
<div class="techSchedule">
|
||||
<?php
|
||||
$techCount = 0;
|
||||
foreach($schedules as $schedule)
|
||||
{
|
||||
$techCount++;
|
||||
|
||||
include_partial('global/technicianEmailSchedule', array('date'=>$date,'emailComment'=>$emailComment,'schedule' => $schedule, 'workorderCallbackFunction' => 'populateWorkorder','job_reason'=>$dropdowns));
|
||||
|
||||
if ($techCount % 5 == 0){
|
||||
echo '</div><div class="techSchedule">';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div id="techMap" style="float:left">
|
||||
<iframe frameborder="0" id="techMapDisplay"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
2
apps/atlbiomed/modules/scheduler/templates/techMapSuccess.php
Executable file
2
apps/atlbiomed/modules/scheduler/templates/techMapSuccess.php
Executable file
@ -0,0 +1,2 @@
|
||||
<?php include_component('maps', 'displayTechnicianMap', array('markers' => $markers, 'mapwidth' => '500px', 'mapheight' => '400px')); ?>
|
||||
|
Reference in New Issue
Block a user