Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
cts.eemo.co.kr
/
public_html
/
src
/
web
/
view
/
contents
/
edu_bak
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/cts.eemo.co.kr/public_html/src/web/view/contents/edu_bak/list.php
<?php $page = $_REQUEST['page']; $tableName = $_REQUEST['tableName']; $title = $_REQUEST['title']; $writer = $_REQUEST['writer']; $all_info = \Mobile::getContentsPage($page, $tableName, $title, $writer); ?> <!-- search --> <div class=""> <!-- delete --> <!-- <div class="fixed-table-toolbar"><div class="bs-bars float-left"> <div id="bootstrap-table-toolbar"> <button id="bootstrap-table-remove" class="btn btn-danger" disabled=""> <i class="ion ion-md-close"></i> Delete </button> </div> </div> --> <div class="columns columns-right btn-group float-left"> <button class="btn btn-primary" type="button" onclick="create_post('<?php echo $board;?>')" name="paginationSwitch" aria-label="Pagination Switch" title="upliad file"> 파일등록 </button> </div> <form id="frm_process" name="frm_process" action="./process/doc_process.php" method="post" > <div class="columns columns-right btn-group float-right"> <div class="search pr-1 "> <input class="form-control" onkeyup="enterkey()" id="inputTitle" name="inputTitle" type="text" placeholder="제목"> </div> <div class="search pr-1 "> <input class="form-control" onkeyup="enterkey()" id="inputWriter" name="inputWriter" type="text" placeholder="작성자"> </div> <div class="pr-1"> <input id="division" name="division" type="hidden" value="hatcherySearch" /> </div> <div class="pr-1 float-right"> <button id="farmSearchList" onclick="searchFarm()" class="btn btn-secondary " type="button" name="paginationSwitch" title="Hide/Show pagination"> 검색 </button> </div> </div> </form> <br /> <br /> </div> <div class="card clear_float"> <table class="table card-table "> <thead class="thead-light"> <tr class="bg-warning text-center "> <th class="text-dark font-weight-bold" scope="col" nowrap > 순번 </th> <th class="text-dark font-weight-bold" scope="col" nowrap > 제목 </th> <th class="text-dark font-weight-bold" scope="col" nowrap > 작성자 </th> <th class="text-dark font-weight-bold" scope="col" nowrap > 작성일 </th> </tr> <?php if(count($all_info) == 0 ) { echo " <td colspan=6 class='text-center'> 검색 결과가 없습니다</td>"; } $i = count(\Mobile::getContentsList($tableName)) - ($page - 1) * 10 + $i; foreach($all_info as $key => $value): echo "<tr class='text-center' style='cursor:pointer' onclick='move_page({$value['edu_idx']}); '>"; echo "<td class='text-dark' scope='col' nowrap>"; echo $i--; echo "</td>"; echo "<td class='text-dark' scope='col' nowrap>"; echo $value['edu_title']; echo "</td>"; echo "<td class='text-dark' scope='col' nowrap>"; echo $value['edu_writer']; echo "</td>"; echo "<td class='text-dark' scope='col' nowrap>"; echo substr($value['edu_date'],0,10); echo "</td>"; echo "</tr>"; endforeach; ?> </thead> </table> </div> <!-- 페이지 처리 --> <?php echo $pageCount = \Mobile::getContentsPagination($page, $tableName, $title, $writer); ?> <script> function move_page(idx ) { location.href="/contents/edu/view.php?idx="+idx+"&tableName=edu"; } function create_post(board) { location.href="/contents/edu/insert.php"; } function enterkey() { if (window.event.keyCode == 13) { searchFarm(); } } // 조건에 따른 검색 리스트 조회 function searchFarm() { var title = document.getElementById('inputTitle').value; var writer = document.getElementById('inputWriter').value; location.href="/contents/edu/list.php?<?php echo 'page='.$page. '&tableName='.$tableName;?>&title=" + title +"&writer="+writer; } </script>