Beispiel #1
0
    }
    echo '      </a>
                </th>
                <th></th>
              </tr>';
    if ($this->graphStyle == 'relative') {
        $graphTotalCount = $valuesMax;
    } else {
        $graphTotalCount = $valuesCount;
    }
    foreach ($this->categoriesArr as $category) {
        echo '<tr>
                <td class="orderTd">' . htmlspecialchars($category['order'] . '.') . '</td>
                <td class="valueTd">' . htmlspecialchars($category['name']) . '</td>
                <td class="countTd">' . $category['frequency'] . '</td>
                <td class="percTd">';
        $procent = getGaugeWidth($category['frequency'], $valuesCount);
        echo $procent . '%';
        echo '  </td>
                <td class="graphTd">
                  <div style="width:' . getGaugeWidth($category['frequency'], $graphTotalCount) . '%;"></div>
                </td>
              </tr>';
    }
    echo '</table>';
    echo '</div>';
    /*--vypsani jednotlivych hodnot*/
} else {
    echo '<div class="noValuesDiv">' . JText::_('NO_CATEGORIES_FOUND_IN_THIS_ATTRIBUTE') . '</div>';
}
echo '</div>';
Beispiel #2
0
                <a href="' . JRoute::_('index.php?option=com_dbconnect&controller=izi&task=previewColumn&tmpl=component&kbi=' . $this->kbiId . '&col=' . $this->columnName) . '&graph=' . $this->graphStyle . '&order=pocet' . ($this->order == 'pocet' ? '/desc' : '') . '">' . JText::_('PERC');
if ($this->order == 'pocet') {
    echo '<span class="order">&uarr;</span>';
} elseif ($this->order == 'pocet/desc') {
    echo '<span class="order">&darr;</span>';
}
echo '      </a>
              </th>
              <th></th>
            </tr>';
if ($this->graphStyle == 'relative') {
    $graphTotalCount = $valuesMax;
} else {
    $graphTotalCount = $valuesCount;
}
foreach ($this->values as $valueRow) {
    echo '<tr>
              <td class="valueTd">' . htmlspecialchars($valueRow['hodnota']) . '</td>
              <td class="countTd">' . $valueRow['pocet'] . '</td>
              <td class="percTd">';
    $procent = getGaugeWidth($valueRow['pocet'], $valuesCount);
    echo $procent . '%';
    echo '  </td>
              <td class="graphTd">
                <div style="width:' . getGaugeWidth($valueRow['pocet'], $graphTotalCount) . '%;"></div>
              </td>
            </tr>';
}
echo '</table>';
echo '</div>';
echo '</div>';
Beispiel #3
0
echo '<a href="#" onclick="parent.close();" class="backButton">' . JText::_('CLOSE') . '</a>';
echo '<div id="izipreviewcolumnDiv">';
echo '<h1>' . $this->columnName . '</h1>';
$valuesCount = 0;
foreach ($this->values as $valueRow) {
    $valuesCount += $valueRow['pocet'];
}
echo '<div id="previewDiv">';
echo '<table>
            <tr>
              <th>' . JText::_('VALUE') . '</th>
              <th>' . JText::_('COUNT') . '</th>
              <th>' . JText::_('PERC') . '</th>
              <th></th>
            </tr>';
foreach ($this->values as $valueRow) {
    echo '<tr>
              <td class="valueTd">' . htmlspecialchars($valueRow['hodnota']) . '</td>
              <td class="countTd">' . $valueRow['pocet'] . '</td>
              <td class="percTd">';
    $procent = getGaugeWidth($valueRow['pocet'], $valuesCount);
    echo $procent . '%';
    echo '  </td>
              <td class="graphTd">
                <div style="width:' . $procent . '%;"></div>
              </td>
            </tr>';
}
echo '</table>';
echo '</div>';
echo '</div>';