Skip to content

Commit

Permalink
Rewrote autocomplete portion of search functions. closes opendcim#57
Browse files Browse the repository at this point in the history
  • Loading branch information
wilpig committed Sep 18, 2012
1 parent 3e63fe3 commit e31b8c5
Show file tree
Hide file tree
Showing 35 changed files with 1,986 additions and 3,573 deletions.
2 changes: 2 additions & 0 deletions cabnavigator.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,13 +308,15 @@
<title>Facilities Cabinet Maintenance</title>
<link rel="stylesheet" href="css/inventory.php" type="text/css">
<link rel="stylesheet" href="css/print.css" type="text/css" media="print">
<link rel="stylesheet" href="css/jquery-ui-1.8.18.custom.css" type="text/css">
<!--[if lt IE 9]>
<link rel="stylesheet" href="css/ie.css" type="text/css" />
<![endif]-->

<?php

echo $head,' <script type="text/javascript" src="scripts/jquery.min.js"></script>
<script type="text/javascript" src="scripts/jquery-ui-1.8.18.custom.min.js"></script>
<script type="text/javascript">
var form=$("<form>").attr({ method: "post", action: "cabnavigator.php" });
$("<input>").attr({ type: "hidden", name: "cabinetid", value: "',$cab->CabinetID,'"}).appendTo(form);
Expand Down
2 changes: 2 additions & 0 deletions conflicts.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,13 @@

<title>openDCIM Data Center Inventory</title>
<link rel="stylesheet" href="css/inventory.php" type="text/css">
<link rel="stylesheet" href="css/jquery-ui-1.8.18.custom.css" type="text/css">
<!--[if lt IE 9]>
<link rel="stylesheet" href="css/ie.css" type="text/css" />
<![endif]-->

<script type="text/javascript" src="scripts/jquery.min.js"></script>
<script type="text/javascript" src="scripts/jquery-ui-1.8.18.custom.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.power > div:first-child ~ div, .network > div:first-child ~ div').each(function(){
Expand Down
2 changes: 2 additions & 0 deletions contacts.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@
<title>openDCIM Data Center Inventory</title>
<link rel="stylesheet" href="css/inventory.php" type="text/css">
<link rel="stylesheet" href="css/validationEngine.jquery.css" type="text/css">
<link rel="stylesheet" href="css/jquery-ui-1.8.18.custom.css" type="text/css">
<!--[if lt IE 9]>
<link rel="stylesheet" href="css/ie.css" type="text/css">
<![endif]-->
<script type="text/javascript" src="scripts/jquery.min.js"></script>
<script type="text/javascript" src="scripts/jquery-ui-1.8.18.custom.min.js"></script>
<script type="text/javascript" src="scripts/jquery.validationEngine-en.js"></script>
<script type="text/javascript" src="scripts/jquery.validationEngine.js"></script>

Expand Down
19 changes: 19 additions & 0 deletions css/inventory.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
border-style: solid none solid solid;
border-width: 1px 0 1px 1px;
border-color: black;
resize: none;
}
#sidebar input + button, #sidebar .text-core + button, button.iebug, #sidebar textarea + button {
height: 27px;
Expand All @@ -146,13 +147,31 @@
-webkit-border-radius: 0px;
border-radius: 0px;
}
#sidebar input.search { height: 15px; padding: 5px; width: 141px; border: 1px solid black; border-right: 0; vertical-align: top;}
#sidebar input + button img, #sidebar .text-core + button img, #sidebar textarea + button img {height: 27px;}
#sidebar div.text-core {width: 150px; height: 27px;}
#sidebar div.text-core textarea{ width: 151px; height: 27px;}

.text-arrow {
-moz-box-sizing: border-box;
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAOAQMAAADHWqTrAAAAA3NCSVQICAjb4U/gAAAABlBMVEX///8yXJnt8Ns4AAAACXBIWXMAAAsSAAALEgHS3X78AAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1MzmNZGAwAAABpJREFUCJljYEAF/xsY6hkY7BgYZBgYOFBkADkdAmFDagYFAAAAAElFTkSuQmCC") no-repeat scroll 50% 50% transparent;
cursor: pointer;
height: 22px;
position: absolute;
right: 0;
top: 0;
width: 22px;
z-index: 2;
}
.text-core { display: inline-block; }

.langselect { position: absolute; left: -1000px; }

.ui-autocomplete { max-height: 100px; overflow-y: auto; overflow-x: hidden; padding-right: 20px;}
* html .ui-autocomplete {height: 100px;}
.ui-menu .ui-menu-item a { line-height: 1 !important; white-space: nowrap !important; overflow: hidden;}


/* Mapmaker */
.mapmaker > div{width: 77%;display: inline-block;vertical-align: middle;}
.mapmaker > div + div {width: 19%;}
Expand Down
1 change: 1 addition & 0 deletions css/jquery-ui.css
2 changes: 2 additions & 0 deletions datacenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@
<title>openDCIM Data Center Inventory</title>

<link rel="stylesheet" href="css/inventory.php" type="text/css">
<link rel="stylesheet" href="css/jquery-ui-1.8.18.custom.css" type="text/css">
<link rel="stylesheet" href="css/validationEngine.jquery.css" type="text/css">
<!--[if lt IE 9]>
<link rel="stylesheet" href="css/ie.css" type="text/css">
<![endif]-->
<script type="text/javascript" src="scripts/jquery.min.js"></script>
<script type="text/javascript" src="scripts/jquery-ui-1.8.18.custom.min.js"></script>
<script type="text/javascript" src="scripts/jquery.validationEngine-en.js"></script>
<script type="text/javascript" src="scripts/jquery.validationEngine.js"></script>

Expand Down
4 changes: 3 additions & 1 deletion dc_dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,17 @@ function uselessie(){
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>openDCIM Data Center Information Management</title>
<link rel="stylesheet" href="css/inventory.php" type="text/css">
<link rel="stylesheet" href="css/jquery-ui-1.8.18.custom.css" type="text/css">
<!--[if lte IE 8]>
<link rel="stylesheet" href="css/ie.css" type="text/css">
<?php if(isset($ie8fix)){print $ie8fix;} ?>
<script src="scripts/excanvas.js"></script>
<![endif]-->
<?php if(isset($screenadjustment)){print $screenadjustment;} ?>
<link rel="stylesheet" href="css/inventory.php" type="text/css">
<?php print $dc->DrawCanvas($facDB);?>
<script type="text/javascript" src="scripts/jquery.min.js"></script>
<script type="text/javascript" src="scripts/jquery-ui-1.8.18.custom.min.js"></script>
</head>
<body onload="loadCanvas(),uselessie()">
<div id="header"></div>
Expand Down
4 changes: 3 additions & 1 deletion dc_stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,17 @@ function uselessie(){
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>openDCIM Data Center Information Management</title>
<link rel="stylesheet" href="css/inventory.php" type="text/css">
<link rel="stylesheet" href="css/jquery-ui-1.8.18.custom.css" type="text/css">
<!--[if lte IE 8]>
<link rel="stylesheet" href="css/ie.css" type="text/css">
<?php if(isset($ie8fix)){print $ie8fix;} ?>
<script src="scripts/excanvas.js"></script>
<![endif]-->
<?php if(isset($screenadjustment)){print $screenadjustment;} ?>
<link rel="stylesheet" href="css/inventory.php" type="text/css">
<?php print $dc->DrawCanvas($facDB);?>
<script type="text/javascript" src="scripts/jquery.min.js"></script>
<script type="text/javascript" src="scripts/jquery-ui-1.8.18.custom.min.js"></script>
</head>
<body onload="loadCanvas(),uselessie()">
<div id="header"></div>
Expand Down
2 changes: 2 additions & 0 deletions departments.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,14 @@

<title>openDCIM Department Information</title>
<link rel="stylesheet" href="css/inventory.php" type="text/css">
<link rel="stylesheet" href="css/jquery-ui-1.8.18.custom.css" type="text/css">
<link rel="stylesheet" href="css/jquery.miniColors.css" type="text/css">
<!--[if lt IE 9]>
<link rel="stylesheet" href="css/ie.css" type="text/css">
<![endif]-->

<script type="text/javascript" src="scripts/jquery.min.js"></script>
<script type="text/javascript" src="scripts/jquery-ui-1.8.18.custom.min.js"></script>
<script type="text/javascript" src="scripts/jquery.miniColors.js"></script>
<script type="text/javascript">
function showgroup(obj){
Expand Down
2 changes: 2 additions & 0 deletions device_manufacturers.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@

<title>openDCIM Device Class Templates</title>
<link rel="stylesheet" href="css/inventory.php" type="text/css">
<link rel="stylesheet" href="css/jquery-ui-1.8.18.custom.css" type="text/css">
<link rel="stylesheet" href="css/validationEngine.jquery.css" type="text/css">
<!--[if lt IE 9]>
<link rel="stylesheet" href="css/ie.css" type="text/css">
<![endif]-->
<script type="text/javascript" src="scripts/jquery.min.js"></script>
<script type="text/javascript" src="scripts/jquery-ui-1.8.18.custom.min.js"></script>
<script type="text/javascript" src="scripts/jquery.validationEngine-en.js"></script>
<script type="text/javascript" src="scripts/jquery.validationEngine.js"></script>

Expand Down
4 changes: 3 additions & 1 deletion device_templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
$user->UserID=$_SERVER['REMOTE_USER'];
$user->GetUserRights($facDB);

if(!$user->SiteAdmin){
if(!$user->WriteAccess){
// No soup for you.
header('Location: '.redirect());
exit;
Expand Down Expand Up @@ -49,11 +49,13 @@

<title>openDCIM Device Class Templates</title>
<link rel="stylesheet" href="css/inventory.php" type="text/css">
<link rel="stylesheet" href="css/jquery-ui-1.8.18.custom.css" type="text/css">
<!--[if lt IE 9]>
<link rel="stylesheet" href="css/ie.css" type="text/css">
<![endif]-->

<script type="text/javascript" src="scripts/jquery.min.js"></script>
<script type="text/javascript" src="scripts/jquery-ui-1.8.18.custom.min.js"></script>
</head>
<body>
<div id="header"></div>
Expand Down
2 changes: 2 additions & 0 deletions escalations.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@
<title>openDCIM Data Center Inventory</title>

<link rel="stylesheet" href="css/inventory.php" type="text/css">
<link rel="stylesheet" href="css/jquery-ui-1.8.18.custom.css" type="text/css">
<!--[if lt IE 9]>
<link rel="stylesheet" href="css/ie.css" type="text/css">
<![endif]-->
<script type="text/javascript" src="scripts/jquery.min.js"></script>
<script type="text/javascript" src="scripts/jquery-ui-1.8.18.custom.min.js"></script>
</head>
<body>
<div id="header"></div>
Expand Down
2 changes: 2 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,13 @@

<title>openDCIM Data Center Inventory</title>
<link rel="stylesheet" href="css/inventory.php" type="text/css">
<link rel="stylesheet" href="css/jquery-ui-1.8.18.custom.css" type="text/css">
<!--[if lt IE 9]>
<link rel="stylesheet" href="css/ie.css" type="text/css" />
<![endif]-->

<script type="text/javascript" src="scripts/jquery.min.js"></script>
<script type="text/javascript" src="scripts/jquery-ui-1.8.18.custom.min.js"></script>
</head>
<body>
<div id="header"></div>
Expand Down
Binary file added locale/ca_AD/LC_MESSAGES/openDCIM.mo
Binary file not shown.
Loading

0 comments on commit e31b8c5

Please sign in to comment.