/modules/reports/EEOReport.tpl

https://bitbucket.org/jstechnologies/cats · Smarty Template · 164 lines · 157 code · 7 blank · 0 comment · 22 complexity · 48f7ef3827e228863ccdc28b789fefa4 MD5 · raw file

  1. <?php /* $Id: EEOReport.tpl 2441 2007-05-04 20:42:02Z brian $ */ ?>
  2. <?php TemplateUtility::printHeader('EEO Reports', array('modules/joborders/validator.js', 'js/company.js', 'js/sweetTitles.js')); ?>
  3. <?php TemplateUtility::printHeaderBlock(); ?>
  4. <?php TemplateUtility::printTabs($this->active, $this->subActive); ?>
  5. <div id="main">
  6. <?php TemplateUtility::printQuickSearch(); ?>
  7. <div id="contents">
  8. <table>
  9. <tr>
  10. <td width="3%">
  11. <img src="images/job_orders.gif" width="24" height="24" border="0" alt="Job Orders" style="margin-top: 3px;" />&nbsp;
  12. </td>
  13. <td><h2>Reports: EEO Report (Work In Progress)</h2></td>
  14. </tr>
  15. </table>
  16. <p class="note">Generate a report on Equal Employment Opportunity Statistics.</p>
  17. <form name="jobOrderReportForm" id="jobOrderReportForm" action="<?php echo(CATSUtility::getIndexName()); ?>" method="get">
  18. <input type="hidden" name="m" value="reports">
  19. <input type="hidden" name="a" value="generateEEOReportPreview">
  20. <table>
  21. <tr>
  22. <td style="vertical-align: top;">
  23. <table class="editTable" <?php if (isset($this->EEOReportStatistics)): ?>width="230"<?php else: ?>width="680"<?php endif; ?>>
  24. <tr>
  25. <td class="tdVertical" style="width: 75px;">
  26. <label id="siteNameLabel" for="siteName">Date Range:</label>
  27. </td>
  28. <td class="tdData">
  29. <input type="radio" name="period" value="all" <?php if ($this->modePeriod == 'all'): ?>checked<?php endif; ?>>&nbsp;All time<br />
  30. <input type="radio" name="period" value="month" <?php if ($this->modePeriod == 'month'): ?>checked<?php endif; ?>>&nbsp;Last Month<br />
  31. <input type="radio" name="period" value="week" <?php if ($this->modePeriod == 'week'): ?>checked<?php endif; ?>>&nbsp;Last Week<br />
  32. </td>
  33. </tr>
  34. <tr>
  35. <td class="tdVertical" style="width: 75px;">
  36. <label id="companyNameLabel" for="companyName">Status:</label>
  37. </td>
  38. <td class="tdData">
  39. <input type="radio" name="status" value="all" <?php if ($this->modeStatus == 'all'): ?>checked<?php endif; ?>>&nbsp;All<br />
  40. <input type="radio" name="status" value="placed" <?php if ($this->modeStatus == 'placed'): ?>checked<?php endif; ?>>&nbsp;Placed<br />
  41. <input type="radio" name="status" value="rejected" <?php if ($this->modeStatus == 'rejected'): ?>checked<?php endif; ?>>&nbsp;Not in Consideration<br />
  42. </td>
  43. </tr>
  44. </table>
  45. <input type="submit" class="button" name="submit" value="Preview Report" />&nbsp;
  46. </td>
  47. <?php if (isset($this->EEOReportStatistics)): ?>
  48. <td style="vertical-align: top;">
  49. <table class="selectView" width="705">
  50. <tr>
  51. <td class="tdVertical" style="padding:10px;">
  52. <div style="text-align: center; font-size:25px; width:250px;">Report Preview:</div>
  53. <br />
  54. <?php if ($this->EEOSettingsRS['ethnicTracking'] == 1): ?>
  55. <table>
  56. <tr>
  57. <td>
  58. <img src="<?php echo($this->urlEthnicGraph); ?>">
  59. </td>
  60. <td style="vertical-align: top; padding:20px;">
  61. <table style="border-collapse: collapse;" style="width:200px;">
  62. <tr>
  63. <td colspan="2">
  64. <br />
  65. Candidates by Ethnic Types:<br />
  66. <br />
  67. </td>
  68. </tr>
  69. <?php foreach ($this->EEOReportStatistics['rsEthnicStatistics'] as $data): ?>
  70. <tr>
  71. <td style="width:160px;">
  72. <?php $this->_($data['EEOEthnicType']); ?>:
  73. </td>
  74. <td>
  75. <?php $this->_($data['numberOfCandidates']); ?>
  76. </td>
  77. </tr>
  78. <?php endforeach; ?>
  79. </table>
  80. </td>
  81. </tr>
  82. </table>
  83. <?php endif; ?>
  84. <br />
  85. <br />
  86. <?php if ($this->EEOSettingsRS['veteranTracking'] == 1): ?>
  87. <table>
  88. <tr>
  89. <td>
  90. <img src="<?php echo($this->urlVeteranGraph); ?>">
  91. </td>
  92. <td style="vertical-align: top; padding:20px;">
  93. <table style="border-collapse: collapse;" style="width:200px;">
  94. <tr>
  95. <td colspan="2">
  96. <br />
  97. Candidates by Veteran Status:<br />
  98. <br />
  99. </td>
  100. </tr>
  101. <?php foreach ($this->EEOReportStatistics['rsVeteranStatistics'] as $data): ?>
  102. <tr>
  103. <td style="width:160px;">
  104. <?php $this->_($data['EEOVeteranType']); ?>:
  105. </td>
  106. <td>
  107. <?php $this->_($data['numberOfCandidates']); ?>
  108. </td>
  109. </tr>
  110. <?php endforeach; ?>
  111. </table>
  112. </td>
  113. </tr>
  114. </table>
  115. <?php endif; ?>
  116. <br />
  117. <table>
  118. <tr>
  119. <?php if ($this->EEOSettingsRS['genderTracking'] == 1): ?>
  120. <td style="padding:5px;">
  121. <table style="border-collapse: collapse;" width="300px;">
  122. <tr>
  123. <td colspan="2">
  124. <img src="<?php echo($this->urlGenderGraph); ?>">
  125. </td>
  126. </tr>
  127. </table>
  128. </td>
  129. <?php endif; ?>
  130. <?php if ($this->EEOSettingsRS['genderTracking'] == 1): ?>
  131. <td style="padding:5px;">
  132. <table style="border-collapse: collapse;" width="190px;">
  133. <tr>
  134. <td colspan="2">
  135. <img src="<?php echo($this->urlDisabilityGraph); ?>">
  136. </td>
  137. </tr>
  138. </table>
  139. </td>
  140. <?php endif; ?>
  141. </tr>
  142. </table>
  143. </td>
  144. </tr>
  145. </table>
  146. </td>
  147. <?php endif; ?>
  148. </tr>
  149. </table>
  150. </form>
  151. <script type="text/javascript">
  152. document.jobOrderReportForm.siteName.focus();
  153. </script>
  154. </div>
  155. </div>
  156. <div id="bottomShadow"></div>
  157. <?php TemplateUtility::printFooter(); ?>