Welcome to Qi-U Community for programmer and developer-Open, Learning and Share

Categories

0 votes
72 views
in Technique[技术] by (31.9m points)

php - An hyperlink opens a new tab that closes itself as soon as the intended page appears

This problem is with our order management system. Clicking view order button as seen in the screenshot below goes to a new tab that stays a few seconds and closes abruptly. Not sure why this strange behavior even when opening this application in firefox comes up.

Pasted the HTML content for view button for you to see if there is anything wrong. Thank you.

    <td align="center"><a href="view_order.php?id=95243&amp;name=&amp;po_number=&amp;from_date=12/12/2020&amp;to_date=01/11/2021&amp;vendor=&amp;sku=&amp;phone=&amp;zip=&amp;email=&amp;city=&amp;country=&amp;shipping_mode=&amp;order_status=&amp;item_status=&amp;payment_type=&amp;sortby=order_date&amp;orderby=desc&amp;order_index=0"><img src="img/view.gif" width="16" height="16" border="0" alt="View"></a></td>

enter image description here

view_order.php

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
    <title>POMS - Reflect Perfection, &nbsp;View Order</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <link href="postyle.css" rel="stylesheet" type="text/css" />
    <link href="print.css" rel="stylesheet" type="text/css" media="print" />
    <link media="only screen and (max-device-width: 480px)" href="mobile2.css" type= "text/css" rel="stylesheet" />
    <link href="/css/jq-theme.css" rel="stylesheet" type="text/css" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
    
    
    <!--[if IE]>
    <style type="text/css" media="screen">
    body {
    behavior: url(csshover.htc);
    font-size: 100%;
    }
    #menu ul li {float: left; width: 100%;}
    #menu ul li a {height: 1%;}
    #menu a, #menu h2 {
    font: bold 1em/1.6em arial, helvetica, sans-serif;
    }
    #menu ul ul li {float: right; width: 95%; }
    </style>
    
    <![endif]-->
    <script language="javascript">
    function chkheight(){
        var layerCol1 = document.getElementById("col1");
        var layerCol2 = document.getElementById("col2");
        if((layerCol1) && (layerCol2)){
            var col1height = layerCol1.offsetHeight;
            var col2height = layerCol2.offsetHeight;
            if(col1height > col2height){
                layerCol2.style.height=col1height;
            }
            if(col2height > col1height){
                layerCol1.style.height=col2height;
            }
        }
    }
    
    function color_flags(){
        xw=window.open("/color_flags.php","zz","width=700,height=500");
    }
    </script>
    
    
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/jquery-ui.min.js"></script>
    <script src="/js/source/placeholder.js"></script>
    <script language="JavaScript" src="includes/view_order.js?v=5"></script>
    
    <script>
    $(function() {
        $("input[placeholder]").placeholder();
        $('#headerMenu li:has(ul)').hover(
            function() {
                $('ul', this).css('display', 'block');
            },
            function() {
                $('ul', this).css('display', 'none');
        });
    });
    </script>
    
    </head>
    <body onLoad="chkheight();">
    <div id="container">
        <div id="printheader">Reflect Perfection Inc.: PO Management System</div>
        <div class="headerrow" style="padding: 5px 0;">
            <div style="margin-bottom: 3px;" class="ui-helper-clearfix">
                <ul id="topMenu">
                    <li style="padding-left: 15px;font-size: 1.1em;font-weight: bold;">View Order</li>
                                                                </ul>
                <span id="headerExtra" style="float: right;margin:0 10px 0 0">Pramod | <a href="javascript:color_flags()">Colors &amp; Codes</a> | <a href="index.php?form_action=logout">Logout</a></span>
            </div>
            <div id="headerMenu">
                <ul>
                                    <li class="headerMenu">  <a href="home.php">Home</a>                      </li>
                                    <li class="headerMenu">                     Orders
                                                                <ul>
                                                                            <li>  <a href="search_results.php?from_date=01/12/2021&to_date=01/12/2021">Today</a>  </li>
                                                                                                    <li>  <a href="search_results.php?from_date=01/11/2021&to_date=01/11/2021">Yesterday</a>  </li>
                                                                                                    <li>  <a href="search_results.php?from_date=01/05/2021&to_date=01/12/2021">7 Days</a>  </li>
                                                                                                    <li>  <a href="search_results.php?from_date=12/29/2020&to_date=01/12/2021">14 Days</a>  </li>
                                                                                                    <li>  <a href="search_results.php?from_date=12/13/2020&to_date=01/12/2021">30 Days</a>  </li>
                                                                                                    <li>  <a href="search_results.php?order_status=NP&from_date=12/16/2014&to_date=01/12/2021">Not Placed</a>  </li>
                                                                                                    <li>  <a href="search_results.php?order_status=PL&from_date=12/16/2014&to_date=01/12/2021">Not Shipped</a>  </li>
                                                                                                    <li>  <a href="flagged_orders.php">Flagged</a>  </li>
                                                                                                    <li>  <a href="search_orders.php">Advanced Search</a>  </li>
                                                                        </ul>
                         </li>
                                    <li class="headerMenu">  <a href="search_orders.php">Order Search</a>                      </li>
                                    <li class="headerMenu">                     Communications
                                                                <ul>
                                                                            <li>  <a href="email_log.php">Email Log</a>  </li>
                                                                                                    <li>  <a href="incomingfaxes.php">Incoming Faxes</a>  </li>
                                                                                                    <li>  <a href="file_log_report.php">Faxes Pending / Today</a>  </li>
                                                                        </ul>
                         </li>
                                    <li class="headerMenu">                     Lookups
                                                                <ul>
                                                                            <li>  <a href="skulookup.php">SKU</a>  </li>
                                                                                                    <li>  <a href="giftcards.php">Gift Cards</a>  </li>
                                                                                                    <li>  <a href="promocodes.php">Promo Codes</a>  </li>
                                                                        </ul>
                         </li>
                                    <li class="headerMenu">                     Maintenance
                                                                <ul>
                                                                            <li>  <a href="select_back_order_vendor.php">Clear Vendor Back Orders</a>  </li>
                                                                                                    <li>  <a href="list_back_order_items.php">Back Order</a>  </li>
                                                                                                    <li>  <a href="list_inventory.php">Inventory</a>  </li>
                                                                                                    <li>  <a href="list_vendors.php">Vendors</a>  </li>
                                                                                                    <li>  <a href="list_system_info.php">System</a>  </li>
                                                                                                    <li>  <a href="list_users.php">Users</a>  </li>
                                                                                                    <li>  <a href="php_fast_cache.php?command=clean">Clear Cache</a>  </li>
                                                                                                    <li>  <a href="php_fast_cache.php?command=stats">Cache Statistics</a>  </li>
                                                                                                    <li>  <a href="isku_to_sku.php">Rebuild sku_isku File</a>  </li>
                                                                                                    <li>  <a href="amazon_nodes_add.php">Amazon Nodes</a>  </li>
                              

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

Please log in or register to answer this question.

1 Answer

0 votes
by (31.9m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Qi-U Community for programmer and developer-Open, Learning and Share
...