summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2e04ddc)
raw | patch | inline | side by side (parent: 2e04ddc)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 18 Nov 2005 15:22:36 +0000 (15:22 +0000) | ||
committer | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 18 Nov 2005 15:22:36 +0000 (15:22 +0000) |
Verified with Konqueror/Linux, Firefox/Linux, Firefox/Windows, IE/Windows.
Need to use hardcoded styles instead of id-based css2-styles (works not with IE).
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1980 594d385d-05f5-0310-b6e9-bd551577e9d8
Need to use hardcoded styles instead of id-based css2-styles (works not with IE).
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1980 594d385d-05f5-0310-b6e9-bd551577e9d8
12 files changed:
index e6c74988b89e7c40e3bdadcefe5cd498cdad9258..e4e46c99076c415a2bc9cb2e4a190bd74410969c 100644 (file)
background:#E5E5E5;
font-weight:bold;
border-right:1px solid #C0C0C0;
+ border-bottom: 1px solid #b0b0b0;
padding:3px;
+ height:22px;
+}
+
+td.scrollhead {
+ vertical-align:top;
+ padding:0px;
+}
+
+td.scrollbody {
+ vertical-align:top;
+ padding:0px;
+}
+
+td.listheader#icon {
+ width:20px;
+}
+
+td.listheader#entry {
+}
+
+td.listheader#property {
+ width:50px;
+}
+
+td.listheader#info {
+ width:200px;
+}
+
+td.listheader#properties7 {
+ width:136px;
+}
+
+td.listheader#8properties {
+ width:152px;
+}
+
+td.listheader#9properties {
+ width:168px;
+}
+
+td.listheader#10properties {
+ width:186px;
+}
+
+td.listheader#actions {
+ width:52px;
+ border-right:0px;
+ text-align:right;
+}
+
+td.listheader#scrollbar {
+ width:13px;
+ border-right:0px;
}
td.list0 {
background:#F0F0F0;
border-right:1px solid #C0C0C0;
padding:3px;
+ height:22px;
+}
+
+td.list0#icon {
+ width:20px;
+ text-align:center;
+}
+
+td.list0#entry {
+}
+
+td.list0#info {
+ width:200px;
+}
+
+td.list0#property {
+ width:50px;
+}
+
+td.list0#properties7 {
+ width:136px;
+}
+
+td.list0#properties8 {
+ width:152px;
+}
+
+td.list0#properties9 {
+ width:168px;
+}
+
+td.list0#properties10 {
+ width:186px;
+}
+
+td.list0#actions {
+ width:52px;
+ border-right:0px;
+ text-align:right;
}
td.list1 {
background:white;
border-right:1px solid #C0C0C0;
padding:3px;
+ height:22px;
+}
+
+td.list1#fill {
+ height:100%;
+}
+
+td.list1#icon {
+ width:0px;
+ text-align:center;
}
-tbody.scrollcontent {
- overflow:auto;
- overflow:-moz-scrollbars-vertical;
- overflow-x:hidden;
- height:480px;
+td.list1#entry {
}
-body
-{
- margin-left: 0px;
- margin-right: 0px;
- margin-top: 0px;
- margin-bottom: 0px;
- background-color: white;
- background-image:url("images/border.png");
- background-repeat:repeat-y;
- color: #00008F;
- font-family:Arial,Helvetica,sans-serif;
- font-size: 12px;
+td.list1#info {
+ width:200px;
}
-h1 { font-size: 14px; color: #00378a;}
-h2,h3,h4,h5,h6 { font-size: 13px; color: #00378a;}
+td.list1#property {
+ width:50px;
+}
+
+td.list1#properties7 {
+ width:136px;
+}
+
+td.list1#properties8 {
+ width:152px;
+}
+
+td.list1#properties9 {
+ width:168px;
+}
-td,p,b {font-size: 12px;}
+td.list1#properties10 {
+ width:186px;
+}
+
+td.list1#actions {
+ width:52px;
+ border-right:0px;
+ text-align:right;
+}
+
+body {
+ margin-left:0px;
+ margin-right:0px;
+ margin-top:0px;
+ margin-bottom:0px;
+ background-color:white;
+ background-image:url("images/border.png");
+ background-repeat:repeat-y;
+ color:#00008F;
+ font-family:arial,helvetica,sans-serif;
+ font-size:12px;
+}
+
+h1 {
+ font-size:14px;
+ color: #00378a;
+}
+
+h2, h3, h4, h5, h6 {
+ font-size:13px;
+ color:#00378a;
+}
+
+td, p, b {
+ font-size:12px;
+}
/* Title bar */
a.maintitlebar, div.maintitlebar {
- font-family: arial,helvetica,sans-serif;
- text-decoration: none;
- color: #00348B;
- font-size: 12px;
+ font-family:arial,helvetica,sans-serif;
+ text-decoration:none;
+ color:#00348B;
+ font-size:12px;
}
-a.maintitlebar:hover{
- text-decoration: none;
- background-color: #B0D3A0;
+a.maintitlebar:hover {
+ text-decoration:none;
+ background-color:#B0D3A0;
}
p.menuheader {
- font-family: arial,helvetica,sans-serif;
- color: #00378a;
- text-decoration: none;
- background-color: #CDF6BD;
- font-weight: bold;
- font-size: 12px;
- text-align: center;
- width: 100%;
- vertical-align: middle;
- padding: 3px;
- margin-top: 30px;
+ font-family:arial,helvetica,sans-serif;
+ color:#00378a;
+ text-decoration:none;
+ background-color:#CDF6BD;
+ font-weight:bold;
+ font-size:12px;
+ text-align:center;
+ width:100%;
+ vertical-align:middle;
+ padding:3px;
+ margin-top:30px;
}
p.menuitem {
- font-family: arial,helvetica,sans-serif;
- color: #00378a;
- text-decoration: none;
- font-weight: normal;
- font-size: 12px;
- text-align: left;
- padding-left: 15px;
- padding-top: 2px;
- padding-bottom: 2px;
- vertical-align: middle;
- margin: 2px;
- background-color: #DFFFDF;
- padding-right: 5px;
+ font-family:arial,helvetica,sans-serif;
+ color:#00378a;
+ text-decoration:none;
+ font-weight:normal;
+ font-size:12px;
+ text-align:left;
+ padding-left:15px;
+ padding-top:2px;
+ padding-bottom:2px;
+ vertical-align:middle;
+ margin:2px;
+ background-color:#dfffdf;
+ padding-right:5px;
}
-p.menuitem:hover{
- background-color:#D2F6C2;
+p.menuitem:hover {
+ background-color:#d2f6c2;
}
table.menuitem {
- width:100%;
- margin-top:10px;
- margin-bottom:10px;
- margin-right:10px;
- background-color:#F0F0F0;
+ width:100%;
+ margin-top:10px;
+ margin-bottom:10px;
+ margin-right:10px;
+ background-color:#f0f0f0;
}
-table.menuitem:hover{
- background-color:#C5C5C5;
+table.menuitem:hover {
+ background-color:#c5c5c5;
}
td.phonelist:hover {
- background-color: #D2D2D2;
+ background-color:#d2d2d2;
}
-h1.menuheader{
- border-style:solid;
- border-color:#707070;
- width:100%;
- border-top-width:1px;
- border-bottom-width:0px;
- border-left-width:0px;
- border-right-width:0px;
- padding-top:10px;
- padding-bottom:0px;
+h1.menuheader {
+ border-style:solid;
+ border-color:#707070;
+ width:100%;
+ border-top-width:1px;
+ border-bottom-width:0px;
+ border-left-width:0px;
+ border-right-width:0px;
+ padding-top:10px;
+ padding-bottom:0px;
}
div.copynotice{
- border-style:solid;
- border-color:#707070;
- width:100%;
- border-top-width:1px;
- border-bottom-width:0px;
- border-left-width:0px;
- border-right-width:0px;
- padding-top:3px;
- padding-bottom:0px;
- text-align: right;
- font-family:Arial,Helvetica,sans-serif;
- font-size: 10px;
+ border-style:solid;
+ border-color:#707070;
+ width:100%;
+ border-top-width:1px;
+ border-bottom-width:0px;
+ border-left-width:0px;
+ border-right-width:0px;
+ padding-top:3px;
+ padding-bottom:0px;
+ text-align:right;
+ font-family:arial,helvetica,sans-serif;
+ font-size:10px;
}
-a:link{
- text-decoration: none;
- color: #00008F;
+a:link {
+ text-decoration:none;
+ color:#00008f;
}
-a:visited{
- text-decoration: none;
- color: #00008F;
+a:visited {
+ text-decoration:none;
+ color:#00008f;
}
-a.menuitem:link{
- text-decoration: none;
- color: #00008F;
+a.menuitem:link {
+ text-decoration:none;
+ color:#00008f;
}
-a.menuitem:visited{
- text-decoration: none;
- color: #00008F;
+a.menuitem:visited {
+ text-decoration:none;
+ color:#00008f;
}
-a.menuitem:hover{
- text-decoration: none;
+a.menuitem:hover {
+ text-decoration:none;
}
-a.iconmenu:link{
- text-decoration: none;
- color: #00008F;
+a.iconmenu:link {
+ text-decoration:none;
+ color:#00008f;
}
td.iconmenu:hover {
- background-color: #E0E0E0;
+ background-color:#e0e0e0;
}
-a.iconmenu:visited{
- text-decoration: none;
- color: #00008F;
+a.iconmenu:visited {
+ text-decoration:none;
+ color:#00008f;
}
-a.iconmenu:hover{
- text-decoration: none;
+a.iconmenu:hover {
+ text-decoration:none;
}
h1.plugtop{
- border-style:solid;
- border-color:#707070;
- width:100%;
- border-top-width:0px;
- border-bottom-width:1px;
- border-left-width:0px;
- border-right-width:0px;
- padding-top:0px;
- margin-top:0px;
- padding-bottom:6px;
- text-align: left;
- background-color: red;
- font-family:Arial,Helvetica,sans-serif;
- font-size: 24px;
-}
-
-div.plugtop{
- border-style:solid;
- border-color:#B0B0B0;
- width:100%;
- border-top-color: #E0E0F0;
- border-top-width:6px;
- border-bottom-width:1px;
- border-left-width:0px;
- border-right-width:0px;
- padding-top:0px;
- padding-bottom:6px;
- margin-bottom: 0px;
- text-align: left;
- vertical-align: middle;
- background-color: #E0E0F0;
- font-family:Arial,Helvetica,sans-serif;
- font-weight: bold;
- font-size: 24px;
-}
-
-div.pluginfo{
- border:solid;
- border:0px;
- width:100%;
- padding-top:2px;
- padding-bottom:2px;
- margin-bottom: 10px;
- text-align: right;
- vertical-align: middle;
- background-color: #C0C0E0;
- font-family:Arial,Helvetica,sans-serif;
- font-size: 11px;
-}
-
-p.seperator{
- border-style:solid;
- border-color:#A0A0A0;
- width:100%;
- border-top-width:0px;
- border-bottom-width:1px;
- border-left-width:0px;
- border-right-width:0px;
- padding-top:0px;
- padding-bottom:0px;
- margin-top:0px;
- margin-bottom:0px;
- text-align: left;
-}
-
-p.plugbottom{
- border-style:solid;
- border-color:#A0A0A0;
- width:100%;
- border-top-width:1px;
- border-bottom-width:0px;
- border-left-width:0px;
- border-right-width:0px;
- padding-top:10px;
- padding-bottom:0px;
- text-align: right;
- font-family:Arial,Helvetica,sans-serif;
+ border-style:solid;
+ border-color:#707070;
+ width:100%;
+ border-top-width:0px;
+ border-bottom-width:1px;
+ border-left-width:0px;
+ border-right-width:0px;
+ padding-top:0px;
+ margin-top:0px;
+ padding-bottom:6px;
+ text-align:left;
+ background-color:red;
+ font-family:arial,helvetica,sans-serif;
+ font-size:24px;
+}
+
+div.plugtop {
+ border-style:solid;
+ border-color:#b0b0b0;
+ width:100%;
+ border-top-color:#e0e0f0;
+ border-top-width:6px;
+ border-bottom-width:1px;
+ border-left-width:0px;
+ border-right-width:0px;
+ padding-top:0px;
+ padding-bottom:6px;
+ margin-bottom: 0px;
+ text-align:left;
+ vertical-align:middle;
+ background-color:#e0e0f0;
+ font-family:arial,helvetica,sans-serif;
+ font-weight:bold;
+ font-size:24px;
+}
+
+div.pluginfo {
+ border:solid;
+ border:0px;
+ width:100%;
+ padding-top:2px;
+ padding-bottom:2px;
+ margin-bottom:10px;
+ text-align:right;
+ vertical-align:middle;
+ background-color:#c0c0e0;
+ font-family:arial,helvetica,sans-serif;
+ font-size:11px;
+}
+
+p.seperator {
+ border-style:solid;
+ border-color:#a0a0a0;
+ width:100%;
+ border-top-width:0px;
+ border-bottom-width:1px;
+ border-left-width:0px;
+ border-right-width:0px;
+ padding-top:0px;
+ padding-bottom:0px;
+ margin-top:0px;
+ margin-bottom:0px;
+ text-align:left;
+}
+
+p.plugbottom {
+ border-style:solid;
+ border-color:#a0a0a0;
+ width:100%;
+ border-top-width:1px;
+ border-bottom-width:0px;
+ border-left-width:0px;
+ border-right-width:0px;
+ padding-top:10px;
+ padding-bottom:0px;
+ text-align:right;
+ font-family:arial,helvetica,sans-serif;
}
font.must {
- color: red;
- font-family:Arial,Helvetica,sans-serif;
+ color:red;
+ font-family:arial,helvetica,sans-serif;
}
div.tab_active {
- text-align:center;
- height:25px;
- width:100px;
- background-color:#F0F0F0;
- border-style:solid;
- border-color:black;
- border-top-width:1px;
- border-bottom-width:0px;
- border-left-width:1px;
- border-right-width:1px;
- margin-top: 0px;
- padding-top:1px;
+ text-align:center;
+ height:25px;
+ width:100px;
+ background-color:#f0f0f0;
+ border-style:solid;
+ border-color:black;
+ border-top-width:1px;
+ border-bottom-width:0px;
+ border-left-width:1px;
+ border-right-width:1px;
+ margin-top:0px;
+ padding-top:1px;
}
div.tab_left {
- text-align:center;
- height:20px;
- width:100px;
- background-color:#C0C0C0;
- border-style:solid;
- border-color:black;
- border-top-width:1px;
- border-bottom-width:1px;
- border-left-width:1px;
- border-right-width:0px;
- margin-top: 5px;
- padding-top:1px;
+ text-align:center;
+ height:20px;
+ width:100px;
+ background-color:#c0c0c0;
+ border-style:solid;
+ border-color:black;
+ border-top-width:1px;
+ border-bottom-width:1px;
+ border-left-width:1px;
+ border-right-width:0px;
+ margin-top:5px;
+ padding-top:1px;
}
div.tab_right {
- text-align:center;
- height:20px;
- width:100px;
- background-color:#C0C0C0;
- border-style:solid;
- border-color:black;
- border-top-width:1px;
- border-bottom-width:1px;
- border-left-width:0px;
- border-right-width:1px;
- margin-top: 5px;
- padding-top:1px;
+ text-align:center;
+ height:20px;
+ width:100px;
+ background-color:#c0c0c0;
+ border-style:solid;
+ border-color:black;
+ border-top-width:1px;
+ border-bottom-width:1px;
+ border-left-width:0px;
+ border-right-width:1px;
+ margin-top:5px;
+ padding-top:1px;
}
div.tab_near_active {
- text-align:center;
- height:20px;
- width:100px;
- background-color:#C0C0C0;
- border-style:solid;
- border-color:black;
- border-top-width:1px;
- border-bottom-width:1px;
- border-left-width:1px;
- border-right-width:1px;
- margin-top: 5px;
- padding-top:1px;
+ text-align:center;
+ height:20px;
+ width:100px;
+ background-color:#c0c0c0;
+ border-style:solid;
+ border-color:black;
+ border-top-width:1px;
+ border-bottom-width:1px;
+ border-left-width:1px;
+ border-right-width:1px;
+ margin-top:5px;
+ padding-top:1px;
}
div.tab_border {
- width:100%;
- height:20px;
- border-style:solid;
- border-color:black;
- border-top-width:0px;
- border-bottom-width:1px;
- border-left-width:0px;
- border-right-width:0px;
+ width:100%;
+ height:20px;
+ border-style:solid;
+ border-color:black;
+ border-top-width:0px;
+ border-bottom-width:1px;
+ border-left-width:0px;
+ border-right-width:0px;
}
a.tab_active, input.tab_active {
- border: 0px;
- margin: 0px;
- width: 100px;
- height: 22px;
- font-family: arial,helvetica,sans-serif;
- background-color: #F0F0F0;
- text-decoration: none;
- color: #00348B;
- font-size: 13px;
- font-weight: bold;
+ border:0px;
+ margin:0px;
+ width:100px;
+ height:22px;
+ font-family:arial,helvetica,sans-serif;
+ background-color:#f0f0f0;
+ text-decoration:none;
+ color:#00348B;
+ font-size:13px;
+ font-weight:bold;
}
a.tab_right, input.tab_right {
- width: 100px;
- height: 20px;
- border: 0px;
- margin: 0px;
- font-family: arial,helvetica,sans-serif;
- background-color: #C0C0C0;
- text-decoration: none;
- color: #00348B;
- font-size: 13px;
- font-weight: bold;
+ width:100px;
+ height:20px;
+ border:0px;
+ margin:0px;
+ font-family:arial,helvetica,sans-serif;
+ background-color:#c0c0c0;
+ text-decoration:none;
+ color:#00348b;
+ font-size:13px;
+ font-weight:bold;
}
a.tab_left, input.tab_left {
- width: 100px;
- height: 20px;
- border: 0px;
- margin: 0px;
- font-family: arial,helvetica,sans-serif;
- background-color: #C0C0C0;
- text-decoration: none;
- color: #00348B;
- font-size: 13px;
- font-weight: bold;
+ width:100px;
+ height:20px;
+ border:0px;
+ margin:0px;
+ font-family:arial,helvetica,sans-serif;
+ background-color:#c0c0c0;
+ text-decoration:none;
+ color:#00348b;
+ font-size:13px;
+ font-weight:bold;
}
a.tab_near_active, input.tab_near_active {
- width: 100px;
- height: 20px;
- border: 0px;
- margin: 0px;
- font-family: arial,helvetica,sans-serif;
- background-color: #C0C0C0;
- text-decoration: none;
- color: #00348B;
- font-size: 13px;
- font-weight: bold;
+ width:100px;
+ height:20px;
+ border:0px;
+ margin:0px;
+ font-family:arial,helvetica,sans-serif;
+ background-color:#c0c0c0;
+ text-decoration:none;
+ color:#00348b;
+ font-size:13px;
+ font-weight:bold;
}
}
table.gosaLoginMask {
- background-color:#8B898B;
- text-align: center;
+ background-color:#8b898b;
+ text-align:center;
border:0px;
}
}
p.gosaLoginHeader {
- text-align: center;
- font-size: 14px;
- font-weight: bold;
- margin-bottom: 15px;
+ text-align:center;
+ font-size:14px;
+ font-weight:bold;
+ margin-bottom:15px;
}
p.gosaLoginWarning {
border-spacing:0px;
padding:0px;
margin:0px;
- background-color:#CDF6BD;
+ background-color:#cdf6bd;
vertical-align:top;
}
border-spacing:0px;
padding:0px;
margin:0px;
- background-color:#CDF6BD;
+ background-color:#cdf6bd;
vertical-align:top;
}
input {
- font-size: 12px;
+ font-size:12px;
}
input:focus {
- font-size: 12px;
+ font-size:12px;
}
select {
- font-size: 12px;
+ font-size:12px;
}
textarea {
- font-size: 12px;
+ font-size:12px;
}
textarea:focus {
- font-size: 12px;
+ font-size:12px;
}
div.contentboxh {
- background-color:#E8E8E8;
- border:1px solid #B0B0B0;
+ background-color:#e8e8e8;
+ border:1px solid #b0b0b0;
border-bottom-width:0px;
height:26px;
}
p.contentboxh {
margin:2px;
- font-family:Arial,Helvetica,sans-serif;
- font-size: 16px;
- font-weight: bold;
+ font-family:arial,helvetica,sans-serif;
+ font-size:16px;
+ font-weight:bold;
}
div.contentboxb {
- border:1px solid #B0B0B0;
+ border:1px solid #b0b0b0;
border-top-width:0px;
}
p.contentboxb {
padding-bottom:0px;
margin:0px;
- border:4px solid #F8F8F8;
+ border:4px solid #f8f8f8;
}
a.alphaselect:hover {
- text-decoration: none;
- background-color: #A0A0A0;
- color: white;
+ text-decoration:none;
+ background-color:#a0a0a0;
+ color:white;
}
table.check {
- background-color: #E1E1F1;
- color: black;
- border:1px dashed #A0A0A0;
+ background-color:#e1e1f1;
+ color:black;
+ border:1px dashed #a0a0a0;
width:95%;
margin-left:20px;
}
td.check {
- border-right:1px dashed #A0A0A0;
+ border-right:1px dashed #a0a0a0;
}
option.select {
background-repeat:no-repeat;
- background-position: 0px top;
+ background-position:0px top;
border:0;
padding-left:20px;
padding-bottom:1px;
}
input.menubar{
- text-decoration: none;
+ text-decoration:none;
height:19px;
padding:0px;
width:100%;
index ef1c137e9b621157a9f410f412101789aeec2a4b..443b8ed2e3726da42634972b3c3376da1e15e279 100644 (file)
function DrawList(){
$s_return = "";
- $s_return.= "<table summary='".$this->s_summary."' width='600' height='500' cellspacing='0'>";
- if($this->i_entriesPerPage==0) {
- // TODO: Find a more convenient way to use the same functionality in both
- // MSIE and non-MSIE browsers. ATM we need to manually set entriesPerPage to
- // a non-zero value, because MSIE won't scroll the tbody properly.
- $s_browser = isset($_SERVER['HTTP_USER_AGENT'])?$_SERVER['HTTP_USER_AGENT']:"";
- if(is_numeric(strpos($s_browser,'Mozilla')) &&
- !is_numeric(strpos($s_browser,'MSIE')) &&
- !is_numeric(strpos($s_browser,'KHTML'))
- ){
- $s_return.= "<thead>".$this->_generateHeader()."</thead>";
- // Define an alternate style for IE (not used ATM)
- // $s_return.= "<!--[if IE]><style type='text/css'>tbody.scrollcontent {overflow-y:scroll;max-height:480px;}</style><![endif]-->";
- $s_return.= "<tbody style='max-height:480px;overflow:auto;overflow:-moz-scrollbars-vertical;'>".$this->_generatePage()."</tbody>";
- } else {
- // Call ourself with i_entriesPerPage set to a default value
- $this->SetEntriesPerPage(20);
- $s_return.=$this->_generateHeader();
- $s_return.=$this->_generatePage();
- }
- } else {
- $s_return.=$this->_generateHeader();
- $s_return.=$this->_generatePage();
- }
- //$s_return.= nl2br(htmlentities($this->_generatePage()));
+ $s_return.= "<table summary='".$this->s_summary."' style='width:600px;height:500px;' cellspacing='0'>";
+
+ $s_return.= $this->_generateHeader();
+ $s_return.=$this->_generatePage();
$s_return.= "</table>";
function _generateHeader(){
$s_return = "";
-
$s_value = "";
$s_key = "";
-
+
+ // Using scrolltable?
+ if($this->i_entriesPerPage == 0) {
+ $s_return .= "\n<tr><td class='scrollhead'><table style='width:600px;' cellspacing='0'>";
+ }
+
$s_return .= "\n<tr>";
- $i_count = count($this->a_header[0])-1;
foreach($this->a_header[0] as $s_key => $s_value ){
if(!isset($s_value['attach'])){
$s_value['attach'] = "";
}
-
- if($i_count == 0) {
- $s_return .= "\n<td class='listheader' style='border-right:0px;border-bottom:1px solid #b0b0b0;' ".$s_value['attach'].">".$s_value['string']."</td>";
- } else {
- $s_return .= "\n<td class='listheader' style='border-bottom:1px solid #b0b0b0;'".$s_value['attach'].">".$s_value['string']."</td>";
- }
- $i_count--;
+
+ $s_return.= "\n<td class='listheader' ".$s_value['attach'].">".$s_value['string']."</td>";
}
- // Only create additional column if we're using scrollbars
- if($this->i_entriesPerPage==0) {
- $s_return .= "\n<td class='listheader' style='border-right:0px;padding:0px;border-bottom:1px solid #b0b0b0;width:16px;'> </td>";
+ // Attach a 18px-wide column (used as scrollbar space in body-table),
+ // but do this only if we are really using scrolltables.
+ if($this->i_entriesPerPage == 0) {
+ if($this->_numEntries()>20) {
+ $s_return .= "\n<td class='listheader' id='scrollbar'> </td>";
+ }
+ $s_return .= "\n</table></td></tr>";
}
- $s_return .= "\n</tr>";
+
+ $s_return .= "\n</tr>";
return $s_return;
}
$s_value = "";
$s_key = "";
$s_return = "";
-
+
+ // We need to construct a "body"-table that is width-of-scrollbar thinner than the "head"-table. I assume 18px as max.
+ $s_return .= "\n<tr><td class='scrollbody'><div style='align:left;width:600px;height:480px;overflow:auto;'>";
+ // Only reduce width if we need a scrollbar (>20 Entries)
+ if($this->_numEntries()>20) {
+ $s_return .= "<table style='height:100%;width:581px;' cellspacing='0'>";
+ } else {
+ $s_return .= "<table style='height:100%;width:600px;' cellspacing='0'>";
+ }
$i_alternate=0;
if(isset($_GET['start'])){
$s_return .= "<tr><td colspan='".$this->cols."' align='center'>".range_selector($this->_numentries(),$start,$this->i_entriesPerPage)."</td></tr>";
}
} else {
+ // $this->i_entriesPerPage <= 0
// We should display all entries on one page
$i = $this->_numEntries();
}
}
- // if fewer than 22 Entries (list not full), print row to fill empty space
- if($this->_numEntries()<22){
+ // if fewer than 20 Entries (list not full), print row to fill empty space
+ if($this->_numEntries()<20){
$fill= "";
for ($i= 1; $i <= $this->cols; $i++){
if ($i == $this->cols){
- $fill.= "<td class='list1' style='height:100%;border-right:0px';> </td>";
+ $fill.= "<td class='list1' id='fill' style='border-right:0px';> </td>";
} else {
- $fill.= "<td class='list1' style='height:100%';> </td>";
+ $fill.= "<td class='list1' id='fill'> </td>";
}
}
$s_return.="\n<tr>$fill</tr>";
}
+ $s_return .= "\n</table></div></td></tr>";
return $s_return;
}
}
diff --git a/plugins/admin/applications/class_applicationManagement.inc b/plugins/admin/applications/class_applicationManagement.inc
index 22e3947ae3ea931e0de563c0b4c31d72fd4a4483..8924f4382169ffce8f537c61ada935d60ce37cf4 100644 (file)
$divlist = new divlist("applicationtabs");
$divlist->SetHeader(array(
- array("string" => ""),
- array("string" => _("Application name")." / "._("Department")),
- array("string" => _("Actions") ,"attach"=>"style='border:none;width:40px;'")
+ array("string" => " ", "attach" => "style='text-align:center;width:20px;'"),
+ array("string" => _("Application name")." / "._("Department"), "attach" => "style=''"),
+ array("string" => _("Actions"), "attach" => "style='width:52px;border-right:0px;text-align:right;'")
));
}
}
- $field1 = array("string" => "<img src='images/".$non_empty."folder.png' alt='department'>","attach"=>"style='width:20px;text-align:center;'");
- $field2 = array("string" => sprintf($linkopen,base64_encode($key),$val));
- $field3 = array("string" => " ","attach"=>"style='width:48px;text-align:left;border:none'");
+ $field1 = array("string" => "<img src='images/".$non_empty."folder.png' alt='department'>", "attach" => "style='text-align:center;width:20px;'");
+ $field2 = array("string" => sprintf($linkopen,base64_encode($key),$val), "attach" => "style=''");
+ $field3 = array("string" => " ", "attach" => "style='width:52px;border-right:0px;text-align:right;'");
$divlist->AddEntry(array($field1,$field2,$field3));
}
}else{
$desc = " - [ ".$val['description'][0]." ]";
}
- $field1 = array("string" => sprintf($applimg,$val['dn']),"attach"=>"style='width:20px;align:center;text-align:center;'");
- $field2 = array("string" => sprintf($editlink,$key,($val['cn']['0'].$desc)),"attach"=>$title);
- $field3 = array("string" => preg_replace("/%KEY%/", $key, $actions),"attach"=>"style='width:48px;text-align:right;border:none'");
+ $field1 = array("string" => sprintf($applimg,$val['dn']), "attach" => "style='text-align:center;width:20px;'");
+ $field2 = array("string" => sprintf($editlink,$key,($val['cn']['0'].$desc)), "attach" => "style='' ".$title);
+ $field3 = array("string" => preg_replace("/%KEY%/", $key, $actions), "attach" => "style='width:52px;border-right:0px;text-align:right;'");
$divlist->AddEntry(array($field1,$field2,$field3));
}
diff --git a/plugins/admin/departments/class_departmentManagement.inc b/plugins/admin/departments/class_departmentManagement.inc
index 32f1998bddce13c3d04a7454693fed4cf36058b7..dbaece848b9a08f8ade3d3221a1a59569de1cc35 100644 (file)
$linkopen = "<a href='?plug=".$_GET['plug']."&act=dep_open&dep_id=%s'>%s</a>";
$divlist->SetHeader(array(
- array("string" => " "),
- array("string"=>_("Department name")),
- array("string" =>_("Actions"), "attach" => "style='border:none;'")));
+ array("string" => " ", "attach" => "style='text-align:center;width:20px;'"),
+ array("string"=>_("Department name"), "attach" => "style=''"),
+ array("string" =>_("Actions"), "attach" => "style='width:52px;border-right:0px;text-align:right;'")));
foreach($this->departments as $key => $val) {
if(!isset($this->config->departments[trim($key)])){
}
$title = $this->config->departments[$key];
- $field0 = array("string" => "<img src='images/".$non_empty."folder.png' title='"._("department")."' alt='department'>","attach"=>"style='text-align:center;width:20px;'");
- $field1 = array("string" => sprintf($linkopen,base64_encode($key),$val), "attach" => "style='text-align:left;' title='".$title."'");
- $field2 = array("string" => preg_replace("/%KEY%/", base64_encode($key), $actions),"attach"=>"style='text-align:right;border:none;width:48px;'");
+ $field0 = array("string" => "<img src='images/".$non_empty."folder.png' title='"._("department")."' alt='department'>", "attach" => "style='text-align:center;width:20px;'");
+ $field1 = array("string" => sprintf($linkopen,base64_encode($key),$val), "attach" => "style='' title='".$title."'");
+ $field2 = array("string" => preg_replace("/%KEY%/", base64_encode($key), $actions), "attach" => "style='width:52px;border-right:0px;text-align:right;'");
$divlist->AddEntry( array($field0,$field1,$field2));
index 137845a5786cefbaf0aea830885f2327abbf46ce..3f87f0826167b70625024101ffb6cf09d7b6f295 100644 (file)
$divlist->SetSummary(_("This table displays all systems, in the selected tree."));
$divlist->SetHeader(array(
- array("string" => " "),
- array("string" => _("Name of FAI class")),
- array("string" => _("Class type")),
- array("string" => _("Actions"), "attach"=>"style='border-right:none;width:40px;'")));
+ array("string" => " ", "attach" => "style='text-align:center;width:20px;'"),
+ array("string" => _("Name of FAI class"), "attach" => "style=''"),
+ array("string" => _("Class type"), "attach" => "style='width:200px;'"),
+ array("string" => _("Actions"), "attach" => "style='width:52px;border-right:0px;text-align:right;'")));
$action = "<input type='image' src='images/edit.png' alt='"._("edit")."' name='entry_edit_%KEY%' title='"._("Edit class")."'>";
$title = $this->config->departments[$key];
- $field0 = array("string" => "<img src='images/".$non_empty."folder.png' title='"._("department")."' alt='department'>", "attach"=>"style='text-align:center;width:20px;'");
- $field1 = array("string" => sprintf($linkopen,base64_encode($key),$val), "attach" => "title='".$title."'");
- $field2 = array("string" => "");
- $field3 = array("string" => "","attach"=>"style='width:48px;text-align:right;border-right:none;'");
+ $field0 = array("string" => "<img src='images/".$non_empty."folder.png' title='"._("department")."' alt='department'>", "attach" => "style='text-align:center;width:20px;'");
+ $field1 = array("string" => sprintf($linkopen,base64_encode($key),$val), "attach" => "style='' title='".$title."'");
+ $field2 = array("string" => " ", "attach" => "style='width:200px;'");
+ $field3 = array("string" => " ", "attach" => "style='width:52px;border-right:0px;text-align:right;'");
$divlist->AddEntry( array($field0,$field1,$field2,$field3));
$desc= "";
}
- $field1 = array("string" => $img , "attach" => "style='text-align:center;width=20px;'");
- $field2 = array("string" => preg_replace(array("/%KEY%/","/%NAME%/"),array($key,$value['cn'].$desc),$editlink) , "attach" => "");
- $field3 = array("string" => $info, "attach" => "");
- $field4 = array("string" => preg_replace("/%KEY%/",$key,$action) , "attach"=>"style='width:48px;text-align:right;border:none'");
+ $field1 = array("string" => $img , "attach" => "style='text-align:center;width:20px;'");
+ $field2 = array("string" => preg_replace(array("/%KEY%/","/%NAME%/"),array($key,$value['cn'].$desc),$editlink) , "attach" => "style=''");
+ $field3 = array("string" => $info, "attach" => "style='width:200px;'");
+ $field4 = array("string" => preg_replace("/%KEY%/",$key,$action) , "attach" => "style='width:52px;border-right:0px;text-align:right;'");
$divlist->AddEntry(array($field1,$field2,$field3,$field4));
}
diff --git a/plugins/admin/groups/class_groupManagement.inc b/plugins/admin/groups/class_groupManagement.inc
index 2f444c58e6f436b43c6216ba6cca1ffe8bdc82c6..277d1fa79d768fb91abd48dd702eae6c04208fb9 100644 (file)
$divlist = new divlist("groupstab");
$divlist->SetHeader(array(
- array("string" => " "),
- array("string" => _("Groupname")." / "._("Department")),
- array("string" => _("Properties"), "attach" => "style='width:116px;'"),
- array("string" => _("Actions") ,"attach" => "style='border:none'")
+ array("string" => " ", "attach" => "style='text-align:center;width:20px;'"),
+ array("string" => _("Groupname")." / "._("Department"), "attach" => "style=''"),
+ array("string" => _("Properties"), "attach" => "style='width:136px;'"),
+ array("string" => _("Actions"), "attach" => "style='width:52px;border-right:0px;text-align:right;'")
));
-
$divlist->SetSummary(_("This table displays all groups, in the selected tree."));
$divlist->SetEntriesPerPage(0);
}
- $field1 = array("string" => "<img src='images/".$non_empty."folder.png' alt='department'>","attach"=>"style='text-align:center;width:20px;'");
- $field2 = array("string" => sprintf($linkopen,base64_encode($key),$val));
- $field3 = array("string" => " ");
- $field4 = array("string" => " ","attach"=>"style='text-align:right;border:none;width:48px;'");
+ $field1 = array("string" => "<img src='images/".$non_empty."folder.png' alt='department'>", "attach" => "style='text-align:center;width:20px;'");
+ $field2 = array("string" => sprintf($linkopen,base64_encode($key),$val), "attach" => "style=''");
+ $field3 = array("string" => " ", "attach" => "style='width:136px;'");
+ $field4 = array("string" => " ", "attach" => "style='width:52px;border-right:0px;text-align:right;'");
$divlist->AddEntry(array($field1,$field2,$field3,$field4));
}
}else{
$desc = " - [ ".$val['description'][0]." ]";
}
- $field1 = array("string" => sprintf($userimg,$val['dn']),"attach"=>"style='width:20px;text-align:center;'");
- $field2 = array("string" => sprintf($editlink,$key,($val['cn']['0'].$desc)),"attach"=>$title);
- $field3 = array("string" => $posix." ".$enviro." ".$mail." ".$samba." ".$appl." ".$phone,"attach"=>"style='text-align:left;width:136px;'");
- $field4 = array("string" => preg_replace("/%KEY%/", $key, $actions),"attach"=>"style='text-align:right;border:none;width:48px;'");
+ $field1 = array("string" => sprintf($userimg,$val['dn']), "attach" => "style='text-align:center;width:20px;'");
+ $field2 = array("string" => sprintf($editlink,$key,($val['cn']['0'].$desc)), "attach" => "style='' ".$title);
+ $field3 = array("string" => $posix." ".$enviro." ".$mail." ".$samba." ".$appl." ".$phone, "attach" => "style='width:136px;'");
+ $field4 = array("string" => preg_replace("/%KEY%/", $key, $actions), "attach" => "style='width:52px;border-right:0px;text-align:right;'");
$divlist->AddEntry(array($field1,$field2,$field3,$field4));
}
diff --git a/plugins/admin/ogroups/class_ogroupManagement.inc b/plugins/admin/ogroups/class_ogroupManagement.inc
index c1f4b3f18095dedd7480d9e403852c47e5ce7c66..971c99c6fe846f1a63c9166c0a6766d66965c74c 100644 (file)
// List Setup
$divlist = new divlist("ogroubstab");
$divlist->SetHeader(array(
- array("string" => " "),
- array("string" => _("Name of object groups")." / "._("Departments")),
- array("string" => _("Properties")),
- array("string" => _("Actions"))
+ array("string" => " ", "attach" => "style='text-align:center;width:20px;'"),
+ array("string" => _("Name of object groups")." / "._("Departments"), "attach" => "style=''"),
+ array("string" => _("Properties"), "attach" => "style='width:136px;'"),
+ array("string" => _("Actions"), "attach" => "style='width:52px;border-right:0px;text-align:right;'")
));
- $field1 = array("string" => "<img src='images/".$non_empty."folder.png' alt='"._("Department")."'>","attach"=>"style='text-align:center;width:20px;'");
- $field2 = array("string" => sprintf($linkopen,base64_encode($key),$val));
- $field3 = array("string" => " ","attach"=>"style='width:136px;'");
- $field4 = array("string" => " ","attach"=>"style='width:48px;text-align:left;border:none'");
+ $field1 = array("string" => "<img src='images/".$non_empty."folder.png' alt='"._("Department")."'>", "attach" => "style='text-align:center;width:20px;'");
+ $field2 = array("string" => sprintf($linkopen,base64_encode($key),$val), "attach" => "style=''");
+ $field3 = array("string" => " ", "attach" => "style='width:136px;'");
+ $field4 = array("string" => " ", "attach" => "style='width:52px;border-right:0px;text-align:right;'");
$divlist->AddEntry(array($field1,$field2,$field3,$field4));
}
}else{
$desc = " - [ ".$val['description'][0]." ]";
}
- $field1 = array("string" => "<img src='images/list_ogroup.png' alt='"._("Object group")."' ".$title.">","attach"=>"style='text-align:center;width:20px;'");
- $field2 = array("string" => sprintf($editlink,$key,($val['cn']['0'].$desc)),"attach"=>$title);
- $field3 = array("string" => $this->convert_list($val)." ".$mail);
- $field4 = array("string" => preg_replace("/%KEY%/", $key, $actions),"attach"=>"style='text-align:right;border:none'");
+ $field1 = array("string" => "<img src='images/list_ogroup.png' alt='"._("Object group")."' ".$title.">", "attach" => "style='text-align:center;width:20px;'");
+ $field2 = array("string" => sprintf($editlink,$key,($val['cn']['0'].$desc)), "attach" => "style='' ".$title);
+ $field3 = array("string" => $this->convert_list($val)." ".$mail, "attach" => "style='width:136px;'");
+ $field4 = array("string" => preg_replace("/%KEY%/", $key, $actions), "attach" => "style='width:52px;border-right:0px;text-align:right;'");
$divlist->AddEntry(array($field1,$field2,$field3,$field4));
}
diff --git a/plugins/admin/systems/class_systemManagement.inc b/plugins/admin/systems/class_systemManagement.inc
index 968df5ed3378dfb23d7d77c4a6c6d40067a0b874..6dee85647a5d803bf68270f9b32616bef4af0368 100644 (file)
$divlist = new divlist("systemstab");
$divlist->SetHeader(array(
- array("string" => " "),
- array("string" => _("System")." / "._("Department")),
- array("string" => _("Actions"), "attach" => "style='border:none'" )));
-
+ array("string" => " ", "attach" => "style='text-align:center;width:20px;'"),
+ array("string" => _("System")." / "._("Department"), "attach" => "style=''"),
+ array("string" => _("Actions"), "attach" => "style='width:52px;border-right:0px;text-align:right;'" )));
$divlist->SetSummary(_("This table displays all systems, in the selected tree."));
$divlist->SetEntriesPerPage(0);
}
}
- $field1 = array("string" => "<img src='images/".$non_empty."folder.png' alt='department'>","attach"=>"style='width:20px;text-align:center;'");
- $field2 = array("string" => sprintf($linkopen,base64_encode($key),$val));
- $field3 = array("string" => " ", "attach" => "style='border:none;width:48px;text-align:right;'");
+ $field1 = array("string" => "<img src='images/".$non_empty."folder.png' alt='department'>", "attach" => "style='text-align:center;width:20px;'");
+ $field2 = array("string" => sprintf($linkopen,base64_encode($key),$val), "attach" => "style=''");
+ $field3 = array("string" => " ", "attach" => "style='width:52px;border-right:0px;text-align:right;'");
$divlist->AddEntry(array($field1,$field2,$field3));
}
$img=$this->convert_list($val);
- $field1 = array("string" => sprintf($img['img'],$val['dn']),"attach"=>"style='width:20px;text-align:center;'");
- $field2 = array("string" => sprintf($editlink,$key,$display),"attach"=>"title='".$val['dn']."'");
- $field3 = array("string" => preg_replace("/%KEY%/", "$key", $action2.$action),"attach" => "style='border:none; text-align:right;width:48px'");
+ $field1 = array("string" => sprintf($img['img'],$val['dn']), "attach" => "style='text-align:center;width:20px;'");
+ $field2 = array("string" => sprintf($editlink,$key,$display), "attach" => "style='' title='".$val['dn']."'");
+ $field3 = array("string" => preg_replace("/%KEY%/", "$key", $action2.$action), "attach" => "style='width:52px;border-right:0px;text-align:right;'");
$divlist->AddEntry( array($field1,$field2,$field3));
}
diff --git a/plugins/admin/users/class_userManagement.inc b/plugins/admin/users/class_userManagement.inc
index 1b81ca4dbbbb92b9e90c39e3b69ec6fdb4532420..8641ae802615aab89ff7fb8a499c4ff47421a0c1 100644 (file)
$divlist = new divlist("userstab");
$divlist->SetHeader(array(
- array("string" => " "),
- array("string" => _("Username")." / "._("Department")),
- array("string" => _("Properties")),
- array("string" => _("Actions"), "attach" => "style='border:none'" )));
+ array("string" => " ", "attach" => "style='text-align:center;width:20px;'"),
+ array("string" => _("Username")." / "._("Department"), "attach" => "style=''"),
+ array("string" => _("Properties"), "attach" => "style='width:136px;'"),
+ array("string" => _("Actions"), "attach" => "style='width:52px;border-right:0px;text-align:right;'")));
$divlist->SetSummary(_("This table displays all users, in the selected tree."));
}
}
- $field1 = array("string" => "<img src='images/".$non_empty."folder.png' alt='department'>","attach"=>"style='width:20px;text-align:center;'");
- $field2 = array("string" => sprintf($linkopen,base64_encode($key),$val));
- $field3 = array("string" => " ");
- $field4 = array("string" => " ", "attach" => "style='width:48px;border:none'");
+ $field1 = array("string" => "<img src='images/".$non_empty."folder.png' alt='department'>", "attach" => "style='text-align:center;width:20px;'");
+ $field2 = array("string" => sprintf($linkopen,base64_encode($key),$val), "attach" => "style=''");
+ $field3 = array("string" => " ", "attach" => "style='width:136px;'");
+ $field4 = array("string" => " ", "attach" => "style='width:52px;border-right:0px;text-align:right;'");
$divlist->AddEntry(array($field1,$field2,$field3,$field4));
}
/* Create each field */
- $field1 = array("string" => sprintf($tpl,$val['dn']),"attach"=>"style='width:20px;text-align:center;'");
- $field2 = array("string" => sprintf($editlink,$key,$display).$ip_port,"attach"=>"title='".$val['dn']."'");
+ $field1 = array("string" => sprintf($tpl,$val['dn']), "attach" => "style='text-align:center;width:20px;'");
+ $field2 = array("string" => sprintf($editlink,$key,$display).$ip_port, "attach" => "style='' title='".$val['dn']."'");
$field3 = array("string" => $usrimg2." ".$posix." ".$enviro." ".$maila." ".$fonac." ".$faxac." ".$samba." ".$s_img_create_from_template, "attach" => "style='width:136px;'");
- $field4 = array("string" => preg_replace("/%KEY%/", "$key", $action),"attach" => "style='border:none;text-align:right;width:48px'");
+ $field4 = array("string" => preg_replace("/%KEY%/", "$key", $action),"attach" => "style='width:52px;border-right:0px;text-align:right;'");
$add = array($field1,$field2,$field3,$field4);
diff --git a/plugins/gofax/blocklists/class_blocklistManagement.inc b/plugins/gofax/blocklists/class_blocklistManagement.inc
index c36d32a3a0e910115ccc9804cb499c52548cfe00..b154c680763d075c7e20f6b8eda239b11da2bed3 100644 (file)
$divlist = new divlist("faxtabs");
$divlist->SetHeader(array(
- array("string" => " "),
- array("string" => _("Blocklist name")." / "._("Department")),
- array("string" => _("Actions"), "attach" => "style='border:none'" )));
+ array("string" => " ", "attach" => "style='text-align:center;width:20px;'"),
+ array("string" => _("Blocklist name")." / "._("Department"), "attach" => "style=''"),
+ array("string" => _("Actions"), "attach" => "style='width:52px;border-right:0px;text-align:right;'" )));
$divlist->SetSummary(_("This table displays faxblocklists for the selected tree."));
}
}
- $field1 = array("string" => "<img src='images/".$non_empty."folder.png' alt='department'>","attach"=>"style='text-align:center;width:20px;'");
- $field2 = array("string" => sprintf($linkopen,base64_encode($key),$val));
- $field3 = array("string" => " ", "attach" => "style='border:none;width:48px;'");
+ $field1 = array("string" => "<img src='images/".$non_empty."folder.png' alt='department'>", "attach" => "style='text-align:center;width:20px;'");
+ $field2 = array("string" => sprintf($linkopen,base64_encode($key),$val), "attach" => "style=''");
+ $field3 = array("string" => " ", "attach" => "style='width:52px;border-right:0px;text-align:right;'");
$divlist->AddEntry(array($field1,$field2,$field3));
}
foreach($this->blocklists as $key => $val){
// Generate Array to Add
$display= "[".$val["cn"][0]."]";
- $field1 = array("string" => sprintf($blockimg,$val['dn']),"attach"=>"style='width:20px;text-align:center;'");
- $field2 = array("string" => sprintf($editlink,$key,$display),"attach"=>"title='".$val['dn']."'");
- $field3 = array("string" => preg_replace("/%KEY%/", "$key", $action),"attach" => "style='border:none; text-align:right;width:48px'");
+ $field1 = array("string" => sprintf($blockimg,$val['dn']), "attach" => "style='text-align:center;width:20px;'");
+ $field2 = array("string" => sprintf($editlink,$key,$display), "attach" => "style='' title='".$val['dn']."'");
+ $field3 = array("string" => preg_replace("/%KEY%/", "$key", $action), "attach" => "style='width:52px;border-right:0px;text-align:right;'");
$divlist->AddEntry( array($field1,$field2,$field3));
}
diff --git a/plugins/gofon/conference/class_phoneConferenceManagment.inc b/plugins/gofon/conference/class_phoneConferenceManagment.inc
index 8e61a5e130685218d7fc91e03e7c1e85ccbe7a35..3e5814a845b2dabf4a7d7d1058c3a69d4123fa79 100644 (file)
$divlist->SetSummary(_("This table displays all available conference rooms."));
$divlist->SetEntriesPerPage(0);
$divlist->SetHeader(array(
- array("string" => " "),
- array("string" =>_("Name - Number")),
- array("string" => _("Owner")),
- array("string" => _("PIN")),
- array("string" =>_("Actions"), "attach" => "style='text-align:left;border:none'")));
+ array("string" => " ", "attach" => "style='text-align:center;width:20px;'"),
+ array("string" =>_("Name - Number"), "attach" => "style=''"),
+ array("string" => _("Owner"), "attach" => "style='width:200px;'"),
+ array("string" => _("PIN"), "attach" => "style='width:50px;'"),
+ array("string" =>_("Actions"), "attach" => "style='width:52px;border-right:0px;text-align:right;'")));
/* Insert departments in divlist*/
foreach($this->departments as $key=> $val){
}
/* Prepare and insert fields*/
- $a_field1 = array("string" => "<img src='images/".$non_empty."folder.png' alt='department'>","attach"=>"style='text-align:center;width:20px;'");
- $a_field2 = array("string" => sprintf($linkopen,base64_encode($key),$val));
- $a_field3 = array("string" => " ");
- $a_field4 = array("string" => " ");
- $a_field5 = array("string" => " ", "attach" => "style='text-align:right;border:none;width:48px;'");
+ $a_field1 = array("string" => "<img src='images/".$non_empty."folder.png' alt='department'>", "attach" => "style='text-align:center;width:20px;'");
+ $a_field2 = array("string" => sprintf($linkopen,base64_encode($key),$val), "attach" => "style=''");
+ $a_field3 = array("string" => " ", "attach" => "style='width:200px;'");
+ $a_field4 = array("string" => " ", "attach" => "style='width:50px;'");
+ $a_field5 = array("string" => " ", "attach" => "style='width:52px;border-right:0px;text-align:right;'");
/* Add entries */
$divlist->AddEntry(array($a_field1,$a_field2,$a_field3,$a_field4,$a_field5));
$data = $ldap->fetch($ldap->cat($conference['goFonConferenceOwner'][0]));
$cn = $data['cn'][0];
- $a_field1 = array("string"=>sprintf($userimg,_("Conference")),"attach"=>"style='text-align:center;width:20px;'");
+ $a_field1 = array("string"=>sprintf($userimg,_("Conference")), "attach" => "style='text-align:center;width:20px;'");
$acl= get_permissions ($conference['dn'], $this->ui->subtreeACL);
$this->acl = get_module_permission($acl, "goFonConference", $conference['dn']);
if(($this->ui->dn==$conference['goFonConferenceOwner'][0])&&(chkacl($this->acl,"goFonConferenceOwner")=="")){
- $a_field2 = array("string"=>sprintf($editlink,$conferencekey,$conference['cn'][0].$number));
+ $a_field2 = array("string"=>sprintf($editlink,$conferencekey,$conference['cn'][0].$number), "attach" => "style=''");
}else{
- $a_field2 = array("string"=>$conference['cn'][0].$number);
+ $a_field2 = array("string"=>$conference['cn'][0].$number, "attach" => "style=''");
}
- $a_field3 = array("string"=> $cn);
- $a_field4 = array("string"=> $pin);
+ $a_field3 = array("string"=> $cn, "attach" => "style='width:200px;'");
+ $a_field4 = array("string"=> $pin, "attach" => "style='width:50px;'");
if(($this->ui->dn==$conference['goFonConferenceOwner'][0])&&(chkacl($this->acl,"goFonConferenceOwner")=="")){
- $a_field5 = array("string"=>preg_replace("/%KEY%/",$conferencekey,$actions), "attach" => "style='text-align: right;border:none'");
+ $a_field5 = array("string"=>preg_replace("/%KEY%/",$conferencekey,$actions), "attach" => "style='width:52px;border-right:0px;text-align:right;'");
}elseif(chkacl($this->acl,"goFonConferenceOwner")==""){
- $a_field5 = array("string"=>preg_replace("/%KEY%/",$conferencekey,$actions2), "attach" => "style='text-align: right;border:none'");
+ $a_field5 = array("string"=>preg_replace("/%KEY%/",$conferencekey,$actions2), "attach" => "style='width:52px;border-right:0px;text-align:right;'");
}else{
- $a_field5 = array("string"=>" ", "attach" => "style='text-align:right;border:none;width:48px;'");
+ $a_field5 = array("string"=>" ", "attach" => "style='width:52px;border-right:0px;text-align:right;'");
}
$divlist->AddEntry(array($a_field1,$a_field2,$a_field3,$a_field4,$a_field5));
diff --git a/plugins/gofon/macro/class_gofonMacroManagement.inc b/plugins/gofon/macro/class_gofonMacroManagement.inc
index 233529168be988d9f6e3a1bec6c4484a632efd71..b0a3713fbb06281b2c659433873b41859df1fe57 100755 (executable)
$divlist = new divlist("macrotabs");
$divlist->SetHeader(array(
- array("string" => " "),
- array("string" => _("Username")." / "._("Department")),
- array("string" => _("Visible"), "attach" => "style='width:30px;'"),
- array("string" => _("Actions"), "attach" => "style='border:none'" )));
+ array("string" => " ", "attach" => "style='text-align:center;width:20px;'"),
+ array("string" => _("Username")." / "._("Department"), "attach" => "style=''"),
+ array("string" => _("Visible"), "attach" => "style='width:50px;'"),
+ array("string" => _("Actions"), "attach" => "style='width:52px;border-right:0px;text-align:right;'" )));
$divlist->SetSummary(_("This table displays all phone macros, in the selected tree."));
}
}
- $field1 = array("string" => "<img src='images/".$non_empty."folder.png' alt='department'>","attach"=>"style='text-align:center;width:20px;'");
- $field2 = array("string" => sprintf($linkopen,base64_encode($key),$val));
- $field3 = array("string" => " ");
- $field4 = array("string" => " ", "attach"=>"style='border:none;text-align:right;width:48px;'");
+ $field1 = array("string" => "<img src='images/".$non_empty."folder.png' alt='department'>", "attach" => "style='text-align:center;width:20px;'");
+ $field2 = array("string" => sprintf($linkopen,base64_encode($key),$val), "attach" => "style=''");
+ $field3 = array("string" => " ", "attach" => "style='width:50px;'");
+ $field4 = array("string" => " ", "attach" => "style='width:52px;border-right:0px;text-align:right;'");
$divlist->AddEntry(array($field1,$field2,$field3,$field4));
}
$pic1 = $invisible;
}
- $field1 = array("string" => sprintf($macroimg,$val['dn']),"attach"=>"style='width:20px;text-align:center;'");
- $field2 = array("string" => sprintf($editlink,$key,$display),"attach"=>"title='".$val['dn']."'");
- $field3 = array("string" => $pic1, "attach" => "style='width:20px;text-align:right;'");
- $field4 = array("string" => preg_replace("/%KEY%/", "$key", $action),"attach" => "style='border:none;text-align:right;width:48px;'");
+ $field1 = array("string" => sprintf($macroimg,$val['dn']), "attach" => "style='text-align:center;width:20px;'");
+ $field2 = array("string" => sprintf($editlink,$key,$display), "attach" => "style='' title='".$val['dn']."'");
+ $field3 = array("string" => $pic1, "attach" => "style='width:50px;'");
+ $field4 = array("string" => preg_replace("/%KEY%/", "$key", $action), "attach" => "style='width:52px;border-right:0px;text-align:right;'");
$divlist->AddEntry(array($field1,$field2,$field3,$field4));
}