echo "<tr><th>{$strTags}</th><td><textarea rows='2' cols='40' name='tags'>" . list_tags($id, 2, false) . "</textarea></td></tr>\n"; echo "<tr><th>{$strImportant}</th>"; echo "<td>{$strChangingContact}. "; if ($incident['maintenanceid'] >= 1) { echo sprintf($strLoggedUnder, $incident['maintenanceid']) . ". "; } else { echo "{$strIncidentNoContract}. "; } echo "{$strToChangeContract}."; echo "</td></tr>\n"; echo "<tr><th>{$strContact}</th><td>"; echo contact_drop_down("contact", $incident["contact"], TRUE) . "</td></tr>\n"; flush(); $maintid = maintenance_siteid($incident['maintenanceid']); echo "<tr><th>{$strSite}</th><td>" . site_name($maintid) . "</td></tr>"; echo "<tr><th>{$strSkill}</th><td>" . skill_drop_down("software", $incident["softwareid"]) . "</td></tr>\n"; echo "<tr><th>{$strVersion}</th>"; echo "<td><input maxlength='50' name='productversion' size='30' type='text' value=\"{$incident["productversion"]}\" /></td></tr>\n"; echo "<tr><th>{$strServicePacksApplied}</th>"; echo "<td><input maxlength='100' name='productservicepacks' size='30' type='text' value=\"{$incident["productservicepacks"]}\" /></td></tr>\n"; echo "<tr><th>CC {$strEmail}</th>"; echo "<td><input maxlength='255' name='ccemail' size='30' type='text' value=\"{$incident["ccemail"]}\" /></td></tr>\n"; echo "<tr><th>{$strEscalation}</th>"; echo "<td>" . escalation_path_drop_down('escalationpath', $incident['escalationpath']) . "</td></tr>"; echo "<tr><th>{$strExternalID}</th>"; echo "<td><input maxlength='50' name='externalid' size='30' type='text' value=\"{$incident["externalid"]}\" /></td></tr>\n"; echo "<tr><th>{$strExternalEngineersName}</th>"; echo "<td><input maxlength='80' name='externalengineer' size='30' type='text' value=\"{$incident["externalengineer"]}\" /></td></tr>\n"; echo "<tr><th>{$strExternalEmail}</th>"; echo "<td><input maxlength='255' name='externalemail' size='30' type='text' value=\"{$incident["externalemail"]}\" /></td></tr>\n"; plugin_do('edit_incident_form');
$mailed_body_text = $updaterow['bodytext']; $sql = "SELECT subject FROM `{$dbTempIncoming}` WHERE updateid={$updateid}"; $result = mysql_query($sql); if (mysql_error()) { trigger_error("MySQL Query Error " . mysql_error(), E_USER_WARNING); } $updaterow = mysql_fetch_array($result); $mailed_subject = $updaterow['subject']; echo "<tr><td><label for='incidenttitle'>{$strIncidentTitle}</label><br />"; echo "<input class='required' maxlength='200' id='incidenttitle' "; echo "name='incidenttitle' size='50' type='text' value=\"" . htmlspecialchars($mailed_subject, ENT_QUOTES) . "\" />"; echo " <span class='required'>{$strRequired}</span></td>\n"; echo "<td>"; if ($type == 'free') { echo "<th>{$strServiceLevel}</th><td>" . serviceleveltag_drop_down('servicelevel', $CONFIG['default_service_level'], TRUE) . "</td>"; echo "<th>{$strSkill}</th><td>" . skill_drop_down('software', 0) . "</td></tr>"; } else { echo "<label for='software'>{$strSkill}</label><br />" . softwareproduct_drop_down('software', 1, $productid); } echo "</td></tr>"; echo "<tr><td colspan='2'> </td></tr>\n"; echo "<tr><th>{$strProblemDescription}<br /><span style='font-weight: normal'>{$strReceivedByEmail}</span></th>"; echo "<td>" . parse_updatebody($mailed_body_text) . "</td></tr>\n"; echo "<tr><td class='shade1' colspan='2'> </td></tr>\n"; } echo "<tr><td><strong>{$strNextAction}</strong><br />"; // echo "<input type='text' name='nextaction' maxlength='50' size='30' value='Initial Response' /><br /><br />"; echo show_next_action(); echo "</td>"; echo "<td colspan='2'>"; echo "<strong>{$strVisibleToCustomer}</strong><br />\n";
echo "<p align='center'>{$strProduct}: " . icon('product', 16) . " "; echo product_drop_down("productid", 0); echo "</p>"; } else { $sql = "SELECT name FROM `{$dbProducts}` WHERE id='{$productid}' "; $result = mysql_query($sql); if (mysql_error()) { trigger_error("MySQL Query Error " . mysql_error(), E_USER_WARNING); } list($product) = mysql_fetch_row($result); echo "<h3>{$strProduct}: {$product}</h3>"; echo "<input name=\"productid\" type=\"hidden\" value=\"{$productid}\" />\n"; } if (empty($softwareid)) { echo "<p align='center'>{$strSkill}: " . icon('skill', 16) . " "; echo skill_drop_down("softwareid", 0); echo "</p>\n"; } echo "<p align='center'><input name='submit' type='submit' value='{$strSave}' />"; echo "<input type='checkbox' name='return' value='true' "; if ($return == 'true') { echo "checked='checked' "; } echo "/> {$strReturnAfterSaving}</p>\n"; echo "</form>"; echo "<p align='center'><a href='products.php?productid={$productid}'>{$strReturnWithoutSaving}</a></p>"; include APPLICATION_INCPATH . 'htmlfooter.inc.php'; } elseif ($action == "add") { $errors = 0; // check for blank if ($productid == 0) {