index.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <?php import::view('header'); ?>
  2. <style>.yazi{height:140px;overflow: auto;}</style>
  3. <a href="#myModal" data-toggle="modal" class="btn btn-success">Yeni Menü</a> <hr>
  4. <!-- yeni menü Modal Başlangıcı -->
  5. <div id="myModal" class="modal hide" aria-hidden="true" style="display: none;">
  6. <div class="modal-header">
  7. <h3>Menu Kayıt Formu</h3>
  8. </div>
  9. <div class="modal-body">
  10. <form action="" method="post">
  11. <div class="control-group">
  12. <label class="control-label">Menü Adı :</label>
  13. <div class="controls">
  14. <input type="text" class="span11" name="menu_name" placeholder="Menu Adı...">
  15. <input type="hidden" name="popup" value="1">
  16. </div>
  17. </div>
  18. <div class="form-actions">
  19. <button type="submit" class="btn btn-success span11">Kaydet</button>
  20. </div>
  21. </form>
  22. </div>
  23. </div>
  24. <!-- yeni menü Modal sonu -->
  25. <form action="" method="post">
  26. <div class="row-fluid">
  27. <div class="span4">
  28. <div class="accordion" id="collapse-group">
  29. <!-- page -->
  30. <div class="accordion-group widget-box">
  31. <div class="accordion-heading">
  32. <div class="widget-title">
  33. <a data-parent="#collapse-group" href="#collapseGOne" data-toggle="collapse" class="collapsed">
  34. <span class="icon"><i class="icon-ok"></i></span>
  35. <h5>Sayfalar</h5>
  36. </a>
  37. </div>
  38. </div>
  39. <div class="accordion-body collapse" id="collapseGOne" style="height: 0px;">
  40. <div class="widget-content">
  41. <div class="yazi">
  42. <?php foreach (pagelist() as $key): ?>
  43. <label><input type="checkbox" name="pages[]" value="<?php echo $key->title.'&/page/'.$key->id.'-'.$key->titleSeo; ?>"><?php echo $key->title; ?></label>
  44. <?php endforeach ?> </div><br>
  45. <input type="submit" name="page_submit" value="Menüye Ekle">
  46. </div>
  47. </div>
  48. </div>
  49. <!-- /page -->
  50. <!-- yazilar -->
  51. <div class="accordion-group widget-box">
  52. <div class="accordion-heading">
  53. <div class="widget-title">
  54. <a data-parent="#collapse-group" href="#collapseGOne" data-toggle="collapse" class="collapsed">
  55. <span class="icon"><i class="icon-ok"></i></span>
  56. <h5>Yazılar</h5>
  57. </a>
  58. </div>
  59. </div>
  60. <div class="accordion-body collapse" id="collapseGOne" style="height: 0px;">
  61. <div class="widget-content">
  62. <div class="yazi">
  63. <?php foreach (yFunc::yazilar() as $key): ?>
  64. <label><input type="checkbox" name="yazilar[]" value="<?php echo $key->baslik.'&/konu/'.$key->id.'-'.$key->baslik_seo; ?>"><?php echo $key->baslik; ?></label>
  65. <?php endforeach ?> </div><br>
  66. <input type="submit" name="yazi_submit" value="Menüye Ekle">
  67. </div>
  68. </div>
  69. </div>
  70. <!-- /yazilar -->
  71. <!-- category -->
  72. <div class="accordion-group widget-box">
  73. <div class="accordion-heading">
  74. <div class="widget-title">
  75. <a data-parent="#collapse-group" href="#collapseGTwo" data-toggle="collapse"> <span class="icon"><i class="icon-circle-arrow-right"></i></span>
  76. <h5>Kategoriler</h5>
  77. </a>
  78. </div>
  79. </div>
  80. <div class="collapse accordion-body" id="collapseGTwo">
  81. <div class="widget-content">
  82. <div class="yazi">
  83. <?php foreach (yFunc::kategoriler() as $key): ?>
  84. <label><input type="checkbox" name="kategoriler[]" value="<?php echo 'kategori/'.$key->id.'-'.$key->kat_seo; ?>"><?php echo $key->kategori; ?></label>
  85. <?php endforeach ?>
  86. </div><br>
  87. <input type="submit" name="kategori_submit" value="Menüye Ekle">
  88. </div>
  89. </div>
  90. </div>
  91. <!-- category -->
  92. </div>
  93. </div>
  94. <div class="span4">
  95. <div class="control-group">
  96. <label class="control-label">Menüyü Seç:</label>
  97. <div class="controls">
  98. <select name="menucat" id="">
  99. <option value="">Seçiniz...</option>
  100. <?php foreach (menuname() as $key): ?>
  101. <option value="<?php echo $key->id ?>"><?php echo $key->name ?></option>
  102. <?php endforeach ?>
  103. </select>
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108. </form>
  109. <?php import::view('footer'); ?>