<?php if (count($vendors) > 0) { foreach ($vendors as $row => $vendor) { ?> <tr class="row_for_import"> <td class="width70"> <?php echo Helper::cutText(14, 90, 10, $vendor['fedId']); ?> </td> <td class="width250"> <?php echo Helper::cutText(14, 280, 20, $vendor['companyName']); ?> </td> <td class="width40"> <?php echo Helper::cutText(14, 50, 5, $vendor['shortcut']); ?> </td> <td> <?php echo Helper::cutText(14, 50, 8, $vendor['checkprint']); ?> </td> </tr> <?php } } else { echo '<tr> <td> Vendors not found. </td> </tr>'; } ?> </tbody> </table> </div>
<?php if (count($vendorsList) > 0) { foreach ($vendorsList as $vendor) { $addresses = $vendor->client->company->adreses; $address = $addresses[0]; ?> <tr id="vendor<?php echo $vendor->Vendor_ID; ?>"> <td class="width30"> <input type="checkbox" class='list_checkbox' name="vendors[<?php echo $vendor->Vendor_ID; ?>]" value="<?php echo $vendor->Vendor_ID; ?>"/> </td> <td class="width140"> <?php echo Helper::cutText(15, 160, 14, $vendor->client->company->Company_Name); ?> </td> <td class="width70"><?php echo $vendor->Vendor_ID_Shortcut ? CHtml::encode($vendor->Vendor_ID_Shortcut) : '<span class="not_set">Not set</span>'; ?></td> <td class="width75"> <?php echo CHtml::encode($vendor->client->company->Company_Fed_ID); ?> </td> <td> <span class="cutted_cell"> <?php echo Helper::createAddressLine($address->Address1, $address->City, $address->State, $address->ZIP, true, 11, 250, 26); ?> </span> </td> </tr> <?php } } else { echo '<tr> <td> Vendors were not found.
</div> <?php endif; ?> <div class="wrapper"> <div class="w9_details" style="<?php echo $enableEditing ? ' cursor: pointer;' : ''; ?>"> <span id="doc_id" data-id="<?php echo $ap->AP_ID; ?>"></span> <!-- Important the next div data used in JS logic--> <div id="save_ap" data="<?php echo $ap->AP_ID; ?>"></div> <!-- End of Important--> <span class="right created_on">Created on: <span class="created_on_date"><?php echo Helper::convertDateString($document->Created) . ' ' . CHtml::encode($user->person->First_Name) . ' ' . CHtml::encode($user->person->Last_Name); ?></span></span> <h2><?php echo isset($company->Company_Name) ? Helper::cutText(25,400,45,$company->Company_Name) : '<span class="not_set">Vendor not attached</span>'; ?></h2> <table class="details_table"> <tr> <td class="width240"> <ul class="details_table_list"> <li>Amount: <span class="details_page_value"><?php echo $ap->Invoice_Amount ? CHtml::encode(number_format($ap->Invoice_Amount, 2,'.', ',')) : '<span class="not_set">Not set</span>'; ?></span></li> <li>Date: <span class="details_page_value"><?php echo $ap->Invoice_Date ? CHtml::encode(Helper::convertDate($ap->Invoice_Date)) : '<span class="not_set">Not set</span>'; ?></span></li> <li>Due Date: <span class="details_page_value"><?php echo $ap->Invoice_Due_Date ? CHtml::encode(Helper::convertDate($ap->Invoice_Due_Date)) : '<span class="not_set">Not set</span>'; ?></span></li> </ul> </td> <td> <ul class="details_table_list"> <li>Invoice Number: <span class="details_page_value"><?php echo $ap->Invoice_Number ? CHtml::encode($ap->Invoice_Number) : '<span class="not_set">Not set</span>'; ?></span></li> <li>Vendor ID: <span class="details_page_value"><?php echo $ap->Vendor_ID ? $ap->Vendor_ID : '<span class="not_set">Not set</span>'; ?></span></li> <li>Check Number: <span class="details_page_value"><?php echo $paymentCheckNumber ? CHtml::encode($paymentCheckNumber) : '<span class="not_set">Not set</span>'; ?></span></li> </ul>
<div class="right_column" id="right_column"> <!-- <div id="preview_block"></div> --> <div id="upload_history_block"> <h2>Upload History:</h2> <table id="last_upload_grid" class="uploads_grid border0"> <thead> <tr><th>File Name</th></tr> </thead> <tbody> <?php if (count($last_images) > 0) { foreach ($last_images as $last_image) { $type = explode('/', $last_image['Mime_Type']); $type = $type[1]; echo "<tr><td data-id='" . $last_image['Document_ID'] . "'><img src='" . Yii::app()->request->baseUrl . "/images/file_types/" . $type . ".png' alt='" . strtoupper($type) . "' class='img_type' />" . Helper::cutText(12,500,50,$last_image['File_Name']) . "</td></tr>"; } } else { ?> <tr id="no_images"> <td>Documents were not found.</td> </tr> <?php } ?> </tbody> </table> </div> <div id="last_upload_files"><?php if (count($last_images) > 0) { foreach ($last_images as $last_image) { echo "%" . $last_image['File_Name']; } }
$newClasses[$countClasses] = $COA['class']; } } ?> <tr class="row_for_import" data-budget="<?php echo ($COA['validBudget']) ? '1' : '0'; ?>" data-class="<?php echo ($COA['newClass']) ? '1' : '0'; ?>"> <td class="width50"> <?php echo Helper::cutText(14, 60, 5, $COA['class']); ?> </td> <td class="width150"> <?php echo Helper::cutText(14, 185, 15, $COA['name']); ?> </td> <td class="width140"> <?php echo Helper::cutText(14, 175, 15, $COA['acctNumber']); ?> </td> <td class="amount_cell" <?php echo (!$COA['validBudget']) ? 'style="background-color: #fdd;"' : ''; ?>> <span class="left">$</span><span><?php echo Helper::cutText(14, 85, 8, number_format($COA['budget'], 2)); ?></span> </td> </tr> <?php } } else { echo '<tr> <td> COA not found. </td> </tr>'; } ?> </tbody> </table> </div>
$color = ''; } */ ?> <tr id="doc<?php echo $pc->Document_ID; ?>"> <td class="width30"> <input type="checkbox" class='list_checkbox' name="documents[<?php echo $pc->Document_ID; ?>]" value="<?php echo $pc->Document_ID; ?>"/> </td> <td class="width235"> <?php echo isset($pc->Employee_Name) ? Helper::cutText(15, 250, 20, $pc->Employee_Name) : '<span class="not_set">Not set</span>'; ?> </td> <td class="width100"> <?php echo $pc->Envelope_Number ? CHtml::encode($pc->Envelope_Number) : '<span class="not_set">Not set</span>'; ?> </td> <td class="amount_cell width80"> <?php echo ($pc->Envelope_Total != 0) ? Helper::cutText(15, 85, 11, number_format($pc->Envelope_Total, 2)) : '<span class="not_set">Not set</span>'; ?> </td> <td> <?php echo $pc->Envelope_Date ? CHtml::encode(Helper::convertDate($pc->Envelope_Date)) : '<span class="not_set">Not set</span>'; ?> </td> </tr> <?php } } else { echo '<tr> <td> PCs were not found. </td> </tr>'; } ?>
<td class="dropdown_cell width110" id="doc_client" data="' . $document->Client_ID . '"> <div class="dropdown_cell_ul"> <span class="dropdown_cell_value">' . $document->Client_ID . ' / ' . ($document->client ? CHtml::encode($document->client->company->Company_Name) : '') . '</span> <ul>' . $clientsList . '</ul> </div> </td> <td class="dropdown_cell" id="doc_project"> <div class="dropdown_cell_ul"> <span class="dropdown_cell_value">' . $document->Project_ID . ' / ' . (isset($userProjects[$document->Client_ID][$document->Project_ID]) ? CHtml::encode($userProjects[$document->Client_ID][$document->Project_ID]) : 'No Project') . '</span> <ul>' . (isset($userProjectsHtml[$document->Client_ID]) ? $userProjectsHtml[$document->Client_ID] : '') . '</ul> </div> </td>'; } else { echo '<td class="width70">' . Helper::convertDate($document->Created) . '</td> <td class="width110">' . Helper::cutText(15, 100, 14, $document->image->File_Name) . '</td> <td class="dropdown_cell width110" id="doc_client" data="' . $document->Client_ID . '"> <div class="dropdown_cell_ul"> <span class="dropdown_cell_value">' . $document->Client_ID . ' / ' . ($document->client ? CHtml::encode($document->client->company->Company_Name) : '') . '</span> </div> </td> <td class="dropdown_cell" id="doc_project"> <div class="dropdown_cell_ul"> <span class="dropdown_cell_value">' . $document->Project_ID . ' / ' . (isset($userProjects[$document->Client_ID][$document->Project_ID]) ? CHtml::encode($userProjects[$document->Client_ID][$document->Project_ID]) : 'No Project') . '</span> </div> </td>'; } echo '</tr>'; }
?> </td> <td class="amount_cell width30"><?php echo CHtml::encode($cueAppr->Amount) ? Helper::cutText(15, 75, 10, number_format($cueAppr->Amount, 2, '.', ',')) : '<span class="not_set">Not set</span>'; ?></td> <td class="width90 control_name"> <?php if($cueAppr->Approval_Value<1) { echo "DEC"; } else { echo $cueAppr->ApprName; } ?> </td> <td> <span class="cutted_cell"> <?php $notes = Documents::getLastNoteById($cueAppr->DocID); echo CHtml::encode($notes) ? Helper::cutText(11, 240, 29, $notes) : '<span class="not_set">No comments</span>'; ?> </span> </td> </tr> <?php } } else { echo '<tr> <td> Documents not found. </td> </tr>'; } ?>
</div> <div class="sidebar_right"> <span class="sidebar_block_header" id="po_staging_items_header">Purchase Order Staging</span> <div class="sidebar_item" id="po_staging_items"> <span class="po_staging_items_header">Date / Num. / Vendor</span> <div id="po_staging_items_block"> <table> <?php foreach ($stagingItems as $stagingItem) { $color = ''; if ($poId == $stagingItem->PO_ID) { $color = "style='color: #003399;'"; } $str=''; $str = Helper::convertDateDayMonthSimple($stagingItem->PO_Date) . ' / ' . $stagingItem->PO_Number . (($stagingItem->vendor) ? ' / ' . Chtml::encode($stagingItem->vendor->client->company->Company_Name) : ''); $str=Helper::cutText(15, 180, 13, $str ); echo '<tr><td>'; echo "<a href='" . Yii::app()->request->baseUrl . "/po/create/" . $stagingItem->PO_ID . "' class='staging_item_link' " . $color . ">".$str. "</a>"; echo '</td><td>'; echo '<a href=# class="mark_as_void" data-id="'.$stagingItem->PO_ID.'">Delete</a>'; echo '</td></tr>'; } ?> </table> </div> </div> </div> <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/doc_create.js"></script>
<?}?> <table id="list_table"> <tbody> <?php if (count($vendorsList) > 0) { foreach ($vendorsList as $vendor) { $checked = ""; $color = ''; ?> <tr id="com<?php echo $vendor['Company_ID']; ?>" <?php echo $color; ?>> <td class="width30"> <input type="checkbox" class='list_checkbox' name="companies[<?php echo $vendor['Company_ID']; ?>]" value="<?php echo $vendor['Company_ID']; ?>" <?php echo $checked; ?>/> </td> <td class="width140"> <?php echo Helper::cutText(15, 170, 14, $vendor['Company_Name']); ?> </td> <td class="fed_id_cell width75"><?php echo $vendor['Company_Fed_ID']; ?></td> <td> <?php echo Helper::createAddressLine($vendor['Address1'], $vendor['City'], $vendor['State'], $vendor['ZIP'], true, 15, 340, 30);; ?> </td> </tr> <?php } } else { echo '<tr> <td> Use search panel to populate this grid. </td> </tr>'; }
</tr> <?php } } else if (count($another_documents) > 0 && count($documents) == 0) { //for documents from another period foreach ($another_documents as $document) { ?> <tr class="another_period" id="doc<?php echo $document->Document_ID; ?>"> <td class="width12" style="padding-left: 0px; padding-right: 0px;"> <input type="checkbox" class='list_checkbox' checked name="documents[<?php echo $document->Document_ID; ?>]" value="<?php echo $document->Document_ID; ?>" data-year="<?=date('Y',strtotime($document->Created)); ?>"/> </td> <td class="width30"> <img src="/documents/getdocumentthumbnail?doc_id=<?php echo $document->Document_ID;?>" alt="<?php echo CHtml::encode($document->image->File_Name);?>" title="<?php echo CHtml::encode($document->image->File_Name);?>" width="30" height="39" /> </td> <td class="width150"> <?php echo Helper::cutText(15, 170, 13, $document->image->File_Name); ?> </td> <td width="50"> <?php echo CHtml::encode($document->Document_Type); ?> </td> <td> <?php if ($document->Document_Type == Documents::LB) { ?> <select class="unassigned_documents_select" name="access[<?php echo $document->Document_ID; ?>]"> <option value="0">Only for me</option> <option value="1" selected="selected">For all users in Project</option> </select> <?php } ?>
<div class="sidebar_item" id="po_staging_items"> <span class="po_staging_items_header">Date / Num. / Vendor</span> <div id="po_staging_items_block"> <table> <?php foreach ($stagingItems as $stagingItem) { $color = ''; if ($apId == $stagingItem->AP_ID) { $color = "style='color: #003399;'"; } $staging_str = Helper::convertDateDayMonthSimple($stagingItem->Invoice_Date) . ' / '. $stagingItem->Invoice_Number . (($stagingItem->vendor) ? ' / ' . Chtml::encode($stagingItem->vendor->client->company->Company_Name) : ''); echo '<tr><td>'; echo "<a href='" . Yii::app()->request->baseUrl . "/ap/create/" . $stagingItem->AP_ID . "' class='staging_item_link' " . $color . ">" . Helper::cutText(14,180,20,$staging_str) . "</a>"; echo '</td><td>'; echo '<a href=# class="mark_as_void" data-id="'.$stagingItem->AP_ID.'">Delete</a>'; echo '</td></tr>'; } ?> </table> </div> </div> </div> <?php $this->renderPartial('//widgets/image_view_block'); ?>
<table id="vendor_list_table" class='list_table'> <tbody> <?php if (count($externalClients) > 0) { foreach ($externalClients as $client) { $addresses = $client->company->adreses; $address = $addresses[0]; ?> <tr id="client<?php echo $client->Client_ID; ?>"> <td class="width12" style="padding-left: 0px; padding-right: 0px;"> <input type="checkbox" class='list_checkbox' name="clients[<?php echo $client->Client_ID; ?>]" value="<?php echo $client->Client_ID; ?>"/> </td> <td class="width120"> <?php echo Helper::cutText(15, 130, 10, $client->company->Company_Name); ?> </td> <!-- <td width="50"><?php //echo CHtml::encode($vendor->Vendor_ID_Shortcut); ?></td> --> <td class="width75"> <?php echo CHtml::encode($client->company->Company_Fed_ID); ?> </td> <td> <span class="cutted_cell"> <?php echo Helper::createAddressLine($address->Address1, $address->City, $address->State, $address->ZIP, true, 11, 200, 22); ?> </span> </td> </tr>
while ($row = mysql_fetch_assoc($result)) { if ($rad % 2) { $color = "#e7e7e7"; } else { $color = "#FFFFFF"; } echo '<tr> <td bgcolor="' . $color . '" class="smallPink" style="width:100px; padding-left:2px" valign="top"><a href="?id=' . $row['rowid'] . '" >' . $row['datum'] . '</a></td> <td bgcolor="' . $color . '" class="smallPink" style="width:100px; padding-left:2px" valign="top"><a href="?id=' . $row['rowid'] . '" >'; echo Helper::cutText($row['artist'], 20); echo '</a></td>'; echo '<td bgcolor="' . $color . '"class="smallPink" style="width:100px; padding-bottom:3px;padding-top:3px; padding-left:2px" valign="top"><a href="?id=' . $row['rowid'] . '">'; echo Helper::cutText($row['stad'], 20); echo '</a></td>'; echo '<td bgcolor="' . $color . '"class="smallPink" colspan="2" style="width:100px; padding-left:2px" valign="top"><a href="?id=' . $row['rowid'] . '">'; echo Helper::cutText($row['lokal'], 25); echo '</a></td>'; echo '</tr>'; $rad++; } ?> </table> </form> <br /> <?php /* //alla aktuella $query_all="select * from spelningar WHERE stad LiKE '".$city."' AND artist LIKE '".$artist."' AND lokal LIKE '".$place."' AND datum LIKE '".$date."'"; $result_all=mysql_query($query_all) or die(mysql_error()); $totalrows = mysql_num_rows($result_all);
</div> <?php endif; ?> <div class="wrapper_library"> <div class='w9_list_view'> <?php $tab_css = '/css/jquery.yiitab.css'; if (Helper::checkIE() || Helper::getMobileDetect()->isMobile() || Helper::getMobileDetect()->isTablet() || Helper::checkMobile()) { $tab_css = '/css/jquery.yiitabie.css'; } $tabs = array(); $aTab = 'tab1'; $i = 1; foreach ($subsections as $subsection) { $tabs['tab' . $i] = array( 'title'=>Helper::cutText('15', '150', '13', $subsection['subsection']->Subsection_Name), 'view'=>'tabs/lib_view', 'data' => array('documents' => $subsection['documents'], 'tabNum' => $i, 'subsectionID' => $subsection['subsection']->Subsection_ID), ); if ($activeTab == $subsection['subsection']->Subsection_ID) { $aTab = 'tab' . $i; } $i++; } $this->widget('CTabView', array( 'activeTab'=>$aTab, 'cssFile'=>$tab_css, 'tabs'=>$tabs,
$color = 'style="background-color: #eee"'; } else { $checked = ""; $color = ''; } */ ?> <tr id="doc<?php echo $payment->Document_ID; ?>"> <td class="width30"> <input type="checkbox" class='list_checkbox' name="documents[<?php echo $payment->Document_ID; ?>]" value="<?php echo $payment->Document_ID; ?>"/> </td> <td class="width180"> <?php echo isset($payment->vendor->client->company->Company_Name) ? Helper::cutText(15, 230, 20, $payment->vendor->client->company->Company_Name) : '<span class="not_set">Vendor not attached</span>'; ?> </td> <td class="amount_cell width80"> <?php echo ($payment->Payment_Amount != 0) ? Helper::cutText(15, 85, 11, number_format($payment->Payment_Amount, 2)) : '<span class="not_set">Not set</span>'; ?> </td> <td class="width100"> <?php echo $payment->Payment_Check_Number ? CHtml::encode($payment->Payment_Check_Number) : '<span class="not_set">Not set</span>'; ?> </td> <td class="width80"> <?php echo $payment->Payment_Check_Date ? CHtml::encode(Helper::convertDate($payment->Payment_Check_Date)) : '<span class="not_set">Not set</span>'; ?> </td> <td> <span class="cutted_cell"> <?php echo isset($payment->bank_account->Account_Number) ? CHtml::encode(Helper::prepareAcctNum($payment->bank_account->Account_Number, 4)) : '<span class="not_set">Not set</span>'; ?> </span> </td> </tr> <?php }
<td class="width20"> <input type="checkbox" class='list_checkbox' name="coa[<?php echo $COA->COA_ID; ?>]" value="<?php echo $COA->COA_ID; ?>"/> </td> <td class="width40 dropdown_cell_upload"> <div class="dropdown_cell_ul"><ul><?php echo $dropDownCellList; ?></ul><span class="dropdown_cell_value"><?php echo CHtml::encode($COA->class->Class_Shortcut); ?></span></div> </td> <td class="width110 in_place_edit" data-cell-type="COA_Name" data-editing="0" data-already-used="0"> <?php echo Helper::cutText(14, 130, 10, $COA->COA_Name); ?> </td> <?if ($COA->COA_Used==0) {?> <td class="width130 in_place_edit" data-cell-type="COA_Acct_Number" data-editing="0" data-already-used="<?=$COA->COA_Used?>"> <?} else {?> <td class="width130" data-cell-type="COA_Acct_Number" data-already-used="<?=$COA->COA_Used?>"> <?}?> <?php echo Helper::cutText(14, 170, 20, $COA->COA_Acct_Number); ?> </td> <td class="amount_cell in_place_edit" data-cell-type="COA_Budget" data-editing="0" data-already-used="0"> <span class="left">$</span><span><?php echo Helper::cutText(14, 90, 13, number_format($COA->COA_Budget,2)); ?></span> </td> </tr> <?php } } else { echo '<tr> <td> COA not found. </td> </tr>'; } ?>
<span class="width480 inblock"> <span class="wh66_20"></span>' . ((!$empty) ? '<span class="tree_nav" data-status="' . $folder['status'] . '"><span class="' . (($folder['status'] == 'opened') ? 'minus_icon' : 'plus_icon') . '"></span><span class="folder_' . $folder['status'] . '"></span></span>' : '<span class="wh20"></span><span class="folder_closed"></span>') . '<span class="lib_cont">' . Helper::cutText(15,260,40,$folder['name']) . '</span> </span> ' . (($organizePage) ? '' : ' <span> <span class="lib_cont">' . $folder['type'] . '</span> </span>') . ' </div>'; if (count($folder['subsections']) > 0) { $panels = $folder['subsections']; foreach ($panels as $panel) { echo '<div data-storage="0" class="subsection_block" ' . (($folder['status'] == 'opened') ? 'style="display: block"' : '') . '>'; echo '<div class="table_row' . ($panel['selected'] ? ' selected_item' : '') . '" data-row-type="subsection" data-storage="0" data-id="' . $panel['id'] . '" data-deletable="' . (($panel['created'] == Yii::app()->user->userID) ? '1' : '0') . '" data-subsections="' . count($folder['subsections']) . '"> <span> <span class="wh110_20"></span><span class="panel_icon"></span><span class="lib_cont">' . Helper::cutText(15,260,30,$panel['name']) . '</span> </span> </div>'; echo '</div>'; } } echo '</div>'; } echo '</div>'; } } echo '</div>'; } } else { echo '<div>
<td class="width140"> <?php echo isset($po->vendor->client->company->Company_Name) ? Helper::cutText(15, 160, 14, $po->vendor->client->company->Company_Name) : '<span class="not_set">Vendor not attached</span>'; ?> </td> <td class="width40"> <?php echo $po->PO_Number; ?> </td> <td class="amount_cell width95"><?php echo CHtml::encode($po->PO_Total) ? CHtml::encode(number_format($po->PO_Total, 2)) : '<span class="not_set">Not set</span>'; ?></td> <td class="width70"> <?php echo isset($budgets[$po->PO_ID]) ? Helper::cutText(15, 90, 10, implode('; ' ,$budgets[$po->PO_ID])) : '<span class="not_set">Not set</span>'; ?> </td> <td> <span class="cutted_cell"> <?php echo CHtml::encode($notes[$po->PO_ID]) ? Helper::cutText(11, 240, 28, $notes[$po->PO_ID]) : '<span class="not_set">No comments</span>'; ?> </span> </td> </tr> <?php } } else { echo '<tr> <td> POs were not found. </td> </tr>'; } ?>