• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP getRating函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中getRating函数的典型用法代码示例。如果您正苦于以下问题:PHP getRating函数的具体用法?PHP getRating怎么用?PHP getRating使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了getRating函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: getMediaItem

function getMediaItem($item)
{
    $content = '<li class="list-group-item">';
    $content .= getRating($item['rating']);
    $content .= $item['title'] . '<br>';
    $content .= '<small>' . $item['description'] . '</small><br>';
    $content .= getTags($item['tags']);
    // Buttonrow
    $content .= '<div class="text-right">';
    // Edit Button
    $content .= '<a href="index.php?media_item_id=' . $item['id'] . '">';
    $content .= '<button type="button" class="btn btn-xs" aria-label="Editieren">';
    $content .= '<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>';
    $content .= '</button>';
    $content .= '</a>';
    // Delete Button
    $content .= '<a href="submit.php?delete_id=' . $item['id'] . '">';
    $content .= '<button type="button" class="btn btn-xs" aria-label="Editieren">';
    $content .= '<span class="glyphicon glyphicon-trash" aria-hidden="true"></span>';
    $content .= '</button>';
    $content .= '</a>';
    $content .= '</div>';
    // END buttonrow
    $content .= '</li>';
    return $content;
}
开发者ID:xanobius,项目名称:how2web,代码行数:26,代码来源:functions.php


示例2: getRating

                if ($obj->getCommentsAllowed() && $obj->getCommentCount() > 0) {
                    ?>
									<div class="image-cr"><i class="fa fa-comments"></i><span> <?php 
                    echo $obj->getCommentCount();
                    ?>
</span></div>
									<?php 
                }
            }
            ?>
								<?php 
            if (function_exists('getRating')) {
                if (getRating($obj)) {
                    ?>
									<div class="image-cr"><i class="fa fa-star"></i><span> <?php 
                    echo getRating($obj);
                    ?>
</span></div>
									<?php 
                }
            }
            ?>
							</div>
							<i class="fa fa-angle-up mobile-click-details"></i>
						</div>
					<?php 
            $count++;
        }
        ?>
				</div>
			</div>
开发者ID:ckfreeman,项目名称:libratus,代码行数:31,代码来源:image.php


示例3: number_format

echo "<font size=\"3\" face=\"arial\" color=\"blue\">";
echo "&nbsp;&nbsp;&nbsp;&nbsp;<i>VIEWS:</i>";
echo "&nbsp;" . number_format($views);
echo "</font>";
echo "<br/>";
$t = mysql_query("SELECT count(mid) FROM `Downloads` WHERE mid='{$mid}'") or die(mysql_error());
$row6 = mysql_fetch_assoc($t);
$downss = $row6['count(mid)'];
echo "<font size=\"3\" face=\"arial\" color=\"blue\">";
echo "DOWNLOADS:&nbsp;&nbsp;";
echo number_format($downss);
echo "</font>";
echo "<br/>";
echo "<font size=\"2\" face=\"arial\" color=\"green\">";
echo "Rating:&nbsp;&nbsp;";
$rate = getRating($mid);
if ($rate != NULL) {
    echo round($rate, 2);
} else {
    echo "No one rated this media yet. Be first";
}
echo "</font>";
echo "<br/>";
$t = mysql_query("SELECT SUM(likes),SUM(dislikes) FROM `Likes_Dislikes` WHERE mid='{$mid}'") or die(mysql_error());
$row4 = mysql_fetch_assoc($t);
echo "<font size=\"1\" face=\"arial\" color=\"red\">";
echo "LIKES:";
$lks = $row4['SUM(likes)'];
if ($lks == NULL) {
    echo "0";
} else {
开发者ID:nani1441,项目名称:metube,代码行数:31,代码来源:player_wmv.php


示例4: mysql_query

?>
    </th>
  </tr>
  <?

    $tmpPlayers = mysql_query($tmpQuery);

    if (mysql_num_rows($tmpPlayers)==0)
        echo "<tr><td colspan='8'>".$MSG_LANG["noopponent"]."</td></tr>";
        while($tmpPlayer = mysql_fetch_array($tmpPlayers, MYSQL_ASSOC))
        {
            if ($tmpPlayer['lastUpdate'] >= (time()-300))
                $img="online";
            else
                 $img="offline";
                    if (getRating($tmpPlayer['playerID']) == 0)
                    echo "<tr>
                    <td width=5%><img src='images/$img.gif' alt='$img'></td>
                    <td width=5%>
                    <form action='newuserchallenge.php' method='post'><input type='hidden' name='player_id' value=$tmpPlayer[playerID]>
                    <input type='button' style='font-size:11' value='$MSG_LANG[invite]' onClick=\"submit()\"> </form>                </td>
                    <td width=5%>
                    <form action='sendmessage.php' method='post'><input type='hidden' name='player_id' value=$tmpPlayer[playerID]>
                    <input type='button' style='font-size:11' value='$MSG_LANG[sendmessage]' onClick=\"submit()\"> </form>                </td>
                    <td width=50% style='text-align:left'>".$tmpPlayer['firstName']."</td>
                    <td width=15%>".$tmpPlayer['pais']."</td>
                    <td width=10%><strong><font color=red>$MSG_LANG[newuser]</strong></font></td>
                    <td width=10%>".getPlayerLevel($tmpPlayer['playerID'])."</td>";

                    else
                    echo "<tr>
开发者ID:BackupTheBerlios,项目名称:freechess-svn,代码行数:31,代码来源:inviteplayer.php


示例5: round

							</tr>
							';
            $k++;
        }
        if ($totalunits >= 1) {
            $ave = round($totalscore / $totalunits, 4);
        } else {
            $ave = 0;
        }
        echo '
							<tr>
								<td><b>TOTAL</b></td>
								<td align="center"><b>' . $totalunits . '</b></td>
								<td colspan = 3></td>
								<td align="right"><b>' . $ave . '</b></td>
								<td align="center"><b>' . getRating($ave) . '</b></td>
							</tr>
						';
        $j++;
    }
    echo "</table>";
} else {
    if (!isset($search)) {
        echo "There is no instructor whose all classes are already closed for evaluation.";
    } else {
        echo "No instructor found.";
    }
}
if (isset($search)) {
    echo "<br/><br/><a href='" . base_url('index.php/clerk/reportmanagement/facultysummarizedreport') . "'>Back to all instructors </a>";
}
开发者ID:google-code-backups,项目名称:upm-oset,代码行数:31,代码来源:faculty_report.php


示例6: url

            $image->readImage($setting['image_output'] . $row2['ID'] . "." . $row2['FILE']);
            $image->setFormat("jpg");
            $image->setImageCompression(Imagick::COMPRESSION_JPEG);
            $image->setImageCompressionQuality($setting['thumbnail_quality']);
            $image->thumbnailImage($setting['thumbnail_size'], 0);
            $image->writeImage($thumb_fn);
            $image->clear();
        }
        //$output = $image->getImageBlob();
        echo '<a href="image.php?id=' . $row2['ID'] . '"><div class="image" style="background-image: url(' . $setting['image_output_htmlsafe'] . 'thumbnails/' . $row2['ID'] . '.jpg);">';
        if (time() - 24 * 60 * 60 <= $row2['DATEADD']) {
            echo '<div class="new_banner">NEW</div>';
        }
        echo '<div class="info">
										<div class="i_l">
											<span style="color: ' . getRatingColor($row2['RATING']) . '; padding-left: 10px;">' . getRating($row2['RATING']) . '</span>
										</div>
										<div class="i_r">
											<span style="color: #add1ff; padding-right: 10px;">◉ ' . $row2['VIEWS'] . '</span>
											<span style="color: #ffa5be; padding-right: 10px;">❤ ' . $favorites . '</span>
											<span style="color: #ffeaa5; padding-right: 10px;">◆ -</span>
										</div>
									</div>
								</div></a>';
    }
} else {
    echo 'This user does not exist.';
}
?>
				</div>
			</div>
开发者ID:HardSkript,项目名称:3_126,代码行数:31,代码来源:profile.php


示例7: round

					<strong>File type</strong><br/>
					<?php 
echo $ext;
?>
<br/><br/>
					<strong>File size</strong><br/>
					<?php 
echo round($size / 1024) . "KB";
?>
<br/><br/>
					<strong>Rating</strong><br/>
					<span style="color: <?php 
echo getRatingColor($rating);
?>
;"><?php 
echo getRating($rating);
?>
</span>
					<br/><br/>
					<a href="<?php 
echo $source;
?>
" style="font-size: 11pt;"><strong>Source</strong></a><br/>
				</div>
			</div>
			<?php 
$query = "SELECT * FROM image_db WHERE ID=" . $_GET['id'];
$result = mysqli_query($mysqli, $query);
$row = mysqli_fetch_array($result);
?>
			<div class="column2">
开发者ID:HardSkript,项目名称:3_126,代码行数:31,代码来源:edit.php


示例8: getTitle

?>
<div class="wrap">
    <div class="row">
        <div class="col-md-8">
            <img class="img-responsive img-rounded pull-right" src="../images/info_banner_1.jpg" alt="<?php 
getTitle();
?>
">
        </div>
        <div class="col-md-4">
            <h3><?php 
getTitle();
?>
</h3>
            <p>Rating: <?php 
getRating();
?>
 / 10 &nbsp;&nbsp;&nbsp; <?php 
getParentalGuide();
?>
 &nbsp;&nbsp;&nbsp;
                <?php 
if (isset($_SESSION['loggedin'])) {
    ?>
                    <input type="submit" id="favorite" name="favorite" value= <?php 
    echo isset($isFavorite) ? "Unfavorite" : "Favorite";
    ?>
 >
                <?php 
} else {
    ?>
开发者ID:alwill,项目名称:SchoolProjects,代码行数:31,代码来源:info.php


示例9: getRating

     return $sql->fetchColumn();
 }
 function getRating($id)
 {
     $GLOBALS['star']->id = "app-{$id}";
     return $GLOBALS['star']->getRating("", "rate_value");
 }
 $i = 0;
 foreach ($results as $r) {
     $response['apps'][$i] = $r;
     $response['apps'][$i]['author'] = getAuthorName($r['author']);
     $response['apps'][$i]['author_page'] = \Lobby::u("/u/{$r['author']}");
     $response['apps'][$i]['description'] = $Parsedown->text(htmlspecialchars($r['description']));
     $response['apps'][$i]['image'] = L_URL . "/api/app/{$r['id']}/logo";
     $response['apps'][$i]['permalink'] = L_URL . "/apps/{$r['id']}";
     $response['apps'][$i]['rating'] = getRating($r['id']) . "/5";
     $response['apps'][$i]['requires'] = json_decode($r['requires'], true);
     /**
      * If `lobby` param is not present then,
      * client is using Lobby < 0.6
      */
     if (!isset($_POST["lobby"])) {
         $response['apps'][$i]['requires']["lobby"] = array(">=", "0.6");
     }
     /**
      * Recommended : Singular word
      * For versions >=0.7
      */
     $response['apps'][$i]['require'] = $response['apps'][$i]['requires'];
     $response['apps'][$i]['updated'] = strtotime($r['updated']);
     $i++;
开发者ID:LobbyOS,项目名称:server,代码行数:31,代码来源:api.php


示例10: mysqli_query

							</div>	
						</div>
					</div>
				</div>	
			</div>';
}
?>
		<div class="col nine">
			<h2>Previous Sessions</h2>
		</div>
		<?php 
require 'connect_database.php';
for ($i = $current - 1; $i >= 0; $i--) {
    $result = mysqli_query($link, "SELECT * FROM sessions WHERE id='{$id[$i]}'");
    $arr = mysqli_fetch_array($result, MYSQLI_ASSOC);
    $rating = getRating(intval($arr['id']));
    $followers = getFollowers(intval($arr['id']));
    echo '
				<div class="col nine">
					<div class="session clearfix">
						<div class="col two"><img src="' . $arr["poster"] . '" alt="Session Poster"></div>
						<div class="col ten">
							<h2 class="title">' . $arr["Title"] . '</h2>
							<p class="speaker">
								<i class="fa fa-user"></i>
								<span>Speaker:</span>
								' . $arr["speaker"] . '
							</p>
							<p class="where">
								<i class="fa fa-location-arrow"></i>
								<span>Where:</span>
开发者ID:siddhantsomani,项目名称:Techloop,代码行数:31,代码来源:sessions.php


示例11: __construct

 function __construct()
 {
     $pid = $_GET['place_id'];
     $pResult = getPlace($pid);
     if ($pResult != null && mysqli_num_rows($pResult) > 0) {
         $row = mysqli_fetch_assoc($pResult);
         $this->id = $row["Place_ID"];
         $this->title = $row["Title"];
         $this->description = $row["Description"];
         $this->address = $row["Address"];
         $this->picture = "subpages/pictures/places/" . $row["picture"];
         $this->category = $row["Cat_Type"];
     }
     $pResult = getRating($pid);
     if ($pResult != null && mysqli_num_rows($pResult) > 0) {
         $row = mysqli_fetch_assoc($pResult);
         $this->rating = number_format($row["rating"], 1);
     }
 }
开发者ID:Acilyn,项目名称:SyntaxError,代码行数:19,代码来源:sql.php


示例12: getRanking

?>
 <?php 
echo $MSG_LANG['turns'];
?>
</td></tr>
	-->
        <tr>
          <td width="40%" rowspan="2"><div align="center">
              <?php 
echo $_SESSION['playerName'];
?>
        ,
        <?

	    $ranking = getRanking($_SESSION['playerID']);
        $rating = getRating($_SESSION['playerID']);

		if ($CFG_ENABLE_TRIAL_RATING && $rating == 0){
        	$p = mysql_query("select count(*) from games where (whitePlayer='$_SESSION[playerID]' OR blackPlayer='$_SESSION[playerID]') AND (gameMessage='playerResigned' OR gameMessage='checkMate' OR gameMessage='draw')");
			$r = mysql_fetch_array($p);
			$n = 5-$r[0];
			echo "<table style='width: 100%' border='1' style='background:red'><tr><td  style='background:red'>";
		    echo "<font color=white><B>".$MSG_LANG['trialprocess']."</B><BR>";
		    echo str_replace("%n",$n,$MSG_LANG['trialmessage']);
		    echo "</font>";
		    echo "</td></tr></table>";
		}
		else
	        echo $MSG_LANG["yourrating"].": <B>$rating</b> ".$MSG_LANG["yourranking"].": <B>$ranking</B><BR>";

        echo "</P>";
开发者ID:BackupTheBerlios,项目名称:freechess-svn,代码行数:31,代码来源:header.inc.php


示例13: pullRating

function pullRating($media, $id, $show5 = false, $showPerc = false, $showVotes = false, $static = NULL)
{
    $sql = "SELECT * FROM media_rating WHERE media_id = '{$id}' AND media_type = '{$media}' AND user_id = '{$user}'";
    $query = @mysql_query($sql);
    $count = @mysql_num_rows($query);
    if ($count > 0) {
        $msg = " --  You have voted all ready!";
        exit;
        $text = '';
        if ($show5 || $showPerc || $showVotes) {
            $text .= '<div class="rated_text">';
        }
        if ($show5) {
            $text .= '<b>Rated:&nbsp;</b><span id="outOfFive_' . $id . '" class="out5Class">' . outOfFive($id) . '</span>/5';
        }
        if ($showPerc) {
            $text .= '(<span id="percentage_' . $id . '" class="percentClass">' . getRating($media, $id) . '</span>)';
        }
        if ($showVotes) {
            $text .= '(<span id="showvotes_' . $id . '" class="votesClass">' . getVotes($media, $id) . '</span>)';
        }
        if ($show5 || $showPerc || $showVotes) {
            $text .= '';
        }
        return $text . '
		  <span class="inline-rating">
			<ul class="star-rating2" id="rater_' . $id . '">
			<li class="current-rating" style="width:' . getRating($media, $id) . ';" id="ul_' . $id . '"></li>
			<li><a onclick="return false;" title="1 star out of 5 ' . $msg . '" class="one-star">1</a></li>
			<li><a onclick="return false;" title="2 stars out of 5 ' . $msg . '" class="two-stars">2</a></li>
			<li><a onclick="return false;" title="3 stars out of 5 ' . $msg . '" class="three-stars">3</a></li>
			<li><a onclick="return false;" title="4 stars out of 5 ' . $msg . '" class="four-stars">4</a></li>
			<li><a onclick="return false;" title="5 stars out of 5 ' . $msg . '" class="five-stars">5</a></li>
			</ul>
		  </span>
			</div>
			<div id="loading_' . $id . '"></div>';
        exit;
    } else {
        $sel = mysql_query("SELECT user_id FROM media_rating WHERE IP = '" . $_SERVER['REMOTE_ADDR'] . "' AND media_type = '{$media}' AND media_id = '{$id}'");
        if (mysql_num_rows($sel) > 0 || $static == 'novote' || $_COOKIE['has_voted_' . $media . '_' . $id]) {
            if ($static == 'novote') {
                $msg = " Please Login to vote";
                $text = '';
            } else {
                $msg = " --  You have voted for this item";
                $text = '';
            }
            if ($show5 || $showPerc || $showVotes) {
                $text .= '<div class="rated_text">';
            }
            if ($show5) {
                $text .= '<b>Rated:&nbsp;</b> <span id="outOfFive_' . $id . '" class="out5Class">' . outOfFive($media, $id) . '</span>/5';
            }
            if ($showPerc) {
                $text .= ' (<span id="percentage_' . $id . '" class="percentClass">' . getRating($media, $id) . '</span>)';
            }
            if ($showVotes) {
                $text .= ' (<span id="showvotes_' . $id . '" class="votesClass">' . getVotes($media, $id) . '</span>)';
            }
            if ($show5 || $showPerc || $showVotes) {
                $text .= '';
            }
            return $text . '
			<span class="inline-rating">
			<ul class="star-rating2" id="rater_' . $id . '">
				<li class="current-rating" style="width:' . getRating($media, $id) . ';" id="ul_' . $id . '"></li>
				<li><a onclick="return false;" title="1 star out of 5 ' . $msg . '" class="one-star">1</a></li>
				<li><a onclick="return false;" title="2 stars out of 5 ' . $msg . '" class="two-stars">2</a></li>
				<li><a onclick="return false;" title="3 stars out of 5 ' . $msg . '" class="three-stars">3</a></li>
				<li><a onclick="return false;" title="4 stars out of 5 ' . $msg . '" class="four-stars">4</a></li>
				<li><a onclick="return false;" title="5 stars out of 5 ' . $msg . '" class="five-stars">5</a></li>
			</ul>
			</span>
			</div>
			<div id="loading_' . $id . '"></div>';
        } else {
            if ($show5 || $showPerc || $showVotes) {
                $text .= '<div class="rated_text">';
            }
            if ($show5) {
                $show5bool = 'true';
                $text .= '<b>Rated:&nbsp;</b><span id="outOfFive_' . $id . '" class="out5Class">' . outOfFive($media, $id) . '</span>/5';
            } else {
                $show5bool = 'false';
            }
            if ($showPerc) {
                $showPercbool = 'true';
                $text .= ' (<span id="percentage_' . $id . '" class="percentClass">' . getRating($media, $id) . '</span>)';
            } else {
                $showPercbool = 'false';
            }
            if ($showVotes) {
                $showVotesbool = 'true';
                $text .= ' (<span id="showvotes_' . $id . '" class="votesClass">' . getVotes($media, $id) . '</span>)';
            } else {
                $showVotesbool = 'false';
            }
            if ($show5 || $showPerc || $showVotes) {
                $text .= '';
//.........这里部分代码省略.........
开发者ID:tssgery,项目名称:phpmotion,代码行数:101,代码来源:functions.inc.php


示例14: file_get_contents

 $c_host = $databaselocation;
 $c_user = $databaseuser;
 $c_pass = $databasepass;
 $c_db = $databasename;
 $username = $_SESSION["username"];
 $html = file_get_contents("index.html");
 $html = str_replace("{USERNAME}", $username, $html);
 $user = $_SESSION["userid"];
 $premium = $_SESSION["premium"];
 $locales = getLocales($user);
 $html_locales = "";
 $contador = 0;
 $contador_locales = 0;
 foreach ($locales as $local) {
     $contador_locales++;
     $rating = getRating($local->id);
     $norating = 5 - $rating;
     $stars = "";
     for ($i = 0; $i < $rating; $i++) {
         $stars .= "<span class='glyphicon glyphicon-star' aria-hidden='true' style='color:yellow;'></span>";
     }
     for ($i = 0; $i < $norating; $i++) {
         $stars .= "<span class='glyphicon glyphicon-star' aria-hidden='true' style='color:gray;'></span>";
     }
     if ($local->activo == 1) {
         $estado = "<span class='glyphicon glyphicon-ok' aria-hidden='true' style='color:green;'></span>";
     } else {
         $estado = "<span class='glyphicon glyphicon-remove' aria-hidden='true' style='color:red;'></span>";
     }
     $acciones = "<a href='update-shop.php?local=" . $local->id . "'><span class='glyphicon glyphicon-cog' aria-hidden='true'></span></a>&nbsp;" . "<a href='#deleteDialogBox' onclick='deleteDialogBox(" . $local->id . ", \"" . utf8_encode($local->nombre) . "\"); return false;'><span class='glyphicon glyphicon-remove' aria-hidden='true'></span></a>";
     $html_locales .= "<tr><td>" . ++$contador . "</td><td>" . utf8_encode($local->nombre) . "</td><td>" . $estado . "</td><td>" . $stars . "</td><td>" . $acciones . "</td></tr>";
开发者ID:sebastian-aranda,项目名称:helpycar-webpage,代码行数:31,代码来源:index.php


示例15: getRating

    $flagFall = $row['flagFall'];
    $oficial = $row['oficial'];
	$teamMatch = $row['teamMatch'];

	if ($row['whitePlayer'] == $_SESSION['playerID'])
	{
		$MyRating = getRating($row['whitePlayer']);
		$OpponentRating = getRating($row['blackPlayer']);
		$MyPV = $row['PVWhite'];
		$OpponentPV = $row['PVBlack'];
		
	}
	else
	{
		$MyRating = getRating($row['blackPlayer']);
		$OpponentRating = getRating($row['whitePlayer']);
		$MyPV = $row['PVBlack'];
		$OpponentPV = $row['PVWhite'];

	}

	processMessages();

    /* Verify permission */
    if (!isBoardDisabled()){
        if (($white != $_SESSION['playerID']) && ($black != $_SESSION['playerID']))
            die($MSG_LANG["youdonthavepermission"]);
    }

        if (($numMoves == -1) || ($numMoves % 2 == 1)){
			$mycolor2 = "white";
开发者ID:BackupTheBerlios,项目名称:freechess-svn,代码行数:31,代码来源:chesstraning.php


示例16: getCommentCount

        if ($_zp_current_image->getCommentsAllowed() && getCommentCount() > 0) {
            ?>
									<div class="image-cr"><i class="fa fa-comments"></i><span> <?php 
            echo getCommentCount();
            ?>
</span></div>
									<?php 
        }
    }
    ?>
								<?php 
    if (function_exists('getRating')) {
        if (getRating($_zp_current_image)) {
            ?>
								<div class="image-cr"><i class="fa fa-star"></i><span> <?php 
            echo getRating($_zp_current_image);
            ?>
</span></div>
								<?php 
        }
    }
    ?>
							</div>
							<i class="fa fa-angle-up mobile-click-details"></i>
						</div>
						<?php 
}
?>
					</div>
				
					<?php 
开发者ID:ckfreeman,项目名称:libratus,代码行数:31,代码来源:album.php


示例17: getBuyer

function getBuyer($buyer_id = null)
{
    $qry = 'SELECT * FROM mm_buyers WHERE ';
    if (!empty($buyer_id)) {
        $qry .= "user_id='" . mysql_escape_string($buyer_id) . "' AND ";
    }
    $qry .= '(';
    $qry .= 'flag_mercoxit OR ';
    $qry .= 'flag_arkonor OR ';
    $qry .= 'flag_bistot OR ';
    $qry .= 'flag_spodumain OR ';
    $qry .= 'flag_crokite OR ';
    $qry .= 'flag_darkochre  OR ';
    $qry .= 'flag_gneiss OR ';
    $qry .= 'flag_hedbergite OR ';
    $qry .= 'flag_hemorphite OR ';
    $qry .= 'flag_jaspet OR ';
    $qry .= 'flag_kernite OR ';
    $qry .= 'flag_omber OR ';
    $qry .= 'flag_plagioclase OR ';
    $qry .= 'flag_pyroxeres OR ';
    $qry .= 'flag_scordite OR ';
    $qry .= 'flag_veldspar OR ';
    $qry .= 'flag_isogen OR ';
    $qry .= 'flag_megacyte OR ';
    $qry .= 'flag_mexallon OR ';
    $qry .= 'flag_morphite OR ';
    $qry .= 'flag_nocxium OR ';
    $qry .= 'flag_pyerite OR ';
    $qry .= 'flag_tritanium OR ';
    $qry .= 'flag_zydrine';
    $qry .= ') AND ';
    $qry .= '1=1 ORDER BY region, date_created DESC';
    //	echo $qry;
    $results = mysql_query($qry);
    $buyers = _toarray($results);
    $cnt = 0;
    foreach ($buyers as $buyer) {
        $buyers[$cnt]['Rating'] = array();
        $buyers[$cnt]['Rating'] = getRating($buyer['user_id']);
        //		$buyers[$cnt]['RatingViewers'] = getRating($buyer['user_id'],$_REQUEST['viewer_id']);
        $cnt++;
    }
    return $buyers;
}
开发者ID:Jadeon,项目名称:eve-mine-manager,代码行数:45,代码来源:mm.php


示例18: getDriverThreshold

}
function getDriverThreshold($fid)
{
    //取司機門檻
    $sql = "SELECT `threshold` FROM `receiver` WHERE `aid` = '{$fid}'";
    $result = mysql_query($sql);
    $i = mysql_fetch_array($result);
    return $i[0];
}
//if($selection === 'passenger'){//requester
$sql = "SELECT `receiver`.`aid` FROM `receiver`,`account` WHERE `account`.`rating` >= '{$threshold}' and `account`.`aid`=`receiver`.`aid` and `seat` != '0'";
//篩選乘客評價門檻
$result = mysql_query($sql);
//司機評價符合乘客門檻
$driver_num = mysql_num_rows($result);
$resarr = array();
$count = 0;
for ($i = 0; $i < $driver_num; $i++) {
    $res = mysql_result($result, $i);
    if (getDriverThreshold($res) <= getRating($id)) {
        //乘客評價符合司機門檻
        $resarr[$count] = $res;
        $count++;
    }
}
echo json_encode($resarr);
//}
?>


开发者ID:s8w1e2ep,项目名称:newCarpool,代码行数:28,代码来源:filter2.php


示例19: mysql_query

		$jt = mysql_query("SELECT * FROM team_members WHERE fk_player='$_SESSION[playerID]'");
		$num_rows = mysql_fetch_array($jt);

		if ($num_rows =="0"){
?>
<form name="thisteam" action="teams.php" method="post">

<?
if ($_POST['action'])
	$action = $_POST['action'];
else if ($_GET['action'])
	$action = $_GET['action'];

if ($action == 'choose'){

	mysql_query("INSERT INTO team_members (fk_player,fk_team,date,init_rating,level) VALUES ('$_SESSION[playerID]','$_POST[teamid]','".time()."','".getRating($_SESSION[playerID])."','0')");
	echo "<script>window.location='teams.php'</script>";

}

?>
		<input type='hidden' name='action' value='choose'>
		<input type='hidden' name='teamid' value='<?php 
echo $tm[teamID];
?>
'>
	<input style='cursor: hand' type=submit value='<?php 
echo $MSG_LANG['asktojoin'];
?>
'>
</form>
开发者ID:BackupTheBerlios,项目名称:freechess-svn,代码行数:31,代码来源:teams_all.php


示例20: getRating

                                                    </div>
                                                </div>
                                                <img src="./img/4.jpg" alt="">
                                            </a>
                                        </div>
                                        <div class="wrapper">
                                            <a href="http://www.yelp.com/biz/joes-shanghai-flushing" target="_blank"><h3>Joe’s Shanghai</h3></a>
                                            <figure>136-21 37th Avenue</figure>
                                            <div class="info">
                                                <div class="type">
                                                    <i><img src="./img/restaurant.png" alt=""></i>
                                                    <span>Restaurant</span>
                                                </div>
                                                <div class="type">
                                                    <i><?php 
echo getRating('joes-shanghai-flushing');
?>
</i>
                                                </div>
                                                <div class="type">
                                                    <i><?php 
echo getRatingCount('joes-shanghai-flushing');
?>
</i>
                                                </div>
                                            </div>
                                        </div>
                                </div>
                            </div>
                                <!-- /.item-->
                                <!-- /.item-->
开发者ID:haijunsu,项目名称:Flushing-Underground-Map,代码行数:31,代码来源:index.php



注:本文中的getRating函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getRawFooter函数代码示例发布时间:2022-05-15
下一篇:
PHP getRate函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap