 |
vtiger The Honest Open Source CRM
|
| Previous topic :: Next topic |
| Author |
Message |
jagi
Joined: 17 Jan 2006
Posts: 117
Location: Poland
|
| Posted: Mon Feb 11, 2008 9:44 pm Post subject: Colors in row, over and check color |
|
|
+ green color onmouseover ( hide by java capture )
live preview [url]vtiger.artcode.eu[/url] |
|
| Back to top |
|
apasotti
Joined: 15 Feb 2007
Posts: 11
|
| Posted: Sun Mar 09, 2008 10:22 pm Post subject: Colors in row, over and check color |
|
|
| it's very good, you can send me the code for insert the chage in my version |
|
| Back to top |
|
prasad.a
Joined: 01 Aug 2007
Posts: 976
|
| Posted: Tue Mar 11, 2008 9:29 am Post subject: Colors in row, over and check color |
|
|
Hi Jagi,
Looks interesting. Keep up the good work.
Kindly share the code with our community.
For reference I have added this forum topic to our issue tracker: http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/5228
Regards,
Prasad |
|
| Back to top |
|
jagi
Joined: 17 Jan 2006
Posts: 117
Location: Poland
|
| Posted: Wed Mar 12, 2008 8:21 pm Post subject: Re: Colors in row, over and check color |
|
|
short info:
color hover on ListView
based on phpMyAdmin ... ( I not implemented "select all" color - but I want to do this in free time )
1.Dodano : /artCode/5.0.4/include/js/ListView.js
function setPointer(theRow, theAction, theDefaultColor, thePointerColor, theMarkColor)
.
..
.
} // end of the 'setPointer()' function
2. /artCode/5.0.4/Smarty/templates/ListViewEntries.tpl
Code:
<!-- Table Contents -->
{foreach name=name item=entity key=entity_id from=$LISTENTITY}
{if $smarty.foreach.name.iteration is odd}
<tr bgcolor="#FFFFFF" onmouseover="setPointer(this, 'over', '#FFFFFF', '#DFFFDF', '#FFF2F0')" onmouseout="setPointer(this, 'out', '#FFFFFF', '#DFFFDF', '#FFF2F0')" onmousedown="setPointer(this, 'click', '#FFFFFF', '#DFFFDF', '#FFF2F0')" id="row_{$entity_id}">
<td bgcolor="#FFFFFF" width="2%"><input type="checkbox" NAME="selected_id" id="{$entity_id}" value= '{$entity_id}' onClick="check_object(this)"></td>
{else}
<tr bgcolor="#F8F8F8" onmouseover="setPointer(this, 'over', '#F8F8F8', '#DFFFDF', '#FFF2F0')" onmouseout="setPointer(this, 'out', '#F8F8F8', '#DFFFDF', '#FFF2F0')" onmousedown="setPointer(this, 'click', '#F8F8F8', '#DFFFDF', '#FFF2F0')" id="row_{$entity_id}">
<td bgcolor="#F8F8F8" width="2%"><input type="checkbox" NAME="selected_id" id="{$entity_id}" value= '{$entity_id}' onClick="check_object(this)"></td>
{/if}
look in attachments to localize changes and merge it - no copy files (rc versions) |
|
| Back to top |
|
joebordes
Joined: 18 Aug 2006
Posts: 1100
Location: Alicante/Valencia, Spain
|
| Posted: Tue Mar 25, 2008 1:15 am Post subject: Re: Colors in row, over and check color |
|
|
Hi,
JAGI sent me his code modifications, I tweaked them a little and have made them available on the TTTimecards forge project.
Thank you very much JAGI.
Joe
TSolucio |
|
| Back to top |
|
| |
|