Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이승윤
/
OpenSource-MyCookBook
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Song
2021-05-31 00:36:32 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
dfb427e27b19c00fc578020e92d4ae60cb6c2d5b
dfb427e2
1 parent
936e85e1
style: table 가운데 정렬
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
views/category/products.ejs
views/category/products.ejs
View file @
dfb427e
<% include ../includes/header.ejs %>
<table class="table table-bordered table-hover">
<tr>
<th width="
10
0px" style="text-align: center;">카테고리명</th>
<th style="text-align: center;">개설 날짜</th>
<th>내용</th>
<th>사용자명</th>
<th>삭제</th>
<th width="
8
0px" style="text-align: center;">카테고리명</th>
<th
width="50px"
style="text-align: center;">개설 날짜</th>
<th
width="350px" style="text-align: center;"
>내용</th>
<th
width="30px" style="text-align: center;"
>사용자명</th>
<th
width="30px" style="text-align: center;"
>삭제</th>
</tr>
<%categories.forEach(function(product){%>
<tr>
<td>
<td
style="text-align: center;"
>
<a href="/categori/products/detail/<%=product.id%>"><%=product.title%></a>
</td>
<td>
<td
style="text-align: center;"
>
<%=product.getDate.year%> -
<%=product.getDate.month%> -
<%=product.getDate.day%>
</td>
<td>
<%=product.description%>
-
<td
style="text-align: center;"
>
<%=product.description%>
</td>
<td>
<%=product.username%>
-
<td
style="text-align: center;"
>
<%=product.username%>
</td>
<td>
<td
style="text-align: center;"
>
<a href="/categori/products/delete/<%=product.id%>" class="btn btn-danger" onclick="return confirm('삭제하시겠습니까?')">삭제</a>
</td>
</tr>
...
...
Please
register
or
login
to post a comment