PDA

View Full Version : cant find colorbox selector to use in admincp


Vaupell
01-05-2010, 10:47 AM
Been looking through the stylevars.php file several times
to see if i could pinpoint where to acces the color selector..

im wanting a

Input box [#000000]

:D any ideas

[COLOR="Silver"]--------------- Added 1262703027 at 1262703027 ---------------

found a colorbox regular html im trying just cant get its syntax right.. :D

From here : http://www.flooble.com/scripts/colorpicker.php

first added a head part to the cptest document


$phrasegroups = array('cphome','etm_phrases');
?><head></head><?php

placed the script in the head as usual..
saved run, runs with 0 errors

created a small panel with a forum, but man :p
ive split the input row up so its a little easyer to see,
im using notepad, so i dont have those fancy colors :D



if ($_REQUEST['do'] == 'main')
{


print_cp_header("cp header");
print_table_start();
print_form_header(color', 'main');
print_table_headeR("table header");
print_input_row('Color = ' ?>

<a href="javascript:pickColor('pick1262711500');" id="pick1262711500" style="border: 1px

solid #000000; font-family:Verdana; font-size:10px;
text-decoration: none;">&nbsp;&nbsp;&nbsp;</a>

<?php ' , 'colorA', ' ?><?php

<input id="pick1262711500field" size="7" onChange="relateColor('pick1262711500',

this.value);" name="colorA" value="#00ffff"> <script language="javascript">relateColor

('pick1262711500', getObj('pick1262711500field').value);</script>

<?php ');
print_table_footer();
Print_cp_footer();
}


im going to attach the entire file to this post.. if someone wants to have a go :D