grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026. -------------------------------------------------------------------------- */ /** @file * @brief */ // Direct access to file if (strpos($_SERVER['PHP_SELF'],"ticketsatisfaction.php")) { $AJAX_INCLUDE = 1; include ('../inc/includes.php'); header("Content-Type: text/html; charset=UTF-8"); Html::header_nocache(); } $entity = new Entity(); if (isset($_POST['inquest_config']) && isset($_POST['entities_id'])) { if ($entity->getFromDB($_POST['entities_id'])) { $inquest_config = $entity->getfield('inquest_config'); $inquest_delay = $entity->getfield('inquest_delay'); $inquest_rate = $entity->getfield('inquest_rate'); $inquest_duration = $entity->getfield('inquest_duration'); $max_closedate = $entity->getfield('max_closedate'); } else { $inquest_config = $_POST['inquest_config']; $inquest_delay = -1; $inquest_rate = -1; $inquest_duration = -1; $max_closedate = ''; } if ($_POST['inquest_config'] > 0) { echo ""; echo ""; echo ""; echo "". ""; echo ""; echo ""; echo ""; if ($max_closedate != '') { echo ""; } if ($_POST['inquest_config'] == 2) { echo ""; echo ""; echo ""; echo ""; } echo "
".__('Create survey after').""; Dropdown::showNumber('inquest_delay', array('value' => $inquest_delay, 'min' => 1, 'max' => 90, 'step' => 1, 'toadd' => array('0' => __('As soon as possible')), 'unit' => 'day')); echo "
".__('Rate to trigger survey').""; Dropdown::showNumber('inquest_rate', array('value' => $inquest_rate, 'min' => 10, 'max' => 100, 'step' => 10, 'toadd' => array(0 => __('Disabled')), 'unit' => '%')); echo "
".__('Duration of survey').""; Dropdown::showNumber('inquest_duration', array('value' => $inquest_duration, 'min' => 1, 'max' => 180, 'step' => 1, 'toadd' => array('0' => __('Unspecified')), 'unit' => 'day')); echo "
". __('For tickets closed after').""; Html::showDateTimeField("max_closedate", array('value' => $max_closedate, 'timestep' => 1)); echo "
".__('Valid tags')."". "[TICKET_ID] [TICKET_NAME] [TICKET_CREATEDATE] [TICKET_SOLVEDATE] ". "[REQUESTTYPE_ID] [REQUESTTYPE_NAME] [TICKET_PRIORITY] [TICKET_PRIORITYNAME] ". "[TICKETCATEGORY_ID] [TICKETCATEGORY_NAME] [TICKETTYPE_ID] ". "[TICKETTYPE_NAME] [SOLUTIONTYPE_ID] [SOLUTIONTYPE_NAME] ". "[SLA_ID] [SLA_NAME] [SLALEVEL_ID] [SLALEVEL_NAME]
" . __('URL') . ""; Html::autocompletionTextField($entity, "inquest_URL"); echo "
"; } } ?>