daily pastebin goal
63%
SHARE
TWEET

Untitled

a guest Dec 15th, 2018 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <p class="choise_dialog choise_subscribe">
  2.     <a href="<?php echo base_url .'subscription';?>" class="<?php if($current == '/subscription'): ?>current<?php endif; ?>"><?php echo $readers; ?></a> | <a href="<?php echo base_url .'subscription?my';?>" class="<?php if($current == '/subscription?my'): ?>current<?php endif; ?>"><?php echo $tracked; ?></a>
  3. </p>
  4. <div class="right_block subscribe_block_no_top">
  5.     <?php if (!isset($_GET['my'])) {
  6.      if ($num_user_subscription != 0) {
  7.         foreach ($row_user_subscription as $value) {
  8.             $_SESSION['readers_subscription'] = $value[5];
  9.             $now_date = date('Y-m-d');
  10.             $year_user = $now_date - $value[4];
  11.             ?>
  12. <script type="text/javascript">
  13.         function send_subscription()
  14.         {
  15.             var readers_subscription_recipient=$("#readers_subscription_recipient").val();
  16.             $.ajax({
  17.                 type: "POST",
  18.                 url: "js_files/subscription_users_insert.php",
  19.                 data:"readers_subscription_recipient="+readers_subscription_recipient,
  20.                 success: function(html)
  21.                 {
  22.                     readers_subscription_user();
  23.                     $("#readers_subscription_recipient").val('');
  24.                 }
  25.             });
  26.         }
  27.         function readers_subscription_user()
  28.         {
  29.             $.ajax({
  30.                 type: "POST",
  31.                 url:  "js_files/readers_subscriptions_select.php",
  32.                 data: "req=ok",
  33.                 success: function(html)
  34.                 {
  35.                     $("#readers_subscription").empty();
  36.                     $("#readers_subscription").append(html);
  37.                 }
  38.             });
  39.         }
  40.         function send_locked_subscription()
  41.         {
  42.             var locked_subscription_recipient=$("#locked_subscription_recipient").val();
  43.             $.ajax({
  44.                 type: "POST",
  45.                 url: "js_files/locked_subscription_insert.php",
  46.                 data:"locked_subscription_recipient="+locked_subscription_recipient,
  47.                 success: function(html)
  48.                 {
  49.                     locked_readers_subscription_user();
  50.                     $("#locked_subscription_recipient").val('');
  51.                 }
  52.             });
  53.         }
  54.         function locked_readers_subscription_user()
  55.         {
  56.             $.ajax({
  57.                 type: "POST",
  58.                 url:  "js_files/locked_subscription_select.php",
  59.                 data: "req=ok",
  60.                 success: function(html)
  61.                 {
  62.                     $("#locked_subscription").empty();
  63.                     $("#locked_subscription").append(html);
  64.                 }
  65.             });
  66.         }
  67.     </script>
  68.             <div class="subscribe_people">
  69.                 <div class="subscribe_people_ava">
  70.                     <?php if (!empty($value['3'])) { ?>
  71.                     <img src="<?php echo '../gallery/users/avatars/'.$value['3']; ?>">
  72.                     <?php } else { ?>
  73.                     <img src="../img/noavatar.png">
  74.                     <?php } ?>
  75.                 </div>
  76.                 <div class="subscribe_people_name">
  77.                     <h3><?php echo $value[1].' '.$value[2]; ?></h3>
  78.                     <p><?php echo $year_user; ?> years</p>
  79.                 </div>
  80.                 <div class="subscribe_people_button">
  81.                     <div id="locked_subscription"> </div>
  82.                     <div id="readers_subscription"> </div>
  83.                 </div>
  84.             </div>
  85.             <script>
  86.                 readers_subscription_user();
  87.                 locked_readers_subscription_user();
  88.             </script>
  89.             <?php }
  90.         }
  91.     }
  92.     else {
  93.         if (isset($_GET['my'])) { ?>
  94.  
  95.         <div class="subscribe_people">
  96.             <div class="subscribe_people_ava">
  97.                 <img src="../img/pol.jpg">
  98.             </div>
  99.             <div class="subscribe_people_name">
  100.                 <h3>Катерина Катерина</h3>
  101.                 <p>98 years</p>
  102.             </div>
  103.             <div class="subscribe_people_button">
  104.                 <button><?php echo $unsubscribe_button; ?></button>
  105.             </div>
  106.         </div>
  107.         <?php }
  108.     } ?>
  109. </div>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top