本文整理汇总了PHP中OSC\OM\HTML::selectField方法的典型用法代码示例。如果您正苦于以下问题:PHP HTML::selectField方法的具体用法?PHP HTML::selectField怎么用?PHP HTML::selectField使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OSC\OM\HTML
的用法示例。
在下文中一共展示了HTML::selectField方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getData
function getData()
{
global $request_type, $oscTemplate;
$OSCOM_Db = Registry::get('Db');
$data = '';
$Qmanufacturers = $OSCOM_Db->query('select manufacturers_id, manufacturers_name from :table_manufacturers order by manufacturers_name');
$manufacturers = $Qmanufacturers->fetchAll();
if (!empty($manufacturers)) {
if (count($manufacturers) <= MAX_DISPLAY_MANUFACTURERS_IN_A_LIST) {
// Display a list
$manufacturers_list = '<ul class="nav nav-pills nav-stacked">';
foreach ($manufacturers as $m) {
$manufacturers_name = strlen($m['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN ? substr($m['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $m['manufacturers_name'];
if (isset($_GET['manufacturers_id']) && $_GET['manufacturers_id'] == $m['manufacturers_id']) {
$manufacturers_name = '<strong>' . $manufacturers_name . '</strong>';
}
$manufacturers_list .= '<li><a href="' . OSCOM::link('index.php', 'manufacturers_id=' . (int) $m['manufacturers_id']) . '">' . $manufacturers_name . '</a></li>';
}
$manufacturers_list .= '</ul>';
$data = $manufacturers_list;
} else {
// Display a drop-down
$manufacturers_array = array();
if (MAX_MANUFACTURERS_LIST < 2) {
$manufacturers_array[] = array('id' => '', 'text' => PULL_DOWN_DEFAULT);
}
foreach ($manufacturers as $m) {
$manufacturers_name = strlen($m['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN ? substr($m['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $m['manufacturers_name'];
$manufacturers_array[] = array('id' => $m['manufacturers_id'], 'text' => $manufacturers_name);
}
$data = HTML::form('manufacturers', OSCOM::link('index.php', '', $request_type, false), 'get', null, ['session_id' => true]) . HTML::selectField('manufacturers_id', $manufacturers_array, isset($_GET['manufacturers_id']) ? $_GET['manufacturers_id'] : '', 'onchange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '"') . '</form>';
}
}
return $data;
}
示例2: mover
function choose_audience()
{
$OSCOM_Db = Registry::get('Db');
$OSCOM_Language = Registry::get('Language');
$products_array = [];
$Qproducts = $OSCOM_Db->get(['products p', 'products_description pd'], ['pd.products_id', 'pd.products_name'], ['pd.language_id' => $OSCOM_Language->getId(), 'pd.products_id' => ['rel' => 'p.products_id'], 'p.products_status' => '1'], 'pd.products_name');
while ($Qproducts->fetch()) {
$products_array[] = ['id' => $Qproducts->valueInt('products_id'), 'text' => $Qproducts->value('products_name')];
}
$choose_audience_string = '<script type="text/javascript"><!--
function mover(move) {
if (move == \'remove\') {
for (x=0; x<(document.notifications.products.length); x++) {
if (document.notifications.products.options[x].selected) {
with(document.notifications.elements[\'chosen[]\']) {
options[options.length] = new Option(document.notifications.products.options[x].text,document.notifications.products.options[x].value);
}
document.notifications.products.options[x] = null;
x = -1;
}
}
}
if (move == \'add\') {
for (x=0; x<(document.notifications.elements[\'chosen[]\'].length); x++) {
if (document.notifications.elements[\'chosen[]\'].options[x].selected) {
with(document.notifications.products) {
options[options.length] = new Option(document.notifications.elements[\'chosen[]\'].options[x].text,document.notifications.elements[\'chosen[]\'].options[x].value);
}
document.notifications.elements[\'chosen[]\'].options[x] = null;
x = -1;
}
}
}
return true;
}
function selectAll(FormName, SelectBox) {
temp = "document." + FormName + ".elements[\'" + SelectBox + "\']";
Source = eval(temp);
for (x=0; x<(Source.length); x++) {
Source.options[x].selected = "true";
}
if (x<1) {
alert(\'' . OSCOM::getDef('js_please_select_products') . '\');
return false;
} else {
return true;
}
}
//--></script>';
$global_button = HTML::button(OSCOM::getDef('button_global'), 'fa fa-globe', OSCOM::link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm&global=true'));
$cancel_button = HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID']));
$choose_audience_string .= '<form name="notifications" action="' . OSCOM::link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm') . '" method="post" onsubmit="return selectAll(\'notifications\', \'chosen[]\')"><table border="0" width="100%" cellspacing="0" cellpadding="2">' . "\n" . ' <tr>' . "\n" . ' <td align="center" class="smallText"><strong>' . OSCOM::getDef('text_products') . '</strong><br />' . HTML::selectField('products', $products_array, '', 'size="20" style="width: 20em;" multiple') . '</td>' . "\n" . ' <td align="center" class="smallText"> <br />' . $global_button . '<br /><br /><br /><input type="button" value="' . OSCOM::getDef('button_select') . '" style="width: 8em;" onClick="mover(\'remove\');"><br /><br /><input type="button" value="' . OSCOM::getDef('button_unselect') . '" style="width: 8em;" onClick="mover(\'add\');"><br /><br /><br />' . HTML::button(OSCOM::getDef('image_send'), 'fa fa-envelope') . '<br /><br />' . $cancel_button . '</td>' . "\n" . ' <td align="center" class="smallText"><strong>' . OSCOM::getDef('text_selected_products') . '</strong><br />' . HTML::selectField('chosen[]', array(), '', 'size="20" style="width: 20em;" multiple') . '</td>' . "\n" . ' </tr>' . "\n" . '</table></form>';
return $choose_audience_string;
}
示例3: getBannerGroupSelection
public static function getBannerGroupSelection($value, $key = '')
{
$OSCOM_Db = Registry::get('Db');
$name = !empty($key) ? 'configuration[' . $key . ']' : 'configuration_value';
$groups = [['id' => '', 'text' => '--None--']];
$Qgroups = $OSCOM_Db->query('select distinct banners_group from :table_banners order by banners_group');
while ($Qgroups->fetch()) {
$groups[] = ['id' => $Qgroups->value('banners_group'), 'text' => $Qgroups->value('banners_group')];
}
return HTML::selectField($name, $groups, $value);
}
示例4: execute
function execute()
{
global $PHP_SELF, $currencies, $oscTemplate;
if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
if (isset($currencies) && is_object($currencies) && count($currencies->currencies) > 1) {
reset($currencies->currencies);
$currencies_array = array();
foreach ($currencies->currencies as $key => $value) {
$currencies_array[] = array('id' => $key, 'text' => $value['title']);
}
$hidden_get_variables = '';
foreach ($_GET as $key => $value) {
if (is_string($value) && $key != 'currency' && $key != session_name() && $key != 'x' && $key != 'y') {
$hidden_get_variables .= HTML::hiddenField($key, $value);
}
}
$form_output = HTML::form('currencies', OSCOM::link($PHP_SELF, '', false), 'get', null, ['session_id' => true]) . HTML::selectField('currency', $currencies_array, $_SESSION['currency'], 'onchange="this.form.submit();"') . $hidden_get_variables . '</form>';
ob_start();
include 'includes/modules/boxes/templates/currencies.php';
$data = ob_get_clean();
$oscTemplate->addBlock($data, $this->group);
}
}
}
示例5:
<tr>
<td class="main"><?php
echo OSCOM::getDef('entry_newsletter');
?>
</td>
<td class="main">
<?php
if ($processed == true) {
if ($cInfo->customers_newsletter == '1') {
echo OSCOM::getDef('entry_newsletter_yes');
} else {
echo OSCOM::getDef('entry_newsletter_no');
}
echo HTML::hiddenField('customers_newsletter');
} else {
echo HTML::selectField('customers_newsletter', $newsletter_array, $cInfo->customers_newsletter == '1' ? '1' : '0');
}
?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td align="right" class="smallText"><?php
echo HTML::button(OSCOM::getDef('image_save'), 'fa fa-save') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('action'))));
?>
</td>
</tr></form>
<?php
} else {
?>
示例6: array
<label for="inputState" class="control-label col-sm-3"><?php
echo ENTRY_STATE;
?>
</label>
<div class="col-sm-9">
<?php
if ($process == true) {
if ($entry_state_has_zones == true) {
$zones_array = array();
$Qzones = $OSCOM_Db->prepare('select zone_name from :table_zones where zone_country_id = :zone_country_id order by zone_name');
$Qzones->bindInt(':zone_country_id', $country);
$Qzones->execute();
while ($Qzones->fetch()) {
$zones_array[] = array('id' => $Qzones->value('zone_name'), 'text' => $Qzones->value('zone_name'));
}
echo HTML::selectField('state', $zones_array, 0, 'id="inputState"');
} else {
echo HTML::inputField('state', NULL, 'id="inputState" placeholder="' . ENTRY_STATE_TEXT . '"');
}
} else {
echo HTML::inputField('state', NULL, 'id="inputState" placeholder="' . ENTRY_STATE_TEXT . '"');
}
?>
</div>
</div>
<?php
}
?>
<div class="form-group has-feedback">
示例7: array
$Qfilter->execute();
}
if ($Qfilter->getPageSetTotalRows() > 1) {
echo '<div>' . HTML::form('filter', OSCOM::link('index.php', '', false), 'get', null, ['session_id' => true]) . '<p align="right">' . OSCOM::getDef('text_show') . ' ';
if (isset($_GET['manufacturers_id']) && !empty($_GET['manufacturers_id'])) {
echo HTML::hiddenField('manufacturers_id', $_GET['manufacturers_id']);
$options = array(array('id' => '', 'text' => OSCOM::getDef('text_all_categories')));
} else {
echo HTML::hiddenField('cPath', $cPath);
$options = array(array('id' => '', 'text' => OSCOM::getDef('text_all_manufacturers')));
}
echo HTML::hiddenField('sort', $_GET['sort']);
while ($Qfilter->fetch()) {
$options[] = array('id' => $Qfilter->valueInt('id'), 'text' => $Qfilter->value('name'));
}
echo HTML::selectField('filter_id', $options, isset($_GET['filter_id']) ? $_GET['filter_id'] : '', 'onchange="this.form.submit()"');
echo '</p></form></div>' . "\n";
}
}
include 'includes/content/product_listing.php';
?>
</div>
<?php
} else {
// default page
?>
<div class="page-header">
<h1><?php
示例8: array
<label for="inputState" class="control-label col-sm-3"><?php
echo ENTRY_STATE;
?>
</label>
<div class="col-sm-9">
<?php
if ($process == true) {
if ($entry_state_has_zones == true) {
$zones_array = array();
$Qzones = $OSCOM_Db->prepare('select zone_name from :table_zones where zone_country_id = :zone_country_id order by zone_name');
$Qzones->bindInt(':zone_country_id', $country);
$Qzones->execute();
while ($Qzones->fetch()) {
$zones_array[] = array('id' => $Qzones->value('zone_name'), 'text' => $Qzones->value('zone_name'));
}
echo HTML::selectField('state', $zones_array);
} else {
echo HTML::inputField('state');
}
} else {
echo HTML::inputField('state', isset($entry['entry_country_id']) ? tep_get_zone_name($entry['entry_country_id'], $entry['entry_zone_id'], $entry['entry_state']) : '');
}
if (tep_not_null(ENTRY_STATE_TEXT)) {
echo '<span class="help-block">' . ENTRY_STATE_TEXT . '</span>';
}
?>
</div>
</div>
<?php
}
示例9: while
?>
<td><table border="0" cellpadding="0" cellspacing="2">
<?php
$customers = [['id' => '', 'text' => OSCOM::getDef('text_select_customer')], ['id' => '***', 'text' => OSCOM::getDef('text_all_customers')], ['id' => '**D', 'text' => OSCOM::getDef('text_newsletter_customers')]];
$Qcustomers = $OSCOM_Db->get('customers', ['customers_email_address', 'customers_firstname', 'customers_lastname'], null, 'customers_lastname');
while ($Qcustomers->fetch()) {
$customers[] = ['id' => $Qcustomers->value('customers_email_address'), 'text' => $Qcustomers->value('customers_lastname') . ', ' . $Qcustomers->value('customers_firstname') . ' (' . $Qcustomers->value('customers_email_address') . ')'];
}
?>
<tr>
<td class="main"><?php
echo OSCOM::getDef('text_customer');
?>
</td>
<td><?php
echo HTML::selectField('customers_email_address', $customers, isset($_GET['customer']) ? $_GET['customer'] : '');
?>
</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td class="main"><?php
echo OSCOM::getDef('text_from');
?>
</td>
<td><?php
echo HTML::inputField('from', EMAIL_FROM);
?>
</td>
示例10: array
$contents = array('form' => HTML::form('countries', OSCOM::link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&action=insert')));
$contents[] = array('text' => OSCOM::getDef('text_info_insert_intro'));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_country_name') . '<br />' . HTML::inputField('countries_name'));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_country_code_2') . '<br />' . HTML::inputField('countries_iso_code_2'));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_country_code_3') . '<br />' . HTML::inputField('countries_iso_code_3'));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_address_format') . '<br />' . HTML::selectField('address_format_id', tep_get_address_formats()));
$contents[] = array('align' => 'center', 'text' => '<br />' . HTML::button(OSCOM::getDef('image_save'), 'fa fa-save') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_COUNTRIES, 'page=' . $_GET['page'])));
break;
case 'edit':
$heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_edit_country') . '</strong>');
$contents = array('form' => HTML::form('countries', OSCOM::link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=save')));
$contents[] = array('text' => OSCOM::getDef('text_info_edit_intro'));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_country_name') . '<br />' . HTML::inputField('countries_name', $cInfo->countries_name));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_country_code_2') . '<br />' . HTML::inputField('countries_iso_code_2', $cInfo->countries_iso_code_2));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_country_code_3') . '<br />' . HTML::inputField('countries_iso_code_3', $cInfo->countries_iso_code_3));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_address_format') . '<br />' . HTML::selectField('address_format_id', tep_get_address_formats(), $cInfo->address_format_id));
$contents[] = array('align' => 'center', 'text' => '<br />' . HTML::button(OSCOM::getDef('image_save'), 'fa fa-save') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id)));
break;
case 'delete':
$heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_delete_country') . '</strong>');
$contents = array('form' => HTML::form('countries', OSCOM::link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=deleteconfirm')));
$contents[] = array('text' => OSCOM::getDef('text_info_delete_intro'));
$contents[] = array('text' => '<br /><strong>' . $cInfo->countries_name . '</strong>');
$contents[] = array('align' => 'center', 'text' => '<br />' . HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id)));
break;
default:
if (is_object($cInfo)) {
$heading[] = array('text' => '<strong>' . $cInfo->countries_name . '</strong>');
$contents[] = array('align' => 'center', 'text' => HTML::button(OSCOM::getDef('image_edit'), 'fa fa-edit', OSCOM::link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=edit')) . HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash', OSCOM::link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=delete')));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_country_name') . '<br />' . $cInfo->countries_name);
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_country_code_2') . ' ' . $cInfo->countries_iso_code_2);
示例11: tep_get_country_list
function tep_get_country_list($name, $selected = '', $parameters = '')
{
$countries_array = array(array('id' => '', 'text' => OSCOM::getDef('pull_down_default')));
$countries = tep_get_countries();
for ($i = 0, $n = sizeof($countries); $i < $n; $i++) {
$countries_array[] = array('id' => $countries[$i]['countries_id'], 'text' => $countries[$i]['countries_name']);
}
return HTML::selectField($name, $countries_array, $selected, $parameters);
}
示例12:
<label>
<?php
echo HTML::checkboxField('inc_subcat', '1', true, 'id="entryIncludeSubs"') . ' ';
?>
</label>
</div>
</div>
</div>
<div class="form-group">
<label for="entryManufacturers" class="control-label col-sm-3"><?php
echo ENTRY_MANUFACTURERS;
?>
</label>
<div class="col-sm-9">
<?php
echo HTML::selectField('manufacturers_id', tep_get_manufacturers(array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS))), null, 'id="entryManufacturers"');
?>
</div>
</div>
<div class="form-group">
<label for="PriceFrom" class="control-label col-sm-3"><?php
echo ENTRY_PRICE_FROM;
?>
</label>
<div class="col-sm-9">
<?php
echo HTML::inputField('pfrom', '', 'id="PriceFrom" placeholder="' . ENTRY_PRICE_FROM_TEXT . '"');
?>
</div>
</div>
<div class="form-group">
示例13:
<div class="col-xs-9">
<?php
echo HTML::inputField('CFG_ADMIN_DIRECTORY', 'admin', 'required aria-required="true" id="adminDir"');
?>
<span class="glyphicon glyphicon-asterisk form-control-feedback inputRequirement"></span>
<span class="help-block">This is the directory where the administration section will be installed. You should change this for security reasons.</span>
</div>
</div>
<?php
}
?>
<div class="form-group has-feedback">
<label for="Zulu" class="control-label col-xs-3">Time Zone</label>
<div class="col-xs-9">
<?php
echo HTML::selectField('CFG_TIME_ZONE', DateTime::getTimeZones(), date_default_timezone_get());
?>
<span class="glyphicon glyphicon-asterisk form-control-feedback inputRequirement"></span>
<span class="help-block">The time zone to base the date and time on.</span>
</div>
</div>
<p><?php
echo HTML::button('Continue To Step 4', 'triangle-1-e', null, 'primary', null, 'btn-success btn-block');
?>
</p>
<?php
foreach ($_POST as $key => $value) {
if ($key != 'x' && $key != 'y') {
echo HTML::hiddenField($key, $value);
示例14:
<div class="pull-right">
<?php
echo HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash', OSCOM::link('action_recorder.php', 'action=expire' . (isset($_GET['module']) && in_array($_GET['module'], $modules_array) ? '&module=' . $_GET['module'] : '')), null, 'btn-danger');
?>
</div>
<h2><i class="fa fa-tasks"></i> <a href="<?php
echo OSCOM::link('action_recorder.php');
?>
"><?php
echo OSCOM::getDef('heading_title');
?>
</a></h2>
<?php
echo HTML::form('search', OSCOM::link('action_recorder.php'), 'get', 'class="form-inline"', ['session_id' => true]) . HTML::inputField('search', null, 'placeholder="' . OSCOM::getDef('text_filter_search') . '"') . HTML::selectField('module', $modules_list_array, null, 'onchange="this.form.submit();"') . '</form>';
?>
<table class="oscom-table table table-hover">
<thead>
<tr class="info">
<th><?php
echo OSCOM::getDef('table_heading_module');
?>
</th>
<th><?php
echo OSCOM::getDef('table_heading_customer');
?>
</th>
<th><?php
echo OSCOM::getDef('table_heading_identifier');
示例15: array
case 'new':
$heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_new_zone') . '</strong>');
$contents = array('form' => HTML::form('zones', OSCOM::link(FILENAME_ZONES, 'page=' . $_GET['page'] . '&action=insert')));
$contents[] = array('text' => OSCOM::getDef('text_info_insert_intro'));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_zones_name') . '<br />' . HTML::inputField('zone_name'));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_zones_code') . '<br />' . HTML::inputField('zone_code'));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_country_name') . '<br />' . HTML::selectField('zone_country_id', tep_get_countries()));
$contents[] = array('align' => 'center', 'text' => '<br />' . HTML::button(OSCOM::getDef('image_save'), 'fa fa-save') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_ZONES, 'page=' . $_GET['page'])));
break;
case 'edit':
$heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_edit_zone') . '</strong>');
$contents = array('form' => HTML::form('zones', OSCOM::link(FILENAME_ZONES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->zone_id . '&action=save')));
$contents[] = array('text' => OSCOM::getDef('text_info_edit_intro'));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_zones_name') . '<br />' . HTML::inputField('zone_name', $cInfo->zone_name));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_zones_code') . '<br />' . HTML::inputField('zone_code', $cInfo->zone_code));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_country_name') . '<br />' . HTML::selectField('zone_country_id', tep_get_countries(), $cInfo->countries_id));
$contents[] = array('align' => 'center', 'text' => '<br />' . HTML::button(OSCOM::getDef('image_save'), 'fa fa-save') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_ZONES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->zone_id)));
break;
case 'delete':
$heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_delete_zone') . '</strong>');
$contents = array('form' => HTML::form('zones', OSCOM::link(FILENAME_ZONES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->zone_id . '&action=deleteconfirm')));
$contents[] = array('text' => OSCOM::getDef('text_info_delete_intro'));
$contents[] = array('text' => '<br /><strong>' . $cInfo->zone_name . '</strong>');
$contents[] = array('align' => 'center', 'text' => '<br />' . HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_ZONES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->zone_id)));
break;
default:
if (isset($cInfo) && is_object($cInfo)) {
$heading[] = array('text' => '<strong>' . $cInfo->zone_name . '</strong>');
$contents[] = array('align' => 'center', 'text' => HTML::button(OSCOM::getDef('image_edit'), 'fa fa-edit', OSCOM::link(FILENAME_ZONES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->zone_id . '&action=edit')) . HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash', OSCOM::link(FILENAME_ZONES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->zone_id . '&action=delete')));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_zones_name') . '<br />' . $cInfo->zone_name . ' (' . $cInfo->zone_code . ')');
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_country_name') . ' ' . $cInfo->countries_name);