Skip to content

Commit

Permalink
Applied redesign by Didem Gurdur
Browse files Browse the repository at this point in the history
  • Loading branch information
dugwood committed Jul 25, 2017
1 parent c7b8f6f commit 5972384
Show file tree
Hide file tree
Showing 49 changed files with 492 additions and 428 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
ClickHeat
=========

Please read instructions at https://www.dugwood.com/clickheat/index.html (French version at https://www.dugwood.fr/clickheat/index.html).
Please read instructions at https://www.dugwood.com/clickheat/index.html ([Version française](https://www.dugwood.fr/clickheat/index.html)).

This software is GPL Open Source. More info on rights linked to this software in the [LICENSE file](LICENSE) or at http://www.opensource.org/licenses/gpl-license.php


Special thanks
==============

To all translators.

To [Didem Gurdur](http://linkedin.com/in/didemgurdur/) for redesign of the logo.

This software is GPL Open Source. More info on rights linked to this software in the LICENSE file or on http://www.opensource.org/licenses/gpl-license.php
29 changes: 16 additions & 13 deletions check.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@
$checks = true;
?>
<span class="float-right">
<?php
foreach ($__languages as $lang)
{
echo '<a href="', CLICKHEAT_INDEX_PATH, 'language=', $lang, '"><img src="', CLICKHEAT_PATH, 'images/flags/', $lang, '.png" width="18" height="12" alt="', $lang, '" /></a> ';
}
?></span>
<span class="flags">
<?php
foreach ($__languages as $lang)
{
echo '<a href="', CLICKHEAT_INDEX_PATH, 'language=', $lang, '"><img src="', CLICKHEAT_PATH, 'images/flags/', $lang, '.png" alt="', $lang, '"/></a> ';
}
?>
</span>
</span>
<div id="clickheat-box">
<h1><?php echo LANG_CHECKS ?></h1>
<br /><br />
Expand All @@ -31,36 +34,36 @@
if (!is_resource($f))
{
$checks = false;
echo '<img src="'.CLICKHEAT_PATH.'images/ko.png" width="16" height="16" alt="KO" /></td><td>', LANG_CHECK_NOT_WRITABLE;
echo '<img src="'.CLICKHEAT_PATH.'images/ko.png" alt="KO"/></td><td>', LANG_CHECK_NOT_WRITABLE;
}
else
{
fputs($f, 'delete this file');
fclose($f);
unlink(dirname(CLICKHEAT_CONFIG).'/temp.tmp');
echo '<img src="'.CLICKHEAT_PATH.'images/ok.png" width="16" height="16" alt="OK" /></td><td>&nbsp;';
echo '<img src="'.CLICKHEAT_PATH.'images/ok.png" alt="OK"/></td><td>&nbsp;';
}
?></td></tr>
<tr><td><?php echo LANG_CHECK_GD ?></td><td>
<?php
if (function_exists('imagecreatetruecolor') === false)
{
$checks = false;
echo '<img src="'.CLICKHEAT_PATH.'images/ko.png" width="16" height="16" alt="KO" /></td><td>', LANG_CHECK_GD_IMG;
echo '<img src="'.CLICKHEAT_PATH.'images/ko.png"alt="KO"/></td><td>', LANG_CHECK_GD_IMG;
}
elseif (function_exists('imagecolorallocatealpha') === false)
{
$checks = false;
echo '<img src="'.CLICKHEAT_PATH.'images/ko.png" width="16" height="16" alt="KO" /></td><td>', LANG_CHECK_GD_ALPHA;
echo '<img src="'.CLICKHEAT_PATH.'images/ko.png" alt="KO" /></td><td>', LANG_CHECK_GD_ALPHA;
}
elseif (function_exists('imagepng') === false)
{
$checks = false;
echo '<img src="'.CLICKHEAT_PATH.'images/ko.png" width="16" height="16" alt="KO" /></td><td>', LANG_CHECK_GD_PNG;
echo '<img src="'.CLICKHEAT_PATH.'images/ko.png" alt="KO"/></td><td>', LANG_CHECK_GD_PNG;
}
else
{
echo '<img src="'.CLICKHEAT_PATH.'images/ok.png" width="16" height="16" alt="OK" /></td><td>&nbsp;';
echo '<img src="'.CLICKHEAT_PATH.'images/ok.png" alt="OK"/></td><td>&nbsp;';
}
?></td></tr>
<tr><td colspan="3" align="center">&nbsp;<br /><br />
Expand All @@ -71,7 +74,7 @@
}
else
{
echo LANG_CHECKS_OK, ' <a href="', CLICKHEAT_INDEX_PATH, 'action=config"><img src="'.CLICKHEAT_PATH.'images/next.png" width="16" height="16" alt="Next" /></a>';
echo LANG_CHECKS_OK, ' <a href="', CLICKHEAT_INDEX_PATH, 'action=config"><img src="'.CLICKHEAT_PATH.'images/next.png" alt="Next"/></a>';
}
?></td></tr>
</table>
Expand Down
270 changes: 135 additions & 135 deletions config.php

Large diffs are not rendered by default.

65 changes: 33 additions & 32 deletions debug.htm
Original file line number Diff line number Diff line change
@@ -1,38 +1,39 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Debug clickheat</title>
</head>
<body>
<div>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Debug clickheat</title>
</head>
<body>
<div>

<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<script type="text/javascript"><!--
document.write('<a id="test_a" href="debug.htm?debugclickheat&amp;i=' + Date() + '">link</a> ' + Date()); //-->
</script>
<br /><br /><br /><br />
<div style="background-color:#faa;border:1px solid red;width:100px;height:100px;position:absolute;top:500px;left:500px">DIV @ 500x500 (taille 100x100)</div>
<script type="text/javascript"><!--
document.write('<iframe src="http://www.dugwood.fr/index.html" width="400" height="200"></iframe>');//-->
</script>
<br /><br /><br /><br /><br /><br /><br />
Milieu&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x
<script type="text/javascript"><!--
var h = document.body.clientHeight;
var b = parseInt(h * 1.33);
document.write('<img src="http://www.labsmedia.com/admin/clickheat/images/logo170.png" width="' + b + '" height="' + h + '" border="5">'); //-->
</script>
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<script type="text/javascript"><!--
document.write('<a id="test_a" href="debug.htm?debugclickheat&amp;i=' + Date() + '">link</a> ' + Date()); //-->
</script>
<br /><br /><br /><br />
<div style="background-color:#faa;border:1px solid red;width:100px;height:100px;position:absolute;top:500px;left:500px">DIV @ 500x500 (taille 100x100)</div>
<script type="text/javascript"><!--
document.write('<iframe src="https://www.dugwood.fr/index.html" width="400" height="200"></iframe>');//-->
</script>
<br /><br /><br /><br /><br /><br /><br />
Milieu&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x&nbsp;x
<script type="text/javascript"><!--
var h = document.body.clientHeight;
var b = parseInt(h * 1.33);
document.write('<img src="https://www.dugwood.com/admin/clickheat/images/logo170.png" width="' + b + '" height="' + h + '" border="5">'); //-->
</script>

<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
Fin
<script type="text/javascript" src="/clickheat/js/clickheat-original.js"></script>
<script type="text/javascript"><!--
clickHeatSite = 'real';clickHeatGroup = 'index';
clickHeatServer = 'http://' + document.location.host + '/clickheat/click.php';
initClickHeat(); //-->
</script>
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
Fin
<script type="text/javascript" src="/clickheat/js/clickheat-original.js"></script>
<script type="text/javascript"><!--
clickHeatSite = 'real';
clickHeatGroup = 'index';
clickHeatServer = 'http://' + document.location.host + '/clickheat/click.php';
initClickHeat(); //-->
</script>

</div>
</body>
</div>
</body>
</html>
108 changes: 54 additions & 54 deletions examples/fromfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,64 +2,64 @@
/**
* Exemple d'utilisation de la classe HeatmapFromFile
* Use example of HeatmapFromFile class
**/
* */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ClickHeat | Examples</title>
</head>
<body>
<?php
exit('Enlevez cette ligne pour que ce fichier marche/Remove this line to make this file work');
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>ClickHeat | Examples</title>
</head>
<body>
<?php
exit('Enlevez cette ligne pour que ce fichier marche/Remove this line to make this file work');

include './../classes/Heatmap.class.php';
include './../classes/HeatmapFromFile.class.php';
include './../classes/Heatmap.class.php';
include './../classes/HeatmapFromFile.class.php';

$heatmap = new HeatmapFromFile();
/** Ajout d'un fichier à traiter / Adding of a file to parse */
$heatmap->addFile('./coords.txt');
/**
* Le format du fichier n'est pas "X,Y", on change donc l'expression régulière (plus d'infos ici : http://fr.php.net/manual/en/reference.pcre.pattern.syntax.php)
* File format isn't "X,Y", so we have to change regular expression (more information here : http://us.php.net/manual/en/reference.pcre.pattern.syntax.php)
*
* 1234,1234 => /^(\d+),(\d+)$/m
* 1234x1234 => /^(\d+)x(\d+)$/m
* 1234 1234 => /^(\d+) (\d+)$/m
* 1234(tab)1234 => /^(\d+)\t(\d+)$/m
* 1234,1234,(whatever/n'importe quoi) => /^(\d+),(\d+),.*$/m
**/
$heatmap->regular = '/^(\d+)x(\d+)$/m';
/** Fichiers temporaires / Temporary files */
$heatmap->cache = '.';
/** Fichiers générés / Generated files */
$heatmap->path = '.';
/** Fichier final / Final file */
$heatmap->file = 'resultfromfile-%d.png';
/**
* On force la hauteur finale (attention à la consommation mémoire dans ce cas !)
* Forcing final height (take care of the memory consumption in such case!)
**/
$images = $heatmap->generate(200, 100);
echo 'Résultats/Results: ';
if ($images === false)
{
echo 'error: '.$heatmap->error;
}
else
{
echo '<pre>';
print_r($images);
echo '</pre>';
$heatmap = new HeatmapFromFile();
/** Ajout d'un fichier à traiter / Adding of a file to parse */
$heatmap->addFile('./coords.txt');
/**
* Le format du fichier n'est pas "X,Y", on change donc l'expression régulière (plus d'infos ici : http://fr.php.net/manual/en/reference.pcre.pattern.syntax.php)
* File format isn't "X,Y", so we have to change regular expression (more information here : http://us.php.net/manual/en/reference.pcre.pattern.syntax.php)
*
* 1234,1234 => /^(\d+),(\d+)$/m
* 1234x1234 => /^(\d+)x(\d+)$/m
* 1234 1234 => /^(\d+) (\d+)$/m
* 1234(tab)1234 => /^(\d+)\t(\d+)$/m
* 1234,1234,(whatever/n'importe quoi) => /^(\d+),(\d+),.*$/m
* */
$heatmap->regular = '/^(\d+)x(\d+)$/m';
/** Fichiers temporaires / Temporary files */
$heatmap->cache = '.';
/** Fichiers générés / Generated files */
$heatmap->path = '.';
/** Fichier final / Final file */
$heatmap->file = 'resultfromfile-%d.png';
/**
* On force la hauteur finale (attention à la consommation mémoire dans ce cas !)
* Forcing final height (take care of the memory consumption in such case!)
* */
$images = $heatmap->generate(200, 100);
echo 'Résultats/Results: ';
if ($images === false)
{
echo 'error: '.$heatmap->error;
}
else
{
echo '<pre>';
print_r($images);
echo '</pre>';

echo '<br /><br /><p style="line-height:0;">';
for ($i = 0; $i < $images['count']; $i++)
{
echo '<img src="', $images['filenames'][$i], '" width="', $images['width'], '" height="', $images['height'], '" alt="" /> Image ', $i, '<br />';
}
echo '</p>';
}
?>
</body>
echo '<br /><br /><p style="line-height:0;">';
for ($i = 0; $i < $images['count']; $i++)
{
echo '<img src="', $images['filenames'][$i], '" width="', $images['width'], '" height="', $images['height'], '" alt=""/> Image ', $i, '<br />';
}
echo '</p>';
}
?>
</body>
</html>
3 changes: 2 additions & 1 deletion generate.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* ClickHeat : réponse à l'appel Ajax / Reply to the Ajax call
*
Expand Down Expand Up @@ -152,7 +153,7 @@
$html = '';
for ($i = 0; $i < $result['count']; $i++)
{
$html .= '<img src="'.CLICKHEAT_INDEX_PATH.'action=png&amp;file='.$result['filenames'][$i].'&amp;rand='.$time.'" width="'.$result['width'].'" height="'.$result['height'].'" alt="" id="heatmap-'.$i.'" /><br />';
$html .= '<img src="'.CLICKHEAT_INDEX_PATH.'action=png&amp;file='.$result['filenames'][$i].'&amp;rand='.$time.'" width="'.$result['width'].'" height="'.$result['height'].'" alt="" id="heatmap-'.$i.'"/><br />';
}
echo $html;

Expand Down
Binary file modified images/arrow-down.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/arrow-up.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion images/flags/_flags.txt

This file was deleted.

Binary file modified images/flags/bg.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/flags/cz.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/flags/de.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/flags/en.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/flags/es.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/flags/fr.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/flags/hu.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/flags/id.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/flags/it.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/flags/ja.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/flags/nl.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/flags/pl.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/flags/pt.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/flags/ro.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/flags/ru.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/flags/sr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/flags/tr.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/flags/uk.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/flags/zh.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/ko.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/layout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/logo.big.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/logo.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/logo170.png
100644 → 100755
Binary file added images/logo338.png
Binary file modified images/next.png
Empty file modified images/ok.png
100644 → 100755
Binary file modified images/previous.png
Binary file modified images/reload.png
Empty file modified images/save.png
100644 → 100755
Empty file modified images/warning.png
100644 → 100755
18 changes: 9 additions & 9 deletions javascript.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@
}
?>
<span class="float-right"><a href="#" onclick="hideGroupLayout();
return false;"><img src="<?php echo CLICKHEAT_PATH ?>images/ko.png" width="16" height="16" alt="Close" /></a></span>
return false;"><img src="<?php echo CLICKHEAT_PATH ?>images/ko.png" alt="Close"/></a></span>
<h1><?php echo LANG_JAVASCRIPT ?></h1>
<form action="#" method="get" onsubmit="return false;">
<table cellpadding="0" cellspacing="2" border="0">
<?php if (IS_PIWIK_MODULE === false): ?>
<tr><td><?php echo LANG_JAVASCRIPT_SITE ?></td><td><input type="text" name="js-site" id="jsSite" value="" size="15" maxlength="50" onchange="updateJs();" onkeyup="updateJs();" /></td></tr>
<tr><td><?php echo LANG_JAVASCRIPT_SITE ?></td><td><input type="text" name="js-site" id="jsSite" value="" size="15" maxlength="50" onchange="updateJs();" onkeyup="updateJs();"/></td></tr>
<?php endif; ?>
<tr><td><?php echo LANG_JAVASCRIPT_GROUP ?></td><td>
<input type="radio" name="jsRadioGroup" id="jsGroup1" value="0" onclick="updateJs();" /> <?php echo LANG_JAVASCRIPT_GROUP0 ?> <input type="text" name="js-group" id="jsGroup" size="15" maxlength="50" value="group1" onchange="updateJs();" onkeyup="updateJs();" /> (<?php echo LANG_JAVASCRIPT_GROUP1 ?>) <br />
<input type="radio" name="jsRadioGroup" id="jsGroup2" value="1" onclick="updateJs();" /> <?php echo LANG_JAVASCRIPT_GROUP2 ?><br />
<input type="radio" name="jsRadioGroup" id="jsGroup3" value="2" checked="checked" onclick="updateJs();" /> <?php echo LANG_JAVASCRIPT_GROUP3 ?></td></tr>
<tr><td><?php echo LANG_JAVASCRIPT_QUOTA ?></td><td><input type="text" name="js-quota" id="jsQuota" value="0" size="3" onchange="updateJs();" onkeyup="updateJs();" /></td></tr>
<tr><td><?php echo LANG_JAVASCRIPT_IMAGE ?><img src="<?php echo CLICKHEAT_PATH ?>images/logo.png" width="80" height="15" border="0" alt="ClickHeat : track clicks" /></td><td><input type="checkbox" name="js-image" id="jsShowImage" onclick="updateJs();" /></td></tr>
<tr><td><?php echo LANG_JAVASCRIPT_SHORT ?></td><td><input type="checkbox" name="jsShort" id="jsShort" checked="checked" onclick="updateJs();" /></td></tr>
<input type="radio" name="jsRadioGroup" id="jsGroup1" value="0" onclick="updateJs();"/> <?php echo LANG_JAVASCRIPT_GROUP0 ?> <input type="text" name="js-group" id="jsGroup" size="15" maxlength="50" value="group1" onchange="updateJs();" onkeyup="updateJs();"/> (<?php echo LANG_JAVASCRIPT_GROUP1 ?>) <br />
<input type="radio" name="jsRadioGroup" id="jsGroup2" value="1" onclick="updateJs();"/> <?php echo LANG_JAVASCRIPT_GROUP2 ?><br />
<input type="radio" name="jsRadioGroup" id="jsGroup3" value="2" checked="checked" onclick="updateJs();"/> <?php echo LANG_JAVASCRIPT_GROUP3 ?></td></tr>
<tr><td><?php echo LANG_JAVASCRIPT_QUOTA ?></td><td><input type="text" name="js-quota" id="jsQuota" value="0" size="3" onchange="updateJs();" onkeyup="updateJs();"/></td></tr>
<tr><td><?php echo LANG_JAVASCRIPT_IMAGE ?><img src="<?php echo CLICKHEAT_PATH ?>images/logo.png" width="80" height="15" border="0" alt="ClickHeat : track clicks"/></td><td><input type="checkbox" name="js-image" id="jsShowImage" onclick="updateJs();"/></td></tr>
<tr><td><?php echo LANG_JAVASCRIPT_SHORT ?></td><td><input type="checkbox" name="jsShort" id="jsShort" checked="checked" onclick="updateJs();"/></td></tr>
</table>
<br />
<?php echo LANG_JAVASCRIPT_PASTE ?><br />
<div id="clickheat-js"></div>
<img src="<?php echo CLICKHEAT_PATH ?>images/warning.png" width="16" height="16" alt="Warning" /> <?php echo LANG_JAVASCRIPT_DEBUG ?>
<img src="<?php echo CLICKHEAT_PATH ?>images/warning.png" alt="Warning"/> <?php echo LANG_JAVASCRIPT_DEBUG ?>
</form>
Loading

0 comments on commit 5972384

Please sign in to comment.