Exemple #1
0
<?php

if (!defined("PMX_ENTRANCE")) {
    header("HTTP/1.0 404 Not Found");
    exit;
}
pmx_require_header("Add Project");
pmx_require_nav("");
?>

<div class="main">
	<div class="main-item-single main-item-add-proj pull-left">
		<form class="form-horizontal" id="form-add-proj"
			action="<?php 
echo pmx_getactionurl_addproj();
?>
" method="POST"
			role="form">
			<div
				class="main-item-single-left main-item-single-addproj-setting  pull-left">
				<div class="add-proj-item add-proj-item-1">
					<div class="form-group">
						<label for="inputTitle" class="col-sm-2 control-label">Title</label>
						<div class="col-sm-9">
							<input type="text" name="title" class="form-control"
								id="inputTitle" placeholder="Project Title"
								check-type="required" required="">
						</div>
					</div>
					<div class="form-group">
						<label for="inputDesc" class="col-sm-2 control-label">Description</label>
Exemple #2
0
<?php

if (!defined("PMX_ENTRANCE")) {
    header("HTTP/1.0 404 Not Found");
    exit;
}
pmx_require_header("Item List");
pmx_require_nav(".nav-left-proj");
$id = isset($_GET['id']) ? intval($_GET['id']) : "";
if (!is_item_exist($id)) {
    die("Error : Project id is invalid.");
}
$items = get_item_list($id);
?>
<div class="main">
	<div class="top-bar">
		<div class="top-bar-title">
			<?php 
echo esc_html(get_project_name($id));
?>
		</div>
	</div>
	<div class="main-item-projs-items-bar">
		<div class="pagination">
			<span><small><?php 
echo esc_html(get_item_page_item_range());
?>
, Total <?php 
echo esc_html(get_item_num($id));
?>
 </small></span>
Exemple #3
0
<?php

if (!defined("PMX_ENTRANCE")) {
    header("HTTP/1.0 404 Not Found");
    exit;
}
pmx_require_header("Module List");
pmx_require_nav(".nav-left-module");
?>
<div class="main">
	<div class="top-bar">
		<div class="top-bar-item">
			<a href="<?php 
echo get_mod_caturl("DEFAULT");
?>
"
				urladd="cat[]=DEFAULT">Default</a> <a
				href="<?php 
echo get_mod_caturl("EXP");
?>
" urladd="cat[]=EXP">EXP</a>
			<a href="<?php 
echo get_mod_caturl("CUSTOM");
?>
"
				urladd="cat[]=CUSTOM">Custom</a>
		</div>
	</div>
	<div class="main-item-bar">
		<div class="button">
			<a href="<?php 
Exemple #4
0
<?php

if (!defined("PMX_ENTRANCE")) {
    header("HTTP/1.0 404 Not Found");
    exit;
}
pmx_require_header("Edit Module");
pmx_require_nav("");
$id = isset($_GET["id"]) ? intval($_GET["id"]) : NULL;
$pmxModule = new pmxModule();
if (!$pmxModule->isExistID($id)) {
    die("Error: The module id is non-existent.");
}
$data = $pmxModule->getDetail($id);
?>
<div class="main">
	<div class="main-item-single main-item-add-module pull-left">
		<form class="form-horizontal" id="form-add-mod"
			action="<?php 
echo pmx_getactionurl_savemod();
?>
" method="POST"
			role="form">
			<div
				class="main-item-single-block main-item-single-addmodule-setting">
				<div class="add-module-item add-module-item-1">
					<div class="form-group">
						<label for="inputName" class="col-sm-2 control-label">Name</label>
						<div class="col-sm-9">
							<input type="text" name="name" class="form-control"
								id="inputName" placeholder="Module Name"
Exemple #5
0
<?php

if (!defined("PMX_ENTRANCE")) {
    header("HTTP/1.0 404 Not Found");
    exit;
}
pmx_require_header("Item Detail");
pmx_require_nav(".nav-left-proj");
$pmxItem = new pmxProjectItem();
$id = isset($_GET['id']) ? $_GET["id"] : "";
if (!$pmxItem->isExistID($id)) {
    die("Error: The item id is invalid.");
}
$detail = $pmxItem->getDetail($id);
$data = json_decode($detail['data'], true);
unset($detail["data"]);
?>

<div class="main">
	<div class="main-item-single main-item-projs-item-detail pull-left">
		<div class="projs-item-detail-body">
			<table class="table table-condensed table-bordered">
<?php 
foreach ($detail as $index => $detail_item) {
    if ($detail_item != "") {
        ?>
				<tr>
					<td><b><?php 
        echo esc_html($index);
        ?>
</b></td>
Exemple #6
0
<?php

if (!defined("PMX_ENTRANCE")) {
    header("HTTP/1.0 404 Not Found");
    exit;
}
pmx_require_header("Host List");
pmx_require_nav(".nav-left-host");
?>
<div class="main">
	<div class="top-bar">
		<div class="top-bar-item">
			<a href="<?php 
echo get_host_caturl("status", "1");
?>
"
				urladd="status=1">Online</a> <a
				href="<?php 
echo get_host_caturl("status", "0");
?>
"
				urladd="status=0">Offline</a>
		</div>
<?php 
$hostProjs = get_host_projs();
if (count($hostProjs) > 0) {
    ?>
		<div class="top-bar-item">
<?php 
    foreach ($hostProjs as $hostProjs_item) {
        ?>
Exemple #7
0
<?php

if (!defined("PMX_ENTRANCE")) {
    header("HTTP/1.0 404 Not Found");
    exit;
}
pmx_require_header("Add Module");
pmx_require_nav("");
?>

<div class="main">
	<div class="main-item-single main-item-add-module pull-left">
		<form class="form-horizontal" id="form-add-mod"
			action="<?php 
echo pmx_getactionurl_addmod();
?>
" method="POST"
			role="form">
			<div
				class="main-item-single-block main-item-single-addmodule-setting">
				<div class="add-module-item add-module-item-1">
					<div class="form-group">
						<label for="inputName" class="col-sm-2 control-label">Name</label>
						<div class="col-sm-9">
							<input type="text" name="name" class="form-control"
								id="inputName" placeholder="Module Name">
						</div>
					</div>
					<div class="form-group">
						<label for="inputDesc" class="col-sm-2 control-label">Description</label>
						<div class="col-sm-9">
Exemple #8
0
<?php

if (!defined("PMX_ENTRANCE")) {
    header("HTTP/1.0 404 Not Found");
    exit;
}
pmx_require_header("Edit Project");
pmx_require_nav("");
$id = isset($_GET["id"]) ? intval($_GET["id"]) : NULL;
$pmxProj = new pmxProject();
if (!$pmxProj->isExistID($id)) {
    die("Error: The Project id is non-existent.");
}
$data = $pmxProj->getDetail($id);
$modids = json_decode($data['mods'], true);
?>
<div class="main">
	<div class="main-item-single main-item-add-proj pull-left">
		<form class="form-horizontal" id="form-add-proj"
			action="<?php 
echo pmx_getactionurl_saveproj();
?>
" method="POST"
			role="form">
			<div
				class="main-item-single-left main-item-single-addproj-setting  pull-left">
				<div class="add-proj-item add-proj-item-1">
					<div class="form-group">
						<label for="inputTitle" class="col-sm-2 control-label">Title</label>
						<div class="col-sm-9">
							<input type="text" name="title" class="form-control"
Exemple #9
0
<?php

if (!defined("PMX_ENTRANCE")) {
    header("HTTP/1.0 404 Not Found");
    exit;
}
$id = isset($_GET['id']) ? intval($_GET['id']) : "";
$pmxHost = new pmxHost();
if (!$pmxHost->isExistID($id)) {
    die("Error: ID is non-existent");
}
$hostDetail = $pmxHost->getDetailByID($id);
pmx_require_header("Host Management");
pmx_require_nav("");
?>
<div class="main">
	<div class="main-item-single main-item-hosts-item pull-left">
		<div
			class="main-item-single-left main-item-single-host-item-tabs  pull-left">
			<ul class="nav nav-tabs host-item-tabs" role="tablist">
				<li class="hostinfo active"><a href="#">Host Info</a></li>
				<!--   <li class="logs"><a href="#">Logs</a></li>
			 <li class="cookies"><a href="#">Cookies</a></li> -->
			</ul>
			<div class="host-mgmt-item host-mgmt-item-1 host-mgmt-item-hostinfo">
				<table class="table table-condensed table-bordered">
					<tr>
						<td><b>SID</b> <a
							href="<?php 
echo pmx_getactionurl_delHostLogSID($hostDetail['sid']);
?>
Exemple #10
0
<?php

if (!defined("PMX_ENTRANCE")) {
    header("HTTP/1.0 404 Not Found");
    exit;
}
pmx_require_header("Login");
?>
<div class="login">
	<form role="form" class="form-signin" id="login_form"
		action="<?php 
echo pmx_getactionurl_login();
?>
" method="post">
		<p>
			<label for="inputUsername">Username</label> <input type="text"
				id="inputUsername" name="username" class="form-control"
				placeholder="Username" check-type="required" required=""
				autofocus="">
		</p>
		<p>
			<label for="inputPassword">Password</label> <input type="password"
				id="inputPassword" name="password" class="form-control"
				placeholder="Password" check-type="required" required="">
		</p>
		<p style="text-align: center; font-size: 9px; color: red;"></p>
		<hr>
		<p></p>
		<p>
			<button class="btn btn-primary btn-lg btn-block" type="submit">登录</button>
		</p>
Exemple #11
0
<?php

if (!defined("PMX_ENTRANCE")) {
    header("HTTP/1.0 404 Not Found");
    exit;
}
pmx_require_header("Project List");
pmx_require_nav(".nav-left-proj");
?>
<div class="main">
	<div class="main-item main-item-proj-add cursor-pointer"
		title="Add New Project">
		<div class="proj-add">
			<a href="<?php 
echo pmx_geturl_addproj();
?>
"></a>
		</div>
	</div>
<?php 
$projs = get_project_list();
foreach ($projs as $proj) {
    ?>
	<div class="main-item">
		<div class="main-item-name pull-left  cursor-pointer">
			<a href="<?php 
    echo pmx_geturl_projdetail($proj['id']);
    ?>
"><?php 
    echo esc_html($proj['name']);
    ?>