1 <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
2 <div class="input-form">
4 <table class="data" summary="" style="width: 100%" rules="cols">
7 <th scope="col"> </th>
8 <th scope="col"><?php echo _AT('atutor_patch_id');?></th>
9 <th scope="col"><?php echo _AT('description');?></th>
10 <th scope="col"><?php echo _AT('status');?></th>
11 <th scope="col"><?php echo _AT('available_to');?></th>
12 <th scope="col"><?php echo _AT('author');?></th>
13 <th scope="col"><?php echo _AT('installed_date');?></th>
14 <th scope="col"><?php echo _AT('view_message');?></th>
20 if ($this->num_of_patches == 0)
27 echo _AT('none_found');
36 while ($row = mysql_fetch_assoc($this->result))
38 print_patch_row($row, $row['patches_id'], false);
42 // display un-installed patches
43 if(is_array($this->patch_list_array))
45 foreach ($this->patch_list_array as $row_num => $new_patch)
47 if (!is_patch_installed($new_patch['atutor_patch_id']))
49 $dependent_patches_installed = true;
50 $dependent_patches = "";
52 // check if the dependent patches are installed
53 if (is_array($new_patch["dependent_patches"]))
56 foreach ($new_patch["dependent_patches"] as $num => $dependent_patch)
58 if (!is_patch_installed($dependent_patch))
60 $dependent_patches_installed = false;
61 $dependent_patches .= $dependent_patch. ", ";
65 // remove the last comma in the string
66 if ($dependent_patches <> "") $dependent_patches = substr($dependent_patches, 0, -2);
70 if ($dependent_patches_installed)
71 print_patch_row($new_patch, $array_id++, true);
74 print_patch_row($new_patch, $array_id++, false);
75 $dependent_patches_installed = true;
87 <input type="submit" name="install" value="<?php echo _AT('install'); ?>" />
100 <form name="frm_upload" enctype="multipart/form-data" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" >
102 <div class="input-form">
103 <div class="row"><?php echo _AT("upload_patch"); ?></div>
106 <input type="hidden" name="MAX_FILE_SIZE" value="52428800" />
107 <input type="file" name="patchfile" size="50" />
110 <div class="row buttons">
111 <input type="submit" name="install_upload" value="Install" onclick="javascript: return validate_filename(); " class="submit" />
112 <input type="hidden" name="uploading" value="1" />