Open-Source PHP Framework - Designed for rapid development of performance-oriented scalable applications

/webroot/js/tinymce/themes/advanced/color_picker.htm

[return to app]
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <
html xmlns="http://www.w3.org/1999/xhtml">
3 <
head>
4     <
title>{#advanced_dlg.colorpicker_title}</title>
5     
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
6
    <script type="text/javascript" src="../../utils/mctabs.js"></script>
7     <script type="text/javascript" src="js/color_picker.js"></script>
8 </head>
9 <body id="colorpicker" style="display: none">
10 <form onsubmit="insertAction();return false" action="#">
11     <div class="tabs">
12         <ul>
13             <li id="picker_tab" class="current"><span><a href="javascript:mcTabs.displayTab('picker_tab','picker_panel');"
 onmousedown="return false;">{#advanced_dlg.colorpicker_picker_tab}</a></span></li>
14             <li id="rgb_tab"><span><a href="javascript:;"
 onclick="generateWebColors();mcTabs.displayTab('rgb_tab','rgb_panel');" onmousedown="return
 false;">{#advanced_dlg.colorpicker_palette_tab}</a></span></li>
15             <li id="named_tab"><span><a  href="javascript:;"
 onclick="generateNamedColors();javascript:mcTabs.displayTab('named_tab','named_panel');" onmousedown="return
 false;">{#advanced_dlg.colorpicker_named_tab}</a></span></li>
16         </ul>
17     </div>
18
19     <div class="panel_wrapper">
20         <div id="picker_panel" class="panel current">
21             <fieldset>
22                 <legend>{#advanced_dlg.colorpicker_picker_title}</legend>
23                 <div id="picker">
24                     <img id="colors" src="img/colorpicker.jpg" onclick="computeColor(event)" onmousedown="isMouseDown =
 true;return false;" onmouseup="isMouseDown = false;" onmousemove="if (isMouseDown && isMouseOver)
 computeColor(event); return false;" onmouseover="isMouseOver=true;" onmouseout="isMouseOver=false;" alt=" " />
25
26                     <div id="light">
27                         <!-- Will be filled with divs -->
28                     </div>
29
30                     <br style="clear: both" />
31                 </div>
32             </fieldset>
33         </div>
34
35         <div id="rgb_panel" class="panel">
36             <fieldset>
37                 <legend>{#advanced_dlg.colorpicker_palette_title}</legend>
38                 <div id="webcolors">
39                     <!-- Gets filled with web safe colors-->
40                 </div>
41
42                 <br style="clear: both" />
43             </fieldset>
44         </div>
45
46         <div id="named_panel" class="panel">
47             <fieldset>
48                 <legend>{#advanced_dlg.colorpicker_named_title}</legend>
49                 <div id="namedcolors">
50                     <!-- Gets filled with named colors-->
51                 </div>
52
53                 <br style="clear: both" />
54
55                 <div id="colornamecontainer">
56                     {#advanced_dlg.colorpicker_name} <span id="colorname"></span>
57                 </div>
58             </fieldset>
59         </div>
60     </div>
61
62     <div class="mceActionPanel">
63         <div style="float: left">
64             <input type="submit" id="insert" name="insert" value="{#apply}" />
65         </div>
66
67         <div id="preview"></div>
68
69         <div id="previewblock">
70             <label for="color">{#advanced_dlg.colorpicker_color}</label> <input id="color" type="text" size="8"
 maxlength="8" class="text mceFocus" />
71         </div>
72     </div>
73 </form>
74 </body>
75 </html>
76