本文整理汇总了PHP中SSP::get_branch_name方法的典型用法代码示例。如果您正苦于以下问题:PHP SSP::get_branch_name方法的具体用法?PHP SSP::get_branch_name怎么用?PHP SSP::get_branch_name使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SSP
的用法示例。
在下文中一共展示了SSP::get_branch_name方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
elseif($val == 3)
{
$where1 = ' AND del.is_deleted = 1';
$where2 = ' where del.is_deleted = 1';
}
else
{
$where1 = ' AND del.is_deleted = 0';
$where2 = ' where del.is_deleted = 0';
}
$columns = array(
array( 'db' => 'del.delivery_order_no', 'dt' => 0 , 'field' => 'delivery_order_no'),
array( 'db' => 'del.delivery_order_date', 'dt' => 1 , 'field' => 'delivery_order_date'),
array( 'db' => 'del.branch_id', 'dt' => 2, 'formatter' => function( $d, $row ) {
return SSP::get_branch_name($d);
} , 'field' => 'branch_id'),
array( 'db' => 'cus.customername', 'dt' => 3 , 'field' => 'customername'),
array( 'db' => 'del.delivery_address', 'dt' => 4 , 'field' => 'delivery_address'),
array( 'db' => 'del.customer_address', 'dt' => 5 , 'field' => 'customer_address'),
array( 'db' => 'del.attn', 'dt' => 6, 'formatter' => function( $d, $row ) {
return SSP::get_attn_name($d);
} , 'field' => 'attn'),
array( 'db' => 'del.phone', 'dt' => 7 , 'field' => 'phone'),
array( 'db' => 'del.email', 'dt' => 8 , 'field' => 'email' ),
array( 'db' => 'del.salesorder_id', 'dt' => 9 , 'field' => 'salesorder_id' ),
array( 'db' => 'del.quotationno', 'dt' => 10 , 'field' => 'quotationno' ),
array( 'db' => 'del.ref_no', 'dt' => 11 , 'field' => 'ref_no'),
array( 'db' => 'del.id', 'dt' => 12 ,'formatter' => function ( $d, $row) {