当前位置: 首页>>代码示例>>PHP>>正文


PHP get_js_open_window函数代码示例

本文整理汇总了PHP中get_js_open_window函数的典型用法代码示例。如果您正苦于以下问题:PHP get_js_open_window函数的具体用法?PHP get_js_open_window怎么用?PHP get_js_open_window使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了get_js_open_window函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: display_applications

 function display_applications(&$waapp)
 {
     global $path_to_root, $use_popup_windows;
     include_once "{$path_to_root}/includes/ui.inc";
     include_once $path_to_root . "/reporting/includes/class.graphic.inc";
     include $path_to_root . "/includes/system_tests.inc";
     if ($use_popup_windows) {
         echo "<script language='javascript'>\n";
         echo get_js_open_window(900, 500);
         echo "</script>\n";
     }
     $selected_app = $waapp->get_selected_application();
     // first have a look through the directory,
     // and remove old temporary pdfs and pngs
     $dir = company_path() . '/pdf_files';
     if ($d = @opendir($dir)) {
         while (($file = readdir($d)) !== false) {
             if (!is_file($dir . '/' . $file) || $file == 'index.php') {
                 continue;
             }
             // then check to see if this one is too old
             $ftime = filemtime($dir . '/' . $file);
             // seems 3 min is enough for any report download, isn't it?
             if (time() - $ftime > 180) {
                 unlink($dir . '/' . $file);
             }
         }
         closedir($d);
     }
     if ($selected_app->id == "orders") {
         display_customer_topten();
     } elseif ($selected_app->id == "AP") {
         display_supplier_topten();
     } elseif ($selected_app->id == "stock") {
         display_stock_topten();
     } elseif ($selected_app->id == "manuf") {
         display_stock_topten(true);
     } elseif ($selected_app->id == "proj") {
         display_dimension_topten();
     } elseif ($selected_app->id == "GL") {
         display_gl_info();
     } else {
         $title = "Display System Diagnostics";
         br(2);
         display_heading($title);
         br();
         display_system_tests();
     }
 }
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:49,代码来源:renderer.php

示例2: or

	Released under the terms of the GNU General Public License, GPL, 
	as published by the Free Software Foundation, either version 3 
	of the License, or (at your option) any later version.
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
    See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
$page_security = 'SA_SUPPTRANSVIEW';
$path_to_root = "../..";
include_once $path_to_root . "/purchasing/includes/purchasing_db.inc";
include_once $path_to_root . "/includes/session.inc";
include_once $path_to_root . "/purchasing/includes/purchasing_ui.inc";
$js = "";
if ($use_popup_windows) {
    $js .= get_js_open_window(900, 500);
}
page(_($help_context = "View Supplier Credit Note"), true, false, "", $js);
if (isset($_GET["trans_no"])) {
    $trans_no = $_GET["trans_no"];
} elseif (isset($_POST["trans_no"])) {
    $trans_no = $_POST["trans_no"];
}
$supp_trans = new supp_trans(ST_SUPPCREDIT);
read_supp_invoice($trans_no, ST_SUPPCREDIT, $supp_trans);
display_heading("<font color=red>" . _("SUPPLIER CREDIT NOTE") . " # " . $trans_no . "</font>");
echo "<br>";
start_table(TABLESTYLE, "width=95%");
start_row();
label_cells(_("Supplier"), $supp_trans->supplier_name, "class='tableheader2'");
label_cells(_("Reference"), $supp_trans->reference, "class='tableheader2'");
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:31,代码来源:view_supp_credit.php

示例3: get_js_open_window

<?php

/**********************************************
Author: Joe Hunt
Name: Revenue / Cost Accruals v2.2
Free software under GNU GPL
***********************************************/
$page_security = 'SA_ACCRUALS';
$path_to_root = "..";
include_once $path_to_root . "/includes/session.inc";
include_once $path_to_root . "/gl/includes/db/gl_db_trans.inc";
$js = get_js_open_window(800, 500);
if ($use_date_picker) {
    $js .= get_js_date_picker();
}
// Begin the UI
include_once $path_to_root . "/includes/ui.inc";
$_SESSION['page_title'] = _($help_context = "Revenue / Cost Accruals");
page($_SESSION['page_title'], false, false, '', $js);
//--------------------------------------------------------------------------------------------------
if (!isset($_POST['freq'])) {
    $_POST['freq'] = 3;
}
// If the import button was selected, we'll process the form here.  (If not, skip to actual content below.)
if (isset($_POST['go']) || isset($_POST['show'])) {
    $input_error = 0;
    if (!is_date($_POST['date_'])) {
        display_error(_("The entered date is invalid."));
        set_focus('date_');
        $input_error = 1;
    } elseif (!is_date_in_fiscalyear($_POST['date_'])) {
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:31,代码来源:accruals.php


注:本文中的get_js_open_window函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。