}
$query = '
- SELECT
- accno
+ SELECT accno
FROM chart
WHERE accno = ?';
- my ($accno) = selectrow_query($form, $dbh, $query, $form->{accno});
+
+ my @values = ($form->{accno});
+
+ if ( $form->{id} ) {
+ $query .= ' AND NOT id = ?';
+ push(@values, $form->{id});
+ }
+
+ my ($accno) = selectrow_query($form, $dbh, $query, @values);
if ($accno) {
$form->error($::locale->text('Account number not unique!'));
margin: 0;
padding: 0.3em 1em;
}
-#menuv4 h2:before {
- content: " ";
-}
-#menuv4 h2:after {
- content: " ";
-}
#menuv4 h2 {
background-color: #ffffff;
color: #000000;
z-index:500;
top:auto;
display:none;
-background:#000;
}
#menuv3 ul ul ul {
top:0;
left:100%;
-background:#000;
}
/* Begin non-anchor hover selectors */
padding:1px 0 1px 3px;
}
-#menuv4 h2:before {
- content:" ";
-}
-#menuv4 h2:after {
- content:" ";
-}
#menuv4 h2 {
color:#fff;
padding:2px 10px;
border:0;
}
-#menuv4 li.sub {
-left:-25px;
-top:-3px;
-}
-
/* IE6 spacing bug fix, <li>s without a bottom border get spaced to far
* correction: the bug will change the height of the parent element! this will also cause the whole menu to grow
* so the only method to get this pile of crap going is to add a bottom border to the <li>s, where the enclosing <ul> already has
#menuv4 ul ul ul {
top:0;
-left:100%;
+left:90%;
}
/* Begin non-anchor hover selectors */
div#menuv4 li li:hover ul,
div#menuv4 li li li:hover ul,
div#menuv4 li li li li:hover ul
-{display:block; left:10px;}
+{display:block;}
/* End of non-anchor hover selectors */
[%- END %]
<span class="frame-header-element frame-header-right">
[% 'User' | $T8 %]:
- [% MYCONFIG.login %]
+ [% MYCONFIG.login | html %]
[<a href="controller.pl?action=LoginScreen/logout" target="_top" title="[% 'Logout now' | $T8 %]">[% 'Logout' | $T8 %]</a>]
[% now.to_lxoffice %] -
[% now.hms %]
//-->
</script>
- <table border="0" width="100%" background="image/bg_titel.gif" cellpadding="0" cellspacing="0">
- <tr>
- <td style="color:white; font-family:verdana,arial,sans-serif; font-size: 12px;" nowrap>
-
+<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(event)">]
- </td>
- <td align="right" style="vertical-align:middle; color:white; font-family:verdana,arial,sans-serif; font-size: 12px;" nowrap>
- [[% 'User' | $T8 %]: [% HTML.escape(login) %] -
+ </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>
- </td>
- </tr>
- </table>
-
+ </span>
+</div>
<div id="menuv3">
[% menu %]
<th>[% 'Source' | $T8 %]</th>
<th>[% 'Description' | $T8 %]</th>
[%- IF is_asset %]
- <th>[% 'Deposit' | $T8 %]</th>
<th>[% 'Payment' | $T8 %]</th>
+ <th>[% 'Deposit' | $T8 %]</th>
[%- ELSE %]
<th>[% 'Decrease' | $T8 %]</th>
<th>[% 'Increase' | $T8 %]</th>