This commit has been accessed 723 times via Git panel.
commit 26a8f184ad1fcf85a7ecf239e40313fcc6ae8470
tree b408c23d2c6566e63ef73c78a0738d5a105863bd
parent 459aa7c70897784f268c4f779b07a2db3247c79a
author Engels Antonio <engels@majcms.org> 1348329905 +0800
committer Engels Antonio <engels@majcms.org> 1348329905 +0800
Fix errors caused by HTML5 DOCTYPE
diff --git a/css.php b/css.php
index 51dee72..bc9eac2 100644
--- a/css.php
+++ b/css.php
@@ -17,18 +17,21 @@ a,a:link,a:visited,a:hover,a:active {
}
.input,.button {
+ font-family: arial,helvetica,sans-serif;
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 100%;
- font-family: arial,helvetica,sans-serif;
+ box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ -webkit-box-sizing: border-box;
}
.input {
+ box-shadow: inset 0 0 2px #dedede;
-moz-box-shadow: inset 0 0 2px #dedede;
- -khtml-box-shadow: inset 0 0 2px #dedede;
-webkit-box-shadow: inset 0 0 2px #dedede;
- box-shadow: inset 0 0 2px #dedede;
+ -khtml-box-shadow: inset 0 0 2px #dedede;
}
.input:focus {
@@ -80,19 +83,19 @@ a,a:link,a:visited,a:hover,a:active {
.folders {
border: solid 1px #ccc;
padding: 5px;
+ box-shadow: 0 0 2px #dedede;
-moz-box-shadow: 0 0 2px #dedede;
- -khtml-box-shadow: 0 0 2px #dedede;
-webkit-box-shadow: 0 0 2px #dedede;
- box-shadow: 0 0 2px #dedede;
+ -khtml-box-shadow: 0 0 2px #dedede;
}
.main {
border: solid 1px #ccc;
padding: 2px;
+ box-shadow: 0 0 2px #dedede;
-moz-box-shadow: 0 0 2px #dedede;
- -khtml-box-shadow: 0 0 2px #dedede;
-webkit-box-shadow: 0 0 2px #dedede;
- box-shadow: 0 0 2px #dedede;
+ -khtml-box-shadow: 0 0 2px #dedede;
}
.message {
diff --git a/filedrop.php b/filedrop.php
index e7f64ed..aea3d9a 100644
--- a/filedrop.php
+++ b/filedrop.php
@@ -100,11 +100,9 @@ if (file_exists("attach/i/$fileUsr/$filedrop_box")) {
echo "</table>";
+ echo "<script>parent.top.document.getElementById('filedrop').style.display = 'block';</script>";
echo "<script>parent.top.document.getElementById('filedrop').style.height = document.body.parentNode.clientHeight + 'px';</script>";
}
- else {
- echo "<script>parent.top.document.getElementById('filedrop').style.height = 0;</script>";
- }
}
$_SESSION['clean_up_i'] = $filedrop_box;
diff --git a/post.php b/post.php
index 7206969..d2b111b 100644
--- a/post.php
+++ b/post.php
@@ -96,4 +96,4 @@ if (isset($_POST['new']) and !empty($_POST['new']) and is_numeric($_POST['new'])
</div>
-<iframe id="filedrop" name="filedrop" src="filedrop.php" frameborder="0" scrolling="0" width="100%" height="0"></iframe>
+<iframe style="display: none;" id="filedrop" name="filedrop" src="filedrop.php" frameborder="0" scrolling="0" width="100%" height="0"></iframe>
diff --git a/read.php b/read.php
index a30a630..1791571 100644
--- a/read.php
+++ b/read.php
@@ -491,7 +491,7 @@ if (isset($_POST['msg']) and !empty($_POST['msg']) and is_numeric($_POST['msg'])
echo "<div class=\"message\" style=\"position: relative;\">";
- echo "<div style=\"position: absolute; top: -15; right: -15;\"><img src=\"images/attach.png\" border=\"0\" width=\"48\" height=\"48\"></div>";
+ echo "<div style=\"position: absolute; top: -15px; right: -15px;\"><img src=\"images/attach.png\" border=\"0\" width=\"48\" height=\"48\"></div>";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\">";
diff --git a/send.php b/send.php
index 745944b..cac817e 100644
--- a/send.php
+++ b/send.php
@@ -307,7 +307,7 @@ else {
</div>
-<iframe id="filedrop" name="filedrop" src="filedrop.php" frameborder="0" scrolling="0" width="100%" height="0"></iframe>
+<iframe style="display: none;" id="filedrop" name="filedrop" src="filedrop.php" frameborder="0" scrolling="0" width="100%" height="0"></iframe>
<?php
tree b408c23d2c6566e63ef73c78a0738d5a105863bd
parent 459aa7c70897784f268c4f779b07a2db3247c79a
author Engels Antonio <engels@majcms.org> 1348329905 +0800
committer Engels Antonio <engels@majcms.org> 1348329905 +0800
Fix errors caused by HTML5 DOCTYPE
diff --git a/css.php b/css.php
index 51dee72..bc9eac2 100644
--- a/css.php
+++ b/css.php
@@ -17,18 +17,21 @@ a,a:link,a:visited,a:hover,a:active {
}
.input,.button {
+ font-family: arial,helvetica,sans-serif;
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 100%;
- font-family: arial,helvetica,sans-serif;
+ box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ -webkit-box-sizing: border-box;
}
.input {
+ box-shadow: inset 0 0 2px #dedede;
-moz-box-shadow: inset 0 0 2px #dedede;
- -khtml-box-shadow: inset 0 0 2px #dedede;
-webkit-box-shadow: inset 0 0 2px #dedede;
- box-shadow: inset 0 0 2px #dedede;
+ -khtml-box-shadow: inset 0 0 2px #dedede;
}
.input:focus {
@@ -80,19 +83,19 @@ a,a:link,a:visited,a:hover,a:active {
.folders {
border: solid 1px #ccc;
padding: 5px;
+ box-shadow: 0 0 2px #dedede;
-moz-box-shadow: 0 0 2px #dedede;
- -khtml-box-shadow: 0 0 2px #dedede;
-webkit-box-shadow: 0 0 2px #dedede;
- box-shadow: 0 0 2px #dedede;
+ -khtml-box-shadow: 0 0 2px #dedede;
}
.main {
border: solid 1px #ccc;
padding: 2px;
+ box-shadow: 0 0 2px #dedede;
-moz-box-shadow: 0 0 2px #dedede;
- -khtml-box-shadow: 0 0 2px #dedede;
-webkit-box-shadow: 0 0 2px #dedede;
- box-shadow: 0 0 2px #dedede;
+ -khtml-box-shadow: 0 0 2px #dedede;
}
.message {
diff --git a/filedrop.php b/filedrop.php
index e7f64ed..aea3d9a 100644
--- a/filedrop.php
+++ b/filedrop.php
@@ -100,11 +100,9 @@ if (file_exists("attach/i/$fileUsr/$filedrop_box")) {
echo "</table>";
+ echo "<script>parent.top.document.getElementById('filedrop').style.display = 'block';</script>";
echo "<script>parent.top.document.getElementById('filedrop').style.height = document.body.parentNode.clientHeight + 'px';</script>";
}
- else {
- echo "<script>parent.top.document.getElementById('filedrop').style.height = 0;</script>";
- }
}
$_SESSION['clean_up_i'] = $filedrop_box;
diff --git a/post.php b/post.php
index 7206969..d2b111b 100644
--- a/post.php
+++ b/post.php
@@ -96,4 +96,4 @@ if (isset($_POST['new']) and !empty($_POST['new']) and is_numeric($_POST['new'])
</div>
-<iframe id="filedrop" name="filedrop" src="filedrop.php" frameborder="0" scrolling="0" width="100%" height="0"></iframe>
+<iframe style="display: none;" id="filedrop" name="filedrop" src="filedrop.php" frameborder="0" scrolling="0" width="100%" height="0"></iframe>
diff --git a/read.php b/read.php
index a30a630..1791571 100644
--- a/read.php
+++ b/read.php
@@ -491,7 +491,7 @@ if (isset($_POST['msg']) and !empty($_POST['msg']) and is_numeric($_POST['msg'])
echo "<div class=\"message\" style=\"position: relative;\">";
- echo "<div style=\"position: absolute; top: -15; right: -15;\"><img src=\"images/attach.png\" border=\"0\" width=\"48\" height=\"48\"></div>";
+ echo "<div style=\"position: absolute; top: -15px; right: -15px;\"><img src=\"images/attach.png\" border=\"0\" width=\"48\" height=\"48\"></div>";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\">";
diff --git a/send.php b/send.php
index 745944b..cac817e 100644
--- a/send.php
+++ b/send.php
@@ -307,7 +307,7 @@ else {
</div>
-<iframe id="filedrop" name="filedrop" src="filedrop.php" frameborder="0" scrolling="0" width="100%" height="0"></iframe>
+<iframe style="display: none;" id="filedrop" name="filedrop" src="filedrop.php" frameborder="0" scrolling="0" width="100%" height="0"></iframe>
<?php