本文整理汇总了PHP中AdminUIHelper类的典型用法代码示例。如果您正苦于以下问题:PHP AdminUIHelper类的具体用法?PHP AdminUIHelper怎么用?PHP AdminUIHelper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了AdminUIHelper类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1:
</td>
</tr>*/
?>
<?php
echo VmHTML::row('input', 'COM_VIRTUEMART_COUNTRY_3_CODE', 'country_3_code', $this->country->country_3_code);
?>
<?php
echo VmHTML::row('input', 'COM_VIRTUEMART_COUNTRY_2_CODE', 'country_2_code', $this->country->country_2_code);
?>
</table>
</fieldset>
</div>
<input type="hidden" name="virtuemart_country_id" value="<?php
echo $this->country->virtuemart_country_id;
?>
" />
<?php
echo $this->addStandardHiddenToForm();
?>
</form>
<?php
AdminUIHelper::imitateTabs('end');
AdminUIHelper::endAdminArea();
开发者ID:brenot,项目名称:forumdesenvolvimento,代码行数:30,代码来源:edit.php
示例2: function
?>
</div>
</div>
<div class="close btn"><?php
echo JText::_('JCANCEL');
?>
</div></div>
</div>
<script type="text/javascript">
Joomla.submitbutton = function(pressbutton) {
if (pressbutton == 'add') {
jQuery('#PaymentsModal').removeClass('hide');
e.preventDefault();
return false;
} else {
Joomla.submitform( pressbutton );
return;
}
}
// Attach the modal to document
jQuery(function($){
jQuery('#PaymentsModal .close').click( function() {
jQuery('#PaymentsModal').addClass('hide');
});
});
</script>
<?php
AdminUIHelper::endAdminArea(true);
?>
</form>
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:31,代码来源:default.php
示例3: echo
<span title="<?php echo (JText::_("COM_VIRTUEMART_RATING_TITLE").' '. round($review->rating) . '/' . $maxrating) ?>" class="ratingbox" style="display:inline-block;">
<span class="stars-orange" style="width:<?php echo $ratingwidth.'px'; ?>">
</span>
</span>
</td>
<!-- published -->
<td><?php echo $published; ?></td>
</tr>
<?php
$k = 1 - $k;
$i++;
}
}
?>
</tbody>
<tfoot>
<tr>
<td colspan="16">
<?php echo $this->pagination->getListFooter(); ?>
</td>
</tr>
</tfoot>
</table>
</div>
<!-- Hidden Fields -->
<?php echo $this->addStandardHiddenToForm(); ?>
</form>
<?php AdminUIHelper::endAdminArea(); ?>
开发者ID:rubengarcia0510,项目名称:tienda,代码行数:29,代码来源:default.php
示例4: showAdminMenu
/**
* Display the administrative ribbon menu.
* @todo The link should be done better
*/
static function showAdminMenu($vmView)
{
if (!isset(VmConfig::$installed)) {
VmConfig::$installed = false;
}
if (!VmConfig::$installed) {
return false;
}
$moduleId = vRequest::getInt('module_id', 0);
$menuItems = AdminUIHelper::_getAdminMenu($moduleId);
$app = JFactory::getApplication();
$isSite = $app->isSite();
?>
<div id="admin-ui-menu" class="admin-ui-menu">
<?php
$modCount = 1;
foreach ($menuItems as $item) {
$html = '';
foreach ($item['items'] as $link) {
$target = '';
if ($link['name'] == '-') {
// it was emtpy before
} else {
if (strncmp($link['link'], 'http', 4) === 0) {
$url = $link['link'];
$target = 'target="_blank"';
} else {
$url = $link['link'] === '' ? 'index.php?option=com_virtuemart' : $link['link'];
$url .= $link['view'] ? "&view=" . $link['view'] : '';
$url .= $link['task'] ? "&task=" . $link['task'] : '';
$url .= $isSite ? '&tmpl=component&manage=1' : '';
// $url .= $link['extra'] ? $link['extra'] : '';
}
if ($vmView->manager($link['view']) || $target || $link['view'] == 'about' || $link['view'] == 'virtuemart') {
$html .= '
<li>
<a href="' . $url . '" ' . $target . '>
<span class="vmicon-wrapper"><span class="' . $link['icon_class'] . '"></span></span>
<span class="menu-subtitle">' . vmText::_($link['name']) . '</span>
</a>
</li>';
}
}
}
if (!empty($html)) {
?>
<h3 class="menu-title">
<span class="menu-title-wrapper">
<span class="vmicon-wrapper"><span class="<?php
echo vmText::_($item['items'][0]['icon_class']);
?>
"></span></span>
<span class="menu-title-content"><?php
echo vmText::_($item['title']);
?>
</span>
</span>
</h3>
<div class="menu-list">
<ul>
<?php
echo $html;
?>
</ul>
</div>
<?php
$modCount++;
}
}
?>
<div class="menu-notice"></div>
</div>
<?php
}
开发者ID:brenot,项目名称:forumdesenvolvimento,代码行数:83,代码来源:adminui.php
示例5: showAdminMenu
/**
* Display the administrative ribbon menu.
* @todo The link should be done better
*/
static function showAdminMenu()
{
$document = JFactory::getDocument();
$moduleId = JRequest::getInt('module_id', 0);
$user = JFactory::getUser();
$menuItems = AdminUIHelper::_getAdminMenu($moduleId);
?>
<div id="admin-ui-menu" class="admin-ui-menu">
<?php
$modCount = 1;
foreach ($menuItems as $item) {
?>
<h3 class="menu-title">
<?php
echo JText::_($item['title']);
?>
</h3>
<div class="menu-list">
<ul>
<?php
foreach ($item['items'] as $link) {
$target = '';
if ($link['name'] == '-') {
// it was emtpy before
} else {
if (strncmp($link['link'], 'http', 4) === 0) {
$url = $link['link'];
$target = 'target="_blank"';
} else {
$url = $link['link'] === '' ? 'index.php?option=com_virtuemart' : $link['link'];
$url .= $link['view'] ? "&view=" . $link['view'] : '';
$url .= $link['task'] ? "&task=" . $link['task'] : '';
// $url .= $link['extra'] ? $link['extra'] : '';
}
if ($user->authorise('core.admin', 'com_virtuemart') || $user->authorise('vm.' . $link['view'], 'com_virtuemart') || $target || $link['view'] == 'about' || $link['view'] == 'virtuemart') {
?>
<li>
<a href="<?php
echo $url;
?>
" <?php
echo $target;
?>
><span class="<?php
echo $link['icon_class'];
?>
"></span><?php
echo JText::_($link['name']);
?>
</a>
</li>
<?php
}
}
}
?>
</ul>
</div>
<?php
$modCount++;
}
?>
</div>
<?php
}
开发者ID:juanmcortez,项目名称:Lectorum,代码行数:74,代码来源:adminui.php
示例6: setSubmenu
/**
* Set pages submenus.
*
* @param
* $set
*/
static function setSubmenu($set)
{
AImporter::helper('adminui');
AdminUIHelper::startAdminArea();
}
开发者ID:hixbotay,项目名称:executivetransport,代码行数:11,代码来源:bookpro.php
示例7: showAdminMenu
/**
* Display the administrative ribbon menu.
* @todo The link should be done better
*/
static function showAdminMenu()
{
$document = JFactory::getDocument();
$moduleId = JRequest::getInt('module_id', 0);
$collapse_in = "";
//" in";
$menuItems = AdminUIHelper::_getAdminMenu($moduleId);
$modCount = 1;
?>
<!-- <div>Virtuemart</div>-->
<div class="accordion sidebar-nav" id="vmmenu">
<?php
foreach ($menuItems as $item) {
$vmd = 'vmd' . $modCount;
?>
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#vmmenu" href="#<?php
echo $vmd;
?>
">
<i class="icon-chevron-down pull-right"></i><?php
echo JText::_($item['title']);
?>
</a>
</div>
<div id="<?php
echo $vmd;
?>
" class="accordion-body collapse<?php
echo $collapse_in;
?>
">
<div class="accordion-inner">
<ul class="nav nav-list">
<?php
foreach ($item['items'] as $link) {
$target = '';
if ($link['name'] == '-') {
// it was emtpy before
} else {
if (strncmp($link['link'], 'http', 4) === 0) {
$url = $link['link'];
$target = 'TARGET="_blank"';
} else {
$url = $link['link'] === '' ? 'index.php?option=com_virtuemart' : $link['link'];
$url .= $link['view'] ? "&view=" . $link['view'] : '';
$url .= $link['task'] ? "&task=" . $link['task'] : '';
// $url .= $link['extra'] ? $link['extra'] : '';
}
?>
<li>
<a href="<?php
echo $url;
?>
" <?php
echo $target;
?>
><span class="<?php
echo $link['icon_class'];
?>
pull-right"></span><?php
echo JText::_($link['name']);
?>
</a>
</li>
<?php
}
}
?>
</ul>
</div>
</div>
</div>
<?php
$collapse_in = '';
$modCount++;
}
?>
</div>
<?php
}
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:86,代码来源:adminui.php
示例8: showAdminMenu
/**
* Display the administrative ribbon menu.
* @todo The link should be done better
*/
static function showAdminMenu()
{
$document = JFactory::getDocument();
$moduleId = JRequest::getInt('module_id', 0);
$menuItems = array();
//AdminUIHelper::_getAdminMenu ( $moduleId );
$sideItems = AdminUIHelper::_getAdminMenu($moduleId);
foreach ($sideItems as $item) {
JHtmlSidebar::addEntry(JText::_($item['title']), '', null);
foreach ($item['items'] as $link) {
$target = '';
if ($link['name'] == '-') {
continue;
}
if (strncmp($link['link'], 'http', 4) === 0) {
$url = $link['link'];
$target = 'TARGET="_blank"';
} else {
$url = $link['link'] === '' ? 'index.php?option=com_virtuemart' : $link['link'];
$url .= $link['view'] ? "&view=" . $link['view'] : '';
$url .= $link['task'] ? "&task=" . $link['task'] : '';
// $url .= $link['extra'] ? $link['extra'] : '';
}
JHtmlSidebar::addEntry(JText::_($link['name']), $url, null);
}
}
$sidebar = JHtmlSidebar::render();
echo $sidebar;
return;
// old code here
?>
<div id="admin-ui-menu" class="admin-ui-menu">
<?php
$modCount = 1;
foreach ($menuItems as $item) {
?>
<h3 class="menu-title">
<?php
echo JText::_($item['title']);
?>
</h3>
<div class="menu-list">
<ul>
<?php
foreach ($item['items'] as $link) {
$target = '';
if ($link['name'] == '-') {
// it was emtpy before
} else {
if (strncmp($link['link'], 'http', 4) === 0) {
$url = $link['link'];
$target = 'TARGET="_blank"';
} else {
$url = $link['link'] === '' ? 'index.php?option=com_virtuemart' : $link['link'];
$url .= $link['view'] ? "&view=" . $link['view'] : '';
$url .= $link['task'] ? "&task=" . $link['task'] : '';
// $url .= $link['extra'] ? $link['extra'] : '';
}
?>
<li>
<a href="<?php
echo $url;
?>
" <?php
echo $target;
?>
><span class="<?php
echo $link['icon_class'];
?>
"></span><?php
echo JText::_($link['name']);
?>
</a>
</li>
<?php
}
}
?>
</ul>
</div>
<?php
$modCount++;
}
?>
</div>
<?php
}
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:96,代码来源:adminbootstrap.php
注:本文中的AdminUIHelper类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论