[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [16356]
From: |
nelson . guerra |
Subject: |
[Fmsystem-commits] [16356] |
Date: |
Tue, 21 Feb 2017 00:23:51 -0500 (EST) |
Revision: 16356
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16356
Author: nelson224
Date: 2017-02-21 00:23:51 -0500 (Tue, 21 Feb 2017)
Log Message:
-----------
Modified Paths:
--------------
branches/dev-syncromind-2/property/templates/base/tts_report.xsl
Modified: branches/dev-syncromind-2/property/templates/base/tts_report.xsl
===================================================================
--- branches/dev-syncromind-2/property/templates/base/tts_report.xsl
2017-02-21 05:23:07 UTC (rev 16355)
+++ branches/dev-syncromind-2/property/templates/base/tts_report.xsl
2017-02-21 05:23:51 UTC (rev 16356)
@@ -4,104 +4,52 @@
<!-- New template-->
<xsl:template match="data" xmlns:php="http://php.net/xsl">
<script
src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.5.0/Chart.js"></script>
- <fieldset>
- <div class="pure-control-group">
- <label>
- <xsl:value-of select="php:function('lang',
'from')"/>
- </label>
- <input type="text" id="filter_start_date"
name="values[start_date]" size="10" value="{filter_start_date}"
readonly="readonly" onMouseout="window.status='';return true;">
- <xsl:attribute name="title">
- <xsl:value-of
select="lang_finnish_date_statustext"/>
- </xsl:attribute>
- </input>
- </div>
+ <form class="pure-form pure-form-aligned" id="form" name="form"
method="post" action="">
+ <div id="tab-content">
+ <xsl:value-of disable-output-escaping="yes"
select="tabs"/>
+ <div id="report">
+ <fieldset>
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of
select="php:function('lang', 'from')"/>
+ </label>
+ <input type="text"
id="filter_start_date" name="values[start_date]" size="10" value="{start_date}"
readonly="readonly" onMouseout="window.status='';return true;">
+ <xsl:attribute
name="title">
+ <xsl:value-of
select="lang_finnish_date_statustext"/>
+ </xsl:attribute>
+ </input>
+ <label>
+ <xsl:value-of
select="php:function('lang', 'to')"/>
+ </label>
+ <input type="text"
id="filter_end_date" name="values[end_date]" size="10" value="{end_date}"
readonly="readonly" onMouseout="window.status='';return true;">
+ <xsl:attribute
name="title">
+ <xsl:value-of
select="lang_finnish_date_statustext"/>
+ </xsl:attribute>
+ </input>
+ <label>
+ <xsl:value-of
select="php:function('lang', 'type')"/>
+ </label>
+ <select id='type' name="type">
+ <option
value="1"><xsl:value-of select="php:function('lang', 'categories')"/></option>
+ <option
value="2"><xsl:value-of select="php:function('lang', 'status')"/></option>
+ </select>
+ </div>
+
+ <div class="pure-control-group">
+ <label></label>
+ <button id="btn_search"
type="button" class="pure-button pure-button-primary">
+ <xsl:value-of
select="php:function('lang', 'search')"/>
+ </button>
+ <img src="{image_loader}"
class="processing" align="absmiddle"></img>
+ </div>
- <div class="pure-control-group">
- <label>
- <xsl:value-of select="php:function('lang',
'to')"/>
- </label>
- <input type="text" id="filter_end_date"
name="values[end_date]" size="10" value="{filter_end_date}" readonly="readonly"
onMouseout="window.status='';return true;">
- <xsl:attribute name="title">
- <xsl:value-of
select="lang_finnish_date_statustext"/>
- </xsl:attribute>
- </input>
+ <div id="canvas-holder"
style="width:50%">
+ <canvas id="chart-area" />
+ </div>
+ </fieldset>
+ </div>
</div>
-
- <div id="canvas-holder" style="width:40%">
- <canvas id="chart-area" />
- </div>
- </fieldset>
- <script>
+ </form>
-var data = {
- labels: [
- "Open",
- "Ny Melding",
- "Closed",
- "Hos teknisk pers. på bygget",
- "Utføres av EBE",
- "Utført av EBE og Avsluttet",
- "Saksbehandler hos EBE (A)",
- "I bestilling/ under utføring (B)",
- "Utført av leverandør",
- "Bestilling til godkjenning",
- "Bestilling godkjent",
- "Avsluttet og fakturert (C)",
- "Avvist",
- "Overført behovsliste",
- "Garantioppfølging",
- "Brukers ansvar"
- ],
- datasets: [
- {
- data: [300,50,100,24,45,78,122,13,45,23,88,124,33,44,55,66],
- backgroundColor: [
- "#FF6384",
- "#36A2EB",
- "#FFCA56",
- "#FFCE51",
- "#FFCE52",
- "#FFCE53",
- "#FFCE54",
- "#FFCE56",
- "#FFCE57",
- "#FFCE58",
- "#FFCE59",
- "#36A222",
- "#FFCE32",
- "#FFCE45",
- "#F5CE77",
- "#4FCE10"
- ],
- hoverBackgroundColor: [
- "#FF6384",
- "#36A2EB",
- "#FFCA56",
- "#FFCE51",
- "#FFCE52",
- "#FFCE53",
- "#FFCE54",
- "#FFCE56",
- "#FFCE57",
- "#FFCE58",
- "#FFCE59",
- "#XFCE21",
- "#FFCE32",
- "#FFCE45",
- "#F5CE77",
- "#4FCE10"
- ]
- }]
-};
-
-var ctx = document.getElementById("chart-area");
-var myPieChart = new Chart(ctx, {
- type: 'pie',
- data: data,
- options: {
- responsive: true
- }
-});
- </script>
</xsl:template>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [16356],
nelson . guerra <=