本文整理汇总了PHP中GCore\Helpers\Html::formLine方法的典型用法代码示例。如果您正苦于以下问题:PHP Html::formLine方法的具体用法?PHP Html::formLine怎么用?PHP Html::formLine使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GCore\Helpers\Html
的用法示例。
在下文中一共展示了Html::formLine方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: config
public static function config()
{
?>
<ul class="nav nav-tabs">
<li><a href="#hits-config" data-g-toggle="tab"><?php
echo l_('CCON_CONFIG');
?>
</a></li>
<li><a href="#hits-help" data-g-toggle="tab"><?php
echo l_('CCON_HELP');
?>
</a></li>
</ul>
<div class="tab-content">
<div id="hits-config" class="tab-pane">
<?php
echo \GCore\Helpers\Html::formSecStart();
echo \GCore\Helpers\Html::formLine('Connection[extras][plugins][hits][enabled]', array('type' => 'dropdown', 'label' => l_('CONN_ENABLED'), 'options' => array(0 => l_('NO'), 1 => l_('YES')), 'values' => 0));
echo \GCore\Helpers\Html::formLine('Connection[extras][plugins][hits][priority]', array('type' => 'text', 'label' => l_('CONN_PRIORITY'), 'value' => 0, 'sublabel' => l_('CONN_PRIORITY_DESC')));
echo \GCore\Helpers\Html::formLine('Connection[extras][plugins][hits][hits_field]', array('type' => 'text', 'label' => l_('CONN_HITS_FIELD'), 'sublabel' => l_('CONN_HITS_FIELD_DESC')));
echo \GCore\Helpers\Html::formLine('Connection[extras][plugins][hits][display_icon]', array('type' => 'dropdown', 'label' => l_('CONN_DISPLAY_ICON'), 'options' => array(0 => l_('NO'), 1 => l_('YES')), 'values' => 1));
echo \GCore\Helpers\Html::formLine('Connection[extras][plugins][hits][hot_text]', array('type' => 'text', 'label' => l_('CONN_HOT_TEXT'), 'value' => 'Hot', 'sublabel' => l_('CONN_HOT_TEXT_DESC')));
echo \GCore\Helpers\Html::formLine('Connection[extras][plugins][hits][hot_limit]', array('type' => 'text', 'label' => l_('CONN_HOT_LIMIT'), 'value' => '1000', 'sublabel' => l_('CONN_HOT_LIMIT_DESC')));
echo \GCore\Helpers\Html::formLine('Connection[extras][plugins][hits][update_actions]', array('type' => 'text', 'label' => l_('CONN_UPDATE_ACTIONS'), 'class' => 'L', 'sublabel' => l_('CONN_UPDATE_ACTIONS_DESC')));
echo \GCore\Helpers\Html::formSecEnd();
?>
</div>
<div id="hits-help" class="tab-pane">
<p></p>
<p>Use "_HITS_.count" as your field name to render the download count (with icon) or use "_HITS_.hot" to render a hot icon.</p>
<p>You may also supply actions names in order to update the download field, the "gcb" value should be present in the action's page data in order for the record(s) to be updated.</p>
</div>
</div>
<?php
}
示例2: config
public static function config($data = array(), $k = '{N}')
{
echo \GCore\Helpers\Html::formStart('original_element_config single_element_config', 'password_origin_config');
?>
<ul class="nav nav-tabs">
<li><a href="#general-<?php
echo $k;
?>
" data-g-toggle="tab"><?php
echo l_('CF_GENERAL');
?>
</a></li>
<li><a href="#validation-<?php
echo $k;
?>
" data-g-toggle="tab"><?php
echo l_('CF_VALIDATION');
?>
</a></li>
</ul>
<div class="tab-content">
<div id="general-<?php
echo $k;
?>
" class="tab-pane">
<?php
echo \GCore\Helpers\Html::formSecStart();
foreach (self::$configs as $name => $params) {
$value = \GCore\Libs\Arr::getVal($data, explode('.', $name));
$field_name = implode('][', explode('.', $name));
$params['value'] = $value ? $params['type'] == 'text' ? htmlspecialchars($value, ENT_QUOTES) : $value : (isset($params['value']) ? $params['value'] : '');
$params['values'] = $value ? $value : (isset($params['values']) ? $params['values'] : '');
echo \GCore\Helpers\Html::formLine('Form[extras][fields][' . $k . '][' . $field_name . ']', $params);
}
echo \GCore\Helpers\Html::input('Form[extras][fields][' . $k . '][type]', array('type' => 'hidden', 'value' => self::$settings['type']));
echo \GCore\Helpers\Html::input('Form[extras][fields][' . $k . '][container_id]', array('type' => 'hidden', 'id' => 'container_id' . $k, 'value' => '0'));
echo \GCore\Helpers\Html::formSecEnd();
?>
</div>
<div id="validation-<?php
echo $k;
?>
" class="tab-pane">
<?php
echo \GCore\Helpers\Html::formSecStart();
echo \GCore\Helpers\Html::formLine('Form[extras][fields][' . $k . '][validation][required]', array('type' => 'dropdown', 'label' => l_('CF_REQUIRED'), 'options' => array('' => l_('NO'), 1 => l_('YES'))));
echo \GCore\Helpers\Html::formLine('Form[extras][fields][' . $k . '][validation][alpha]', array('type' => 'dropdown', 'label' => l_('CF_ALPHA'), 'options' => array('' => l_('NO'), 1 => l_('YES'))));
echo \GCore\Helpers\Html::formLine('Form[extras][fields][' . $k . '][validation][alphanum]', array('type' => 'dropdown', 'label' => l_('CF_ALPHA_NUMERIC'), 'options' => array('' => l_('NO'), 1 => l_('YES'))));
echo \GCore\Helpers\Html::formLine('Form[extras][fields][' . $k . '][validation][digit]', array('type' => 'dropdown', 'label' => l_('CF_DIGIT'), 'options' => array('' => l_('NO'), 1 => l_('YES'))));
echo \GCore\Helpers\Html::formLine('Form[extras][fields][' . $k . '][validation][nodigit]', array('type' => 'dropdown', 'label' => l_('CF_NO_DIGIT'), 'options' => array('' => l_('NO'), 1 => l_('YES'))));
echo \GCore\Helpers\Html::formLine('Form[extras][fields][' . $k . '][validation][number]', array('type' => 'dropdown', 'label' => l_('CF_NUMBER'), 'options' => array('' => l_('NO'), 1 => l_('YES'))));
echo \GCore\Helpers\Html::formLine('Form[extras][fields][' . $k . '][validation][confirm]', array('type' => 'text', 'label' => l_('CF_VALIDATE_CONFIRM'), 'sublabel' => l_('CF_VALIDATE_CONFIRM_DESC')));
echo \GCore\Helpers\Html::formLine('Form[extras][fields][' . $k . '][validation][custom]', array('type' => 'text', 'label' => l_('CF_VALIDATE_CUSTOM'), 'sublabel' => l_('CF_VALIDATE_CUSTOM_DESC')));
echo \GCore\Helpers\Html::formSecEnd();
?>
</div>
</div>
<?php
echo \GCore\Helpers\Html::formEnd();
}
示例3: config
public static function config()
{
echo \GCore\Helpers\Html::formStart('action_config load_nocaptcha_action_config', 'load_nocaptcha_action_config__XNX_');
echo \GCore\Helpers\Html::formSecStart();
echo \GCore\Helpers\Html::formLine('Form[extras][actions_config][_XNX_][site_key]', array('type' => 'text', 'label' => l_('CF_NOCAPTCHA_SITE_KEY'), 'class' => 'XL', 'sublabel' => l_('CF_NOCAPTCHA_SITE_KEY_DESC')));
/*echo \GCore\Helpers\Html::formLine('Form[extras][actions_config][_XNX_][theme]', array('type' => 'dropdown', 'label' => l_('CF_RECAPTCHA_THEME'), 'options' => array(
'clean' => 'Clean',
'red' => 'Red',
'white' => 'White',
'blackglass' => 'Blackglass',
'custom' => 'Custom'
), 'sublabel' => l_('CF_RECAPTCHA_THEME_DESC')));
echo \GCore\Helpers\Html::formLine('Form[extras][actions_config][_XNX_][lang]', array('type' => 'dropdown', 'label' => l_('CF_RECAPTCHA_LANG'), 'options' => array(
'en' => 'English',
'nt' => 'Dutch',
'fr' => 'French',
'de' => 'German',
'pt' => 'Portuguese',
'ru' => 'Russian',
'es' => 'Spanish',
'tr' => 'Turkish'
), 'sublabel' => l_('CF_RECAPTCHA_LANG_DESC')));*/
echo \GCore\Helpers\Html::formSecEnd();
echo \GCore\Helpers\Html::formEnd();
}
示例4: config
public static function config($configs = array(), $extra_config = array())
{
?>
<script>
function event_switcher_load_events(elem, SID){
var events = jQuery('#event_switcher_events_'+SID).val().split(',');
//delete existing events
jQuery('#cfaction_event_switcher_element_'+SID).find('.form_event').remove();
var events_html = '';
var events_path = jQuery('#cfaction_event_switcher_element_'+SID).children('.panel-body').children('.events_dna').first().attr('name');
jQuery.each(events,function(i, val){
events_html = events_html + '<div id="cfactionevent_event_switcher_'+SID+'_'+val+'" title="'+val+'" class="form_event normal_event alert alert-info"><label class="form_event_label label label-info">On '+val+'</label><input type="hidden" name="'+events_path+'['+val+']" alt="ghost" class="events_dna" value=""></div>';
});
jQuery('#cfaction_event_switcher_element_'+SID).children('.panel-body').append(events_html);
ChronoformWizard.initialize_actions_droppables(ChronoformWizard.actions_drop_settings);
//console.log(events);
}
</script>
<?php
echo \GCore\Helpers\Html::formStart('action_config event_switcher_action_config', 'event_switcher_action_config_{N}');
echo \GCore\Helpers\Html::formSecStart();
echo \GCore\Helpers\Html::formLine('Form[extras][actions_config][{N}][action_label]', array('type' => 'text', 'label' => l_('CF_ACTION_LABEL'), 'class' => 'XL', 'sublabel' => l_('CF_ACTION_LABEL_DESC')));
echo \GCore\Helpers\Html::formLine('Form[extras][actions_config][{N}][events]', array('type' => 'text', 'label' => l_('CF_EVENTS'), 'id' => 'event_switcher_events_{N}', 'class' => 'XXL', 'sublabel' => l_('CF_EVENTS_EVENT_SWITCHER_DESC')));
echo \GCore\Helpers\Html::formLine('Form[extras][actions_config][{N}][load_events]', array('type' => 'button', 'value' => l_('CF_LOAD_EVENTS_EVENT_SWITCHER'), 'onclick' => 'event_switcher_load_events(this, \'{N}\')', 'sublabel' => l_('CF_LOAD_EVENTS_EVENT_SWITCHER_DESC')));
echo \GCore\Helpers\Html::formLine('Form[extras][actions_config][{N}][content]', array('type' => 'textarea', 'label' => l_('CF_CODE'), 'rows' => 20, 'cols' => 70, 'sublabel' => l_('CF_CONTENT_EVENT_SWITCHER_DESC')));
echo \GCore\Helpers\Html::formSecEnd();
echo \GCore\Helpers\Html::formEnd();
}
示例5: config
public static function config($data = array(), $k = '{N}')
{
echo \GCore\Helpers\Html::formStart('original_element_config single_element_config', 'hidden_origin_config');
?>
<ul class="nav nav-tabs">
<li><a href="#general-<?php
echo $k;
?>
" data-g-toggle="tab"><?php
echo l_('CF_GENERAL');
?>
</a></li>
</ul>
<div class="tab-content">
<div id="general-<?php
echo $k;
?>
" class="tab-pane">
<?php
echo \GCore\Helpers\Html::formSecStart();
foreach (self::$configs as $name => $params) {
$params['value'] = isset($data[$name]) ? $params['type'] == 'text' ? htmlspecialchars($data[$name]) : $data[$name] : (isset($params['value']) ? $params['value'] : '');
$params['values'] = isset($data[$name]) ? $data[$name] : (isset($params['values']) ? $params['values'] : '');
echo \GCore\Helpers\Html::formLine('Form[extras][fields][' . $k . '][' . $name . ']', $params);
}
echo \GCore\Helpers\Html::input('Form[extras][fields][' . $k . '][type]', array('type' => 'hidden', 'value' => self::$settings['type']));
echo \GCore\Helpers\Html::input('Form[extras][fields][' . $k . '][container_id]', array('type' => 'hidden', 'id' => 'container_id' . $k, 'value' => '0'));
echo \GCore\Helpers\Html::formSecEnd();
?>
</div>
</div>
<?php
echo \GCore\Helpers\Html::formEnd();
}
示例6: config
public static function config($data = array(), $k = '{N}')
{
echo \GCore\Helpers\Html::formStart('original_element_config single_element_config', 'signature_pad_origin_config');
echo \GCore\Helpers\Html::formSecStart();
foreach (self::$configs as $name => $params) {
$params['value'] = isset($data[$name]) ? in_array($params['type'], array('text', 'textarea')) ? htmlspecialchars($data[$name]) : $data[$name] : (isset($params['value']) ? $params['value'] : '');
$params['values'] = isset($data[$name]) ? $data[$name] : (isset($params['values']) ? $params['values'] : '');
echo \GCore\Helpers\Html::formLine('Form[extras][fields][' . $k . '][' . $name . ']', $params);
}
echo \GCore\Helpers\Html::input('Form[extras][fields][' . $k . '][code]', array('type' => 'hidden', 'alt' => 'ghost', 'value' => '
<div id="<?php echo $form->form["Form"]["extras"]["fields"][' . $k . ']["wrapper_id"]; ?>" class="m-signature-pad">
<div class="m-signature-pad--body">
<canvas width="<?php echo $form->form["Form"]["extras"]["fields"][' . $k . ']["width"]; ?>" height="<?php echo $form->form["Form"]["extras"]["fields"][' . $k . ']["height"]; ?>"></canvas>
</div>
<div class="m-signature-pad--footer">
<button type="button" class="button clear" data-action="clear"><?php echo $form->form["Form"]["extras"]["fields"][' . $k . ']["clear_text"]; ?></button>
</div>
<input type="hidden" name="<?php echo $form->form["Form"]["extras"]["fields"][' . $k . ']["field_name"]; ?>" value="" />
</div>
'));
echo \GCore\Helpers\Html::input('Form[extras][fields][' . $k . '][pure_code]', array('type' => 'hidden', 'alt' => 'ghost', 'value' => 0));
echo \GCore\Helpers\Html::input('Form[extras][fields][' . $k . '][name]', array('type' => 'hidden', 'alt' => 'ghost', 'value' => 'signature_pad'));
echo \GCore\Helpers\Html::input('Form[extras][fields][' . $k . '][render_type]', array('type' => 'hidden', 'alt' => 'ghost', 'value' => 'signature_pad'));
echo \GCore\Helpers\Html::input('Form[extras][fields][' . $k . '][type]', array('type' => 'hidden', 'alt' => 'ghost', 'value' => self::$settings['type']));
echo \GCore\Helpers\Html::input('Form[extras][fields][' . $k . '][container_id]', array('type' => 'hidden', 'id' => 'container_id' . $k, 'value' => '0'));
echo \GCore\Helpers\Html::formSecEnd();
echo \GCore\Helpers\Html::formEnd();
}
示例7: config
public static function config()
{
?>
<ul class="nav nav-tabs">
<li><a href="#core-config" data-g-toggle="tab"><?php
echo l_('CCON_CONFIG');
?>
</a></li>
<li><a href="#core-help" data-g-toggle="tab"><?php
echo l_('CCON_HELP');
?>
</a></li>
</ul>
<div class="tab-content">
<div id="core-config" class="tab-pane">
<?php
echo \GCore\Helpers\Html::formSecStart();
echo \GCore\Helpers\Html::formLine('Connection[extras][plugins][core][enabled]', array('type' => 'dropdown', 'label' => l_('CONN_ENABLED'), 'options' => array(0 => l_('NO'), 1 => l_('YES')), 'values' => 1));
echo \GCore\Helpers\Html::formSecEnd();
?>
</div>
<div id="core-help" class="tab-pane">
<p></p>
<p>Use "_EDIT_" as your field name to render an Edit link, the column title will be used as the link text.</p>
<p>Use "_DELETE_" as your field name to render a Delete link, the column title will be used as the link text.</p>
</div>
</div>
<?php
}
示例8: config
public static function config($area = 'front')
{
echo \GCore\Helpers\Html::formSecStart();
echo \GCore\Helpers\Html::formLine('Connection[extras][' . $area . '][blocks][table][header]', array('type' => 'textarea', 'label' => l_('HEADER_CODE'), 'style' => 'width:auto;', 'rows' => 15, 'cols' => 100, 'sublabel' => 'HTML/PHP code for the header of the list, this code is rendered only once.'));
echo \GCore\Helpers\Html::formLine('Connection[extras][' . $area . '][blocks][table][footer]', array('type' => 'textarea', 'label' => l_('FOOTER_CODE'), 'style' => 'width:auto;', 'rows' => 15, 'cols' => 100, 'sublabel' => 'HTML/PHP code for the footer of the list, this code is rendered only once.'));
echo \GCore\Helpers\Html::formSecEnd();
}
示例9: config
public static function config()
{
echo \GCore\Helpers\Html::formStart('action_config file_download_action_config', 'file_download_action_config_{N}');
echo \GCore\Helpers\Html::formSecStart();
echo \GCore\Helpers\Html::formLine('Form[extras][actions_config][{N}][path]', array('type' => 'text', 'label' => l_('CF_FILE_DOWNLOAD_PATH'), 'value' => \GCore\C::ext_path('chronoforms', 'front'), 'class' => 'XXL', 'sublabel' => l_('CF_FILE_DOWNLOAD_PATH_DESC')));
echo \GCore\Helpers\Html::formSecEnd();
echo \GCore\Helpers\Html::formEnd();
}
示例10: config
public static function config()
{
echo \GCore\Helpers\Html::formStart('action_config show_stopper_action_config', 'show_stopper_action_config_{N}');
echo \GCore\Helpers\Html::formSecStart();
echo \GCore\Helpers\Html::formLine('Form[extras][actions_config][{N}][dummy]', array('type' => 'hidden'));
echo \GCore\Helpers\Html::formSecEnd();
echo \GCore\Helpers\Html::formEnd();
}
示例11: config
public static function config()
{
echo \GCore\Helpers\Html::formStart('action_config load_signature_pad_action_config', 'load_signature_pad_action_config_{N}');
echo \GCore\Helpers\Html::formSecStart();
echo \GCore\Helpers\Html::formLine('Form[extras][actions_config][{N}][enabled]', array('type' => 'dropdown', 'label' => l_('CF_ENABLED'), 'options' => array(0 => l_('NO'), 1 => l_('YES'))));
echo \GCore\Helpers\Html::formSecEnd();
echo \GCore\Helpers\Html::formEnd();
}
示例12: config
public static function config($configs = array(), $extra_config = array())
{
echo \GCore\Helpers\Html::formStart('action_config custom_code_action_config', 'custom_code_action_config_{N}');
echo \GCore\Helpers\Html::formSecStart();
echo \GCore\Helpers\Html::formLine('Form[extras][actions_config][{N}][content]', array('type' => 'textarea', 'label' => l_('CF_CONTENT'), 'rows' => 15, 'cols' => 70, 'sublabel' => l_('CF_CONTENT_CUSTOM_CODE_DESC')));
echo \GCore\Helpers\Html::formSecEnd();
echo \GCore\Helpers\Html::formEnd();
}
示例13: config
public static function config()
{
echo \GCore\Helpers\Html::formStart('action_config check_captcha_action_config', 'check_captcha_action_config__XNX_');
echo \GCore\Helpers\Html::formSecStart();
echo \GCore\Helpers\Html::formLine('Form[extras][actions_config][_XNX_][error]', array('type' => 'text', 'label' => l_('CF_ERROR'), 'class' => 'XL', 'sublabel' => l_('CF_SEC_Q_ERROR_DESC')));
echo \GCore\Helpers\Html::formSecEnd();
echo \GCore\Helpers\Html::formEnd();
}
示例14: config
public static function config()
{
echo \GCore\Helpers\Html::formStart('action_config load_honeypot_action_config', 'load_honeypot_action_config__XNX_');
echo \GCore\Helpers\Html::formSecStart();
echo \GCore\Helpers\Html::formLine('Form[extras][actions_config][_XNX_][method]', array('type' => 'dropdown', 'label' => l_('CF_HONEYPOT_METHOD'), 'options' => array('static' => l_('CF_STATIC'), 'dynamic' => l_('CF_DYNAMIC')), 'sublabel' => l_('CF_HONEYPOT_METHOD_DESC')));
echo \GCore\Helpers\Html::formSecEnd();
echo \GCore\Helpers\Html::formEnd();
}
示例15: config
public static function config()
{
echo \GCore\Helpers\Html::formStart('action_config load_captcha_action_config', 'load_captcha_action_config_{N}');
echo \GCore\Helpers\Html::formSecStart();
echo \GCore\Helpers\Html::formLine('Form[extras][actions_config][{N}][questions]', array('type' => 'textarea', 'label' => l_('CF_SEC_Q_QUESTIONS'), 'rows' => 10, 'cols' => 70, 'sublabel' => l_('CF_SEC_Q_QUESTIONS_DESC')));
echo \GCore\Helpers\Html::formSecEnd();
echo \GCore\Helpers\Html::formEnd();
}