[ SL::Layout::None->new ]
}
+sub use_javascript {
+ my $self = shift;
+ qw(
+ js/quicksearch_input.js
+ ),
+ $self->SUPER::use_javascript(@_);
+}
+
sub pre_content {
&display
}
$self->SUPER::use_stylesheet(@_);
}
+sub use_javascript {
+ my $self = shift;
+ qw(
+ js/quicksearch_input.js
+ ),
+ $self->SUPER::use_javascript(@_);
+}
+
sub pre_content {
&render;
}
+++ /dev/null
-../lx-office-erp/frame_header/
\ No newline at end of file
--- /dev/null
+#frame-header .frame-header-element a:link,
+#frame-header .frame-header-element a:visited,
+#frame-header .frame-header-element a:hover,
+#frame-header .frame-header-element a:active {
+ text-decoration: underline;
+}
+
+#frame-header {
+ text-align: center;
+ margin: 0;
+ padding: 0;
+ border: 0;
+ overflow: hidden;
+ width: 100%;
+ border-spacing: 0;
+ font-size: 12px;
+}
+
+#frame-header .frame-header-left {
+ float: left;
+}
+#frame-header .frame-header-right {
+ float: right;
+}
+
+#frame-header .frame-header-left,
+#frame-header .frame-header-center,
+#frame-header .frame-header-right {
+ border-spacing: 0;
+ padding: 0;
+ font-family: verdana,arial,sans-serif;
+ vertical-align: middle;
+}
--- /dev/null
+function on_keydown_quicksearch(element, event) {
+ var key;
+
+ if (window.event)
+ key = window.event.keyCode; // IE
+ else
+ key = event.which; // Firefox
+
+ if (key != 13)
+ return true;
+
+ var search_term = $(element);
+ var value = search_term.val();
+ if (!value)
+ return true;
+
+ var url = "ct.pl?action=list_contacts&INPUT_ENCODING=utf-8&filter.status=active&search_term=" + encodeURIComponent(value);
+
+ search_term.val('');
+ window.location.href = url;
+
+ return false;
+}
<script type="text/javascript" src="js/dhtmlsuite/menu-for-applications.js"></script>
- <table id='js-header' class="menunew">
- <tr>
- <td>
-
- [<a href="login.pl?action=company_logo" target="_blank">[% 'new Window' | $T8 %]</a>]
-
- [<a href="JavaScript:top.print()">[% 'print' | $T8 %]</a>]
- </td>
- <td align="right" nowrap>
- [[% 'User' | $T8 %]: [% HTML.escape(MYCONFIG.login) %] -
- <a href="controller.pl?action=LoginScreen/logout" target="_top">[% 'logout' | $T8 %]</a>]
- [% date %] <span id='clock_id' style='position:relative'></span>
- </td>
- </tr>
- </table>
+ <div id="frame-header">
+ <span class="frame-header-element frame-header-left">
+ [<a href="login.pl?action=company_logo" target="_blank">[% 'new Window' | $T8 %]</a>]
+ [<a href="JavaScript:top.print()">[% 'print' | $T8 %]</a>]
+ [[% 'Search contacts' | $T8 %] <input size="15" name="search_term" id="search_term" onkeydown="return on_keydown_quicksearch($('#search_term'), event)">]
+ </span>
+ <span class="frame-header-element frame-header-right">
+ [[% 'User' | $T8 %]: [% MYCONFIG.login | html %] -
+ <a href="controller.pl?action=LoginScreen/logout" target="_top">[% 'logout' | $T8 %]</a>]
+ [% date %] <span id='clock_id' style='position:relative'></span>
+ </span>
+ </div>
<div id="main_menu_div"></div>
[%- USE T8 %]
[% USE HTML %]
+ <script type="text/javascript" src="js/quicksearch_input.js"></script>
<script type="text/javascript">
<!--
-function on_keydown_quicksearch(e) {
- var key;
-
- if (window.event)
- key = window.event.keyCode; // IE
- else
- key = e.which; // Firefox
-
- if (key != 13)
- return true;
-
- var search_term = $("#search_term");
- var value = search_term.val();
- if (!value)
- return true;
-
- var url = "ct.pl?action=list_contacts&INPUT_ENCODING=utf-8&filter.status=active&search_term=" + encodeURIComponent(value);
-
- search_term.val('');
- window.location.href = url;
-
- return false;
-}
-
function clockon() {
var now = new Date();
var h = now.getHours();
<span class="frame-header-element frame-header-left">
[<a href="login.pl?action=company_logo" target="_blank">[% 'new Window' | $T8 %]</a>]
[<a href="JavaScript:top.print()">[% 'print' | $T8 %]</a>]
- [[% 'Search contacts' | $T8 %] <input size="15" name="search_term" id="search_term" onkeydown="return on_keydown_quicksearch(event)">]
+ [[% 'Search contacts' | $T8 %] <input size="15" name="search_term" id="search_term" onkeydown="return on_keydown_quicksearch($('#search_term'), event)">]
</span>
<span class="frame-header-element frame-header-right">
[[% 'User' | $T8 %]: [% MYCONFIG.login | html %] -