當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Organization::fetchOrganization方法代碼示例

本文整理匯總了PHP中Organization::fetchOrganization方法的典型用法代碼示例。如果您正苦於以下問題:PHP Organization::fetchOrganization方法的具體用法?PHP Organization::fetchOrganization怎麽用?PHP Organization::fetchOrganization使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Organization的用法示例。


在下文中一共展示了Organization::fetchOrganization方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

         if ($o->country_id == "") {
             $o->country_id = 0;
         }
         if ($o->currency_id == "") {
             $o->currency_id = 0;
         }
         $o->countryctrl = $ctrl->getSelectCountry($o->country_id, 'N');
         $o->currencyctrl = $ctrl->getSelectCurrency($o->currency_id, 'N');
         $o->getInputForm("new", -1, $token);
         $o->showOrganizationTable("where organization_id>0", "order by defaultlevel,organization_name");
     }
     break;
     //when user request to edit particular organization
 //when user request to edit particular organization
 case "edit":
     if ($o->fetchOrganization($o->organization_id)) {
         $token = $s->createToken($tokenlife, "CREATE_ORG");
         $o->countryctrl = $ctrl->getSelectCountry($o->country_id, 'N');
         $o->currencyctrl = $ctrl->getSelectCurrency($o->currency_id, 'N');
         $o->groupctrl = $ctrl->getAllSystemGroup($o->groupid);
         $o->accruedaccctrl = $ctrl->getSelectAccounts($o->accrued_acc, 'Y', "", "accrued_acc", "", "", "N", "", "", "style='width:150px'");
         $o->socsoaccctrl = $ctrl->getSelectAccounts($o->socso_acc, 'Y', "", "socso_acc", "", "", "N", "", "", "style='width:150px'");
         $o->epfaccctrl = $ctrl->getSelectAccounts($o->epf_acc, 'Y', "", "epf_acc", "", "", "N", "", "", "style='width:150px'");
         $o->salaryaccctrl = $ctrl->getSelectAccounts($o->salary_acc, 'Y', "", "salary_acc", "", "", "N", "", "", "style='width:150px'");
         $o->getInputForm("edit", $o->organization_id, $token);
         $o->showOrganizationTable("where organization_id>0", "order by defaultlevel,organization_name");
     } else {
         //if can't find particular organization from database, return error message
         redirect_header("organization.php", 3, "Some error on viewing your organization data, probably database corrupted");
     }
     break;
開發者ID:gauravsaxena21,項目名稱:simantz,代碼行數:31,代碼來源:organization.php

示例2: Organization

<?php

include_once '../simantz/class/fpdf/fpdf.php';
include_once "system.php";
//include_once "../system/class/Organization.php";
include_once "../simantz/class/Period.inc.php";
include_once "../bpartner/class/BPartner.php";
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
$org = new Organization();
$bp = new BPartner();
$org->fetchOrganization($defaultorganization_id);
$xmargin = 15;
if ($_POST || $_GET) {
    $pdf = new FPDF('L', 'mm', "A5");
    //0=A4,1=Letter
    $pdf->SetAutoPageBreak(true, 10);
    if (is_array($_POST['receipt_idarr'])) {
        $receipt_idarr = $_POST['receipt_idarr'];
        $isselect = $_POST['isselect'];
    } else {
        if (isset($_POST['receipt_id'])) {
            $receipt_id = $_POST['receipt_id'];
        }
        if (isset($_GET['receipt_id'])) {
            $receipt_id = $_GET['receipt_id'];
        }
        $receipt_idarr = array(1 => $receipt_id);
        $isselect = array(1 => "on");
    }
    $i = 0;
    foreach ($receipt_idarr as $receipt_id) {
開發者ID:gauravsaxena21,項目名稱:simantz,代碼行數:31,代碼來源:viewreceipt.php

示例3: date

    {
        $timestamp = date("d/m/y H:i:s", time());
        //Position at 1.5 cm from bottom
        $this->SetY($this->pagefooterheight * -1);
        //Arial italic 8
        $this->SetFont('courier', 'I', 8);
        $this->Cell(0, 5, 'Page ' . $this->PageNo() . '/{nb} Generated dated ' . $timestamp, 0, 0, 'C');
    }
}
if (isset($_POST["submit"])) {
    $wherestr = "";
    $pdf = new PDF('P', 'mm', 'A4');
    $pdf->AliasNbPages();
    $pdf->SetAutoPageBreak(true, $pdf->pagefooterheight + 1);
    $organization_id = $_REQUEST['organization_id'];
    $org->fetchOrganization($organization_id);
    $companyno = $org->companyno;
    $orgname = $org->organization_name;
    $organization_code = $org->organization_code;
    $pdf->datefrom = $_POST['datefrom'];
    $pdf->dateto = $_POST['dateto'];
    //	$pdf->accounts_codefrom=getAccountsID($_POST['accounts_codefrom']);
    //	$pdf->accounts_codeto=getAccountsID($_POST['accounts_codeto']);
    if ($pdf->datefrom == "") {
        $pdf->datefrom = "0000-00-00";
    }
    if ($pdf->dateto == "") {
        $pdf->dateto = "9999-12-31";
    }
    $pdf->AddPage();
    if ($pdf->accounts_codefrom == "") {
開發者ID:gauravsaxena21,項目名稱:simantz,代碼行數:31,代碼來源:viewtrialbalancedetail.php


注:本文中的Organization::fetchOrganization方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。