Exemplo n.º 1
0
            echo '<p class="center"><img src="' . Yii::app()->request->baseUrl . '/images/verified_doc.jpg" alt=""/></p>';
        } else {
            echo '<p class="center"><img src="' . Yii::app()->request->baseUrl . '/images/notverified_doc.jpg" alt=""/></p>';
        }
        ?>
    </div>
    <div class="sidebar_item" id="notes_blok">
        <span>Add an Internal Note:</span>
        <textarea name="" class="note_textarea" maxlength="250"></textarea>
        <input type="hidden" name="note_to_company" id="note_to_company" value="<?php echo $company->Company_ID; ?>"/>
        <button class="button block-center" id="add_note_button">Add Note</button>
        <div id="notes_list">
            <?php
                foreach ($notes as $note) {
                    echo '<div class="note_item">
                            <p class="note_date">' . Helper::convertDateString($note->Created) . '</p>
                            <p class="note_title">' . CHtml::encode($note->user->person->First_Name) . ' ' . CHtml::encode($note->user->person->Last_Name) . '</p>
                            <p class="note_body">' . CHtml::encode($note->Comment) . '</p>
                          </div>';
                }
            ?>
        </div>
    </div>
    <div class="sidebar_item OCR_Layer ">
        <span class="sidebar_block_header">Details</span>
    </div>
</div>
<script>
    $(document).ready(function() {
        setEqualHeight($(".wrapper,.sidebar_right"));
        new W9Detail;
Exemplo n.º 2
0
<span class="sidebar_block_header">Details:</span>
<ul class="sidebar_list">
    <li><h2 class="sidebar_block_list_header"><?php echo isset($pc->Employee_Name) ? CHtml::encode($pc->Employee_Name) : '<span class="not_set">Not set</span>'; ?></h2></li>
    <li>Total: <span class="details_page_value"><?php echo ($pc->Envelope_Total != 0) ? CHtml::encode(number_format($pc->Envelope_Total, 2)) : '<span class="not_set">Not set</span>'; ?></span></li>
    <li>Number: <span class="details_page_value"><?php echo ($pc->Envelope_Number) ? CHtml::encode($pc->Envelope_Number) : '<span class="not_set">Not set</span>'; ?></span></li>
    <li>Date: <span class="details_page_value"><?php echo ($pc->Envelope_Date) ? CHtml::encode(Helper::convertDate($pc->Envelope_Date)) : '<span class="not_set">Not set</span>'; ?></span></li>
    <li>Created on: <br/><span class="created_on_date"><?php echo $document->Created ? Helper::convertDateString($document->Created) . ' ' . CHtml::encode($user->person->First_Name) . ' ' . CHtml::encode($user->person->Last_Name) : '<span class="not_set">Not set</span>'; ?></span></li>
</ul>
Exemplo n.º 3
0
<span class="sidebar_block_header">User Info:</span>
<ul class="sidebar_list">
    <li>Username: <?php echo $user->User_Login; ?></li>
    <li>Active: <?php echo $user->Active ? 'Yes' : 'No'; ?></li>
    <li>Last Login: <?php  echo $user->Last_Login ? Helper::convertDateString($user->Last_Login) : ''; ?></li>
</ul>
<div class="grid-view" style="padding-top: 11px;" >
    <table class="items mbot0">
        <thead>
        <tr>
            <th><span>Company Name / Project Name</span></th>
        </tr>
        </thead>
    </table>
    <div style="height: 280px; overflow: auto">
        <table class="items" id="user_to_<?php echo $tab; ?>_projects">
            <tbody>
            <?php
            if (count($projects)) {
                foreach ($projects as $project) {
                    echo '<tr>';
                    echo '<td>' . CHtml::encode($project) .  '</td>';
                    echo '</tr>';
                }
            } else {
                echo '<tr>';
                echo '<td>Companies were not found</td>';
                echo '</tr>';
            }
            ?>
            </tbody>
Exemplo n.º 4
0
<div class="sidebar_item details_sidebar_block" id="company_info">
    <span class="sidebar_block_header">Details:</span>
    <ul class="sidebar_list">
        <li><h2 class="sidebar_block_list_header"><?php echo isset($company->Company_Name) ? wordwrap(CHtml::encode($company->Company_Name), 20, "\n", true) : '<span class="not_set">Vendor not attached</span>'; ?></h2></li>
        <li>Amount: <span class="details_page_value"><?php echo ($payment->Payment_Amount != 0) ? CHtml::encode(number_format($payment->Payment_Amount, 2)) : '<span class="not_set">Not set</span>'; ?></span></li>
        <li>Check # / Date: <span class="details_page_value"><?php echo ($payment->Payment_Check_Number && $payment->Payment_Check_Date) ? CHtml::encode($payment->Payment_Check_Number)  . ' / ' .  CHtml::encode(Helper::convertDate($payment->Payment_Check_Date)) : '<span class="not_set">Not set</span>'; ?></span></li>
        <li>Account Num: <span class="details_page_value"><?php echo $bankAccount ? CHtml::encode($bankAccount) : '<span class="not_set">Not set</span>'; ?></span></li>
        <li>Address: <span class="details_page_value"><?php echo isset($address->Address1) ? CHtml::encode($address->Address1) : '<span class="not_set">Not set</span>'; ?></span></li>
        <li><span class="details_page_value" style="margin-left: 50px;"><?php echo isset($address->Address2) ? CHtml::encode($address->Address2) : '<span class="not_set">Not set</span>'; ?></span></li>
        <li>City: <span class="details_page_value"><?php echo isset($address->City) ? CHtml::encode($address->City) : '<span class="not_set">Not set</span>'; ?></span></li>
        <li>State, Zip: <span class="details_page_value"><?php echo isset($address->State) ? (CHtml::encode($address->State) . ', ' . CHtml::encode($address->ZIP)) : '<span class="not_set">Not set</span>'; ?></span></li>
        <li>Check Number: <span class="details_page_value"><?php echo $payment->Payment_Check_Number ? CHtml::encode($payment->Payment_Check_Number) : '<span class="not_set">Not set</span>'; ?></span></li>
        <li>Country: <span class="details_page_value"><?php echo isset($address->Country) ? CHtml::encode($address->Country) : '<span class="not_set">Not set</span>'; ?></span></li>
    </ul>
    <span class="sidebar_block_header">Invoices Attached:</span>
    <div class="sidebar_attd_inv_list">
        <?php
            if (is_array($aps)) {
                foreach ($aps as $ap) {
                    echo '<span class="details_page_value">' . CHtml::encode($ap->Check_Invoice_Number) . ' / ' . CHtml::encode(number_format($ap->Check_Invoice_Amount, 2)) . '</span><br />';
                }
            }
        ?>
    </div>
</div>
<span class="sidebar_block_header">Created on:</span><br/>
<span class="created_on_date"><?php echo Helper::convertDateString($document->Created) . ' ' . CHtml::encode($user->person->First_Name) . ' ' . CHtml::encode($user->person->Last_Name); ?></span>
Exemplo n.º 5
0
<div class="note_item">
    <p class="note_date"><?php echo Helper::convertDateString($note->Created); ?></p>
    <p class="note_title"><?php echo CHtml::encode($user->person->First_Name) . ' ' . CHtml::encode($user->person->Last_Name); ?></p>
    <p class="note_body"><?php echo CHtml::encode($note->Comment); ?></p>
</div>
Exemplo n.º 6
0
<span class="sidebar_block_header">Details:</span>
<ul class="sidebar_list">
    <li><h2 class="sidebar_block_list_header"><?php echo wordwrap(CHtml::encode($company->Company_Name), 20, "\n", true); ?></h2></li>
    <li>Fed ID: <span class="details_page_value"><?php echo $company->Company_Fed_ID; ?></span></li>
    <li>Addre. 1: <span class="details_page_value"><?php echo $adress->Address1 ? CHtml::encode($adress->Address1) : '<span class="not_set">Not set</span>'; ?></span></li>
    <li>Addre. 2: <span class="details_page_value"><?php echo $adress->Address2 ? CHtml::encode($adress->Address2) : '<span class="not_set">Not set</span>'; ?></span></li>
    <li>City: <span class="details_page_value"><?php echo $adress->City ? CHtml::encode($adress->City) : '<span class="not_set">Not set</span>'; ?></span></li>
    <li>State: <span class="details_page_value"><?php echo $adress->State ? CHtml::encode($adress->State) : '<span class="not_set">Not set</span>'; ?></span></li>
    <li>Zip: <span class="details_page_value"><?php echo $adress->ZIP ? CHtml::encode($adress->ZIP) : '<span class="not_set">Not set</span>'; ?></span></li>
    <li>Country: <span class="details_page_value"><?php echo $adress->Country ? CHtml::encode($adress->Country) : '<span class="not_set">Not set</span>'; ?></span></li>
    <li>Contact - Phone: <span class="details_page_value"><?php echo (isset($adminPerson->First_Name) ? (CHtml::encode($adminPerson->First_Name . ' ' . $adminPerson->Last_Name)) : ''); if (isset($adminPerson->Direct_Phone) && $adminPerson->Direct_Phone) echo ', ' . CHtml::encode($adminPerson->Direct_Phone);?></span></li>
    <li>Created on: <span class="created_on_date"><?php echo Helper::convertDateString($lastDocument->Created); ?></span></li>
</ul>
Exemplo n.º 7
0
<span class="sidebar_block_header">Details:</span>
<ul class="sidebar_list">
    <li><h2 class="sidebar_block_list_header"><?php
                                                    //echo CHtml::encode( Helper::truncLongWords($company->Company_Name,20) );
                                                    echo  wordwrap(CHtml::encode($company->Company_Name), 20, "\n", true); ;
                                              ?>
        </h2></li>
    <li>Vendor ID: <span class="details_page_value"><?php echo CHtml::encode($vendor->Vendor_ID); ?></span></li>
    <li>Shortcut: <span class="details_page_value"><?php echo $vendor->Vendor_ID_Shortcut ? CHtml::encode($vendor->Vendor_ID_Shortcut) : '<span class="not_set">Not set</span>'; ?></span></li>
    <li>Ck Print: <span class="details_page_value"><?php echo $vendor->Vendor_Name_Checkprint ? CHtml::encode($vendor->Vendor_Name_Checkprint) : '<span class="not_set">Not set</span>'; ?></span></li>
    <li>Address: <span class="details_page_value"><?php echo $address->Address1 ? CHtml::encode($address->Address1) : '<span class="not_set">Not set</span>'; ?></span></li>
    <li><span class="details_page_value" style="margin-left: 50px;"><?php echo $address->Address2 ? CHtml::encode($address->Address2) : '<span class="not_set">Not set</span>'; ?></span></li>
    <li>City: <span class="details_page_value"><?php echo $address->City ? CHtml::encode($address->City) : '<span class="not_set">Not set</span>'; ?></span></li>
    <li>Township: <span class="details_page_value"><?php echo CHtml::encode(''); ?></span></li>
    <li>State / Postal Code: <span class="details_page_value"><?php echo CHtml::encode($address->State . ', ' . $address->ZIP) ? CHtml::encode($address->State . ', ' . $address->ZIP) : '<span class="not_set">Not set</span>'; ?></span></li>
    <li>Country: <span class="details_page_value"><?php echo $address->Country ? CHtml::encode($address->Country) : '<span class="not_set">Not set</span>'; ?></span></li>
    <li>Phone: <span class="details_page_value"><?php echo $address->Phone ? CHtml::encode($address->Phone) : '<span class="not_set">Not set</span>'; ?></span></span></li>
    <li>Fed ID: <span class="details_page_value"><?php echo $company->Company_Fed_ID ? CHtml::encode($company->Company_Fed_ID) : '<span class="not_set">Not set</span>'; ?></span></li>
    <li>Contact: <span class="details_page_value"><?php echo isset($adminPerson->First_Name) ? (CHtml::encode($adminPerson->First_Name . ' ' . $adminPerson->Last_Name)) : '<span class="not_set">Not set</span>'; ?></span></li>
    <li>Contact Email: <span class="details_page_value"><?php echo isset($adminPerson->Email) ? CHtml::encode($adminPerson->Email) : '<span class="not_set">Not set</span>'; ?></span></li>

    <li>Created on: <br/><span class="created_on_date"><?php if ($lastDocument) { echo Helper::convertDateString($lastDocument->Created) . '  ' . CHtml::encode($lastDocument->user->person->First_Name) . ' ' . CHtml::encode($lastDocument->user->person->Last_Name); } else {echo '<span class="not_set">Not set</span>';}?></span></li>
</ul>
Exemplo n.º 8
0
    <div class="info">
        <button class="close-alert">&times;</button>
        <?php echo Yii::app()->user->getFlash('success'); ?>
    </div>
<?php endif; ?>

<?php if(Yii::app()->user->hasFlash('error')):?>
    <div class="error_flash" style="color: #ff0000;">
        <button class="close-alert">&times;</button>
        <?php echo Yii::app()->user->getFlash('error'); ?>
    </div>
<?php endif; ?>

<div class="wrapper">
    <div class="w9_details">
        <span class="right created_on">Created on: <span class="created_on_date"><?php echo isset($po->document->Created) ? Helper::convertDateString($po->document->Created) . ' ' . CHtml::encode(Helper::shortenString($po->document->user->person->First_Name. ' ' . $po->document->user->person->Last_Name,20)) : Helper::convertDateString(date("Y-m-d H:i:s")); ?></span></span>
    </div>
    <?php
    $tab_css = '/css/jquery.yiitab.css';
    if (Helper::checkIE() || Helper::getMobileDetect()->isMobile() || Helper::getMobileDetect()->isTablet() || Helper::checkMobile()) {
        $tab_css = '/css/jquery.yiitabie.css';
    }
    $this->widget('CTabView', array(
        'activeTab'=>'tab1',
        'cssFile'=>$tab_css,
        'tabs'=>array(
            'tab1'=>array(
                'title'=>'Create PO',
                'view'=>'tabs/create',
                'data'=>array(
                    'clientApprovers' => $clientApprovers,
Exemplo n.º 9
0
        'page' => $page,
        'num_pages' => $num_pages,
        'url' => '/vendor/detail',
    )); ?>
</div>
<?php if(Yii::app()->user->hasFlash('success')):?>
    <div class="info">
        <button class="close-alert">&times;</button>
        <?php echo Yii::app()->user->getFlash('success'); ?>
    </div>
<?php endif; ?>

<div class="wrapper">

    <div class="w9_details" style="<?= $enable_editing_w9_form ? 'cursor :pointer;' : '';?>">
        <span class="right created_on">Created on: <span class="created_on_date"><?php echo $lastDocument ? Helper::convertDateString($lastDocument->Created) : ''; ?></span></span>
        <h2><?php
            $str = $company->Company_Name . ($vendor->Vendor_ID_Shortcut ? '('.CHtml::encode($vendor->Vendor_ID_Shortcut).')' : '');
            echo wordwrap(CHtml::encode($str),40, "\n", true);;
            ?>
        </h2>
        <input type="hidden" value="<?=$w9->Document_ID?>" id="w9_doc_id">
        <input type="hidden" value="<?=$company->Company_ID?>" id="company_id">
        <input type="hidden" value="<?=$vendor->Vendor_ID?>" id="vendor_id">
        <input type="hidden" value="<?=$adminPerson->Person_ID?>" id="cli_adm_user_id">

        <table class="details_table">
            <tr>
                <td class="width240">
                    <ul class="details_table_list">
                        <li>Fed ID: <span class="details_page_value"><?php echo $company->Company_Fed_ID; ?></span></li>
Exemplo n.º 10
0
    </div>
<?php endif; ?>
<?php if(Yii::app()->user->hasFlash('error')):?>
    <div class="error_flash" style="color: #ff0000;">
        <button class="close-alert">&times;</button>
        <?php echo Yii::app()->user->getFlash('error'); ?>
    </div>
<?php endif; ?>


<div class="wrapper">
    <div class="w9_details">
        <span class="right created_on">Created on: <span class="created_on_date">
                <?php
                    echo isset($ap->document->Created) ? Helper::convertDateString($ap->document->Created) . ' ' . CHtml::encode(Helper::shortenString($ap->document->user->person->First_Name. ' ' . $ap->document->user->person->Last_Name,20))
                        : Helper::convertDateString(date("Y-m-d H:i:s")); ?></span></span>
    </div>
    <?php
    $tab_css = '/css/jquery.yiitab.css';
    if (Helper::checkIE() || Helper::getMobileDetect()->isMobile() || Helper::getMobileDetect()->isTablet() || Helper::checkMobile()) {
        $tab_css = '/css/jquery.yiitabie.css';
    }
    $this->widget('CTabView', array(
        'activeTab'=>'tab1',
        'cssFile'=>$tab_css,
        'tabs'=>array(
            'tab1'=>array(
                'title'=>'Create AP',
                'view'=>'tabs/create',
                'data'=>array(
                    'clientApprovers' => $clientApprovers,