当前位置: 首页>>代码示例>>PHP>>正文


PHP Html::input方法代码示例

本文整理汇总了PHP中GCore\Helpers\Html::input方法的典型用法代码示例。如果您正苦于以下问题:PHP Html::input方法的具体用法?PHP Html::input怎么用?PHP Html::input使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GCore\Helpers\Html的用法示例。


在下文中一共展示了Html::input方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: 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();
    }
开发者ID:iFactoryDigital,项目名称:gympieradiology,代码行数:34,代码来源:hidden.php

示例2: 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();
    }
开发者ID:iFactoryDigital,项目名称:gympieradiology,代码行数:28,代码来源:signature_pad.php

示例3: 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();
    }
开发者ID:vstorm83,项目名称:propertease,代码行数:60,代码来源:password.php

示例4: config

 public static function config($data = array(), $k = '{N}')
 {
     echo '<div class="original_element_config">';
     //\GCore\Helpers\Html::formSecStart('original_element_config', 'multi_origin_config');
     $sub_fields_count = $k;
     $fields = !empty($data['inputs']) ? $data['inputs'] : array();
     $i = 0;
     foreach ($fields as $sub_id => $field) {
         $sub_type = !empty($field['render_type']) ? $field['render_type'] : $field['type'];
         $class = '\\GCore\\Admin\\Extensions\\Chronoforms\\Fields\\' . \GCore\Libs\Str::camilize($sub_type) . '\\' . \GCore\Libs\Str::camilize($sub_type);
         ob_start();
         $class::config($field, $sub_fields_count);
         $con = ob_get_clean();
         $con = str_replace('{N}', $sub_fields_count, $con);
         $con = str_replace('Form[extras][fields][' . $sub_fields_count . ']', 'Form[extras][fields][' . $k . '][inputs][' . $sub_id . ']', $con);
         $con = str_replace('-' . $sub_fields_count, '-' . $k . '-' . $i, $con);
         //fix for tabs
         $con = str_replace('original_element_config', '', $con);
         echo '<div class="panel panel-default">';
         echo '<div class="well well-sm">' . $sub_id . '</div>';
         echo $con;
         echo '</div>';
         $sub_fields_count++;
         $i++;
     }
     echo \GCore\Helpers\Html::input('Form[extras][fields][' . $k . '][type]', array('type' => 'hidden', 'value' => 'multi'));
     echo \GCore\Helpers\Html::input('Form[extras][fields][' . $k . '][id]', array('type' => 'hidden', 'value' => 'multi-' . $k));
     //echo \GCore\Helpers\Html::input('Form[extras][fields]['.$k.'][layout]', array('type' => 'hidden', 'value' => 'wide'));
     echo \GCore\Helpers\Html::input('Form[extras][fields][' . $k . '][name]', array('type' => 'hidden', 'value' => 'multi'));
     echo \GCore\Helpers\Html::input('Form[extras][fields][' . $k . '][container_id]', array('type' => 'hidden', 'id' => 'container_id' . $k, 'value' => '0'));
     echo '</div>';
     //\GCore\Helpers\Html::formSecEnd();
 }
开发者ID:iFactoryDigital,项目名称:gympieradiology,代码行数:33,代码来源:multi.php

示例5: config

 public static function config($data = array(), $k = '_XNX_')
 {
     echo \GCore\Helpers\Html::formStart('jsevent_config', 'set_options_config_' . $k);
     echo \GCore\Helpers\Html::formSecStart();
     echo \GCore\Helpers\Html::formLine('-', array('type' => 'multi', 'inputs' => array_merge(self::_fields($data, $k), array(array('name' => 'Form[extras][jsevents][' . $k . '][target]', 'type' => 'dropdown', 'label' => array('position' => 'top', 'text' => l_('CF_EVENT_SET_OPTIONS')), 'sublabel' => l_('CF_EVENT_ELEMENT'), 'options' => self::$fields), array('name' => 'Form[extras][jsevents][' . $k . '][options]', 'type' => 'textarea', 'rows' => 5, 'cols' => 60, 'label' => array('position' => 'top', 'text' => l_('CF_EVENT_OPTIONS')), 'sublabel' => l_('CF_EVENT_OPTIONS_DESC'))))));
     echo \GCore\Helpers\Html::input('Form[extras][jsevents][' . $k . '][type]', array('type' => 'hidden', 'value' => 'set_options'));
     echo \GCore\Helpers\Html::formSecEnd();
     echo \GCore\Helpers\Html::formEnd();
 }
开发者ID:ejailesb,项目名称:repo_empr,代码行数:9,代码来源:set_options.php

示例6: config

 public static function config($data = array(), $k = '_XNX_')
 {
     echo \GCore\Helpers\Html::formStart('jsevent_config', 'set_dynamic_value_config_' . $k);
     echo \GCore\Helpers\Html::formSecStart();
     echo \GCore\Helpers\Html::formLine('-', array('type' => 'multi', 'inputs' => array_merge(self::_fields($data, $k), array(array('name' => 'Form[extras][jsevents][' . $k . '][target]', 'type' => 'dropdown', 'label' => array('position' => 'top', 'text' => l_('CF_EVENT_SET_VALUE')), 'sublabel' => l_('CF_EVENT_ELEMENT'), 'options' => self::$fields), array('name' => 'Form[extras][jsevents][' . $k . '][ajax]', 'type' => 'text', 'class' => 'M', 'label' => array('position' => 'top', 'text' => l_('CF_EVENT_AJAX')), 'sublabel' => l_('CF_EVENT_AJAX_VALUE_DESC'))))));
     echo \GCore\Helpers\Html::input('Form[extras][jsevents][' . $k . '][type]', array('type' => 'hidden', 'value' => 'set_dynamic_value'));
     echo \GCore\Helpers\Html::formSecEnd();
     echo \GCore\Helpers\Html::formEnd();
 }
开发者ID:ejailesb,项目名称:repo_empr,代码行数:9,代码来源:set_dynamic_value.php

示例7: config

 public static function config($data = array(), $k = '_XNX_')
 {
     echo \GCore\Helpers\Html::formStart('jsevent_config', 'fn_config_' . $k);
     echo \GCore\Helpers\Html::formSecStart();
     echo \GCore\Helpers\Html::formLine('-', array('type' => 'multi', 'inputs' => array_merge(self::_fields($data, $k), array(array('name' => 'Form[extras][jsevents][' . $k . '][function]', 'type' => 'text', 'class' => 'L', 'label' => array('position' => 'top', 'text' => l_('CF_EVENT_FUNCTION_NAME')), 'sublabel' => l_('CF_EVENT_FUNCTION_NAME_DESC'))))));
     echo \GCore\Helpers\Html::input('Form[extras][jsevents][' . $k . '][type]', array('type' => 'hidden', 'value' => 'fn'));
     echo \GCore\Helpers\Html::formSecEnd();
     echo \GCore\Helpers\Html::formEnd();
 }
开发者ID:ejailesb,项目名称:repo_empr,代码行数:9,代码来源:fn.php

示例8: config

 public static function config($data = array(), $k = '{N}')
 {
     echo \GCore\Helpers\Html::formStart('jsevent_config', 'enable_config_' . $k);
     echo \GCore\Helpers\Html::formSecStart();
     echo \GCore\Helpers\Html::formLine('-', array('type' => 'multi', 'inputs' => array_merge(self::_fields($data, $k), array(array('name' => 'Form[extras][jsevents][' . $k . '][target]', 'type' => 'dropdown', 'label' => array('position' => 'top', 'text' => l_('CF_EVENT_ENABLE')), 'sublabel' => l_('CF_EVENT_ELEMENT'), 'options' => self::$fields)))));
     echo \GCore\Helpers\Html::input('Form[extras][jsevents][' . $k . '][type]', array('type' => 'hidden', 'value' => 'enable'));
     echo \GCore\Helpers\Html::formSecEnd();
     echo \GCore\Helpers\Html::formEnd();
 }
开发者ID:joecacti,项目名称:diversebuild,代码行数:9,代码来源:enable.php

示例9: config

 public static function config($data = array(), $k = '_XNX_')
 {
     echo \GCore\Helpers\Html::formStart('jsevent_config', 'show_config_' . $k);
     echo \GCore\Helpers\Html::formSecStart();
     echo \GCore\Helpers\Html::formLine('-', array('type' => 'multi', 'inputs' => array_merge(self::_fields($data, $k), array(array('name' => 'Form[extras][jsevents][' . $k . '][target]', 'type' => 'dropdown', 'label' => array('position' => 'top', 'text' => l_('CF_EVENT_SHOW')), 'sublabel' => l_('CF_EVENT_ELEMENT'), 'options' => self::$fields), array('name' => 'Form[extras][jsevents][' . $k . '][parent]', 'type' => 'dropdown', 'label' => array('position' => 'top', 'text' => l_('CF_EVENT_PARENT')), 'sublabel' => l_('CF_EVENT_SHOW_PARENT'), 'options' => array(0 => l_('NO'), 1 => l_('YES')), 'values' => 0)))));
     echo \GCore\Helpers\Html::input('Form[extras][jsevents][' . $k . '][type]', array('type' => 'hidden', 'value' => 'show'));
     echo \GCore\Helpers\Html::formSecEnd();
     echo \GCore\Helpers\Html::formEnd();
 }
开发者ID:ejailesb,项目名称:repo_empr,代码行数:9,代码来源:show.php

示例10: config

 public static function config($configs = array(), $extra_config = array())
 {
     echo \GCore\Helpers\Html::formStart('action_config connection_action_action_config', 'connection_action_action_config_{N}');
     echo \GCore\Helpers\Html::formSecStart();
     //echo \GCore\Helpers\Html::formLine('Form[extras][actions_config][{N}][ccname]', array('type' => 'text', 'label' => l_('CF_CONNECTION_NAME'), 'sublabel' => l_('CF_CONNECTION_NAME_DESC')));
     //echo \GCore\Helpers\Html::formLine('Form[extras][actions_config][{N}][action]', array('type' => 'text', 'label' => l_('CF_CONNECTION_ACTION'), 'sublabel' => l_('CF_CONNECTION_ACTION_DESC')));
     echo \GCore\Helpers\Html::input('Form[extras][actions_config][{N}][action]', array('type' => 'hidden'));
     echo \GCore\Helpers\Html::formSecEnd();
     echo \GCore\Helpers\Html::formEnd();
 }
开发者ID:joecacti,项目名称:diversebuild,代码行数:10,代码来源:chrono_redirect.php

示例11: config

 public static function config($data = array(), $k = '{N}')
 {
     echo \GCore\Helpers\Html::formStart('original_element_config single_element_config', 'submit_origin_config');
     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();
     echo \GCore\Helpers\Html::formEnd();
 }
开发者ID:iFactoryDigital,项目名称:gympieradiology,代码行数:14,代码来源:submit.php

示例12: config

 public static function config($data = array(), $k = '_XNX_')
 {
     echo \GCore\Helpers\Html::formStart('original_element_config single_element_config', 'custom_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::formLine('Form[extras][fields][' . $k . '][load_editor]', array('type' => 'button', 'class' => 'btn btn-primary', 'value' => l_('CF_LOAD_EDITOR'), 'onclick' => 'toggleEditor(this, \'custom_field_code_' . $k . '\');'));
     //echo \GCore\Helpers\Html::input('Form[extras][fields]['.$k.'][code]', array('type' => 'hidden', 'alt' => 'ghost', 'value' => 'My custom code here'));
     echo \GCore\Helpers\Html::input('Form[extras][fields][' . $k . '][name]', array('type' => 'hidden', 'alt' => 'ghost', 'value' => 'custom'));
     echo \GCore\Helpers\Html::input('Form[extras][fields][' . $k . '][render_type]', array('type' => 'hidden', 'alt' => 'ghost', 'value' => 'custom'));
     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();
 }
开发者ID:ejailesb,项目名称:repo_empr,代码行数:18,代码来源:custom.php

示例13: config

 public static function config($data = array(), $k = '_XNX_')
 {
     echo \GCore\Helpers\Html::formStart('original_element_config single_element_config', 'recaptcha_origin_config');
     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 . '][name]', array('type' => 'hidden', 'alt' => 'ghost', 'value' => 'recaptcha'));
     echo \GCore\Helpers\Html::input('Form[extras][fields][' . $k . '][render_type]', array('type' => 'hidden', 'alt' => 'ghost', 'value' => 'recaptcha'));
     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();
 }
开发者ID:ejailesb,项目名称:repo_empr,代码行数:18,代码来源:recaptcha.php

示例14: config

 public static function config($data = array(), $k = '{N}')
 {
     echo \GCore\Helpers\Html::formStart('original_element_config', 'container_origin_config');
     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 . ']', str_replace('{N}', $k, $params));
     }
     //echo \GCore\Helpers\Html::input('Form[extras][fields]['.$k.'][code]', array('type' => 'hidden', 'alt' => 'ghost', 'value' => 'My container code here'));
     echo \GCore\Helpers\Html::input('Form[extras][fields][' . $k . '][name]', array('type' => 'hidden', 'alt' => 'ghost', 'value' => 'container'));
     echo \GCore\Helpers\Html::input('Form[extras][fields][' . $k . '][render_type]', array('type' => 'hidden', 'alt' => 'ghost', 'value' => 'container'));
     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 . '][size][width]', array('type' => 'hidden', 'class' => 'fields_container_width', 'id' => 'fields_container_' . $k . '_width', 'value' => '99'));
     echo \GCore\Helpers\Html::input('Form[extras][fields][' . $k . '][collapsed]', array('type' => 'hidden', 'class' => 'fields_container_collapsed', 'id' => 'fields_container_' . $k . '_collapsed', 'value' => '0'));
     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();
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:19,代码来源:container.php

示例15: execute

    function execute(&$form, $action_id)
    {
        $config = $form->actions_config[$action_id];
        $config = new \GCore\Libs\Parameter($config);
        $session = \GCore\Libs\Base::getSession();
        //extract questions
        $field_name = \GCore\Libs\Str::rand();
        $session_key = $config->get('session_key', '');
        if (empty($session_key)) {
            $session_key = $form->form['Form']['title'];
        }
        $session->set('chrono_honeypot_' . $session_key, array('name' => $field_name, 'time' => time()));
        $field_code = \GCore\Helpers\Html::input($field_name, array('type' => 'hidden', 'value' => 1));
        if ($config->get('method', 'static') == 'static') {
            $form->form['Form']['content'] = $form->form['Form']['content'] . $field_code;
        } else {
            $doc = \GCore\Libs\Document::getInstance();
            $doc->addJsCode('
			jQuery(document).ready(function($){
				$("#chronoform-' . $form->form['Form']['title'] . '").append(\'' . $field_code . '\');
			});
			');
        }
    }
开发者ID:ejailesb,项目名称:repo_empr,代码行数:24,代码来源:load_honeypot.php


注:本文中的GCore\Helpers\Html::input方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。