Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
101 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<form action="adm_main.php?section=hooks&action=save" method="POST" class="simples"> | ||
|
||
<?php if( !empty($data["id"]) ){ ?> | ||
<input type="hidden" name="id" value="<?php echo $data["id"] ?>" /> | ||
<?php } ?> | ||
<input type="hidden" name="hook_engine" value="<?php echo $_GET["hook_engine"] ?>" /> | ||
|
||
<div class="field"> | ||
<label for="when_action">Quando o usuário: </label> | ||
<select name="when_action" id="when_action"> | ||
<option value="delete_record" <?php if(@$data['when_action']=='delete_record') echo "selected='selected'" ?>>excluir um registro</option> | ||
<option value="approve_record" <?php if(@$data['when_action']=='approve_record') echo "selected='selected'" ?>>aprovar um registro</option> | ||
<option value="save_record" <?php if(@$data['when_action']=='save_record') echo "selected='selected'" ?>>salvar um registro</option> | ||
</select> | ||
</div> | ||
<div class="field"> | ||
<label for="node_id">Relacionado a uma estrutura:</label> | ||
<?php $structures = Aust::getInstance()->getStructures(); ?> | ||
<select name="node_id"> | ||
<?php foreach( $structures as $site){ ?> | ||
|
||
<optgroup label="<?php echo $site["Site"]["nome"] ?>"> | ||
<?php foreach( $site["Structures"] as $structure ){ ?> | ||
<option value="<?php echo $structure["id"]; ?>" <?php if(@$data['node_id']==$structure["id"]) echo "selected='selected'" ?>> | ||
<?php echo $structure["nome"]; ?> | ||
</option> | ||
<?php } ?> | ||
</optgroup> | ||
|
||
<?php } ?> | ||
</select> | ||
</div> | ||
<div class="field"> | ||
<label for="description">Descrição</label> | ||
<textarea name="description" id="description" rows="5"><?php echo @$data['description'] ?></textarea> | ||
</div> | ||
<div class="field"> | ||
<label for="perform">Realizar seguinte ação</label> | ||
<textarea name="perform" id="perform" rows="12"><?php echo @$data['perform'] ?></textarea> | ||
<span class="explanation"> | ||
Campo <em>Perform</em>. | ||
</span> | ||
</div> | ||
<br> | ||
<div class="field"> | ||
<input type="submit" value="Enviar" name="submit" /> | ||
</div> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div class="title_column"> | ||
<h2> | ||
Editar Hook | ||
</h2> | ||
</div> | ||
|
||
<?php | ||
$hook = new Hook(); | ||
$data = $hook->find($_GET["id"]); | ||
$data = reset($data); | ||
|
||
include(INC_DIR."hooks.inc/_form.inc.php"); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters