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

            get_totals();

            render_media(_media.approved_unreviewed(Convert.ToInt32(Session["event_id"].ToString())));

            _media.review(Convert.ToInt32(Session["event_id"].ToString()));
        }
示例#2
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);
        }
示例#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()));
            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_approved   = _approved_unreviewed.Count.ToString("0.#");
            unreviewed_unapproved = _unapproved_unreviewed.Count.ToString("0.#");
        }