20 require_once(
'HistogramBase.php');
22 define(
"TITLE_EMAILHISTOGRAM", _(
"Email/URL/Author Browser"));
25 function __construct()
27 $this->Name =
"email-hist";
28 $this->Title = TITLE_EMAILHISTOGRAM;
29 $this->viewName =
"email-view";
30 $this->agentName =
"copyright";
31 parent::__construct();
44 $typeDescriptionPairs = array(
45 'email' => _(
"Email"),
47 'author' => _(
"Author")
51 foreach($typeDescriptionPairs as $type=>$description)
54 $tableVars[$type] = $vars;
58 $output[] = $tableVars;
67 protected function fillTables($upload_pk, $Uploadtree_pk, $filter, $agentId, $VF)
69 list($VEmail, $VUrl, $VAuthor, $tableVars) = $this->
getTableContent($upload_pk, $Uploadtree_pk, $filter, $agentId);
72 array(
'contEmail'=>$VEmail,
'contUrl'=>$VUrl,
'contAuthor'=>$VAuthor,
74 return array($out, $tableVars);
87 if (!empty($Item) && !empty($Upload))
96 $text = _(
"View email/URL/author histogram");
97 menu_insert(
"Browse::Email/URL/Author",10,$URI,$text);
110 var emailTabCookie = 'stickyEmailTab'; 112 $(document).ready(function() { 113 tableEmail = createTableemail(); 114 tableUrl = createTableurl(); 115 tableAuthor = createTableauthor(); 116 $(\"#EmailUrlAuthorTabs\").tabs({ 117 active: ($.cookie(emailTabCookie) || 0), 118 activate: function(e, ui){ 119 // Get active tab index and update cookie 120 var idString = $(e.currentTarget).attr('id'); 121 idString = parseInt(idString.slice(-1)) - 1; 122 $.cookie(emailTabCookie, idString); getTableForSingleType($type, $description, $uploadId, $uploadTreeId, $filter, $agentId)
getTableContent($upload_pk, $uploadtreeId, $filter, $agentId)
Get contents for author table.
fillTables($upload_pk, $Uploadtree_pk, $filter, $agentId, $VF)
Get copyright statements and fill the main content table.
RegisterMenus()
While menus can be added to any time at or after the PostInitialize phase, this is the standard locat...
GetParm($parameterName, $parameterType)
This function will retrieve the variables and check data types.
renderString($templateName, $vars=null)
createScriptBlock()
Create JavaScript block for histogram.
list_t type structure used to keep various lists. (e.g. there are multiple lists).
Traceback_parm_keep($List)
Create a new URI, keeping only these items.
Base class for histogram plugins.