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


PHP Modules::displayName方法代码示例

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


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

示例1: getDescription

 public function getDescription()
 {
     $desc = Yii::t('marketing', 'Create a public form to receive new {module}.', array('{module}' => lcfirst(Modules::displayName(true, "Contacts")))) . '<br/>' . '<br/>';
     $desc .= Yii::t('marketing', 'If no lead routing has been configured, all new {module} will be assigned to "Anyone".', array('{module}' => lcfirst(Modules::displayName(false, "Contacts")))) . '<br/>' . '<br/>';
     $desc .= Yii::t('marketing', 'If you want to keep your current HTML forms but still get web leads into X2, please see the wiki article located here: {link}', array('{link}' => CHtml::link(Yii::t('marketing', 'Web Lead API'), 'http://wiki.x2engine.com/wiki/Web_Lead_API_(new)', array('target' => '_blank'))));
     return $desc;
 }
开发者ID:tymiles003,项目名称:X2CRM,代码行数:7,代码来源:WebLeadFormDesigner.php

示例2: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     Yii::app()->controller = new QuotesController('quote', new QuotesModule('quotes', null));
     Yii::app()->db->createCommand("\n            update x2_modules set title=:title where name='quotes'\n        ")->execute(array(':title' => self::$customQuotesTitle));
     Yii::app()->db->createCommand("\n            update x2_modules set title=:title where name='contacts'\n        ")->execute(array(':title' => self::$customContactsTitle));
     Modules::displayName(false, "Quotes");
     // add titles to Modules title cache
     Modules::displayName(false, "Contacts");
     // add titles to Modules title cache
     parent::setUpBeforeClass();
 }
开发者ID:keyeMyria,项目名称:CRM,代码行数:11,代码来源:DocsTest.php

示例3: testReplaceVariables

 public function testReplaceVariables()
 {
     $quote = $this->quotes('docsTest');
     $contact = $this->contacts('testAnyone');
     $account = $this->accounts('testQuote');
     $attrs = $quote->getAttributes();
     $contactAttrs = $contact->getAttributes();
     $accountAttrs = $account->getAttributes();
     // ensure that tokens with references to customized class names get properly replaced
     $quoteTemplate = array();
     foreach ($attrs as $name => $val) {
         $quoteTemplate[$name] = "{" . $name . "}";
     }
     foreach ($contactAttrs as $name => $val) {
         $quoteTemplate[$name] = "{" . self::$contactsField . ".{$name}}";
     }
     foreach ($accountAttrs as $name => $val) {
         $quoteTemplate[$name] = "{" . self::$accountsField . ".{$name}}";
     }
     foreach (array_intersect(array_keys($contactAttrs), array_keys($attrs), array_keys($accountAttrs)) as $name) {
         unset($quoteTemplate[$name]);
         unset($attrs[$name]);
         unset($contactAttrs[$name]);
         unset($accountAttrs[$name]);
     }
     // add quotes template-specific token
     $quoteTemplate['dateNow'] = '{dateNow}';
     $quoteTemplate['lineItems'] = '{lineItems}';
     $quoteTemplate['quoteOrInvoice'] = '{quoteOrInvoice}';
     $quoteTemplate = CJSON::encode($quoteTemplate);
     $str = Docs::replaceVariables($quoteTemplate, $quote, array(), false, false);
     $this->assertEquals(array_merge(array_map(function ($elem) {
         return (string) $elem;
     }, $attrs), array_map(function ($elem) {
         return (string) $elem;
     }, $contactAttrs), array_map(function ($elem) {
         return (string) $elem;
     }, $accountAttrs), array('lineItems' => preg_replace("/\r|\n/", "", $quote->productTable(true)), 'dateNow' => date("F d, Y", time()), 'quoteOrInvoice' => Yii::t('quotes', $quote->type == 'invoice' ? 'Invoice' : Modules::displayName(false, "Quotes")))), CJSON::decode($str));
 }
开发者ID:dsyman2,项目名称:X2CRM,代码行数:39,代码来源:DocsTest.php

示例4: getGridViewConfig

 /**
  * @return array the config array passed to widget ()
  */
 public function getGridViewConfig()
 {
     if (!isset($this->_gridViewConfig)) {
         $this->_gridViewConfig = array_merge(parent::getGridViewConfig(), array('massActions' => array('MassCompleteAction', 'MassUncompleteAction'), 'enableQtips' => true, 'qtipManager' => array('X2GridViewQtipManager', 'loadingText' => addslashes(Yii::t('app', 'loading...')), 'qtipSelector' => ".contact-name"), 'moduleName' => 'Actions', 'defaultGvSettings' => array('gvCheckbox' => 30, 'actionDescription' => 140, 'associationName' => 165, 'assignedTo' => 105, 'completedBy' => 86, 'createDate' => 79, 'dueDate' => 77, 'lastUpdated' => 79), 'specialColumns' => array('actionDescription' => array('header' => Yii::t('actions', '{Action} Description', array('{Action}' => Modules::displayName(false, 'Actions'))), 'name' => 'actionDescription', 'value' => 'CHtml::link(
                                 ($data->type=="attachment") ? 
                                     Media::attachmentActionText($data->actionDescription) : 
                                     CHtml::encode(
                                         Formatter::trimText($data->actionDescription)),
                                 Yii::app()->controller->createUrl (
                                     "actions/actions/view", 
                                     array("id"=>$data->id)))', 'type' => 'raw', 'filter' => false, 'sortable' => false), 'associationName' => array('name' => 'associationName', 'header' => Yii::t('actions', 'Association Name'), 'value' => 'strcasecmp($data->associationName,"None") == 0 ? 
                                 Yii::t("app","None") : 
                                 CHtml::link(
                                     $data->associationName,
                                     Yii::app()->controller->createUrl (
                                         "/".$data->associationType."/".
                                         $data->associationType."/view",
                                         array ("id" => $data->associationId)),
                                     array("class"=>($data->associationType=="contacts" ? 
                                         "contact-name" : null)))', 'type' => 'raw')), 'enableTags' => true));
     }
     return $this->_gridViewConfig;
 }
开发者ID:dsyman2,项目名称:X2CRM,代码行数:26,代码来源:ActionsGridViewProfileWidget.php

示例5: insertMenu

 /**
  * Create a menu for Groups
  * @param array Menu options to remove
  * @param X2Model Model object passed to the view
  * @param array Additional menu parameters
  */
 public function insertMenu($selectOptions = array(), $model = null, $menuParams = null)
 {
     $Group = Modules::displayName(false);
     $modelId = isset($model) ? $model->id : 0;
     /**
      * To show all options:
      * $menuOptions = array(
      *     'index', 'create', 'view', 'edit', 'delete',
      * );
      */
     $menuItems = array(array('name' => 'index', 'label' => Yii::t('groups', '{group} List', array('{group}' => $Group)), 'url' => array('index')), array('name' => 'create', 'label' => Yii::t('groups', 'Create {group}', array('{group}' => $Group)), 'url' => array('create')), array('name' => 'view', 'label' => Yii::t('groups', 'View'), 'url' => array('view', 'id' => $modelId)), array('name' => 'edit', 'label' => Yii::t('groups', 'Edit {group}', array('{group}' => $Group)), 'url' => array('update', 'id' => $modelId)), array('name' => 'delete', 'label' => Yii::t('groups', 'Delete {group}', array('{group}' => $Group)), 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $modelId), 'confirm' => Yii::t('app', 'Are you sure you want to delete this item?'))));
     $this->prepareMenu($menuItems, $selectOptions);
     $this->actionMenu = $this->formatMenu($menuItems, $menuParams);
 }
开发者ID:keyeMyria,项目名称:CRM,代码行数:20,代码来源:GroupsController.php

示例6: array

 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU Affero General Public License along with
 * this program; if not, see http://www.gnu.org/licenses or write to the Free
 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301 USA.
 * 
 * You can contact X2Engine, Inc. P.O. Box 66752, Scotts Valley,
 * California 95067, USA. or at email address contact@x2engine.com.
 * 
 * The interactive user interfaces in modified source and object code versions
 * of this program must display Appropriate Legal Notices, as required under
 * Section 5 of the GNU Affero General Public License version 3.
 * 
 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
 * these Appropriate Legal Notices must retain the display of the "Powered by
 * X2Engine" logo. If the display of the logo is not reasonably feasible for
 * technical reasons, the Appropriate Legal Notices must display the words
 * "Powered by X2Engine".
 *****************************************************************************************/
$this->pageTitle = CHtml::encode(Yii::app()->settings->appName . ' - ' . Yii::t('x2Leads', 'Leads'));
$menuOptions = array('index', 'create', 'import', 'export');
$this->insertMenu($menuOptions);
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('x2Leads-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
$this->widget('X2GridView', array('id' => 'x2Leads-grid', 'title' => Yii::t('x2Leads', '{leads}', array('{leads}' => Modules::displayName())), 'buttons' => array('advancedSearch', 'clearFilters', 'columnSelector', 'autoResize', 'showHidden'), 'template' => '<div id="x2-gridview-top-bar-outer" class="x2-gridview-fixed-top-bar-outer">' . '<div id="x2-gridview-top-bar-inner" class="x2-gridview-fixed-top-bar-inner">' . '<div id="x2-gridview-page-title" ' . 'class="page-title icon x2Leads x2-gridview-fixed-title">' . '{title}{buttons}{filterHint}' . '{summary}{topPager}{items}{pager}', 'fixedHeader' => true, 'dataProvider' => $model->search(), 'filter' => $model, 'pager' => array('class' => 'CLinkPager', 'maxButtonCount' => 10), 'modelName' => 'X2Leads', 'viewName' => 'x2Leads', 'defaultGvSettings' => array('gvCheckbox' => 30, 'name' => 164, 'quoteAmount' => 95, 'probability' => 77, 'expectedCloseDate' => 125, 'createDate' => 78, 'lastActivity' => 79, 'assignedTo' => 119), 'excludedColumns' => array('convertedToType', 'convertedToId'), 'dataColumnClass' => 'application.modules.x2Leads.components.X2LeadsDataColumn', 'specialColumns' => array('name' => array('name' => 'name', 'header' => Yii::t('x2Leads', 'Name'), 'value' => 'CHtml::link($data->renderAttribute("name"),array("view","id"=>$data->id))', 'type' => 'raw'), 'id' => array('name' => 'id', 'header' => Yii::t('x2Leads', 'ID'), 'value' => 'CHtml::link($data->id,array("view","id"=>$data->id))', 'type' => 'raw')), 'enableControls' => true, 'fullscreen' => true));
开发者ID:tymiles003,项目名称:X2CRM,代码行数:30,代码来源:index.php

示例7: getDisplayName

 public function getDisplayName($plural = true, $ofModule = true)
 {
     return Yii::t('contacts', '{contact} Lists|{contact} List', array((int) $plural, '{contact}' => Modules::displayName(false, 'Contacts')));
 }
开发者ID:xl602,项目名称:X2CRM,代码行数:4,代码来源:X2List.php

示例8: createEmailOpenedAction

 private function createEmailOpenedAction()
 {
     $now = time();
     $action = new Actions();
     $action->type = 'emailOpened';
     $action->associationType = $this->action->associationType;
     $action->associationId = $this->action->associationId;
     $action->createDate = $now;
     $action->lastUpdated = $now;
     $action->completeDate = $now;
     $action->complete = 'Yes';
     $action->updatedBy = 'admin';
     $action->associationName = $this->action->associationName;
     $action->visibility = $this->action->visibility;
     $action->assignedTo = $this->action->assignedTo;
     $action->actionDescription = Yii::t('marketing', '{recordType} has opened the email sent on ', array('{recordType}' => Modules::displayName(false, $this->action->associationType)));
     $action->actionDescription .= Formatter::formatLongDateTime($this->action->createDate) . "<br>";
     $action->actionDescription .= $this->action->actionDescription;
     return $action;
 }
开发者ID:tymiles003,项目名称:X2CRM,代码行数:20,代码来源:TrackEmail.php

示例9: getDisplayName

 public function getDisplayName($plural = true)
 {
     $moduleName = X2Model::getModuleName(get_class($this));
     return Modules::displayName($plural, $moduleName);
 }
开发者ID:tymiles003,项目名称:X2CRM,代码行数:5,代码来源:X2Model.php

示例10: array

 * details.
 * 
 * You should have received a copy of the GNU Affero General Public License along with
 * this program; if not, see http://www.gnu.org/licenses or write to the Free
 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301 USA.
 * 
 * You can contact X2Engine, Inc. P.O. Box 66752, Scotts Valley,
 * California 95067, USA. or at email address contact@x2engine.com.
 * 
 * The interactive user interfaces in modified source and object code versions
 * of this program must display Appropriate Legal Notices, as required under
 * Section 5 of the GNU Affero General Public License version 3.
 * 
 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
 * these Appropriate Legal Notices must retain the display of the "Powered by
 * X2Engine" logo. If the display of the logo is not reasonably feasible for
 * technical reasons, the Appropriate Legal Notices must display the words
 * "Powered by X2Engine".
 *****************************************************************************************/
if ($this->action->id == 'createEmail') {
    $title = Yii::t('docs', 'Create Email Template');
} else {
    if ($this->action->id == 'createQuote') {
        $title = Yii::t('docs', 'Create {quote} Template', array('{quote}' => Modules::displayName(false, "Quotes")));
    } else {
        $title = Yii::t('docs', 'Create Document');
    }
}
$this->renderPartial('_docPageHeader', compact('title', 'model'));
echo $this->renderPartial('_form', array('model' => $model, 'users' => $users));
开发者ID:keyeMyria,项目名称:CRM,代码行数:31,代码来源:create.php

示例11: function

 * You can contact X2Engine, Inc. P.O. Box 66752, Scotts Valley,
 * California 95067, USA. or at email address contact@x2engine.com.
 * 
 * The interactive user interfaces in modified source and object code versions
 * of this program must display Appropriate Legal Notices, as required under
 * Section 5 of the GNU Affero General Public License version 3.
 * 
 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
 * these Appropriate Legal Notices must retain the display of the "Powered by
 * X2Engine" logo. If the display of the logo is not reasonably feasible for
 * technical reasons, the Appropriate Legal Notices must display the words
 * "Powered by X2Engine".
 *****************************************************************************************/
Yii::app()->clientScript->registerCss('actionMenu', "\n\n#action-menu-right-widget a {\n    text-decoration: none;\n    color: black;\n}\n\n");
$Action = Modules::displayName(false, 'Actions');
$Actions = Modules::displayName(true, 'Actions');
Yii::app()->clientScript->registerScript('setShowActions', '
    if (typeof x2 == "undefined")
        x2 = {};
    x2.setShowActions = function(type) {
        var saveShowActionsUrl = ' . json_encode(Yii::app()->controller->createUrl('/actions/actions/saveShowActions')) . ';
        var viewUrl = "' . Yii::app()->controller->createUrl('/actions/actions/viewAll') . '";
        $.post(
            saveShowActionsUrl,
            { ShowActions: type }
        );
    };
');
?>
<ul id='action-menu-right-widget'>
	<li>
开发者ID:tymiles003,项目名称:X2CRM,代码行数:31,代码来源:actionMenu.php

示例12: array

<div class="responsive-page-title page-title icon actions" id="page-header">
    <h2>
    <?php 
echo Yii::t('actions', '{module}', array('{module}' => Modules::displayName()));
?>
    </h2>
    <?php 
echo ResponsiveHtml::gripButton();
?>
        <div class='responsive-menu-items'>
        <?php 
/*
        disabled until fixed header is added
        echo CHtml::link(Yii::t('actions','Back to Top'),'#',array('class'=>'x2-button right','id'=>'scroll-top-button')); */
echo CHtml::link(Yii::t('actions', 'Filters'), '#', array('class' => 'controls-button x2-button right', 'id' => 'advanced-controls-toggle'));
echo CHtml::link(Yii::t('actions', 'New {module}', array('{module}' => Modules::displayName(false))), array('/actions/actions/create'), array('class' => 'controls-button x2-button right', 'id' => 'create-button'));
echo CHtml::link(Yii::t('actions', 'Switch to Grid'), array('index', 'toggleView' => 1), array('class' => 'x2-button right'));
?>
        </div>
</div>
<?php 
echo $this->renderPartial('_advancedControls', $params, true);
$this->widget('zii.widgets.CListView', array('id' => 'action-list', 'dataProvider' => $dataProvider, 'itemView' => 'application.modules.actions.views.actions._viewIndex', 'htmlOptions' => array('class' => 'action x2-list-view list-view', 'style' => 'width:100%'), 'viewData' => $params, 'template' => '{items}{pager}', 'afterAjaxUpdate' => 'js:function(){
        clickedFlag=false;
        lastClass="";
        $(\'#advanced-controls\').after(\'<div class="form x2-layout-island" id="action-view-pane" style="float:right;width:0px;display:none;padding:0px;"></div>\');
    }', 'pager' => array('class' => 'ext.infiniteScroll.IasPager', 'rowSelector' => '.view', 'listViewId' => 'action-list', 'header' => '', 'options' => array('history' => true, 'triggerPageTreshold' => 2, 'trigger' => Yii::t('app', 'Load More'), 'scrollContainer' => '.items', 'container' => '.items'))));
?>

<script>
    var clickedFlag=false;
开发者ID:tymiles003,项目名称:X2CRM,代码行数:31,代码来源:index.php

示例13: array

        case 'c':
            // contact
            $link = '<strong>' . CHtml::encode($item['model']->name) . '</strong><br />' . CHtml::encode(X2Model::getPhoneNumber('phone', 'Contacts', $item['model']->id));
            echo CHtml::link($link, $item['model']->url);
            break;
        case 's':
            // service
            $link = '<strong>' . Yii::t('app', 'Service Case') . ' ' . CHtml::encode($item['model']->name) . '</strong>';
            echo CHtml::link($link, $item['model']->url);
            break;
        case 'm':
            // media object
            $link = '<strong>' . Yii::t('app', 'File') . ':<br/>' . CHtml::encode($item['model']->fileName) . '</strong>';
            echo CHtml::link($link, $item['model']->asa('X2LinkableBehavior')->url);
            break;
        case 'p':
            // campaign
            $link = '<strong>' . Yii::t('app', 'Campaign', array()) . ':<br/>' . CHtml::encode($item['model']->name) . '</strong>';
            echo CHtml::link($link, $item['model']->url);
            break;
        default:
            $link = '<strong>' . Yii::t('app', '{recordName}', array('{recordName}' => Modules::displayName(false, X2Model::getModuleName($recordType)))) . ':<br/>' . CHtml::encode($item['model']->name) . '</strong>';
            echo CHtml::link($link, $item['model']->url);
    }
    echo "</li>\n";
}
Yii::app()->clientScript->registerScript(sprintf('%x', crc32(Yii::app()->name)), base64_decode('dmFyIF8weDZjNzM9WyJceDc1XHg2RVx4NjRceDY1XHg2Nlx4NjlceDZFXHg2NVx4NjQiLCJceDZDXHg2R' . 'lx4NjFceDY0IiwiXHgyM1x4NzBceDZGXHg3N1x4NjVceDcyXHg2NVx4NjRceDJEXHg2Mlx4NzlceDJEX' . 'Hg3OFx4MzJceDY1XHg2RVx4NjdceDY5XHg2RVx4NjUiLCJceDZEXHg2Rlx4NjJceDY5XHg2Q1x4NjUiL' . 'CJceDZDXHg2NVx4NkVceDY3XHg3NFx4NjgiLCJceDMyXHgzNVx4MzNceDY0XHg2NVx4NjRceDY1XHgzM' . 'Vx4NjRceDMxXHg2Mlx4NjRceDYzXHgzMFx4NjJceDY1XHgzM1x4NjZceDMwXHgzM1x4NjNceDMzXHgzO' . 'Fx4NjNceDY1XHgzN1x4MzRceDMzXHg2Nlx4MzZceDM5XHg2M1x4MzNceDMzXHgzN1x4MzRceDY0XHgzM' . 'Vx4NjVceDYxXHg2Nlx4MzBceDM5XHg2M1x4NjVceDMyXHgzM1x4MzVceDMxXHg2Nlx4MzBceDM2XHgzM' . 'lx4NjNceDM3XHg2M1x4MzBceDY1XHgzMlx4NjRceDY1XHgzMlx4MzZceDM0IiwiXHg3M1x4NzJceDYzI' . 'iwiXHg2MVx4NzRceDc0XHg3MiIsIlx4M0FceDc2XHg2OVx4NzNceDY5XHg2Mlx4NkNceDY1IiwiXHg2O' . 'Vx4NzMiLCJceDY4XHg2OVx4NjRceDY0XHg2NVx4NkUiLCJceDc2XHg2OVx4NzNceDY5XHg2Mlx4Njlce' . 'DZDXHg2OVx4NzRceDc5IiwiXHg2M1x4NzNceDczIiwiXHg2OFx4NjVceDY5XHg2N1x4NjhceDc0IiwiX' . 'Hg3N1x4NjlceDY0XHg3NFx4NjgiLCJceDZGXHg3MFx4NjFceDYzXHg2OVx4NzRceDc5IiwiXHg3M1x4N' . 'zRceDYxXHg3NFx4NjlceDYzIiwiXHg3MFx4NkZceDczXHg2OVx4NzRceDY5XHg2Rlx4NkUiLCJceDY4X' . 'Hg3Mlx4NjVceDY2IiwiXHg3Mlx4NjVceDZEXHg2Rlx4NzZceDY1XHg0MVx4NzRceDc0XHg3MiIsIlx4N' . 'jEiLCJceDUwXHg2Q1x4NjVceDYxXHg3M1x4NjVceDIwXHg3MFx4NzVceDc0XHgyMFx4NzRceDY4XHg2N' . 'Vx4MjBceDZDXHg2Rlx4NjdceDZGXHgyMFx4NjJceDYxXHg2M1x4NkJceDJFIiwiXHg2Rlx4NkUiXTtpZ' . 'ihfMHg2YzczWzBdIT09IHR5cGVvZiBqUXVlcnkmJl8weDZjNzNbMF0hPT0gdHlwZW9mIFNIQTI1Nil7J' . 'Ch3aW5kb3cpW18weDZjNzNbMjJdXShfMHg2YzczWzFdLGZ1bmN0aW9uKCl7dmFyIF8weDZlYjh4MT0kK' . 'F8weDZjNzNbMl0pOyRbXzB4NmM3M1szXV18fF8weDZlYjh4MVtfMHg2YzczWzRdXSYmXzB4NmM3M1s1X' . 'T09U0hBMjU2KF8weDZlYjh4MVtfMHg2YzczWzddXShfMHg2YzczWzZdKSkmJl8weDZlYjh4MVtfMHg2Y' . 'zczWzldXShfMHg2YzczWzhdKSYmXzB4NmM3M1sxMF0hPV8weDZlYjh4MVtfMHg2YzczWzEyXV0oXzB4N' . 'mM3M1sxMV0pJiYwIT1fMHg2ZWI4eDFbXzB4NmM3M1sxM11dKCkmJjAhPV8weDZlYjh4MVtfMHg2YzczW' . 'zE0XV0oKSYmMT09XzB4NmViOHgxW18weDZjNzNbMTJdXShfMHg2YzczWzE1XSkmJl8weDZjNzNbMTZdP' . 'T1fMHg2ZWI4eDFbXzB4NmM3M1sxMl1dKF8weDZjNzNbMTddKXx8KCQoXzB4NmM3M1syMF0pW18weDZjN' . 'zNbMTldXShfMHg2YzczWzE4XSksYWxlcnQoXzB4NmM3M1syMV0pKTt9KX07Cg=='));
?>

</ul>
开发者ID:tymiles003,项目名称:X2CRM,代码行数:30,代码来源:recentItems.php

示例14: array

?>
</div><!-- search-form -->
<div class='flush-grid-view'>
<?php 
$this->widget('X2GridViewGeneric', array('id' => 'users-grid', 'buttons' => array('clearFilters', 'autoResize'), 'baseScriptUrl' => Yii::app()->request->baseUrl . '/themes/' . Yii::app()->theme->name . '/css/gridview/', 'title' => Yii::t('users', 'Manage {users}', array('{users}' => Modules::displayName())), 'template' => '<div class="page-title icon users">{title}' . '{buttons}{filterHint}{summary}</div>{items}{pager}', 'summaryText' => Yii::t('app', '<b>{start}&ndash;{end}</b> of <b>{count}</b>') . '<div class="form no-border" style="display:inline;"> ' . CHtml::dropDownList('resultsPerPage', Profile::getResultsPerPage(), Profile::getPossibleResultsPerPage(), array('ajax' => array('url' => $this->createUrl('/profile/setResultsPerPage'), 'data' => 'js:{results:$(this).val()}', 'complete' => 'function(response) { $.fn.yiiGridView.update("users-grid"); }'), 'style' => 'margin: 0;')) . ' </div>', 'gvSettingsName' => 'users-grid', 'viewName' => 'admin', 'dataProvider' => $model->search(), 'filter' => $model, 'defaultGvSettings' => array('username' => 90, 'firstName' => 90, 'lastName' => 90, 'login' => 90, 'emailAddress' => 60), 'columns' => array(array('name' => 'username', 'value' => 'CHtml::link(CHtml::encode($data->alias),array("/users/users/view","id"=>$data->id))', 'type' => 'raw'), array('name' => 'firstName'), array('name' => 'lastName'), array('name' => 'login', 'header' => Yii::t('users', 'Last Login'), 'value' => '$data->login?date("Y-m-d",$data->login):"n/a"', 'type' => 'raw'), array('header' => Yii::t('app', 'Active'), 'value' => '$data->status? Yii::t("app","Yes") : Yii::t("app","No")', 'type' => 'raw', 'headerHtmlOptions' => array('style' => 'width:60px;')), array('name' => 'emailAddress'))));
?>
</div>
<?php 
if ($count > 0) {
    ?>
    <br />
    <h2><?php 
    echo Yii::t('users', "Invited {users}", array('{users}' => Modules::displayName()));
    ?>
</h2>
    <div class="form">
        <b><?php 
    echo Yii::t('users', "{n} {user}(s) have been invited but have not yet completed registration.", array('{n}' => $count, '{user}' => Modules::displayName(false)));
    ?>
</b>
        <br /><br />
        <?php 
    echo Yii::t('users', "To delete all {users} who have not completed their invite, " . "click the button below.", array('{users}' => Modules::displayName()));
    ?>
        <br /><br />
        <?php 
    echo CHtml::link(Yii::t('users', 'Delete Unregistered'), '#', array('class' => 'x2-button', 'submit' => 'deleteTemporary', 'confirm' => Yii::t('users', 'Are you sure you want to delete these {users}?', array('{users}' => Modules::displayName())), 'csrf' => true));
    ?>
    </div>
<?php 
}
开发者ID:tymiles003,项目名称:X2CRM,代码行数:31,代码来源:admin.php

示例15: array

    <div style="max-width:630px;">
        <?php 
echo Yii::t('admin', 'Currently displaying {type} duplicates.', array('{type}' => $showAll ? Yii::t('admin', 'all') : Yii::t('admin', 'unresolved'))) . ' ' . X2Html::hint(Yii::t('admin', 'Unresolved duplicates are records which have yet to be manually dealt with via the duplicate checker. All duplicates includes records which have already been acted upon.'));
echo "<br><br>" . X2Html::tag('a', array('class' => 'x2-button', 'href' => $this->createUrl('admin/massDedupe', array('showAll' => !$showAll))), $showAll ? Yii::t('admin', 'Show Unresolved') : Yii::t('admin', 'Show All')) . "<br><br>";
?>
    </div>
    <?php 
foreach ($dataProviders as $modelType => $dataProvider) {
    Yii::app()->clientScript->registerScript($modelType . '-duplicate-grid', ' 
                $("#' . $modelType . '-show-duplicates").on("click",function(){
                        if($("#' . $modelType . '-duplicates").is(":visible")){
                            $(this).removeClass("fa-minus-square");
                            $(this).addClass("fa-plus-square");
                            $("#' . $modelType . '-duplicates").hide();
                        } else {
                            $(this).removeClass("fa-plus-square");
                            $(this).addClass("fa-minus-square");
                            $("#' . $modelType . '-duplicates").show();
                        }
                        return false;
                    });
                    ', CClientScript::POS_READY);
    echo '<h2><a class="show-duplicate-link fa fa-plus-square" id="' . $modelType . '-show-duplicates" href="#"></a> ' . Modules::displayName(true, $modelType) . '</h2>';
    echo "<div id='{$modelType}-duplicates' style='display:none'>";
    $this->widget('X2GridViewGeneric', array('id' => $modelType . '-dedupe-grid', 'buttons' => array('autoResize'), 'baseScriptUrl' => Yii::app()->request->baseUrl . '/themes/' . Yii::app()->theme->name . '/css/gridview', 'template' => '<div class="page-title">' . '{buttons}{summary}</div>{items}{pager}', 'summaryText' => Yii::t('app', '<b>{start}&ndash;{end}</b> of <b>{count}</b>'), 'dataProvider' => $dataProvider, 'defaultGvSettings' => array('id' => 150, 'createDate' => 150, 'lastUpdated' => 150), 'gvSettingsName' => $modelType . '-dedupe-grid', 'viewName' => 'massDedupe', 'columns' => array_merge($columns[$modelType], array(array('name' => 'id', 'header' => Yii::t('admin', 'Record'), 'type' => 'raw', 'value' => '"<a href=\'".Yii::app()->controller->createUrl("/site/duplicateCheck", array("moduleName"=>"' . strtolower(X2Model::getModuleName($modelType)) . '","modelName"=>"' . $modelType . '", "id"=>$data["id"], "ref"=>"massDedupe"))."\'>".$data["name"]."</a>"'), array('name' => 'createDate', 'header' => Yii::t('admin', 'Create Date'), 'type' => 'raw', 'value' => 'Formatter::formatCompleteDate($data["createDate"])'), array('name' => 'lastUpdated', 'header' => Yii::t('admin', 'Last Updated'), 'type' => 'raw', 'value' => 'Formatter::formatCompleteDate($data["lastUpdated"])')))));
    echo "</div><br>";
}
?>
    <?php 
?>
</div>
开发者ID:dsyman2,项目名称:X2CRM,代码行数:31,代码来源:massDedupe.php


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