function bind() { $this->page_title = "Browse election leaflets"; //get top parties $parties_counts = tableclass_party::get_party_count(STAT_ZERO_DATE); $this->assign("parties_counts", $parties_counts); //get categories $categories_counts = tableclass_category::get_category_count(STAT_ZERO_DATE); $this->assign("categories_counts", $categories_counts); //get electorates $constituencies_counts = tableclass_constituency::get_constituency_count(STAT_ZERO_DATE); $this->assign("constituencies_counts", $constituencies_counts); //get top tags $tag = factory::create("tag"); $weighted_tags = $tag->get_weighted_tags(); $this->assign("weighted_tags", $weighted_tags); }
function bind() { $this->page_title = SITE_TAG_LINE; $this->onloadscript = "\$('#divScroller ul').jcarousel({wrap: 'last',initCallback: mycarousel_initCallback,buttonNextHTML: null,buttonPrevHTML: null});"; //get count of leaflets $leaflet = factory::create('leaflet'); $this->assign("leaflet_count", $leaflet->count_live()); //get recent leaflets $leaflet_search = factory::create("leaflet_search"); $leaflet_search->start = 0; $leaflet_search->number = 60; $leaflets = $leaflet_search->search(true); //counts $party_counts = tableclass_party::get_party_count(STAT_ZERO_DATE); $not_spots = tableclass_constituency::get_not_spots(); $constituency_counts = tableclass_constituency::get_constituency_count(STAT_ZERO_DATE); //assign $this->assign("party_counts", $party_counts); $this->assign("constituency_counts", $constituency_counts); $this->assign("constituencies", $constituencies); $this->assign("not_spots", $not_spots); $this->assign("leaflets", $leaflets); $this->assign("is_home", true); }
function bind() { $this->page_title = "Not-spots"; $not_spots = tableclass_constituency::get_not_spots(800); $this->assign("not_spots", $not_spots); }
function bind() { $this->page_title = SITE_TAG_LINE; $not_spots = tableclass_constituency::get_not_spots(800); $this->assign("not_spots", $not_spots); }