本文整理汇总了PHP中SSP::get_branchname方法的典型用法代码示例。如果您正苦于以下问题:PHP SSP::get_branchname方法的具体用法?PHP SSP::get_branchname怎么用?PHP SSP::get_branchname使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SSP
的用法示例。
在下文中一共展示了SSP::get_branchname方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
{
$where1 = ' AND is_deleted = 1';
$where2 = ' where is_deleted = 1';
}
else
{
$where1 = ' AND is_deleted = 0';
$where2 = ' where is_deleted = 0';
}
$columns = array(
array( 'db' => 'prequistionno', 'dt' => 0 ,'field' => 'prequistionno'),
array( 'db' => 'reg_date', 'dt' => 1 ,'field' => 'reg_date'),
array( 'db' => 'branch_id', 'dt' => 2,'field' => 'branch_id','formatter' => function( $d, $row ) {
return SSP::get_branchname($d);
} ),
array( 'db' => 'customername', 'dt' =>3 ,'field' => 'customername'),
array( 'db' => 'phone', 'dt' => 4 ,'field' => 'phone'),
array( 'db' => 'email', 'dt' => 5 ,'field' => 'email'),
array( 'db' => 'id', 'dt' => 6 ,'field' => 'id','formatter' => function ( $d, $row) {
$val = SSP::get_prequistions_details($d);
if($val[0]['po_generate_type'] == 'Auotmatic'){$cn = '<span class="label label-danger">'.$val[0]['ref_no'].' </span>';}
elseif($val[0]['po_generate_type'] == 'Manual'){$cn = '<span class="label label-success">'.$val[0]['ref_no'].' </span>';}
else{$cn = '<span class="label label-warning">'.$val[0]['ref_no'].' </span>';}
if(!empty($val[0]['ref_no'])) return $cn;
} ),
array( 'db' => 'id', 'dt' => 7,'field' => 'id' ,'formatter' => function ( $d, $row) {