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


PHP PrintHeader函数代码示例

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


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

示例1: ShowReport

function ShowReport($sall)
{
    $tlastday = strtotime($sall["LastDay"]);
    $slastday = date("l, F j, Y", $tlastday);
    $c = $sall["Counts"][0] + $sall["Counts"][1] + $sall["Counts"][2];
    echo '<p>As of <b>' . $slastday . '</b>:<br>';
    $nusers = $sall["NUsers"];
    // Put out header...
    echo "<br>\n";
    echo '<table class="admin_userlist">';
    PrintHeader($sall);
    for ($iu = 0; $iu < $nusers; $iu++) {
        echo '<tr>';
        $sc = $sall[$iu];
        echo '<th align=left width=170>';
        echo '<a href="attendance_user.php?UserID=' . $sc["UserID"] . '">' . $sc["Name"] . '</a></th>';
        echo '<th align=right width=60>' . sprintf("%4.1f", $sc["Score"]) . '</th>';
        echo '<th align=right width=60>' . sprintf("%5.1f", $sc["TotalHours"]) . '</th>';
        echo '<th align=right width=60>' . sprintf("%5.1f", $sc["OutHours"]) . '</th>';
        echo "<th width=10></th>";
        $nc = $sc["NEvents"];
        for ($i = 0; $i < $nc; $i++) {
            $ss = "";
            $scc = $sc[$i];
            $c = '';
            if ($scc["Present"]) {
                $c = 'p';
            }
            if (isset($scc["Correction"])) {
                $c = 'c';
            }
            $ss .= $c;
            if ($scc["Hours"] > 0.001) {
                if ($scc["Hours"] > 10.0) {
                    $ss .= sprintf("%2.0f", $scc["Hours"]);
                } else {
                    $ss .= sprintf("%3.1f", $scc["Hours"]);
                }
            }
            echo "<th align=right width=40>" . $ss . "</th>\n";
        }
        echo '</tr>' . "\n";
    }
    echo '</table>';
}
开发者ID:sshibs,项目名称:EpicRobotzWebsite,代码行数:45,代码来源:attendance_fullreport.php

示例2: _

    $pdf->addTextWrap(240, $YPos - 110, 100, $FontSize, _('Hour'), 'left');
    $pdf->addTextWrap(280, $YPos - 110, 200, $FontSize, ':__________________', 'left', 0, $fill);
    $pdf->addTextWrap(240, $YPos - 150, 100, $FontSize, _('Signature'), 'left');
    $pdf->addTextWrap(280, $YPos - 150, 200, $FontSize, ':__________________', 'left', 0, $fill);
    //add received by
    $pdf->addTextWrap(440, $YPos - 50, 100, 9, _('Received By :'), 'left');
    $pdf->addTextWrap(440, $YPos - 70, 100, $FontSize, _('Name'), 'left');
    $pdf->addTextWrap(480, $YPos - 70, 200, $FontSize, ':__________________', 'left', 0, $fill);
    $pdf->addTextWrap(440, $YPos - 90, 100, $FontSize, _('Date'), 'left');
    $pdf->addTextWrap(480, $YPos - 90, 200, $FontSize, ':__________________', 'left', 0, $fill);
    $pdf->addTextWrap(440, $YPos - 110, 100, $FontSize, _('Hour'), 'left');
    $pdf->addTextWrap(480, $YPos - 110, 200, $FontSize, ':__________________', 'left', 0, $fill);
    $pdf->addTextWrap(440, $YPos - 150, 100, $FontSize, _('Signature'), 'left');
    $pdf->addTextWrap(480, $YPos - 150, 200, $FontSize, ':__________________', 'left', 0, $fill);
    if ($YPos < $Bottom_Margin + $line_height) {
        PrintHeader($pdf, $YPos, $PageNumber, $Page_Height, $Top_Margin, $Left_Margin, $Page_Width, $Right_Margin, $Trf_ID, $FromLocation, $ToLocation, $template);
    }
    /*Print out the grand totals */
    $pdf->OutputD($_SESSION['DatabaseName'] . '_Stock_Transfer_Dispatch_' . Date('Y-m-d') . '.pdf');
    $pdf->__destruct();
} else {
    /*The option to print PDF was not hit so display form */
    $Title = _('Stock Dispatch Report');
    include 'includes/header.inc';
    echo '<p class="page_title_text noPrint" ><img src="' . $RootPath . '/css/' . $Theme . '/images/inventory.png" title="' . _('Inventory') . '" alt="" />' . ' ' . _('Inventory Stock Dispatch Report') . '</p>';
    echo '<div class="page_help_text noPrint">' . _('Create a transfer batch of overstock from one location to another location that is below reorder level.') . '<br/>' . _('Quantity to ship is based on reorder level minus the quantity on hand at the To Location; if there is a') . '<br/>' . _('dispatch percentage entered, that needed quantity is inflated by the percentage entered.') . '<br/>' . _('You need access to both locations to do the transfer.') . '<br/>' . _('Use Bulk Inventory Transfer - Receive to process the batch') . '</div>';
    $sql = "SELECT defaultlocation FROM www_users WHERE userid='" . $_SESSION['UserID'] . "'";
    $result = DB_query($sql, $db);
    $myrow = DB_fetch_array($result);
    $DefaultLocation = $myrow['defaultlocation'];
    echo '<form onSubmit="return VerifyForm(this);" action="' . htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') . '" method="post" class="noPrint">';
开发者ID:rrsc,项目名称:KwaMoja,代码行数:31,代码来源:StockDispatch.php

示例3: locale_number_format

        } else {
            $code = $myrow['stockid'];
            $pdf->addTextWrap(30, $YPos, 100, $FontSize, $myrow['stockid'], 'left');
            $pdf->addTextWrap(135, $YPos, 160, $FontSize, $myrow['description'], 'left');
            $pdf->addTextWrap(300, $YPos, 50, $FontSize, locale_number_format($myrow['conversionfactor'], 'Variable'), 'right');
            $pdf->addTextWrap(350, $YPos, 50, $FontSize, locale_number_format($myrow['price'], $CurrDecimalPlaces), 'right');
            $pdf->addTextWrap(410, $YPos, 50, $FontSize, $PriceDated, 'left');
            $pdf->addTextWrap(470, $YPos, 90, $FontSize, $myrow['suppliers_partno'], 'left');
        }
        if ($YPos < $Bottom_Margin + $line_height) {
            PrintHeader($pdf, $YPos, $PageNumber, $Page_Height, $Top_Margin, $Left_Margin, $Page_Width, $Right_Margin, $SupplierName, $Categoryname, $CurrCode, $CurrentOrAllPrices);
        }
    }
    /*end while loop  */
    if ($YPos < $Bottom_Margin + $line_height) {
        PrintHeader($pdf, $YPos, $PageNumber, $Page_Height, $Top_Margin, $Left_Margin, $Page_Width, $Right_Margin, $SupplierName, $Categoryname, $CurrCode, $CurrentOrAllPrices);
    }
    $pdf->OutputD($_SESSION['DatabaseName'] . '_SupplierPriceList_' . Date('Y-m-d') . '.pdf');
} else {
    /*The option to print PDF was not hit so display form */
    $Title = _('Supplier Price List');
    include 'includes/header.inc';
    echo '<p class="page_title_text"><img src="' . $RootPath . '/css/' . $Theme . '/images/inventory.png" title="' . _('Purchase') . '" alt="" />' . ' ' . _('Supplier Price List') . '</p>';
    echo '<div class="page_help_text">' . _('View the Price List from supplier') . '</div><br />';
    echo '<br/>
		<form action="' . htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') . '" method="post">';
    echo '<div>';
    echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';
    $sql = "SELECT supplierid,suppname FROM `suppliers`";
    $result = DB_query($sql);
    echo '<table class="selection">
开发者ID:fgaudenzi,项目名称:webERP-bootstrap,代码行数:31,代码来源:SuppPriceList.php

示例4: PrintHeader

}
// Are they specifying an install type?
if (isset($_REQUEST['setup'])) {
    // Yes, so set the install type.
    $_SESSION['setup'] = $_REQUEST['setup'];
}
// Are they wanting to install or upgrade?
if ($_SESSION['setup'] == 'install') {
    require './includes/install.inc.php';
} else {
    if ($_SESSION['setup'] == 'upgrade') {
        require './includes/upgrade.inc.php';
    }
}
// Header
PrintHeader();
?>

<h1>Setup Type</h1>
<p>Which type of setup do you want to perform?</p>
<div align="center" style="font-size: 1.25em;"><a href="index.php?setup=install">Fresh Installation</a> | <a href="index.php?setup=upgrade">Upgrade From V0.15a</a></div>

<?php 
// Footer
PrintFooter();
// *************************************************************************** \\
function dmq($given)
{
    return is_array($given) ? array_map('dmq', $given) : stripslashes($given);
}
// *************************************************************************** \\
开发者ID:OvBB,项目名称:v1.0,代码行数:31,代码来源:index.php

示例5: PrintPostHeader

function PrintPostHeader()
{
    global $fbcmdPrefs;
    $header = array();
    $header[] = PrintIfPref('stream_save', '[#]');
    $header[] = PrintIfPref('stream_show_postid', 'POST_ID');
    $header[] = PrintIfPref('show_id', 'SOURCE_UID');
    $header[] = 'NAME';
    $header[] = PrintIfPref('stream_show_date', 'TIME');
    $header[] = 'TYPE';
    $header[] = 'MESSAGE';
    PrintHeader($header);
    if ($fbcmdPrefs['stream_blankrow']) {
        PrintRow('');
    }
}
开发者ID:harleypig,项目名称:fbcmd,代码行数:16,代码来源:fbcmd.php

示例6: number_format

     }
     $pdf->addTextWrap(460, $YPos, 40, $FontSize, number_format($shipqty, $myrow['decimalplaces']), 'right', 0, $fill);
     $pdf->addTextWrap(510, $YPos, 40, $FontSize, '_________', 'right', 0, $fill);
     if ($YPos < $Bottom_Margin + $line_height) {
         PrintHeader($pdf, $YPos, $PageNumber, $Page_Height, $Top_Margin, $Left_Margin, $Page_Width, $Right_Margin, $Trf_ID);
     }
     // Create loctransfers records for each record
     $sql2 = "INSERT INTO loctransfers (reference,\n\t\t\t\t\t\t\t\tstockid,\n\t\t\t\t\t\t\t\tshipqty,\n\t\t\t\t\t\t\t\tshipdate,\n\t\t\t\t\t\t\t\tshiploc,\n\t\t\t\t\t\t\t\trecloc)\n\t\t\t\t\t\tVALUES ('" . $Trf_ID . "',\n\t\t\t\t\t\t\t'" . $myrow['stockid'] . "',\n\t\t\t\t\t\t\t'" . $shipqty . "',\n\t\t\t\t\t\t\t'" . Date('Y-m-d') . "',\n\t\t\t\t\t\t\t'" . $_POST['FromLocation'] . "',\n\t\t\t\t\t\t\t'" . $_POST['ToLocation'] . "')";
     $ErrMsg = _('CRITICAL ERROR') . '! ' . _('Unable to enter Location Transfer record for') . ' ' . $_POST['StockID' . $i];
     if ($_POST['ReportType'] == 'Batch') {
         $resultLocShip = DB_query($sql2, $db, $ErrMsg);
     }
 }
 /*end while loop  */
 if ($YPos < $Bottom_Margin + $line_height) {
     PrintHeader($pdf, $YPos, $PageNumber, $Page_Height, $Top_Margin, $Left_Margin, $Page_Width, $Right_Margin, $Trf_ID);
 }
 /*Print out the grand totals */
 $pdfcode = $pdf->output();
 $len = strlen($pdfcode);
 if ($len <= 20) {
     $title = _('Print Stock Dispatch Report');
     include 'includes/header.inc';
     prnMsg(_('There were no items for the stock dispatch report'), 'error');
     echo "<br><a href='{$rootpath}/index.php?" . SID . "'>" . _('Back to the menu') . '</a>';
     include 'includes/footer.inc';
     exit;
 } else {
     header('Content-type: application/pdf');
     header("Content-Length: " . $len);
     header('Content-Disposition: inline; filename=StockDispatch.pdf');
开发者ID:bodi000,项目名称:weberp-cvs,代码行数:31,代码来源:StockDispatch.php

示例7: define

<?php

// +---------------------------------------------+
// |     Copyright  2010 - 2028 WeLive           |
// |     http://www.weentech.com                 |
// |     This file may not be redistributed.     |
// +---------------------------------------------+
define('AUTH', true);
include 'includes/welive.Core.php';
include BASEPATH . 'includes/welive.Admin.php';
if ($userinfo['usergroupid'] != 1) {
    exit;
}
$updates = Iif(ForceIncomingInt('check'), 1, 0);
PrintHeader($userinfo['username']);
echo '<div><ul>
<li>欢迎 <u>' . $userinfo['username'] . '</u> 进入管理面板! 为了确保系统安全, 请在关闭前点击 <a href="index.php?logout=1" onclick="return confirm(\'确定退出管理面板吗?\');">安全退出</a>!</li>
<li>隐私保护: <span class="note2">' . APP_NAME . '郑重承诺, 您在使用本系统时, ' . APP_NAME . '开发商不会收集您的任何信息</span>.</li>
<li>您在使用' . APP_NAME . '在线客服系统时有任何问题, 请访问: <a href="http://www.weentech.com/bbs/" target="_blank">闻泰网络</a>!</li>
</ul></div>
<BR>
<table border="0" cellpadding="0" cellspacing="0" class="normal" width="600">
<tr>
<td><b>程序名称</b></td>
<td><b>您现在的版本</b></td>
<td><b>最新版本</b></td>
</tr>
<tr>
<td><b>' . APP_NAME . '</b></td>
<td>' . APP_VERSION . '(UTF-8)免费版</td>
<td><span id="welive_latest_versioninfo"></span></td>
开发者ID:jkzleond,项目名称:welive,代码行数:31,代码来源:admin.home.php

示例8: Step2B

function Step2B()
{
    global $dbConn;
    // Connect to database.
    list($aDBInfo, $strError) = InitDatabase();
    // Return any errors.
    if ($strError) {
        return $strError;
    }
    // Execute the upgrade SQL script.
    if (!$_SESSION["upgrade.{$aDBInfo['type']}"]) {
        if (ExecuteSQL("./includes/upgrade.{$aDBInfo['type']}")) {
            // Mark us as having executed the SQL script.
            $_SESSION["upgrade.{$aDBInfo['type']}"] = TRUE;
        } else {
            // Couldn't execute install.sql.
            return "Could not execute <code>upgrade.{$aDBInfo['type']}</code>.<br /><b>Database says</b>: " . $dbConn->geterror();
        }
    }
    // Load the current configuration settings.
    $dbConn->query("SELECT content FROM configuration WHERE name='settings'");
    list($aConfig) = $dbConn->getresult();
    $aConfig = unserialize($aConfig);
    // Update settings.
    $aConfig['version'] = '0.16a';
    // Sanitize it for the database.
    $strSettings = $dbConn->sanitize(serialize($aConfig));
    $dbConn->query("DELETE FROM configuration WHERE name='settings'");
    $dbConn->query("INSERT INTO configuration(name, content) VALUES('settings', '{$strSettings}')");
    // What is the address of their forums?
    $strForums = substr($_SERVER['PHP_SELF'], 0, strpos($_SERVER['PHP_SELF'], 'setup/index.php')) . 'index.php';
    // Delete old cookies.
    $path = substr(pathinfo($_SERVER['PHP_SELF'], PATHINFO_DIRNAME), 0, strpos(pathinfo($_SERVER['PHP_SELF'], PATHINFO_DIRNAME), 'setup'));
    setcookie('activeuserid', '', time(), $path);
    setcookie('activepassword', '', time(), $path);
    setcookie('s', '', time(), $path);
    // Destroy the session.
    session_unset();
    session_destroy();
    // Tell the user it was a success.
    PrintHeader();
    ?>

<h1>Upgrade Successful!</h1>

<p>Your forums have been successfully upgraded from V0.15a to V0.16a. <b>You should delete the <code>setup</code> directory in your forums' path before continuing, as it is now a security risk.</b></p>
<p>You can visit your upgraded forums at this address:</p>
<blockquote><a href="<?php 
    echo $strForums;
    ?>
"><?php 
    echo htmlspecialchars("{$_SERVER['HTTP_HOST']}{$strForums}");
    ?>
</a></blockquote>
<p>If you or your users have any problems while using your upgraded community, stop by the <a href="http://www.ovbb.org/forums/forumdisplay.php?forumid=3">OvBB Project Forums</a> to seek support.</p>

<?php 
    PrintFooter();
}
开发者ID:spookdogg,项目名称:v1.0,代码行数:59,代码来源:upgrade.inc.php

示例9: define

// +---------------------------------------------+
// |     Copyright  2010 - 2028 WeLive           |
// |     http://www.weentech.com                 |
// |     This file may not be redistributed.     |
// +---------------------------------------------+
define('AUTH', true);
include 'includes/welive.Core.php';
include BASEPATH . 'includes/welive.Admin.php';
if ($userinfo['usergroupid'] != 1) {
    exit;
}
$action = ForceIncomingString('action', 'default');
$uid = $userinfo['userid'];
$ajaxpending = 'uid=' . $uid;
//需要动态变化, 用于将客服ID附加到AJAX URL
PrintHeader($userinfo['username'], 'comments');
echo '<script type="text/javascript">var ajaxpending = "' . $ajaxpending . '";</script>';
//用于AJAX
//########### DELETE COMMENTS ###########
if ($action == 'deletecomments') {
    $deletecommentids = $_POST['deletecommentids'];
    $page = ForceIncomingInt('p');
    $uid = ForceIncomingInt('u');
    for ($i = 0; $i < count($deletecommentids); $i++) {
        $DB->exe("DELETE FROM " . TABLE_PREFIX . "comment WHERE commentid = '" . ForceInt($deletecommentids[$i]) . "'");
    }
    GotoPage('admin.comments.php' . Iif($page, '?p=' . $page . Iif($uid, '&u=' . $uid), Iif($uid, '?u=' . $uid)), 1);
}
//########### FAST DELETE COMMENTS ###########
if ($action == 'fastdelete') {
    $days = ForceIncomingInt('days');
开发者ID:alucard263096,项目名称:KJ,代码行数:31,代码来源:admin.comments.php

示例10: PrintHeader

}
// ############################### DISPLAY UPGRADES #############################
$availableupgrades = 0;
if (file_exists(BASEPATH . 'upgrade/upgrade.php') and file_exists(BASEPATH . 'upgrade/version.php')) {
    $availableupgrades = 1;
}
if ($availableupgrades) {
    $updatestatus = '<span class=blue>已检测到升级程序, 请按提示进行升级!</span>';
} else {
    if ($upgradefinished) {
        $updatestatus = '<span class=green>系统升级已完成!</span>';
    } else {
        $updatestatus = '<span class=note>暂无可用的升级程序!</span>';
    }
}
PrintHeader($userinfo['username'], 'upgrade');
echo '<div>' . $updatestatus . '
<ul><li>请严格按升级说明进行系统升级, 升级说明一般随附在升级包中.</li>
<li>升级过程一般是先将升级包解压后, 设置FTP工具以 <span class=note>二进制方式</span> 上传到网站替换原文件, 然后在后台运行升级程序.</li>
<li>建议: 升级完成后删除upgrade目录内的所有文件.</li>
</ul>
</div>';
BR(3);
echo '<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
<td width="70%" valign="top" align="center">';
if ($availableupgrades) {
    include BASEPATH . 'upgrade/version.php';
    $disableupgrade = 'Disabled';
    $new = str_replace('.', '', $WeLiveNewVersion);
    $old = str_replace('.', '', APP_VERSION);
开发者ID:alucard263096,项目名称:NCMI,代码行数:31,代码来源:admin.upgrade.php

示例11: define

// |     This file may not be redistributed.     |
// +---------------------------------------------+
define('AUTH', true);
include 'includes/welive.Core.php';
include BASEPATH . 'includes/welive.Admin.php';
if ($userinfo['usergroupid'] != 1) {
    exit;
}
$action = ForceIncomingString('action', 'default');
if (IsPost('updateusers')) {
    $action = 'updateusers';
}
if (IsPost('deleteusers')) {
    $action = 'deleteusers';
}
PrintHeader($userinfo['username'], 'users');
$cache_errortitle = '更新客服缓存错误';
$cache_errors = '用户信息已保存到数据库, 但更新在线客服缓存文件失败, 前台客服小面板状态无法更新! 请检查cache/目录是否存在或可写?';
//########### UPDATE OR ADD USER ###########
if ($action == 'insertuser' or $action == 'updateuser') {
    $userid = ForceIncomingInt('userid');
    $usergroupid = ForceIncomingInt('usergroupid');
    $activated = ForceIncomingInt('activated');
    $displayorder = ForceIncomingInt('displayorder');
    $username = ForceIncomingString('username');
    $password = ForceIncomingString('password');
    $passwordconfirm = ForceIncomingString('passwordconfirm');
    $userfrontname = ForceIncomingString('userfrontname');
    $userfrontename = ForceIncomingString('userfrontename');
    $infocn = ForceIncomingString('infocn');
    $infoen = ForceIncomingString('infoen');
开发者ID:alucard263096,项目名称:KJ,代码行数:31,代码来源:admin.users.php

示例12: define

// |     This file may not be redistributed.     |
// +---------------------------------------------+
define('AUTH', true);
include 'includes/welive.Core.php';
include BASEPATH . 'includes/welive.Admin.php';
if ($userinfo['usergroupid'] != 1) {
    exit;
}
$action = ForceIncomingString('action', 'default');
if (IsPost('updatemsgs')) {
    $action = 'updatemsgs';
}
if (IsPost('deletemsgs')) {
    $action = 'deletemsgs';
}
PrintHeader($userinfo['username'], 'automsg');
//########### UPDATE MESSAGES ###########
if ($action == 'updatemsgs') {
    $msgids = $_POST['msgids'];
    $ordernums = $_POST['ordernums'];
    $activateds = $_POST['activateds'];
    $msgs = $_POST['msgs'];
    $page = ForceIncomingInt('p');
    for ($i = 0; $i < count($msgids); $i++) {
        $DB->exe("UPDATE " . TABLE_PREFIX . "automsg SET ordernum = '" . ForceInt($ordernums[$i]) . "',\r\n\t\tactivated = '" . ForceInt($activateds[$i]) . "',\r\n\t\tmsg = '" . ForceString($msgs[$i]) . "'\r\n\t\tWHERE msgid = '" . ForceInt($msgids[$i]) . "'");
    }
    GotoPage('admin.automsg.php' . Iif($page, '?p=' . $page), 1);
}
//########### DELETE MESSAGES ###########
if ($action == 'deletemsgs') {
    $deletemsgids = $_POST['deletemsgids'];
开发者ID:alucard263096,项目名称:KJ,代码行数:31,代码来源:admin.automsg.php

示例13: number_format

            $code = $myrow[0];
        } else {
            $code = $myrow[0];
            $pdf->addTextWrap(50, $YPos, 90, $FontSize, $myrow[0], 'left');
            $pdf->addTextWrap(145, $YPos, 215, $FontSize, $myrow[1], 'left');
            $pdf->addTextWrap(350, $YPos, 50, $FontSize, number_format($myrow[2], 2), 'right');
            $pdf->addTextWrap(430, $YPos, 50, $FontSize, $dateprice, 'left');
            $pdf->addTextWrap(510, $YPos, 40, $FontSize, $myrow[4], 'left');
        }
        if ($YPos < $Bottom_Margin + $line_height) {
            PrintHeader($pdf, $YPos, $PageNumber, $Page_Height, $Top_Margin, $Left_Margin, $Page_Width, $Right_Margin, $Supp, $Categoryname, $Currency, $DatePrice);
        }
    }
    /*end while loop  */
    if ($YPos < $Bottom_Margin + $line_height) {
        PrintHeader($pdf, $YPos, $PageNumber, $Page_Height, $Top_Margin, $Left_Margin, $Page_Width, $Right_Margin, $Supp, $Categoryname, $Currency, $DatePrice);
    }
    $pdfcode = $pdf->output();
    header('Content-type: application/pdf');
    header("Content-Length: " . $len);
    header('Content-Disposition: inline; filename=Supplier Price List.pdf');
    header('Expires: 0');
    header('Cache-Control: private, post-check=0, pre-check=0');
    header('Pragma: public');
    $pdf->Output('SuppPriceList.pdf', 'I');
} else {
    /*The option to print PDF was not hit so display form */
    $title = _('Supplier Price List');
    include 'includes/header.inc';
    echo '<p class="page_title_text"><img src="' . $rootpath . '/css/' . $theme . '/images/inventory.png" title="' . _('Purchase') . '" alt="">' . ' ' . _('Supplier Price List') . '';
    echo '<div class="page_help_text">' . _('View the Price List from supplier') . '</div><br>';
开发者ID:stateless,项目名称:weberp-cvs,代码行数:31,代码来源:SuppPriceList.php

示例14: file_get_contents

    $pageTitle = "Афиша - Сергей Дикий";
    $pageActiveMenu = -1;
    $pageContent = file_get_contents("lib/data/promo.htm");
    $desc = $pageTitle;
} elseif (isset($_GET['лесоповал']) || $mod == 'lesopoval' || $mod == 'лесоповал') {
    header('Content-type: text/html; charset=utf-8');
    $pageTitle = "Лесоповал";
    $pageActiveMenu = -1;
    /*$pageContent = file_get_contents("lib/data/lesopoval.htm");*/
    $desc = $pageTitle;
    header('Content-type: text/html; charset=utf-8');
    PrintHeader($pageTitle, $pageActiveMenu, $desc);
    include "lib/data/lesopoval.tpl.php";
    //echo $pageContent;
    PrintFooter();
    die;
} elseif (isset($_GET['продюсирование']) || $mod == 'продюсирование' || $mod == 'production') {
    $pageTitle = "Продюсирование - Сергей Дикий";
    $pageActiveMenu = $mProduction;
    $pageContent = file_get_contents("lib/data/production.htm");
    $desc = $pageTitle;
} else {
    $pageTitle = "Сергей Дикий - Официальный Сайт";
    $pageActiveMenu = $mHome;
    $pageContent = file_get_contents("lib/data/main.htm");
    $desc = $pageTitle;
}
header('Content-type: text/html; charset=utf-8');
PrintHeader($pageTitle, $pageActiveMenu, $desc);
echo $pageContent;
PrintFooter();
开发者ID:nellka,项目名称:mebel,代码行数:31,代码来源:index.php

示例15: locale_number_format

                $pdf->addTextWrap(230, $YPos, 50, $FontSize, locale_number_format($ComponentNeeded, $myComponent['decimalplaces']), 'right');
                $pdf->addTextWrap(280, $YPos, 30, $FontSize, $myComponent['units'], 'left');
                $pdf->addTextWrap(310, $YPos, 50, $FontSize, locale_number_format($PrevisionShrinkage, $myComponent['decimalplaces']), 'right');
                $pdf->addTextWrap(360, $YPos, 30, $FontSize, $myComponent['units'], 'left');
                $YPos -= $line_height;
                if ($YPos < $Bottom_Margin + $line_height) {
                    PrintHeader($pdf, $YPos, $PageNumber, $Page_Height, $Top_Margin, $Left_Margin, $Page_Width, $Right_Margin, $WO, $Stockid, $myItem['description'], $QtyPending, $myItem['units'], $myItem['decimalplaces'], $ReportDate);
                }
            }
        }
        // Production Notes
        $pdf->addTextWrap($Xpos, $YPos - 50, 200, $FontSize, _('Incidences / Production Notes') . ':', 'left');
        $YPos -= 8 * $line_height;
        PrintFooterSlip($pdf, _('Components Ready By'), _('Item Produced By'), _('Quality Control By'), $YPos, $FontSize, false);
        if ($YPos < $Bottom_Margin + $line_height) {
            PrintHeader($pdf, $YPos, $PageNumber, $Page_Height, $Top_Margin, $Left_Margin, $Page_Width, $Right_Margin, $WO, $Stockid, $myItem['description'], $QtyPending, $myItem['units'], $myItem['decimalplaces'], $ReportDate);
        }
        $pdf->OutputD('WO-' . $WO . '-' . $StockId . '-' . Date('Y-m-d') . '.pdf');
        $pdf->__destruct();
    } else {
        $Title = _('WO Item production Slip');
        include 'includes/header.inc';
        prnMsg(_('There were no items with ready to produce'), 'info');
        prnMsg($sql);
        echo '<br /><a href="' . $RootPath . '/index.php">' . _('Back to the menu') . '</a>';
        include 'includes/footer.inc';
        exit;
    }
}
function PrintHeader(&$pdf, &$YPos, &$PageNumber, $Page_Height, $Top_Margin, $Left_Margin, $Page_Width, $Right_Margin, $WO, $StockId, $Description, $Qty, $UOM, $DecimalPlaces, $ReportDate)
{
开发者ID:fgaudenzi,项目名称:webERP-bootstrap,代码行数:31,代码来源:PrintWOItemSlip.php


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