Reply to topic  [ 6 posts ] 
Adding additional button on home page 
Author Message
Supporting actor

Joined: Wed Jan 28, 2009 9:07 am
Posts: 57
Post 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
Profile
Developer
User avatar

Joined: Wed Jan 23, 2008 11:37 am
Posts: 2497
Post 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).

_________________
ImageImage


Fri Jan 27, 2012 9:09 am
Profile
Supporting actor

Joined: Wed Jan 28, 2009 9:07 am
Posts: 57
Post 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
Profile
Developer
User avatar

Joined: Wed Jan 23, 2008 11:37 am
Posts: 2497
Post 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
Code:
<table class="db-stats">
table. It looks like you are inserting your own table.

_________________
ImageImage


Tue Jan 31, 2012 3:35 pm
Profile
Supporting actor

Joined: Wed Jan 28, 2009 9:07 am
Posts: 57
Post 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
Profile
Developer
User avatar

Joined: Wed Jan 23, 2008 11:37 am
Posts: 2497
Post Re: Adding additional button on home page
iosefra wrote:
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.

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)?

_________________
ImageImage


Fri Feb 03, 2012 3:18 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.