- var aColors = '000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,808080,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF';
- var $color_selector_field = '';
-
- function InitColorSelector()
- {
- var $selector = document.getElementById('colorSelector_div');
-
- if( !isset($selector) )
- {
- var $selector = document.createElement('DIV');
- $selector.id = 'colorSelector_div';
- $selector.className = 'table_color1';
- $selector.style.width = '178px';
- $selector.style.borderWidth = '1px';
- $selector.style.borderColor = '#000000';
- $selector.style.display = 'none';
- $selector.style.position = 'absolute';
- $selector.style.borderStyle = 'solid';
-
- var $s_table = document.createElement('TABLE');
- $s_table.id = 'colorSelector';
- $selector.appendChild($s_table);
- document.body.appendChild($selector);
-
- var oTable = document.getElementById('colorSelector');
- var iCounter = 0;
- aColors = aColors.split(',');
-
- while(iCounter < aColors.length)
- {
- var oRow = oTable.insertRow(-1);
- for(var i = 0; i < 8 && iCounter < aColors.length; i++, iCounter++)
- var $div = document.getElementById('colorSelector_div');
-
- var posx = 0;
- var posy = 0;
- if (!$e) var $e = window.event;
- if ($e.pageX || $e.pageY)
- {
- posx = $e.pageX;
- posy = $e.pageY;
- }
- else if ($e.clientX || $e.clientY)
- {
- posx = $e.clientX + document.body.scrollLeft;
- posy = $e.clientY + document.body.scrollTop;
- }
-
- $div.style.left = posx;
- $div.style.top = posy;
- $div.style.display = 'block';
- }
+ // color Selector
+
+ var aColors = '000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,808080,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF';
+ var $color_selector_field = '';
+
+ function InitColorSelector()
+ {
+ var $selector = document.getElementById('colorSelector_div');
+
+ if( !isset($selector) )
+ {
+ var $selector = document.createElement('DIV');
+ $selector.id = 'colorSelector_div';
+ $selector.className = 'table_color1';
+ $selector.style.width = '178px';
+ $selector.style.borderWidth = '1px';
+ $selector.style.borderColor = '#000000';
+ $selector.style.display = 'none';
+ $selector.style.position = 'absolute';
+ $selector.style.borderStyle = 'solid';
+
+ var $s_table = document.createElement('TABLE');
+ $s_table.id = 'colorSelector';
+ $selector.appendChild($s_table);
+ document.body.appendChild($selector);
+
+ var oTable = document.getElementById('colorSelector');
+ var iCounter = 0;
+ aColors = aColors.split(',');
+
+ while(iCounter < aColors.length)
+ {
+ var oRow = oTable.insertRow(-1);
+ for(var i = 0; i < 8 && iCounter < aColors.length; i++, iCounter++)
'AffiliateId' => Array('type'=>'int','formatter'=>'kLEFTFormatter','options'=>Array(0=>'lu_none'),'left_sql'=>'SELECT %s FROM '.TABLE_PREFIX.'Affiliates af LEFT JOIN '.TABLE_PREFIX.'PortalUser pu ON pu.PortalUserId = af.PortalUserId WHERE `%s` = \'%s\'','left_key_field'=>'AffiliateId','left_title_field'=>'Login','not_null'=>1,'default'=>0),
'Icons' => Array('default'=>'icon16_custom.gif'), // icons for each StatusField values, if no matches or no statusfield selected, then "default" icon is used
'Icons' => Array('default'=>'icon16_custom.gif'), // icons for each StatusField values, if no matches or no statusfield selected, then "default" icon is used