This commit has been accessed 546 times via Git panel.
commit b341c55bfd4d357455c834f9bc73bea2ad5d023d
tree 62a635cdd1204d108de6d064c3b0221e2cf62c08
parent 9f9801c5ca2468c012a779f7037e46e6270aa152
author Psylocke Antonio <psylocke@majcms.org> 1295227207 +0800
committer Psylocke Antonio <psylocke@majcms.org> 1295227207 +0800
Add title and link back to main entry
Change font size of informational texts
diff --git a/video.php b/video.php
index a609783..d1a3d99 100644
--- a/video.php
+++ b/video.php
@@ -69,7 +69,7 @@ if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST
include("css.php");
- echo "<style> .main, .menu { margin: 2px; border: 1px solid #dedede; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; -khtml-border-radius: 3px; -moz-box-shadow: 0 0 2px #dddddd; -webkit-box-shadow: 0 0 2px #dddddd; -khtml-box-shadow: 0 0 2px #dddddd; box-shadow: 0 0 2px #dddddd; padding: 1px; } .menu { float: left; } </style>";
+ echo "<style> .main, .menu { margin: 2px; border: 1px solid #dedede; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; -khtml-border-radius: 3px; -moz-box-shadow: 0 0 2px #dddddd; -webkit-box-shadow: 0 0 2px #dddddd; -khtml-box-shadow: 0 0 2px #dddddd; box-shadow: 0 0 2px #dddddd; padding: 1px; } .menu { float: left; } .info { font-size: 9px; } </style>";
function format_bytes($bytes) {
if ($bytes < 1024) return $bytes.' B';
@@ -83,7 +83,11 @@ if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST
echo "<title>$title ($maj_s)</title>";
- echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\"><tr><td valign=\"top\">";
+ echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\">";
+
+ echo "<tr><td colspan=\"2\"><div style=\"margin: 5px;\"><a style=\"font-size: 14px;\" href=\".?entry=$maj_d\">$title</a></div></td></tr>";
+
+ echo "<tr><td valign=\"top\">";
echo "<div class=\"main\">";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" bgcolor=\"#ffffff\"><tr bgcolor=\"#ffffff\"><td>";
@@ -219,7 +223,7 @@ if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST
echo "</a>";
echo "</td>";
- echo "<td valign=\"top\"><a href=\"video.php?entry=$maj_d&show=$maj_play\">$maj_play</a>";
+ echo "<td valign=\"top\"><a href=\"video.php?entry=$maj_d&show=$maj_play\">$maj_play</a><font class=\"info\">";
if (file_exists("data/items/$maj_d/media/videos/$maj_play/views.txt")) {
@@ -235,7 +239,7 @@ if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST
}
}
- echo "<font style=\"font-size: 9px;\"><br>";
+ echo "<br>";
if (file_exists("$maj_video.mp4")) {
tree 62a635cdd1204d108de6d064c3b0221e2cf62c08
parent 9f9801c5ca2468c012a779f7037e46e6270aa152
author Psylocke Antonio <psylocke@majcms.org> 1295227207 +0800
committer Psylocke Antonio <psylocke@majcms.org> 1295227207 +0800
Add title and link back to main entry
Change font size of informational texts
diff --git a/video.php b/video.php
index a609783..d1a3d99 100644
--- a/video.php
+++ b/video.php
@@ -69,7 +69,7 @@ if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST
include("css.php");
- echo "<style> .main, .menu { margin: 2px; border: 1px solid #dedede; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; -khtml-border-radius: 3px; -moz-box-shadow: 0 0 2px #dddddd; -webkit-box-shadow: 0 0 2px #dddddd; -khtml-box-shadow: 0 0 2px #dddddd; box-shadow: 0 0 2px #dddddd; padding: 1px; } .menu { float: left; } </style>";
+ echo "<style> .main, .menu { margin: 2px; border: 1px solid #dedede; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; -khtml-border-radius: 3px; -moz-box-shadow: 0 0 2px #dddddd; -webkit-box-shadow: 0 0 2px #dddddd; -khtml-box-shadow: 0 0 2px #dddddd; box-shadow: 0 0 2px #dddddd; padding: 1px; } .menu { float: left; } .info { font-size: 9px; } </style>";
function format_bytes($bytes) {
if ($bytes < 1024) return $bytes.' B';
@@ -83,7 +83,11 @@ if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST
echo "<title>$title ($maj_s)</title>";
- echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\"><tr><td valign=\"top\">";
+ echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\">";
+
+ echo "<tr><td colspan=\"2\"><div style=\"margin: 5px;\"><a style=\"font-size: 14px;\" href=\".?entry=$maj_d\">$title</a></div></td></tr>";
+
+ echo "<tr><td valign=\"top\">";
echo "<div class=\"main\">";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" bgcolor=\"#ffffff\"><tr bgcolor=\"#ffffff\"><td>";
@@ -219,7 +223,7 @@ if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST
echo "</a>";
echo "</td>";
- echo "<td valign=\"top\"><a href=\"video.php?entry=$maj_d&show=$maj_play\">$maj_play</a>";
+ echo "<td valign=\"top\"><a href=\"video.php?entry=$maj_d&show=$maj_play\">$maj_play</a><font class=\"info\">";
if (file_exists("data/items/$maj_d/media/videos/$maj_play/views.txt")) {
@@ -235,7 +239,7 @@ if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST
}
}
- echo "<font style=\"font-size: 9px;\"><br>";
+ echo "<br>";
if (file_exists("$maj_video.mp4")) {