Commit dda957a64ea3cd3cde72e7e0a7b93f3969ba6c70
1 parent
87453e40
Updated templating.
Committed by: Jarrett Jordaan Reviewed by: Megan Watson
Showing
6 changed files
with
5 additions
and
27 deletions
setup/migrate/steps/migrateDatabase.php
| @@ -148,7 +148,6 @@ class migrateDatabase extends Step | @@ -148,7 +148,6 @@ class migrateDatabase extends Step | ||
| 148 | $cmd = $exe.' -u"'.$dbAdminUser.'" -p"'.$dbAdminPass.'" --port="'.$port.'" '.' --socket="'.$socket.'" '.$dbName.' > '.$sqlFile; | 148 | $cmd = $exe.' -u"'.$dbAdminUser.'" -p"'.$dbAdminPass.'" --port="'.$port.'" '.' --socket="'.$socket.'" '.$dbName.' > '.$sqlFile; |
| 149 | else | 149 | else |
| 150 | $cmd = $exe.' -u"'.$dbAdminUser.'" -p"'.$dbAdminPass.'" --port="'.$port.'" '.$dbName.' > '.$sqlFile; | 150 | $cmd = $exe.' -u"'.$dbAdminUser.'" -p"'.$dbAdminPass.'" --port="'.$port.'" '.$dbName.' > '.$sqlFile; |
| 151 | - echo $cmd; | ||
| 152 | $response = $this->util->pexec($cmd); | 151 | $response = $this->util->pexec($cmd); |
| 153 | } | 152 | } |
| 154 | if(file_exists($sqlFile)) { | 153 | if(file_exists($sqlFile)) { |
setup/wizard/templates/configuration_confirm.tpl
| @@ -50,9 +50,7 @@ | @@ -50,9 +50,7 @@ | ||
| 50 | <td><?php echo $server['file_system_root']['value']; ?></td> | 50 | <td><?php echo $server['file_system_root']['value']; ?></td> |
| 51 | </tr> | 51 | </tr> |
| 52 | </table> | 52 | </table> |
| 53 | - | ||
| 54 | <h3>Paths and Permissions</h3> | 53 | <h3>Paths and Permissions</h3> |
| 55 | - | ||
| 56 | <table class="conf_paths"> | 54 | <table class="conf_paths"> |
| 57 | <?php | 55 | <?php |
| 58 | if($errors || $warnings) { | 56 | if($errors || $warnings) { |
setup/wizard/templates/dependencies.tpl
| 1 | -<!--<form id="license_dependencies_configuration" action="index.php?step_name=<?php //echo $step_name; ?>" method="post">--> | ||
| 2 | <form id="installtype_dependencies_configuration" action="index.php?step_name=<?php echo $step_name; ?>" method="post"> | 1 | <form id="installtype_dependencies_configuration" action="index.php?step_name=<?php echo $step_name; ?>" method="post"> |
| 3 | <p class="title">Checking PHP Dependencies</p> | 2 | <p class="title">Checking PHP Dependencies</p> |
| 4 | <p class="description"> | 3 | <p class="description"> |
| 5 | - The wizard will review your system to determine whether you have the right PHP components in place to run KnowledgeTree. <!--<br/> --> | 4 | + The wizard will review your system to determine whether you have the right PHP components in place to run KnowledgeTree. |
| 6 | Once the scan is completed, you’ll see whether your system has met the requirements or whether there are areas you need to address. | 5 | Once the scan is completed, you’ll see whether your system has met the requirements or whether there are areas you need to address. |
| 7 | </p> | 6 | </p> |
| 8 | <!--Continue Message--> | 7 | <!--Continue Message--> |
| @@ -12,7 +11,6 @@ | @@ -12,7 +11,6 @@ | ||
| 12 | <span class='big_ok'> </span> | 11 | <span class='big_ok'> </span> |
| 13 | <span class='description'>Congratulations! Your system is ready to run KnowledgeTree. Click <b>Next</b> to continue.</span> | 12 | <span class='description'>Congratulations! Your system is ready to run KnowledgeTree. Click <b>Next</b> to continue.</span> |
| 14 | <br/> | 13 | <br/> |
| 15 | -<!-- <br/>--> | ||
| 16 | <?php | 14 | <?php |
| 17 | } | 15 | } |
| 18 | ?> | 16 | ?> |
| @@ -35,7 +33,7 @@ | @@ -35,7 +33,7 @@ | ||
| 35 | $iconFlag = "<span class='{$php}'> </span>"; | 33 | $iconFlag = "<span class='{$php}'> </span>"; |
| 36 | $checkHeading = "<h3 style='width:30%; float:left'>".$iconFlag."PHP Version Check</h3>"; | 34 | $checkHeading = "<h3 style='width:30%; float:left'>".$iconFlag."PHP Version Check</h3>"; |
| 37 | ?> | 35 | ?> |
| 38 | -<!-- PHP Version Check</h3>--> | 36 | +<!--PHP Version Check</h3>--> |
| 39 | <?php if($silent) { ?> | 37 | <?php if($silent) { ?> |
| 40 | <?php if($versionSection) { | 38 | <?php if($versionSection) { |
| 41 | $details = 'Hide Details'; | 39 | $details = 'Hide Details'; |
| @@ -57,7 +55,6 @@ | @@ -57,7 +55,6 @@ | ||
| 57 | $phpVersionCheck .= "<p class='description dependencies'>Your version of PHP must be between 5.0 and 5.2 to run optimally. Versions that are 5.3 or higher are not recommended.</p>"; | 55 | $phpVersionCheck .= "<p class='description dependencies'>Your version of PHP must be between 5.0 and 5.2 to run optimally. Versions that are 5.3 or higher are not recommended.</p>"; |
| 58 | ?> | 56 | ?> |
| 59 | <?php $phpVersionCheck .= "<span class='{$version['class']}'> </span>{$version['version']}"; ?> | 57 | <?php $phpVersionCheck .= "<span class='{$version['class']}'> </span>{$version['version']}"; ?> |
| 60 | - <?php //echo "<span class='{$version['class']}'> </span>{$version['version']}"; ?> | ||
| 61 | <?php if($version['class'] != 'tick') { ?> | 58 | <?php if($version['class'] != 'tick') { ?> |
| 62 | <?php if (AJAX) { ?> | 59 | <?php if (AJAX) { ?> |
| 63 | <?php $phpVersionCheck .= "<a href='#' class='refresh' onclick='w.refresh('dependencies')'>Refresh</a>"; ?> | 60 | <?php $phpVersionCheck .= "<a href='#' class='refresh' onclick='w.refresh('dependencies')'>Refresh</a>"; ?> |
setup/wizard/templates/installtype.tpl
| 1 | <form id="license_installtype_dependencies" action="index.php?step_name=<?php echo $step_name; ?>" method="post"> | 1 | <form id="license_installtype_dependencies" action="index.php?step_name=<?php echo $step_name; ?>" method="post"> |
| 2 | <p class="title">Installation Type</p> | 2 | <p class="title">Installation Type</p> |
| 3 | - | ||
| 4 | <div id="step_content" class="step"> | 3 | <div id="step_content" class="step"> |
| 5 | Select an installation type | 4 | Select an installation type |
| 6 | <br/><br/> | 5 | <br/><br/> |
| @@ -24,9 +23,4 @@ | @@ -24,9 +23,4 @@ | ||
| 24 | <input type="submit" name="Previous" value="Previous" class="button_previous"/> | 23 | <input type="submit" name="Previous" value="Previous" class="button_previous"/> |
| 25 | <input type="submit" name="Next" value="Next" class="button_next" /> | 24 | <input type="submit" name="Next" value="Next" class="button_next" /> |
| 26 | </form> | 25 | </form> |
| 27 | -<script type="text/javascript"> | ||
| 28 | - function clear() { | ||
| 29 | - | ||
| 30 | - } | ||
| 31 | -</script> | ||
| 32 | <?php if (AJAX) { echo $html->js('form.js'); } ?> | 26 | <?php if (AJAX) { echo $html->js('form.js'); } ?> |
| 33 | \ No newline at end of file | 27 | \ No newline at end of file |
setup/wizard/templates/license.tpl
| @@ -6,9 +6,8 @@ | @@ -6,9 +6,8 @@ | ||
| 6 | } | 6 | } |
| 7 | }?> | 7 | }?> |
| 8 | <p class="description_1"> | 8 | <p class="description_1"> |
| 9 | -Read and accept the license agreement below before continuing with the setup. | 9 | + Read and accept the license agreement below before continuing with the setup. |
| 10 | </p> | 10 | </p> |
| 11 | - | ||
| 12 | <?php if(!empty($errors)) { ?> | 11 | <?php if(!empty($errors)) { ?> |
| 13 | <div class="license_agreement" tabindex="-1" style="height:270px;"> | 12 | <div class="license_agreement" tabindex="-1" style="height:270px;"> |
| 14 | <?php } else { ?> | 13 | <?php } else { ?> |
setup/wizard/templates/registration.tpl
| @@ -3,20 +3,16 @@ | @@ -3,20 +3,16 @@ | ||
| 3 | <?php } else { ?> | 3 | <?php } else { ?> |
| 4 | <form id="registration" action="index.php?step_name=<?php echo $step_name; ?>" method="post" onsubmit="javascript:{ if(w.validateRegistration()) { w.sendRegistration() };return false;}"> | 4 | <form id="registration" action="index.php?step_name=<?php echo $step_name; ?>" method="post" onsubmit="javascript:{ if(w.validateRegistration()) { w.sendRegistration() };return false;}"> |
| 5 | <?php } ?> | 5 | <?php } ?> |
| 6 | - | ||
| 7 | <p class="title">Registering KnowledgeTree</p> | 6 | <p class="title">Registering KnowledgeTree</p> |
| 8 | - <?php | ||
| 9 | - //echo $sel_country; | ||
| 10 | - ?> | ||
| 11 | <p class="description"> | 7 | <p class="description"> |
| 12 | - Register your KnowledgeTree installation and receive the KnowledgeTree Drop Box for Windows software, a drag and drop tool that makes placing documents into KnowledgeTree even easier. | 8 | + Register your KnowledgeTree installation and receive the KnowledgeTree Drop Box for Windows software, a drag and drop tool that makes placing documents into KnowledgeTree even easier. |
| 13 | <?php if(AJAX) { ?> | 9 | <?php if(AJAX) { ?> |
| 14 | <a href='#' onclick='javascript:{w.getUrl("index.php?step_name=install", "content_container");}'>Skip Registration</a> | 10 | <a href='#' onclick='javascript:{w.getUrl("index.php?step_name=install", "content_container");}'>Skip Registration</a> |
| 15 | <?php } else { ?> | 11 | <?php } else { ?> |
| 16 | <a href="index.php?step_name=install">Skip Registration</a> | 12 | <a href="index.php?step_name=install">Skip Registration</a> |
| 17 | <?php } ?> | 13 | <?php } ?> |
| 18 | </p> | 14 | </p> |
| 19 | - <!-- Hidden Fields --> | 15 | +<!-- Hidden Fields --> |
| 20 | <input type="hidden" id="sendAll" name="" value="" /> | 16 | <input type="hidden" id="sendAll" name="" value="" /> |
| 21 | <input type="hidden" id="state" name="" /> | 17 | <input type="hidden" id="state" name="" /> |
| 22 | <p class='disclaimer'> | 18 | <p class='disclaimer'> |
| @@ -36,7 +32,6 @@ | @@ -36,7 +32,6 @@ | ||
| 36 | <td rowspan='<?php echo $rowspan; ?>' width='5%'> </td> | 32 | <td rowspan='<?php echo $rowspan; ?>' width='5%'> </td> |
| 37 | <td rowspan='<?php echo $rowspan; ?>'> <?php echo $html->image('dropbox.png'); ?> </td> | 33 | <td rowspan='<?php echo $rowspan; ?>'> <?php echo $html->image('dropbox.png'); ?> </td> |
| 38 | </tr> | 34 | </tr> |
| 39 | - | ||
| 40 | <tr> | 35 | <tr> |
| 41 | <td><label for='last'>Last Name</label></td> | 36 | <td><label for='last'>Last Name</label></td> |
| 42 | <td><input value="<?php echo $last_name; ?>" name='submitted[last_name]' id='last' size='<?php echo $input_width; ?>' style="float:left;"/></td> | 37 | <td><input value="<?php echo $last_name; ?>" name='submitted[last_name]' id='last' size='<?php echo $input_width; ?>' style="float:left;"/></td> |
| @@ -59,7 +54,6 @@ | @@ -59,7 +54,6 @@ | ||
| 59 | } | 54 | } |
| 60 | 55 | ||
| 61 | } | 56 | } |
| 62 | - | ||
| 63 | echo $str; | 57 | echo $str; |
| 64 | ?> | 58 | ?> |
| 65 | </select> | 59 | </select> |
| @@ -78,7 +72,6 @@ | @@ -78,7 +72,6 @@ | ||
| 78 | $str .= "<option name='{$code}' value='{$industry}'>{$industry}</option>"; | 72 | $str .= "<option name='{$code}' value='{$industry}'>{$industry}</option>"; |
| 79 | } | 73 | } |
| 80 | } | 74 | } |
| 81 | - | ||
| 82 | echo $str; | 75 | echo $str; |
| 83 | ?> | 76 | ?> |
| 84 | </select> | 77 | </select> |
| @@ -104,11 +97,9 @@ | @@ -104,11 +97,9 @@ | ||
| 104 | </td> | 97 | </td> |
| 105 | </tr> | 98 | </tr> |
| 106 | </table> | 99 | </table> |
| 107 | - | ||
| 108 | <input type='hidden' name='form_id' value='webform_client_form_242' /> | 100 | <input type='hidden' name='form_id' value='webform_client_form_242' /> |
| 109 | <input type='hidden' name='op' value='Submit' /> | 101 | <input type='hidden' name='op' value='Submit' /> |
| 110 | </div> | 102 | </div> |
| 111 | - | ||
| 112 | <input type="submit" name="Previous" value="Previous" onclick="w.pClick()" class="button_previous"/> | 103 | <input type="submit" name="Previous" value="Previous" onclick="w.pClick()" class="button_previous"/> |
| 113 | <input type="submit" name="Next" value="Register" onclick="w.nClick()" class="button_next"/> | 104 | <input type="submit" name="Next" value="Register" onclick="w.nClick()" class="button_next"/> |
| 114 | </form> | 105 | </form> |