本文整理汇总了PHP中util::getStatusFieldChoices方法的典型用法代码示例。如果您正苦于以下问题:PHP util::getStatusFieldChoices方法的具体用法?PHP util::getStatusFieldChoices怎么用?PHP util::getStatusFieldChoices使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类util
的用法示例。
在下文中一共展示了util::getStatusFieldChoices方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$p_public_event_url[$lang] = util::formatAppPath($url, false, false);
}
if ($okt->error->isEmpty()) {
$new_conf = array('enable_metas' => (bool) $p_enable_metas, 'enable_rte' => $p_enable_rte, 'enable_filters' => (bool) $p_enable_filters, 'fields' => array('color' => (int) $p_chp_color, 'disponibility' => (int) $p_chp_disponibility), 'images' => $aImagesConfig, 'files' => array('enable' => (bool) $p_enable_files, 'number' => (int) $p_number_files, 'allowed_exts' => $p_allowed_exts), 'name' => $p_name, 'name_seo' => $p_name_seo, 'title' => $p_title, 'meta_description' => $p_meta_description, 'meta_keywords' => $p_meta_keywords, 'public_list_url' => $p_public_list_url, 'public_event_url' => $p_public_event_url);
try {
$okt->diary->config->write($new_conf);
$okt->redirect('module.php?m=diary&action=config&updated=1');
} catch (InvalidArgumentException $e) {
$okt->error->set(__('c_c_error_writing_configuration'));
$okt->error->set($e->getMessage());
}
}
}
/* Affichage
----------------------------------------------------------*/
$aFieldChoices = util::getStatusFieldChoices();
# Titre de la page
$okt->page->addGlobalTitle(__('Configuration'));
# javascript
$okt->page->tabs();
# Lang switcher
if (!$okt->languages->unique) {
$okt->page->langSwitcher('#tabered', '.lang-switcher-buttons');
}
# Confirmations
$okt->page->messages->success('updated', __('c_c_confirm_configuration_updated'));
$okt->page->messages->success('minregenerated', __('c_c_confirm_thumb_regenerated'));
$okt->page->messages->success('watermarkdeleted', __('c_c_confirm_watermark_deleted'));
# En-tête
require OKT_ADMIN_HEADER_FILE;
?>
示例2:
}
}
/* Affichage
----------------------------------------------------------*/
# Titre de la page
$okt->page->addGlobalTitle(__('c_a_menu_configuration'));
# Lockable
$okt->page->lockable();
# Tabs
$okt->page->tabs();
# Lang switcher
if (!$okt->languages->unique) {
$okt->page->langSwitcher('#tabered', '.lang-switcher-buttons');
}
$field_choice = util::getStatusFieldChoices();
$field_logo_choice = util::getStatusFieldChoices(false);
# En-tête
include OKT_ADMIN_HEADER_FILE;
?>
<form action="module.php" method="post">
<div id="tabered">
<ul>
<li><a href="#tab_general"><span><?php
_e('m_partners_general');
?>
</span></a></li>
<li><a href="#tab_fields"><span><?php
_e('m_partners_fields');
?>
</span></a></li>
示例3:
}
}
/* Affichage
----------------------------------------------------------*/
# Titre de la page
$okt->page->addGlobalTitle(__('c_a_menu_configuration'));
# Lockable
$okt->page->lockable();
# Tabs
$okt->page->tabs();
# Lang switcher
if (!$okt->languages->unique) {
$okt->page->langSwitcher('#tabered', '.lang-switcher-buttons');
}
$aFieldChoices = util::getStatusFieldChoices();
$aLanguageFieldChoices = util::getStatusFieldChoices(false);
# En-tête
include OKT_ADMIN_HEADER_FILE;
?>
<form action="module.php" method="post">
<div id="tabered">
<ul>
<li><a href="#tab-fields"><?php
_e('c_c_fields');
?>
</a></li>
<li><a href="#tab-advanced"><?php
_e('c_a_menu_advanced');
?>
</a></li>