本文整理汇总了PHP中printRating函数的典型用法代码示例。如果您正苦于以下问题:PHP printRating函数的具体用法?PHP printRating怎么用?PHP printRating使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了printRating函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: printRating
static function printRating($wrapperId = 'rating-wrapper')
{
if (!function_exists('printRating')) {
return;
}
printRating(3, NULL, false);
$table = "images";
echo '<script>' . '$(window).load(function() { ' . ' $("#' . $wrapperId . ' .star-rating-live").click(function() { ' . ' if ( !zin.ALBUM_PAGE || !zin.ALBUM_PAGE.lastThumbSelection ) return false; ' . ' var id = images[zin.ALBUM_PAGE.lastThumbSelection.attr("index")]["object_id"];' . ' var dataString = $("#' . $wrapperId . ' form").serialize(); ' . ' var idx = dataString.lastIndexOf("="); ' . ' var value = dataString.substring(idx + 1); ' . ' dataString = "star_rating-value_images_" + id + "=" + value; ' . ' $.ajax({ ' . ' type: "POST", ' . ' url: "' . WEBPATH . '/' . ZENFOLDER . '/' . PLUGIN_FOLDER . '/rating' . '/update.php", ' . ' data: dataString + "&id=" + id + ' . '"&table=images", ' . ' success: function() { ' . ' images[zin.ALBUM_PAGE.lastThumbSelection.attr("index")].rating = value; ' . ' }' . ' });' . ' }); ' . '});' . '</script> ';
}
示例2: printAlbumRating
/**
* @deprecated
* @since 1.2.7
*/
function printAlbumRating($object = NULL)
{
deprecated_functions::notify(gettext('Use printRating().'));
global $_zp_current_album;
if (is_null($object)) {
$object = $_zp_current_album;
}
printRating(3, $object);
}
示例3: setOption
<?php
if (function_exists('printGoogleMap')) {
?>
<div class="section"><?php
setOption('gmap_width', 550, false);
printGoogleMap();
?>
</div><?php
}
?>
<?php
if (function_exists('printRating')) {
?>
<div class="section"><?php
printRating();
?>
</div><?php
}
?>
<?php
if (function_exists('printCommentForm')) {
?>
<div class="section"><?php
printCommentForm();
?>
</div><?php
}
?>
</div>
<div id="sidebar"<?php
示例4: printAlbumRating
/**
* Prints the image rating information for the current image
*
*/
function printAlbumRating()
{
printRating("album");
}