Skip to content
Browse files

sharper border-radius

  • Loading branch information...
1 parent be62216 commit f3eff10fed1c421c6d845246d93a218ce336f34d Spiros Ioannou committed May 1, 2012
Showing with 44 additions and 35 deletions.
  1. +0 −24 conf.php.sample
  2. +9 −11 css/itdb.css
  3. +18 −0 index.php
  4. +17 −0 init.php
View
24 conf.php.sample
@@ -1,24 +0,0 @@
-<?php
-/* To create new interface translations, create new translation files
- * inside the "translations/" directory. The file format is:
- * english word#your translation
- * You must use a UTF-8 capable editor to edit this file
- */
-
-
-/*for debugging translation files. Creates a $lang.missing.txt inside translations/ folder
- * containing (not-unique) missing strings for current language. Use when necessary since it can fill up
- * your disk if left running.
- */
-$trans_showmissing=0;
-
-
-/*************************************************************************/
-/* You don't need to change those */
-/*************************************************************************/
-$dblogsize=1000; /* how many database log entries to keep */
-$uploaddir="$scriptdir/data/files/"; /* how to access uploaded files from filesystem (absolute path, trailing slash)*/
-$uploaddirwww="data/files/"; /* how to access uploaded files from web browser (may be relative)*/
-$dbfile="$scriptdir/data/itdb.db"; /* sqlite db file */
-
-?>
View
20 css/itdb.css
@@ -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;
}
@@ -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;
}
@@ -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;
}
}
View
18 index.php
@@ -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;
@@ -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;
@@ -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>
View
17 init.php
@@ -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)

0 comments on commit f3eff10

Please sign in to comment.
Something went wrong with that request. Please try again.