本文整理汇总了PHP中print_document_link函数的典型用法代码示例。如果您正苦于以下问题:PHP print_document_link函数的具体用法?PHP print_document_link怎么用?PHP print_document_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了print_document_link函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: prt_link
function prt_link($row)
{
if ($row['type'] == ST_JOURNAL) {
$trans_type = ST_JOURNAL;
}
if ($row['type'] == ST_DISBURSEMENT) {
$trans_type = ST_DISBURSEMENT;
}
return print_document_link($row['type_no'], _("&Print"), true, $trans_type);
}
示例2: prt_link
function prt_link($row)
{
if (!isset($row['type'])) {
$row['type'] = $_POST['filterType'];
}
if ($row['type'] == ST_PURCHORDER || $row['type'] == ST_SALESORDER || $row['type'] == ST_SALESQUOTE || $row['type'] == ST_WORKORDER) {
return print_document_link($row['trans_no'], _("Print"), true, $row['type'], ICON_PRINT);
} else {
return print_document_link($row['trans_no'] . "-" . $row['type'], _("Print"), true, $row['type'], ICON_PRINT);
}
}
示例3: handle_report
function handle_report()
{
global $Ajax;
if (can_process()) {
$from = $_POST['TransFromDate'];
$to = $_POST['TransToDate'];
$typeId = $_POST['typeId'];
$accountId = $_POST['accountId'];
display_notification(_('Report successfully generated.'));
$arr = array($from, $to, $typeId, $accountId);
$trans_type = ST_SUBSIDIARY;
display_note(print_document_link($arr, _("&Print Report"), true, $trans_type));
} else {
display_notification(_('Report not generated, please contact the administrator.'));
}
$Ajax->activate('_page_body');
return;
}
示例4: prt_link
function prt_link($row)
{
if ($row['type'] == ST_SUPPAYMENT || $row['type'] == ST_BANKPAYMENT || $row['type'] == ST_SUPPCREDIT) {
return print_document_link($row['trans_no'] . "-" . $row['type'], _("Print Remittance"), true, ST_SUPPAYMENT, ICON_PRINT);
}
}
示例5: submenu_print
function submenu_print($title, $type, $number, $id = null, $email = 0, $extra = 0)
{
display_note(print_document_link($number, $title, true, $type, false, 'printlink', $id, $email, $extra), 0, 1);
}
示例6: display_notification_centered
$credit_no = $_GET['AddedID'];
$trans_type = ST_CUSTCREDIT;
display_notification_centered(_("Credit Note has been processed"));
display_note(get_customer_trans_view_str($trans_type, $credit_no, _("&View This Credit Note")), 0, 0);
display_note(print_document_link($credit_no . "-" . $trans_type, _("&Print This Credit Note"), true, $trans_type), 1);
display_note(print_document_link($credit_no . "-" . $trans_type, _("&Email This Credit Note"), true, $trans_type, false, "printlink", "", 1), 1);
display_note(get_gl_view_str($trans_type, $credit_no, _("View the GL &Journal Entries for this Credit Note")), 1);
hyperlink_params("{$path_to_root}/admin/attachments.php", _("Add an Attachment"), "filterType={$trans_type}&trans_no={$credit_no}");
display_footer_exit();
} elseif (isset($_GET['UpdatedID'])) {
$credit_no = $_GET['UpdatedID'];
$trans_type = ST_CUSTCREDIT;
display_notification_centered(_("Credit Note has been updated"));
display_note(get_customer_trans_view_str($trans_type, $credit_no, _("&View This Credit Note")), 0, 0);
display_note(print_document_link($credit_no . "-" . $trans_type, _("&Print This Credit Note"), true, $trans_type), 1);
display_note(print_document_link($credit_no . "-" . $trans_type, _("&Email This Credit Note"), true, $trans_type, false, "printlink", "", 1), 1);
display_note(get_gl_view_str($trans_type, $credit_no, _("View the GL &Journal Entries for this Credit Note")), 1);
display_footer_exit();
} else {
check_edit_conflicts();
}
//-----------------------------------------------------------------------------
function can_process()
{
global $Refs;
/*===================MOODLEARNING===========================*/
if (!get_post('custom_num')) {
display_error(_("You must enter a Credit Memo No."));
set_focus('custom_num');
return false;
}
示例7: db_escape
$sql = "SELECT trans_type_from, trans_no_from FROM " . TB_PREF . "cust_allocations\n\t\t\tWHERE trans_type_to=" . ST_SALESINVOICE . " AND trans_no_to=" . db_escape($invoice_no);
$result = db_query($sql, "could not retrieve customer allocation");
$row = db_fetch($result);
if ($row === false) {
hyperlink_params("{$path_to_root}/sales/customer_payments.php", _("Entry &customer payment for this invoice"), "SInvoice=" . $invoice_no);
}
hyperlink_params("{$path_to_root}/admin/attachments.php", _("Add an Attachment"), "filterType={$trans_type}&trans_no={$invoice_no}");
display_footer_exit();
} elseif (isset($_GET['UpdatedID'])) {
$invoice_no = $_GET['UpdatedID'];
$trans_type = ST_SALESINVOICE;
display_notification_centered(sprintf(_('Sales Invoice # %d has been updated.'), $invoice_no));
display_note(get_trans_view_str(ST_SALESINVOICE, $invoice_no, _("&View This Invoice")));
echo '<br>';
display_note(print_document_link($invoice_no . "-" . $trans_type, _("&Print This Invoice"), true, ST_SALESINVOICE));
display_note(print_document_link($invoice_no . "-" . $trans_type, _("&Email This Invoice"), true, ST_SALESINVOICE, false, "printlink", "", 1), 1);
hyperlink_no_params($path_to_root . "/sales/inquiry/customer_inquiry.php", _("Select Another &Invoice to Modify"));
display_footer_exit();
} elseif (isset($_GET['RemoveDN'])) {
for ($line_no = 0; $line_no < count($_SESSION['Items']->line_items); $line_no++) {
$line =& $_SESSION['Items']->line_items[$line_no];
if ($line->src_no == $_GET['RemoveDN']) {
$line->quantity = $line->qty_done;
$line->qty_dispatched = 0;
}
}
unset($line);
// Remove also src_doc delivery note
$sources =& $_SESSION['Items']->src_docs;
unset($sources[$_GET['RemoveDN']]);
}
示例8: label_cell
label_cell($preview_order_str);
label_cell($myrow["reference"]);
label_cell($date, "nowrap");
label_cell($due_date_str, "nowrap");
if ($_POST['customer_id'] == reserved_words::get_all()) {
label_cell($myrow["CustName"]);
}
label_cell($branch_name);
if ($_POST['customer_id'] == reserved_words::get_all()) {
label_cell($myrow["CustCurrCode"]);
}
display_debit_or_credit_cells($myrow['type'] == 11 || $myrow['type'] == 12 || $myrow['type'] == 2 ? -$myrow["TotalAmount"] : $myrow["TotalAmount"]);
echo $gl_trans_str;
label_cell($edit_page == '' ? '' : "<a href='{$edit_page}'>" . tr('Edit') . '</a>');
if ($myrow['type'] == 10 || $myrow['type'] == 11) {
label_cell(print_document_link($myrow['trans_no'], tr("Print"), true, $myrow['type']));
} else {
label_cell("");
}
if ($credit_me_str != "") {
label_cell($credit_me_str, "nowrap");
} else {
label_cell('');
}
end_row();
$j++;
if ($j == 12) {
$j = 1;
table_header($th);
}
//end of page full new headings if
示例9: print_hidden_script
$invoice_no = $_GET['AddedID'];
$trans_type = 10;
print_hidden_script(10);
display_notification(tr("Selected deliveries has been processed"), true);
display_note(get_customer_trans_view_str($trans_type, $invoice_no, tr("View This Invoice")), 0, 1);
display_note(print_document_link($invoice_no, tr("Print This Invoice"), true, 10));
display_note(get_gl_view_str($trans_type, $invoice_no, tr("View the GL Journal Entries for this Invoice")), 1);
hyperlink_params("{$path_to_root}/sales/inquiry/sales_deliveries_view.php", tr("Select Another Delivery For Invoicing"), "OutstandingOnly=1");
display_footer_exit();
} elseif (isset($_GET['UpdatedID'])) {
$invoice_no = $_GET['UpdatedID'];
print_hidden_script(10);
display_notification_centered(sprintf(tr('Sales Invoice # %d has been updated.'), $invoice_no));
display_note(get_trans_view_str(10, $invoice_no, tr("View This Invoice")));
echo '<br>';
display_note(print_document_link($invoice_no, tr("Print This Invoice"), true, 10));
hyperlink_no_params($path_to_root . "/sales/inquiry/customer_inquiry.php", tr("Select A Different Invoice to Modify"));
display_footer_exit();
} elseif (isset($_GET['RemoveDN'])) {
for ($line_no = 0; $line_no < count($_SESSION['Items']->line_items); $line_no++) {
$line =& $_SESSION['Items']->line_items[$line_no];
if ($line->src_no == $_GET['RemoveDN']) {
$line->quantity = $line->qty_done;
$line->qty_dispatched = 0;
}
}
unset($line);
}
//-----------------------------------------------------------------------------
if (isset($_GET['DeliveryNumber']) && $_GET['DeliveryNumber'] > 0 || isset($_GET['BatchInvoice'])) {
processing_start();
示例10: check_db_has_stock_items
check_db_has_stock_items(_("There are no items defined in the system."));
check_db_has_customer_branches(_("There are no customers, or there are no customers with branches. Please define customers and customer branches."));
//-----------------------------------------------------------------------------
if (list_updated('branch_id')) {
// when branch is selected via external editor also customer can change
$br = get_branch(get_post('branch_id'));
$_POST['customer_id'] = $br['debtor_no'];
$Ajax->activate('customer_id');
}
if (isset($_GET['AddedID'])) {
$credit_no = $_GET['AddedID'];
$trans_type = ST_CUSTCREDIT;
display_notification_centered(sprintf(_("Credit Note # %d has been processed"), $credit_no));
display_note(get_customer_trans_view_str($trans_type, $credit_no, _("&View this credit note")), 0, 1);
display_note(print_document_link($credit_no . "-" . $trans_type, _("&Print This Credit Invoice"), true, ST_CUSTCREDIT), 0, 1);
display_note(print_document_link($credit_no . "-" . $trans_type, _("&Email This Credit Invoice"), true, ST_CUSTCREDIT, false, "printlink", "", 1), 0, 1);
display_note(get_gl_view_str($trans_type, $credit_no, _("View the GL &Journal Entries for this Credit Note")));
hyperlink_params($_SERVER['PHP_SELF'], _("Enter Another &Credit Note"), "NewCredit=yes");
hyperlink_params("{$path_to_root}/admin/attachments.php", _("Add an Attachment"), "filterType={$trans_type}&trans_no={$credit_no}");
display_footer_exit();
} else {
check_edit_conflicts();
}
//--------------------------------------------------------------------------------
function line_start_focus()
{
global $Ajax;
$Ajax->activate('items_table');
set_focus('_stock_id_edit');
}
//-----------------------------------------------------------------------------
示例11: prt_link
function prt_link($row)
{
if ($row['type'] == ST_CUSTPAYMENT || $row['type'] == ST_BANKDEPOSIT) {
return print_document_link($row['trans_no'] . "-" . $row['type'], _("Print Receipt"), true, ST_CUSTPAYMENT, ICON_PRINT);
} elseif ($row['type'] == ST_BANKPAYMENT) {
// bank payment printout not defined yet.
return '';
} else {
return print_document_link($row['trans_no'] . "-" . $row['type'], _("Print"), true, $row['type'], ICON_PRINT);
}
}
示例12: display_note
display_note(print_document_link($dispatch_no, _("&Print Delivery Note"), true, ST_CUSTDELIVERY));
display_note(print_document_link($dispatch_no, _("&Email Delivery Note"), true, ST_CUSTDELIVERY, false, "printlink", "", 1), 1, 1);
display_note(print_document_link($dispatch_no, _("P&rint as Packing Slip"), true, ST_CUSTDELIVERY, false, "printlink", "", 0, 1));
display_note(print_document_link($dispatch_no, _("E&mail as Packing Slip"), true, ST_CUSTDELIVERY, false, "printlink", "", 1, 1), 1);
display_note(get_gl_view_str(13, $dispatch_no, _("View the GL Journal Entries for this Dispatch")), 1);
hyperlink_params("{$path_to_root}/sales/customer_invoice.php", _("Invoice This Delivery"), "DeliveryNumber={$dispatch_no}");
hyperlink_params("{$path_to_root}/sales/inquiry/sales_orders_view.php", _("Select Another Order For Dispatch"), "OutstandingOnly=1");
display_footer_exit();
} elseif (isset($_GET['UpdatedID'])) {
$delivery_no = $_GET['UpdatedID'];
display_notification_centered(sprintf(_('Delivery Note # %d has been updated.'), $delivery_no));
display_note(get_trans_view_str(ST_CUSTDELIVERY, $delivery_no, _("View this delivery")), 0, 1);
display_note(print_document_link($delivery_no, _("&Print Delivery Note"), true, ST_CUSTDELIVERY));
display_note(print_document_link($delivery_no, _("&Email Delivery Note"), true, ST_CUSTDELIVERY, false, "printlink", "", 1), 1, 1);
display_note(print_document_link($delivery_no, _("P&rint as Packing Slip"), true, ST_CUSTDELIVERY, false, "printlink", "", 0, 1));
display_note(print_document_link($delivery_no, _("E&mail as Packing Slip"), true, ST_CUSTDELIVERY, false, "printlink", "", 1, 1), 1);
hyperlink_params($path_to_root . "/sales/customer_invoice.php", _("Confirm Delivery and Invoice"), "DeliveryNumber={$delivery_no}");
hyperlink_params($path_to_root . "/sales/inquiry/sales_deliveries_view.php", _("Select A Different Delivery"), "OutstandingOnly=1");
display_footer_exit();
}
//-----------------------------------------------------------------------------
if (isset($_GET['OrderNumber']) && $_GET['OrderNumber'] > 0) {
$ord = new Cart(ST_SALESORDER, $_GET['OrderNumber'], true);
if ($ord->count_items() == 0) {
hyperlink_params($path_to_root . "/sales/inquiry/sales_orders_view.php", _("Select a different sales order to delivery"), "OutstandingOnly=1");
die("<br><b>" . _("This order has no items. There is nothing to delivery.") . "</b>");
}
// Adjust Shipping Charge based upon previous deliveries TAM
adjust_shipping_charge($ord, $_GET['OrderNumber']);
$_SESSION['Items'] = $ord;
copy_from_cart();
示例13: print_hidden_script
if (isset($_GET['AddedID'])) {
$credit_no = $_GET['AddedID'];
$trans_type = 11;
print_hidden_script(11);
display_notification_centered(tr("Credit Note has been processed"));
display_note(get_customer_trans_view_str($trans_type, $credit_no, tr("View This Credit Note")), 0, 0);
display_note(print_document_link($credit_no, tr("Print This Credit Note"), true, 11), 1);
display_note(get_gl_view_str($trans_type, $credit_no, tr("View the GL Journal Entries for this Credit Note")), 1);
display_footer_exit();
} elseif (isset($_GET['UpdatedID'])) {
$credit_no = $_GET['UpdatedID'];
$trans_type = 11;
print_hidden_script(11);
display_notification_centered(tr("Credit Note has been updated"));
display_note(get_customer_trans_view_str($trans_type, $credit_no, tr("View This Credit Note")), 0, 0);
display_note(print_document_link($credit_no, tr("Print This Credit Note"), true, 11), 1);
display_note(get_gl_view_str($trans_type, $credit_no, tr("View the GL Journal Entries for this Credit Note")), 1);
display_footer_exit();
}
//-----------------------------------------------------------------------------
function can_process()
{
if (!is_date($_POST['CreditDate'])) {
display_error(tr("The entered date is invalid."));
set_focus('CreditDate');
return false;
} elseif (!is_date_in_fiscalyear($_POST['CreditDate'])) {
display_error(tr("The entered date is not in fiscal year."));
set_focus('CreditDate');
return false;
}
示例14: prt_link
function prt_link($row)
{
return print_document_link($row['invoice_no'], _("&Print"), true, ST_VOUCHER);
}
示例15: array
} else {
$th = array(tr("#"), tr("Reference"), tr("Supplier"), tr("Supplier's Reference"), tr("Order Date"), tr("Currency"), tr("Order Total"), "");
}
table_header($th);
$j = 1;
$k = 0;
//row colour counter
while ($myrow = db_fetch($result)) {
alt_table_row_color($k);
$date = sql2date($myrow["ord_date"]);
label_cell(get_trans_view_str(systypes::po(), $myrow["order_no"]));
label_cell($myrow["reference"]);
label_cell($myrow["supp_name"]);
if (isset($_POST['StockLocation']) && $_POST['StockLocation'] == reserved_words::get_all()) {
label_cell($myrow["location_name"]);
}
label_cell($myrow["requisition_no"]);
label_cell($date);
label_cell($myrow["curr_code"]);
amount_cell($myrow["OrderValue"]);
label_cell(print_document_link($myrow['order_no'], tr("Print")));
end_row();
$j++;
if ($j == 12) {
$j = 1;
table_header($th);
}
}
end_table(2);
//---------------------------------------------------------------------------------------------------
end_page();