diff --git a/htdocs/css/general.css b/htdocs/css/general.css new file mode 100644 index 0000000..24ca2c9 --- /dev/null +++ b/htdocs/css/general.css @@ -0,0 +1,67 @@ +.btn { + display: inline-block; + padding: 0.3em; + text-decoration: none; + + font-size: 0.95em; + font-family: none; + border: 1px black solid; + background: blue; + color: white; + + cursor: pointer; +} + +ul.func-btn li { + display: inline-block; +} + +.table-func ul li{ + display: inline-block; + padding: 0.5em; + +} +.table-func ul li a{ + text-decoration: none; +} + +.table-row-func li{ + display: inline-block; +} + + +html, body { + margin: 0; + padding: 0; + width: 100%; + height: 100%; +} + +body { + background: red; +} + +div#container { + margin: 0 auto; + padding: 1rem; + width: 960px; + height: 100%; + display: block; + + background: white; +} + +header h1{ + text-align: center; +} + +div#main { + margin-top: 2rem; +} + +.func-btn { + text-align: right; +} +.func-btn>ul li{ + display: inline; +} \ No newline at end of file diff --git a/htdocs/css/here b/htdocs/css/here deleted file mode 100644 index e69de29..0000000 diff --git a/htdocs/edit.php b/htdocs/edit.php index 59c42e7..b9ac254 100644 --- a/htdocs/edit.php +++ b/htdocs/edit.php @@ -25,41 +25,44 @@ else { + Document -
-

留言板 編輯

-
-
-
-
- '; - } - ?> -
    -
  • - -
  • -
  • - -
  • -
-
    -
  • -
  • -
-
-
+
+
+

留言板 編輯

+
+
+
+
+ '; + } + ?> +
    +
  • + +
  • +
  • + +
  • +
+
    +
  • +
  • +
+
+
+
\ No newline at end of file diff --git a/htdocs/index.php b/htdocs/index.php index 23f50c8..5254a63 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -17,74 +17,77 @@ $list = $db->getList($page, $list_max_count); + Document -
-

留言板

-
-
-
- -
-
- -
+
+
+

留言板

+
+
+
- 0) { - echo ' - - - - - - - - - - - '; - - foreach ($list as $key => $item) { +
+ +
+
    +
  • +
+
+ 0) { echo ' -
- - - - - +
idtitleupdated_ataction
'.$item['id'].''.$item['title'].''.$item['updated_at'].' - -
+ + + + + + + + + + '; + + foreach ($list as $key => $item) { + echo ' + + + + + + + '; + } + + echo ' + +
idtitleupdated_ataction
'.$item['id'].''.$item['title'].''.$item['updated_at'].' + +
'; } - - echo ' - - - '; - } - else { - echo '無資料'; - } - ?> -
- -
-
+ else { + echo '無資料'; + } + ?> +
+ +
+ +
\ No newline at end of file