water-analysis-pdf.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <title>[[*longtitle]] | [[++site_name]]</title>
  5. <base href="[[!++site_url]]">
  6. <meta charset="[[++modx_charset]]">
  7. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
  8. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  9. <meta name="keywords" content="[[*introtext]]">
  10. <meta name="description" content="[[*description]]">
  11. <link rel="icon" href="client-assets/images/favicon.ico?v=2" type="image/x-icon"> [[!Profile]]
  12. <script type="text/javascript">
  13. window.dataLayer = window.dataLayer || [];
  14. function gtag() {
  15. dataLayer.push(arguments);
  16. }
  17. gtag('js', new Date());
  18. gtag('set', {
  19. 'user_id': '[[+modx.user.id]]'
  20. }); // Set the user ID using signed-in user_id.
  21. gtag('config', 'UA-133963301-1');
  22. </script>
  23. <link href="https://cdn.jsdelivr.net/npm/simple-datatables@latest/dist/style.css" rel="stylesheet" />
  24. <link href="client-assets/css/dashboard-2021.css" rel="stylesheet" />
  25. <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/js/all.min.js" crossorigin="anonymous"></script>
  26. <link href="https://cdn.datatables.net/1.10.20/css/dataTables.bootstrap4.min.css" rel="stylesheet" crossorigin="anonymous" />
  27. <script src="client-assets/js/skycons.js"></script>
  28. <style>
  29. .btn-append {
  30. color: #495057;
  31. background-color: #e9ecef;
  32. border: 1px solid #ced4da;
  33. }
  34. .footer {
  35. position: absolute;
  36. bottom: 0;
  37. width: 100%;
  38. height: 60px;
  39. line-height: 60px;
  40. }
  41. </style>
  42. </head>
  43. <body class="sb-nav-fixed" id="page-top">
  44. [[!Personalize?
  45. &yesChunk=`navHeaderLogged`
  46. &noChunk=`navHeader`
  47. &allowedGroups=`basicClients,bacicAdmin,companyClients,companyManagers`
  48. ]]
  49. <div id="layoutSidenav">
  50. <div id="layoutSidenav_nav">
  51. <!-- Sidebar -->
  52. [[Wayfinder?
  53. &startId=`2`
  54. &displayStart=`0`
  55. &startitemTpl=`startitemTpl`
  56. &selfClass=`show`
  57. &level=`2`
  58. &outerTpl=`outer`
  59. &outerClass=`sb-sidenav accordion sb-sidenav-dark`
  60. &rowTpl=`row`
  61. &rowClass=`nav-link`
  62. &parentRowTpl=`parentRow`
  63. &parentClass=`nav-link collapsed`
  64. &innerTpl=`inner`
  65. &innerClass=`collapse`
  66. &innerRowTpl=`secondInner`
  67. &innerRowClass=`nav-link`
  68. ]]
  69. </div>
  70. <div id="layoutSidenav_content">
  71. <main>
  72. <div class="container-fluid px-4">
  73. <h1 class="mt-4">[[*pagetitle]]</h1>
  74. <ol class="breadcrumb mb-4"> [[$dash-breadcrumbs]] </ol>
  75. <div class="row">
  76. [[!pdf-header]]
  77. <div class="grid">
  78. [[!logoHeader]]
  79. [[!waterAnalysisClient]]
  80. <div class="clearfix"></div>
  81. <!-- GRAPH BANNER -->
  82. <div class="nav-wrap">
  83. <div class="graph-header text-center" style="width: 100%;">ANALYSIS RESULTS</div>
  84. </div>
  85. <div class="clearfix"></div>
  86. <hr>
  87. <!-- CHART HEADER -->
  88. <table class="chart">
  89. <tbody>
  90. <tr class="chart-header">
  91. <th colspan=3 class="black text-center col-50 border-left border-right border-top">ELEMENT</th>
  92. <th colspan=3 class="black text-center col-50 border-right border-top">STATUS</th>
  93. </tr>
  94. <tr class="chart-header-sub">
  95. <th class="black text-center col-16 border-bottom border-left"></th>
  96. <th class="black text-center col-16 border-bottom">DESIRED</th>
  97. <th class="black text-center col-16 border-bottom">FOUND</th>
  98. <th class="text-center col-16 border-left stripe-1">LIGHT</th>
  99. <th class="text-center col-16 border-left stripe-1">MEDIUM</th>
  100. <th class="text-center col-16 border-left border-right stripe-1">HEAVY</th>
  101. </tr>
  102. <tr>
  103. <td class="border-left"></td>
  104. <td class="border-left"></td>
  105. <td class="border-left nutrient-balance"></td>
  106. <td class="border-left"></td>
  107. <td class="border-left"></td>
  108. <td class="border-left border-right"></td>
  109. </tr>
  110. [[!waterAnalysisCalcs? &element=cec &nutrient=`CEC` &graph=lightorangeGraph]]
  111. [[!waterAnalysisCalcs? &element=tec &nutrient=`TEC` &graph=lightorangeGraph]]
  112. <tr class="chart-header-sub">
  113. <th class="text-center col-16 border-left white"></th>
  114. <th class="text-center col-16 border-left white"></th>
  115. <th class="text-center col-16 border-left nutrient-balance"></th>
  116. <th class="text-center col-16 border-left stripe-1">DEFICIT</th>
  117. <th class="text-center col-16 border-left stripe-1">IDEAL</th>
  118. <th class="text-center col-16 border-left border-right stripe-1">HIGH</th>
  119. </tr>
  120. [[!waterAnalysisCalcs? &element=ph_h2o &nutrient=`pH-level (H20)` &graph=lightorangeGraph]]
  121. [[!waterAnalysisCalcs? &element=ph_cacl2 &nutrient=`pH-level (CaCl2)` &graph=lightorangeGraph]]
  122. [[!waterAnalysisCalcs? &element=ocarbon &nutrient=`Organic Carbon` &graph=lightorangeGraph]]
  123. [[!waterAnalysisCalcs? &element=omatter &nutrient=`Organic Matter` &graph=lightorangeGraph]]
  124. <tr class="chart-header-sub">
  125. <th colspan=3 class="col-16 border-left text-center lightblue">RATIOS</th>
  126. <th class="text-center col-16 border-left stripe-1"></th>
  127. <th class="text-center col-16 border-left stripe-1"></th>
  128. <th class="text-center col-16 border-left border-right stripe-1"></th>
  129. </tr>
  130. [[!soilAnalysisRatio? &element=`ca_mehlick3` &elementTwo=`mg_mehlick3` &rec=`ca_mg_ratio` &nutrient=`Ca:Mg Ratio` &graph=lightblueGraph]]
  131. [[!waterAnalysisCalcs? &element=NH3_N &nutrient=`Total Nitrogen` &type=`%` &graph=lightblueGraph]]
  132. [[!waterAnalysisCalcs? &element=p_mehlick &nutrient=`Total Carbon` &type=`%` &graph=lightblueGraph]]
  133. [[!soilAnalysisRatio? &element=`p_bray2` &elementTwo=`NO3_N` &rec=`c_n_ratio` &nutrient=`C:N Ratio` &graph=lightblueGraph]]
  134. <tr class="chart-header-sub">
  135. <th colspan=3 class="col-16 border-left text-center lightgreen">MAJOR ELEMENTS</th>
  136. <th class="text-center col-16 border-left stripe-1"></th>
  137. <th class="text-center col-16 border-left stripe-1"></th>
  138. <th class="text-center col-16 border-left border-right stripe-1"></th>
  139. </tr>
  140. [[!waterAnalysisCalcs? &element=NO3_N &nutrient=`Nitrate Nitrogen` &type=ppm &graph=lightgreenGraph]]
  141. [[!waterAnalysisCalcs? &element=NH3_N &nutrient=`Ammonium Nitrogen` &type=ppm &graph=lightgreenGraph]]
  142. [[!waterAnalysisCalcs? &element=p_mehlick &nutrient=`Phosphorus (mehlick III)` &type=ppm &graph=lightgreenGraph]]
  143. [[!waterAnalysisCalcs? &element=p_bray2 &nutrient=`Phosphorus (Bray 2)` &type=ppm &graph=lightgreenGraph]]
  144. [[!waterAnalysisCalcs? &element=p_morgan &nutrient=`Phosphate (morgan)` &type=ppm &graph=lightgreenGraph]]
  145. <tr class="chart-header-sub">
  146. <th colspan=3 class="col-16 border-left text-center lightred">TRACE ELEMENTS</th>
  147. <th class="text-center col-16 border-left stripe-1"></th>
  148. <th class="text-center col-16 border-left stripe-1"></th>
  149. <th class="text-center col-16 border-left border-right stripe-1"></th>
  150. </tr>
  151. [[!waterAnalysisCalcs? &element=s_morgan &nutrient=`Sulfur` &type=ppm &graph=lightredGraph]]
  152. [[!waterAnalysisCalcs? &element=b_cacl2 &nutrient=`Boron` &type=ppm &graph=lightredGraph]]
  153. [[!waterAnalysisCalcs? &element=mn_dtpa &nutrient=`Manganese` &type=ppm &graph=lightredGraph]]
  154. [[!waterAnalysisCalcs? &element=cu_dtpa &nutrient=`Copper` &type=ppm &graph=lightredGraph]]
  155. [[!waterAnalysisCalcs? &element=zn_dtpa &nutrient=`Zinc` &type=ppm &graph=lightredGraph]]
  156. [[!waterAnalysisCalcs? &element=fe_dtpa &nutrient=`Iron` &type=ppm &graph=lightredGraph]]
  157. [[!waterAnalysisCalcs? &element=al &nutrient=`Aluminium` &type=ppm &graph=lightredGraph]]
  158. [[!waterAnalysisCalcs? &element=sl_cacl2 &nutrient=`Silicon` &type=ppm &graph=lightredGraph]]
  159. <tr class="chart-header-sub">
  160. <th colspan=3 class="col-16 border-left text-center lightpurple">BASE SATURATION</th>
  161. <th class="text-center col-16 border-left stripe-1"></th>
  162. <th class="text-center col-16 border-left stripe-1"></th>
  163. <th class="text-center col-16 border-left border-right stripe-1"></th>
  164. </tr>
  165. [[!waterAnalysisCalcs? &element=`BS_ca2` &nutrient=`Calcium` &type=`%` &graph=lightpurpleGraph]]
  166. [[!waterAnalysisCalcs? &element=`BS_mg2` &nutrient=`Magnesium` &type=`%` &graph=lightpurpleGraph]]
  167. [[!waterAnalysisCalcs? &element=`BS_k` &nutrient=`Potassium` &type=`%` &graph=lightpurpleGraph]]
  168. [[!waterAnalysisCalcs? &element=`BS_na` &nutrient=`Sodium` &type=`%` &graph=lightpurpleGraph]]
  169. [[!waterAnalysisCalcs? &element=`BS_al3` &nutrient=`Other Bases` &type=`%` &graph=lightpurpleGraph]]
  170. [[!waterAnalysisCalcs? &element=`BS_h` &nutrient=`Hydrogen` &type=`%` &graph=lightpurpleGraph]]
  171. <tr class="chart-header-sub">
  172. <th colspan=3 class="col-16 border-left text-center lightgrey">SOLUBLE MORGAN 2 EXTRACT</th>
  173. <th class="text-center col-16 border-left stripe-1"></th>
  174. <th class="text-center col-16 border-left stripe-1"></th>
  175. <th class="text-center col-16 border-left border-right stripe-1"></th>
  176. </tr>
  177. [[!waterAnalysisCalcs? &element=s_morgan &nutrient=`Calcium` &type=`%` &graph=lightgreyGraph]]
  178. [[!waterAnalysisCalcs? &element=b_cacl2 &nutrient=`Magnesium` &type=`%` &graph=lightgreyGraph]]
  179. [[!waterAnalysisCalcs? &element=mn_dtpa &nutrient=`Potassium` &type=`%` &graph=lightgreyGraph]]
  180. <tr class="chart-header-sub">
  181. <th colspan=3 class="col-16 border-left text-center lightgrey">ADDITIONAL DATA</th>
  182. <th class="text-center col-16 border-left stripe-1">LOW</th>
  183. <th class="text-center col-16 border-left stripe-1">IDEAL</th>
  184. <th class="text-center col-16 border-left border-right stripe-1">EXCELLENT</th>
  185. </tr>
  186. [[!waterAnalysisCalcs? &element=s_morgan &nutrient=`Calcium` &type=`%` &graph=lightgreyGraph]]
  187. <tr>
  188. <td class="border-bottom border-left"></td>
  189. <td class="border-bottom border-left"></td>
  190. <td class="border-bottom border-left nutrient-balance"></td>
  191. <td class="border-bottom border-left"></td>
  192. <td class="border-bottom border-left"></td>
  193. <td class="border-bottom border-left border-right"></td>
  194. </tr>
  195. </tbody>
  196. </table>
  197. <div class="clearfix"></div>
  198. </div>
  199. </div>
  200. </main>
  201. <footer class="py-4 bg-light mt-auto">
  202. <div class="container-fluid px-4">
  203. <div class="d-flex align-items-center justify-content-between small">
  204. <div class="text-muted">[[SimpleCopyright? &startYear=`2003`]]. All Rights Reserved <a href="[[~1]]"></a></div>
  205. <div>
  206. <a href="[[~39~]]">Privacy Policy</a>
  207. &middot;
  208. <a href="[[~39~]]">Terms &amp; Conditions</a>
  209. </div>
  210. </div>
  211. </div>
  212. </footer>
  213. </div>
  214. </div>
  215. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
  216. <script>
  217. /*!
  218. * Start Bootstrap - SB Admin v7.0.3 (https://startbootstrap.com/template/sb-admin)
  219. * Copyright 2013-2021 Start Bootstrap
  220. * Licensed under MIT (https://github.com/StartBootstrap/startbootstrap-sb-admin/blob/master/LICENSE)
  221. */
  222. //
  223. // Scripts
  224. //
  225. window.addEventListener('DOMContentLoaded', event => {
  226. // Toggle the side navigation
  227. const sidebarToggle = document.body.querySelector('#sidebarToggle');
  228. if (sidebarToggle) {
  229. // Uncomment Below to persist sidebar toggle between refreshes
  230. // if (localStorage.getItem('sb|sidebar-toggle') === 'true') {
  231. // document.body.classList.toggle('sb-sidenav-toggled');
  232. // }
  233. sidebarToggle.addEventListener('click', event => {
  234. event.preventDefault();
  235. document.body.classList.toggle('sb-sidenav-toggled');
  236. localStorage.setItem('sb|sidebar-toggle', document.body.classList.contains('sb-sidenav-toggled'));
  237. });
  238. }
  239. });
  240. </script>
  241. <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.js" crossorigin="anonymous"></script>
  242. <script src="https://cdn.jsdelivr.net/npm/simple-datatables@latest" crossorigin="anonymous"></script>
  243. </body>
  244. </html>