One Hat Cyber Team
Your IP :
216.73.216.240
Server IP :
162.240.106.28
Server :
Linux server.ganesand.com 3.10.0-1160.80.1.el7.x86_64 #1 SMP Tue Nov 8 15:48:59 UTC 2022 x86_64
Server Software :
Apache
PHP Version :
7.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
thoa
/
www
/
admin
/
Edit File:
mg_liststatus.php
<?php ob_start(); session_start(); $id="yes"; include 'config.php'; if((isset($_REQUEST["delid"])) && $_REQUEST["delid"]!="") { $delstatus = "update status set del_status=2 where id='".$_REQUEST["delid"]."'"; $exedel = mysql_query($delstatus); header("Location:mg_liststatus.php?msg=suc"); } ?> <?php if(isset($_POST['submit'])) { $id=$_POST['id']; $pass=$_POST['pass']; if($pass!='') { mysql_query("update login set password='".md5($_POST['pass'])."' where app_no='$id'"); $message='Your Password Updated Successfully'; }else { $message='Password Not Updated'; } } ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Admin Panel</title> <link href="css/bootstrap.min.css" rel="stylesheet"> <link href="css/datepicker3.css" rel="stylesheet"> <link href="css/styles.css" rel="stylesheet"> <!--[if lt IE 9]> <script src="js/html5shiv.js"></script> <script src="js/respond.min.js"></script> <![endif]--> <script src="../admin/js/jquery.min.js" type="text/javascript"></script> <script src="../admin/js/dropmenu.js" type="text/javascript"></script> <script type="text/javascript" src="../admin/js/jquery-1.2.6.min.js"></script> <script type="text/javascript" src="../admin/js/jquery-ui-personalized-1.5.2.packed.js"></script> <script type="text/javascript" src="../admin/js/sprinkle.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("table").width('100%'); }); </script> </head> <script type="text/javascript" src="../admin/js/tinymce/tinymce.min.js"></script> <script type="text/javascript"> tinymce.init({ selector: "textarea", themes: "modern", plugins: [ "advlist autolink lists link image charmap print preview anchor", "searchreplace visualblocks code fullscreen", "insertdatetime media table contextmenu paste" ], toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image" }); </script> <body> <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#sidebar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#">Admin</a> <ul class="user-menu"> <li class="dropdown pull-right"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-user"></span> User <span class="caret"></span></a> <ul class="dropdown-menu" role="menu"> <li><a href="#"><span class="glyphicon glyphicon-user"></span> Profile</a></li> <li><a href="#"><span class="glyphicon glyphicon-cog"></span> Settings</a></li> <li><a href="logou.php"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li> </ul> </li> </ul> </div> </div><!-- /.container-fluid --> </nav> <div id="sidebar-collapse" class="col-sm-3 col-lg-2 sidebar"> <form role="search"> <div class="form-group"> <input type="text" class="form-control" placeholder="Search"> </div> </form> <? include('header.php');?> </div><!--/.sidebar--> <div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main"> <div class="row"> <ol class="breadcrumb"> <li><a href="#"><span class="glyphicon glyphicon-home"></span></a></li> <li class="active">Manage Application</li> </ol> </div><!--/.row--> <div class="row"> <div class="col-lg-12"> <h2 class="page-header">Manage Application Details</h2> </div> </div><!--/.row--> <section class="content"> <? if($id=='yes') { ?> <div class="row"> <!-- left column --> <div class="col-xs-12"> <!-- general form elements --> <div class="box box-primary"> <!-- form start --> <div class="container"> <div id="content"> <?php if(isset($_GET['editmsg'])!='') { ?> <font color="#FF0000"><h4><?php echo 'Your Record is Edited successfully';?></h4></font> <?php }?> <div id="tables"> <!--// Tables starts --> <table width="746" cellspacing="0"> <tr> <th width="147" height="40" class="title_table" scope="col"><div align="center" class="tabletitles"> <div align="left">Application No</div> <!--// Column 1 --> </div></th> <th width="161" height="40" class="title_table" scope="col"><div align="center" class="tabletitles"> <div align="left">Registration No</div> <!--// Column 2 --> </div></th> <th width="112" height="40" class="title_table" scope="col"><div align="center" class="tabletitles"> <div align="left">Applicant Name </div> <!--// Column 3 --> </div></th> </div></th> <th width="37" height="40" class="title_table" scope="col"> </th> <th width="36" height="40" class="title_table" scope="col">View Application</th> <!--// Column 6 --> <th width="56" height="40" class="title_table" scope="col">Edit Application</th> <!--// Column 7 --> </tr> <?php $i=0; //editing $where=""; $purpose=(isset($_REQUEST['type']) && $_REQUEST['type']!="")? $_REQUEST['type'] : ""; $dmonth=(isset($_REQUEST['dmonth']) && $_REQUEST['dmonth']!="")? $_REQUEST['dmonth'] : ""; $dyear=(isset($_REQUEST['dyear']) && $_REQUEST['dyear']!="")? $_REQUEST['dyear'] : ""; if($dmonth!="") { //$where="where application.date1 like"." "."'%".$dyear."'"."and application.purpose=".$purpose; $where="where date1 like '$dyear-$dmonth-%' and for1='$purpose'"." "."and"; } else { $where="where date1 like"." "."'".$dyear."%"."'"." "."and for1='$purpose'"." "."and"; } if($dmonth=="" && $dyear=="") { $where="where"; } //$sql=mysql_query("select * from status where del_status=1 order by id DESC"); $sql=mysql_query("select * from status $where del_status=1 order by id DESC"); //echo "select * from status $where del_status=1 order by id DESC"; //exit(); while($row=mysql_fetch_object($sql)) { if($i==0) { ?> <form action="" method="post" name="first" enctype="multipart/form-data"> <tr> <td height="40" bgcolor="#E5E5E5" class="bodytext_table"><div align="left"><?=$row->app_id;?></div></td> <td height="40" bgcolor="#E5E5E5" class="bodytext_table"><div align="left"><?=$row->reg_no;?></div></td> <td height="40" bgcolor="#E5E5E5" class="bodytext_table"><div align="left"><?=$row->name;?></div></td> <td height="40" bgcolor="#E5E5E5" class="bodytext_table"><div align="left"></div></td> <td height="40" bgcolor="#E5E5E5" class="bodytext"><div align="center"><a href="mg_vstat.php?appid=<?=$row->app_id;?>"><input type="button" value="View" name="View" title="View" /></a></div></td> <td height="40" bgcolor="#E5E5E5" class="bodytext"><div align="center"><a href="mg_editstatus.php?edit=<?=$row->app_id;?>"><input type="button" name="Edit" value="Edit" title="Edit" /></a> <a href="mg_liststatus.php?delid=<?=$row->id; ?>" onclick="javascript: return confirm('Are you sure want to delete');"><img src="images/delete.png" border="0" width="22" height="22" /></a> </div></td> </tr> </form> <?php $i=1; } else { ?> <form action="" method="post" name="second" enctype="multipart/form-data"> <tr> <td height="40" class="bodytext_table"><div align="left"><?=$row->app_id;?></div></td> <td height="40" class="bodytext_table"><div align="left"><?=$row->reg_no;?></div></td> <td height="40" class="bodytext_table"><div align="left"><?=$row->name;?></div></td> <td height="40" bgcolor="#E5E5E5" class="bodytext_table"><div align="left"></div></td> <td height="40" bgcolor="#E5E5E5" class="bodytext"><div align="center"><a href="mg_vstat.php?appid=<?=$row->app_id;?>"><input type="button" value="View" name="View" title="View" /></a></div></td> <td height="40" bgcolor="#E5E5E5" class="bodytext"><div align="center"><a href="mg_editstatus.php?edit=<?=$row->app_id;?>"><input type="button" name="Edit" value="Edit" title="Edit" /></a> <a href="mg_liststatus.php?delid=<?=$row->id; ?>" onclick="javascript: return confirm('Are you sure want to delete');"><img src="images/delete.png" border="0" width="22" height="22" /></a> </div></td> </tr> </form> <?php $i=0; } } ?> </table> <br /> <hr /></div> </div> </div> </div> </div> </section> <hr> </div> <!--/.main--> <?php } ?> <script src="js/jquery-1.11.1.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/chart.min.js"></script> <script src="js/chart-data.js"></script> <script src="js/easypiechart.js"></script> <script src="js/easypiechart-data.js"></script> <script src="js/bootstrap-datepicker.js"></script> <script src="js/bootstrap-table.js"></script> <script> $(document).ready(function() { $('ul.subcat').hide(); $('li').click(function(event) { event.stopPropagation(); $('> ul', this).toggle(); }); }); </script> </body> </html>
Simpan