Example #1
0
<thead>
<tr>
  <th style="width:18px">&nbsp;</td>
  <th class="col">{$string['standardsetter']}</th>
  <th class="{sorter: 'datetime'} col">{$string['date']}</th>
  <th class="col">{$string['passscore']}</th>
  <th class="col">{$string['distinction']}</th>
  <th class="col">{$string['reviewmarks']}</th>
  <th class="col">{$string['papertotal']}</th>
  <th class="col">{$string['method']}</th>
</tr>
</thead>
<tbody>
TABLEHEADER;
$no_reviews = 0;
$reviews = get_reviews($mysqli, 'index', $paperID, $total_mark, $no_reviews);
foreach ($reviews as $review) {
    $reviews_html .= displayReview($review, $userObject);
    if ($review['method'] != 'Hofstee') {
        updateDB($review, $mysqli);
    }
}
require '../include/std_set_menu.inc';
require '../include/toprightmenu.inc';
echo draw_toprightmenu(97);
?>
<div id="content">
<?php 
echo $reviews_html;
$mysqli->close();
?>
Example #2
0
         $update->execute();
         $update->close();
     }
     $result->close();
     $mysqli->commit();
     echo "<li>Updating standard_setting values in the properties table</li>\n";
     ob_flush();
     flush();
     // Call the standard_setting list page to populate the results in std_set table.
     $result = $mysqli->prepare("SELECT DISTINCT property_id, total_mark FROM properties WHERE marking LIKE '2,%'");
     $result->execute();
     $result->store_result();
     $result->bind_result($property_id, $total_mark);
     while ($result->fetch()) {
         $no_reviews = 0;
         $reviews = get_reviews($mysqli, 'index', $property_id, $total_mark, $no_reviews);
         foreach ($reviews as $review) {
             if ($review['method'] != 'Hofstee') {
                 updateDB($review, $mysqli);
             }
         }
     }
     $result->close();
 }
 // 04/07/2013 (cczsa1) - enhanced question type config
 $new_lines = array("\n// Enhanced Calculation question config\n", "\$enhancedcalculation = array('host' => 'localhost', 'port'=>6311,'timeout'=>5); //default enhancedcalc Rserve config options\n", "//but use phpEval as default for enhanced calculation questions\n", "\$enhancedcalc_type = 'phpEval'; //set the enhanced calculation to use php for maths \n", "\$enhancedcalculation = array(); //no config options for phpEval enhancedcalc plugin");
 $target_line = '$cfg_password_expire';
 $updater_utils->add_line($string, '$enhancedcalculation', $new_lines, 80, $cfg_web_root, $target_line, 1);
 // 04/07/2013 (cczsa1) - add new field to logs to indicate an error state
 if (!$updater_utils->does_column_exist('log0', 'errorstate')) {
     $updater_utils->execute_query("ALTER TABLE log0 ADD COLUMN errorstate tinyint unsigned NOT NULL DEFAULT '0' AFTER user_answer", true);
<?php

$reviews = get_reviews($pdo);
if ($reviews != "Отзывов  нет") {
    $counter = 1;
    foreach ($reviews as $row) {
        if ($counter == 1) {
            $html .= "<div class=\"action-content-block\">";
        }
        $html .= "<div class=\"container_admin\">" . "<h4>" . $row['fio'] . "</h4>" . "<p>Почта: " . $row['email'] . "</p>" . "<p>Текст отзыва: " . $row['text'] . "</p>" . "<p>Оценка: " . $row['mark'] . "</p>" . "<p>Дата размещения: " . $row['date'] . "</p>" . "<p><a href=" . $server_name . "/tech/includes/admin/reviews/addreview_modded.php?id=" . $row['id'] . ">Разрешить на публикацию</a></p>" . "<p><a href=" . $server_name . "/tech/includes/admin/reviews/deletereviews.php?id=" . $row['id'] . ">Удалить отзыв</a></p></div>";
        //итераци¤ счетчика
        $counter++;
        //если счетчик равен 6, то блок контента завершаетс¤? а счетчик сбрасываетс¤ до единицы
        if ($counter == 6) {
            $html .= "</div>";
            $counter = 1;
        }
    }
    // если мы не сбросили счетчик - закроем последний див
    if ($counter != 1) {
        $html .= "</div>";
    }
} else {
    $html = "Отзывов  нет";
}
echo $html;
// очищаем переменные
$html = "";
?>
<div id="action-page-selection"></div>
Example #4
0
/**
 * Gets a release from the database by the release's slug.
 *
 * @author Alex Andrews <*****@*****.**>
 * @param int $release_id The slug of the release.
 * @param bool $tracks If true add the tracks to our release.
 * @param bool $reviews If true add reviews of the release to it.
 * @return array Associative array with data about the release.
 */
function get_release_by_slug($release_slug, $tracks = true, $reviews = true)
{
    global $wpdb;
    $now_date = gmdate('Y-m-d');
    $query = "SELECT * FROM {$wpdb->ribcage_releases} WHERE release_slug = '{$release_slug}' AND release_date <= '{$now_date}'";
    if ($wpdb->query($query) == false or $wpdb->query($query) == 0) {
        return new WP_Error('ribcage-release-not-found', __("We can't find a release with {$release_slug}."));
    }
    $return = $wpdb->get_row($query, ARRAY_A);
    if ($tracks == true) {
        $return['release_tracks'] = get_tracks($return['release_id']);
    }
    if ($reviews == true) {
        $return['release_reviews'] = get_reviews($return['release_id']);
    }
    return $return;
}
Example #5
0
<?php

require_once 'functions/reviews.php';
$name = explode("/", $_GET['img_name']);
$name = $name[1];
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8"/>
    <title>Photo</title>
</head>
<body style="text-align:center;">
    <img src="<?php 
echo $_GET['img_name'];
?>
" width="70%" />
    <p>Количество просмотров: <?php 
echo get_reviews($name);
?>
</p>
</body>
</html>

<?php 
review_plus($name);
Example #6
0
	<th style="width:15%"><?php 
echo $string['date'];
?>
&nbsp;</th>
	<th style="width:8%"><?php 
echo $string['passscore'];
?>
</th>
	<th><?php 
echo $string['method'];
?>
</th>
	<th style="width:25%"></th>
</tr>
<?php 
$reviews = get_reviews($mysqli, 'group', $paperID, $propertyObj->get_total_mark());
$line_no = 0;
foreach ($reviews as $review) {
    $line_no++;
    if ($review['group_review'] == 'No') {
        echo "<tr><td align=\"center\"><input type=\"checkbox\" name=\"member{$line_no}\" value=\"{$review['std_setID']}\" checked=\"checked\" /></td><td>{$review['name']}</td><td>{$review['display_date']}</td><td style=\"text-align:right\">{$review['pass_score']}%&nbsp;</td><td>{$review['method']}</td><td></td></tr>\n";
    }
}
$mysqli->close();
echo "<table>\n";
?>
<input type="hidden" name="paperID" value="<?php 
echo $paperID;
?>
" />
<input type="hidden" name="module" value="<?php 
          <div class="row-fluid">
            <div class="well">
              <h4>Risk ID: <?php 
echo $id;
?>
</h4>
              <h4>Subject: <?php 
echo $subject;
?>
</h4>
              <h4>Status: <?php 
echo $status;
?>
</h4>
            </div>
          </div>
          <div class="row-fluid">
            <div class="well">
              <h4>Review History</h4>
              <?php 
get_reviews($id);
?>
            </div>
          </div>
        </div>
      </div>
    </div>
  </body>

</html>
Example #8
0
<?php

$productId = get_the_id();
$reviews = get_reviews($productId);
?>

<?php 
if (isset($reviews) && $reviews) {
    ?>

<dl class="accordion product-reviews">
  <dt class="accordion-heading">Reviews <i class="fa fa-chevron-right"></i></dt>
  <dd class="accordion-content">
    <?php 
    if (isset($reviews) && $reviews) {
        ?>
      <ul class="reviews-list">
        <?php 
        foreach ($reviews as $review => $reviewId) {
            ?>
          <li>
            <dl>
              <dt class="review-wine">
                <?php 
            the_field('reviews_organization', $reviewId);
            ?>
                <?php 
            if (get_field('reviews_score', $reviewId)) {
                ?>
                  <small class="review-score">
                    <?php 
Example #9
0
function get_release_by_slug($release_slug, $tracks = true, $reviews = true)
{
    global $wpdb;
    $now_date = gmdate('Y-m-d');
    $return = $wpdb->get_row("SELECT * FROM {$wpdb->ribcage_releases} WHERE release_slug = '{$release_slug}' AND release_date <= '{$now_date}'", ARRAY_A);
    if ($tracks == true) {
        $return['release_tracks'] = get_tracks($return['release_id']);
    }
    if ($reviews == true) {
        $return['release_reviews'] = get_reviews($return['release_id']);
    }
    return $return;
}