# standard css for all
# this should gradually move to the layouts that need it
$layout->use_stylesheet("$_.css") for qw(
- main menu tabcontent list_accounts jquery.autocomplete
+ main menu list_accounts jquery.autocomplete
jquery.multiselect2side frame_header/header
ui-lightness/jquery-ui-1.8.12.custom
+ jquery-ui.custom
js/jscalendar/calendar-win2k-1
);
print " $_\n" for @header;
print <<EOT;
<meta name="robots" content="noindex,nofollow">
- <script type="text/javascript" src="js/tabcontent.js">
-
- /***********************************************
- * Tab Content script v2.2- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
- * This notice MUST stay intact for legal use
- * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
- ***********************************************/
-
- </script>
</head>
<body>
next if $tab eq '';
- my $selected = $params{selected} == $i;
- my $tab_id = "__tab_id_$i";
- push @header, $self->li_tag(
- $self->link('', $tab->{name}, rel => $tab_id),
- ($selected ? (class => 'selected') : ())
- );
- push @blocks, $self->div_tag($tab->{data},
- id => $tab_id, class => 'tabcontent');
+ my $tab_id = "__tab_id_$i";
+ push @header, $self->li_tag($self->link('#' . $tab_id, $tab->{name}));
+ push @blocks, $self->div_tag($tab->{data}, id => $tab_id);
}
return '' unless @header;
- return $self->ul_tag(
- join('', @header), id => $id, class => 'shadetabs'
- ) .
- $self->div_tag(
- join('', @blocks), class => 'tabcontentstyle'
- ) .
- $self->javascript(
- qq|var $id = new ddtabcontent("$id");$id.setpersist(true);| .
- qq|$id.setselectedClassTarget("link");$id.init();|
- );
+
+ my $ul = $self->ul_tag(join('', @header), id => $id);
+ return $self->div_tag(join('', $ul, @blocks), class => 'tabwidget');
}
sub tab {
L.tab(LxERP.t8('Custom Variables'), 'part/_cvar_tab.html', if => SELF.display_cvar_tab),
]) %]
-An optional attribute is C<selected>, which accepts the ordinal of a tab which
-should be selected by default.
-
=item C<areainput_tag $name, $content, %PARAMS>
Creates a generic input tag or textarea tag, depending on content size. The
--- /dev/null
+.tabwidget {
+ background: white;
+ position: relative;
+ padding: .2em;
+ zoom: 1;
+ -webkit-border-radius: 4px;
+ border-radius: 4px;
+ border: 1px solid #dddddd;
+ color: #333333;
+ font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif;
+ font-size: 1.1em;
+}
+
+.tabwidget ul {
+ margin: 0;
+ padding: .2em .2em 0;
+ outline: 0;
+ line-height: 1.3;
+ text-decoration: none;
+ font-size: 100%;
+ font-weight: bold;
+ list-style: none;
+ display: block;
+ background: #dddddd;
+ border: 1px #dddddd;
+ color: #fe5f14;
+ margin: 0;
+ padding: .2em .2em 0;
+}
+
+.tabwidget ul::after {
+ content: ".";
+ display: block;
+ height: 0;
+ clear: both;
+ visibility: hidden;
+}
+
+.tabwidget ul li {
+ list-style: none;
+ float: left;
+ position: relative;
+ top: 1px;
+ margin: 0 .2em 1px 0;
+ border-bottom: 0 !important;
+ border-top-right-radius: 4px;
+ padding: 0;
+ white-space: nowrap;
+ border: 1px solid #cccccc;
+ background: #f6f6f6 url(ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png) 50% 50% repeat-x;
+ font-weight: bold;
+ color: #1c94c4;
+}
+
+.tabwidget ul li a { float: left; padding: .5em 1em; text-decoration: none; }
+.tabwidget ul li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
+.tabwidget ul li.ui-tabs-selected a, .tabwidget.ui-tabs-nav li.ui-state-disabled a, .tabwidget.ui-tabs-nav li.ui-state-processing a { cursor: text; }
+.tabwidget ul li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; }
+
+.tabwidget div {
+ display: none;
+}
+
+.tabwidget.ui-state-active {
+}
+
+.tabwidget .ui-widget-header {
+ background: #dddddd;
+ border: 1px #dddddd;
+ color: #fe5f14;
+}
+
+
+.tabwidget .ui-state-active a, .tabwidget .ui-state-active a:link, .tabwidget .ui-state-active a:visited {
+ color: #fe5f14;
+}
+
+.tabwidget .ui-state-active, .tabwidget.ui-widget-content .ui-state-active, .tabwidget .ui-widget-header .ui-state-active {
+ color: #fe5f14;
+}
+
+.tabwidget .ui-state-default a, .tabwidget .ui-state-default a:link {
+ color: #006400;
+}
+
+.tabwidget .ui-state-active a, .tabwidget .ui-state-active a:link {
+ color: #fe5f14;
+}
+
+.tabwidget .ui-state-hover a, .tabwidget .ui-state-hover a:hover {
+ color: #fe5f14;
+}
+++ /dev/null
-/* ######### CSS for Shade Tabs. Remove if not using ######### */
-
-.shadetabs{
-padding: 3px 0;
-margin-left: 0;
-margin-top: 1px;
-margin-bottom: 0;
-font: bold 12px Verdana;
-list-style-type: none;
-text-align: left; /*set to left, center, or right to align the menu as desired*/
-}
-
-.shadetabs li{
-display: inline;
-margin: 0;
-}
-
-.shadetabs li a{
-text-decoration: none;
-position: relative;
-z-index: 1;
-padding: 3px 7px;
-margin-right: 3px;
-background-color:#A1A1A1;
-border-bottom: none ;
-color: #000000;
--moz-border-radius:0.4em 0.4em 0 0; /* Firefox */
--webkit-border-radius:0.4em 0.4em 0 0; /* Safari, Chrome */
--khtml-border-radius:0.4em 0.4em 0 0; /* Konqueror */
-border-radius:0.4em 0.4em 0 0 ; /* CSS3 */
-behavior:url(border-radius.htc);
-border-bottom: thin solid #FE5F14;
-}
-
-.shadetabs li a:visited{
-color: #000000;
-border: none;
-background-color:#A1A1A1;
-border-bottom: none ;
-}
-
-.shadetabs li a:hover{
-color: #FE5F14;
-background-color:#EBEBEB;
-}
-
-.shadetabs li a.selected{ /*selected main tab style */
-position: relative;
-top: 1px;
-background-color: #D1D1D1;
-color:#000000;
-}
-
-.shadetabs li a.selected{ /*selected main tab style */
-border-bottom-color:#EBEBEB;
-}
-
-.shadetabs li a.selected:hover{ /*selected main tab style */
-text-decoration: none;
-}
-
-.tabcontent{
-display:none;
-}
-
-@media print {
-.tabcontent {
-display:block !important;
-}
-}
-
-/* ######### CSS for Inverted Modern Bricks II Tabs. Remove if not using ######### */
-
-.modernbricksmenu2{
-padding: 0;
-width: 362px;
-border-top: 5px solid #D25A0B; /*Brown color theme*/
-background: transparent;
-voice-family: "\"}\"";
-voice-family: inherit;
-}
-
-.modernbricksmenu2 ul{
-margin:0;
-margin-left: 10px; /*margin between first menu item and left browser edge*/
-padding: 0;
-list-style: none;
-}
-
-.modernbricksmenu2 li{
-display: inline;
-margin: 0 2px 0 0;
-padding: 0;
-text-transform:uppercase;
-}
-
-.modernbricksmenu2 a{
-float: left;
-display: block;
-font: bold 11px Arial;
-color: white;
-text-decoration: none;
-margin: 0 1px 0 0; /*Margin between each menu item*/
-padding: 5px 10px;
-background-color: black; /*Brown color theme*/
-border-top: 1px solid white;
-}
-
-.modernbricksmenu2 a:hover{
-background-color: #D25A0B; /*Brown color theme*/
-color: white;
-}
-
-.modernbricksmenu2 a.selected{ /*currently selected tab*/
-background-color: #D25A0B; /*Brown color theme*/
-color: white;
-border-color: #D25A0B; /*Brown color theme*/
-}
-
-.tabcontent{
-display:none;
-}
-
-@media print {
-.tabcontent {
-display:block !important;
-}
-}
-
-/* ######### CSS for Indented CSS Tabs. Remove if not using ######### */
-
-
-.indentmenu{
-font: bold 13px Arial;
-width: 100%; /*leave this value as is in most cases*/
-}
-
-.indentmenu ul{
-margin: 0;
-padding: 0;
-float: left;
-/* width: 80%; width of menu*/
-border-top: 1px solid navy; /*navy border*/
-background: black url(../image/indentbg.gif) center center repeat-x;
-}
-
-.indentmenu ul li{
-display: inline;
-}
-
-.indentmenu ul li a{
-float: left;
-color: white; /*text color*/
-padding: 5px 11px;
-text-decoration: none;
-border-right: 1px solid navy; /*navy divider between menu items*/
-}
-
-.indentmenu ul li a:visited{
-color: white;
-}
-
-.indentmenu ul li a.selected{
-color: white !important;
-padding-top: 6px; /*shift text down 1px*/
-padding-bottom: 4px;
-background: black url(../image/indentbg2.gif) center center repeat-x;
-}
-
-
-.tabcontentstyle{ /*style of tab content oontainer*/
-/* border: 1px solid #D2691E; */
-width: 95%;
-margin-bottom: 1em;
-padding: 10px;
--moz-border-radius:0 0 0.4em 0.4em; /* Firefox */
--webkit-border-radius:0 0 0.4em 0.4em; /* Safari, Chrome */
--khtml-border-radius:0 0 0.4em 0.4em; /* Konqueror */
-border-radius:0 0 0.4em 0.4em; /* CSS3 */
-behavior:url(border-radius.htc);
-border: thin solid #A1A1A1;
-
-}
-
-.tabcontent{
-display:none;
-}
-
-@media print {
-.tabcontent {
-display:block !important;
-}
-}
--- /dev/null
+.tabwidget {
+ background: none;
+ position: relative;
+ padding: .2em;
+ zoom: 1;
+ -webkit-border-radius: 0;
+ border-radius: 0;
+ border: 1px solid #000000;
+ color: #000000;
+ font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif;
+ font-size: 1.1em;
+}
+
+.tabwidget ul {
+ margin: 0;
+ padding: .2em .2em 0;
+ outline: 0;
+ line-height: 1.3;
+ text-decoration: none;
+ font-size: 100%;
+ font-weight: bold;
+ list-style: none;
+ display: block;
+ background: url("../../image/fade.png");
+ border: 0;
+ color: #000000;
+ margin: 0;
+ padding: .2em .2em 0;
+}
+
+.tabwidget ul::after {
+ content: ".";
+ display: block;
+ height: 0;
+ clear: both;
+ visibility: hidden;
+}
+
+.tabwidget ul li {
+ list-style: none;
+ float: left;
+ position: relative;
+ top: 1px;
+ margin: 0 .2em 1px 0;
+ border-bottom: 0 !important;
+ border-top-right-radius: 0;
+ padding: 0;
+ white-space: nowrap;
+ border: 1px solid #cccccc;
+ background: #f6f6f6 url(ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png) 50% 50% repeat-x;
+ font-weight: bold;
+ color: #000000;
+}
+
+.tabwidget ul li a { float: left; padding: .5em 1em; text-decoration: none; }
+.tabwidget ul li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
+.tabwidget ul li.ui-tabs-selected a, .tabwidget.ui-tabs-nav li.ui-state-disabled a, .tabwidget.ui-tabs-nav li.ui-state-processing a { cursor: text; }
+.tabwidget ul li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; }
+
+.tabwidget div {
+ display: none;
+}
+
+.tabwidget.ui-state-active {
+}
+
+.tabwidget .ui-widget-header {
+ background: url("../../image/fade.png");
+ border: 0;
+ color: #000000;
+}
+
+
+.tabwidget .ui-state-active a, .tabwidget .ui-state-active a:link, .tabwidget .ui-state-active a:visited {
+ color: #000000;
+}
+
+.tabwidget .ui-state-active, .tabwidget.ui-widget-content .ui-state-active, .tabwidget .ui-widget-header .ui-state-active {
+ color: #000000;
+}
+
+.tabwidget .ui-state-default a, .tabwidget .ui-state-default a:link {
+ color: #999999;
+}
+
+.tabwidget .ui-state-active a, .tabwidget .ui-state-active a:link {
+ color: #000000;
+ text-decoration: underline;
+}
+
+.tabwidget .ui-state-hover a, .tabwidget .ui-state-hover a:hover {
+ color: #000000;
+ text-decoration: underline;
+}
+++ /dev/null
-/* ######### CSS for Shade Tabs. Remove if not using ######### */\r
-\r
-.shadetabs{\r
-padding: 3px 0;\r
-margin-left: 0;\r
-margin-top: 1px;\r
-margin-bottom: 0;\r
-font: bold 12px Verdana, sans-serif;\r
-list-style-type: none;\r
-text-align: left; /*set to left, center, or right to align the menu as desired*/\r
-}\r
-\r
-.shadetabs li{\r
-display: inline;\r
-margin: 0;\r
-}\r
-\r
-.shadetabs li a{\r
-text-decoration: none;\r
-position: relative;\r
-z-index: 1;\r
-padding: 3px 7px;\r
-margin-right: 3px;\r
-border: 1px solid #778;\r
-color: #2d2b2b;\r
-background: white url(../../image/shade.gif) top left repeat-x;\r
-}\r
-\r
-.shadetabs li a:visited{\r
-color: #2d2b2b;\r
-}\r
-\r
-.shadetabs li a:hover{\r
-text-decoration: underline;\r
-color: #2d2b2b;\r
-}\r
-\r
-.shadetabs li a.selected{ /*selected main tab style */\r
-position: relative;\r
-top: 1px;\r
-}\r
-\r
-.shadetabs li a.selected{ /*selected main tab style */\r
-background-image: url(../../image/shadeactive.gif);\r
-border-bottom-color: white;\r
-}\r
-\r
-.shadetabs li a.selected:hover{ /*selected main tab style */\r
-text-decoration: none;\r
-}\r
-\r
-.tabcontent{\r
-display:none;\r
-}\r
-\r
-@media print {\r
-.tabcontent {\r
-display:block !important;\r
-}\r
-}\r
-\r
-.tabcontent{\r
-display:none;\r
-}\r
-\r
-@media print {\r
-.tabcontent {\r
-display:block !important;\r
-}\r
-}\r
-\r
-.tabcontentstyle{ /*style of tab content oontainer*/\r
-border: 1px solid gray;\r
-width: 95%;\r
-margin-bottom: 1em;\r
-padding: 10px;\r
-}\r
-\r
-.tabcontent{\r
-display:none;\r
-}\r
-\r
-@media print {\r
-.tabcontent {\r
-display:block !important;\r
-}\r
-}\r
var forbidden = test_val.match(/[^\s\d\(\)\-\+\*\/\.]/g);
if (forbidden && forbidden.length > 0 ){
return show_alert_and_focus(input_name, wrongNumberFormat);
- }
+ }
- try{
+ try{
eval(test_val);
}catch(err){
return show_alert_and_focus(input_name, wrongNumberFormat);
- }
+ }
}
}
$(document).ready(function () {
+ // initialize all jQuery UI tab elements:
+ $(".tabwidget").each(function(idx, element) { $(element).tabs(); });
+
$('input').focus(function(){
if (focussable(this)) window.focused_element = this;
});
+++ /dev/null
-//** Tab Content script v2.0- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com)\r
-//** Updated Oct 7th, 07 to version 2.0. Contains numerous improvements:\r
-// -Added Auto Mode: Script auto rotates the tabs based on an interval, until a tab is explicitly selected\r
-// -Ability to expand/contract arbitrary DIVs on the page as the tabbed content is expanded/ contracted\r
-// -Ability to dynamically select a tab either based on its position within its peers, or its ID attribute (give the target tab one 1st)\r
-// -Ability to set where the CSS classname "selected" get assigned- either to the target tab's link ("A"), or its parent container\r
-//** Updated Feb 18th, 08 to version 2.1: Adds a "tabinstance.cycleit(dir)" method to cycle forward or backward between tabs dynamically\r
-//** Updated April 8th, 08 to version 2.2: Adds support for expanding a tab using a URL parameter (ie: http://mysite.com/tabcontent.htm?tabinterfaceid=0) \r
-\r
-////NO NEED TO EDIT BELOW////////////////////////\r
-\r
-function ddtabcontent(tabinterfaceid){\r
- this.tabinterfaceid=tabinterfaceid //ID of Tab Menu main container\r
- this.tabs=document.getElementById(tabinterfaceid).getElementsByTagName("a") //Get all tab links within container\r
- this.enabletabpersistence=true\r
- this.hottabspositions=[] //Array to store position of tabs that have a "rel" attr defined, relative to all tab links, within container\r
- this.currentTabIndex=0 //Index of currently selected hot tab (tab with sub content) within hottabspositions[] array\r
- this.subcontentids=[] //Array to store ids of the sub contents ("rel" attr values)\r
- this.revcontentids=[] //Array to store ids of arbitrary contents to expand/contact as well ("rev" attr values)\r
- this.selectedClassTarget="link" //keyword to indicate which target element to assign "selected" CSS class ("linkparent" or "link")\r
-}\r
-\r
-ddtabcontent.getCookie=function(Name){ \r
- var re=new RegExp(Name+"=[^;]+", "i"); //construct RE to search for target name/value pair\r
- if (document.cookie.match(re)) //if cookie found\r
- return document.cookie.match(re)[0].split("=")[1] //return its value\r
- return ""\r
-}\r
-\r
-ddtabcontent.setCookie=function(name, value){\r
- document.cookie = name+"="+value+";path=/" //cookie value is domain wide (path=/)\r
-}\r
-\r
-ddtabcontent.prototype={\r
-\r
- expandit:function(tabid_or_position){ //PUBLIC function to select a tab either by its ID or position(int) within its peers\r
- this.cancelautorun() //stop auto cycling of tabs (if running)\r
- var tabref=""\r
- try{\r
- if (typeof tabid_or_position=="string" && document.getElementById(tabid_or_position).getAttribute("rel")) //if specified tab contains "rel" attr\r
- tabref=document.getElementById(tabid_or_position)\r
- else if (parseInt(tabid_or_position)!=NaN && this.tabs[tabid_or_position].getAttribute("rel")) //if specified tab contains "rel" attr\r
- tabref=this.tabs[tabid_or_position]\r
- }\r
- catch(err){alert("Invalid Tab ID or position entered!")}\r
- if (tabref!="") //if a valid tab is found based on function parameter\r
- this.expandtab(tabref) //expand this tab\r
- },\r
-\r
- cycleit:function(dir, autorun){ //PUBLIC function to move foward or backwards through each hot tab (tabinstance.cycleit('foward/back') )\r
- if (dir=="next"){\r
- var currentTabIndex=(this.currentTabIndex<this.hottabspositions.length-1)? this.currentTabIndex+1 : 0\r
- }\r
- else if (dir=="prev"){\r
- var currentTabIndex=(this.currentTabIndex>0)? this.currentTabIndex-1 : this.hottabspositions.length-1\r
- }\r
- if (typeof autorun=="undefined") //if cycleit() is being called by user, versus autorun() function\r
- this.cancelautorun() //stop auto cycling of tabs (if running)\r
- this.expandtab(this.tabs[this.hottabspositions[currentTabIndex]])\r
- },\r
-\r
- setpersist:function(bool){ //PUBLIC function to toggle persistence feature\r
- this.enabletabpersistence=bool\r
- },\r
-\r
- setselectedClassTarget:function(objstr){ //PUBLIC function to set which target element to assign "selected" CSS class ("linkparent" or "link")\r
- this.selectedClassTarget=objstr || "link"\r
- },\r
-\r
- getselectedClassTarget:function(tabref){ //Returns target element to assign "selected" CSS class to\r
- return (this.selectedClassTarget==("linkparent".toLowerCase()))? tabref.parentNode : tabref\r
- },\r
-\r
- urlparamselect:function(tabinterfaceid){\r
- var result=window.location.search.match(new RegExp(tabinterfaceid+"=(\\d+)", "i")) //check for "?tabinterfaceid=2" in URL\r
- return (result==null)? null : parseInt(RegExp.$1) //returns null or index, where index (int) is the selected tab's index\r
- },\r
-\r
- expandtab:function(tabref){\r
- var subcontentid=tabref.getAttribute("rel") //Get id of subcontent to expand\r
- //Get "rev" attr as a string of IDs in the format ",john,george,trey,etc," to easily search through\r
- var associatedrevids=(tabref.getAttribute("rev"))? ","+tabref.getAttribute("rev").replace(/\s+/, "")+"," : ""\r
- this.expandsubcontent(subcontentid)\r
- this.expandrevcontent(associatedrevids)\r
- for (var i=0; i<this.tabs.length; i++){ //Loop through all tabs, and assign only the selected tab the CSS class "selected"\r
- this.getselectedClassTarget(this.tabs[i]).className=(this.tabs[i].getAttribute("rel")==subcontentid)? "selected" : ""\r
- }\r
- if (this.enabletabpersistence) //if persistence enabled, save selected tab position(int) relative to its peers\r
- ddtabcontent.setCookie(this.tabinterfaceid, tabref.tabposition)\r
- this.setcurrenttabindex(tabref.tabposition) //remember position of selected tab within hottabspositions[] array\r
- },\r
-\r
- expandsubcontent:function(subcontentid){\r
- for (var i=0; i<this.subcontentids.length; i++){\r
- var subcontent=document.getElementById(this.subcontentids[i]) //cache current subcontent obj (in for loop)\r
- subcontent.style.display=(subcontent.id==subcontentid)? "block" : "none" //"show" or hide sub content based on matching id attr value\r
- }\r
- },\r
-\r
- expandrevcontent:function(associatedrevids){\r
- var allrevids=this.revcontentids\r
- for (var i=0; i<allrevids.length; i++){ //Loop through rev attributes for all tabs in this tab interface\r
- //if any values stored within associatedrevids matches one within allrevids, expand that DIV, otherwise, contract it\r
- document.getElementById(allrevids[i]).style.display=(associatedrevids.indexOf(","+allrevids[i]+",")!=-1)? "block" : "none"\r
- }\r
- },\r
-\r
- setcurrenttabindex:function(tabposition){ //store current position of tab (within hottabspositions[] array)\r
- for (var i=0; i<this.hottabspositions.length; i++){\r
- if (tabposition==this.hottabspositions[i]){\r
- this.currentTabIndex=i\r
- break\r
- }\r
- }\r
- },\r
-\r
- autorun:function(){ //function to auto cycle through and select tabs based on a set interval\r
- this.cycleit('next', true)\r
- },\r
-\r
- cancelautorun:function(){\r
- if (typeof this.autoruntimer!="undefined")\r
- clearInterval(this.autoruntimer)\r
- },\r
-\r
- init:function(automodeperiod){\r
- var persistedtab=ddtabcontent.getCookie(this.tabinterfaceid) //get position of persisted tab (applicable if persistence is enabled)\r
- var selectedtab=-1 //Currently selected tab index (-1 meaning none)\r
- var selectedtabfromurl=this.urlparamselect(this.tabinterfaceid) //returns null or index from: tabcontent.htm?tabinterfaceid=index\r
- this.automodeperiod=automodeperiod || 0\r
- for (var i=0; i<this.tabs.length; i++){\r
- this.tabs[i].tabposition=i //remember position of tab relative to its peers\r
- if (this.tabs[i].getAttribute("rel")){\r
- var tabinstance=this\r
- this.hottabspositions[this.hottabspositions.length]=i //store position of "hot" tab ("rel" attr defined) relative to its peers\r
- this.subcontentids[this.subcontentids.length]=this.tabs[i].getAttribute("rel") //store id of sub content ("rel" attr value)\r
- this.tabs[i].onclick=function(){\r
- tabinstance.expandtab(this)\r
- tabinstance.cancelautorun() //stop auto cycling of tabs (if running)\r
- return false\r
- }\r
- if (this.tabs[i].getAttribute("rev")){ //if "rev" attr defined, store each value within "rev" as an array element\r
- this.revcontentids=this.revcontentids.concat(this.tabs[i].getAttribute("rev").split(/\s*,\s*/))\r
- }\r
- if (selectedtabfromurl==i || this.enabletabpersistence && selectedtab==-1 && parseInt(persistedtab)==i || !this.enabletabpersistence && selectedtab==-1 && this.getselectedClassTarget(this.tabs[i]).className=="selected"){\r
- selectedtab=i //Selected tab index, if found\r
- }\r
- }\r
- } //END for loop\r
- if (selectedtab!=-1) //if a valid default selected tab index is found\r
- this.expandtab(this.tabs[selectedtab]) //expand selected tab (either from URL parameter, persistent feature, or class="selected" class)\r
- else //if no valid default selected index found\r
- this.expandtab(this.tabs[this.hottabspositions[0]]) //Just select first tab that contains a "rel" attr\r
- if (parseInt(this.automodeperiod)>500 && this.hottabspositions.length>1){\r
- this.autoruntimer=setInterval(function(){tabinstance.autorun()}, this.automodeperiod)\r
- }\r
- } //END int() function\r
-\r
-} //END Prototype assignment
\ No newline at end of file
[%- USE T8 %]
[%- USE LxERP %]
[%- USE HTML %][%- USE L %]
- <p>
- <div class="listtop">[% title %]</div>
- </p>
+ <div class="listtop">[% title %]</div>
<form method="post" action="am.pl" name="Form">
-
- <ul id="maintab" class="shadetabs">
- <li class="selected"><a href="#" rel="page_personal_settings">[% 'Personal settings' | $T8 %]</a></li>
- <li><a href="#" rel="page_display_options">[% 'Display options' | $T8 %]</a></li>
- <li><a href="#" rel="page_print_options">[% 'Print options' | $T8 %]</a></li>
- <li><a href="#" rel="page_todo_list_options">[% 'TODO list options' | $T8 %]</a></li>
- </ul>
-
<input type="hidden" name="type" value="preferences">
- <div class="tabcontentstyle">
+ <div class="tabwidget">
+ <ul>
+ <li><a href="#page_personal_settings">[% 'Personal settings' | $T8 %]</a></li>
+ <li><a href="#page_display_options">[% 'Display options' | $T8 %]</a></li>
+ <li><a href="#page_print_options">[% 'Print options' | $T8 %]</a></li>
+ <li><a href="#page_todo_list_options">[% 'TODO list options' | $T8 %]</a></li>
+ </ul>
- <div id="page_personal_settings" class="tabcontent">
+ <div id="page_personal_settings">
<table>
<tr>
</tr>
</table>
-
- <br style="clear: left" />
</div>
- <div id="page_display_options" class="tabcontent">
+ <div id="page_display_options">
<table>
<tr>
</td>
</tr>
</table>
-
- <br style="clear: left" />
</div>
- <div id="page_print_options" class="tabcontent">
+ <div id="page_print_options">
<table>
<input name="printer" type="hidden" value="[% HTML.escape(myconfig_printer) %]">
<td><input name="copies" size="10" value="[% HTML.escape(myconfig_copies) %]"></td>
</tr>
</table>
-
- <br style="clear: left" />
</div>
- <div id="page_todo_list_options" class="tabcontent">
+ <div id="page_todo_list_options">
<table>
<tr>
</tr>
[%- END %]
</table>
-
- <br style="clear: left" />
</div>
</div>
<p><input type="submit" class="submit" name="action" value="[% 'Save' | $T8 %]"></p>
</form>
-
- <script type="text/javascript">
- <!--
- var maintab = new ddtabcontent("maintab");
- maintab.setpersist(true);
- maintab.setselectedClassTarget("link"); //"link" or "linkparent"
- maintab.init();
- -->
- </script>
[% IF cp_id %]
<input type="button" id="delete_contact" onclick="submitInputButton(this);" name="action" value="[% 'Delete Contact' | $T8 %]">
[% END %]
-
- <br style="clear: left" />
[%- IF shipto_id %]
<input type="submit" id="delete_shipto" name="action" value="[% 'Delete Shipto' | $T8 %]">
- <br style="clear: left" />
[%- END %]
button.form.submit();
}
- var maintab = new ddtabcontent("maintab");
- maintab.setpersist(true);
- maintab.setselectedClassTarget("link"); //"link" or "linkparent"
- maintab.init();
-
function check_taxzone_and_ustid() {
if (($('#taxzone_id').attr('value') == '1') && ($('#ustid').attr('value') == '')) {
alert('[% LxERP.t8('Please enter the sales tax identification number.') %]');
<form method="post" name="ct" action="ct.pl" >
- <ul id="maintab" class="shadetabs">
- <li class="selected"><a href="#" rel="billing">[% 'Billing Address' | $T8 %]</a></li>
- <li><a href="#" rel="shipto">[% 'Shipping Address' | $T8 %]</a></li>
- <li><a href="#" rel="contacts">[% 'Contacts' | $T8 %]</a></li>
+ <div class="tabwidget">
+ <ul>
+ <li><a href="#billing">[% 'Billing Address' | $T8 %]</a></li>
+ <li><a href="#shipto">[% 'Shipping Address' | $T8 %]</a></li>
+ <li><a href="#contacts">[% 'Contacts' | $T8 %]</a></li>
[%- IF id %]
- <li><a href="#" rel="deliveries">[% 'Supplies' | $T8 %]</a></li>
+ <li><a href="#deliveries">[% 'Supplies' | $T8 %]</a></li>
[%- END %]
- <li><a href="#" rel="vcnotes">[% 'Notes' | $T8 %]</a></li>
- [%- IF CUSTOM_VARIABLES.CT.size %]
- <li><a href="#" rel="custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
- [%- END %]
- </ul>
-
- <div class="tabcontentstyle">
+ <li><a href="#vcnotes">[% 'Notes' | $T8 %]</a></li>
+[%- IF CUSTOM_VARIABLES.CT.size %]
+ <li><a href="#custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
+[%- END %]
+ </ul>
- <div id="billing" class="tabcontent">
+ <div id="billing">
<table width="100%">
<tr height="5"></tr>
<td><textarea name="notes" rows="3" cols="60" wrap="soft">[% HTML.escape(notes) %]</textarea></td>
</tr>
</table>
-
- <br style="clear: left" />
</div>
- <div id="shipto" class="tabcontent">
+ <div id="shipto">
[% INCLUDE 'ct/_shipto.html' %]
</div>
- <div id="contacts" class="tabcontent">
+ <div id="contacts">
[% INCLUDE 'ct/_contact.html' %]
</div>
- <div id="deliveries" class="tabcontent">
+ <div id="deliveries">
<table>
<tr>
<th align="right">[% 'Shipping Address' | $T8 %]</th>
</td>
</tr>
</table>
-
- <br style="clear: left" />
</div>
- <div id="vcnotes" class="tabcontent">
+ <div id="vcnotes">
[%- IF NOTES && NOTES.size %]
<p>
</tr>
</table>
</p>
-
- <br style="clear: left" />
</div>
[%- IF CUSTOM_VARIABLES.CT.size %]
- <div id="custom_variables" class="tabcontent">
+ <div id="custom_variables">
<p>
<table>
[%- END %]
</table>
</p>
-
- <br style="clear: left" />
</div>
[%- END %]
<td><hr size="3" noshade></td>
</tr>
</table>
-
- <br style="clear: left" />
</div>
[%- IF id %]
-<div id="sales_price_information" class="tabcontent">
+<div id="sales_price_information">
[% PROCESS ic/sales_price_information.html id=id %]
</div>
[%- END %]
[%- IF CUSTOM_VARIABLES.size %]
-<div id="custom_variables" class="tabcontent">
+<div id="custom_variables">
<p>[% 'Unchecked custom variables will not appear in orders and invoices.' | $T8 %]</p>
[%- END %]
</table>
</p>
-
- <br style="clear: left" />
</div>
[%- END %]
</form>
<script type="text/javascript" src="js/wz_tooltip.js"></script>
-<script type="text/javascript">
-<!--
- var maintab = new ddtabcontent("maintab");
- maintab.setpersist(true);
- maintab.setselectedClassTarget("link"); //"link" or "linkparent"
- maintab.init();
- -->
-</script>
-
<input name="original_partnumber" type="hidden" value="[% HTML.escape(original_partnumber) %]">
<input name="currow" type="hidden" value="[% HTML.escape(currow) %]">
- <ul id="maintab" class="shadetabs">
- <li class="selected"><a href="#" rel="master_data">[% 'Basic Data' | $T8 %]</a></li>
- [%- IF id %]
- <li><a href="#" rel="sales_price_information">[% 'Price information' | $T8 %]</a></li>
- [%- END %]
- [%- IF CUSTOM_VARIABLES.size %]
- <li><a href="#" rel="custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
- [%- END %]
- </ul>
+ <div class="tabwidget">
+ <ul>
+ <li><a href="#master_data">[% 'Basic Data' | $T8 %]</a></li>
+ [%- IF id %]
+ <li><a href="#sales_price_information">[% 'Price information' | $T8 %]</a></li>
+ [%- END %]
+ [%- IF CUSTOM_VARIABLES.size %]
+ <li><a href="#custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
+ [%- END %]
+ </ul>
- <div class="tabcontentstyle">
- <div id="master_data" class="tabcontent">
+ <div id="master_data">
<table width="100%">
<tr>
[% L.hidden_tag("callback", callback) %]
[% L.hidden_tag("id", SELF.project.id) %]
- <ul id="maintab" class="shadetabs">
- <li class="selected"><a href="#" rel="basic_data">[% 'Basic Data' | $T8 %]</a></li>
- [%- IF CUSTOM_VARIABLES.size %]
- <li><a href="#" rel="custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
- [%- END %]
- [%- IF SELF.project.id %]
- <li><a href="#" rel="linked_records">[% 'Linked Records' | $T8 %]</a></li>
- [%- END %]
- </ul>
-
- <div class="tabcontentstyle">
-
- <div id="basic_data" class="tabcontent">
+ <div class="tabwidget">
+ <ul>
+ <li><a href="#basic_data">[% 'Basic Data' | $T8 %]</a></li>
+ [%- IF CUSTOM_VARIABLES.size %]
+ <li><a href="#custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
+ [%- END %]
+ [%- IF SELF.project.id %]
+ <li><a href="#linked_records">[% 'Linked Records' | $T8 %]</a></li>
+ [%- END %]
+ </ul>
+
+ <div id="basic_data">
<table>
<tr>
</tr>
[%- END %]
</table>
-
- <br style="clear: left" />
</div>
[%- IF CUSTOM_VARIABLES.size %]
- <div id="custom_variables" class="tabcontent">
+ <div id="custom_variables">
<p>
<table>
[%- END %]
</table>
</p>
-
- <br style="clear: left" />
</div>
[%- END %]
[%- IF SELF.project.id %]
- <div id="linked_records" class="tabcontent">
-
+ <div id="linked_records">
[% P.grouped_record_list(SELF.linked_records) %]
-
- <br style="clear: left" />
</div>
[%- END %]
<a href="[% IF callback %][% callback %][% ELSE %][% SELF.url_for(action => 'search') %][% END %]">[%- LxERP.t8('Abort') %]</a>
</p>
</form>
-
- <script type="text/javascript">
- <!--
- var maintab = new ddtabcontent("maintab");
- maintab.setpersist(true);
- maintab.setselectedClassTarget("link"); //"link" or "linkparent"
- maintab.init();
- -->
- </script>