Beispiel #1
0
function h($string)
{
    return htmlspecialChars($string, ENT_QUOTES, 'UTF-8');
}
Beispiel #2
0
        	}
	
		$ndoc=Udm_Get_Res_Field($res,$i,UDM_FIELD_ORDER);
		$rating=Udm_Get_Res_Field($res,$i,UDM_FIELD_RATING);
		$url=Udm_Get_Res_Field($res,$i,UDM_FIELD_URL);
		$contype=Udm_Get_Res_Field($res,$i,UDM_FIELD_CONTENT);
		$docsize=Udm_Get_Res_Field($res,$i,UDM_FIELD_SIZE);
		$lastmod=format_lastmod(Udm_Get_Res_Field($res,$i,UDM_FIELD_MODIFIED));
		
		$title=Udm_Get_Res_Field($res,$i,UDM_FIELD_TITLE);   
		$title=($title) ? htmlspecialChars($title):'No title';
		
		$title=ParseDocText($title);
		$text=ParseDocText(htmlspecialChars(Udm_Get_Res_Field($res,$i,UDM_FIELD_TEXT)));
		$keyw=ParseDocText(htmlspecialChars(Udm_Get_Res_Field($res,$i,UDM_FIELD_KEYWORDS)));
		$desc=ParseDocText(htmlspecialChars(Udm_Get_Res_Field($res,$i,UDM_FIELD_DESC)));

		$crc=Udm_Get_Res_Field($res,$i,UDM_FIELD_CRC);
		$rec_id=Udm_Get_Res_Field($res,$i,UDM_FIELD_URLID);
		
		if (Udm_Api_Version() >= 30203) {
		    $doclang=Udm_Get_Res_Field($res,$i,UDM_FIELD_LANG);
		    $doccharset=Udm_Get_Res_Field($res,$i,UDM_FIELD_CHARSET);
		}
		
		if ($phpver >= 40006) {
  			$category=Udm_Get_Res_Field($res,$i,UDM_FIELD_CATEGORY);
  		} else {
  			$category='';
  		}
  
Beispiel #3
0
	input.inputradio, input.inputfile, input.inputbutton, input.inputbodybutton {font-family:Verdana,Arial,Helvetica; font-size:11px;}
	.errortext, .oktext, .notetext {font-family:Verdana,Arial,Hevetica,sans-serif; font-size:13px; font-weight:bold;}
	.errortext {color:red;}
</style>
	<body>
<?php 
if ($arResult["SELF_CLOSE"] == "Y") {
    if (!empty($arResult["TOPIC"])) {
        ?>
	<script type="text/javascript">
		opener.document.MESSAGES['newTID'].value = '<?php 
        echo $arResult["TID"];
        ?>
';
		opener.document.getElementById('TOPIC_INFO').innerHTML = '<?php 
        echo CUtil::JSEscape('&laquo;<a href="' . $arResult["TOPIC"]["LINK"] . '">' . htmlspecialChars($arResult["TOPIC"]["~TITLE"]) . '</a>&raquo; ( ' . GetMessage("FMM_ON_FORUM") . ': <a href="' . $arResult["FORUM"]["LINK"] . '">' . $arResult["FORUM"]["NAME"] . '</a>)');
        ?>
';
		self.close();
	</script>
<?php 
    }
} else {
    ?>

<form action="<?php 
    echo $APPLICATION->GetCurPageParam();
    ?>
" method="GET">
<?php 
    echo bitrix_sessid_post();
    /**
     * Generiert das HTML.
     * Das HTML besteht aus einer Ueberschrift (H1) und dem div, in
     * welches das erzeugte Programm hineingeladen wird.
     *
     * @param	string		$title: Titel des Diagramms
     * @param	integer		$key: UID der Frage
     * @param	float		$overallAverage: Gesamtdurchschnitt dieser Auswertung
     * @param	string		$infoTable: Info-Tabelle mit Aufschluesselung der einzelnen Werte
     * @return	void
     */
    function generateHTML($title, $key, $overallAverage = '', $infoTable = '')
    {
        $this->html .= '
			<h2>' . htmlspecialChars($title) . '</h2>';
        if (!empty($overallAverage)) {
            $this->html .= '
			<h3>' . $this->pi_getLL('overall_grade') . ': ' . round($overallAverage, 2) . '</h3>';
        }
        $this->html .= $infoTable . '
			<div id="chart' . $key . '"></div>';
    }