示例#1
0
                        </div>

                        <div class='siem_form_title'><?php 
echo _("OTX Pulse");
?>
</div>
                        <div>
                            <input type="hidden" name="otx[0]" id="otx_pulse_value" value="<?php 
if ($_SESSION["otx"][0] != '') {
    echo $_SESSION["otx"][0];
}
?>
"/>
                            <input type="text" id="otx_pulse" value="<?php 
if (!empty($_SESSION["otx"][0])) {
    echo GetPulseName($_SESSION["otx"][0]);
}
?>
" placeholder="<?php 
echo _("Pulse name");
?>
" class='search_sensor'/>
                        </div>

                        <div class='siem_form_otx'>
                            <input type="checkbox" onchange="$('#otx_pulse_value').val('');$('#otx_pulse').val('');this.form.bsf.click()" name="otx[1]" id="otx_activity" value="1" <?php 
if ($_SESSION["otx"][1] != "") {
    echo "checked";
}
?>
/>
 function Description()
 {
     global $otx_unknown;
     $tmp = "";
     if ($this->criteria[1] == "1") {
         $tmp = _("Only OTX Pulse Activity");
     } elseif ($this->criteria[0] != " " && $this->criteria[0] != "") {
         $tmp = GetPulseName($this->criteria[0]);
     }
     $tmp = $tmp != '' ? $tmp . $this->cs->GetClearCriteriaString($this->export_name) . "<br>" : $tmp;
     return $tmp;
 }