$fee_min_bid = $row['value'] / 100 * $minimum_bid; } } if ($row['type'] == 'buyout_fee' && $buy_now_price > 0) { $fee_bn = $row['value']; } if ($row['type'] == 'rp_fee' && $reserve_price > 0) { $fee_rp = $row['value']; } if ($row['type'] == 'subtitle_fee' && strlen($subtitle) > 0) { $subtitle_fee = $row['value']; } if ($row['type'] == 'relist_fee' && strlen($relist) > 0) { $relist_fee = $row['value']; } } $fee_javascript .= 'var current_fee = ' . (isset($_SESSION['SELL_current_fee']) ? $_SESSION['SELL_current_fee'] : '0') . ';'; $relist_options = '<select name="autorelist" id="autorelist">'; for ($i = 0; $i <= $system->SETTINGS['autorelist_max']; $i++) { $relist_options .= '<option value="' . $i . '"' . ($relist == $i ? ' selected="selected"' : '') . '>' . $i . '</option>'; } $relist_options .= '</select>'; $template->assign_vars(array('TITLE' => $MSG['028'], 'ERROR' => $ERR == 'ERR_' ? '' : ${$ERR}, 'CAT_LIST1' => $category_string1, 'CAT_LIST2' => $category_string2, 'ATYPE' => $TPL_auction_type, 'ATYPE_PLAIN' => $atype, 'CURRENCY' => $system->SETTINGS['currency'], 'DURATIONS' => $TPL_durations_list, 'PAYMENTS' => $payment_methods, 'PAGE' => 0, 'MINTEXT' => $atype == 2 ? $MSG['038'] : $MSG['020'], 'FEE_JS' => $fee_javascript, 'AUC_TITLE' => $title, 'AUC_SUBTITLE' => $subtitle, 'AUC_DESCRIPTION' => $CKEditor->editor('sdescription', stripslashes($sdescription)), 'ITEMQTY' => $iquantity, 'MIN_BID' => $system->print_money_nosymbol($minimum_bid, false), 'BN_ONLY' => $buy_now_only == 'y' ? 'disabled' : '', 'SHIPPING_COST' => $system->print_money_nosymbol($shipping_cost, false), 'ADDITIONAL_SHIPPING_COST' => $system->print_money_nosymbol($additional_shipping_cost, false), 'RESERVE_Y' => $with_reserve == 'yes' ? 'checked' : '', 'RESERVE_N' => $with_reserve == 'yes' ? '' : 'checked', 'RESERVE' => $system->print_money_nosymbol($reserve_price, false), 'START_TIME' => $TPL_start_date, 'BN_ONLY_Y' => $buy_now_only == 'y' ? 'checked' : '', 'BN_ONLY_N' => $buy_now_only == 'y' ? '' : 'checked', 'BN_Y' => $buy_now == 'yes' ? 'checked' : '', 'BN_N' => $buy_now == 'yes' ? '' : 'checked', 'BN_PRICE' => $system->print_money_nosymbol($buy_now_price, false), 'INCREMENTS1' => $increments == 1 || empty($increments) ? 'checked' : '', 'INCREMENTS2' => $increments == 2 ? 'checked' : '', 'CUSTOM_INC' => $customincrement > 0 ? $system->print_money_nosymbol($customincrement, false) : '', 'SHIPPING1' => intval($shipping) == 1 ? 'checked' : '', 'SHIPPING2' => intval($shipping) == 2 || empty($shipping) ? 'checked' : '', 'SHIPPING3' => intval($shipping) == 3 ? 'checked' : '', 'INTERNATIONAL' => !empty($international) ? 'checked' : '', 'SHIPPING_TERMS' => $shipping_terms, 'ITEMQTYD' => $atype == 2 || $buy_now_only == 'y' ? '' : 'disabled', 'START_NOW' => !empty($start_now) ? 'checked' : '', 'IS_BOLD' => $is_bold == 'y' ? 'checked' : '', 'IS_HIGHLIGHTED' => $is_highlighted == 'y' ? 'checked' : '', 'IS_FEATURED' => $is_featured == 'y' ? 'checked' : '', 'NUMIMAGES' => count($_SESSION['UPLOADED_PICTURES']), 'RELIST' => $relist_options, 'MAXRELIST' => $system->SETTINGS['autorelist_max'], 'TAX_Y' => $is_taxed == 'y' ? 'checked' : '', 'TAX_N' => $is_taxed == 'n' ? 'checked' : '', 'TAXINC_Y' => $tax_included == 'y' ? 'checked' : '', 'TAXINC_N' => $tax_included == 'n' ? 'checked' : '', 'MAXPICS' => sprintf($MSG['673'], $system->SETTINGS['maxpictures'], $system->SETTINGS['maxuploadsize'] / 1024), 'FEE_VALUE' => get_fee($minimum_bid), 'FEE_VALUE_F' => number_format(get_fee($minimum_bid), $system->SETTINGS['moneydecimals']), 'FEE_MIN_BID' => $fee_min_bid, 'FEE_BN' => $fee_bn, 'FEE_RP' => $fee_rp, 'FEE_SUBTITLE' => $subtitle_fee, 'FEE_RELIST' => $relist_fee, 'FEE_DECIMALS' => $system->SETTINGS['moneydecimals'], 'B_CAN_TAX' => $can_tax, 'B_GALLERY' => $system->SETTINGS['picturesgallery'] == 1, 'B_BN_ONLY' => $system->SETTINGS['buy_now'] == 2 && $system->SETTINGS['bn_only'] == 'y' && ($system->SETTINGS['bn_only_disable'] == 'y' && $user->user_data['bn_only'] == 'y' || $system->SETTINGS['bn_only_disable'] == 'n'), 'B_BN' => $system->SETTINGS['buy_now'] == 2, 'B_EDITING' => $_SESSION['SELL_action'] == 'edit', 'B_CUSINC' => $system->SETTINGS['cust_increment'] == 1, 'B_EDIT_STARTTIME' => $system->SETTINGS['edit_starttime'] == 1, 'B_MKFEATURED' => $system->SETTINGS['ao_hpf_enabled'] == 'y', 'B_MKBOLD' => $system->SETTINGS['ao_bi_enabled'] == 'y', 'B_MKHIGHLIGHT' => $system->SETTINGS['ao_hi_enabled'] == 'y', 'B_FEES' => $system->SETTINGS['fees'] == 'y', 'B_SHIPPING' => $system->SETTINGS['shipping'] == 1, 'B_SUBTITLE' => $system->SETTINGS['subtitle'] == 'y', 'B_AUTORELIST' => $system->SETTINGS['autorelist'] == 'y')); break; } include 'header.php'; $template->set_filenames(array('body' => 'sell.tpl')); $template->display('body'); include 'footer.php'; //if ($_SESSION['action'] != 3) makesessions();
$editdate = timetodate($edittime, 3); if ($voteid) { $voteid = explode(' ', $voteid); } if ($fromurl) { $fromurl = fix_link($fromurl); } $fileurl = $linkurl; $linkurl = $MOD['linkurl'] . $linkurl; $titles = array(); if ($subtitle) { $titles = explode("\n", $subtitle); $titles = array_map('trim', $titles); } $keytags = $tag ? explode(' ', $tag) : array(); $fee = get_fee($item['fee'], $MOD['fee_view']); if ($fee) { $description = get_description($content, $MOD['pre_view']); $user_status = 4; } else { $user_status = 3; } $pages = ''; $total = 1; $subtitles = count($titles); if (strpos($content, '[pagebreak]') !== false) { $contents = explode('[pagebreak]', $content); $total = count($contents); if ($total < $subtitles) { $subtitles = $total; }
} else { include load('404.inc'); } $content = $db->get_one("SELECT content FROM {$table_data} WHERE itemid={$itemid}"); $content = $content['content']; $print = isset($print) ? 1 : 0; $CAT = get_cat($catid); if (!check_group($_groupid, $MOD['group_show_resume']) || !check_group($_groupid, $CAT['group_show'])) { include load('403.inc'); } $parentid = $CATEGORY[$catid]['parentid'] ? $CATEGORY[$catid]['parentid'] : $catid; $adddate = timetodate($addtime, 3); $editdate = timetodate($edittime, 3); $linkurl = $MOD['linkurl'] . $linkurl; $user_status = 4; $fee = get_fee($item['fee'], $MOD['fee_view_resume']); $currency = $MOD['fee_currency']; $unit = $currency == 'money' ? $DT['money_unit'] : $DT['credit_unit']; $name = $currency == 'money' ? $DT['money_name'] : $DT['credit_name']; if (check_group($_groupid, $MOD['group_contact_resume'])) { if ($MG['fee_mode'] && $MOD['fee_mode']) { $user_status = 3; } else { if ($fee) { $mid = -$moduleid; if ($_userid) { if (check_pay($mid, $itemid)) { $user_status = 3; } else { $user_status = 2; $item['title'] = lang($L['resume_title'], array($truename));
</span><br/> <strong><?php echo _('Fee per recipient'); ?> </strong>: <?php echo get_fee('currency'); ?> $<span id="recipient_fee"><?php echo get_fee('cost_per_recipient'); ?> </span><br/><br/> <span class="grand_total"><strong><?php echo _('Grand total'); ?> </strong>: <?php echo get_fee('currency'); ?> $<span id="grand_total">0</span></span> </div> <button type="submit" class="btn btn-inverse btn-large" id="pay-btn" <?php echo $send_newsletter_now; ?> ><i class="icon-arrow-right icon-white"></i> <?php echo _('Proceed to pay for campaign'); ?> </button> <p style="margin-top:10px; text-decoration:underline;"> <?php if ($cron) { ?> <a href="javascript:void(0)" id="send-later-btn"><?php
$CAT = get_cat($catid); if (!check_group($_groupid, $CAT['group_show'])) { include load('403.inc'); } if ($open < 3) { $_key = $open == 2 ? $password : $answer; $str = get_cookie('photo_' . $itemid); $pass = $str == md5(md5($DT_IP . $open . $_key . DT_KEY)); if ($_username && $_username == $username) { $pass = true; } } else { $pass = true; } $pass or dheader($MOD['linkurl'] . 'private.php?itemid=' . $itemid); if (get_fee($item['fee'], $MOD['fee_view'])) { if ($MG['fee_mode'] && $MOD['fee_mode']) { $user_status = 3; } else { if ($_userid && check_pay($moduleid, $itemid)) { $user_status = 3; } else { $user_status = 0; } } } else { $user_status = 3; } $user_status == 3 or dheader($linkurl); $adddate = timetodate($addtime, 3); $editdate = timetodate($edittime, 3);
} } if ($row['type'] == 'buynow_fee' && $buy_now_price > 0) { $fee_bn = $row['value']; } if ($row['type'] == 'reserve_fee' && $reserve_price > 0) { $fee_rp = $row['value']; } if ($row['type'] == 'subtitle_fee' && strlen($subtitle) > 0) { $subtitle_fee = $row['value']; } if ($row['type'] == 'relist_fee' && strlen($relist) > 0) { $relist_fee = $row['value']; } } $fee_javascript .= 'var current_fee = ' . (isset($_SESSION['SELL_current_fee']) ? $_SESSION['SELL_current_fee'] : '0') . ';'; $relist_options = '<select name="autorelist" id="autorelist">'; for ($i = 0; $i <= $system->SETTINGS['autorelist_max']; $i++) { $relist_options .= '<option value="' . $i . '"' . ($relist == $i ? ' selected="selected"' : '') . '>' . $i . '</option>'; } $relist_options .= '</select>'; $fee_value = get_fee($minimum_bid); $template->assign_vars(array('TITLE' => $MSG['028'], 'ERROR' => $ERR == 'ERR_' ? '' : ${$ERR}, 'CAT_LIST1' => $category_string1, 'CAT_LIST2' => $category_string2, 'ATYPE' => $TPL_auction_type, 'ATYPE_PLAIN' => $atype, 'CURRENCY' => $system->SETTINGS['currency'], 'DURATIONS' => $TPL_durations_list, 'PAYMENTS' => $payment_methods, 'PAGE' => 0, 'MINTEXT' => $atype == 2 ? $MSG['038'] : $MSG['020'], 'FEE_JS' => $fee_javascript, 'AUC_TITLE' => htmlspecialchars($title), 'AUC_SUBTITLE' => htmlspecialchars($subtitle), 'AUC_DESCRIPTION' => $CKEditor->editor('sdescription', $sdescription), 'ITEMQTY' => $iquantity, 'MIN_BID' => $system->print_money_nosymbol($minimum_bid, false), 'BN_ONLY' => $buy_now_only ? 'disabled' : '', 'SHIPPING_COST' => $system->print_money_nosymbol($shipping_cost, false), 'ADDITIONAL_SHIPPING_COST' => $system->print_money_nosymbol($additional_shipping_cost, false), 'RESERVE_Y' => $with_reserve == 'yes' ? 'checked' : '', 'RESERVE_N' => $with_reserve == 'yes' ? '' : 'checked', 'RESERVE' => $system->print_money_nosymbol($reserve_price, false), 'START_TIME' => $dt->formatDate($TPL_start_date), 'END_TIME' => $dt->formatDate($TPL_end_date), 'CUSTOM_END' => !empty($custom_end) ? 'checked' : '', 'BN_ONLY_Y' => $buy_now_only ? 'checked' : '', 'BN_ONLY_N' => $buy_now_only ? '' : 'checked', 'BN_Y' => $buy_now == 'yes' ? 'checked' : '', 'BN_N' => $buy_now == 'yes' ? '' : 'checked', 'BN_PRICE' => $system->print_money_nosymbol($buy_now_price, false), 'INCREMENTS1' => $increments == 1 || empty($increments) ? 'checked' : '', 'INCREMENTS2' => $increments == 2 ? 'checked' : '', 'CUSTOM_INC' => $customincrement > 0 ? $system->print_money_nosymbol($customincrement, false) : '', 'SHIPPING1' => intval($shipping) == 1 ? 'checked' : '', 'SHIPPING2' => intval($shipping) == 2 || empty($shipping) ? 'checked' : '', 'SHIPPING3' => intval($shipping) == 3 ? 'checked' : '', 'INTERNATIONAL' => !empty($international) ? 'checked' : '', 'SHIPPING_TERMS' => htmlspecialchars($shipping_terms), 'ITEMQTYD' => $atype == 2 || $buy_now_only ? '' : 'disabled', 'START_NOW' => !empty($start_now) ? 'checked' : '', 'IS_BOLD' => $is_bold ? 'checked' : '', 'IS_HIGHLIGHTED' => $is_highlighted ? 'checked' : '', 'IS_FEATURED' => $is_featured ? 'checked' : '', 'NUMIMAGES' => count($_SESSION['UPLOADED_PICTURES']), 'RELIST' => $relist_options, 'MAXRELIST' => $system->SETTINGS['autorelist_max'], 'TAX_Y' => $is_taxed == 1 ? 'checked' : '', 'TAX_N' => $is_taxed == 0 ? 'checked' : '', 'TAXINC_Y' => $tax_included == 1 ? 'checked' : '', 'TAXINC_N' => $tax_included == 0 ? 'checked' : '', 'MAXPICS' => sprintf($MSG['673'], $system->SETTINGS['maxpictures'], $system->SETTINGS['maxuploadsize'] / 1024), 'FEE_VALUE' => $fee_value, 'FEE_VALUE_F' => number_format($fee_value, $system->SETTINGS['moneydecimals']), 'FEE_MIN_BID' => $fee_min_bid, 'FEE_BN' => $fee_bn, 'FEE_RP' => $fee_rp, 'FEE_SUBTITLE' => $subtitle_fee, 'FEE_RELIST' => $relist_fee, 'FEE_DECIMALS' => $system->SETTINGS['moneydecimals'], 'B_CAN_TAX' => $can_tax, 'B_GALLERY' => $system->SETTINGS['picturesgallery'] == 1, 'B_BN_ONLY' => $system->SETTINGS['buy_now'] == 2 && $system->SETTINGS['bn_only'] && ($system->SETTINGS['bn_only_disable'] == 'y' && $user->user_data['bn_only'] || $system->SETTINGS['bn_only_disable'] == 'n'), 'B_BN' => $system->SETTINGS['buy_now'] == 2, 'B_EDITING' => $_SESSION['SELL_action'] == 'edit', 'B_CANEDITSTARTDATE' => $caneditstartdate, 'B_CUSINC' => $system->SETTINGS['cust_increment'] == 1, 'B_EDIT_STARTTIME' => $system->SETTINGS['edit_starttime'] == 1, 'B_EDIT_ENDTIME' => $system->SETTINGS['edit_endtime'] == 1, 'B_MKFEATURED' => $system->SETTINGS['ao_hpf_enabled'] == 'y', 'B_MKBOLD' => $system->SETTINGS['ao_bi_enabled'] == 'y', 'B_MKHIGHLIGHT' => $system->SETTINGS['ao_hi_enabled'] == 'y', 'B_FEES' => $system->SETTINGS['fees'] == 'y', 'B_SHIPPING' => $system->SETTINGS['shipping'] == 'y', 'B_SUBTITLE' => $system->SETTINGS['subtitle'] == 'y', 'B_AUTORELIST' => $system->SETTINGS['autorelist'] == 'y')); break; } include 'header.php'; $template->set_filenames(array('body' => 'sell.tpl')); $template->display('body'); include 'footer.php'; //if ($_SESSION['action'] != 3) makesessions();