本文整理汇总了PHP中oledrion_utils::javascriptLinkConfirm方法的典型用法代码示例。如果您正苦于以下问题:PHP oledrion_utils::javascriptLinkConfirm方法的具体用法?PHP oledrion_utils::javascriptLinkConfirm怎么用?PHP oledrion_utils::javascriptLinkConfirm使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类oledrion_utils
的用法示例。
在下文中一共展示了oledrion_utils::javascriptLinkConfirm方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Criteria
$criteria->add(new Criteria('cmd_id', 0, '<>'));
$criteria->add(new Criteria('cmd_state', $conditions[$filter3], '='));
$itemsCount = $h_oledrion_commands->getCount($criteria);
// Recherche du nombre total de commandes
if ($itemsCount > $limit) {
$pagenav = new XoopsPageNav($itemsCount, $limit, $start, 'start', 'op=orders');
}
$criteria->setSort('cmd_date');
$criteria->setOrder('DESC');
$criteria->setLimit($limit);
$criteria->setStart($start);
$orders = $h_oledrion_commands->getObjects($criteria);
$class = '';
echo "<table width='100%' cellspacing='1' cellpadding='3' border='0' class='outer'>";
$form = "<form method='post' name='frmfilter' id='frmfilter' action='{$baseurl}'><b>" . _AM_OLEDRION_LIMIT_TO . "</b> <select name='filter3' id='filter3'><option value='0'" . $selected[0] . ">" . _OLEDRION_CMD_STATE1 . "</option><option value='1'" . $selected[1] . ">" . _OLEDRION_CMD_STATE2 . "</option><option value='2'" . $selected[2] . ">" . _OLEDRION_CMD_STATE3 . "</option><option value='3'" . $selected[3] . ">" . _OLEDRION_CMD_STATE4 . "</option><option value='4'" . $selected[4] . ">" . _OLEDRION_CMD_STATE5 . "</option><option value='5'" . $selected[5] . ">" . _OLEDRION_CMD_STATE6 . "</option></select> <input type='hidden' name='op' id='op' value='orders' /><input type='submit' name='btnfilter' id='btnfilter' value='" . _AM_OLEDRION_FILTER . "' /></form>";
$confValidateOrder = oledrion_utils::javascriptLinkConfirm(_AM_OLEDRION_CONF_VALIDATE);
echo "<tr><td colspan='2' align='left'>";
if (isset($pagenav) && is_object($pagenav)) {
echo $pagenav->renderNav();
} else {
echo ' ';
}
$exportFormats = glob(OLEDRION_PATH . 'admin/exports/*.php');
$formats = array();
foreach ($exportFormats as $format) {
if (strstr($format, 'export.php') === false) {
$exportName = basename(str_replace('.php', '', $format));
$formats[] = '<option value="' . $exportName . '">' . $exportName . '</option>';
}
}
echo "</td><td><form method='post' action='{$baseurl}' name='frmexport' id='frmexport'>" . _AM_OLEDRION_CSV_EXPORT . "<input type='hidden' name='op' id='op' value='orders' /><input type='hidden' name='action' id='action' value='export' /><input type='hidden' name='cmdtype' id='cmdtype' value='{$filter3}' /><select name='exportfilter' id='exportfilter' size='1'>" . implode("\n", $formats) . "</select> <input type='submit' name='btngoexport' id='btngoexport' value='" . _AM_OLEDRION_OK . "' /></form></td><td align='right' colspan='2'>" . $form . "</td></tr>\n";
示例2: basename
require_once '../../../include/cp_header.php';
require_once '../include/common.php';
require_once 'admin_header.php';
require_once OLEDRION_PATH . 'admin/functions.php';
require_once XOOPS_ROOT_PATH . '/class/tree.php';
require_once XOOPS_ROOT_PATH . '/class/uploader.php';
require_once XOOPS_ROOT_PATH . '/class/pagenav.php';
require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
require_once XOOPS_ROOT_PATH . '/class/xoopslists.php';
require_once OLEDRION_PATH . 'class/tree.php';
// Lecture de certains param�tres de l'application ********************************************************************
$limit = oledrion_utils::getModuleOption('items_count');
// Nombre maximum d'�l�ments � afficher dans l'admin
$baseurl = OLEDRION_URL . 'admin/' . basename(__FILE__);
// URL de ce script
$conf_msg = oledrion_utils::javascriptLinkConfirm(_AM_OLEDRION_CONF_DELITEM);
$oledrion_Currency = oledrion_Currency::getInstance();
$manual_meta = oledrion_utils::getModuleOption('manual_meta');
oledrion_utils::loadLanguageFile('modinfo.php');
oledrion_utils::loadLanguageFile('main.php');
// V�rification de l'existance du r�pertoire de cache
oledrion_utils::prepareFolder(OLEDRION_UPLOAD_PATH);
oledrion_utils::prepareFolder(OLEDRION_ATTACHED_FILES_PATH);
oledrion_utils::prepareFolder(OLEDRION_PICTURES_PATH);
oledrion_utils::prepareFolder(OLEDRION_CSV_PATH);
oledrion_utils::prepareFolder(OLEDRION_CACHE_PATH);
oledrion_utils::prepareFolder(OLEDRION_TEXT_PATH);
// Est-ce que le r�pertoire du cache est ouvert en �criture ?
if (!is_writable(OLEDRION_CACHE_PATH)) {
exit("Your cache folder, " . OLEDRION_CACHE_PATH . " is not writable !");
}
示例3: elseif
}
$op = 'default';
if (isset($_POST['op'])) {
$op = $_POST['op'];
} elseif (isset($_GET['op'])) {
$op = $_GET['op'];
}
$productId = 0;
if (isset($_POST['product_id'])) {
$productId = intval($_POST['product_id']);
} elseif (isset($_GET['product_id'])) {
$productId = intval($_GET['product_id']);
}
$xoopsTpl->assign('op', $op);
$xoopsTpl->assign('confEmpty', oledrion_utils::javascriptLinkConfirm(_OLEDRION_EMPTY_CART_SURE, true));
$xoopsTpl->assign('confirm_delete_item', oledrion_utils::javascriptLinkConfirm(_OLEDRION_EMPTY_ITEM_SURE, false));
$uid = oledrion_utils::getCurrentUserID();
if ($uid > 0) {
$xoopsTpl->assign('isCartExists', $h_oledrion_persistent_cart->isCartExists());
} else {
$xoopsTpl->assign('isCartExists', false);
}
// ********************************************************************************************************************
// Liste le contenu du caddy
// ********************************************************************************************************************
function listCart()
{
global $xoopsTpl, $uid;
$cartForTemplate = $discountsDescription = array();
$emptyCart = false;
$shippingAmount = $commandAmount = $vatAmount = $commandAmountTTC = $discountsCount = $ecotaxeAmount = $discountAmount = $totalSavings = 0;
示例4: XoopsPageNav
// Recherche du nombre total de commandes
if ($itemsCount > $limit) {
$pagenav = new XoopsPageNav($itemsCount, $limit, $start, 'start', 'op=orders');
}
$criteria->setSort('cmd_id');
$criteria->setOrder('DESC');
$criteria->setLimit($limit);
$criteria->setStart($start);
$orders = $h_oledrion_commands->getObjects($criteria);
$class = '';
echo "<table width='100%' cellspacing='1' cellpadding='3' border='0' class='outer'>";
$form = "<form method='post' name='frmfilter' id='frmfilter' action='{$baseurl}'><b>" . _AM_OLEDRION_LIMIT_TO . "</b> <select name='filter3' id='filter3'>\n <option value='0'" . $selected[0] . ">" . _OLEDRION_CMD_STATE1 . "</option>\n <option value='1'" . $selected[1] . ">" . _OLEDRION_CMD_STATE2 . "</option>\n <option value='2'" . $selected[2] . ">" . _OLEDRION_CMD_STATE3 . "</option>\n <option value='3'" . $selected[3] . ">" . _OLEDRION_CMD_STATE4 . "</option>\n <option value='4'" . $selected[4] . ">" . _OLEDRION_CMD_STATE5 . "</option>\n <option value='5'" . $selected[5] . ">" . _OLEDRION_CMD_STATE6 . "</option>\n <option value='6'" . $selected[6] . ">" . _OLEDRION_CMD_STATE7 . "</option>\n <option value='7'" . $selected[7] . ">" . _OLEDRION_CMD_STATE8 . "</option>\n <option value='8'" . $selected[8] . ">" . _OLEDRION_CMD_STATE9 . "</option>\n </select> <input type='hidden' name='op' id='op' value='orders' /><input type='submit' name='btnfilter' id='btnfilter' value='" . _AM_OLEDRION_FILTER . "' /></form>";
$confValidateOrder = oledrion_utils::javascriptLinkConfirm(_AM_OLEDRION_CONF_VALIDATE);
$confPackOrder = oledrion_utils::javascriptLinkConfirm(_AM_OLEDRION_CONF_Pack);
$confSubmitOrder = oledrion_utils::javascriptLinkConfirm(_AM_OLEDRION_CONF_SUBMIT);
$confDeliveryOrder = oledrion_utils::javascriptLinkConfirm(_AM_OLEDRION_CONF_DELIVERY);
echo "<tr><td colspan='2' align='left'>";
if (isset($pagenav) && is_object($pagenav)) {
echo $pagenav->renderNav();
} else {
echo ' ';
}
$exportFormats = glob(OLEDRION_PATH . 'admin/exports/*.php');
$formats = array();
foreach ($exportFormats as $format) {
if (strstr($format, 'export.php') === false) {
$exportName = basename(str_replace('.php', '', $format));
$formats[] = '<option value="' . $exportName . '">' . $exportName . '</option>';
}
}
echo "</td><td><form method='post' action='{$baseurl}' name='frmexport' id='frmexport'>" . _AM_OLEDRION_CSV_EXPORT . "<input type='hidden' name='op' id='op' value='orders' /><input type='hidden' name='action' id='action' value='export' /><input type='hidden' name='cmdtype' id='cmdtype' value='{$filter3}' /><select name='exportfilter' id='exportfilter' size='1'>" . implode("\n", $formats) . "</select> <input type='submit' name='btngoexport' id='btngoexport' value='" . _AM_OLEDRION_OK . "' /></form></td><td align='right' colspan='2'>" . $form . "</td></tr>\n";