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


PHP yit_field_name函数代码示例

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


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

示例1: display

	/**
	 * Load and print the correspondent field type.
	 * 
	 * @param @field
	 * @return string
	 */
	public static function display( $value, $dep ) {            
		ob_start(); ?>
			<div id="<?php echo $value['id_container'] ?>" <?php if($dep): ?>data-field="<?php echo $dep['field'] ?>" data-dep="<?php echo $dep['dep'] ?>" data-value="<?php echo $dep['value'] ?>" <?php endif ?>class="yit_options rm_option rm_input rm_text rm_connectedlist">
                <div class="option">
                    <label for="<?php echo $value['id'] ?>"><?php echo $value['name'] ?></label>

					<?php $yit_option = json_decode( stripslashes( yit_get_option( $value['id'] ) ), true ); ?>
					<?php $value['lists'] = is_array($yit_option) ? $yit_option : $value['lists']; ?>

					<?php foreach( $value['lists'] as $list=>$options ): ?>
					<div class="list_container">
						<h4><?php echo $value['heads'][$list] ?></h4>
						<ul id="list_<?php echo $list ?>" class="connectedSortable" data-list="<?php echo $list ?>">
							<?php foreach( $options as $option=>$label ): ?>
	                    		<li data-option="<?php echo $option ?>" class="ui-state-default"><?php echo $label ?></li>
	                    	<?php endforeach ?>
	                    </ul>
                    </div>
					<?php endforeach ?>
					<input type="hidden" name="<?php yit_field_name( $value['id'] ) ?>" id="<?php echo $value['id'] ?>" value='<?php echo yit_get_option( $value['id'] ) ?>' />
                </div>
                <div class="description">
                    <?php echo $value['desc'] ?>
                </div>
                <div class="clear"></div>
            </div>
        <?php
		return ob_get_clean();
	}
开发者ID:simonsays88,项目名称:costa,代码行数:35,代码来源:Connectedlist.php

示例2: display

    /**
     * Load and print the correspondent field type.
     * 
     * @param @field
     * @return string
     */
    public static function display($value, $dep)
    {
        ob_start();
        ?>
			<div id="<?php 
        echo $value['id_container'];
        ?>
" <?php 
        if ($dep) {
            ?>
data-field="<?php 
            echo $dep['field'];
            ?>
" data-dep="<?php 
            echo $dep['dep'];
            ?>
" data-value="<?php 
            echo $dep['value'];
            ?>
" <?php 
        }
        ?>
class="yit_options rm_option rm_input rm_text">
                <div class="option">
                <label for="<?php 
        echo $value['id'];
        ?>
"><?php 
        echo $value['name'];
        ?>
</label>
                <input type="text" name="<?php 
        yit_field_name($value['id']);
        ?>
" id="<?php 
        echo $value['id'];
        ?>
" value="<?php 
        echo yit_get_option($value['id']);
        ?>
" />
                <input type="submit" value="<?php 
        echo $value['submit'];
        ?>
" id="<?php 
        echo $value['id'];
        ?>
-button" class="input_button button" />
                </div>
                <div class="description">
                    <?php 
        echo $value['desc'];
        ?>
                </div>
                <div class="clear"></div>
            </div>
        <?php 
        return ob_get_clean();
    }
开发者ID:eugenehiggins,项目名称:wellnessrx,代码行数:65,代码来源:Textsubmit.php

示例3: display

    /**
     * Load and print the correspondent field type.
     * 
     * @param @field
     * @return string
     */
    public static function display($value, $dep)
    {
        ob_start();
        ?>
			<div id="<?php 
        echo $value['id_container'];
        ?>
" <?php 
        if ($dep) {
            ?>
data-field="<?php 
            echo $dep['field'];
            ?>
" data-dep="<?php 
            echo $dep['dep'];
            ?>
" data-value="<?php 
            echo $dep['value'];
            ?>
" <?php 
        }
        ?>
class="yit_options rm_option rm_input rm_checkbox">
                <div class="option">
                    <label for="<?php 
        echo $value['id'];
        ?>
"><?php 
        echo $value['name'];
        ?>
</label>
                    <input type="checkbox" class="checkbox-inline" name="<?php 
        yit_field_name($value['id']);
        ?>
" id="<?php 
        echo $value['id'];
        ?>
" value="1" <?php 
        checked(yit_get_option($value['id']), true);
        ?>
 /> <label for="<?php 
        echo $value['id'];
        ?>
"><?php 
        echo $value['name'];
        ?>
</label>
                </div>
                <div class="description">
                    <?php 
        echo $value['desc'];
        ?>
                </div>
                <div class="clear"></div>
            </div>
        <?php 
        return ob_get_clean();
    }
开发者ID:jayeshnair,项目名称:ctp,代码行数:64,代码来源:Checkbox.php

示例4: display

    /**
     * Load and print the correspondent field type.
     * 
     * @param @field
     * @return string
     */
    public static function display($value, $dep)
    {
        ob_start();
        ?>
			<div id="<?php 
        echo $value['id_container'];
        ?>
" <?php 
        if ($dep) {
            ?>
data-field="<?php 
            echo $dep['field'];
            ?>
" data-dep="<?php 
            echo $dep['dep'];
            ?>
" data-value="<?php 
            echo $dep['value'];
            ?>
" <?php 
        }
        ?>
class="yit_options rm_option rm_input rm_text">
                <div class="option">
                <label for="<?php 
        echo $value['id'];
        ?>
"><?php 
        echo $value['name'];
        ?>
</label>
                <textarea name="<?php 
        yit_field_name($value['id']);
        ?>
" id="<?php 
        echo $value['id'];
        ?>
" cols="" rows=""><?php 
        echo yit_get_option($value['id']);
        ?>
</textarea>
                </div>
                <div class="description">
				<?php 
        echo $value['desc'];
        ?>
                </div>
                <div class="clear"></div>
            </div>
        <?php 
        return ob_get_clean();
    }
开发者ID:zgomotos,项目名称:Bazar,代码行数:58,代码来源:Textarea.php

示例5: display

	/**
	 * Load and print the correspondent field type.
	 * 
	 * @param @field
	 * @return string
	 */
	public static function display( $value, $dep ) {

        $option_value  = yit_get_option( $value['id'] );
        $width  = 160;
        $height = 160;
        $crop   = '';

        if ( is_array( $option_value ) ) {
            if ( isset( $option_value['width'] ) ) {
                $width = $option_value['width'];
            }
            if ( isset( $option_value['height'] ) ) {
                $height = $option_value['height'];
            }
            if ( isset( $option_value['crop'] ) ) {
                if( $option_value['crop'] == '1' || $option_value['crop']==true ) {
                    $crop   = 'value="1" checked';
                }
            }
        }

		ob_start(); ?>
			<div id="<?php echo $value['id_container'] ?>" <?php if($dep): ?>data-field="<?php echo $dep['field'] ?>" data-dep="<?php echo $dep['dep'] ?>" data-value="<?php echo $dep['value'] ?>" <?php endif ?>class="yit_options rm_option rm_image_size">
                <div class="option">
                    <label for="<?php echo $value['id'] ?>"><?php echo $value['name'] ?></label>
                    <input name="<?php yit_field_name( $value['id'] ); ?>[width]" id="<?php yit_field_name( $value['id'] ); ?>-width" type="text" size="3"
                           value="<?php echo $width; ?>" /> &times;
                    <input name="<?php yit_field_name( $value['id'] ); ?>[height]" id="<?php yit_field_name( $value['id'] ); ?>-height" type="text" size="3"
                           value="<?php echo $height; ?>" />px

                    <input name="<?php  yit_field_name( $value['id'] ); ?>[crop]" id="<?php  yit_field_name( $value['id'] ); ?>-crop" type="checkbox"
                            <?php echo $crop; ?> /> <?php _e( 'Hard Crop?', 'yit' ); ?>

                </div>
                <div class="description">
                    <?php echo $value['desc'] ?>
                </div>
                <div class="clear"></div>
            </div>
        <?php
		return ob_get_clean();
	}
开发者ID:simonsays88,项目名称:costa,代码行数:48,代码来源:ImageSize.php

示例6: display

	/**
	 * Load and print the correspondent field type.
	 * 
	 * @param @field
	 * @return string
	 */
	public static function display( $value, $dep ) {
		$config = YIT_Config::load();
		
		$area = isset($value['area']) ? $value['area'] : 'body';
		
		$bg = yit_get_option( $value['id'] );
		
		ob_start(); ?>
			<div id="<?php echo $value['id_container'] ?>" <?php if($dep): ?>data-field="<?php echo $dep['field'] ?>" data-dep="<?php echo $dep['dep'] ?>" data-value="<?php echo $dep['value'] ?>" <?php endif ?>class="yit_options rm_option rm_input rm_select rm_bg-preview">
                <div class="option">
	                <label for="<?php echo $value['id'] ?>"><?php echo $value['name'] ?></label>
	                
	                <div class="select_wrapper" style="margin-right: 30px">
	                    <select name="<?php yit_field_name( $value['id'] ); ?>[image]" id="<?php echo $value['id'] ?>_image">
                            <option value=""><?php _e( 'Select a background', 'yit' ) ?></option>
	                        <?php foreach ( $config[ $area . '_backgrounds'] as $val => $option ): ?>
	                            <option value="<?php echo $val ?>"<?php selected( $bg['image'], $val ) ?>><?php echo $option; ?></option>
	                        
	                        <?php endforeach; ?>
	                    </select>
	                </div>

	                <div id="<?php echo $value['id'] ?>_color_container" class="colorpicker_container"><div style="background-color: <?php echo $bg['color'] ?>"></div></div>
    	            <input type="text" name="<?php yit_field_name( $value['id'] ) ?>[color]" id="<?php echo $value['id'] ?>_color" style="width:90px" value="<?php echo $bg['color'] ?>" />



	                <div class="clear"></div>
	                <div class="bg-preview" id="<?php echo $value['id'] ?>_preview"><div style="background: <?php echo $bg['color']; if($bg['image'] != 'custom'): ?> url('<?php echo $bg['image'] ?>') 50% 0<?php endif ?>"></div></div>

                </div>
                <div class="description">
				<?php echo $value['desc'] ?> <?php printf( __( '(Default: %s)', 'yit' ), ( !empty( $value['std']['image'] ) ? $value['std']['image'] . ', ' : '' ) . $value['std']['color'] ) ?>
                </div>
                <div class="clear"></div>
            </div>
        <?php
		return ob_get_clean();
	}
开发者ID:simonsays88,项目名称:costa,代码行数:45,代码来源:Bgpreview.php

示例7: display

    /**
     * Load and print the correspondent field type.
     * 
     * @param @field
     * @return string
     */
    public static function display($value, $dep)
    {
        $config = YIT_Config::load();
        $area = isset($value['area']) ? $value['area'] : 'body';
        $bg = yit_get_option($value['id']);
        ob_start();
        ?>
			<div id="<?php 
        echo $value['id_container'];
        ?>
" <?php 
        if ($dep) {
            ?>
data-field="<?php 
            echo $dep['field'];
            ?>
" data-dep="<?php 
            echo $dep['dep'];
            ?>
" data-value="<?php 
            echo $dep['value'];
            ?>
" <?php 
        }
        ?>
class="yit_options rm_option rm_input rm_select rm_bg-preview">
                <div class="option">
	                <label for="<?php 
        echo $value['id'];
        ?>
"><?php 
        echo $value['name'];
        ?>
</label>
	                
	                <div class="select_wrapper" style="margin-right: 30px">
	                    <select name="<?php 
        yit_field_name($value['id']);
        ?>
[image]" id="<?php 
        echo $value['id'];
        ?>
_image">
                            <option value=""><?php 
        _e('Select a background', 'yit');
        ?>
</option>
	                        <?php 
        foreach ($config[$area . '_backgrounds'] as $val => $option) {
            ?>
	                            <option value="<?php 
            echo $val;
            ?>
"<?php 
            selected($bg['image'], $val);
            ?>
><?php 
            echo $option;
            ?>
</option>
	                        
	                        <?php 
        }
        ?>
	                    </select>
	                </div>

	                <div id="<?php 
        echo $value['id'];
        ?>
_color_container" class="colorpicker_container"><div style="background-color: <?php 
        echo $bg['color'];
        ?>
"></div></div>
    	            <input type="text" name="<?php 
        yit_field_name($value['id']);
        ?>
[color]" id="<?php 
        echo $value['id'];
        ?>
_color" style="width:90px" value="<?php 
        echo $bg['color'];
        ?>
" />



	                <div class="clear"></div>
	                <div class="bg-preview" id="<?php 
        echo $value['id'];
        ?>
_preview"><div style="background: <?php 
        echo $bg['color'];
        ?>
//.........这里部分代码省略.........
开发者ID:gloomyghost,项目名称:Tip-Top-Art,代码行数:101,代码来源:Bgpreview.php

示例8: display

    /**
     * Load and print the correspondent field type.
     * 
     * @param @field
     * @return string
     */
    public static function display($value, $dep)
    {
        $pags = $value['value'];
        $class = $descr = $ext = '';
        $cols = 1;
        $heads = false;
        if (isset($value['cols']) && $value['cols']) {
            $heads = false;
            if (isset($value['heads'])) {
                $heads = true;
            }
            $cols = $value['cols'];
            $class = ' small';
        }
        ob_start();
        ?>
			<div id="<?php 
        echo $value['id_container'];
        ?>
" <?php 
        if ($dep) {
            ?>
data-field="<?php 
            echo $dep['field'];
            ?>
" data-dep="<?php 
            echo $dep['dep'];
            ?>
" data-value="<?php 
            echo $dep['value'];
            ?>
" <?php 
        }
        ?>
class="yit_options rm_option rm_input rm_multi_checkbox">
                <label for="<?php 
        echo $value['id'];
        ?>
"><?php 
        echo $value['name'];
        if ($cols > 1) {
            ?>
<small><?php 
            echo $value['desc'];
            ?>
</small><?php 
        }
        ?>
</label>
                
				<?php 
        for ($i = 1; $i <= $cols; $i++) {
            $ext = $cols > 1 ? "{$i}" : '';
            ?>
  
                <ul id="<?php 
            echo $value['id'] . $ext;
            ?>
" class="list-sortable<?php 
            echo $class;
            ?>
">  
        				
                        <?php 
            if ($heads) {
                echo '<li class="head">' . $value['heads'][$i - 1] . '</li>';
            }
            $c = 0;
            foreach ($pags as $k => $pag) {
                ?>
                        
                        	<li>
			                	<label class="radio-inline">
									<input type="checkbox" name="<?php 
                yit_field_name($value['id']);
                ?>
[]" value="<?php 
                echo $k;
                ?>
" <?php 
                if (yit_get_option($value['id']) && in_array($k, yit_get_option($value['id']))) {
                    ?>
 checked="checked"<?php 
                }
                ?>
 id="<?php 
                echo $value['id'];
                ?>
-<?php 
                echo $pag;
                ?>
" />&nbsp;
									<?php 
                echo $pag;
//.........这里部分代码省略.........
开发者ID:eugenehiggins,项目名称:wellnessrx,代码行数:101,代码来源:Checklist.php

示例9: display

    /**
     * Load and print the correspondent field type.
     * 
     * @param @field
     * @return string
     */
    public static function display($value, $dep)
    {
        ob_start();
        ?>
			<div id="<?php 
        echo $value['id_container'];
        ?>
" <?php 
        if ($dep) {
            ?>
data-field="<?php 
            echo $dep['field'];
            ?>
" data-dep="<?php 
            echo $dep['dep'];
            ?>
" data-value="<?php 
            echo $dep['value'];
            ?>
" <?php 
        }
        ?>
class="slider_container yit_options rm_option rm_input slider_control slider">
                <div class="option">
                <label for="<?php 
        echo $value['id'];
        ?>
"><?php 
        echo $value['name'];
        ?>
</label>

				<?php 
        $labels = isset($value['label']) ? ' ' . $value['label'] : '';
        ?>
                <div class="ui-slider">
                    <span class="minCaption"><?php 
        echo $value['min'] . $labels;
        ?>
</span>
                    <span class="maxCaption"><?php 
        echo $value['max'] . $labels;
        ?>
</span>
                    <span id="<?php 
        echo $value['id'];
        ?>
-feedback" class="feedback"><strong><?php 
        echo yit_get_option($value['id'], $value['std']) . $labels;
        ?>
</strong></span>
                    
                    <div id="<?php 
        echo $value['id'];
        ?>
-div" data-step="<?php 
        echo isset($value['step']) ? $value['step'] : 1;
        ?>
" data-labels="<?php 
        echo $labels;
        ?>
" data-min="<?php 
        echo $value['min'];
        ?>
" data-max="<?php 
        echo $value['max'];
        ?>
" data-val="<?php 
        echo yit_get_option($value['id'], $value['std']);
        ?>
" class="ui-slider ui-slider-horizontal ui-widget ui-widget-content ui-corner-all">
                        <input id="<?php 
        echo $value['id'];
        ?>
" type="hidden" name="<?php 
        yit_field_name($value['id']);
        ?>
" value="<?php 
        echo yit_get_option($value['id'], $value['std']);
        ?>
" />
                    </div> 
                </div> 

                </div>
                <div class="description">
				<?php 
        echo $value['desc'];
        ?>
 <?php 
        printf(__('(Default: %s)', 'yit'), $value['std']);
        ?>
                </div>
                <div class="clear"></div>
//.........这里部分代码省略.........
开发者ID:eugenehiggins,项目名称:wellnessrx,代码行数:101,代码来源:Slider.php

示例10: display

    /**
     * Load and print the correspondent field type.
     * 
     * @param @field
     * @return string
     */
    public static function display($value, $dep)
    {
        ob_start();
        ?>
			<div id="<?php 
        echo $value['id_container'];
        ?>
" <?php 
        if ($dep) {
            ?>
data-field="<?php 
            echo $dep['field'];
            ?>
" data-dep="<?php 
            echo $dep['dep'];
            ?>
" data-value="<?php 
            echo $dep['value'];
            ?>
" <?php 
        }
        ?>
class="onoff_container yit_options rm_option rm_input rm_onoff">
                <div class="option">
                    <label><?php 
        echo $value['name'];
        ?>
</label>
                    <input type="checkbox" name="<?php 
        yit_field_name($value['id']);
        ?>
" id="<?php 
        echo $value['id'];
        ?>
" value="<?php 
        echo 1 * yit_get_option($value['id']);
        ?>
" <?php 
        checked(1 * yit_get_option($value['id']), 1);
        ?>
 class="on_off<?php 
        if (1 * yit_get_option($value['id'])) {
            ?>
 onoffchecked<?php 
        }
        ?>
" />
                    <span>&nbsp;</span>
                </div>
                <div class="description">
				<?php 
        echo $value['desc'];
        ?>
 <?php 
        printf(__('(Default: %s)', 'yit'), $value['std'] ? __('On', 'yit') : __('Off', 'yit'));
        ?>
                </div>
                <div class="clear"></div>
            </div>
        <?php 
        return ob_get_clean();
    }
开发者ID:eugenehiggins,项目名称:wellnessrx,代码行数:68,代码来源:Onoff.php

示例11: display

    /**
     * Load and print the correspondent field type.
     * 
     * @param @field
     * @return string
     */
    public static function display($value, $dep)
    {
        $config = YIT_Config::load();
        $icon_value = maybe_unserialize(yit_get_option($value['id'], $value['std']));
        if (!is_array($icon_value)) {
            $icon_value = array('icon' => $icon_value, 'custom' => '');
        }
        $explode_std = isset($value['std']['icon']) ? explode('-', $value['std']['icon']) : array();
        ob_start();
        ?>
			<div id="<?php 
        echo $value['id_container'];
        ?>
" <?php 
        if ($dep) {
            ?>
data-field="<?php 
            echo $dep['field'];
            ?>
" data-dep="<?php 
            echo $dep['dep'];
            ?>
" data-value="<?php 
            echo $dep['value'];
            ?>
" <?php 
        }
        ?>
class="yit_options rm_option rm_input rm_text">
                <div class="option">
                <label for="<?php 
        echo $value['id'];
        ?>
"><?php 
        echo $value['name'];
        ?>
</label>
                
                <div class="select_wrapper">
                    <select name="<?php 
        yit_field_name($value['id']);
        ?>
[icon]" id="<?php 
        echo $value['id'];
        ?>
">
                        <?php 
        foreach ($config['awesome_icons'] as $val => $option) {
            ?>
                            <option value="<?php 
            echo $val;
            ?>
"<?php 
            selected($icon_value['icon'], $val);
            ?>
><?php 
            echo $option;
            ?>
</option>
                        
                        <?php 
        }
        ?>
                    </select>
                </div>
                <div class="icon-preview"><span class="<?php 
        echo $icon_value['icon'];
        ?>
"></span></div>
                
                <?php 
        if (isset($value['upload']) && $value['upload']) {
            ?>
				<div class="clearboth"></div>
				
				<div class="upload-button">
				    <?php 
            _e('or upload your own icon:', 'yit');
            ?>
				    <input type="text" style="width:200px;" id="<?php 
            echo $value['id'];
            ?>
_custom" name="<?php 
            yit_field_name($value['id']);
            ?>
[custom]" value="<?php 
            if (isset($icon_value['custom'])) {
                echo $icon_value['custom'];
            }
            ?>
" />
				    <a href="#" class="button-secondary" id="<?php 
            echo $value['id'];
            ?>
//.........这里部分代码省略.........
开发者ID:allyeastman,项目名称:studio-sapphire,代码行数:101,代码来源:Selecticon.php

示例12: display

    /**
     * Load and print the correspondent field type.
     * 
     * @param @field
     * @return string
     * @todo check why if the fields is empty, then prints 1 (string value)
     */
    public static function display($value, $dep)
    {
        ob_start();
        ?>
            <div id="<?php 
        echo $value['id_container'];
        ?>
" <?php 
        if ($dep) {
            ?>
data-field="<?php 
            echo $dep['field'];
            ?>
" data-dep="<?php 
            echo $dep['dep'];
            ?>
" data-value="<?php 
            echo $dep['value'];
            ?>
" <?php 
        }
        ?>
class="yit_options rm_option rm_input rm_text rm_upload">
                <div class="option">
                    <label for="<?php 
        echo $value['id'];
        ?>
"><?php 
        echo $value['name'];
        ?>
</label>
                    <input type="text" name="<?php 
        yit_field_name($value['id']);
        ?>
" id="<?php 
        echo $value['id'];
        ?>
" value="<?php 
        echo yit_get_option($value['id']) == '1' ? '' : yit_get_option($value['id']);
        ?>
" class="upload_img_url" />
                    <input type="button" value="<?php 
        _e('Upload', 'yit');
        ?>
" id="<?php 
        echo $value['id'];
        ?>
-button" class="upload_button button" />
                </div>
                <div class="clear"></div>
                <div class="description"><?php 
        echo $value['desc'];
        ?>
</div>
                <div class="clear"></div>
                <div class="upload_img_preview" style="margin-top:10px;">
                    <?php 
        $file = yit_get_option($value['id']);
        if (preg_match('/(jpg|jpeg|png|gif|ico)$/', $file)) {
            echo "<img src=\"" . YIT_CORE_ASSETS_URL . "/images/sleep.png\" data-src=\"{$file}\" />";
        }
        ?>
                </div>
            </div>
        <?php 
        return ob_get_clean();
    }
开发者ID:eugenehiggins,项目名称:wellnessrx,代码行数:74,代码来源:Upload.php

示例13: display

    /**
     * Load and print the correspondent field type.
     * 
     * @param @field
     * @return string
     */
    public static function display($value, $dep)
    {
        ob_start();
        ?>
			<div id="<?php 
        echo $value['id_container'];
        ?>
" <?php 
        if ($dep) {
            ?>
data-field="<?php 
            echo $dep['field'];
            ?>
" data-dep="<?php 
            echo $dep['dep'];
            ?>
" data-value="<?php 
            echo $dep['value'];
            ?>
" <?php 
        }
        ?>
class="yit_options rm_option rm_input rm_radio">
                <div class="option">
                    <label for="<?php 
        echo $value['id'];
        ?>
"><?php 
        echo $value['name'];
        ?>
</label>
                    
                    <div class="rm_radio">
                    <?php 
        foreach ($value['options'] as $val => $option) {
            ?>
                    	<label class="radio-inline">
                        	<input type="radio" name="<?php 
            yit_field_name($value['id']);
            ?>
" id="<?php 
            echo $value['id'] . '-' . $val;
            ?>
" value="<?php 
            echo $val;
            ?>
" <?php 
            checked(yit_get_option($value['id']), $val);
            ?>
 /> <?php 
            echo $option;
            ?>
                    	</label>
    				<?php 
        }
        ?>
                    </div>
                </div>
                <div class="description"><?php 
        echo $value['desc'];
        ?>
</div>
                <div class="clear"></div>
            </div>
        <?php 
        return ob_get_clean();
    }
开发者ID:eugenehiggins,项目名称:wellnessrx,代码行数:73,代码来源:Radio.php

示例14: display

    /**
     * Load and print the correspondent field type.
     * 
     * @param @field
     * @return string
     */
    public static function display($value, $dep)
    {
        ob_start();
        ?>
			<div id="<?php 
        echo $value['id_container'];
        ?>
" <?php 
        if ($dep) {
            ?>
data-field="<?php 
            echo $dep['field'];
            ?>
" data-dep="<?php 
            echo $dep['dep'];
            ?>
" data-value="<?php 
            echo $dep['value'];
            ?>
" <?php 
        }
        ?>
class="yit_options rm_option rm_input rm_text">
                <div class="option">
                    <label for="<?php 
        echo $value['id'];
        ?>
"><?php 
        echo $value['name'];
        ?>
</label>
                    <input type="text" name="<?php 
        yit_field_name($value['id']);
        ?>
" id="<?php 
        echo $value['id'];
        ?>
" <?php 
        if (!isset($value['button'])) {
            ?>
value="<?php 
            echo str_replace('"', "'", yit_get_option($value['id']));
            ?>
"<?php 
        }
        ?>
  />
                    
                    <?php 
        if (isset($value['button'])) {
            ?>
					<input type="submit" value="<?php 
            echo $value['button'];
            ?>
" class="button" name="button_save" id="<?php 
            echo $value['id'];
            ?>
_save">
					<?php 
        }
        ?>
                </div>
                <div class="description">
                    <?php 
        echo $value['desc'];
        ?>
                </div>
                <div class="clear"></div>
            </div>
        <?php 
        return ob_get_clean();
    }
开发者ID:jayeshnair,项目名称:ctp,代码行数:78,代码来源:Text.php

示例15: display

    /**
     * Load and print the correspondent field type.
     * 
     * @param @field
     * @return string
     */
    public static function display($value, $dep)
    {
        ob_start();
        ?>
			<div id="<?php 
        echo $value['id_container'];
        ?>
" <?php 
        if ($dep) {
            ?>
data-field="<?php 
            echo $dep['field'];
            ?>
" data-dep="<?php 
            echo $dep['dep'];
            ?>
" data-value="<?php 
            echo $dep['value'];
            ?>
" <?php 
        }
        ?>
class="yit_options rm_option rm_input rm_sidebarlayout">
                <div class="option">
                    <label for="<?php 
        echo $value['id'];
        ?>
"><?php 
        echo $value['name'];
        ?>
</label>
                    
                    <div class="rm_radio yit-sidebar-layout">
                       	<input type="radio" name="<?php 
        yit_field_name($value['id']);
        ?>
" id="<?php 
        echo $value['id'] . '-left';
        ?>
" value="sidebar-left" <?php 
        checked(yit_get_option($value['id']), 'sidebar-left');
        ?>
 />
                        <img src="<?php 
        echo YIT_CORE_ASSETS_URL;
        ?>
/images/sideleft.png" title="<?php 
        _e('Left sidebar', 'yit');
        ?>
" alt="<?php 
        _e('Left sidebar', 'yit');
        ?>
" />
                        
                        <input type="radio" name="<?php 
        yit_field_name($value['id']);
        ?>
" id="<?php 
        echo $value['id'] . '-no';
        ?>
" value="sidebar-no" <?php 
        checked(yit_get_option($value['id']), 'sidebar-no');
        ?>
 />
                        <img src="<?php 
        echo YIT_CORE_ASSETS_URL;
        ?>
/images/noside.png" title="<?php 
        _e('No sidebar', 'yit');
        ?>
" alt="<?php 
        _e('No sideabr', 'yit');
        ?>
" />
                        
                        <input type="radio" name="<?php 
        yit_field_name($value['id']);
        ?>
" id="<?php 
        echo $value['id'] . '-right';
        ?>
" value="sidebar-right" <?php 
        checked(yit_get_option($value['id']), 'sidebar-right');
        ?>
 />
                        <img src="<?php 
        echo YIT_CORE_ASSETS_URL;
        ?>
/images/sideright.png" title="<?php 
        _e('Right sidebar', 'yit');
        ?>
" alt="<?php 
        _e('Right sidebar', 'yit');
        ?>
//.........这里部分代码省略.........
开发者ID:eugenehiggins,项目名称:wellnessrx,代码行数:101,代码来源:Sidebarlayout.php


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