本文整理汇总了PHP中OSC\OM\HTML::panel方法的典型用法代码示例。如果您正苦于以下问题:PHP HTML::panel方法的具体用法?PHP HTML::panel怎么用?PHP HTML::panel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OSC\OM\HTML
的用法示例。
在下文中一共展示了HTML::panel方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: objectInfo
$bInfo = new objectInfo($Qbanner->toArray());
if ($action == 'delete') {
$heading[] = array('text' => $bInfo->banners_title);
$contents = array('form' => HTML::form('banners', OSCOM::link(FILENAME_BANNER_MANAGER, 'page=' . $_GET['page'] . '&bID=' . $bInfo->banners_id . '&action=deleteconfirm')));
$contents[] = array('text' => OSCOM::getDef('text_info_delete_intro'));
$contents[] = array('text' => '<strong>' . $bInfo->banners_title . '</strong>');
if ($bInfo->banners_image) {
$contents[] = array('text' => HTML::checkboxField('delete_image', 'on', true) . ' ' . OSCOM::getDef('text_info_delete_image'));
}
$contents[] = array('text' => HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash', null, null, 'btn-danger') . HTML::button(OSCOM::getDef('image_cancel'), null, OSCOM::link(FILENAME_BANNER_MANAGER, 'page=' . $_GET['page'] . '&bID=' . $_GET['bID']), null, 'btn-link'));
}
}
}
if (tep_not_null($heading) && tep_not_null($contents)) {
$show_listing = false;
echo HTML::panel($heading, $contents, ['type' => 'info']);
}
}
}
if ($show_listing === true) {
?>
<table class="oscom-table table table-hover">
<thead>
<tr class="info">
<th><?php
echo OSCOM::getDef('table_heading_banners');
?>
</th>
<th class="text-right"><?php
echo OSCOM::getDef('table_heading_groups');
示例2: array
require $oscTemplate->getFile('template_top.php');
?>
<h2><i class="fa fa-home"></i> <a href="<?php
echo OSCOM::link('login.php');
?>
"><?php
echo STORE_NAME;
?>
</a></h3>
<?php
$heading = array();
$contents = array();
if ($Qcheck->check()) {
$heading[] = array('text' => OSCOM::getDef('heading_title'));
$contents = array('form' => HTML::form('login', OSCOM::link(FILENAME_LOGIN, 'action=process')));
$contents[] = array('text' => OSCOM::getDef('text_username') . '<br />' . HTML::inputField('username'));
$contents[] = array('text' => OSCOM::getDef('text_password') . '<br />' . HTML::passwordField('password'));
$contents[] = array('text' => HTML::button(OSCOM::getDef('button_login'), 'fa fa-sign-in', null, null, 'btn-primary'));
} else {
$heading[] = array('text' => OSCOM::getDef('heading_title'));
$contents = array('form' => HTML::form('login', OSCOM::link(FILENAME_LOGIN, 'action=create')));
$contents[] = array('text' => OSCOM::getDef('text_create_first_administrator'));
$contents[] = array('text' => OSCOM::getDef('text_username') . '<br />' . HTML::inputField('username'));
$contents[] = array('text' => OSCOM::getDef('text_password') . '<br />' . HTML::passwordField('password'));
$contents[] = array('text' => HTML::button(OSCOM::getDef('button_create_administrator'), 'fa fa-sign-in', null, null, 'btn-primary'));
}
echo HTML::panel($heading, $contents);
require $oscTemplate->getFile('template_bottom.php');
require 'includes/application_bottom.php';