echo 'class="action" method="post" action="index.php?sec=kb&sec2=operation/kb/manage_data&create=1">'; print_input_hidden('id_incident', $id, false); echo '<a href="#" id="kb_form_submit">' . __("Add to KB") . '</a>'; echo '</form>'; echo "</li>"; } echo '<li>'; echo "<a href='index.php?sec=incidents&sec2=operation/incidents/incident_search&serialized_filter=1'>" . print_image("images/zoom.png", true, array("title" => __("Back to search"))) . "</a>"; echo '</li>'; echo "</ul>"; echo "</div>"; echo "</h1>"; // Score this incident if ($id) { if ($incident["score"] == 0 and ($incident["id_creator"] == $config["id_user"] and $incident["estado"] == 7)) { echo incidents_get_score_table($id); } } } else { if (!defined('AJAX')) { echo "<h1>" . __('Create ticket') . "</h1>"; } } echo '<div class="result">' . $result_msg . '</div>'; $table->width = '98%'; $table->class = 'search-table-button'; $table->id = "incident-editor"; $table->size = array(); $table->size[0] = '430px'; $table->size[1] = ''; $table->size[2] = '';
} } else { if (!give_acl($config['id_user'], $id_grupo, "IR")) { // Doesn't have access to this page audit_db($config['id_user'], $config["REMOTE_ADDR"], "ACL Violation", "Trying to access to ticket " . $id); include "general/noaccess.php"; exit; } else { //No incident but ACLs enabled echo "<h3 class='error'>" . __("The ticket doesn't exist") . "</h3>"; return; } } if ($incident["id_creator"] == $config["id_user"] and $incident["estado"] == 7 and $incident['score'] == 0) { if ($incident["score"] == 0) { $score_msg = incidents_get_score_table($id_ticket); echo $score_msg; } } /* Users affected by the incident */ $table->width = '100%'; $table->class = "none"; $table->size = array(); $table->size[0] = '50%'; $table->size[1] = '50%'; $table->style = array(); $table->data = array(); $table->cellspacing = 0; $table->cellpadding = 0; $table->style[0] = "vertical-align: top"; $table->style[1] = "vertical-align: top";