<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" > <title>Wikipedia Views: results</title> <?php include "style/toggler.inc"; print '</head>'; include_once "backend/corecode.inc"; $formdata = true; $pagetypeadvice = "onemonth"; include "retrieval/pagelistretrieval.inc"; include "retrieval/advancedoptionretrieval.inc"; $month = $mostrecentmonth; if (!empty($_REQUEST['month'])) { $month = $_REQUEST['month']; } $monthlist = array($month); if ($pagespecificationerror == true or $monthspecificationerror == true) { include "inputdisplay/" . $pagetypeadvice . "dataentry.inc"; } elseif ($displayformat == 'csv') { printpageviewsformonthoryearlistascsv($pagelistasarray, array($month), $language, $explanatoryheader, $includetotal, $numericdisplayformat); } elseif ($displayformat == 'htmltable') { include "style/head.inc"; printpageviewsformonthoryearlistashtmltable($pagelistasarray, $monthlist, $language, $explanatoryheader, $includetotal, $numericdisplayformat, $normalization); $originalmonthlist = $monthlist; $displayformat = 'htmltableautomatic'; $carryoverfromonemonth = true; include "inputdisplay/multiplemonthsdataentry.inc"; } elseif ($displayformat == 'csvtransposed') { printpageviewsformonthoryearlistascsvtransposed($pagelistasarray, array($month), $language, $explanatoryheader, $includetotal, $numericdisplayformat); } elseif ($displayformat == 'countsonlyseparatelines') { printpageviewsascountsonlyseparatelines($pagelistasarray, $month, $language, $explanatoryheader, $includetotal, $numericdisplayformat); }
$formdata = true; $pagetypeadvice = "multipletagsandmonths"; include "retrieval/taglistretrieval.inc"; include "retrieval/monthlistretrieval.inc"; include "retrieval/advancedoptionretrieval.inc"; if ($pagespecificationerror == true or $monthspecificationerror == true) { include "inputdisplay/" . $pagetypeadvice . "dataentry.inc"; } if ($displayformat == 'htmltableautomatic') { include "style/head.inc"; if (count($taglist) >= count($monthlist)) { printpageviewsformonthoryearlistashtmltable($taglist, $monthlist, $language, $explanatoryheader, $includetotal, $numericdisplayformat, $normalization, 'tag', 'month'); } else { printpageviewsformonthoryearlistashtmltabletransposed($taglist, $monthlist, $language, $explanatoryheader, $includetotal, $numericdisplayformat, $normalization, 'tag', 'month'); } include "inputdisplay/multipletagsandmonthsdataentry.inc"; } elseif ($displayformat == 'htmltable') { include "style/head.inc"; printpageviewsformonthoryearlistashtmltable($taglist, $monthlist, $language, $explanatoryheader, $includetotal, $numericdisplayformat, $normalization, 'tag', 'month'); include "inputdisplay/multipletagsandmonthsdataentry.inc"; } elseif ($displayformat == 'htmltabletransposed') { include "style/head.inc"; printpageviewsformonthoryearlistashtmltabletransposed($taglist, $monthlist, $language, $explanatoryheader, $includetotal, $numericdisplayformat, $normalization, 'tag', 'month'); include "inputdisplay/multipletagsandmonthsdataentry.inc"; } elseif ($displayformat == 'csv') { printpageviewsformonthoryearlistascsv($taglist, $monthlist, $language, $explanatoryheader, $includetotal, $numericdisplayformat, '', 'tag', 'month'); } elseif ($displayformat == 'csvtransposed') { printpageviewsformonthoryearlistascsvtransposed($taglist, $monthlist, $language, $explanatoryheader, $includetotal, $numericdisplayformat, '', 'tag', 'month'); } elseif ($displayformat == 'cpi') { printpageviewsformonthoryearlistascpi($taglist, $monthlist, $language, $explanatoryheader, $includetotal, $numericdisplayformat, '', 'tag', 'month'); }
$formdata = true; $pagetypeadvice = "multipleyears"; include "retrieval/pagelistretrieval.inc"; include "retrieval/yearlistretrieval.inc"; include "retrieval/advancedoptionretrieval.inc"; ##Clumsy hack below, needs refactoring if ($pagespecificationerror == true or $yearspecificationerror == true) { include "inputdisplay/multipleyearsdataentry.inc"; } elseif ($displayformat == 'htmltableautomatic') { include "style/head.inc"; if (count($pagelistasarray) >= count($yearlist)) { printpageviewsformonthoryearlistashtmltable($pagelistasarray, $yearlist, $language, $explanatoryheader, $includetotal, $numericdisplayformat, $normalization, 'page', 'year'); } else { printpageviewsformonthoryearlistashtmltabletransposed($pagelistasarray, $yearlist, $language, $explanatoryheader, $includetotal, $numericdisplayformat, $normalization, 'page', 'year'); } include "inputdisplay/multipleyearsdataentry.inc"; } elseif ($displayformat == 'htmltable') { include "style/head.inc"; printpageviewsformonthoryearlistashtmltable($pagelistasarray, $yearlist, $language, $explanatoryheader, $includetotal, $numericdisplayformat, $normalization, 'page', 'year'); include "inputdisplay/multipleyearsdataentry.inc"; } elseif ($displayformat == 'htmltabletransposed') { include "style/head.inc"; printpageviewsformonthoryearlistashtmltabletransposed($pagelistasarray, $yearlist, $language, $explanatoryheader, $includetotal, $numericdisplayformat, $normalization, 'page', 'year'); include "inputdisplay/multipleyearsdataentry.inc"; } elseif ($displayformat == 'csv') { printpageviewsformonthoryearlistascsv($pagelistasarray, $yearlist, $language, $explanatoryheader, $includetotal, $numericdisplayformat, '', 'page', 'year'); } elseif ($displayformat == 'csvtransposed') { printpageviewsformonthoryearlistascsvtransposed($pagelistasarray, $yearlist, $language, $explanatoryheader, $includetotal, $numericdisplayformat, '', 'page', 'year'); } elseif ($displayformat == 'cpi') { printpageviewsformonthoryearlistascpi($pagelistasarray, $yearlist, $language, $explanatoryheader, $includetotal, $numericdisplayformat, '', 'page', 'year'); }