Skip to content
This repository has been archived by the owner on May 27, 2023. It is now read-only.

Commit

Permalink
sharper border-radius
Browse files Browse the repository at this point in the history
  • Loading branch information
Spiros Ioannou committed May 1, 2012
1 parent be62216 commit f3eff10
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 35 deletions.
24 changes: 0 additions & 24 deletions conf.php.sample

This file was deleted.

20 changes: 9 additions & 11 deletions css/itdb.css
Original file line number Diff line number Diff line change
Expand Up @@ -683,9 +683,9 @@ a.ahdr:hover {
-webkit-box-shadow:3px 3px 5px #303F7E;
box-shadow:3px 3px 5px #303F7E;

-moz-border-radius: 0px 0px 15px 15px;
-webkit-border-radius: 0px 0px 15px 15px;
border-radius: 0px 0px 15px 15px;
-moz-border-radius: 0px 0px 10px 10px;
-webkit-border-radius: 0px 0px 10px 10px;
border-radius: 0px 0px 10px 10px;
margin-top:15px;

}
Expand All @@ -707,9 +707,9 @@ a.ahdr:hover {
margin-top:-15px;
margin-bottom:5px;

border-radius:15px 15px 0px 0px;
-moz-border-radius:15px 15px 0px 0px;
-webkit-border-radius:15px 15px 0px 0px;
border-radius:10px 10px 0px 0px;
-moz-border-radius:10px 10px 0px 0px;
-webkit-border-radius:10px 10px 0px 0px;
}


Expand All @@ -735,11 +735,9 @@ a.ahdr:hover {
-webkit-box-shadow:3px 3px 5px #303F7E;
box-shadow:3px 3px 5px #303F7E;

-moz-border-radius: 15px;
-webkit-border-radius: 15px;
border-radius: 15px 15px 15px 15px;


-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px 10px 10px 10px;
}
}

Expand Down
18 changes: 18 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ function getmicrotime() {
"<script language='javascript' type='text/javascript' src='js/jquery.validate.js'></script>\n".
"<script language='javascript' type='text/javascript' src='js/jquery.validate.front.js'></script>\n";
break;
case "listusers":
$title="List Users";
break;
case "listracks":
$title="List Racks";
break;
Expand All @@ -112,13 +115,23 @@ function getmicrotime() {
case "settings":
$title="Settings";
break;

case "edituser":
$stitle="User";
$title="Edit User";
$head.="<script language='javascript' type='text/javascript' src='js/jquery.metadata.js'></script>\n".
"<script language='javascript' type='text/javascript' src='js/jquery.validate.js'></script>\n".
"<script language='javascript' type='text/javascript' src='js/jquery.validate.front.js'></script>\n";
break;

case "editrack":
$stitle="Rack";
$title="Edit Rack";
$head.="<script language='javascript' type='text/javascript' src='js/jquery.metadata.js'></script>\n".
"<script language='javascript' type='text/javascript' src='js/jquery.validate.js'></script>\n".
"<script language='javascript' type='text/javascript' src='js/jquery.validate.front.js'></script>\n";
break;

case "edititypes":
$title="Edit Item Types";
break;
Expand Down Expand Up @@ -272,9 +285,14 @@ function getmicrotime() {
<tr>
<td><a style="<?php echo $style_listlocations; ?>" class='ahdr' href="<?php echo $scriptname?>?action=listlocations" ><?php te("Locations");?></a></td>
<td><a style="<?php echo $style_editlocation; ?>" class='ahdr' href="<?php echo $scriptname?>?action=editlocation&amp;id=new" ><img alt="+" src='images/add.png'></a></td>
</tr>

<tr>
<td><a style="<?php echo $style_listusers; ?>" class='ahdr' href="<?php echo $scriptname?>?action=listusers" ><?php te("Users");?></a></td>
<td><a style="<?php echo $style_edituser; ?>" class='ahdr' href="<?php echo $scriptname?>?action=edituser&amp;id=new" ><img alt="+" src='images/add.png'></a></td>
</tr>


<tr>
<td><a style="<?php echo $style_listracks; ?>" class='ahdr' href="<?php echo $scriptname?>?action=listracks" ><?php te("Racks");?></a></td>
<td><a style="<?php echo $style_editrack; ?>" class='ahdr' href="<?php echo $scriptname?>?action=editrack&amp;id=new" ><img alt="+" src='images/add.png'></a></td>
Expand Down
17 changes: 17 additions & 0 deletions init.php
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,24 @@ function delrack($rackid,$dbh) {

}

function deluser($userid,$dbh) {
$sql="UPDATE items set userid=1 where userid='$userid'";
$sth=db_exec($dbh,$sql);

$sql="DELETE from users where id='$userid'";
$sth=db_exec($dbh,$sql);

}

function countitemsofuser($userid) {
global $dbh;

$sql="SELECT count(id) count from items where userid='$userid'";
$sth=db_execute($dbh,$sql);
$r=$sth->fetch(PDO::FETCH_ASSOC);
$sth->closeCursor();
return $r['count'];
}

function showfiles($f,$class="fileslist",$wantdel=1,$divtitle='') {
// f: array with data from "files" table (from fetchall)
Expand Down

0 comments on commit f3eff10

Please sign in to comment.