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


PHP Services::newitr方法代码示例

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


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

示例1: postCreate

 public function postCreate()
 {
     $pan = Input::file('pan');
     $bankstatement = Input::file('bank');
     $addrproof = Input::file('addrproof');
     $form16 = Input::file('form16');
     $tds = Input::file('tds');
     $itr = Input::file('itrcopy');
     $fyear = Input::file('fyear');
     //print_r($form16);
     $date = getdate();
     if ($form16) {
         //print_r($form16);
         $filename = $date[0] . $form16->getClientOriginalName();
         echo $filename;
         $destinationPath = './assets/itr/form16';
         $uploadSuccess = $form16->move($destinationPath, $filename);
     } else {
         $filename = "";
     }
     if ($tds) {
         $tdsfile = $date[0] . $tds->getClientOriginalName();
         echo $filename;
         $destinationPath = './assets/itr/tds';
         $uploadSuccess = $tds->move($destinationPath, $tdsfile);
     } else {
         $tdsfile = "";
     }
     if ($itr) {
         $itrcopyfile = $date[0] . $itr->getClientOriginalName();
         echo $filename;
         $destinationPath = './assets/itr/itrcopy';
         $uploadSuccess = $itr->move($destinationPath, $itrcopyfile);
     } else {
         $itrcopyfile = "";
     }
     if ($fyear) {
         $fyearfile = $date[0] . $fyear->getClientOriginalName();
         echo $filename;
         $destinationPath = './assets/itr/fyear';
         $uploadSuccess = $fyear->move($destinationPath, $fyearfile);
     } else {
         $fyearfile = "";
     }
     if ($addrproof && $pan && $bankstatement) {
         $panfile = $date[0] . $pan->getClientOriginalName();
         $addrfile = $date[0] . $addrproof->getClientOriginalName();
         $bankfile = $date[0] . $bankstatement->getClientOriginalName();
         $destinationPath = './assets/itr/pan';
         $uploadSuccess = $pan->move($destinationPath, $panfile);
         $destinationPath = './assets/itr/addressproof';
         $uploadSuccess = $addrproof->move($destinationPath, $addrfile);
         $destinationPath = './assets/itr/bankfile';
         $uploadSuccess = $bankstatement->move($destinationPath, $bankfile);
     } else {
         $panfile = "";
         $addrfile = "";
         $bankfile = "";
     }
     $input = array("itrName" => Input::get('name'), "itrPan" => $panfile, "itrAddrproof" => $addrfile, "itrBankstatement" => $bankfile, "itrForm" => $filename, "itrTdcertificate" => $tdsfile, "itrPrevitr" => $itrcopyfile, "itrBankname" => Input::get('bankacname'), "itrBankaccttype" => Input::get('actype'), "itrBankacctno" => Input::get('accno'), "itrBankIfsc" => Input::get('ifsccode'), "itrFyear" => $fyearfile, "itrMobileno" => Input::get('mobileno'), "itrEmail" => Input::get('email'), "itrStatus" => 0, "itrCreatedby" => Session::get('user_name'), "itrClientip" => Session::get('clientip'));
     $data = json_encode($input);
     $output = Services::newitr($data);
     print_r($data);
     exit;
     if ($output && $output->status == "success") {
         return Redirect::to('retailer/itr/manage')->with('success', "itr Submitted successfully");
     } elseif ($output && $output->status == "error") {
         return Redirect::to('retailer/itr')->with('failure', $output->message);
     } else {
         return Redirect::to('retailer/itr')->with('failure', 'something went wrong');
     }
 }
开发者ID:arctic-dev,项目名称:appandukan-php,代码行数:72,代码来源:RetaileritrController.php


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