From cd82e103c34bd0e4b413bcceca57386405ecace7 Mon Sep 17 00:00:00 2001 From: habarnam Date: Sat, 19 Apr 2008 19:09:36 +0300 Subject: [PATCH] * changed the iframe to object as the former is deprecated in xhtml 1.0 --- _res/_themes/default/_css/screen.css | 5 ++--- adm/_pages/index/code.php | 13 ++++++++++--- adm/_pages/index/pages/edit.tpl | 10 +++++++--- adm/_res/_themes/default/_css/screen.css | 11 ++++++++--- 4 files changed, 27 insertions(+), 12 deletions(-) diff --git a/_res/_themes/default/_css/screen.css b/_res/_themes/default/_css/screen.css index c897cd5..c4036b8 100644 --- a/_res/_themes/default/_css/screen.css +++ b/_res/_themes/default/_css/screen.css @@ -55,7 +55,6 @@ a img { ---------------------------------------------------*/ h1 a { text-decoration: none; - color:#000000; } #main{ width:100%; @@ -100,7 +99,7 @@ ul#p { } .post .head { width:100%; - border-bottom:1px solid #444; + border-bottom:1px solid #454545; } .post .head { position:relative; @@ -133,7 +132,7 @@ ul#p { } .post .e { font-size: 50%; - color: #900; + color: #900000; } .post ul, .post ol { margin:0 0 0 4em; diff --git a/adm/_pages/index/code.php b/adm/_pages/index/code.php index 2d4e08c..b440afe 100644 --- a/adm/_pages/index/code.php +++ b/adm/_pages/index/code.php @@ -113,7 +113,13 @@ class index extends tsAdminPage { $post->clean ($body); $post->post_body = $body; // post body - $post->post_time = date("Y-m-d G:i:s"); + $modTime = tsPage::getRequest('d'); + var_dump($modTime); die; + + if (!empty($modTime)) { + $post->post_time = date("Y-m-d G:i:s"); + } + $post->post_author = $this->user->name; $post->post_private = (tsPage::getRequest('p') ? 'Y' : 'N'); @@ -181,8 +187,9 @@ class index extends tsAdminPage { } } - $this->varArray['categories'] = $cat; - $this->varArray['upload_url'] = tsPage::setRequest ('upload', array('i' => $postId)); + $this->varArray['categories'] = $cat; + $this->varArray['now'] = date('Y-m-d G:i:s'); + $this->varArray['upload_url'] = tsPage::setRequest ('upload', array('i' => $postId)); } public function catedit () { diff --git a/adm/_pages/index/pages/edit.tpl b/adm/_pages/index/pages/edit.tpl index 18eaf42..817a11d 100644 --- a/adm/_pages/index/pages/edit.tpl +++ b/adm/_pages/index/pages/edit.tpl @@ -2,7 +2,9 @@
Message -
+
+
+

@@ -15,7 +17,9 @@
- +
+ - \ No newline at end of file + + \ No newline at end of file diff --git a/adm/_res/_themes/default/_css/screen.css b/adm/_res/_themes/default/_css/screen.css index cf5a998..5ee99c5 100644 --- a/adm/_res/_themes/default/_css/screen.css +++ b/adm/_res/_themes/default/_css/screen.css @@ -128,15 +128,20 @@ fieldset { width:100%; padding:0.5em; } -/*this is ugly*/ -#edit label { - font-size:1.1em; +#edit { + vertical-align: baseline; } #edit fieldset{ border:1px solid #ccc; background-color:#eee; padding:0.7em; } +#edit input { + padding:2px 0; +} +#edit label { + font-size:1.4em; +} #edit legend { border:0 solid #ccc; font-size:1.2em; -- 2.11.4.GIT