[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
Backup
/
05122024
/
htdocs
/
siakad
/
inventory
/
html
/
dashboards
/
[
Home
]
File: Magazine.inc.php
<?php $nmForm = "dashboard?Magazine"; $nmForm2 = "dashboard?AddMagazine"; $nmTable = "e_magz"; if(isset($_GET["delete"])) $delete = $_GET["delete"]; else $delete = ""; if(isset($_GET["view"])) $view = $_GET["view"]; else $view = ""; $content_title = ""; $id_page = ""; $content_text = ""; //cara untuk hapus record if($delete == "active" && isset($_GET["content_id"])) { $exe = _del($nmTable,"content_id",MyIdDecode($_GET["content_id"]),0); echo "<script>window.alert('".$deme."');</script>"; echo "<script>window.parent.document.location.href='".$nmForm."';</script>"; } //cara untuk edit record if($view == "active" && isset($_GET["content_id"])) { $query = "select * from ".$nmTable." where content_id = ".MyIdDecode($_GET["content_id"]); $iData=sAllData($query); for($a=0,$b=count($iData);$a<$b;$a++) { $content_id = $iData[$a]["content_id"]; $content_title = $iData[$a]["content_title"]; $id_page = $iData[$a]["id_page"]; $content_text = $iData[$a]["content_text"]; } } if(isset($_GET["page_id"]) && $_GET["page_id"]) { $query="select * from ".$nmTable." order by content_create desc"; }else{ $query="select * from ".$nmTable." order by content_create desc"; } $ViewData=sAllData($query); // echo $query; $query="select * from web_content_page order by page_title asc"; $ContData=sAllData($query); ?> <!-- BEGIN BASE--> <div id="base"> <!-- BEGIN OFFCANVAS LEFT --> <div class="offcanvas"> </div><!--end .offcanvas--> <!-- END OFFCANVAS LEFT --> <!-- BEGIN CONTENT--> <div id="content"> <section> <div class="section-header"> <ol class="breadcrumb"> <li class="active">E-Magz</li> </ol> </div> <div class="section-body"> <!-- BEGIN RESPONSIVE TABLE 2 --> <div class="row"> <div class="col-lg-12"> <div class="card"> <div class="card-body no-padding"> <div class="table-responsive no-margin"> <table class="table table-striped no-margin"> <thead> <tr> <th>#</th> <th>Title</th> <th>Active</th> <th>Actions</th> </tr> </thead> <tbody> <?php for($a=0,$b=count($ViewData);$a<$b;$a++) { ?> <tr> <td width="1%"><?php echo ($a+1);?></td> <td width="50%"><?php echo $ViewData[$a]["content_title"];?></td> <td class="center" width="10%"> <?php if($ViewData[$a]["active"] == "1") { ?> <a class="btn btn-info" href="#"> <i class="md md-beenhere"></i> </a> <?php }else{ ?> <a class="btn btn-info" href="#"> <i class="md md-close"></i> </a> <?php } ?> </td> <td class="center" width="20%"> <a class="btn btn-info" href="<?php echo $nmForm2;?>&edit=active&content_id=<?php echo MyIdEncode($ViewData[$a]["content_id"]);?>"> <i class="md md-mode-edit"></i> </a> <a class="btn btn-danger" href="<?php echo $nmForm;?>&delete=active&content_id=<?php echo MyIdEncode($ViewData[$a]["content_id"]);?>"> <i class="md md-delete"></i> </a> </td> </tr> <?php } ?> </tbody> </table> </div><!--end .table-responsive --> </div><!--end .card-body --> </div><!--end .card --> </div><!--end .col --> </div><!--end .row --> <!-- END RESPONSIVE TABLE 1 --> </div> <!-- BEGIN SECTION ACTION --> <div class="section-action style-primary"> <div class="section-floating-action-row"> <a class="btn ink-reaction btn-floating-action btn-lg btn-accent" href="<?php echo $nmForm2;?>" data-toggle="tooltip" data-placement="top" data-original-title="Compose"> <i class="md md-add"></i> </a> </div> </div><!--end .section-action --> <!-- END SECTION ACTION --> </section> </div><!--end #content--> <!-- END CONTENT -->