本文整理汇总了PHP中oledrion_utils::htitle方法的典型用法代码示例。如果您正苦于以下问题:PHP oledrion_utils::htitle方法的具体用法?PHP oledrion_utils::htitle怎么用?PHP oledrion_utils::htitle使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类oledrion_utils
的用法示例。
在下文中一共展示了oledrion_utils::htitle方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: switch
* ****************************************************************************
*/
/**
* Actions relatives au Dashboard (affichage et suppression d'un vote)
*/
if (!defined("OLEDRION_ADMIN")) {
exit;
}
switch ($action) {
// ****************************************************************************************************************
case 'default':
// Affichage du dashboard
// ****************************************************************************************************************
xoops_cp_header();
oledrion_adminMenu(0);
oledrion_utils::htitle(_MI_OLEDRION_ADMENU10, 4);
$itemsCount = 5;
// Nombre d'éléments à afficher
if ($h_oledrion_products->getCount() > 0) {
echo "<table border='0' width='100%' cellpadding='2' cellspacing='2'>";
echo "<tr>\n";
// Dernières commandes ************************************************
echo "<td valign='top' width='50%' align='center'><b>" . _AM_OLEDRION_LAST_ORDERS . "</b>";
$tblTmp = array();
$criteria = new CriteriaCompo();
$criteria->add(new Criteria('cmd_id', 0, '<>'));
$criteria->setSort('cmd_date');
$criteria->setOrder('DESC');
$criteria->setLimit($itemsCount);
$criteria->setStart(0);
$tblTmp = $h_oledrion_commands->getObjects($criteria);
示例2: xoops_notification_deletebyitem
$item = null;
$item = $h_oledrion_products->get($id);
if (is_object($item)) {
$res = $oledrion_shelf->deleteProduct($item, true);
if ($res) {
oledrion_utils::updateCache();
xoops_notification_deletebyitem($xoopsModule->getVar('mid'), 'new_product', $id);
oledrion_utils::redirect(_AM_OLEDRION_SAVE_OK, $baseurl . '?op=' . $opRedirect, 2);
} else {
oledrion_utils::redirect(_AM_OLEDRION_SAVE_PB, $baseurl . '?op=' . $opRedirect, 5);
}
} else {
oledrion_utils::redirect(_AM_OLEDRION_NOT_FOUND, $baseurl . '?op=' . $opRedirect, 5);
}
} else {
oledrion_utils::htitle(_AM_OLEDRION_SORRY_NOREMOVE, 4);
$tblTmp2 = array();
$tblTmp2 = $h_oledrion_commands->getObjects(new Criteria('cmd_id', '(' . implode(',', $tblTmp) . ')', 'IN'), true);
echo "<table width='100%' cellspacing='1' cellpadding='3' border='0' class='outer'>";
$class = '';
echo "<tr><th align='center'>" . _AM_OLEDRION_ID . "</th><th align='center'>" . _AM_OLEDRION_DATE . "</th><th align='center'>" . _AM_OLEDRION_CLIENT . "</th><th align='center'>" . _AM_OLEDRION_TOTAL_SHIPP . "</th></tr>";
foreach ($tblTmp2 as $item) {
$class = $class == 'even' ? 'odd' : 'even';
$date = formatTimestamp(strtotime($item->getVar('cmd_date')), 's');
echo "<tr class='" . $class . "'>\n";
echo "<td align='right'>" . $item->getVar('cmd_id') . "</td><td align='center'>" . $date . "</td><td align='center'>" . $item->getVar('cmd_lastname') . ' ' . $item->getVar('cmd_firstname') . "</td><td align='center'>" . $item->getVar('cmd_total') . ' ' . oledrion_utils::getModuleOption('money_short') . ' / ' . $item->getVar('cmd_shipping') . ' ' . oledrion_utils::getModuleOption('money_short') . "</td>\n";
echo "<tr>\n";
}
echo '</table>';
include_once OLEDRION_ADMIN_PATH . 'admin_footer.php';
}
示例3: switch
/**
* Gestion des catégories de produits
*/
if (!defined("OLEDRION_ADMIN")) {
exit;
}
switch ($action) {
// ****************************************************************************************************************
case 'default':
// Liste des catégories
// ****************************************************************************************************************
xoops_cp_header();
oledrion_adminMenu(3);
// Display categories **********************************************************************
$categories = array();
oledrion_utils::htitle(_AM_OLEDRION_CATEGORIES, 4);
$categories = $h_oledrion_cat->getAllCategories(new oledrion_parameters());
$mytree = new XoopsObjectTree($categories, 'cat_cid', 'cat_pid');
$categoriesSelect = $mytree->makeSelBox('id', 'cat_title');
echo "<div class='even'><form method='post' name='quickaccess' id='quickaccess' action='{$baseurl}' >" . _AM_OLEDRION_LIST . " {$categoriesSelect}<input type='hidden' name='op' id='op' value='categories' /><input type='radio' name='action' id='action' value='edit' />" . _EDIT . " <input type='radio' name='action' id='action' value='delete' />" . _DELETE . " <input type='submit' name='btnquick' id='btnquick' value='" . _GO . "' /></form></div>\n";
echo "<div class='odd' align='center'><form method='post' name='frmadd' id='frmadd' action='{$baseurl}' ><input type='hidden' name='op' id='op' value='categories' /><input type='hidden' name='action' id='action' value='add' /><input type='submit' name='btnadd' id='btnadd' value='" . _AM_OLEDRION_ADD_CATEG . "' /></form></div>\n";
echo "<br /><br />\n";
// Categories preferences *****************************************************************
$chunk1 = oledrion_utils::getModuleOption('chunk1');
$chunk2 = oledrion_utils::getModuleOption('chunk2');
$chunk3 = oledrion_utils::getModuleOption('chunk3');
$chunk4 = oledrion_utils::getModuleOption('chunk4');
$positions = array(0 => _AM_OLEDRION_INVISIBLE, 1 => "1", 2 => "2", 3 => "3", 4 => "4");
$sform = new XoopsThemeForm(_AM_OLEDRION_CATEG_CONFIG, 'frmchunk', $baseurl);
$sform->addElement(new XoopsFormHidden('op', 'categories'));
$sform->addElement(new XoopsFormHidden('action', 'savechunks'));
示例4: xoops_cp_header
oledrion_utils::redirect(_AM_OLEDRION_ERROR_1, $baseurl . $opRedirect, 5);
}
if (oledrion_set_module_option('used_gateway', $gateway)) {
oledrion_utils::redirect(_AM_OLEDRION_SAVE_OK, $baseurl . $opRedirect, 1);
} else {
oledrion_utils::redirect(_AM_OLEDRION_SAVE_PB, $baseurl . $opRedirect, 4);
}
break;
// ****************************************************************************************************************
// ****************************************************************************************************************
case 'parameters':
// Paramètres de la passerelle de paiement sélectionnée
// ****************************************************************************************************************
xoops_cp_header();
oledrion_adminMenu(12);
oledrion_utils::htitle(_AM_OLEDRION_INSTALLED_GATEWAYS, 4);
$opRedirect = '?op=gateways';
$gateway = isset($_GET['gateway']) ? strtolower($_GET['gateway']) : '';
$gateway = oledrion_gateways::purifyGatewayName($gateway);
if (empty($gateway)) {
oledrion_utils::redirect(_AM_OLEDRION_ERROR_1, $baseurl . $opRedirect, 5);
}
if (oledrion_gateways::gatewayClassFileExists($gateway)) {
// Il y a une classe donc c'est bon
$languageFilename = '';
$languageFileIncluded = oledrion_gateways::loadGatewaysLanguageDefines($gateway, $languageFilename);
if (!$languageFileIncluded) {
oledrion_utils::redirect(_AM_OLEDRION_GATEWAYS_ERROR2, $baseurl . $opRedirect, 4);
}
oledrion_gateways::includeGatewayClass($gateway);
if (oledrion_gateways::gatewayClassExists($gateway)) {