本文整理汇总了PHP中Company::addCompany方法的典型用法代码示例。如果您正苦于以下问题:PHP Company::addCompany方法的具体用法?PHP Company::addCompany怎么用?PHP Company::addCompany使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Company
的用法示例。
在下文中一共展示了Company::addCompany方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: act_addCompany
public static function act_addCompany($data_array)
{
if (!Auth::checkAccess(__CLASS__, __FUNCTION__)) {
self::$errCode = '5902';
self::$errMsg = 'You have no access to add Company';
echo json_encode(array('errCode' => self::$errCode, 'errMsg' => self::$errMsg));
return false;
}
$data = Company::addCompany($data_array);
if (!$data) {
self::$errCode = Company::$errCode;
self::$errMsg = Company::$errMsg;
echo json_encode(array('errCode' => self::$errCode, 'errMsg' => self::$errMsg));
return false;
}
return $data;
}
示例2: session_start
<?php
session_start();
include "../../bossflex/Helpers/Reject.php";
Reject::permission($_SESSION['admin']);
if ($_SESSION['admin']['CID'] != 1) {
exit;
}
include "../../bossflex/DB/Models/Company.php";
if (isset($_POST['Cname'])) {
Company::addCompany($_POST['Cname']);
}
$Companies = Company::getCompanyList();
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.10/css/jquery.dataTables.min.css">
<script type="text/javascript" language="javascript" src="//code.jquery.com/jquery-1.12.0.min.js">
</script>
<script type="text/javascript" language="javascript" src="https://cdn.datatables.net/1.10.10/js/jquery.dataTables.min.js">
</script>
<script type="text/javascript" class="init">
$(document).ready(function() {
$('#usertable').DataTable( {
createdRow: function ( row ) {
$('td', row).attr('tabindex', 0);
}
示例3: Company
<td style="width:50%;">
<table>
<tr>
<td>
إضافة شركة جديدة
</td>
</tr>
<tr>
<td>
<?php
$newcompany = new Company();
echo '<form method="post" action="' . $newcompany->addCompany() . '">';
?>
<table>
<tr>
<td>
الاسم
</td>
<td>
<input name="Name" type="text" />*
</td>
</tr>
<tr>
<td>
开发者ID:aalayach,项目名称:Damascsus-University-Team-PHP-insurance-company-project,代码行数:30,代码来源:AddCompany.php
示例4: dirname
<?php
if (!isset($_SESSION)) {
session_start();
}
require_once dirname(dirname(__FILE__)) . '/modules/Company.class.php';
$companyName = !isset($_POST['companyName']) ? "" : $_POST['companyName'];
$companyObj = new Company();
$companyObj->addCompany($companyName);