Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 14.02 KB | None | 0 0
  1.  <center>
  2.         <div class="TableContainer" style="position:relative;"">
  3.          <div class="ribbonShop-double"></div>
  4.            <div class="CaptionContainer">
  5.              <div class="CaptionInnerContainer">
  6.                             <span class="CaptionEdgeLeftTop" style="background-image:url(templates/tibiarl/images/content/box-frame-edge.gif);"></span>
  7.                             <span class="CaptionEdgeRightTop" style="background-image:url(templates/tibiarl/images/content/box-frame-edge.gif);"></span>
  8.                             <span class="CaptionBorderTop" style="background-image:url(templates/tibiarl/images/content/table-headline-border.gif);"></span>
  9.                             <span class="CaptionVerticalLeft" style="background-image:url(templates/tibiarl/images/content/box-frame-vertical.gif);"></span>
  10.                             <div class="Text">'.$config['server_name'].' Shop</div>
  11.                             <span class="CaptionVerticalRight" style="background-image:url(templates/tibiarl/images/content/box-frame-vertical.gif);"></span>
  12.                             <span class="CaptionBorderBottom" style="background-image:url(templates/tibiarl/images/content/table-headline-border.gif);"></span>
  13.                             <span class="CaptionEdgeLeftBottom" style="background-image:url(templates/tibiarl/images/content/box-frame-edge.gif);"></span>
  14.                             <span class="CaptionEdgeRightBottom" style="background-image:url(templates/tibiarl/images/content/box-frame-edge.gif);"></span>
  15.                         </div>
  16.                     </div>
  17.                 </div>
  18.                    
  19.                     ';
  20.                     $offer_types = array();
  21.                     $tmp_query = $db->query('SELECT `name`, `description` FROM `' . 'z_shop_categories` WHERE `hidden` != 1')->fetchAll();
  22.                     foreach($tmp_query as $tmp_res)
  23.                         $offer_types[$tmp_res['name']] = $tmp_res['description'];
  24.  
  25.                     $get_offerType = isset($_GET['offertype']) ? $_GET['offertype'] : 'item';
  26.  
  27.                     echo '
  28.  
  29.                         <tr>
  30.                             <td>
  31.                                 <div class="InnerTableContainer">
  32.                                     <table style="width:100%;">
  33.                                         <tbody>
  34.                                             <tr>
  35.                                                 <td>';
  36.                                                     foreach($offer_types as $offer_type => $offer_name){
  37.                                                     echo
  38.                            '
  39.                                                     <span class="HelperDivIndicator">
  40.                                                         <div class="InnerTableTab '.selectcolor($offer_type).'">
  41.                                                             <div id="ProductCategoryHelperDiv_5" class="ProductCategoryHelperDiv"></div>
  42.                                                             <a href="?subtopic=gifts&offertype='.strtolower($offer_type).'">
  43.                                                                 <img src="'.$layout_name.'/images/payment/products_tab_'.selectcolorbg($offer_type).'.png">
  44.                                                                 <div class="InnerTableTabLabel">'.$offer_name.'</div>
  45.                                                             </a>
  46.                                                         </div>
  47.                                                     </span>';
  48.                                                     }
  49.                                                     echo '
  50.                                                 </td>
  51.                                             </tr>
  52.                                         </tbody>
  53.                                     </table>
  54.                                 </div>
  55.                             </td>
  56.                         </tr>
  57.                    
  58.                     ';
  59.                     if(!isset($offer_types[$get_offerType])) {
  60.                         warning("This offer type doesn't exist. Please specify different name.");
  61.                         return;
  62.                     }
  63.  
  64.                     $offer_list = getOfferArray();
  65.                     echo '
  66.           <div class="TableShadowContainerRightTop">
  67.             <div class="TableShadowRightTop" style="background-image:url(templates/tibiarl/images/content/table-shadow-rt.gif);"></div>
  68.           </div>
  69.           <div class="TableContentAndRightShadow" style="background-image:url(templates/tibiarl/images/content/table-shadow-rm.gif);">
  70.             <div class="TableContentContainer">
  71.               <table class="TableContent" style="display: flex; align-content: flex-start; border:1px solid #faf0d7; width: 100%;">
  72.                         ';
  73.            
  74.                         if($get_offerType == 'pacc' && isset($offer_list['pacc']) && count($offer_list['pacc']) > 0){
  75.                             foreach($offer_list['pacc'] as $pacc){
  76.                //echo $_SERVER["REQUEST_URI"];
  77.                             echo '
  78.                             <tr>
  79.                                 <td>';
  80.                                     if(!$logged)
  81.                                     {
  82.                                     }
  83.                                     else
  84.                                     {
  85.                                         echo '
  86.                       <form action="?subtopic=gifts&action=select_player" method="POST" name="'.$pacc['id'].'">
  87.                         <div style="display:none">
  88.                                               <input type="hidden" name="buy_id" value="'.$pacc['id'].'">
  89.                           <a href="?subtopic=gifts&action=select_player" onClick="'.$pacc['id'].'.submit(); return false;">
  90.                         </div>
  91.                         </form>
  92.                                         ';
  93.                                     }
  94.                                     echo '
  95.                                     <div class="ServiceID_Icon_Container" id="ServiceID_Icon_Container_'.$pacc['id'].'">
  96.                                         <div class="ServiceID_Icon_Container_Background" id="" style="background-image:url('.$layout_name.'/images/payment/serviceid_icon_normal.png);">
  97.                                             <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);">
  98.                                                 <div class="PermanentDeactivated">
  99.                                                     <span class="HelperDivIndicator" onmouseover="ActivateHelperDiv($(this), \''.$pacc['name'].'\', \''.$pacc['description'].'\,\');" onmouseout="$(\'#HelperDivContainer\').hide();">
  100.                                                         <div class="ServiceID_HelperDiv"></div>
  101.                                                     </span>
  102.                                                 </div>
  103.                                                 <div class="PermanentDeactivated ServiceID_Deactivated_ByChoice" id="ServiceID_NotAllowed_'.$pacc['id'].'" style="display: none;">
  104.                                                     <span class="HelperDivIndicator" onmouseover="ActivateHelperDiv($(this), \'Service Info:\', \'<p>The product is not available for the selected payment method!</p>\', \'\');" onmouseout="$(\'#HelperDivContainer\').hide();">
  105.                                                         <div class="ServiceID_Deactivated" style="background-image: url('.$layout_name.'/images/payment/serviceid_deactivated.png);"></div>
  106.                                                     </span>
  107.                                                 </div>';
  108.                                                 if($logged){
  109.                            echo '
  110.                                                         <div class="ServiceID_Icon_Selected" id="ServiceID_Icon_Selected_'.$pacc['id'].'"></div>
  111.                                                         <div class="ServiceID_Icon_Over" id="ServiceID_Icon_Over_'.$pacc['id'].'"></div>
  112.                                                         </br></br></br>
  113.                                                         <img src="images/shop-system/PremiumTime.png" alt="Premium Time"/>
  114.                                                         <div class="ServiceID_Icon_Animation_1" id="ServiceID_Icon_Animation_'.$pacc['id'].'_1" style="background-image: url('.$layout_name.'/images/payment/blank.gif);"></div>
  115.                                                             <label for="ServiceID_'.$pacc['id'].'">
  116.                                                                 <div class="ServiceIDLabelContainer">
  117.                                                                     <div class="ServiceIDLabel">
  118.                                                                         <input type="radio" id="ServiceID_'.$pacc['id'].'" class="ServiceID" name="ServiceID" value="8">
  119.                                                                         <input type="hidden" name="buy_id" value="'.$pacc['id'].'">
  120.                                                                         '.$pacc['name'].'
  121.                                                                     </div>
  122.                                                                 </div>
  123.                                                                 <div class="ServiceIDPriceContainer"><span class="ServiceIDPrice" id="PD_'.$pacc['id'].'">'.$pacc['points'].' Premium Points</span></div>
  124.                                                             </label>
  125.                                                         </div>';
  126.                                                   }else{
  127.                                                     echo '
  128.                               <div class="ServiceID_Deactivated ServiceID_Deactivated_Permanent" style="background-image: url('.$layout_name.'/images/payment/serviceid_deactivated.png);"></div>
  129.                                 <label for="ServiceID_'.$pacc['id'].'">
  130.                                   <div class="ServiceIDLabelContainer">
  131.                                     <div class="ServiceIDLabel">
  132.                                       <input type="radio" id="ServiceID_'.$pacc['id'].'" class="ServiceID" name="ServiceID" value="8">
  133.                                       <input type="hidden" name="buy_id" value="'.$pacc['id'].'">
  134.                                       '.$pacc['name'].'
  135.                                     </div>
  136.                                   </div>
  137.                                   <div class="ServiceIDPriceContainer"><span class="ServiceIDPrice" id="PD_'.$pacc['id'].'"><font color="red"><b>Login To Buy</b></font></span></div>
  138.                                 </label>
  139.                               </div>
  140.                                                     ';
  141.                                                 }
  142.                                                 echo '
  143.                                             </div>
  144.                                         </div>
  145.                                     </div>
  146.                                 </td>
  147.                             </tr>
  148.                             ';
  149.                             }
  150.                         }
  151.                 else if($get_offerType == 'item' && isset($offer_list['item']) && count($offer_list['item']) > 0){
  152.                     foreach($offer_list['item'] as $item){
  153.                         echo '
  154.                             <tr>
  155.                                 <td>
  156.                         ';
  157.                        if(!$logged){
  158.                          echo '';
  159.                        }else{
  160.                          echo '
  161.                             <form action="?subtopic=gifts&action=select_player" method="POST" name="itemform_'.$item['id'].'">
  162.                               <div style="display:none">
  163.                                 <input type="hidden" name="buy_id" value="'.$item['id'].'">
  164.                                     <a href="?subtopic=gifts&action=select_player" onClick="itemform_'.$item['id'].'.submit();return false;">
  165.                                 </input>
  166.                               </div>
  167.                             </form>
  168.                           ';
  169.                        }
  170.                        echo '
  171.                           <div class="ServiceID_Icon_Container" id="ServiceID_Icon_Container_'.$item['id'].'">
  172.                             <div class="ServiceID_Icon_Container_Background" id="" style="background-image:url('.$layout_name.'/images/payment/serviceid_icon_normal.png);">
  173.                               <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);">
  174.                                 <div class="PermanentDeactivated">
  175.                                   <span class="HelperDivIndicator" onmouseover="ActivateHelperDiv($(this), \''.$item['name'].'\', \''.$item['description'].'\');" onmouseout="$(\'#HelperDivContainer\').hide();">
  176.                                     <div class="ServiceID_HelperDiv"></div>
  177.                                   </span>
  178.                                 </div>
  179.                                 <div class="PermanentDeactivated ServiceID_Deactivated_ByChoice" id="ServiceID_NotAllowed_'.$item['id'].'" style="display: none;">
  180.                                   <span class="HelperDivIndicator" onmouseover="ActivateHelperDiv($(this), \'Service Info:\', \'<p>The product is not available for the selected payment method!</p>\', \'\');" onmouseout="$(\'#HelperDivContainer\').hide();">
  181.                                     <div class="ServiceID_Deactivated" style="background-image: url('.$layout_name.'/images/payment/serviceid_deactivated.png);"></div>
  182.                                   </span>
  183.                                 </div>';
  184.                                if($logged){
  185.                                  echo '
  186.                                   <div class="ServiceID_Icon_Selected" id="ServiceID_Icon_Selected_'.$item['id'].'"></div>
  187.                                   <div class="ServiceID_Icon_Over" id="ServiceID_Icon_Over_'.$item['id'].'"></div>
  188.                                   <div class="" style="background-image: url('.$layout_name.'/images/payment/blank.gif);"></div>
  189.                                     <label for="">
  190.                                       <div class="ServiceIDLabelContainer">
  191.                                         <div class="ServiceIDLabel">
  192.                                          
  193.                                           '.$item['name'].'
  194.  
  195.                                         </div>
  196.                                       </div>
  197.                                       <div class="ServiceIDPriceContainer"><span class="ServiceIDPrice" id="">'.$item['points'].' Premium Points</span></div>
  198.                                     </label>
  199.                                   </div>';
  200.                                }else{
  201.                                  echo '
  202.                                     <div class="ServiceID_Deactivated ServiceID_Deactivated_Permanent" style="background-image: url('.$layout_name.'/images/payment/serviceid_deactivated.png);"></div>
  203.                                       <label for="ServiceID_'.$item['item_id'].'">
  204.                                         <div class="ServiceIDLabelContainer">
  205.                                           <div class="ServiceIDLabel">
  206.                                             <input type="radio" id="ServiceID_'.$item['item_id'].'" class="ServiceID" name="ServiceID" value="8">
  207.                                             <input type="hidden" name="buy_id" value="'.$item['item_id'].'">
  208.                                             '.$item['name'].'
  209.                                           </div>
  210.                                         </div>
  211.                                         <div class="ServiceIDPriceContainer"><span class="ServiceIDPrice" id="PD_'.$item['item_id'].'"><font color="red"><b>Login To Buy</b></font></span></div>
  212.                                       </label>
  213.                                     </div>
  214.                                   ';
  215.                                }
  216.                                echo '
  217.                               </div>
  218.                             </div>
  219.                           </div>
  220.                         ';
  221.                        echo '
  222.                     </td>
  223.                   </tr>';
  224.                         }
  225.                     }
  226.          if(!$logged){
  227.            $showuser_premium_points = '<b><p><font color="red">Login To Your Premium Points!</font></b></p>';
  228.          }else{
  229.            $showuser_premium_points = '<b><p><font color="green">You Have '.$user_premium_points.' Premium Points</font></p></b>';
  230.          }
  231.                     echo '
  232.                     </div></div></table></div></div></table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement