PHP popup method

From , 5 Years ago, written in PHP, viewed 166 times.
URL https://pastebin.vip/view/b19aa25f
  1. <?php
  2.  
  3. /*
  4.  * [插件名称] 弹出窗口判断 - 替换模版标签{#modAdvsPop#} [适用范围] foot.html [文 件 名] AdvsPop.php [更新时间] 2006/7/30
  5.  */
  6. function AdvsPop() {
  7.         global $msql, $tbl_pop, $NowMenuid, $MenuInfo;
  8.        
  9.         $advsstr = "";
  10.         $msql->query ( "select * from $tbl_pop where menuid='$NowMenuid' and ifpop='1'" );
  11.         if ($msql->next_record ()) {
  12.                 $popid = $msql->f ( 'id' );
  13.                 $popwidth = $msql->f ( 'popwidth' );
  14.                 $popheight = $msql->f ( 'popheight' );
  15.                 $popleft = $msql->f ( 'popleft' );
  16.                 $poptop = $msql->f ( 'poptop' );
  17.                 $poptoolbar = $msql->f ( 'poptoolbar' );
  18.                 $popmenubar = $msql->f ( 'popmenubar' );
  19.                 $popstatus = $msql->f ( 'popstatus' );
  20.                 $poplocation = $msql->f ( 'poplocation' );
  21.                 $popscrollbars = $msql->f ( 'popscrollbars' );
  22.                 $popresizable = $msql->f ( 'popresizable' );
  23.                 $advsstr .= "<script>window.open('" . ROOTPATH . "pop.php?menuid=" . $NowMenuid . "','','width=" . $popwidth . ",height=" . $popheight . ",left=" . $popleft . ",top=" . $poptop . ",toolbar=" . $poptoolbar . ",menubar=" . $popmenubar . ",status=" . $popstatus . ",location=" . $poplocation . ",scrollbars=" . $popscrollbars . ",resizable=" . $popresizable . "')</script>";
  24.         }
  25.        
  26.         return $advsstr;
  27. }
  28.  
  29. ?>

Reply to "PHP popup method"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website