Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <center>
- <div class="TableContainer" style="position:relative;"">
- <div class="ribbonShop-double"></div>
- <div class="CaptionContainer">
- <div class="CaptionInnerContainer">
- <span class="CaptionEdgeLeftTop" style="background-image:url(templates/tibiarl/images/content/box-frame-edge.gif);"></span>
- <span class="CaptionEdgeRightTop" style="background-image:url(templates/tibiarl/images/content/box-frame-edge.gif);"></span>
- <span class="CaptionBorderTop" style="background-image:url(templates/tibiarl/images/content/table-headline-border.gif);"></span>
- <span class="CaptionVerticalLeft" style="background-image:url(templates/tibiarl/images/content/box-frame-vertical.gif);"></span>
- <div class="Text">'.$config['server_name'].' Shop</div>
- <span class="CaptionVerticalRight" style="background-image:url(templates/tibiarl/images/content/box-frame-vertical.gif);"></span>
- <span class="CaptionBorderBottom" style="background-image:url(templates/tibiarl/images/content/table-headline-border.gif);"></span>
- <span class="CaptionEdgeLeftBottom" style="background-image:url(templates/tibiarl/images/content/box-frame-edge.gif);"></span>
- <span class="CaptionEdgeRightBottom" style="background-image:url(templates/tibiarl/images/content/box-frame-edge.gif);"></span>
- </div>
- </div>
- </div>
- ';
- $offer_types = array();
- $tmp_query = $db->query('SELECT `name`, `description` FROM `' . 'z_shop_categories` WHERE `hidden` != 1')->fetchAll();
- foreach($tmp_query as $tmp_res)
- $offer_types[$tmp_res['name']] = $tmp_res['description'];
- $get_offerType = isset($_GET['offertype']) ? $_GET['offertype'] : 'item';
- echo '
- <tr>
- <td>
- <div class="InnerTableContainer">
- <table style="width:100%;">
- <tbody>
- <tr>
- <td>';
- foreach($offer_types as $offer_type => $offer_name){
- echo
- '
- <span class="HelperDivIndicator">
- <div class="InnerTableTab '.selectcolor($offer_type).'">
- <div id="ProductCategoryHelperDiv_5" class="ProductCategoryHelperDiv"></div>
- <a href="?subtopic=gifts&offertype='.strtolower($offer_type).'">
- <img src="'.$layout_name.'/images/payment/products_tab_'.selectcolorbg($offer_type).'.png">
- <div class="InnerTableTabLabel">'.$offer_name.'</div>
- </a>
- </div>
- </span>';
- }
- echo '
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </td>
- </tr>
- ';
- if(!isset($offer_types[$get_offerType])) {
- warning("This offer type doesn't exist. Please specify different name.");
- return;
- }
- $offer_list = getOfferArray();
- echo '
- <div class="TableShadowContainerRightTop">
- <div class="TableShadowRightTop" style="background-image:url(templates/tibiarl/images/content/table-shadow-rt.gif);"></div>
- </div>
- <div class="TableContentAndRightShadow" style="background-image:url(templates/tibiarl/images/content/table-shadow-rm.gif);">
- <div class="TableContentContainer">
- <table class="TableContent" style="display: flex; align-content: flex-start; border:1px solid #faf0d7; width: 100%;">
- ';
- if($get_offerType == 'pacc' && isset($offer_list['pacc']) && count($offer_list['pacc']) > 0){
- foreach($offer_list['pacc'] as $pacc){
- //echo $_SERVER["REQUEST_URI"];
- echo '
- <tr>
- <td>';
- if(!$logged)
- {
- }
- else
- {
- echo '
- <form action="?subtopic=gifts&action=select_player" method="POST" name="'.$pacc['id'].'">
- <div style="display:none">
- <input type="hidden" name="buy_id" value="'.$pacc['id'].'">
- <a href="?subtopic=gifts&action=select_player" onClick="'.$pacc['id'].'.submit(); return false;">
- </div>
- </form>
- ';
- }
- echo '
- <div class="ServiceID_Icon_Container" id="ServiceID_Icon_Container_'.$pacc['id'].'">
- <div class="ServiceID_Icon_Container_Background" id="" style="background-image:url('.$layout_name.'/images/payment/serviceid_icon_normal.png);">
- <div class="ServiceID_Icon" id="ServiceID_Icon_'.$pacc['id'].'" style="background-image:url(' . $config['item_images_url'] . $pacc['id'] . $config['item_images_extension'] . '); background-position: center;" onclick="ChangeService('.$pacc['id'].', 2);" onmouseover="MouseOverServiceID('.$pacc['id'].', 2);" onmouseout="MouseOutServiceID('.$pacc['id'].', 2);">
- <div class="PermanentDeactivated">
- <span class="HelperDivIndicator" onmouseover="ActivateHelperDiv($(this), \''.$pacc['name'].'\', \''.$pacc['description'].'\,\');" onmouseout="$(\'#HelperDivContainer\').hide();">
- <div class="ServiceID_HelperDiv"></div>
- </span>
- </div>
- <div class="PermanentDeactivated ServiceID_Deactivated_ByChoice" id="ServiceID_NotAllowed_'.$pacc['id'].'" style="display: none;">
- <span class="HelperDivIndicator" onmouseover="ActivateHelperDiv($(this), \'Service Info:\', \'<p>The product is not available for the selected payment method!</p>\', \'\');" onmouseout="$(\'#HelperDivContainer\').hide();">
- <div class="ServiceID_Deactivated" style="background-image: url('.$layout_name.'/images/payment/serviceid_deactivated.png);"></div>
- </span>
- </div>';
- if($logged){
- echo '
- <div class="ServiceID_Icon_Selected" id="ServiceID_Icon_Selected_'.$pacc['id'].'"></div>
- <div class="ServiceID_Icon_Over" id="ServiceID_Icon_Over_'.$pacc['id'].'"></div>
- </br></br></br>
- <img src="images/shop-system/PremiumTime.png" alt="Premium Time"/>
- <div class="ServiceID_Icon_Animation_1" id="ServiceID_Icon_Animation_'.$pacc['id'].'_1" style="background-image: url('.$layout_name.'/images/payment/blank.gif);"></div>
- <label for="ServiceID_'.$pacc['id'].'">
- <div class="ServiceIDLabelContainer">
- <div class="ServiceIDLabel">
- <input type="radio" id="ServiceID_'.$pacc['id'].'" class="ServiceID" name="ServiceID" value="8">
- <input type="hidden" name="buy_id" value="'.$pacc['id'].'">
- '.$pacc['name'].'
- </div>
- </div>
- <div class="ServiceIDPriceContainer"><span class="ServiceIDPrice" id="PD_'.$pacc['id'].'">'.$pacc['points'].' Premium Points</span></div>
- </label>
- </div>';
- }else{
- echo '
- <div class="ServiceID_Deactivated ServiceID_Deactivated_Permanent" style="background-image: url('.$layout_name.'/images/payment/serviceid_deactivated.png);"></div>
- <label for="ServiceID_'.$pacc['id'].'">
- <div class="ServiceIDLabelContainer">
- <div class="ServiceIDLabel">
- <input type="radio" id="ServiceID_'.$pacc['id'].'" class="ServiceID" name="ServiceID" value="8">
- <input type="hidden" name="buy_id" value="'.$pacc['id'].'">
- '.$pacc['name'].'
- </div>
- </div>
- <div class="ServiceIDPriceContainer"><span class="ServiceIDPrice" id="PD_'.$pacc['id'].'"><font color="red"><b>Login To Buy</b></font></span></div>
- </label>
- </div>
- ';
- }
- echo '
- </div>
- </div>
- </div>
- </td>
- </tr>
- ';
- }
- }
- else if($get_offerType == 'item' && isset($offer_list['item']) && count($offer_list['item']) > 0){
- foreach($offer_list['item'] as $item){
- echo '
- <tr>
- <td>
- ';
- if(!$logged){
- echo '';
- }else{
- echo '
- <form action="?subtopic=gifts&action=select_player" method="POST" name="itemform_'.$item['id'].'">
- <div style="display:none">
- <input type="hidden" name="buy_id" value="'.$item['id'].'">
- <a href="?subtopic=gifts&action=select_player" onClick="itemform_'.$item['id'].'.submit();return false;">
- </input>
- </div>
- </form>
- ';
- }
- echo '
- <div class="ServiceID_Icon_Container" id="ServiceID_Icon_Container_'.$item['id'].'">
- <div class="ServiceID_Icon_Container_Background" id="" style="background-image:url('.$layout_name.'/images/payment/serviceid_icon_normal.png);">
- <div class="ServiceID_Icon" id="ServiceID_Icon_'.$item['id'].'" style="background-image:url('.$layout_name .'../../..'. $config['item_images_url'] . $item['item_id'] . $config['item_images_extension'] . '); background-position: center;" onclick="ChangeService('.$item['id'].', 2);" onmouseover="MouseOverServiceID('.$item['id'].', 2);" onmouseout="MouseOutServiceID('.$item['id'].', 2);">
- <div class="PermanentDeactivated">
- <span class="HelperDivIndicator" onmouseover="ActivateHelperDiv($(this), \''.$item['name'].'\', \''.$item['description'].'\');" onmouseout="$(\'#HelperDivContainer\').hide();">
- <div class="ServiceID_HelperDiv"></div>
- </span>
- </div>
- <div class="PermanentDeactivated ServiceID_Deactivated_ByChoice" id="ServiceID_NotAllowed_'.$item['id'].'" style="display: none;">
- <span class="HelperDivIndicator" onmouseover="ActivateHelperDiv($(this), \'Service Info:\', \'<p>The product is not available for the selected payment method!</p>\', \'\');" onmouseout="$(\'#HelperDivContainer\').hide();">
- <div class="ServiceID_Deactivated" style="background-image: url('.$layout_name.'/images/payment/serviceid_deactivated.png);"></div>
- </span>
- </div>';
- if($logged){
- echo '
- <div class="ServiceID_Icon_Selected" id="ServiceID_Icon_Selected_'.$item['id'].'"></div>
- <div class="ServiceID_Icon_Over" id="ServiceID_Icon_Over_'.$item['id'].'"></div>
- <div class="" style="background-image: url('.$layout_name.'/images/payment/blank.gif);"></div>
- <label for="">
- <div class="ServiceIDLabelContainer">
- <div class="ServiceIDLabel">
- '.$item['name'].'
- </div>
- </div>
- <div class="ServiceIDPriceContainer"><span class="ServiceIDPrice" id="">'.$item['points'].' Premium Points</span></div>
- </label>
- </div>';
- }else{
- echo '
- <div class="ServiceID_Deactivated ServiceID_Deactivated_Permanent" style="background-image: url('.$layout_name.'/images/payment/serviceid_deactivated.png);"></div>
- <label for="ServiceID_'.$item['item_id'].'">
- <div class="ServiceIDLabelContainer">
- <div class="ServiceIDLabel">
- <input type="radio" id="ServiceID_'.$item['item_id'].'" class="ServiceID" name="ServiceID" value="8">
- <input type="hidden" name="buy_id" value="'.$item['item_id'].'">
- '.$item['name'].'
- </div>
- </div>
- <div class="ServiceIDPriceContainer"><span class="ServiceIDPrice" id="PD_'.$item['item_id'].'"><font color="red"><b>Login To Buy</b></font></span></div>
- </label>
- </div>
- ';
- }
- echo '
- </div>
- </div>
- </div>
- ';
- echo '
- </td>
- </tr>';
- }
- }
- if(!$logged){
- $showuser_premium_points = '<b><p><font color="red">Login To Your Premium Points!</font></b></p>';
- }else{
- $showuser_premium_points = '<b><p><font color="green">You Have '.$user_premium_points.' Premium Points</font></p></b>';
- }
- echo '
- </div></div></table></div></div></table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement