Skip to content
Snippets Groups Projects
Commit f1c06ff1 authored by Roger W Feese's avatar Roger W Feese
Browse files

Merge branch 'master' of git.unl.edu:tsteiner2/Curriculum-Request

parents f2ca9acb de0be5e5
No related branches found
No related tags found
No related merge requests found
<?php
$requestBulletins = Bulletin_SectionModel::findWithRequest($this->requests);
$isCurrentPeriod = $this->isCurrentPeriod;
$this->headLink()->appendStylesheet($this->baseUrl() . '/css/bulletin/queue-manager/request-table.css', 'all');
?>
<table class="zentable primary" id="bulletinRequestTable">
<tr>
<?php if ($isCurrentPeriod) { ?>
<th>Advance</th>
<?php } ?>
<th>Section</th>
<th>College</th>
<?php foreach ($this->users as $user) { ?>
<th><?php echo $user->getFirstName() . ' ' . $user->getLastName(); ?></th>
<?php } ?>
</tr>
<?php foreach ($this->requests as $request) {
$bulletin = $requestBulletins[$request->getId()];
$userVotes = $this->requestUserVotes[$request->getId()]; ?>
<tr>
<?php if ($isCurrentPeriod) { ?>
<td><?php echo $this->formCheckbox('requests[' . $request->getId() . ']'); ?>
<?php } ?>
<td><?php echo $this->escape($bulletin->getMajor() ? $bulletin->getMajor() : $bulletin->getCollegeLong()); ?></td>
<td><?php echo $bulletin->getCollege(); ?></td>
<?php foreach ($this->users as $user) {
$vote = $userVotes[$user->getId()]; ?>
<td><?php echo $vote; ?></td>
<?php } ?>
</tr>
<?php } ?>
</table>
<?php
$proposedFourYearPlans = FourYearPlans_FourYearPlanModel::findLatestOfRequest($this->requests);
$originalFourYearPlans = FourYearPlans_FourYearPlanModel::findParentOfRequest($this->requests);
$isCurrentPeriod = $this->isCurrentPeriod;
$requestFourYearPlans = array();
foreach ($this->requests as $requset) {
$requestId = $requset->getId();
if ($originalFourYearPlans[$requestId]) {
$fourYearPlan = $originalFourYearPlans[$requestId];
} else {
$fourYearPlan = $proposedFourYearPlans[$requestId];
}
$requestFourYearPlans[$requestId] = $fourYearPlan;
}
$this->headLink()->appendStylesheet($this->baseUrl() . '/css/fouryearplans/queue-manager/request-table.css', 'all');
?>
<table class="zentable primary" id="fourYearPlanRequestTable">
<tr>
<?php if ($isCurrentPeriod) { ?>
<th>Advance</th>
<?php } ?>
<th>Major</th>
<th>College</th>
<?php foreach ($this->users as $user) { ?>
<th><?php echo $user->getFirstName() . ' ' . $user->getLastName(); ?></th>
<?php } ?>
</tr>
<?php foreach ($this->requests as $request) {
$fourYearPlan = $requestFourYearPlans[$request->getId()];
$userVotes = $this->requestUserVotes[$request->getId()]; ?>
<tr>
<?php if ($isCurrentPeriod) { ?>
<td><?php echo $this->formCheckbox('requests[' . $request->getId() . ']'); ?>
<?php } ?>
<td><?php echo $fourYearPlan->getMajor(); ?></td>
<td><?php echo $fourYearPlan->getCollege(); ?></td>
<?php foreach ($this->users as $user) {
$vote = $userVotes[$user->getId()]; ?>
<td><?php echo $vote; ?></td>
<?php } ?>
</tr>
<?php } ?>
</table>
<?php
$proposedLearningOutcomes = LearningOutcomes_LearningOutcomeModel::findLatestOfRequest($this->requests);
$originalLearningOutcomes = LearningOutcomes_LearningOutcomeModel::findParentOfRequest($this->requests);
$isCurrentPeriod = $this->isCurrentPeriod;
$requestLearningOutcomes = array();
foreach ($this->requests as $requset) {
$requestId = $requset->getId();
if ($originalLearningOutcomes[$requestId]) {
$learningOutcome = $originalLearningOutcomes[$requestId];
} else {
$learningOutcome = $proposedLearningOutcomes[$requestId];
}
$requestLearningOutcomes[$requestId] = $learningOutcome;
}
$this->headLink()->appendStylesheet($this->baseUrl() . '/css/learningoutcomes/queue-manager/request-table.css', 'all');
?>
<table class="zentable primary" id="learningOutcomeRequestTable">
<tr>
<?php if ($isCurrentPeriod) { ?>
<th>Advance</th>
<?php } ?>
<th>Major</th>
<th>College</th>
<?php foreach ($this->users as $user) { ?>
<th><?php echo $user->getFirstName() . ' ' . $user->getLastName(); ?></th>
<?php } ?>
</tr>
<?php foreach ($this->requests as $request) {
$learningOutcome = $requestLearningOutcomes[$request->getId()];
$userVotes = $this->requestUserVotes[$request->getId()]; ?>
<tr>
<?php if ($isCurrentPeriod) { ?>
<td><?php echo $this->formCheckbox('requests[' . $request->getId() . ']'); ?>
<?php } ?>
<td><?php echo $learningOutcome->getMajor(); ?></td>
<td><?php echo $learningOutcome->getCollege(); ?></td>
<?php foreach ($this->users as $user) {
$vote = $userVotes[$user->getId()]; ?>
<td><?php echo $vote; ?></td>
<?php } ?>
</tr>
<?php } ?>
</table>
...@@ -19,7 +19,6 @@ WDN.initializePlugin('notice'); ...@@ -19,7 +19,6 @@ WDN.initializePlugin('notice');
<?php } ?> <?php } ?>
Select period that ended on <?php echo $this->formSelect('period', $this->currentPeriod, NULL, $this->periods); ?> Select period that ended on <?php echo $this->formSelect('period', $this->currentPeriod, NULL, $this->periods); ?>
<h3>Requests:</h3>
<?php <?php
$isCurrentPeriod = (!$this->currentPeriod || $this->currentPeriod < 0); $isCurrentPeriod = (!$this->currentPeriod || $this->currentPeriod < 0);
foreach ($this->moduleRequests as $module => $requests) { foreach ($this->moduleRequests as $module => $requests) {
...@@ -27,6 +26,7 @@ foreach ($this->moduleRequests as $module => $requests) { ...@@ -27,6 +26,7 @@ foreach ($this->moduleRequests as $module => $requests) {
<?php if ($isCurrentPeriod) { ?> <?php if ($isCurrentPeriod) { ?>
<form method="post" action="<?php echo $this->baseUrl() . '/requests/queue-manager/advance-post/id/' . $this->queue->getId(); ?>"> <form method="post" action="<?php echo $this->baseUrl() . '/requests/queue-manager/advance-post/id/' . $this->queue->getId(); ?>">
<h3><?php echo $module ?> Requests:</h3>
<?php echo $this->formHidden('queueId', $this->queue->getId()); ?> <?php echo $this->formHidden('queueId', $this->queue->getId()); ?>
<?php } ?> <?php } ?>
......
@CHARSET "UTF-8";
#bulletinRequestTable {overflow: scroll;}
#bulletinRequestTable td {text-align: center; white-space:nowrap;}
@CHARSET "UTF-8";
#fourYearPlanRequestTable {overflow: scroll;}
#fourYearPlanRequestTable td {text-align: center; white-space:nowrap;}
@CHARSET "UTF-8";
#learningOutcomesRequestTable {overflow: scroll;}
#learningOutcomesRequestTable td {text-align: center; white-space:nowrap;}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment