Exemple #1
0
<div class="graph_collection">
  <div class="market-data">
  <?php 
$graph = array('graph_type' => "average_" . $currency1 . $currency2 . "_markets", 'width' => 4, 'height' => 2, 'page_order' => 0, 'days' => 90, 'id' => $graph_id++, 'public' => true, 'delta' => "", 'no_technicals' => true, "arg0" => true);
?>
  <?php 
render_graph_new($graph, true);
?>
  </div>

  <?php 
$graph = array('graph_type' => "average_" . $currency1 . $currency2 . "_daily", 'width' => 4, 'height' => 2, 'page_order' => 0, 'days' => 90, 'id' => $graph_id++, 'public' => true, 'delta' => "", 'no_technicals' => true, "arg0" => true);
?>
  <?php 
render_graph_new($graph, true);
?>
</div>

<?php 
$all_main_currencies = array();
foreach ($pairs as $pair) {
    $all_main_currencies[$pair['currency1']] = $pair['currency1'];
}
?>

<div class="currencies">
  <h2><?php 
echo ht("Other market averages");
?>
</h2>
  <h1><?php 
echo ht("External API Status: :api_title", array(':api_title' => $api_title));
?>
</h1>

  <p class="backlink">
    <a href="<?php 
echo htmlspecialchars(url_for('external'));
?>
"><?php 
echo ht("< Back to External API Status");
?>
</a>
  </p>

  <p>
    <?php 
/* TODO maybe add a link here, e.g. [BTC-E] ticker. TODO 'premium' should be labelled internal, not external */
?>
    <?php 
echo t("This graph displays the status of the external :api_title, in terms of how many\n    tasks were successful (in percent).", array(':api_title' => htmlspecialchars($api_title)));
?>
  </p>

  <div class="graph_collection">
    <?php 
render_graph_new($graph);
?>
  </div>
<?php 
page_footer();