diff options
author | Andrew Dolgov <[email protected]> | 2009-01-26 11:54:47 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-01-26 11:54:47 +0100 |
commit | c17d514b6c1192d4bb7fd0ab58beca00c072ea07 (patch) | |
tree | a462d8ea0fe98e01faee7fb28d7f68bf7ca44885 /modules | |
parent | 2eb9c95c970644f8408da9d22b60a66caadd36fb (diff) |
tmp disable colored labels
Diffstat (limited to 'modules')
-rw-r--r-- | modules/pref-labels.php | 39 |
1 files changed, 37 insertions, 2 deletions
diff --git a/modules/pref-labels.php b/modules/pref-labels.php index 059079a71..8e0efdbc3 100644 --- a/modules/pref-labels.php +++ b/modules/pref-labels.php @@ -87,6 +87,32 @@ $label_search = $_SESSION["prefs_label_search"]; } + print "<div id=\"colorPicker\" style=\"display : none\">"; + + $color_picker_pairs = array( + array('#063064', '#fff7d5'), + array('#ffffff', '#00ccff'), + array('#ffffff', '#cc00ff'), + array('#ffffff', '#00ffcc'), + array('#ffffff', '#0000ff'), + array('#ffffff', '#ff00ff'), + array('#ffffff', '#ff0000'), + array('#394f00', '#ccff00')); + + foreach ($color_picker_pairs as $c) { + $fg_color = $c[0]; + $bg_color = $c[1]; + + print "<div class='colorPickerEntry' + style='color : $fg_color; background-color : $bg_color;' + onclick=\"colorPickerDo('$fg_color', '$bg_color')\">z</div>"; + + } + + print "<br clear='both'>"; + + print "</div>"; + print "<div class=\"feedEditSearch\"> <input id=\"label_search\" size=\"20\" type=\"search\" onfocus=\"javascript:disableHotkeys();\" @@ -160,10 +186,19 @@ onclick='toggleSelectPrefRow(this, \"label\");' type=\"checkbox\" id=\"LICHK-".$line["id"]."\"></td>"; - print "<td><span class='prefsLabelEntry' +/* $id = $line['id']; + + print "<td width='30' align='center'> + <div class='labelColorIndicator' style='color : $fg_color; background-color : $bg_color' + onclick=\"colorPicker(this, '$id', '$fg_color', '$bg_color')\">z</div>"; + + print "</td>"; */ + + print "<td><span class='prefsLabelEntry' id=\"LILT-".$line["id"]."\">" . $line["caption"] . - "</span></td>"; + "</span>"; + print "</tr>"; |