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); }
protected void Page_Load(object sender, EventArgs e) { overrideSocial.mediaManager _media = new overrideSocial.mediaManager(); foreach (Media m in _media.get_all(Convert.ToInt32(Page.RouteData.Values["id"] as string), true)) { ph_photos.Controls.Add(new LiteralControl("<div class=\"crystal-photo\" title=\"" + m.full_name + "\"><div class=\"crystal-image\" title=\"" + m.source + "\"></div><div class=\"crystal-thumb\" title=\"" + m.source + "\"></div><div class=\"crystal-desc crystal-align-left-center crystal-desc-width-30%\"><h2>" + m.full_name + "</h2><p>" + m.description + "</p></div></div>")); } }
protected void Page_Load(object sender, EventArgs e) { overrideSocial.mediaManager _media = new overrideSocial.mediaManager(); if (Page.RouteData.Values["delay"] != null) { delay = Page.RouteData.Values["delay"].ToString() + "000"; } foreach (Media m in _media.get_all(Convert.ToInt32(Page.RouteData.Values["id"] as string), true)) { ph_images.Controls.Add(new LiteralControl("<li data-thumb=\"" + m.source + "\"></li>")); } }
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.#"); }
protected void Page_Load(object sender, EventArgs e) { permissions(); get_totals(); if (Page.RouteData.Values["unapproved"] != null) { string status = Page.RouteData.Values["unapproved"].ToString(); if (status == "unapproved") { render_media(_media.get_unapproved(Convert.ToInt32(Session["event_id"].ToString()))); } else { render_media(_media.get_all(Convert.ToInt32(Session["event_id"].ToString()), true)); } } else { render_media(_media.get_all(Convert.ToInt32(Session["event_id"].ToString()))); } }