?> </td> </tr> <?php } ?> <?php if ($can_select_responsible == "Y") { ?> <script type="text/javascript"> <!-- var arCategory_RESP = Array(); <?php if ($can_select_category == "Y") { $rs = CTicketDictionary::GetDropDown("C"); while ($ar = $rs->Fetch()) { if (intval($ar["RESPONSIBLE_USER_ID"]) > 0) { ?> arCategory_RESP[<?php echo $ar["ID"]; ?> ] = <?php echo $ar["RESPONSIBLE_USER_ID"]; ?> ; <?php } } } ?>
echo SelectBoxFromArray("find_mark_id", $arr, $find_mark_id, GetMessage("SUP_ALL")); ?> </td> </tr> <tr> <td nowrap> <?php echo GetMessage("SUP_F_SOURCE"); ?> :</td> <td><?php $ref = array(); $ref_id = array(); $ref[] = "web"; $ref_id[] = "0"; $z = CTicketDictionary::GetDropDown("SR"); while ($zr = $z->Fetch()) { $ref[] = "[" . $zr["ID"] . "] (" . $zr["SID"] . ") " . $zr["NAME"]; $ref_id[] = $zr["REFERENCE_ID"]; } $arr = array("REFERENCE" => $ref, "REFERENCE_ID" => $ref_id); echo SelectBoxFromArray("find_source_id", $arr, $find_source_id, GetMessage("SUP_ALL")); ?> </td> </tr> <tr valign="top"> <td width="0%" nowrap><?php echo GetMessage("SUP_SHOW"); ?> :</td> <td width="0%" nowrap valign="top">
$rs = CTicketDictionary::GetDropDown("M", false, $sid); echo "Array('NOT_REF', ' ')"; while ($ar = $rs->Fetch()) { echo ", Array('" . addslashes(htmlspecialchars($ar["REFERENCE_ID"])) . "', '" . addslashes(htmlspecialchars($ar["REFERENCE"])) . "')"; } ?> ); <?php } if ($can_select_criticality == "Y") { ?> arCriticality_SLA[<?php echo $sid; ?> ]=Array(<?php $rs = CTicketDictionary::GetDropDown("K", false, $sid); echo "Array('NOT_REF', ' ')"; while ($ar = $rs->Fetch()) { echo ", Array('" . addslashes(htmlspecialchars($ar["REFERENCE_ID"])) . "', '" . addslashes(htmlspecialchars($ar["REFERENCE"])) . "')"; } ?> ); <?php } } } ?> function OnSLAChange(sla_id) { var obSiteSelect, site_id, select_index, k;