Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
graph.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <div class="dashboard-diagram">
11  <div class="dashboard-diagram-switcher">
12  <label for="order_<?= $block->getHtmlId() ?>_period"
13  class="label"><?= /* @escapeNotVerified */ __('Select Range:') ?></label>
14  <select name="period" id="order_<?= $block->getHtmlId() ?>_period"
15  onchange="changeDiagramsPeriod(this);" class="admin__control-select">
16  <?php foreach ($this->helper('Magento\Backend\Helper\Dashboard\Data')->getDatePeriods() as $value => $label): ?>
17  <?php if (in_array($value, ['custom'])) {
18  continue;
19  } ?>
20  <option value="<?= /* @escapeNotVerified */ $value ?>"
21  <?php if ($block->getRequest()->getParam('period') == $value): ?> selected="selected"<?php endif; ?>
22  ><?= /* @escapeNotVerified */ $label ?></option>
23  <?php endforeach; ?>
24  </select>
25  </div>
26  <?php if ($block->getCount()): ?>
27  <div class="dashboard-diagram-image">
28  <img src="<?= /* @escapeNotVerified */ $block->getChartUrl(false) ?>" class="dashboard-diagram-chart" alt="Chart" title="Chart" />
29  </div>
30  <?php else: ?>
31  <div class="dashboard-diagram-nodata">
32  <span><?= /* @escapeNotVerified */ __('No Data Found') ?></span>
33  </div>
34  <?php endif; ?>
35 </div>
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
Definition: block.php:9
if( $block->getCount())(false) ?>" class endif
Definition: graph.phtml:32
__()
Definition: __.php:13
$block
Definition: block.php:8
$label
Definition: details.phtml:21
$value
Definition: gender.phtml:16
foreach( $this->helper( 'Magento\Backend\Helper\Dashboard\Data') ->getDatePeriods() as $value=> $label)(in_array($value, ['custom'])) if($block->getRequest() ->getParam('period')==$value) endforeach
Definition: graph.phtml:22