本文整理匯總了PHP中CKunenaLink::GetPostURL方法的典型用法代碼示例。如果您正苦於以下問題:PHP CKunenaLink::GetPostURL方法的具體用法?PHP CKunenaLink::GetPostURL怎麽用?PHP CKunenaLink::GetPostURL使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CKunenaLink
的用法示例。
在下文中一共展示了CKunenaLink::GetPostURL方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: kShowDetail
$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