diff --git a/app/index/controller/Attachment.php b/app/index/controller/Attachment.php new file mode 100644 index 00000000..75177e60 --- /dev/null +++ b/app/index/controller/Attachment.php @@ -0,0 +1,23 @@ +lang_id)->select(); + View::assign('category', $category); + + return View::fetch('index'); + } +} diff --git a/app/index/lang/en-us.php b/app/index/lang/en-us.php index 81f3cb94..0905df64 100644 --- a/app/index/lang/en-us.php +++ b/app/index/lang/en-us.php @@ -31,5 +31,11 @@ return [ 'detail_leave_reply_comment' => 'Comment', 'detail_leave_reply_submit' => 'POST COMMENT', 'detail_recommend' => 'Recommended for you', + ], + 'attachment' => [ + 'software_drives' => 'Software and Drivers', + 'software_download' => 'Software Drives', + 'manual_download' => 'Manual', + 'video' => 'Videos' ] ]; \ No newline at end of file diff --git a/app/index/lang/zh-cn.php b/app/index/lang/zh-cn.php index 14e93584..e2d042a2 100644 --- a/app/index/lang/zh-cn.php +++ b/app/index/lang/zh-cn.php @@ -31,5 +31,11 @@ return [ 'detail_leave_reply_comment' => '留言', 'detail_leave_reply_submit' => '提交留言', 'detail_recommend' => '你可能还喜欢', + ], + 'attachment' => [ + 'software_drives' => '软件和驱动程序', + 'software_download' => '软件下载', + 'manual_download' => '手册', + 'video' => '视频' ] ]; \ No newline at end of file diff --git a/app/index/model/AttachmentCategoryModel.php b/app/index/model/AttachmentCategoryModel.php new file mode 100644 index 00000000..0173240d --- /dev/null +++ b/app/index/model/AttachmentCategoryModel.php @@ -0,0 +1,25 @@ +where('language_id', '=', $language); + } +} diff --git a/app/index/model/AttachmentModel.php b/app/index/model/AttachmentModel.php new file mode 100644 index 00000000..7f774e49 --- /dev/null +++ b/app/index/model/AttachmentModel.php @@ -0,0 +1,19 @@ + +{/block} +{block name="main"} +
+
+
+ 

