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


PHP l_函数代码示例

本文整理汇总了PHP中l_函数的典型用法代码示例。如果您正苦于以下问题:PHP l_函数的具体用法?PHP l_怎么用?PHP l_使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

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

示例2: 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 
    }
开发者ID:BillVGN,项目名称:PortalPRP,代码行数:29,代码来源:core.php

示例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();
 }
开发者ID:ejailesb,项目名称:repo_empr,代码行数:25,代码来源:load_nocaptcha.php

示例4: 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

示例5: 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

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

示例7: config_check

 public static function config_check($data = array())
 {
     $diags = array();
     //$diags[l_('CF_DIAG_ENABLED')] = !empty($data['enabled']);
     $diags[l_('CF_DIAG_TARGET_URL')] = !empty($data['target_url']);
     return $diags;
 }
开发者ID:joecacti,项目名称:diversebuild,代码行数:7,代码来源:curl.php

示例8: 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 
    }
开发者ID:BillVGN,项目名称:PortalPRP,代码行数:35,代码来源:hits.php

示例9: config

 public static function config()
 {
     echo \GCore\Helpers\Html::formStart('action_config event_loop_action_config', 'event_loop_action_config_{N}');
     echo \GCore\Helpers\Html::formSecStart();
     echo \GCore\Helpers\Html::formLine('Form[extras][actions_config][{N}][event]', array('type' => 'text', 'label' => l_('CF_EVENTLOOP_EVENT'), 'value' => 'load', 'class' => 'M', 'sublabel' => l_('CF_EVENTLOOP_EVENT_DESC')));
     echo \GCore\Helpers\Html::formSecEnd();
     echo \GCore\Helpers\Html::formEnd();
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:8,代码来源:event_loop.php

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

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

示例12: 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();
 }
开发者ID:ejailesb,项目名称:repo_empr,代码行数:8,代码来源:load_honeypot.php

示例13: config

 public static function config()
 {
     echo \GCore\Helpers\Html::formStart('action_config curl_action_config', 'curl_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();
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:8,代码来源:file_download.php

示例14: 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();
 }
开发者ID:joecacti,项目名称:diversebuild,代码行数:8,代码来源:load_security_question.php

示例15: 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();
 }
开发者ID:ejailesb,项目名称:repo_empr,代码行数:8,代码来源:check_security_question.php


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