本文整理匯總了PHP中BxTemplVotingView::getExtraJs方法的典型用法代碼示例。如果您正苦於以下問題:PHP BxTemplVotingView::getExtraJs方法的具體用法?PHP BxTemplVotingView::getExtraJs怎麽用?PHP BxTemplVotingView::getExtraJs使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類BxTemplVotingView
的用法示例。
在下文中一共展示了BxTemplVotingView::getExtraJs方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getFileIdByUri
* see license.txt file; if not, write to marketing@boonex.com
***************************************************************************/
require_once 'inc/header.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'sharing.inc.php';
require_once BX_DIRECTORY_PATH_CLASSES . 'BxDolSharedMediaView.php';
$iFile = 0;
if (isset($_GET['fileUri'])) {
$iFile = getFileIdByUri($_GET['fileUri'], 'photo');
} elseif (isset($_GET['fileID'])) {
$iFile = (int) $_GET['fileID'];
}
$member['ID'] = (int) $_COOKIE['memberID'];
check_logged();
$oNew = new BxDolSharedMediaView($iFile, 'photo', $site, $dir, $member);
$oVotingView = new BxTemplVotingView('gphoto', 0, 0);
$_page['extra_js'] = $oVotingView->getExtraJs();
$_page['name_index'] = 81;
$_ni = $_page['name_index'];
$_page['css_name'] = $oNew->oShared->sCssName;
$_page['extra_css'] = $oNew->oCmtsView->getExtraCss();
$_page['extra_js'] .= $oNew->oCmtsView->getExtraJs();
$_page['header'] = _t("_view Photo");
$_ni = $_page['name_index'];
$check_res = checkAction($member['ID'], $oNew->oShared->sViewActionName);
if ($check_res[CHECK_ACTION_RESULT] != CHECK_ACTION_RESULT_ALLOWED && !$logged['admin'] && !$logged['moderator']) {
$sCode = "\r\n \t<table width=100% height=100% cellpadding=0 cellspacing=0 class=text2>\r\n \t\t<td align=center bgcolor={$boxbg2}>\r\n \t\t\t" . $check_res[CHECK_ACTION_MESSAGE] . "<br />\r\n \t\t</td>\r\n \t</table>\n";
$_page['name_index'] = 0;
$_page_cont[0]['page_main_code'] = $sCode;
PageCode();
exit;
}