rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: crazyjust on March 17, 2008, 12:48:48 AM

Title: can someone please help me figure this out
Post by: crazyjust on March 17, 2008, 12:48:48 AM
I am making my template, without login. I made a button for uploads but when i make my button for search, it wont work lol. Here is what i got

<div align="center"><td class="btnav" onmouseover="style.backgroundColor='blue';"
onmouseout="style.backgroundColor='#00ff00'"><div class="search button">
<a href="{.!search.}"title="Search files on this server">
<button style="width:120px;height:30px;border-top-color:#00ff00;
border-left-color:#00ff00;
border-right-color:#00ff00;
border-bottom-color:#00ff00; background-color:#000000";><b><FONT SIZE="-1""font color="#00ff00">Search</FONT><b>
</button></a>
<input name=search size=20 value="{.?search.}">

Can anyone tell me what im doing wrong? thanks in advance
Title: Re: can someone please help me figure this out
Post by: Foggy on March 17, 2008, 01:37:02 AM
you need to use a form that sends the value you are searching to a urlvar called 'search'.

try looking in the rawr designs board for their search code to have a look at how it works.
Title: Re: can someone please help me figure this out
Post by: crazyjust on March 17, 2008, 01:43:37 AM
thanks foggy i will check into that...this been driving me nuts for 2 days now lol.
Title: Re: can someone please help me figure this out
Post by: crazyjust on March 17, 2008, 11:24:54 PM
ok im lost lol...I had this for my search and it worked. If i try to make a colored button with the code mentioned above it shows up fine but dont work.

<div class=button>
<form style='width:160px'>
<input name=search size=10 value="{.?search.}">
<input type=submit value="{.!search.}">
</form>

Title: Re: can someone please help me figure this out
Post by: Foggy on March 18, 2008, 05:23:02 AM
try this, I haven't tested it so I'm not sure if it will work.

<div class=button>
<form style='width:160px' action='%folder%' method='get'>
<input name=search size=10 value="{.?search.}">
<input type=submit>
</form>
Title: Re: can someone please help me figure this out
Post by: crazyjust on March 20, 2008, 12:46:29 AM
I figured it out lol

<TD><div align="center"><div class=button>
<form style='width:163px' action='%folder%' method='get'>
<center><button style="width:120px;height:30px;border-top-color:#00ff00;
border-left-color:#00ff00;
border-right-color:#00ff00;
border-bottom-color:#00ff00; background-color:#000000";><b><FONT SIZE="-1""font color="#00ff00">Search</FONT><b><value="{.?search.}">
</button></a><center><br>
<input name=search size=23 value="{.?search.}"></TD>

 :)
Title: Re: can someone please help me figure this out
Post by: crazyjust on March 20, 2008, 11:49:04 PM
how do i change the size of the box that has Filename,Filesize,Filetime, and Hits in it so it doesnt take up the whole width of the screen?
Title: Re: can someone please help me figure this out
Post by: crazyjust on March 22, 2008, 06:44:54 PM
I want to put a table on the right side of the screen next to that table..Does anyone know how?