This commit has been accessed 639 times via Git panel.
commit f4d88952290d31f862b468c33b0ad32838959eb6
tree cc68e56e98489461537ebcebc9f3901cbae0fede
parent 554e8fb513483e27040e5647036978997b04f37e
author Engels Antonio <engels@majcms.org> 1343765455 +0800
committer Engels Antonio <engels@majcms.org> 1343765455 +0800
Fix header view toggle
diff --git a/index.php b/index.php
index f745490..d580b1a 100644
--- a/index.php
+++ b/index.php
@@ -53,7 +53,7 @@ if (!$db_query) {
$db_query = mysql_query("create table admins (id varchar(16) not null, pw varchar(64) not null, primary key (id), unique key (id))");
$db_query = mysql_query("create table domains (id varchar(128) not null, pw varchar(64) not null, max int(6) default '0', mode int(1) default '1', primary key (id), unique key (id))");
$db_query = mysql_query("create table users (id varchar(255) not null, pw varchar(64) not null, maildir varchar(255) not null, name varchar(128), domain varchar(128), mode int(1) default '1', quota varchar(16), primary key (id), unique key(id))");
- $db_query = mysql_query("create table aliases (id varchar(255) not null, alias varchar(255) not null, domain varchar(128), mode int(1) default '1', primary key (domain))");
+ $db_query = mysql_query("create table aliases (id varchar(255) not null, alias varchar(255) not null, domain varchar(128), mode int(1) default '1')");
$db_query = mysql_query("insert into admins values('$db_user','$pw_crypt')");
}
@@ -1116,7 +1116,7 @@ if (isset($_SESSION['logged_uid'])) {
echo "<tr>";
echo "<td class=\"label\"><img src=\"images/mail-contacts.png\" border=\"0\" width=\"32\" height=\"32\" onclick=\"document.getElementById('list').style.display='inline';document.getElementById('add').style.display='none'\"></td>";
echo "<td class=\"label\"><img src=\"images/mail-contacts.png\" border=\"0\" width=\"32\" height=\"32\" onclick=\"document.getElementById('list').style.display='none';document.getElementById('add').style.display='inline'\"></td>";
-echo "</tr>";
+ echo "</tr>";
echo "<tr><td class=\"label\">list</td><td class=\"label\">add</td></tr>";
diff --git a/read.php b/read.php
index 3dcc037..b5bb4d0 100644
--- a/read.php
+++ b/read.php
@@ -153,20 +153,9 @@ if (isset($_POST['msg']) and !empty($_POST['msg']) and is_numeric($_POST['msg'])
if (($header_user_agent != "") and ($header_mailer == "")) {
echo "<br>$header_user_agent";
}
-/*
- if ($header_rr != "") {
- echo "<br>$header_rr";
- }
-
- if ($header_dr != "") {
- echo "<br>$header_dr";
- }
-*/
-echo " ";
-
-echo "<span class=\"label\" id=\"headerM\" onclick=\"document.getElementById('header1').className ='message';document.getElementById('header2').className='spacer';document.getElementById('headerL').className='label';document.getElementById('headerM').className='hide'\">+</span>";
-echo "<span class=\"hide\" id=\"headerL\" onclick=\"document.getElementById('header1').className ='hide';document.getElementById('header2').className='hide';document.getElementById('headerL').className='hide';document.getElementById('headerM').className='label'\">-</span>";
+ echo "<a style=\"float: right;\" id=\"headerM\" onclick=\"document.getElementById('header1').className ='message';document.getElementById('header2').className='spacer';document.getElementById('headerL').style.display='inline';document.getElementById('headerM').style.display='none'\">...</a>";
+ echo "<a class=\"hide\" style=\"float: right;\" id=\"headerL\" onclick=\"document.getElementById('header1').className ='hide';document.getElementById('header2').className='hide';document.getElementById('headerL').style.display='none';document.getElementById('headerM').style.display='inline'\">...</a>";
echo "</div>";
tree cc68e56e98489461537ebcebc9f3901cbae0fede
parent 554e8fb513483e27040e5647036978997b04f37e
author Engels Antonio <engels@majcms.org> 1343765455 +0800
committer Engels Antonio <engels@majcms.org> 1343765455 +0800
Fix header view toggle
diff --git a/index.php b/index.php
index f745490..d580b1a 100644
--- a/index.php
+++ b/index.php
@@ -53,7 +53,7 @@ if (!$db_query) {
$db_query = mysql_query("create table admins (id varchar(16) not null, pw varchar(64) not null, primary key (id), unique key (id))");
$db_query = mysql_query("create table domains (id varchar(128) not null, pw varchar(64) not null, max int(6) default '0', mode int(1) default '1', primary key (id), unique key (id))");
$db_query = mysql_query("create table users (id varchar(255) not null, pw varchar(64) not null, maildir varchar(255) not null, name varchar(128), domain varchar(128), mode int(1) default '1', quota varchar(16), primary key (id), unique key(id))");
- $db_query = mysql_query("create table aliases (id varchar(255) not null, alias varchar(255) not null, domain varchar(128), mode int(1) default '1', primary key (domain))");
+ $db_query = mysql_query("create table aliases (id varchar(255) not null, alias varchar(255) not null, domain varchar(128), mode int(1) default '1')");
$db_query = mysql_query("insert into admins values('$db_user','$pw_crypt')");
}
@@ -1116,7 +1116,7 @@ if (isset($_SESSION['logged_uid'])) {
echo "<tr>";
echo "<td class=\"label\"><img src=\"images/mail-contacts.png\" border=\"0\" width=\"32\" height=\"32\" onclick=\"document.getElementById('list').style.display='inline';document.getElementById('add').style.display='none'\"></td>";
echo "<td class=\"label\"><img src=\"images/mail-contacts.png\" border=\"0\" width=\"32\" height=\"32\" onclick=\"document.getElementById('list').style.display='none';document.getElementById('add').style.display='inline'\"></td>";
-echo "</tr>";
+ echo "</tr>";
echo "<tr><td class=\"label\">list</td><td class=\"label\">add</td></tr>";
diff --git a/read.php b/read.php
index 3dcc037..b5bb4d0 100644
--- a/read.php
+++ b/read.php
@@ -153,20 +153,9 @@ if (isset($_POST['msg']) and !empty($_POST['msg']) and is_numeric($_POST['msg'])
if (($header_user_agent != "") and ($header_mailer == "")) {
echo "<br>$header_user_agent";
}
-/*
- if ($header_rr != "") {
- echo "<br>$header_rr";
- }
-
- if ($header_dr != "") {
- echo "<br>$header_dr";
- }
-*/
-echo " ";
-
-echo "<span class=\"label\" id=\"headerM\" onclick=\"document.getElementById('header1').className ='message';document.getElementById('header2').className='spacer';document.getElementById('headerL').className='label';document.getElementById('headerM').className='hide'\">+</span>";
-echo "<span class=\"hide\" id=\"headerL\" onclick=\"document.getElementById('header1').className ='hide';document.getElementById('header2').className='hide';document.getElementById('headerL').className='hide';document.getElementById('headerM').className='label'\">-</span>";
+ echo "<a style=\"float: right;\" id=\"headerM\" onclick=\"document.getElementById('header1').className ='message';document.getElementById('header2').className='spacer';document.getElementById('headerL').style.display='inline';document.getElementById('headerM').style.display='none'\">...</a>";
+ echo "<a class=\"hide\" style=\"float: right;\" id=\"headerL\" onclick=\"document.getElementById('header1').className ='hide';document.getElementById('header2').className='hide';document.getElementById('headerL').style.display='none';document.getElementById('headerM').style.display='inline'\">...</a>";
echo "</div>";