text:
<!doctype html>

    <title>Essential New Head</title>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">

    <link rel="import" href="../bower_components/paper-styles/paper-styles.html">
    <link rel="import" href="../bower_components/neon-animation/neon-animated-pages.html">
    <link rel="import" href="../bower_components/neon-animation/neon-animations.html">
    <link rel="import" href="../bower_components/paper-toolbar/paper-toolbar.html">
    <link rel="import" href="../bower_components/iron-icon/iron-icon.html">
    <link rel="import" href="../bower_components/iron-icons/iron-icons.html">
    <link rel="import" href="../bower_components/paper-icon-button/paper-icon-button.html">
    <link rel="import" href="circles-page.html">
    <link rel="import" href="squares-page.html">

	 <paper-toolbar>
         Essential Hotels

		 0800 180 4700

		 <iron-icon icon="search"></iron-icon>
     </paper-toolbar>

    <template is="dom-bind">

      <neon-animated-pages id="pages" selected="0">

        <circles-page on-circle-click="_onCircleClick"></circles-page>

        <squares-page on-click="_onSquaresClick"></squares-page>

      </neon-animated-pages>

    </template>


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RaceDay.ViewModel;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
using RaceDay.Model;
using RaceDay.Helpers;

namespace RaceDay.View
{
    [XamlCompilation(XamlCompilationOptions.Compile)]
    public partial class EventTabs : TabbedPage
    {
        EventsViewModel vm { get; set; }
        Boolean isStartup = true;
        DateTime lastRefresh = DateTime.MinValue;

        public EventTabs()
        {
            InitializeComponent();

            // Set Tabs to Accent color
            //
            if (Device.RuntimePlatform == Device.Android)
            {
                if (Application.Current.UserAppTheme == OSAppTheme.Light ||
                    (Application.Current.UserAppTheme == OSAppTheme.Unspecified && Application.Current.RequestedTheme == OSAppTheme.Light))
                {
                    BarBackgroundColor = Color.FromHex("ff03A9F4");
                }
                else
                {
                    BarBackgroundColor = Color.FromHex("ff757575");
                }
            }
            else
            {
                if (Application.Current.UserAppTheme == OSAppTheme.Light ||
                    (Application.Current.UserAppTheme == OSAppTheme.Unspecified && Application.Current.RequestedTheme == OSAppTheme.Light))
                {
                    BarBackgroundColor = Color.FromHex("ffEBEBEB");
                }
                else
                {
                    BarBackgroundColor = Color.FromHex("ff757575");
                }
            }

            // Shared ViewModel as both have same list as source (one with a filter)
            //
            vm = new EventsViewModel();

            // Toolbar Items
            //
            Title = "JYMF Events";
            if (Device.RuntimePlatform != Device.Android)
            {
                ToolbarItems.Add(new ToolbarItem()
                {
                    IconImageSource = "ic_add_circle.png",
                    Text = "New Event",
                    Order = ToolbarItemOrder.Primary,
                    Command = new Command(() =>
                    {
                        Event emptyEvent = new Event()
                        {
                            Name = string.Empty,
                            Date = DateTime.Now.Date,
                            Location = string.Empty,
                            Url = string.Empty,
                            Description = string.Empty
                        };
                        Navigation.PushAsync(new AddEvent(emptyEvent, vm));
                    })
                });
            }
            ToolbarItems.Add(new ToolbarItem()
            {
                IconImageSource = "ic_autorenew.png",
                Text = "Refresh",
                Order = ToolbarItemOrder.Primary,
                Command = new Command(() =>
                {
                    if (vm.GetEventsCommand.CanExecute(this))
                        vm.GetEventsCommand.Execute(this);
                })
            });
            ToolbarItems.Add(new ToolbarItem()
            {
                IconImageSource = "ic_settings.png",
                Text = "Settings",
                Order = ToolbarItemOrder.Primary,
                Command = new Command(() =>
                {
                    Navigation.PushAsync(new SettingsView());
                })
            });

            // Add the tab content pages
            //
            Children.Add(new AllEvents(vm) { Title = "ALL EVENTS", IconImageSource = (Device.RuntimePlatform == Device.iOS ? "ic_group.png": string.Empty) });
            Children.Add(new MyEvents(vm) { Title = "MY EVENTS", IconImageSource = (Device.RuntimePlatform == Device.iOS ? "ic_person.png" : string.Empty) });
        }

        protected override void OnAppearing()
        {
            base.OnAppearing();

            // Populate lists on page creation
            //
            if ((isStartup) || (DateTime.Now.AddDays(-1) > lastRefresh))
            {
                if (vm.GetEventsCommand.CanExecute(this))
                    vm.GetEventsCommand.Execute(this);

                lastRefresh = DateTime.Now;
            }

            // Make main page if coming from a login
            //
            if (isStartup)
            {
                ResetNavigationStack();
                isStartup = false;
            }

            // Display Tips
            //
            if (Settings.HideInformation == false)
            {
                Settings.HideInformation = true;
                Navigation.PushModalAsync(new InfoTips());
            }
        }

        private void ResetNavigationStack()
        {
            if (Navigation != null && Navigation.NavigationStack.Count() > 1)
            {
                while(Navigation.NavigationStack.Count() > 1)
                {
                    Navigation.RemovePage(Navigation.NavigationStack[0]);
                }
            }
        }
    }
}

redpajama_set_name: RedPajamaGithub


text:
<?php

/**
 * Created by PhpStorm.
 * User: lin11
 * Date: 2016/11/1
 * Time: 15:14
 */
class ClubCollection implements ClubCollectionService
{

    function getClubList($condition)
    {
        // TODO: Implement getClubList() method.
        $clubTb = new ClubData();
        $result = $clubTb->getClubByCondition($condition);
        return $result;
    }

    function createClub($data)
    {
        // TODO: Implement createClub() method.
        $clubTb = new ClubData();
        $data['createdate'] = date(FORMAT_DATE);
        $clubTb->insert($data);
    }
    function getUserJoinedClub($uid){
        $userInClubTb = new UserInClub();
        $clubTb = new ClubData();
        $result = array();
        $clubs = $userInClubTb->find('uid',$uid);
        foreach ($clubs as $value){
            $item = array();
            $item['id'] = $value['clubid'];
            $item['name'] = $clubTb->findById($value['clubid'])['name'];
            $result[] = $item;
        }
        return $result;
    }

    function getUserCreatedClub($uid)
    {
        // TODO: Implement getUserCreatedClub() method.
        $clubTb = new ClubData();
        $result = array();
        $clubs = $clubTb->find('managerid',$uid);
        foreach ($clubs as $value){
            $item = array();
            $item['id'] = $value['id'];
            $item['name'] = $value['name'];
            $result[] = $item;
        }
        return $result;
    }

    function getClubActivity($uid)
    {
        // TODO: Implement getClubActivity() method.
        $activityTb = new ActivityOfClub();
        $clubTb = new ClubData();
        $clubs = array_merge($this->getUserCreatedClub($uid),$this->getUserJoinedClub($uid));
        $ids = array();
        foreach ($clubs as $value){
            $ids[] = $value['id'];
        }
        $result = $activityTb->getActivities($ids);

        for($i = 0;$i<count($result);$i++){
            $result[$i]['clubname'] = $clubTb->findById($result[$i]['clubid'])['name'];
        }
        return $result;

    }

    function searchClubs($key)
    {
        // TODO: Implement searchClubs() method.
        $clubTb = new ClubData();
        $result=$clubTb->search('name',$key);
        return $result;
    }

    function deleteClub($id)
    {
        // TODO: Implement deleteClub() method.
        $clubTb = new ClubData();
        $clubTb->deleteById($id);
    }
}