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


PHP pager_link函数代码示例

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


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

示例1: edit_link

function edit_link($row)
{
    if (@$_GET['popup']) {
        return '';
    }
    return pager_link(_("Edit"), "/purchasing/po_entry_items.php?" . SID . "ModifyOrderNumber=" . $row["order_no"], ICON_EDIT);
}
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:7,代码来源:po_search_completed.php

示例2: edit_link

function edit_link($row)
{
    //return $row["closed"] ?  '' :
    //	pager_link(_("Edit"),
    //		"/dimensions/dimension_entry.php?trans_no=" . $row["id"], ICON_EDIT);
    return pager_link(_("Edit"), "/dimensions/dimension_entry.php?trans_no=" . $row["id"], ICON_EDIT);
}
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:7,代码来源:search_dimensions.php

示例3: alloc_link

function alloc_link($row)
{
    if (($row["type"] == ST_BANKPAYMENT || $row["type"] == ST_SUPPCREDIT || $row["type"] == ST_SUPPAYMENT) && -$row["TotalAmount"] - $row["Allocated"] >= 0) {
        return pager_link(_("Allocations"), "/purchasing/allocations/supplier_allocate.php?trans_no=" . $row["trans_no"] . "&trans_type=" . $row["type"] . "&supplier_id=" . $row["supplier_id"], ICON_ALLOC);
    } elseif ($row["type"] == ST_SUPPINVOICE && $row["TotalAmount"] - $row["Allocated"] > 0) {
        return pager_link(_("Pay"), "/purchasing/supplier_payment.php?supplier_id=" . $row["supplier_id"] . "&PInvoice=" . $row["trans_no"], ICON_MONEY);
    } else {
        return '';
    }
}
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:10,代码来源:supplier_allocation_inquiry.php

示例4: edit_link

function edit_link($row)
{
    global $editors;
    $ok = true;
    if ($row['type'] == ST_SALESINVOICE) {
        $myrow = get_customer_trans($row["type_no"], $row["type"]);
        if ($myrow['alloc'] != 0 || get_voided_entry(ST_SALESINVOICE, $row["type_no"]) !== false) {
            $ok = false;
        }
    }
    return isset($editors[$row["type"]]) && !is_closed_trans($row["type"], $row["type_no"]) && $ok ? pager_link(_("Edit"), sprintf($editors[$row["type"]], $row["type_no"], $row["type"]), ICON_EDIT) : '';
}
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:12,代码来源:journal_inquiry.php

示例5: alloc_link

function alloc_link($row)
{
    $link = pager_link(_("Allocation"), "/sales/allocations/customer_allocate.php?trans_no=" . $row["trans_no"] . "&trans_type=" . $row["type"] . "&debtor_no=" . $row["debtor_no"], ICON_ALLOC);
    if ($row["type"] == ST_CUSTCREDIT && $row['TotalAmount'] > 0) {
        /*its a credit note which could have an allocation */
        return $link;
    } elseif (($row["type"] == ST_CUSTPAYMENT || $row["type"] == ST_BANKDEPOSIT) && floatcmp($row['TotalAmount'], $row['Allocated']) >= 0) {
        /*its a receipt  which could have an allocation*/
        return $link;
    } elseif ($row["type"] == ST_CUSTPAYMENT && $row['TotalAmount'] <= 0) {
        /*its a negative receipt */
        return '';
    } elseif ($row["type"] == ST_SALESINVOICE && $row['TotalAmount'] - $row['Allocated'] > 0) {
        return pager_link(_("Payment"), "/sales/customer_payments.php?customer_id=" . $row["debtor_no"] . "&SInvoice=" . $row["trans_no"], ICON_MONEY);
    }
}
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:16,代码来源:customer_allocation_inquiry.php

示例6: pager

/**
 * Creates a basic link bar for a given paginator.
 * 
 * Options :
 * - param_name : the routing name for the paginator (default : page)
 * - window_size : the number of pages to show around the current page (default : 2)
 * - show_anchors : whether or not the first and last pages should be shown (default : true)
 * - link_to_current_page : whether or not the current page should be linked to (default : false)
 * - params : any additional routing parameters for page URLs
 */
function pager($paginator, $options = array(), $html_options = array())
{
    $param_name = !isset($options['param_name']) ? 'page' : $options['param_name'];
    $window_size = !isset($options['window_size']) ? 2 : $options['window_size'];
    $show_anchors = !isset($options['show_anchors']) ? True : $options['show_anchors'];
    $params = !isset($options['params']) ? array() : $options['params'];
    $link_to_current_page = !isset($options['link_to_current_page']) ? array() : $options['link_to_current_page'];
    $current_page = $paginator->currentPage;
    $page_count = $paginator->pageCount();
    $window_pages = $paginator->windowPages($window_size);
    $wp_count = count($window_pages);
    $first = 1;
    $last = $page_count;
    $html = '';
    if ($show_anchors && ($wp_first = $window_pages[0]) != $first) {
        $html .= pager_link($first, $param_name, $params, $html_options);
        if ($wp_first - $first > 1) {
            $html .= '...';
        }
        $html .= ' ';
    }
    foreach ($window_pages as $page) {
        if ($current_page == $page && !$link_to_current_page) {
            $html .= $page;
        } else {
            $html .= pager_link($page, $param_name, $params, $html_options);
        }
        $html .= ' ';
    }
    if ($show_anchors && ($wp_last = $window_pages[$wp_count - 1]) != $last) {
        if ($last - $wp_last > 1) {
            $html .= '...';
        }
        $html .= pager_link($last, $param_name, $params, $html_options);
    }
    return $html;
}
开发者ID:BackupTheBerlios,项目名称:stato-svn,代码行数:47,代码来源:pager_helper.php

示例7: costs_link

function costs_link($row)
{
    /*
    	return $row["closed"] || !$row["released"] ? '' :
    		pager_link(_('Costs'),
    			"/gl/gl_bank.php?NewPayment=1&PayType=" 
    			.PT_WORKORDER. "&PayPerson=" .$row["id"]);
    */
    return $row["closed"] || !$row["released"] ? '' : pager_link(_('Costs'), "/manufacturing/work_order_costs.php?trans_no=" . $row["id"]);
}
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:10,代码来源:search_work_orders.php

示例8: edit_link

function edit_link($row)
{
    if (@$_GET['popup'] || get_voided_entry($row['type'], $row["trans_no"]) || is_closed_trans($row['type'], $row["trans_no"])) {
        return '';
    }
    $str = '';
    switch ($row['type']) {
        case ST_SALESINVOICE:
            $str = "/sales/customer_invoice.php?ModifyInvoice=" . $row['trans_no'];
            break;
        case ST_CUSTCREDIT:
            if ($row['order_'] == 0) {
                // free-hand credit note
                $str = "/sales/credit_note_entry.php?ModifyCredit=" . $row['trans_no'];
            } else {
                // credit invoice
                $str = "/sales/customer_credit_invoice.php?ModifyCredit=" . $row['trans_no'];
            }
            break;
        case ST_CUSTDELIVERY:
            $str = "/sales/customer_delivery.php?ModifyDelivery=" . $row['trans_no'];
            break;
        case ST_CUSTPAYMENT:
            $str = "/sales/customer_payments.php?trans_no=" . $row['trans_no'];
            break;
    }
    return $str ? pager_link(_('Edit'), $str, ICON_EDIT) : '';
}
开发者ID:nativebandung,项目名称:frontaccounting,代码行数:28,代码来源:customer_inquiry.php

示例9: receive_link

function receive_link($row)
{
    return pager_link(_("Receive"), "/purchasing/po_receive_items.php?PONumber=" . $row["order_no"], ICON_RECEIVE);
}
开发者ID:M-Shahbaz,项目名称:FA,代码行数:4,代码来源:po_search.php

示例10: credit_link

function credit_link($row)
{
    if (@$_GET['popup']) {
        return '';
    }
    return $row['type'] == ST_SUPPINVOICE && $row["TotalAmount"] - $row["Allocated"] > 0 ? pager_link(_("Credit This"), "/purchasing/supplier_credit.php?New=1&invoice_no=" . $row['trans_no'], ICON_CREDIT) : '';
}
开发者ID:M-Shahbaz,项目名称:FA,代码行数:7,代码来源:supplier_inquiry.php

示例11: invoice_link

function invoice_link($row)
{
    return $row["Outstanding"] == 0 ? '' : pager_link(_('Invoice'), "/sales/customer_invoice.php?DeliveryNumber=" . $row['trans_no'], ICON_DOC);
}
开发者ID:M-Shahbaz,项目名称:FA,代码行数:4,代码来源:sales_deliveries_view.php

示例12: select_link

function select_link($row)
{
    return pager_link($row["parent"] . " - " . $row["description"], "/manufacturing/manage/bom_edit.php?stock_id=" . $row["parent"]);
}
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:4,代码来源:where_used_inquiry.php

示例13: alloc_link

function alloc_link($row)
{
    return pager_link(_("Allocate"), "/sales/allocations/customer_allocate.php?trans_no=" . $row["trans_no"] . "&trans_type=" . $row["type"] . "&debtor_no=" . $row["debtor_no"], ICON_ALLOC);
}
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:4,代码来源:customer_allocation_main.php

示例14: order_link

function order_link($row)
{
    return pager_link(_("Sales Order"), "/sales/sales_order_entry.php?NewQuoteToSalesOrder=" . $row['order_no'], ICON_DOC);
}
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:4,代码来源:sales_orders_view.php

示例15: edit_link

function edit_link($row)
{
    $str = '';
    if (@$_GET['popup']) {
        return '';
    }
    switch ($row['type']) {
        case ST_SALESINVOICE:
            if (get_voided_entry(ST_SALESINVOICE, $row["trans_no"]) === false && $row['Allocated'] == 0) {
                $str = "/sales/customer_invoice.php?ModifyInvoice=" . $row['trans_no'];
            }
            break;
        case ST_CUSTCREDIT:
            if (get_voided_entry(ST_CUSTCREDIT, $row["trans_no"]) === false && $row['Allocated'] == 0) {
                if ($row['order_'] == 0) {
                    // free-hand credit note
                    $str = "/sales/credit_note_entry.php?ModifyCredit=" . $row['trans_no'];
                } else {
                    // credit invoice
                    $str = "/sales/customer_credit_invoice.php?ModifyCredit=" . $row['trans_no'];
                }
            }
            break;
        case ST_CUSTDELIVERY:
            if (get_voided_entry(ST_CUSTDELIVERY, $row["trans_no"]) === false) {
                $str = "/sales/customer_delivery.php?ModifyDelivery=" . $row['trans_no'];
            }
            break;
        case ST_CUSTPAYMENT:
            if (get_voided_entry(ST_CUSTPAYMENT, $row["trans_no"]) === false) {
                $str = "/sales/customer_payments.php?trans_no=" . $row['trans_no'];
            }
            break;
    }
    if ($str != "" && !is_closed_trans($row['type'], $row["trans_no"])) {
        return pager_link(_('Edit'), $str, ICON_EDIT);
    }
    return '';
}
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:39,代码来源:customer_inquiry.php


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