|
@@ 175-208 (lines=34) @@
|
| 172 |
|
</tr>'; |
| 173 |
|
|
| 174 |
|
// Is there water on the knee? Operation! |
| 175 |
|
if (isset($packageaction['operations'])) |
| 176 |
|
{ |
| 177 |
|
echo ' |
| 178 |
|
<tr id="operation_', $action_num, '"> |
| 179 |
|
<td colspan="5" class="windowbg2"> |
| 180 |
|
<table class="table_grid">'; |
| 181 |
|
|
| 182 |
|
// Show the operations. |
| 183 |
|
$operation_num = 1; |
| 184 |
|
foreach ($packageaction['operations'] as $operation) |
| 185 |
|
{ |
| 186 |
|
// Determine the position text. |
| 187 |
|
$operation_text = $operation['position'] == 'replace' ? 'operation_replace' : ($operation['position'] == 'before' ? 'operation_after' : 'operation_before'); |
| 188 |
|
|
| 189 |
|
echo ' |
| 190 |
|
<tr class="windowbg"> |
| 191 |
|
<td class="smalltext" style="width: 5%;"> |
| 192 |
|
<a href="' . $scripturl . '?action=admin;area=packages;sa=showoperations;operation_key=', $operation['operation_key'], !empty($context['install_id']) ? ';install_id=' . $context['install_id'] : '', ';package=', $_REQUEST['package'], ';filename=', $operation['filename'], ($operation['is_boardmod'] ? ';boardmod' : ''), (isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'uninstall' ? ';reverse' : ''), '" onclick="return reqWin(this.href, 680, 400, false);"><span class="generic_icons package_ops"></span></a> |
| 193 |
|
</td> |
| 194 |
|
<td class="smalltext" style="width: 5%;">', $operation_num, '.</td> |
| 195 |
|
<td class="smalltext" style="width: 20%;">', $txt[$operation_text], '</td> |
| 196 |
|
<td class="smalltext" style="width: 50%;">', $operation['action'], '</td> |
| 197 |
|
<td class="smalltext" style="width: 20%;">', $operation['description'], !empty($operation['ignore_failure']) ? ' (' . $txt['operation_ignore'] . ')' : '', '</td> |
| 198 |
|
</tr>'; |
| 199 |
|
|
| 200 |
|
$operation_num++; |
| 201 |
|
} |
| 202 |
|
|
| 203 |
|
echo ' |
| 204 |
|
</table> |
| 205 |
|
</td> |
| 206 |
|
</tr>'; |
| 207 |
|
|
| 208 |
|
// Increase it. |
| 209 |
|
$action_num++; |
| 210 |
|
} |
| 211 |
|
} |
|
@@ 268-300 (lines=33) @@
|
| 265 |
|
</tr>'; |
| 266 |
|
|
| 267 |
|
// Is there water on the knee? Operation! |
| 268 |
|
if (isset($action['operations'])) |
| 269 |
|
{ |
| 270 |
|
echo ' |
| 271 |
|
<tr id="operation_', $action_num, '"> |
| 272 |
|
<td colspan="5" class="windowbg2"> |
| 273 |
|
<table width="100%">'; |
| 274 |
|
|
| 275 |
|
$operation_num = 1; |
| 276 |
|
foreach ($action['operations'] as $operation) |
| 277 |
|
{ |
| 278 |
|
// Determine the possition text. |
| 279 |
|
$operation_text = $operation['position'] == 'replace' ? 'operation_replace' : ($operation['position'] == 'before' ? 'operation_after' : 'operation_before'); |
| 280 |
|
|
| 281 |
|
echo ' |
| 282 |
|
<tr class="windowbg"> |
| 283 |
|
<td width="0"></td> |
| 284 |
|
<td width="30" class="smalltext"><a href="' . $scripturl . '?action=admin;area=packages;sa=showoperations;operation_key=', $operation['operation_key'], !empty($context['install_id']) ? ';install_id=' . $context['install_id'] : '', ';package=', $_REQUEST['package'], ';filename=', $operation['filename'], ($operation['is_boardmod'] ? ';boardmod' : ''), (isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'uninstall' ? ';reverse' : ''), '" onclick="return reqWin(this.href, 600, 400, false);"><span class="generic_icons package_ops"></span></a></td> |
| 285 |
|
<td width="30" class="smalltext">', $operation_num, '.</td> |
| 286 |
|
<td width="23%" class="smalltext">', $txt[$operation_text], '</td> |
| 287 |
|
<td width="50%" class="smalltext">', $operation['action'], '</td> |
| 288 |
|
<td width="20%" class="smalltext">', $operation['description'], !empty($operation['ignore_failure']) ? ' (' . $txt['operation_ignore'] . ')' : '', '</td> |
| 289 |
|
</tr>'; |
| 290 |
|
$operation_num++; |
| 291 |
|
} |
| 292 |
|
|
| 293 |
|
echo ' |
| 294 |
|
</table> |
| 295 |
|
</td> |
| 296 |
|
</tr>'; |
| 297 |
|
|
| 298 |
|
// Increase it. |
| 299 |
|
$action_num++; |
| 300 |
|
} |
| 301 |
|
} |
| 302 |
|
} |
| 303 |
|
|