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


PHP company::getCompany方法代码示例

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


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

示例1: get_form_html

function get_form_html($form_id, $id)
{
    ob_start();
    ?>
    <div id="head_div" style="padding: 5px 0; background-color: #ECECEC;  color: #21ACD7;
         border-radius: 5px;margin-left: auto; text-align: center; ">
        <?php 
    $user = new user();
    $user->id = $_SESSION['user_id'];
    $user->getUser();
    $company = new company();
    $company->id = $user->company_id;
    $company->getCompany();
    echo "STOCK REPORT OF {$company->company_name} - {$company->company_code}";
    ?>
    </div>
    <div style="margin-top: 10px; background-color:transparent;padding-bottom: 30px;">
        <style>
            div#purchace_items td,div#purchace_items th{
                border: 1px solid #21ACD7;
            }
            div#purchace_items tbody td{
                padding: 5px 0 5px 5px;
            }
            div#purchace_items tbody td input,div#purchace_items tbody td select{
                padding: 0;
                border: 0;
                margin: 0;
                height: 100%;
                width: 100%;
                background-color: transparent;
            }
        </style>
        <input type="text" id="search" placeholder="Enter Search Key here..." style="width: 100%; margin-left: 0px;" onkeyup="search()" />
        <style>
            img#search{
                position: relative;
                height: 20px;
                width: 20px;
                float: right;
                top: -29px;
                right: 10px;
            }
        </style>
        <img id="search" src="../ui/images/search.png" onclick="search()" />
        <div id="purchace_items" style="width: 100%; padding: 10px 0; color: #21ACD7;">           
            <table id="items_table" style="border-collapse: collapse; width: 100%; 
                   background-color: #fff; border-radius: 10px;  color: #21ACD7;">
                <thead style="text-align: center;">
                    <tr  status="not_selected">
                        <th>
                            #
                        </th>
                        <th>
                            ITEM
                        </th>
                        <th>
                            STOCK COUNT
                        </th>
                        <th style="">
                            SELLING PRIZE
                        </th>
                        <th style="">
                            TAX
                        </th>
                    </tr>
                </thead>
                <tbody style="padding-left: 3px; text-align: center; ">
                    <?php 
    $inventry = new inventry();
    $inventries = $inventry->getInventryForSpecificCompany($user->company_id);
    $i = 0;
    if ($inventries == NULL || sizeof($inventries) == 0) {
        echo '<tr><td colspan="8"> No Stock Found </td></tr>';
    } else {
        foreach ($inventries as $inventry) {
            ?>
                        <tr id="<?php 
            echo $inventry->id;
            ?>
"  onclick="select_row(this)" status="not_selected">
                            <td style="text-align: center;">
                                <?php 
            echo ++$i;
            ?>
                            </td>
                            <td id="item_name"><?php 
            $item = new item();
            $item->id = $inventry->item_id;
            $item->getItem();
            echo $item->item_name . ' (' . $item->item_code . ')';
            ?>
</td>
                            <td id="in_stock_count"><?php 
            echo number_format($inventry->in_stock_count, 3, '.', '');
            ?>
</td>
                            <td id="mrp"><?php 
            echo number_format($inventry->selling_prize, 2, '.', '');
            ?>
//.........这里部分代码省略.........
开发者ID:sakkeerhussain,项目名称:online_ims,代码行数:101,代码来源:20.php

示例2: get_form_html

function get_form_html($form_id, $date)
{
    ob_start();
    ?>
    <div id="head_div" style="padding: 5px 0; background-color: #ECECEC;  color: #21ACD7;
         border-radius: 5px;margin-left: auto; text-align: center; ">
        DAY END REPORT OF 
        <input id="date_field" value="<?php 
    if ($date == 0) {
        $date = date('d/m/Y', time());
    }
    echo $date;
    ?>
" />
    </div>
    <div id="sales_items_table" style="margin-top: 10px; background-color:transparent;padding-bottom: 30px;">
        <style>
            div#purchace_items td{
                border: 1px solid #21ACD7;
            }
            div#purchace_items tbody td{
                padding: 5px 0 5px 5px;
            }
            div#purchace_items tbody td input,div#purchace_items tbody td select{
                padding: 0;
                border: 0;
                margin: 0;
                height: 100%;
                width: 100%;
                background-color: transparent;
            }
        </style>
        <div id="purchace_items" style="width: 100%; padding: 10px 0; color: #21ACD7;"> 
            <font>SALES ITEMS</font>
            <table id="sales_items_table" style="border-collapse: collapse; width: 100%; 
                   background-color: #fff; border-radius: 10px;  color: #21ACD7;  margin-top: 5px; margin-bottom: 20px;">
                <thead style="text-align: center;">
                    <tr>
                        <td style="width: 5%;">
                            #
                        </td>
                        <td>
                            ITEM
                        </td>
                        <td style="width: 15%;">
                            COUNT
                        </td>
                        <td style="width: 15%;">
                            TOTAL
                        </td>
                    </tr>
                </thead>
                <tbody style="padding-left: 3px; text-align: center; ">
                    <?php 
    $grand_total = 0;
    $total_count = 0;
    $user = new user();
    $user->id = $_SESSION['user_id'];
    $user->getUser();
    $shop = new company();
    $shop->id = $user->company_id;
    $shop->getCompany();
    $sale_item = new sales_items();
    $date = str_replace('/', '-', $date);
    $date = date('Y-m-d', strtotime($date));
    $sales_items = $sale_item->getOneDaysSaleItems($user->company_id, $date);
    $i = 0;
    if ($sales_items == NULL || sizeof($sales_items) == 0) {
        echo '<tr><td colspan="8"> No Sales Items Found </td></tr>';
    } else {
        foreach ($sales_items as $sales_item) {
            $grand_total = $grand_total + $sales_item->total;
            $total_count = $total_count + $sales_item->quantity;
            ?>
                        <tr>
                            <td style="text-align: center;">
                                <?php 
            echo ++$i;
            ?>
                            </td>
                            <?php 
            $item = new item();
            $item->id = $sales_item->item_id;
            $item->getItem();
            ?>
                            <td style="text-align: left;">
                                <?php 
            echo $item->item_name . ' ( ' . $item->item_code . ' )';
            ?>
                            </td>
                            <td>
                                <?php 
            echo number_format($sales_item->quantity, 3, '.', '');
            ?>
                            </td>
                            
                            <td id="tax">
                                <?php 
            echo number_format($sales_item->total, 2, '.', '');
            ?>
//.........这里部分代码省略.........
开发者ID:sakkeerhussain,项目名称:online_ims,代码行数:101,代码来源:24.php

示例3: get_form_html

function get_form_html($form_id, $id)
{
    ob_start();
    ?>
    <div id="head_div" style="padding: 5px 0; background-color: #ECECEC;  color: #21ACD7;
         border-radius: 5px;margin-left: auto; text-align: center; ">
        <?php 
    $user = new user();
    $user->id = $_SESSION['user_id'];
    $user->getUser();
    $company = new company();
    $company->id = $user->company_id;
    $company->getCompany();
    echo "STOCK REPORT OF {$company->company_name} - {$company->company_code}";
    ?>
    </div>
    <div style="margin-top: 10px; background-color:transparent;padding-bottom: 30px;">
        <style>
            div#purchace_items td{
                border: 1px solid #21ACD7;
            }
            div#purchace_items tbody td{
                padding: 5px 0 5px 5px;
            }
            div#purchace_items th{
                border: 1px solid #21ACD7;
            }
            div#purchace_items tbody th{
                padding: 5px 0 5px 5px;
            }
            div#purchace_items tbody td input,div#purchace_items tbody td select{
                padding: 0;
                border: 0;
                margin: 0;
                height: 100%;
                width: 100%;
                background-color: transparent;
            }
        </style>
        <input type="text" id="search" placeholder="Enter Search Key here..." style="width: 100%; margin-left: 0px;" onkeyup="search()" />
        <style>
            img#search{
                position: relative;
                height: 20px;
                width: 20px;
                float: right;
                top: -29px;
                right: 10px;
            }
        </style>
        <img id="search" src="../ui/images/search.png" onclick="search()" />
        <div id="purchace_items" style="width: 100%; padding: 10px 0; color: #21ACD7;">           
            <table id="items_table" style="border-collapse: collapse; width: 100%; 
                   background-color: #fff; border-radius: 10px;  color: #21ACD7;">
                <thead style="text-align: center;">
                    <tr>
                        <th>
                            #
                        </th>
                        <th>
                            ITEM
                        </th>
                        <th>
                            STOCK COUNT
                        </th>
                        <th style="">
                            SELLING PRIZE
                        </th>
                        <th style="">
                            TAX
                        </th>
                    </tr>
                </thead>
                <tbody style="padding-left: 3px; text-align: center; ">
                    <?php 
    $inventry = new inventry();
    $inventries = $inventry->getInventryForSpecificCompany($user->company_id);
    $i = 0;
    if ($inventries == NULL || sizeof($inventries) == 0) {
        echo '<tr><td colspan="8"> No Stock Found </td></tr>';
    } else {
        foreach ($inventries as $inventry) {
            ?>
                        <tr id="<?php 
            echo $inventry->id;
            ?>
" >
                            <td style="text-align: center;">
                                <?php 
            echo ++$i;
            ?>
                            </td>
                            <td>
                                <?php 
            $item = new item();
            $item->id = $inventry->item_id;
            $item->getItem();
            echo $item->item_name . ' - ' . $item->item_code;
            ?>
                            </td>
//.........这里部分代码省略.........
开发者ID:sakkeerhussain,项目名称:online_ims,代码行数:101,代码来源:9.php

示例4: get_form_html


//.........这里部分代码省略.........
            }
            ?>
  >
                               <td style="text-align: center;"><?php 
            echo ++$i;
            ?>
</td>
                               <td id="user_id"><?php 
            echo 'USER-' . $user->id;
            ?>
</td>
                               <td id="name"><?php 
            echo $user->name;
            ?>
</td>
                               <td id="user_name"><?php 
            echo $user->user_name;
            ?>
</td>
                               <?php 
            if ($user->user_type_id == 4) {
                echo '<td>NA</td>';
            } else {
                if ($user->user_type_id == 5) {
                    echo '<td>NA</td>';
                } else {
                    ?>
                               <td id="company_id" value="<?php 
                    echo $user->company_id;
                    ?>
"><?php 
                    $company = new company();
                    $company->id = $user->company_id;
                    $company->getCompany();
                    echo $company->company_name . ' - ' . $company->company_code;
                    ?>
</td>
                               <?php 
                }
            }
            ?>
                               <td id="user_type_id" value="<?php 
            echo $user->user_type_id;
            ?>
"><?php 
            $user_type = new user_type();
            $user_type->id = $user->user_type_id;
            $user_type->getUserType();
            echo $user_type->user_type_name;
            ?>
</td>
                           </tr>
                           <?php 
        }
    } else {
        echo '<tr><td colspan="8"> No User Found </td></tr>';
    }
    ?>
                </tbody>                               
            </table>
        </div>
    </div>
    <script type="text/javascript">
        function select_row(row) {
            var j_row = $(row);
            if(j_row.attr('status') == 'selected'){
开发者ID:sakkeerhussain,项目名称:online_ims,代码行数:67,代码来源:28.php

示例5: get_form_html

function get_form_html($form_id, $id)
{
    ob_start();
    ?>
    <style>
        .field_name{
            width: 20%;
        }
        .field input{
            width: 100%;
            margin-left: 0px;
        }
        .field .parent{
            padding: 0px 0px;
        }
        .field select{
            width: 100%;
        }
    </style>
    <div id="head_div" style="padding: 5px 0; background-color: #ECECEC;  color: #21ACD7;
         border-radius: 5px;margin-left: auto;display: none; text-align: center; ">
    </div>
    <?php 
    $companny = new company();
    if ($id != 0) {
        $companny->id = $id;
        $companny->getCompany();
    }
    ?>
    <div style="margin-top: 10px; background-color:transparent;padding-bottom: 30px;">
        <form action="#" method="post" class="action_form" operation="add" style="width:100%;" >
            <table style="width:100%;">
                <tr>
                    <td class="field_name">                    
                        <font>SHOP NAME</font>
                    </td>
                    <td class="field"> 
                        <div  class="parent">
                            <input value="<?php 
    echo $companny->company_name;
    ?>
" type="text" id="shop_name" required />
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="field_name"> 
                        <font>SHOP CODE </font>
                    </td>
                    <td class="field"> 
                        <div class="parent">
                            <input value="<?php 
    echo $companny->company_code;
    ?>
" type="text" id="shop_code" required />
                        </div>
                    </td>
                </tr>
                <tr></tr>
                <tr>
                    <td></td>
                    <td>
                        <div style="padding: 0px 12px;">
                            <div style="width: 100%; margin-left: -12px; padding: 12px; 
                                 background-color: #0d92bb; border-radius: 5px; float: left;">
                                <div style="width: 50%; float: right;  ">
                                     <input style="width: 100%;" type="submit" value="ADD" />
                                </div>
                                <div style="width: 50%;">
                                    <input style="width: 100%;" type="reset" value="CANCEL" />
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
        </form>
    </div>
    <script type="text/javascript">
        function setFormActionListener(){ 
        $('form.action_form').on('submit', function(e) {
            e.preventDefault();
            var id = 27;
            var operation = $(this).attr('operation');
            if (operation == 'add') {
                var data = {
                    form_id: id,
                    shop_name: $('form input#shop_name').val(),
                    shop_code: $('form input#shop_code').val()
                }
                add_form_data(data, function(message) {
                    load_shops_list();
                    alert(message);
                }, function(message) {
                    alert(message);
                });
            } else if (operation == 'update') {
                var company_id = $('form.action_form').attr('company_id');
                var data = {
                    form_id: id,
//.........这里部分代码省略.........
开发者ID:sakkeerhussain,项目名称:online_ims,代码行数:101,代码来源:27.php


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