diff --git a/xCAT-web/machines/copyfiles.js b/xCAT-web/machines/copyfiles.js new file mode 100644 index 000000000..50c8bfddb --- /dev/null +++ b/xCAT-web/machines/copyfiles.js @@ -0,0 +1,14 @@ +// Javascript functions for the Ping tab + +function loadCopyTab(panel) { + //alert('showing Copy tab'); + var nr = ''; + if (window.noderange && window.noderange != "") { + nr = window.noderange; + } + + panel.children().remove(); //get rid of the previous contents + panel.append('
Loading Copy tab...
'); + panel.load('copyfiles.php?noderange='+nr); +} + diff --git a/xCAT-web/machines/copyfiles.php b/xCAT-web/machines/copyfiles.php index 7a6e8ff11..2bada96c6 100644 --- a/xCAT-web/machines/copyfiles.php +++ b/xCAT-web/machines/copyfiles.php @@ -1,17 +1,103 @@ \n"; -//echo "\n"; +// Get the noderange +$noderange = @$_REQUEST['noderange']; +if(empty($noderange)) { echo "Select one or more groups or nodes.
\n"; exit; } -echo "\n"; -// + + + \ No newline at end of file +?> diff --git a/xCAT-web/machines/groups.js b/xCAT-web/machines/groups.js index e5ca80f6c..59d67f6fa 100644 --- a/xCAT-web/machines/groups.js +++ b/xCAT-web/machines/groups.js @@ -11,6 +11,12 @@ $(document).ready(function(){ if (ui.tab.href.search('#ping-tab$') > -1) { loadPingTab($(ui.panel)); } + if (ui.tab.href.search('#copy-tab$') > -1) { + loadCopyTab($(ui.panel)); + } + if (ui.tab.href.search('#spcfg-tab$') > -1) { + loadSPCfgTab($(ui.panel)); + } }}); // ends the properties passed to tabs() }); diff --git a/xCAT-web/machines/groups.php b/xCAT-web/machines/groups.php index ab68a67f6..ee086fb46 100644 --- a/xCAT-web/machines/groups.php +++ b/xCAT-web/machines/groups.php @@ -7,7 +7,7 @@ require_once "$TOPDIR/lib/functions.php"; if (isAIX()) { $aixDisabled = 'disabled'; } insertHeader('xCAT Groups and Nodes', array("$TOPDIR/jq/jsTree/tree_component.css",'groups.css','attributes.css',"$TOPDIR/manage/dsh.css"), - array("$TOPDIR/jq/jsTree/css.js","$TOPDIR/jq/jsTree/jquery.listen.js","$TOPDIR/jq/jsTree/tree_component.js","$TOPDIR/jq/jquery.cookie.js",'noderangetree.js','groups.js','attributes.js','rvitals.js','rpower.js','ping.js'), + array("$TOPDIR/jq/jsTree/css.js","$TOPDIR/jq/jsTree/jquery.listen.js","$TOPDIR/jq/jsTree/tree_component.js","$TOPDIR/jq/jquery.cookie.js",'noderangetree.js','groups.js','attributes.js','rvitals.js','rpower.js','ping.js','copyfiles.js','spconfig.js'), array('machines','groups')); echo "Loading SP Config tab...
'); + panel.load('spconfig.php?noderange='+nr); +}