kunzite (kunzite1) wrote in component_help,
kunzite
kunzite1
component_help

lj search box v2.0

k1-ified version of this.
#############
# LJ Search #
#############
# heading
var string cLJlj           = """Search <span style="color: #3333ff;">LiveJournal</span>""";
# search button text
var string cLJsearch       = "Search";
var string cLJusername     = "Username";
var string cLJemail        = "Email";
var string cLJregion       = "Region";
var string cLJinterest     = "Interest";
var string cLJaol          = "AOL IM";
var string cLJicq          = "ICQ Number";
var string cLJyahoo        = "Yahoo! ID";
var string cLJmsn          = "MSN Username";
var string cLJjabber       = "Jabber";

var Color  cLJheader       = $*header_bgcolor;
var Color  cLJheaderMinus5 = $cLJheader->darker(50);
var Color  cLJheaderPlus3  = $cLJheader->lighter(30);
var string cLJcorner_color = "/p0"+$cLJheaderPlus3->substr(1,6)+"1"+$cLJheaderMinus5->substr(1,6)+"2"+$cLJheader->substr(1,6);
"""
<tr>
  <td colspan="7">
    <table cellspacing="0" cellpadding="0" border="0" width="100%">
      <tr>
        <td valign="top" rowspan="3" colspan="3" width="5"><img src="$*PALIMGROOT/component/curve-top-left.gif$cLJcorner_color" width="5" height="5" alt="" border="0" /></td>
        <td class="dkLine"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
        <td valign="top" rowspan="3" colspan="3" width="5"><img src="$*PALIMGROOT/component/curve-top-right.gif$cLJcorner_color" width="5" height="5" alt="" border="0" /></td>
      </tr>
      <tr>
        <td class="ltLine"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
      </tr>
      <tr>
        <td class="tabBg"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="3" alt="" border="0" /></td>
      </tr>
      <tr>
        <td class="dkLine" width="1"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
        <td class="ltLine" width="1"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
        <td class="tabBg" width="3"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="3" alt="" border="0" /></td>
        <td class="tabBg" width="100%">
          <div align="center">
            <div id="p-search" class="portlet">
              $cLJlj
              <div class="pBody">
                <form id="Search" action="$*SITEROOT/multisearch.bml" method="post">
                  <input id="SearchTerm" type="text" name="q" size="15" value="" /><br />
                  <select id="SearchType" name="type">
                    <option value="user"  selected="selected">$cLJusername</option>
                    <option value="email">$cLJemail</option>
                    <option value="region">$cLJregion</option>
                    <option value="int">$cLJinterest</option>
                    <option value="aolim">$cLJaol</option>
                    <option value="icq">$cLJicq</option>
                    <option value="yahoo">$cLJyahoo</option>
                    <option value="msn">$cLJmsn</option>
                    <option value="jabber">$cLJjabber</option>
                  </select><br />
                  <input type="submit" value="$cLJsearch" />
                </form>
              </div>
            </div>
          </div>
        </td>
        <td class="tabBg" width="3"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="3" alt="" border="0" /></td>
        <td class="ltLine" width="1"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
        <td class="dkLine" width="1"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
      </tr>
      <tr>
        <td valign="top" rowspan="3" colspan="3" width="5"><img src="$*PALIMGROOT/component/curve-bottom-left.gif$cLJcorner_color" width="5" height="5" alt="" border="0" /></td>
        <td class="tabBg"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="3" alt="" border="0" /></td>
        <td valign="top" rowspan="3" colspan="3" width="5"><img src="$*PALIMGROOT/component/curve-bottom-right.gif$cLJcorner_color" width="5" height="5" alt="" border="0" /></td>
      </tr>
      <tr>
        <td class="ltLine"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
      </tr>
      <tr>
        <td class="dkLine"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
  <td colspan="5"><img src="$*PALIMGROOT/component/clear.gif " width="1" height="3" alt="" border="0" /></td>
</tr>
""";
###################################
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 5 comments