|
View unanswered posts | View active topics
It is currently Mon May 20, 2013 2:01 pm
|
Page 1 of 1
|
[ 6 posts ] |
|
Adding additional button on home page
| Author |
Message |
|
iosefra
Supporting actor
Joined: Wed Jan 28, 2009 9:07 am Posts: 57
|
 Adding additional button on home page
Hi, How can i add additional button before add movie button on home page? I tried to add it as this button, but some-why second button text are on second line.
|
| Tue Jan 24, 2012 11:31 am |
|
 |
|
Vlad
Developer
Joined: Wed Jan 23, 2008 11:37 am Posts: 2490
|
 Re: Adding additional button on home page
You will need to adjust the HTML. If you'd like to adjust Orange, just take a closer look at how the add movie and add person buttons are created in the script, be careful to use all envelopes (open and close necessary tags).
_________________ 
|
| Fri Jan 27, 2012 9:09 am |
|
 |
|
iosefra
Supporting actor
Joined: Wed Jan 28, 2009 9:07 am Posts: 57
|
 Re: Adding additional button on home page
I tried to do that way, but it not looks right:
MovieIn:= format('<div style="float: left;">%s %d %s %d</div>', [s, kol2, GetLangStr(701), kol]); MovieIn := MovieIn + '<table style="margin-right: 160px;"><tr>'; //search button MovieIn := MovieIn + '<td><div class="add-btn">'; MovieIn := MovieIn + '<div style="float: left; width: 23px; height: 36px; background-image: url(' + GetRscPath('add-plus.gif') + ');"></div>'; MovieIn := MovieIn + '<div class="add-btn-body" style="background-image: url(' + GetRscPath('add-btn-body.gif') + ');"><a class="pic" href="search">' + GetLangStr(44) + '</a></div>'; MovieIn := MovieIn + '<div style="float: left; width: 4px; height: 36px; background-image: url(' + GetRscPath('add-btn-end.gif') + ');"></div>'; MovieIn := MovieIn + '</div></td>'; //end search button //add button MovieIn := MovieIn + '<td><div class="add-btn">'; MovieIn := MovieIn + '<div style="float: left; width: 23px; height: 36px; background-image: url(' + GetRscPath('add-plus.gif') + ');"></div>'; MovieIn := MovieIn + '<div class="add-btn-body" style="background-image: url(' + GetRscPath('add-btn-body.gif') + ');"><a class="pic" href="add_movie">' + GetLangStr(3012) + '</a></div>'; MovieIn := MovieIn + '<div style="float: left; width: 4px; height: 36px; background-image: url(' + GetRscPath('add-btn-end.gif') + ');"></div>'; MovieIn := MovieIn + '</div></td>'; //end add button MovieIn := MovieIn + '</tr></table>';
|
| Mon Jan 30, 2012 8:03 pm |
|
 |
|
Vlad
Developer
Joined: Wed Jan 23, 2008 11:37 am Posts: 2490
|
 Re: Adding additional button on home page
I'm not sure about your code, as there is only a part of it. Please note that the two buttons in the Orange interface are all within the table. It looks like you are inserting your own table.
_________________ 
|
| Tue Jan 31, 2012 3:35 pm |
|
 |
|
iosefra
Supporting actor
Joined: Wed Jan 28, 2009 9:07 am Posts: 57
|
 Re: Adding additional button on home page
If I not add additional sub-table for buttons, the second button text somehow written on the next line below the button. all togetther are in db-stats table.
|
| Tue Jan 31, 2012 8:17 pm |
|
 |
|
Vlad
Developer
Joined: Wed Jan 23, 2008 11:37 am Posts: 2490
|
 Re: Adding additional button on home page
Maybe there is not enough space on your screen for yet another button? Could you post a screenshot how it looks like (without the additional table)?
_________________ 
|
| Fri Feb 03, 2012 3:18 pm |
|
|
|
Page 1 of 1
|
[ 6 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 2 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|