PageRenderTime 57ms CodeModel.GetById 29ms RepoModel.GetById 0ms app.codeStats 0ms

/modules/Administration/Diagnostic.html

https://github.com/yinhm/sugarcrm
HTML | 137 lines | 85 code | 11 blank | 41 comment | 0 complexity | a88876d31de410f40f581ba00d09a62e MD5 | raw file
Possible License(s): LGPL-2.1, MPL-2.0-no-copyleft-exception
  1. <!--
  2. /*********************************************************************************
  3. * SugarCRM is a customer relationship management program developed by
  4. * SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
  5. *
  6. * This program is free software; you can redistribute it and/or modify it under
  7. * the terms of the GNU Affero General Public License version 3 as published by the
  8. * Free Software Foundation with the addition of the following permission added
  9. * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
  10. * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
  11. * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
  12. *
  13. * This program is distributed in the hope that it will be useful, but WITHOUT
  14. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  15. * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
  16. * details.
  17. *
  18. * You should have received a copy of the GNU Affero General Public License along with
  19. * this program; if not, see http://www.gnu.org/licenses or write to the Free
  20. * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  21. * 02110-1301 USA.
  22. *
  23. * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
  24. * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
  25. *
  26. * The interactive user interfaces in modified source and object code versions
  27. * of this program must display Appropriate Legal Notices, as required under
  28. * Section 5 of the GNU Affero General Public License version 3.
  29. *
  30. * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
  31. * these Appropriate Legal Notices must retain the display of the "Powered by
  32. * SugarCRM" logo. If the display of the logo is not reasonably feasible for
  33. * technical reasons, the Appropriate Legal Notices must display the words
  34. * "Powered by SugarCRM".
  35. ********************************************************************************/
  36. /*********************************************************************************
  37. ********************************************************************************/
  38. -->
  39. <!-- BEGIN: main -->
  40. <form name="Diagnostic" method="POST" action="index.php">
  41. <input type="hidden" name="module" value="Administration">
  42. <input type="hidden" name="action" value="DiagnosticRun">
  43. <table cellpadding="0" cellspacing="0" border="0" width="100%">
  44. <tr>
  45. <td>
  46. <input title="{MOD.LBL_DIAG_EXECUTE_BUTTON}" class="button" onclick="this.form.action.value='DiagnosticRun';" type="submit" name="button" value=" {MOD.LBL_DIAG_EXECUTE_BUTTON} " >
  47. <input title="{MOD.LBL_DIAG_CANCEL_BUTTON}" class="button" onclick="this.form.action.value='index'; this.form.module.value='Administration'; " type="submit" name="button" value=" {MOD.LBL_DIAG_CANCEL_BUTTON} "></td>
  48. </tr>
  49. </table>
  50. <BR>
  51. <div id="table" style="visibility:visible">
  52. <BR>
  53. <table id="maintable" width="430" border="0" cellspacing="0" cellpadding="0" class="edit view">
  54. <tr>
  55. <td>
  56. <table width="100%" border="0" cellspacing="0" cellpadding="1">
  57. {NO_MYSQL_MESSAGE}
  58. <tr>
  59. <td scope="row"><slot>{MOD.LBL_DIAGNOSTIC_CONFIGPHP}</slot></td>
  60. <td ><slot><input name='configphp' class="checkbox" type="checkbox" tabindex='1' checked></slot></td>
  61. </tr><tr>
  62. <td scope="row"><slot>{MOD.LBL_DIAGNOSTIC_CUSTOMDIR}</slot></td>
  63. <td ><slot><input name='custom_dir' class="checkbox" type="checkbox" tabindex='2' checked></slot></td>
  64. </tr><tr>
  65. <td scope="row"><slot>{MOD.LBL_DIAGNOSTIC_PHPINFO}</slot></td>
  66. <td ><slot><input name='phpinfo' class="checkbox" type="checkbox" tabindex='3' checked></slot></td>
  67. </tr><tr>
  68. <td scope="row"><slot>{MOD.LBL_DIAGNOSTIC_MYSQLDUMPS}</slot></td>
  69. <td ><slot><input name='mysql_dumps' class="checkbox" type="checkbox" tabindex='4' {MYSQL_CAPABLE}></slot></td>
  70. </tr><tr>
  71. <td scope="row"><slot>{MOD.LBL_DIAGNOSTIC_MYSQLSCHEMA}</slot></td>
  72. <td ><slot><input name='mysql_schema' class="checkbox" type="checkbox" tabindex='5' {MYSQL_CAPABLE}></slot></td>
  73. </tr><tr>
  74. <td scope="row"><slot>{MOD.LBL_DIAGNOSTIC_MYSQLINFO}</slot></td>
  75. <td ><slot><input name='mysql_info' class="checkbox" type="checkbox" tabindex='6' {MYSQL_CAPABLE}></slot></td>
  76. </tr><tr>
  77. <td scope="row"><slot>{MOD.LBL_DIAGNOSTIC_MD5}</slot></td>
  78. <td ><slot><input name='md5' class="checkbox" type="checkbox" tabindex='7' onclick="md5checkboxes()" checked></slot></td>
  79. </tr><tr>
  80. <td scope="row"><slot>{MOD.LBL_DIAGNOSTIC_FILESMD5}</slot></td>
  81. <td ><slot><input name='md5filesmd5' class="checkbox" type="checkbox" tabindex='8' ></slot></td>
  82. </tr><tr>
  83. <td scope="row"><slot>{MOD.LBL_DIAGNOSTIC_CALCMD5}</slot></td>
  84. <td ><slot><input name='md5calculated' class="checkbox" type="checkbox" tabindex='9' ></slot></td>
  85. </tr><tr>
  86. <td scope="row"><slot>{MOD.LBL_DIAGNOSTIC_BLBF}</slot></td>
  87. <td ><slot><input name='beanlistbeanfiles' class="checkbox" type="checkbox" tabindex='10' checked></slot></td>
  88. </tr><tr>
  89. <td scope="row"><slot>{MOD.LBL_DIAGNOSTIC_SUGARLOG}</slot></td>
  90. <td ><slot><input name='sugarlog' class="checkbox" type="checkbox" tabindex='11' checked></slot></td>
  91. </tr><tr>
  92. <td scope="row"><slot>{MOD.LBL_DIAGNOSTIC_VARDEFS}</slot></td>
  93. <td ><slot><input name='vardefs' class="checkbox" type="checkbox" tabindex='11' checked></slot></td>
  94. </tr>
  95. </table>
  96. </td>
  97. </tr>
  98. </table>
  99. </div>
  100. </form>
  101. {MYSQL_CAPABLE_CHECKBOXES}
  102. <script type="text/javascript" language="Javascript">
  103. var md5filesmd5_checked;
  104. var md5calculated_checked;
  105. function show(id) {
  106. document.getElementById(id).style.display="block";
  107. }
  108. function md5checkboxes(){
  109. if (document.Diagnostic.md5.checked == false){
  110. md5filesmd5_checked = document.Diagnostic.md5filesmd5.checked;
  111. md5calculated_checked = document.Diagnostic.md5calculated.checked;
  112. document.Diagnostic.md5filesmd5.checked=false;
  113. document.Diagnostic.md5calculated.checked=false;
  114. document.Diagnostic.md5filesmd5.disabled=true;
  115. document.Diagnostic.md5calculated.disabled=true;
  116. }
  117. else{
  118. document.Diagnostic.md5filesmd5.disabled=false;
  119. document.Diagnostic.md5calculated.disabled=false;
  120. document.Diagnostic.md5filesmd5.checked=md5filesmd5_checked;
  121. document.Diagnostic.md5calculated.checked=md5calculated_checked;
  122. }
  123. }
  124. </script>
  125. <!-- END: main -->