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


PHP Contract::get_contract_values_detailview方法代码示例

本文整理汇总了PHP中Contract::get_contract_values_detailview方法的典型用法代码示例。如果您正苦于以下问题:PHP Contract::get_contract_values_detailview方法的具体用法?PHP Contract::get_contract_values_detailview怎么用?PHP Contract::get_contract_values_detailview使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Contract的用法示例。


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

示例1: display


//.........这里部分代码省略.........
       $template = str_replace("GRIDLINE",     ($gridline) ? $gridline : 0);
       $template = str_replace("IMAGE_PATH",   $image_path);
       $template = str_replace("PRINT_URL",   "index.php?".$GLOBALS['request_string']);*/
     // $template = str_replace("{STYLE}",    $style,$template);
     //$template = str_replace("{STYLE_FONT}",    $style_font, $template);
     $template = str_replace("{ID}", $row['id'], $template);
     $template = str_replace("{ASSIGNED_TO}", $row['assigned_user_name'], $template);
     $template = str_replace("{NAME}", $row['name'], $template);
     $template = str_replace("{NUMBER}", $row['number'], $template);
     $template = str_replace("{DATE}", $row['date'], $template);
     $template = str_replace("{MONTH}", $row['month'], $template);
     $template = str_replace("{YEAR}", $row['year'], $template);
     if (!empty($row['salutation_a'])) {
         $template = str_replace("{SALUTATION}", translate('xung_ho_dom', '', $row['salutation_a']), $template);
     } else {
         $template = str_replace("{SALUTATION}", '', $template);
     }
     $template = str_replace("{DAIDIENBENA}", $row['daidienbena'], $template);
     $template = str_replace("{DAIDIENBENB}", $row['daidienbenb'], $template);
     $template = str_replace("{POSITION_A}", translate('position_dom', '', $row['position_a']), $template);
     $template = str_replace("{ADDRESS_A}", $row['address_a'], $template);
     $template = str_replace("{PHONE_A}", $row['phone_a'], $template);
     $template = str_replace("{PHONE_B}", $row['phone_b'], $template);
     $template = str_replace("{FAX}", $row['fax'], $template);
     $template = str_replace("{MST_BENA}", $row['mst_bena'], $template);
     $template = str_replace("{BANK_NAME}", $row['bank_name'], $template);
     $template = str_replace("{ACCOUNT_NAME}", $row['account_name'], $template);
     $template = str_replace("{ACCOUNT_VND}", $row['account_vnd'], $template);
     $template = str_replace("{ACCOUNT_USD}", $row['account_usd'], $template);
     $template = str_replace("{SWIFT_CODE}", $row['account_usd'], $template);
     $template = str_replace("{BANK_ADDRESS}", $row['bank_address'], $template);
     $template = str_replace("{DAIDIENBENB_NAME}", $row['daidienbenb_name'], $template);
     if (!empty($row['salutation_b'])) {
         $template = str_replace("{SALUTATION_B}", translate('xung_ho_dom', '', $row['salutation_b']), $template);
     } else {
         $template = str_replace("{SALUTATION_B}", "", $template);
     }
     if (!empty($row->position_b)) {
         $template = str_replace("{POSITION_B}", translate('position_dom', '', $row['salutation_b']), $template);
     } else {
         $template = str_replace("{POSITION_B}", "", $template);
     }
     $template = str_replace("{ADDRESS_B}", $row['address_b'], $template);
     $template = str_replace("{MST_BENB}", $row['mst_benb'], $template);
     $template = str_replace("{PHONE_B}", $row['phone_b'], $template);
     $template = str_replace("{TOUR_NAME}", $row['tour_name'], $template);
     $template = str_replace("{TOUR_ID}", $row['tour_id'], $template);
     $template = str_replace("{PURPOSE}", $row['purpose'], $template);
     $template = str_replace("{KETHOP}", $row['associate'], $template);
     $template = str_replace("{START_DATE}", $row['start_date_contract'], $template);
     $template = str_replace("{END_DATE}", $row['end_date_contract'], $template);
     $template = str_replace("{TREPERCENT}", $row['trepercent'], $template);
     $template = str_replace("{TREPERCENT_1}", $row['trepercent_1'], $template);
     $template = str_replace("{NUM_OF_NIGHT}", $row['num_of_night'], $template);
     $template = str_replace("{NUM_OF_DATE}", $row['num_of_date'], $template);
     $template = str_replace("{SL_KHACH}", $row['sl_khach'], $template);
     /*$template = str_replace("DOTUOI",  $row->dotuoi);   
       $template = str_replace("TONG_SL_KHACH",  $row->tong_sl_khach);   
       $template = str_replace("GIA_TOUR",  $row->gia_tour);   
       $template = str_replace("THUE",  $row->thue);   
       $template = str_replace("THANHTIEN",  $row->thanhtien);*/
     $template = str_replace("{CONTRACT_VALUE}", $focus->get_contract_values_detailview($record), $template);
     $template = str_replace("{TONGTIEN}", number_format($row['tongtien'], '2', ',', '.'), $template);
     $template = str_replace("{BANGCHU}", $row['bangchu'], $template);
     $template = str_replace("{SL_KHACH_1}", $row['sl_khach_1'], $template);
     $template = str_replace("{GIA_TOUR_1}", number_format($row['gia_tour_1'], '2', ',', '.'), $template);
     $template = str_replace("{TIENTE}", translate('currency_dom', '', $row['tiente']), $template);
     $template = str_replace("{TIENTE_USD}", translate('currency_dom', '', $row['tiente_usd']), $template);
     $template = str_replace("{TIENTE_VND}", translate('currency_dom', '', $row['tiente_vnd']), $template);
     $template = str_replace("{TEN_NGANHANG}", $row['ten_nganhang'], $template);
     $template = str_replace("{BAOGOM}", html_entity_decode(nl2br($row['baogom'])), $template);
     $template = str_replace("{KHONGBAOGOM}", html_entity_decode(nl2br($row['khongbaogom'])), $template);
     $template = str_replace("{DOTTHANHTOAN}", $row['dotthanhtoan'], $template);
     /*$template = str_replace("SUKIEN", $row->sukien);
       $template = str_replace("PHANTRAM", $row->phantram);
       $template = str_replace("TIENTHANHTOAN", $row->tienthanhtoan);
       $template = str_replace("BANGCHU1", $row->bangchu1);*/
     $template = str_replace("{CONTRACT_CONDITION}", $focus->get_contract_condition_detailview($record), $template);
     $template = str_replace("{SOLANTHANHTOAN}", $row['solanthanhtoan'], $template);
     $template = str_replace("{NGUOIDAIDIENBENB}", $row['nguoidaidienbenb'], $template);
     $template = str_replace("{NGUOIDAIDIENBENA}", $row['nguoidaidienbena'], $template);
     $template = str_replace("{TENSANBAY}", $row['tensanbay'], $template);
     //$ss->display('modules/Contracts/tpl/export.tpl');
     $size = strlen($template);
     $filename = "CONTRACT_" . $row['number'] . ".doc";
     ob_end_clean();
     header("Cache-Control: private");
     header("Content-Type: application/force-download;");
     header("Content-Disposition:attachment; filename=\"{$filename}\"");
     header("Content-length:{$size}");
     echo $template;
     ob_flush();
     /*$ss->parse("main");
       $ss->out("main");*/
     /*$str = "<script>
                 YAHOO.util.Event.addListener(window, 'load', SUGAR.util.fillShortcuts, $savedSearchSelects);
                 </script>";
     
                 echo $str; */
 }
开发者ID:sysraj86,项目名称:carnivalcrm,代码行数:101,代码来源:view.export2word.php


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