You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
2.8 KiB

7 years ago
  1. <div class="ax-button-group">
  2. <div class="left">
  3. <h2>사이트맵 설정</h2>
  4. </div>
  5. </div>
  6. <p class="alert alert-info">
  7. <i class="far fal fas fa-info-circle"></i> 추가로 sitemap.xml 에서 인덱싱하고싶은 URL을 관리하는 페이지입니다.<br>
  8. <i class="far fal fas fa-info-circle"></i> 메인페이지와 게시판은 자동으로 로드하므로 추가할 필요가 없습니다.
  9. </p>
  10. <?=form_open("/admin/management/sitemap_update")?>
  11. <div class="ax-button-group">
  12. <div class="left">
  13. <button type="button" class="btn btn-default" data-button="sitemap-form">추가하기</button>
  14. </div>
  15. <div class="right">
  16. <button class="btn btn-primary">저장하기</button>
  17. </div>
  18. </div>
  19. <div data-ax5grid>
  20. <table>
  21. <thead>
  22. <tr>
  23. <th>URL</th>
  24. <th>중요도</th>
  25. <th>갱신주기</th>
  26. <th>관리</th>
  27. </tr>
  28. </thead>
  29. <tbody>
  30. <?php foreach($list as $row) :?>
  31. <tr>
  32. <td>
  33. <input type="hidden" name="sit_idx[]" value="<?=$row['sit_idx']?>">
  34. <input class="form-control" name="sit_loc[]" value="<?=$row['sit_loc']?>" required>
  35. </td>
  36. <td><input type="number" min="0" max="1" step="0.1" class="form-control" name="sit_priority[]" value="<?=$row['sit_priority']?>" required></td>
  37. <td>
  38. <select class="form-control" name="sit_changefreq[]">
  39. <option value="daily" <?=$row['sit_changefreq']=='daily'?'selected':''?>>daily</option>
  40. <option value="weekly" <?=$row['sit_changefreq']=='weekly'?'selected':''?>>weekly</option>
  41. <option value="monthly" <?=$row['sit_changefreq']=='monthly'?'selected':''?>>monthly</option>
  42. </select>
  43. </td>
  44. <td>
  45. <a href="<?=base_url('admin/management/sitemap_delete/'.$row['sit_idx'])?>" onclick="return confirm('삭제하시겠습니까?');" class="btn btn-danger">삭제</a>
  46. </td>
  47. </tr>
  48. <?php endforeach;?>
  49. <?php if(count($list) <= 0 ):?>
  50. <tr>
  51. <td class="empty" colspan="4">등록된 자료가 없습니다.</td>
  52. </tr>
  53. <?php endif;?>
  54. </tbody>
  55. </table>
  56. </div>
  57. <?=form_close()?>
  58. <script>
  59. $(function(){
  60. $('[data-button="sitemap-form"]').click(function(){
  61. APP.MODAL.callback = function(){
  62. location.reload();
  63. };
  64. APP.MODAL.open({
  65. iframe : {
  66. url : '/admin/management/sitemap_form'
  67. },
  68. header : {
  69. title : '사이트맵 등록하기'
  70. },
  71. width:600,
  72. height:300
  73. });
  74. });
  75. });
  76. </script>