2 /************************************************************************/
\r
4 /************************************************************************/
\r
5 /* Copyright (c) 2010 */
\r
6 /* Inclusive Design Institute */
\r
8 /* This program is free software. You can redistribute it and/or */
\r
9 /* modify it under the terms of the GNU General Public License */
\r
10 /* as published by the Free Software Foundation. */
\r
11 /************************************************************************/
\r
13 function print_errors( $errors, $notes='' ) {
\r
15 <div class="input-form">
\r
19 <h3><img src="images/bad.gif" align="top" alt="" class="img" /> Warning</h3>
\r
22 foreach ($errors as $p) {
\r
23 echo '<li>'.$p.'</li>';
\r
31 <?php echo $notes; ?>
\r
39 function print_feedback( $feedback, $notes='' ) {
\r
41 <div class="input-form">
\r
44 <td><h3><img src="images/feedback.gif" align="top" alt="" class="img" /> <?php echo _AT('TR_FEEDBACK_UPDATE_INSTALLED_SUCCESSFULLY')?></h3>
\r
47 foreach ($feedback as $p) {
\r
48 echo '<li>'.$p.'</li>';
\r
55 <?php echo $notes; ?>
\r
64 * Check if the patch has been installed
\r
66 function is_patch_installed($patch_id)
\r
68 $patchesDAO = new PatchesDAO();
\r
69 $rows = $patchesDAO->getInstalledPatchByIDAndVersion($patch_id, VERSION);
\r
71 if (is_array($rows)) return true;
\r