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


PHP NextendXmlGetAttribute函数代码示例

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


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

示例1: fetchElement

 function fetchElement()
 {
     $css = NextendCss::getInstance();
     $css->addCssLibraryFile('element/fontmanager.css');
     $js = NextendJavascript::getInstance();
     $js->addLibraryJsAssetsFile('dojo', 'element.js');
     $js->addLibraryJsAssetsFile('dojo', 'element/fontmanager.js');
     $this->_value = $this->_form->get($this->_name, $this->_default);
     $hidden = new NextendElementHidden($this->_form, $this->_tab, $this->_xml);
     $html = '';
     $fontmanager = NextendFontmanager::getInstance();
     $fontmanager->_currentform = $this->_form;
     $html .= $fontmanager->render();
     $html .= '<a id="nextend-' . $this->_name . '-button" class="nextend-font-button" href="#">Font</a>';
     $html .= '<a id="nextend-' . $this->_name . '-button-export" class="nextend-button-css nextend-font-export nextend-element-hastip" title="Export" href="#"></a>';
     $html .= '<a id="nextend-' . $this->_name . '-button-import" class="nextend-button-css nextend-font-import nextend-element-hastip" title="Import" href="#"></a>';
     $html .= '<div id="nextend-' . $this->_name . '-message" class="nextend-message"></div>';
     $html .= "<div class='nextend-fontmanager clearfix'>";
     $hiddenhtml = $hidden->render($this->control_name);
     $html .= $hiddenhtml[1];
     $html .= "</div>";
     $tabs = explode('|', NextendXmlGetAttribute($this->_xml, 'tabs'));
     $js->addLibraryJs('dojo', '
         new NextendElementFontmanager({
             hidden: "' . $this->_id . '",
             button: "nextend-' . $this->_name . '-button",
             importbtn: "nextend-' . $this->_name . '-button-import",
             exportbtn: "nextend-' . $this->_name . '-button-export",
             message: "nextend-' . $this->_name . '-message",
             tabs: ' . json_encode($tabs) . ',
             firsttab: "' . $tabs[0] . '"
         });
     ');
     return $html;
 }
开发者ID:01J,项目名称:bealtine,代码行数:35,代码来源:fontmanager.php

示例2: fetchElement

 function fetchElement()
 {
     $css = NextendCss::getInstance();
     $css->addCssLibraryFile('spectrum.css');
     $css->addCssLibraryFile('element/color.css');
     $js = NextendJavascript::getInstance();
     $js->loadLibrary('jquery');
     $js->addLibraryJsAssetsFile('jquery', 'spectrum.js');
     $js->addLibraryJsAssetsFile('dojo', 'element.js');
     $js->addLibraryJsAssetsFile('dojo', 'element/color.js');
     $this->_value = $this->_form->get($this->_name, $this->_default);
     $hidden = new NextendElementText($this->_form, $this->_tab, $this->_xml);
     $html = "<div class='nextend-color' style='" . NextendXmlGetAttribute($this->_xml, 'style') . "'>";
     $hiddenhtml = $hidden->render($this->control_name);
     $html .= $hiddenhtml[1];
     $html .= "</div>";
     $alpha = NextendXmlGetAttribute($this->_xml, 'alpha');
     if ($alpha != 1) {
         $alpha = 0;
     }
     $js->addLibraryJs('dojo', '
         new NextendElementColor({
           hidden: "' . $this->_id . '",
           alpha: ' . $alpha . '
         });
     ');
     return $html;
 }
开发者ID:01J,项目名称:bealtine,代码行数:28,代码来源:color.php

示例3: getSubFormfolder

 function getSubFormfolder($value)
 {
     if ($value != '') {
         $value .= DIRECTORY_SEPARATOR;
     }
     return $this->_form->_root . NextendXmlGetAttribute($this->_xml, 'folder') . DIRECTORY_SEPARATOR . $value;
 }
开发者ID:sangikumar,项目名称:IP,代码行数:7,代码来源:fontmatrix.php

示例4: generateOptions

 function generateOptions(&$xml)
 {
     $template = (string) $this->_xml;
     $cssfile = NextendFilesystem::translateToMediaPath(str_replace(DIRECTORY_SEPARATOR, '/', dirname($this->_form->_xmlfile)) . '/style.');
     $css = NextendCss::getInstance();
     if (NextendFilesystem::fileexists($cssfile . 'less')) {
         $css->enableLess();
         $cssfile .= 'less';
         $css->addCssFile(array($cssfile, $cssfile, array('id' => 'body')));
     } else {
         $cssfile .= 'css';
         $css->addCssFile($cssfile);
     }
     $prefix = NextendXmlGetAttribute($this->_xml, 'prefix');
     $this->_values = array();
     $html = '';
     foreach ($xml->option as $option) {
         $v = NextendXmlGetAttribute($option, 'value');
         $this->_values[] = $v;
         if ($v != -1) {
             $info = pathinfo($v);
             $class = $prefix . basename($v, '.' . $info['extension']);
             $html .= '
             <div class="nextend-radio-option nextend-imagelist-option' . $this->isSelected($v) . '">
                 ' . str_Replace('{image}', NextendUri::pathToUri($v), str_Replace('{class}', $class, $template)) . '
             </div>';
         } else {
             $html .= '<div class="nextend-radio-option' . $this->isSelected($v) . '">' . (string) $option . '</div>';
         }
     }
     return $html;
 }
开发者ID:pguilford,项目名称:vcomcc,代码行数:32,代码来源:cssimagelist.php

示例5: render

 function render($control_name)
 {
     $this->initTabs();
     $js = NextendJavascript::getInstance();
     $js->addLibraryJsAssetsFile('jquery', 'tab/tabbed.js');
     $count = count($this->_tabs);
     $id = 'nextend-tabbed-' . $this->_name;
     $active = intval(NextendXmlGetAttribute($this->_xml, 'active'));
     $active = $active > 0 ? $active - 1 : 0;
     $js->addLibraryJs('jquery', "new nextendTabTabbed('" . $id . "-container', " . $active . ")");
     echo "<div id='" . $id . "-container' class='nextend-tab nextend-tab-tabbed nextend-clearfix'>";
     echo '<div class="smartslider-greybar smartslider-button-grey">';
     $i = 0;
     foreach ($this->_tabs as $tabname => $tab) {
         echo '<div class="smartslider-toolbar-options smartslider-button-grey' . ($i == $active ? ' active' : '') . ($i == 0 ? ' first' : '') . ($i == $count - 1 ? ' last' : '') . '"><div>' . NextendText::_(NextendXmlGetAttribute($tab->_xml, 'label')) . '</div></div>';
         $i++;
     }
     echo '</div>';
     echo "<div id='" . $id . "' class='nextend-tab-tabbed-panes nextend-clearfix' style='width: " . $count * 100 . "%; margin-left: " . -$active * 100 . "%;'>";
     $i = 0;
     foreach ($this->_tabs as $tabname => $tab) {
         echo "<div class='nextend-tab-tabbed-pane' style='width: " . 100 / $count . "%; visibility: " . ($i == $active ? 'visible' : 'hidden') . ";'>";
         $tab->render($control_name);
         echo "</div>";
         $i++;
     }
     echo "</div>";
     echo "</div>";
 }
开发者ID:macconsultinggroup,项目名称:WordPress,代码行数:29,代码来源:tabbed.php

示例6: decorateElement

 function decorateElement(&$el, $out, $i)
 {
     $trclass = 'odd';
     if ($this->_i % 2) {
         $trclass = 'even';
     }
     $title = NextendXmlGetAttribute($el->_xml, 'description');
     $class = '';
     if ($title != '') {
         $class = ' nextend-hastip';
         $title = ' title="' . $title . '"';
     }
     if (NextendXmlGetAttribute($el->_xml, 'groupstart') == 1) {
         echo "<tr class='" . $trclass . " nextend-label'>";
         $this->_group = "<tr class='" . $trclass . " nextend-element'>";
     }
     echo "<td class='" . $class . "' " . $title . ">" . $out[0] . "</td>";
     $this->_group .= "<td>" . $out[1] . "</td>";
     if (NextendXmlGetAttribute($el->_xml, 'groupend') == 1) {
         echo "</tr>";
         echo $this->_group;
         echo "</tr>";
         $this->_group = '';
         $this->_i++;
     }
 }
开发者ID:Gordondalos,项目名称:smart-event,代码行数:26,代码来源:defaultverticalgroup.php

示例7: fetchElement

 function fetchElement()
 {
     $this->_values = array();
     $css = NextendCss::getInstance();
     $css->addCssLibraryFile('element/switcher.css');
     $js = NextendJavascript::getInstance();
     $js->addLibraryJsAssetsFile('dojo', 'element.js');
     $js->addLibraryJsAssetsFile('dojo', 'element/switcher.js');
     $html = "";
     $html .= "<div class='nextend-switcher' style='" . NextendXmlGetAttribute($this->_xml, 'style') . "'>";
     $html .= "<div class='nextend-switcher-vertical'>";
     $html .= "<div class='nextend-switcher-vertical-dot'>";
     $html .= "</div>";
     $html .= "</div>";
     $html .= "<div class='nextend-switcher-units'>";
     foreach ($this->_xml->unit as $unit) {
         $this->_values[] = (string) $unit->attributes()->value;
         $html .= "<span class='nextend-switcher-units-unit'>";
         $html .= NextendText::_((string) $unit);
         $html .= "</span>";
     }
     $html .= "</div>";
     $this->_value = $this->_form->get($this->_name, $this->_default);
     $hidden = new NextendElementHidden($this->_form, $this->_tab, $this->_xml);
     $hiddenhtml = $hidden->render($this->control_name, false);
     $html .= $hiddenhtml[1];
     $html .= "</div>";
     $js->addLibraryJs('dojo', '
         new NextendElementSwitcher({
           hidden: "' . $this->_id . '",
           values: ' . json_encode($this->_values) . '
         });
     ');
     return $html;
 }
开发者ID:sangikumar,项目名称:IP,代码行数:35,代码来源:switcher.php

示例8: fetchElement

 function fetchElement()
 {
     $html = '';
     $version = (string) $this->_form->_xml->version;
     $url = NextendXmlGetAttribute($this->_xml, 'url') . '&version=' . $version;
     $html .= '<iframe width="100%" frameborder="no" style="border: 0px; height: 150px;" src="' . $url . '"></iframe>';
     return $html;
 }
开发者ID:macconsultinggroup,项目名称:WordPress,代码行数:8,代码来源:dashboard.php

示例9: fetchElement

 function fetchElement()
 {
     $css = NextendCss::getInstance();
     $css->addCssLibraryFile('element/fontmanager.css');
     $js = NextendJavascript::getInstance();
     $js->addLibraryJsAssetsFile('dojo', 'element.js');
     $js->addLibraryJsAssetsFile('dojo', 'element/fontmanager.js');
     $this->_value = $this->_form->get($this->_name, $this->_default);
     if (intval(NextendXmlGetAttribute($this->_xml, 'base64'))) {
         $this->base64 = 1;
         $js->addLibraryJsFile('jquery', NEXTENDLIBRARYASSETS . 'js' . DIRECTORY_SEPARATOR . 'base64.js');
         $json = json_decode($this->_value);
         if ($json != null && $json != $this->_value) {
             $this->_value = base64_encode($this->_value);
             $this->_form->set($this->_name, $this->_value);
         }
     }
     $hidden = new NextendElementHidden($this->_form, $this->_tab, $this->_xml);
     $html = '';
     $fontmanager = NextendFontmanager::getInstance();
     $fontmanager->_currentform = $this->_form;
     $html .= $fontmanager->render();
     $html .= '<a id="nextend-' . $this->_name . '-button" class="nextend-font-button" href="#">' . NextendText::_('Font') . '</a>';
     $html .= '<a id="nextend-' . $this->_name . '-button-export" class="nextend-button-css nextend-font-export nextend-element-hastip" title="' . NextendText::_('FONTMANAGER_Export') . '" href="#"></a>';
     $html .= '<a id="nextend-' . $this->_name . '-button-import" class="nextend-button-css nextend-font-import nextend-element-hastip" title="' . NextendText::_('FONTMANAGER_Import') . '" href="#"></a>';
     $html .= '<div id="nextend-' . $this->_name . '-message" class="nextend-message"></div>';
     $html .= "<div class='nextend-fontmanager nextend-clearfix'>";
     $hiddenhtml = $hidden->render($this->control_name, false);
     $html .= $hiddenhtml[1];
     $html .= "</div>";
     $tabs = explode('|', NextendXmlGetAttribute($this->_xml, 'tabs'));
     $translatedTabs = array();
     for ($i = 0; $i < count($tabs); $i++) {
         $translatedTabs[$i] = NextendText::_($tabs[$i]);
     }
     $this->printjs = '
         new NextendElementFontmanager({
             hidden: "' . $this->_id . '",
             button: "nextend-' . $this->_name . '-button",
             importbtn: "nextend-' . $this->_name . '-button-import",
             exportbtn: "nextend-' . $this->_name . '-button-export",
             message: "nextend-' . $this->_name . '-message",
             tabs: ' . json_encode($tabs) . ',
             translatedTabs: ' . json_encode($translatedTabs) . ',
             firsttab: "' . $tabs[0] . '",
             txt: {
                 importingdone: "' . NextendText::_('FONTMANAGER_Importing_done') . '",
                 youcanimport: "' . NextendText::_('FONTMANAGER_Now_you_can_import_the_settings_of_this_font') . '"
             },
             base64: ' . $this->base64 . '
         });
     ';
     if ($this->_includeJS) {
         $js->addLibraryJs('dojo', $this->printjs);
     }
     return $html;
 }
开发者ID:macconsultinggroup,项目名称:WordPress,代码行数:57,代码来源:fontmanager.php

示例10: generateOptions

 function generateOptions(&$xml)
 {
     $html = '';
     foreach ($xml->option as $option) {
         $v = NextendXmlGetAttribute($option, 'value');
         $html .= '<option value="' . $v . '" ' . $this->isSelected($v) . '>' . ($this->_translateable ? NextendText::_((string) $option) : (string) $option) . '</option>';
     }
     return $html;
 }
开发者ID:pguilford,项目名称:vcomcc,代码行数:9,代码来源:list.php

示例11: fetchElement

 function fetchElement()
 {
     $href = "href='#' onclick='return false;'";
     $url = NextendXmlGetAttribute($this->_xml, 'url');
     if ($url) {
         $href = "href='" . $url . "' target='" . NextendXmlGetAttribute($this->_xml, 'target') . "'";
     }
     return "<a " . $href . " id='" . $this->_id . "' class='button' >" . $this->_label . "</a>";
 }
开发者ID:sangikumar,项目名称:IP,代码行数:9,代码来源:button.php

示例12: fetchElement

 function fetchElement()
 {
     $css = NextendCss::getInstance();
     $css->addCssLibraryFile('element/mixed.css');
     $js = NextendJavascript::getInstance();
     $js->addLibraryJsAssetsFile('dojo', 'element.js');
     $js->addLibraryJsAssetsFile('dojo', 'element/mixed.js');
     $this->_translateable = NextendXmlGetAttribute($this->_xml, 'translateable');
     $this->_translateable = $this->_translateable === '0' ? false : true;
     $default = explode($this->_separator, $this->_default);
     $this->_value = $this->_form->get($this->_name, $this->_default);
     $value = explode($this->_separator, $this->_value);
     $value = $value + $default;
     $html = "<div class='nextend-mixed' style='" . NextendXmlGetAttribute($this->_xml, 'style') . "'>";
     $this->_elements = array();
     $i = 0;
     foreach ($this->_xml->param as $element) {
         $html .= "<div class='nextend-mixed-group' style='" . NextendXmlGetAttribute($element, 'mixedstyle') . "'>";
         $type = NextendXmlGetAttribute($element, 'type');
         $class = 'NextendElement' . $type;
         if (!class_exists($class, false)) {
             if (!nextendimportpath($this->_form->_xmlfolder . 'element/' . $type)) {
                 nextendimport('nextend.form.element.' . $type);
             }
         }
         $element->addAttribute('name', $this->_name . '_' . $i);
         $element->addAttribute('hidename', 1);
         if (isset($value[$i])) {
             $element->addAttribute('default', $value[$i]);
         }
         $el = new $class($this->_form, $this, $element);
         $el->parent =& $this;
         $elementHtml = $el->render($this->_name . $this->control_name, $this->_translateable);
         $html .= "<div class='nextend-mixed-label'>";
         $html .= $elementHtml[0];
         $html .= "</div>";
         $html .= "<div class='nextend-mixed-element'>";
         $html .= $elementHtml[1];
         $html .= "</div>";
         $this->_elements[$i] = $el->_id;
         $i++;
         $html .= "</div>";
     }
     $this->_form->set($this->_name, $this->_value);
     $hidden = new NextendElementHidden($this->_form, $this->_tab, $this->_xml);
     $hiddenhtml = $hidden->render($this->control_name, false);
     $html .= $hiddenhtml[1];
     $html .= "</div>";
     $js->addLibraryJs('dojo', '
         new NextendElementMixed({
           hidden: "' . $this->_id . '",
           elements: ' . json_encode($this->_elements) . ',
           separator: "' . $this->_separator . '"
         });
     ');
     return $html;
 }
开发者ID:sangikumar,项目名称:IP,代码行数:57,代码来源:mixed.php

示例13: fetchElement

 function fetchElement()
 {
     $css = NextendCss::getInstance();
     $css->addCssLibraryFile('element/textarea.css');
     $html = "";
     $html .= "<div class='nextend-textarea' style='" . NextendXmlGetAttribute($this->_xml, 'style') . "'>";
     $html .= "<textarea id='" . $this->_id . "' style='" . NextendXmlGetAttribute($this->_xml, 'style2') . "' name='" . $this->_inputname . "' autocomplete='off'>" . $this->_form->get($this->_name, $this->_default) . "</textarea>";
     $html .= "</div>";
     return $html;
 }
开发者ID:Gordondalos,项目名称:smart-event,代码行数:10,代码来源:textarea.php

示例14: generateOptions

 function generateOptions(&$xml)
 {
     $this->_values = array();
     $html = '';
     foreach ($xml->option as $option) {
         $v = NextendXmlGetAttribute($option, 'value');
         $this->_values[] = $v;
         $html .= '<div class="nextend-radio-option nextend-text-align-' . $v . $this->isSelected($v) . ' gk_hack"><div class="gk_hack"></div></div>';
     }
     return $html;
 }
开发者ID:01J,项目名称:bealtine,代码行数:11,代码来源:textalign.php

示例15: fetchElement

 function fetchElement()
 {
     $image = NextendXmlGetAttribute($this->_xml, 'src');
     if (nextendIsWordpress()) {
         $imagewp = NextendXmlGetAttribute($this->_xml, 'wpsrc');
         if ($imagewp) {
             $image = $imagewp;
         }
     }
     return "<a href='http://www.nextendweb.com/smart-slider#pricing' target='_blank'><img src='" . $image . "' /></a>";
 }
开发者ID:sangikumar,项目名称:IP,代码行数:11,代码来源:trial.php


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