www-thermferm/liveview.php

changeset 304
c1be51c076c9
parent 300
4ce46ff3e37d
child 305
fc2fae36f4ba
equal deleted inserted replaced
303:19a9a3912d03 304:c1be51c076c9
426 426
427 $answer = send_cmd("LIST"); 427 $answer = send_cmd("LIST");
428 if (strlen($answer)) { 428 if (strlen($answer)) {
429 $arr = explode("\r\n", $answer); 429 $arr = explode("\r\n", $answer);
430 430
431 $outstr .= ' <script type="text/javascript">'.PHP_EOL;
432 $outstr .= ' $(document).ready(function () {'.PHP_EOL;
433 $outstr .= ' var index = $.jqx.cookie.cookie("jqxTabs_jqxWidget");'.PHP_EOL;
434 $outstr .= ' if (undefined == index) index = 0;'.PHP_EOL;
435 $outstr .= ' $(\'#jqxTabs\').jqxTabs({selectedItem: index, width: \'90%\', height: 200, position: \'top\'});'.PHP_EOL;
436 // on to the select event.
437 $outstr .= ' $("#jqxTabs").on(\'selected\', function (event) {'.PHP_EOL;
438 // save the index in cookie.
439 $outstr .= ' $.jqx.cookie.cookie("jqxTabs_jqxWidget", event.args.item);'.PHP_EOL;
440 $outstr .= ' });'.PHP_EOL;
441 $outstr .= ' });'.PHP_EOL;
442 $outstr .= ' </script>'.PHP_EOL;
443
431 $outstr .= ' <div id="jqxTabs">'.PHP_EOL; 444 $outstr .= ' <div id="jqxTabs">'.PHP_EOL;
432 $outstr .= ' <ul>'.PHP_EOL; 445 $outstr .= ' <ul>'.PHP_EOL;
433 if (startsWith($arr[0], "212")) { 446 if (startsWith($arr[0], "212")) {
434 $i = 1; 447 $i = 1;
435 while (1) { 448 while (1) {

mercurial