Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            permissions();;

            List <Media>   _all                   = _media.get_all(Convert.ToInt32(Session["event_id"].ToString()));
            List <Media>   _twitter               = _media.get_twitter(Convert.ToInt32(Session["event_id"].ToString()));
            List <Media>   _instagram             = _media.get_instagram(Convert.ToInt32(Session["event_id"].ToString()));
            List <Media>   _unapproved            = _media.get_unapproved(Convert.ToInt32(Session["event_id"].ToString()));
            List <Dropbox> _dropbox_total         = _dropbox.select_list(Convert.ToInt32(Session["event_id"].ToString()));
            List <Media>   _unapproved_unreviewed = _media.unapproved_unreviewed(Convert.ToInt32(Session["event_id"].ToString()));
            List <Media>   _approved_unreviewed   = _media.approved_unreviewed(Convert.ToInt32(Session["event_id"].ToString()));

            facebook_media   = _dropbox_total.Count.ToString("0.#");
            total_media      = _all.Count.ToString("0.#");
            all_media        = total_media;
            instagram_media  = _instagram.Count.ToString("0.#");
            twitter_media    = _twitter.Count.ToString("0.#");
            unapproved_media = _unapproved.Count.ToString("0.#");
            approved_media   = (_all.Count - _unapproved.Count).ToString("0.#");

            unreviewed_approvedm  = _approved_unreviewed.Count.ToString("0.#");
            unreviewed_unapproved = _unapproved_unreviewed.Count.ToString("0.#");

            render_stats(10);
        }
Exemple #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            overrideSocial.mediaManager _media = new overrideSocial.mediaManager();

            Int32 event_id = Convert.ToInt32(Page.RouteData.Values["id"] as string);

            if (Page.RouteData.Values["delay"] != null)
            {
                delay = Page.RouteData.Values["delay"].ToString() + "000";
            }

            foreach (Media m in _media.get_instagram(event_id))
            {
                ph_instagram_images_1.Controls.Add(new LiteralControl("<img src=\"" + m.source + "\" width=\"1080\" />"));
            }

            foreach (Media m in _media.get_twitter(event_id))
            {
                ph_twitter_images.Controls.Add(new LiteralControl("<img src=\"" + m.source + "\" width=\"840\" />"));
            }

            foreach (Media m2 in _media.get_twitter_reverse(event_id))
            {
                ph_twitter_reverse.Controls.Add(new LiteralControl("<img src=\"" + m2.source + "\" width=\"840\" />"));
            }
        }
Exemple #3
0
        private void get_totals()
        {
            List <Media>   _all           = _media.get_all(Convert.ToInt32(Session["event_id"].ToString()));
            List <Media>   _twitter       = _media.get_twitter(Convert.ToInt32(Session["event_id"].ToString()));
            List <Media>   _instagram     = _media.get_instagram(Convert.ToInt32(Session["event_id"].ToString()));
            List <Media>   _unapproved    = _media.get_unapproved(Convert.ToInt32(Session["event_id"].ToString()));
            List <Dropbox> _dropbox_total = _dropbox.select_list(Convert.ToInt32(Session["event_id"].ToString()));

            facebook_media   = _dropbox_total.Count.ToString("0.#");
            total_media      = _all.Count.ToString("0.#");
            all_media        = total_media;
            instagram_media  = _instagram.Count.ToString("0.#");
            twitter_media    = _twitter.Count.ToString("0.#");
            unapproved_media = _unapproved.Count.ToString("0.#");
        }