-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpopupAddAction.php
47 lines (42 loc) · 1 KB
/
popupAddAction.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/*
* pmt.mcpe.me
*
* Copyright (C) 2015 PEMapModder
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* @author PEMapModder
*/
use pg\lib\exe\Runnable;
include_once __DIR__ . "/utils.php";
forceProject();
$runnableId = $_REQUEST["parent"];
if(!isset($_SESSION["runnables"][$runnableId])){
redirect(".");
}
/** @var Runnable $runnable */
$runnable = $_SESSION["runnables"][$runnableId];
?>
<html>
<head>
<title>Add Action</title>
</head>
<body>
<h1 class="title">Choose an action to add</h1>
<?php
foreach($runnable->getContext()->getResources() as $res){
foreach($res->getActions() as $i => $action){
?>
<input type="radio" name="type" value="<?= $res->resId ?>-<?= $i ?>">
<?= $action->explain() ?>
<br>
<?php
}
}
?>
</body>
</html>