|
|
|
|
|
|
|
|
|
Execute($cr_query_raw);
while (!$cr_list->EOF) {
$rows++;
if (strlen($rows) < 2) {
$rows = '0' . $rows;
}
if (((!$_GET['cid']) || (@$_GET['cid'] == $cr_list->fields['restrict_id'])) && (!$cInfo)) {
$cInfo = new objectInfo($cr_list->fields);
}
echo ' ' . "\n";
if ($cr_list->fields['category_id'] != -1) {
$coupon = $db->Execute("select coupon_name from " . TABLE_COUPONS_DESCRIPTION . "
where coupon_id = '" . $_GET['cid'] . "' and language_id = '" . $_SESSION['languages_id'] . "'");
$category_name = zen_get_category_name($cr_list->fields['category_id'], $_SESSION['languages_id']);
} else {
$category_name = TEXT_ALL_CATEGORIES;
}
?>
|
fields['coupon_name']; ?> |
fields['category_id']; ?> |
|
fields['coupon_restrict']=='N') {
echo '' . zen_image(DIR_WS_IMAGES . 'icon_status_green.gif', IMAGE_ALLOW) . ' | ';
} else {
echo '' . zen_image(DIR_WS_IMAGES . 'icon_status_red.gif', IMAGE_DENY) . ' | ';
}
if ($cr_list->fields['coupon_restrict']=='Y') {
echo '' . zen_image(DIR_WS_IMAGES . 'icon_status_green.gif', IMAGE_ALLOW) . ' | ';
} else {
echo '' . zen_image(DIR_WS_IMAGES . 'icon_status_red.gif', IMAGE_DENY) . ' | ';
}
echo '' . zen_image(DIR_WS_IMAGES . 'icons/delete.gif', IMAGE_REMOVE) . ' | ';
?>
MoveNext();
}
?>
display_count($cr_query_numrows, MAX_DISPLAY_RESTRICT_ENTRIES, $_GET['cpage'], TEXT_DISPLAY_NUMBER_OF_CATEGORIES); ?> |
display_links($cr_query_numrows, MAX_DISPLAY_RESTRICT_ENTRIES, MAX_DISPLAY_PAGE_LINKS, $_GET['cpage'],zen_get_all_get_params(array('cpage','action', 'x', 'y')),'cpage'); ?> |
|
|
|
|
|
|
|
|
|
|
|
|
|
Execute($pr_query_raw);
while (!$pr_list->EOF) {
$rows++;
if (strlen($rows) < 2) {
$rows = '0' . $rows;
}
if (((!$_GET['cid']) || (@$_GET['cid'] == $cr_list->fields['restrict_id'])) && (!$pInfo)) {
$pInfo = new objectInfo($pr_list);
}
echo ' ' . "\n";
$coupon = $db->Execute("select coupon_name from " . TABLE_COUPONS_DESCRIPTION . " where coupon_id = '" . $_GET['cid'] . "' and language_id = '" . $_SESSION['languages_id'] . "'");
$product_name = zen_get_products_name($pr_list->fields['product_id'], $_SESSION['languages_id']);
?>
|
fields['coupon_name']; ?> |
fields['product_id']; ?> |
|
fields['coupon_restrict']=='N') {
echo '' . zen_image(DIR_WS_IMAGES . 'icon_status_green.gif', IMAGE_ALLOW) . ' | ';
} else {
echo '' . zen_image(DIR_WS_IMAGES . 'icon_status_red.gif', IMAGE_DENY) . ' | ';
}
if ($pr_list->fields['coupon_restrict']=='Y') {
echo '' . zen_image(DIR_WS_IMAGES . 'icon_status_green.gif', IMAGE_DENY) . ' | ';
} else {
echo '' . zen_image(DIR_WS_IMAGES . 'icon_status_red.gif', IMAGE_ALLOW) . ' | ';
}
echo '' . zen_image(DIR_WS_IMAGES . 'icons/delete.gif', IMAGE_REMOVE) . ' | ';
?>
MoveNext();
}
?>
display_count($pr_query_numrows, MAX_DISPLAY_RESTRICT_ENTRIES, $_GET['ppage'], TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?> |
display_links($pr_query_numrows, MAX_DISPLAY_RESTRICT_ENTRIES, MAX_DISPLAY_PAGE_LINKS, $_GET['ppage'],zen_get_all_get_params(array('ppage','action', 'x', 'y')),'ppage'); ?> |
|
|
|
|
coupon_id) ? $cInfo->coupon_id : $_GET['cid']) . (isset($_GET['status']) ? '&status=' . $_GET['status'] : '')) . '">' . zen_image_button('button_back.gif', IMAGE_BACK) . ''; ?> |
|
|
|