mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
#30 new bootstrap 3 theme
This commit is contained in:
parent
f8fd3f7c7b
commit
d96918a999
66
web/ajax.php
66
web/ajax.php
@ -98,6 +98,72 @@ if ($ui->smallletters('w', 9, 'get') == 'datatable') {
|
|||||||
|
|
||||||
die(json_encode($array));
|
die(json_encode($array));
|
||||||
|
|
||||||
|
// App master server updates. Triggered asyncronous with ajax to avoid 5xx errors
|
||||||
|
} else if ($ui->smallletters('d', 21, 'get') =='masterappserverupdate' and isset($admin_id) and isset($reseller_id) and isset($resellerLockupID) and $pa['masterServer']) {
|
||||||
|
|
||||||
|
include(EASYWIDIR . '/stuff/methods/functions_ssh_exec.php');
|
||||||
|
include(EASYWIDIR . '/stuff/methods/class_masterserver.php');
|
||||||
|
include(EASYWIDIR . '/stuff/keyphrasefile.php');
|
||||||
|
|
||||||
|
$sprache = getlanguagefile('roots', $user_language, $resellerLockupID);
|
||||||
|
|
||||||
|
$rootServer = new masterServer($ui->id('serverID', 10, 'get'), $aeskey);
|
||||||
|
|
||||||
|
/*
|
||||||
|
$i = 1;
|
||||||
|
$gamelist = array();
|
||||||
|
$games = explode('_', $ui->username('gamestring', 50, 'get'));
|
||||||
|
$count = count($games);
|
||||||
|
$query = $sql->prepare("SELECT `id` FROM `servertypes` WHERE `shorten`=? AND `resellerid`=? LIMIT 1");
|
||||||
|
|
||||||
|
while ($i < $count) {
|
||||||
|
|
||||||
|
if ($games[$i] != '' and !in_array($games[$i], $gamelist)) {
|
||||||
|
$gamelist[] = $games[$i];
|
||||||
|
$query->execute(array($games[$i], $resellerLockupID));
|
||||||
|
$typeID = $query->fetchColumn();
|
||||||
|
$rootServer->collectData($typeID, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
$i++;
|
||||||
|
}*/
|
||||||
|
|
||||||
|
$gamelist = array();
|
||||||
|
|
||||||
|
$query = $sql->prepare("SELECT `shorten` FROM `servertypes` WHERE `id`=? AND `resellerid`=? LIMIT 1");
|
||||||
|
foreach($ui->id('masterIDs', 10, 'get') as $masterID) {
|
||||||
|
|
||||||
|
$query->execute(array($masterID, $resellerLockupID));
|
||||||
|
|
||||||
|
$gameShorten = $query->fetchColumn();
|
||||||
|
|
||||||
|
if (strlen($gameShorten) > 0) {
|
||||||
|
|
||||||
|
$gamelist[] = $gameShorten;
|
||||||
|
|
||||||
|
$rootServer->collectData($masterID, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$sshcmd = $rootServer->returnCmds('install', 'all');
|
||||||
|
|
||||||
|
if ($rootServer->sshcmd === null) {
|
||||||
|
echo 'Nothing to update/sync!';
|
||||||
|
} else {
|
||||||
|
|
||||||
|
if (ssh2_execute('gs', $ui->id('serverID', 10, 'get'), $rootServer->sshcmd) === false) {
|
||||||
|
echo $sprache->error_root_updatemaster . ' ( ' . implode(', ', $gamelist) . ' )';
|
||||||
|
} else {
|
||||||
|
$rootServer->setUpdating();
|
||||||
|
echo $sprache->root_updatemaster . ' ( ' . implode(', ', $gamelist) . ' )';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isset($dbConnect['debug']) and $dbConnect['debug'] == 1) {
|
||||||
|
echo '<br>' . implode('<br>', $rootServer->sshcmd);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
die();
|
||||||
|
|
||||||
} else if (isset($admin_id) and $pa['dedicatedServer'] and $ui->smallletters('d', 7, 'get') == 'freeips' and $reseller_id == 0) {
|
} else if (isset($admin_id) and $pa['dedicatedServer'] and $ui->smallletters('d', 7, 'get') == 'freeips' and $reseller_id == 0) {
|
||||||
|
|
||||||
if ($ui->id('userID', 10, 'get')) {
|
if ($ui->id('userID', 10, 'get')) {
|
||||||
|
@ -58,16 +58,8 @@ if (!isset($pa) or count($pa)==0 or ((!isset($admin_id) and !isset($user_id)) or
|
|||||||
$die = true;
|
$die = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($ui->smallletters('w',5, 'get') == 'check') {
|
if ($die == true) {
|
||||||
$return='bad';
|
|
||||||
if ($ui->w('method',40, 'get')) {
|
|
||||||
$method = $ui->w('method',40, 'get');
|
|
||||||
if ($ui->id('length',255, 'get') and $ui->$method('check', $ui->id('length',255, 'get'), 'get')) $return='ok';
|
|
||||||
else if ($ui->$method('check', 'get')) $return='ok';
|
|
||||||
}
|
|
||||||
echo $return;
|
|
||||||
|
|
||||||
} else if ($die == true) {
|
|
||||||
redirect('login.php');
|
redirect('login.php');
|
||||||
|
|
||||||
} else if ($ui->id('id',19, 'get') and $ui->st('d', 'get')=="vs" and ($pa['addvserver'] or $pa['root'])) {
|
} else if ($ui->id('id',19, 'get') and $ui->st('d', 'get')=="vs" and ($pa['addvserver'] or $pa['root'])) {
|
||||||
@ -320,56 +312,6 @@ if ($ui->smallletters('w',5, 'get') == 'check') {
|
|||||||
</select>
|
</select>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
} else if ($ui->username('gamestring', 50, 'get') and $ui->id('id',19, 'get') and ($pa['roots'] or $pa['root'])) {
|
|
||||||
|
|
||||||
include(EASYWIDIR . '/stuff/methods/functions_ssh_exec.php');
|
|
||||||
include(EASYWIDIR . '/stuff/methods/class_masterserver.php');
|
|
||||||
include(EASYWIDIR . '/stuff/keyphrasefile.php');
|
|
||||||
|
|
||||||
$sprache = getlanguagefile('roots', $user_language, $reseller_id);
|
|
||||||
|
|
||||||
if ($reseller_id != 0 and $admin_id != $reseller_id) {
|
|
||||||
$reseller_id = $admin_id;
|
|
||||||
}
|
|
||||||
|
|
||||||
$rootServer = new masterServer($ui->id('id', 10, 'get'), $aeskey);
|
|
||||||
|
|
||||||
$i = 1;
|
|
||||||
$gamelist = array();
|
|
||||||
$games = explode('_', $ui->username('gamestring', 50, 'get'));
|
|
||||||
$count = count($games);
|
|
||||||
$query = $sql->prepare("SELECT `id` FROM `servertypes` WHERE `shorten`=? AND `resellerid`=? LIMIT 1");
|
|
||||||
|
|
||||||
while ($i < $count) {
|
|
||||||
|
|
||||||
if ($games[$i] != '' and !in_array($games[$i], $gamelist)) {
|
|
||||||
$gamelist[] = $games[$i];
|
|
||||||
$query->execute(array($games[$i], $reseller_id));
|
|
||||||
$typeID = $query->fetchColumn();
|
|
||||||
$rootServer->collectData($typeID, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
$i++;
|
|
||||||
}
|
|
||||||
|
|
||||||
$sshcmd = $rootServer->returnCmds('install', 'all');
|
|
||||||
|
|
||||||
if ($rootServer->sshcmd === null) {
|
|
||||||
echo 'Nothing to update/sync!';
|
|
||||||
} else {
|
|
||||||
|
|
||||||
if (ssh2_execute('gs', $ui->id('id', 10, 'get'), $rootServer->sshcmd) === false) {
|
|
||||||
echo $sprache->error_root_updatemaster . ' ( ' . implode(', ', $gamelist) . ' )';
|
|
||||||
} else {
|
|
||||||
$rootServer->setUpdating();
|
|
||||||
echo $sprache->root_updatemaster . ' ( ' . implode(', ', $gamelist) . ' )';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($dbConnect['debug']) and $dbConnect['debug'] == 1) {
|
|
||||||
echo '<br>' . implode('<br>', $rootServer->sshcmd);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
} else if (($pa['voiceserver'] or $pa['voiceserver']) and $ui->st('d', 'get')=="vo" and $ui->id('id',19, 'get')) {
|
} else if (($pa['voiceserver'] or $pa['voiceserver']) and $ui->st('d', 'get')=="vo" and $ui->id('id',19, 'get')) {
|
||||||
|
|
||||||
$sprache = getlanguagefile('voice', $user_language, $reseller_id);
|
$sprache = getlanguagefile('voice', $user_language, $reseller_id);
|
||||||
|
@ -208,10 +208,13 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
|||||||
|
|
||||||
$template_file = 'admin_master_list.tpl';
|
$template_file = 'admin_master_list.tpl';
|
||||||
|
|
||||||
} else if ($ui->st('d', 'get') == 'ud' and $ui->smallletters('action', 2, 'post') == 'ud') {
|
} else if ($ui->st('d', 'get') == 'ud' and $ui->st('action', 'post') == 'ud') {
|
||||||
|
|
||||||
if (is_object($ui->id('id', 10, 'post')) or is_array($ui->id('id', 10, 'post'))) {
|
$ips = array();
|
||||||
foreach($ui->id('id',19, 'post') as $id) {
|
$ajaxStrings = array();
|
||||||
|
|
||||||
|
if (is_object($ui->id('serverID', 10, 'post')) or is_array($ui->id('serverID', 10, 'post'))) {
|
||||||
|
foreach($ui->id('serverID', 10, 'post') as $id) {
|
||||||
$query = $sql->prepare("SELECT `ip` FROM `rserverdata` WHERE `id`=? AND `resellerid`=? LIMIT 1");
|
$query = $sql->prepare("SELECT `ip` FROM `rserverdata` WHERE `id`=? AND `resellerid`=? LIMIT 1");
|
||||||
$query->execute(array($id, $resellerLockupID));
|
$query->execute(array($id, $resellerLockupID));
|
||||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||||
@ -220,70 +223,59 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((isset($ips))) {
|
if (count($ips) > 0) {
|
||||||
|
|
||||||
$query = $sql->prepare("SELECT s.`shorten` FROM `rservermasterg` r LEFT JOIN `servertypes` s ON r.`servertypeid`=s.`id` WHERE s.`description`=? AND r.`serverid`=? AND r.`installing`='N' AND r.`resellerid`=?");
|
$query = $sql->prepare("SELECT s.`id` FROM `rservermasterg` r INNER JOIN `servertypes` s ON r.`servertypeid`=s.`id` WHERE s.`id`=? AND r.`serverid`=? AND r.`installing`='N' AND r.`resellerid`=?");
|
||||||
$ajax = '<script type="text/javascript">window.onload = function() {';
|
|
||||||
foreach($ui->id('id',19, 'post') as $id) {
|
|
||||||
|
|
||||||
$i = 0;
|
foreach($ui->id('serverID', 10, 'post') as $id) {
|
||||||
$gamestring_buf = '';
|
|
||||||
|
|
||||||
foreach($ui->description('description', 'post') as $description) {
|
$ajaxStringIDs = array();
|
||||||
|
|
||||||
$query->execute(array($description, $id, ($reseller_id == 0) ? 0 : $admin_id));
|
foreach($ui->id('masterID', 10, 'post') as $masterID) {
|
||||||
|
$query->execute(array($masterID, $id, $resellerLockupID));
|
||||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||||
$gamestring_buf .= '_' . $row['shorten'];
|
$ajaxStringIDs[] = $row['id'];
|
||||||
$i++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($i > 0) {
|
if ($query->rowCount() > 0) {
|
||||||
$posted_gamestring = $i . $gamestring_buf;
|
$ajaxStrings[$id] = $ajaxStringIDs;
|
||||||
$ajax .= "onloaddata('serverallocation.php?gamestring=$posted_gamestring&id=','$id','$id');";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$ajax .= '}</script>';
|
|
||||||
|
|
||||||
$htmlExtraInformation['js'][] = $ajax;
|
|
||||||
|
|
||||||
$template_file = 'admin_master_ud2.tpl';
|
$template_file = 'admin_master_ud2.tpl';
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$template_file ='Error: No server selected or the server(s) are already updating';
|
$template_file = 'admin_404.tpl';
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$table = array();
|
$appServer = array();
|
||||||
$table3 = array();
|
$masterList = array();
|
||||||
|
|
||||||
$i = 0;
|
$query = $sql->prepare("SELECT `id`,`ip`,`description` FROM `rserverdata` WHERE `active`='Y' AND `resellerid`=?");
|
||||||
|
|
||||||
$query = $sql->prepare("SELECT s.`description`,s.`shorten` FROM `rservermasterg` r INNER JOIN `servertypes` s ON r.`servertypeid`=s.`id` " . $where . " GROUP BY s.`description` ORDER BY s.`description` ASC");
|
|
||||||
$query->execute(array(':reseller_id' => $resellerLockupID));
|
|
||||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
|
||||||
$table[$i]['game'] = array('shorten' => $row['shorten'], 'description' => $row['description']);
|
|
||||||
$i++;
|
|
||||||
}
|
|
||||||
|
|
||||||
$i2 = 0;
|
|
||||||
|
|
||||||
$query = $sql->prepare("SELECT d.`id`,d.`ip` FROM `rservermasterg` r INNER JOIN `rserverdata` d ON r.`serverid`=d.`id` INNER JOIN `servertypes` s ON r.`servertypeid`=s.`id` " . $where . " GROUP BY d.`id` ASC");
|
|
||||||
$query->execute(array(':reseller_id' => $resellerLockupID));
|
|
||||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
|
||||||
$table[$i2]['server'] = array('id' => $row['id'], 'ip' => $row['ip']);
|
|
||||||
$i2++;
|
|
||||||
}
|
|
||||||
|
|
||||||
$query = $sql->prepare("SELECT s.`shorten` FROM `rservermasterg` r INNER JOIN `servertypes` s ON r.`servertypeid`=s.`id` WHERE r.`resellerid`=? GROUP BY s.`shorten` ORDER BY s.`shorten` ASC");
|
|
||||||
$query->execute(array($resellerLockupID));
|
$query->execute(array($resellerLockupID));
|
||||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||||
$shorten = $row['shorten'];
|
$appServer[$row['id']] = array('ip' => $row['ip'], 'description' => $row['description']);
|
||||||
$table3[] = '<a href="admin.php?w=ma&d=ud&m=' . $shorten . '">' . $shorten . '</a>';
|
}
|
||||||
|
|
||||||
|
$query = $sql->prepare("SELECT `id`,`shorten`,`description` FROM `servertypes` s WHERE `resellerid`=? ORDER BY `description` ASC");
|
||||||
|
$query2 = $sql->prepare("SELECT r.`id` FROM `rservermasterg` AS m INNER JOIN `rserverdata` AS r ON r.`id`=m.`serverid` WHERE m.`servertypeid`=?");
|
||||||
|
|
||||||
|
$query->execute(array($resellerLockupID));
|
||||||
|
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||||
|
|
||||||
|
$serverIDs = array();
|
||||||
|
|
||||||
|
$query2->execute(array($row['id']));
|
||||||
|
while ($row2 = $query2->fetch(PDO::FETCH_ASSOC)) {
|
||||||
|
$serverIDs[] = $row2['id'];
|
||||||
|
}
|
||||||
|
|
||||||
|
if (count($serverIDs) > 0) {
|
||||||
|
$masterList[$row['id']] = array('description' => $row['description'], 'shorten' => $row['shorten'], 'serverIDs' => implode(',', $serverIDs));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$template_file = 'admin_master_ud.tpl';
|
$template_file = 'admin_master_ud.tpl';
|
||||||
|
|
||||||
}
|
}
|
107
web/template/adminlte/admin/admin_master_ud.tpl
Normal file
107
web/template/adminlte/admin/admin_master_ud.tpl
Normal file
@ -0,0 +1,107 @@
|
|||||||
|
<section class="content-header">
|
||||||
|
<h1><?php echo $sprache->header_update;?></h1>
|
||||||
|
<ol class="breadcrumb">
|
||||||
|
<li><a href="admin.php"><i class="fa fa-home"></i> Home</a></li>
|
||||||
|
<li><?php echo $gsprache->master;?></li>
|
||||||
|
<li class="active"><?php echo $sprache->header_update;?></li>
|
||||||
|
</ol>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="content">
|
||||||
|
<div class="row">
|
||||||
|
<form role="form" action="admin.php?w=ma&d=ud" onsubmit="return confirm('<?php echo $gsprache->sure;?>');" method="post" >
|
||||||
|
|
||||||
|
<input type="hidden" name="token" value="<?php echo token();?>">
|
||||||
|
<input type="hidden" name="action" value="ud">
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="box box-info">
|
||||||
|
|
||||||
|
<div class="box-header">
|
||||||
|
<h3 class="box-title"><?php echo $gsprache->appRoot;?></h3>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="box-body">
|
||||||
|
<?php foreach($appServer as $id => $server){ ?>
|
||||||
|
<div class="form-group">
|
||||||
|
<input id="inputServerID-<?php echo $id;?>" type="checkbox" name="serverID[]" value="<?php echo $id;?>">
|
||||||
|
<label for="inputServerID-<?php echo $id;?>"><?php echo $server['ip'].' '.$server['description'];?></label>
|
||||||
|
</div>
|
||||||
|
<?php } ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="box box-info">
|
||||||
|
|
||||||
|
<div class="box-header">
|
||||||
|
<h3 class="box-title"><?php echo $gsprache->master;?></h3>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="box-body">
|
||||||
|
<?php foreach($masterList as $id => $master){ ?>
|
||||||
|
<div class="form-group" id="masterID-<?php echo $id;?>" data-server="<?php echo $master['serverIDs'];?>">
|
||||||
|
<input id="inputMasterID-<?php echo $id;?>" type="checkbox" name="masterID[]" value="<?php echo $id;?>">
|
||||||
|
<label for="inputMasterID-<?php echo $id;?>"><img src="images/games/icons/<?php echo $master['shorten'];?>.png" alt="<?php echo $master['description'];?>" width="16" /> <?php echo $master['description'];?></label>
|
||||||
|
</div>
|
||||||
|
<?php } ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="box-footer">
|
||||||
|
<button class="btn btn-warning" id="inputRefresh" type="submit"><i class="fa fa-refresh"> <?php echo $gsprache->update;?></i></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<script type="text/javascript">
|
||||||
|
function toggleMasterList () {
|
||||||
|
|
||||||
|
var selectedServers = [];
|
||||||
|
|
||||||
|
$("input[name='serverID[]']").each(function() {
|
||||||
|
if (this.checked) {
|
||||||
|
selectedServers[selectedServers.length] = this.value;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
/*
|
||||||
|
$.each(selectedServers, function( index, value ){
|
||||||
|
alert(value);
|
||||||
|
});*/
|
||||||
|
|
||||||
|
var serverString = '';
|
||||||
|
var splitted = [];
|
||||||
|
|
||||||
|
$("[id^='masterID-']").each(function() {
|
||||||
|
|
||||||
|
showMaster = false;
|
||||||
|
|
||||||
|
serverString = $(this).data("server") + '';
|
||||||
|
|
||||||
|
splitted = serverString.split(",");
|
||||||
|
|
||||||
|
$.each(splitted, function(key, value) {
|
||||||
|
if (selectedServers.indexOf(value + '') > -1) {
|
||||||
|
showMaster = true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
if (showMaster === true) {
|
||||||
|
$(this).show();
|
||||||
|
} else {
|
||||||
|
$(this).hide();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
$(function() {
|
||||||
|
toggleMasterList();
|
||||||
|
});
|
||||||
|
|
||||||
|
$("input[name='serverID[]']").change(function() {
|
||||||
|
toggleMasterList();
|
||||||
|
});
|
||||||
|
</script>
|
47
web/template/adminlte/admin/admin_master_ud2.tpl
Normal file
47
web/template/adminlte/admin/admin_master_ud2.tpl
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
<section class="content-header">
|
||||||
|
<h1><?php echo $sprache->header_update;?></h1>
|
||||||
|
<ol class="breadcrumb">
|
||||||
|
<li><a href="admin.php"><i class="fa fa-home"></i> Home</a></li>
|
||||||
|
<li><?php echo $gsprache->master;?></li>
|
||||||
|
<li class="active"><?php echo $sprache->header_update;?></li>
|
||||||
|
</ol>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="content">
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="col-md-11">
|
||||||
|
<div class="box box-info">
|
||||||
|
|
||||||
|
<div class="box-header">
|
||||||
|
<h3 class="box-title"><?php echo $gsprache->appRoot;?></h3>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="box-body">
|
||||||
|
<dl class="dl-horizontal">
|
||||||
|
<?php foreach($ips as $id=>$ip) { ?>
|
||||||
|
<dt><?php echo $ip;?></dt>
|
||||||
|
<dd id="progressID-<?php echo $id;?>">
|
||||||
|
<div class="progress progress-striped active">
|
||||||
|
<div class="progress-bar progress-bar-primary" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div>
|
||||||
|
</div>
|
||||||
|
</dd>
|
||||||
|
<?php } ?>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(function() {
|
||||||
|
<?php foreach($ajaxStrings as $id=>$masterIDs){ ?>
|
||||||
|
masterIDs = [];
|
||||||
|
<?php foreach($masterIDs as $masterID){ ?>
|
||||||
|
masterIDs[masterIDs.length] = <?php echo $masterID;?>;
|
||||||
|
<?php } ?>
|
||||||
|
$.get('ajax.php',{d: 'masterappserverupdate', serverID: <?php echo $id;?>, masterIDs: masterIDs } ).done(function(data) { $("#progressID-<?php echo $id;?>").html(data);});
|
||||||
|
<?php } ?>
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user