getvnc.html.php 865 B

1234567891011121314151617
  1. <?php
  2. /**
  3. * The yyy view file of zanode module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
  5. * @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  6. * @author Yanyi Cao <caoyanyi@easycorp.ltd>
  7. * @package zanode
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. div
  12. (
  13. h::iframe(setID('urlIframe'), set::src("http://$url/novnc/vnc.html?resize=scale&autoconnect=true&port=6080&path=websockify/?token=$token&password=pass&resize=scale&autoconnect=true"), set::allowfullscreen(true), set::allowtransparency(true), set::frameborder('no'), set::style(array('width' => '100%')))
  14. );
  15. h::js("document.getElementById('urlIframe').style.height = parseInt(window.screen.height - 200) + 'px';");
  16. render('pagebase');