2
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
3
<?xml-stylesheet href="chrome://asterisk-ext/skin/history.css" type="text/css"?>
4
<!DOCTYPE popupwindow [
5
<!ENTITY % asteriskextDTD SYSTEM "chrome://asterisk-ext/locale/asterisk-ext.dtd">
8
<dialog id="historyWindow" title="Calls History"
9
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
10
windowtype="asteriskext:history"
12
persist="screenX,screenY,height,width"
13
xmlns:xhtml="http://www.w3.org/1999/xhtml"
14
onload="AsteriskExtChrome.history.load();" >
15
<script type="application/javascript" src="chrome://asterisk-ext/content/history.js"/>
17
<stringbundleset id="stringbundleset">
18
<stringbundle id="asterisk-ext-strings" src="chrome://asterisk-ext/locale/asterisk-ext.properties" />
22
<menupopup id="historyContextMenu"
23
onpopupshowing="return AsteriskExtChrome.history.onContextMenu(event);">
24
<menuitem image="chrome://asterisk-ext/skin/logo-20.png"
25
class="menuitem-iconic" id="context-asterisk" label="&menu.call;"
26
accesskey="&menu.callKey;" oncommand="AsteriskExtChrome.history.dial(this.value);"
28
<menuitem image="chrome://asterisk-ext/skin/logo-20.png"
29
class="menuitem-iconic" id="context-asterisk-edit" label="&menu.editcall;"
30
accesskey="&menu.editcallKey;" oncommand="AsteriskExtChrome.history.editConfirmDial(this.value);"
36
<vbox id="mainBox" flex="1">
37
<richlistbox id="history" datasources="profile:asterisk-ext.sqlite" ref="*" querytype="storage" flex="1"
38
context="historyContextMenu" >
41
select number, name, direction,
42
case when not answertime=0 then time(hanguptime-answertime,'unixepoch') else time(0,'unixepoch') end duration,
43
case when answertime=0 then 'notanswered' else 'answered' end answered,
44
datetime(ringtime,'unixepoch') ringdate
48
<param id="queryLimit" name="limit" type="integer">100</param>
51
<richlistitem uri="?" value="?number">
53
<hbox align="left" pack="left" class="?direction">
54
<image class="?answered" />
58
<label class="number" value="?number" flex="1"/>
59
<label class="date" value="?ringdate"/>
62
<label class="name" value="?name" flex="1"/>
63
<label class="duration" value="?duration"/>