Example #1
0
$document = JFactory::getDocument();
if ($this->my->id) {
    $document->addScriptDeclaration('// <![CDATA[
		var kunena_anonymous_name = "' . JText::_('COM_KUNENA_USERNAME_ANONYMOUS') . '";
	// ]]>');
}
$document->addScriptDeclaration('// <![CDATA[
 function kShowDetail(srcElement) {' . 'var targetID, srcElement, targetElement, imgElementID, imgElement;' . 'targetID = srcElement.id + "_details";' . 'imgElementID = srcElement.id + "_img";' . 'targetElement = document.getElementById(targetID);' . 'imgElement = document.getElementById(imgElementID);' . 'if (targetElement.style.display == "none") {' . 'targetElement.style.display = "";' . 'imgElement.src = "' . KUNENA_JLIVEURL . '/components/com_kunena/template/default/images/emoticons/w00t.png";' . '} else {' . 'targetElement.style.display = "none";' . 'imgElement.src = "' . KUNENA_JLIVEURL . '/components/com_kunena/template/default/images/emoticons/pinch.png";' . '}}
 // ]]>');
$this->setTitle($this->title);
$this->k = 0;
CKunenaTools::loadTemplate('/pathway.php');
?>

<form class="postform form-validate" id="postform" action="<?php 
echo CKunenaLink::GetPostURL();
?>
"
	method="post" name="postform" enctype="multipart/form-data" onsubmit="return myValidate(this);">
	<input type="hidden" name="action" value="<?php 
echo $this->action;
?>
" />
	<?php 
if (!isset($this->selectcatlist)) {
    ?>
	<input type="hidden" name="catid" value="<?php 
    echo intval($this->catid);
    ?>
" />
	<?php