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


PHP Helper::cutText方法代码示例

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


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

示例1: foreach

             <?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>
开发者ID:ranvijayj,项目名称:htmlasa,代码行数:31,代码来源:build_vendors_list_for_import.php

示例2: foreach

<?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.
开发者ID:ranvijayj,项目名称:htmlasa,代码行数:31,代码来源:vendorlist.php

示例3: isset

    </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>
开发者ID:ranvijayj,项目名称:htmlasa,代码行数:31,代码来源:detail.php

示例4: if

<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'];
            }
        }
开发者ID:ranvijayj,项目名称:htmlasa,代码行数:31,代码来源:alternative.php

示例5: echo

                             $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>
开发者ID:ranvijayj,项目名称:htmlasa,代码行数:31,代码来源:build_coa_list_for_import.php

示例6: isset

            $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>';
}
?>
开发者ID:ranvijayj,项目名称:htmlasa,代码行数:31,代码来源:pcslist.php

示例7:

                  <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>';
        }
开发者ID:ranvijayj,项目名称:htmlasa,代码行数:30,代码来源:filtered_documents_list.php

示例8: number_format

                 ?>
            </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>';
}
?>
开发者ID:ranvijayj,项目名称:htmlasa,代码行数:31,代码来源:_partial_cue_list.php

示例9: foreach

</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>
开发者ID:ranvijayj,项目名称:htmlasa,代码行数:31,代码来源:create.php

示例10: foreach

        <?}?>

        <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>';
            }
开发者ID:ranvijayj,项目名称:htmlasa,代码行数:31,代码来源:w9_list.php

示例11: if

         </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
                 }
                 ?>
开发者ID:ranvijayj,项目名称:htmlasa,代码行数:31,代码来源:organize.php

示例12: foreach

            <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>
开发者ID:ranvijayj,项目名称:htmlasa,代码行数:31,代码来源:manage.php

示例13: while

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);
开发者ID:rocafuerte,项目名称:opus_static,代码行数:30,代码来源:events.php

示例14: array

    </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,
开发者ID:ranvijayj,项目名称:htmlasa,代码行数:31,代码来源:view_storage.php

示例15: isset

         $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
 }
开发者ID:ranvijayj,项目名称:htmlasa,代码行数:31,代码来源:paymentslist.php


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