コード例 #1
0
ファイル: item.php プロジェクト: vuchannguyen/dayhoc
 function getInput()
 {
     return JElementItem::fetchElement($this->name, $this->value, $this->element, $this->options['control']);
 }
コード例 #2
0
ファイル: form.php プロジェクト: jakesyl/flexicontent
				<br/><?php 
            echo JText::_($this->item->language == '*' ? 'FLEXI_ORIGINAL_CONTENT_ALL_LANGS' : 'FLEXI_ORIGINAL_TRANSLATION_CONTENT');
            ?>
				<input type="hidden" name="lang_parent_id" id="lang_parent_id" value="<?php 
            echo $this->item->id;
            ?>
" />
			<?php 
        } else {
            ?>
				<?php 
            if (in_array('mod_item_lang', $allowlangmods_fe) || $isnew || $this->item->id == $this->item->lang_parent_id) {
                require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_flexicontent' . DS . 'elements' . DS . 'item.php';
                $attrs = array('type' => "item", 'label' => "FLEXI_ORIGINAL_CONTENT_ITEM", 'description' => "FLEXI_ORIGINAL_CONTENT_ITEM_DESC", 'langparent_item' => "1", 'type_id' => $typeid, 'created_by' => $this->item->created_by, 'class' => "inputbox", 'size' => "6");
                $jelement = new JSimpleXMLElement('lang_parent_id', $attrs);
                $ff_lang_parent_id = new JElementItem();
                //echo '<small>'.JText::_( 'FLEXI_ORIGINAL_CONTENT_IGNORED_IF_DEFAULT_LANG' ).'</small><br/>';
                echo $ff_lang_parent_id->fetchElement('lang_parent_id', $this->item->lang_parent_id, $jelement, '');
                ?>
					<span class="editlinktip hasTip" style="display:inline-block;" title="<?php 
                echo htmlspecialchars(JText::_('FLEXI_NOTES'), ENT_COMPAT, 'UTF-8');
                ?>
::<?php 
                echo htmlspecialchars(JText::_('FLEXI_ORIGINAL_CONTENT_IGNORED_IF_DEFAULT_LANG'), ENT_COMPAT, 'UTF-8');
                ?>
">
						<?php 
                echo $infoimage;
                ?>
					</span>
				<?php