Exemplo n.º 1
0
}

function removeArgument(link) {
	$(link).parent().remove();
	
	//re-order
	var divs = $("#arguments").children("div");
	for (var i=0; i<divs.length; i++) {
		$(divs[i]).find("span").html(i);
	}
}

</script>
<div class="operation">
	<?php 
render_server_menu("execute");
?>
</div>

<a href="http://api.mongodb.org/js/" target="_blank">&raquo; Javascript API</a>


<?php 
if (isset($message)) {
    ?>
<p class="error"><?php 
    h($message);
    ?>
</p>
<?php 
}
Exemplo n.º 2
0
<div class="operation">
	<?php 
render_server_menu("status");
?>
</div>

<table bgcolor="#cccccc" cellpadding="2" cellspacing="1" width="600">
	<tr>
		<th colspan="2"><?php 
hm("server_status");
?>
 ({serverStatus:1})</th>
	</tr>
	<?php 
foreach ($status as $param => $value) {
    ?>
	<tr bgcolor="#fffeee">
		<td width="120" valign="top"><?php 
    h($param);
    ?>
</td>
		<td><?php 
    h($value);
    ?>
</td>
	</tr>
	<?php 
}
?>
</table>
Exemplo n.º 3
0
<div class="operation">
	<?php 
render_server_menu("command");
?>
</div>

<a href="http://docs.mongodb.org/manual/reference/command/" target="_blank">&raquo; <?php 
hm("listdbcommands");
?>
</a> 

<?php 
if (isset($message)) {
    ?>
<p class="error"><?php 
    h($message);
    ?>
</p>
<?php 
}
?>

<form method="post">
<textarea name="command" rows="5" cols="60"><?php 
h(x("command"));
?>
</textarea>
<br/>
<?php 
hm("db");
?>
Exemplo n.º 4
0
<div class="operation">
	<?php 
render_server_menu("databases");
?>
</div>

 <a href="<?php 
h(url("server.createDatabase"));
?>
"><?php 
hm("create_database");
?>
</a>

<table bgcolor="#cccccc" cellpadding="2" cellspacing="1" width="600">
	<tr>
		<th><?php 
hm("name");
?>
</th>
		<th><?php 
hm("size");
?>
</th>
		<th nowrap><?php 
hm("storagesize");
?>
</th>
		<th nowrap><?php 
hm("datasize");
?>
Exemplo n.º 5
0
<div class="operation">
	<?php 
render_server_menu("replication");
?>
</div>

<table bgcolor="#cccccc" cellpadding="2" cellspacing="1" width="600">
	<tr>
		<th colspan="2"><?php 
hm("repstatus");
?>
 (db.getReplicationInfo())</th>
	</tr>
	<?php 
foreach ($status as $param => $value) {
    ?>
	<tr bgcolor="#fffeee">
		<td width="120" valign="top"><?php 
    h($param);
    ?>
</td>
		<td><?php 
    h($value);
    ?>
</td>
	</tr>
	<?php 
}
?>
</table>
Exemplo n.º 6
0
<div class="operation">
	<?php 
render_server_menu("server");
?>
</div>

<table bgcolor="#cccccc" cellpadding="2" cellspacing="1" width="600">
	<tr>
		<th colspan="2"><a href="http://www.mongodb.org/display/DOCS/Command+Line+Parameters" target="_blank"><?php 
hm("command_line");
?>
</a> (db.serverCmdLineOpts())</th>
	</tr>
	<tr bgcolor="#fffeee">
		<td colspan="2"><?php 
h($commandLine);
?>
</td>
	</tr>
</table>
<div class="gap"></div>

<table bgcolor="#cccccc" cellpadding="2" cellspacing="1" width="600">
	<tr>
		<th colspan="2"><?php 
hm("connection");
?>
</th>
	</tr>
	<?php 
foreach ($connections as $param => $value) {
Exemplo n.º 7
0
<div class="operation">
	<?php 
render_server_menu("processlist");
?>
</div>

<table bgcolor="#cccccc" cellpadding="2" cellspacing="1" width="600">
	<tr>
		<th colspan="10"><?php 
hm("processlist");
?>
 (db.$cmd.sys.inprog.find({$all:1}))</th>
	</tr>
	<tr bgcolor="#cfffff">
		<?php 
foreach (array("id" => "ID", "desc" => "Description", "client" => "Client", "active" => "Active", "lockType" => "LockType", "waitingForLock" => "Waiting", "secs_running" => "SecsRunning", "op" => "Operation", "ns" => "NameSpace") as $param => $desc) {
    ?>
		<td><?php 
    h($desc);
    ?>
</td>
		<?php 
}
?>
	</tr>
	<?php 
foreach ($progs as $prog) {
    ?>
	<tr bgcolor="#fffeee">
		<?php 
    foreach (array("opid" => "ID", "desc" => "Description", "client" => "Client", "active" => "Active", "lockType" => "LockType", "waitingForLock" => "Waiting", "secs_running" => "SecsRunning", "op" => "Operation", "ns" => "NameSpace") as $param => $desc) {