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


PHP X2Html::minimizeButton方法代码示例

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


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

示例1: getViewActionMenuListItem

 public static function getViewActionMenuListItem($modelId)
 {
     if (Yii::app()->controller->action->getId() === 'view') {
         return array('name' => 'view', 'label' => Yii::t('app', 'View') . X2Html::minimizeButton(array('class' => 'record-view-type-menu-toggle'), '#record-view-type-menu', true, Yii::app()->params->profile->miscLayoutSettings['viewModeActionSubmenuOpen']), 'encodeLabel' => false, 'url' => array('view', 'id' => $modelId), 'linkOptions' => array('onClick' => '$(this).find ("i:visible").click ();'), 'itemOptions' => array('id' => 'view-record-action-menu-item'), 'submenuOptions' => array('id' => 'record-view-type-menu', 'style' => Yii::app()->params->profile->miscLayoutSettings['viewModeActionSubmenuOpen'] ? '' : 'display: none;'), 'items' => array(array('encodeLabel' => false, 'name' => 'journalView', 'label' => CHtml::checkBox('journalView', Yii::app()->params->profile->miscLayoutSettings['enableJournalView'], array('class' => 'journal-view-checkbox')) . CHtml::label(Yii::t('app', 'Journal View'), 'journalView')), array('encodeLabel' => false, 'name' => 'transactionalView', 'label' => CHtml::checkBox('transactionalView', Yii::app()->params->profile->miscLayoutSettings['enableTransactionalView'], array('class' => 'transactional-view-checkbox')) . CHtml::label(Yii::t('app', 'List View'), 'transactionalView'))));
     } else {
         return array('name' => 'view', 'label' => Yii::t('app', 'View'), 'encodeLabel' => true, 'url' => array('view', 'id' => $modelId));
     }
 }
开发者ID:tymiles003,项目名称:X2CRM,代码行数:8,代码来源:RecordViewLayoutManager.php

示例2: array

    <h3><?php 
    echo Yii::t('admin', 'Customize CSV') . CHtml::link(X2Html::minimizeButton(array(), '#exportSeparator', true, false), '#');
    ?>
</h3>
    <div id='exportSeparator' style='display:none'>
        <?php 
    echo CHtml::label(Yii::t('admin', 'Delimeter'), 'delimeter');
    echo CHtml::textField('delimeter', ',') . '<br />';
    echo CHtml::label(Yii::t('admin', 'Enclosure'), 'enclosure');
    echo CHtml::textField('enclosure', '"');
    ?>
    </div>

    <h3><?php 
    echo Yii::t('admin', 'Format Options') . CHtml::link(X2Html::minimizeButton(array(), '#exportFormat', true, false), '#');
    ?>
</h3>

    <div id="exportFormat">
        <?php 
    $this->renderPartial('application.components.views._exportFormat');
    ?>
    </div>
    <br>

    <?php 
    echo CHtml::button(Yii::t('app', 'Export'), array('class' => 'x2-button', 'id' => 'export-button'));
    ?>

    <div id="status-text"></div>
开发者ID:tymiles003,项目名称:X2CRM,代码行数:30,代码来源:exportModels.php

示例3: unset

</a>
    <div id="example-box" style="display:none;"><img src="<?php 
    echo Yii::app()->theme->getBaseUrl() . "/images/examplecsv.png";
    ?>
"/></div>
    <br><br>
    </div>
    <div class="form" style="width:600px;">
<?php 
    unset($_SESSION['model']);
    echo "<h3>" . Yii::t('admin', 'Upload File') . "</h3>";
    echo CHtml::form('importModels', 'post', array('enctype' => 'multipart/form-data', 'id' => 'importModels'));
    echo CHtml::fileField('data', '', array('id' => 'data')) . "<br>";
    echo CHtml::hiddenField('model', $model);
    echo "<i>" . Yii::t('app', 'Allowed filetypes: .csv') . "</i><br><br>";
    echo "<h3>" . Yii::t('admin', 'Import Map') . X2Html::minimizeButton(array('class' => 'pseudo-link'), '#upload-map') . "</h3>";
    echo "<div id='upload-map' style='display:none;'>";
    echo Yii::t('admin', "You may select a predefined map here, or upload your own.") . "<br />";
    $availImportMaps = $this->availableImportMaps($model);
    if (empty($availImportMaps)) {
        echo "<div style='color:red'>";
        echo Yii::t('app', "No related import maps were found.");
        echo "</div>";
    } else {
        echo CHtml::radioButtonList('x2maps', null, $availImportMaps, array('labelOptions' => array('style' => 'display:inline')));
    }
    echo "<br /><br />";
    echo CHtml::fileField('mapping', '', array('id' => 'mapping')) . "<br>";
    echo "<i>" . Yii::t('app', 'Allowed filetypes: .json') . "</i>";
    echo "</div><br><br>";
    echo CHtml::submitButton(Yii::t('app', 'Submit'), array('class' => 'x2-button'));
开发者ID:shuvro35,项目名称:X2CRM,代码行数:31,代码来源:importModels.php

示例4: ini_get

    echo Yii::t('admin', 'Select the fields you wish to map. Fields that have been detected as matching an existing field have been selected.') . '<br /><br />';
    echo Yii::t('admin', 'Fields that are not selected will not be mapped. To override a mapping, select the appropriate field from the corresponding drop down.') . '<br /><br />';
    echo Yii::t('admin', 'Selecting "DO NOT MAP" will ignore the field from your CSV, and selecting "CREATE NEW FIELD" will generate a new text field within X2 and map your field to it.') . '<br /><br />';
}
$maxExecTime = ini_get('max_execution_time');
if ($maxExecTime <= 30) {
    echo '<div class="flash-notice">' . Yii::t('admin', 'Warning: This server is configured with a short maximum execution time. This can result in the import being terminated before completion. You may wish to increase' . ' this value. The current maximum execution time is {exec_time} seconds.', array('{exec_time}' => $maxExecTime)) . '</div>';
}
?>

</div><br /></div>
<div id="import-container" class='form'>
<div id="super-import-map-box">
<h2><span class="import-hide">
    <?php 
echo Yii::t('admin', 'Import Map') . X2Html::minimizeButton(array(), '#import-map-box', false, true);
?>
</span></h2>
<div id="import-map-box" class="import-hide form" style="width:600px">
    <div id="form-error-box"></div>
</br />

<div id='mapping-overrides'>
<?php 
echo Yii::t('admin', 'Below is a list of our fields, the fields you provided, and a few sample records that you are importing. ');
echo Yii::t('admin', 'Selecting "DO NOT MAP" will ignore the field. Selecting "CREATE NEW FIELD" will generate a new text field within X2 and map your field to it. Selecting "APPLY TAGS" will treat the attribute as a list of tags and apply each tag to the imported record.');
?>
<br /><br />
<table id="import-map" >
    <tr>
        <td><strong><?php 
开发者ID:xl602,项目名称:X2CRM,代码行数:31,代码来源:processModels.php

示例5: array

echo CHtml::form('import', 'post', array('enctype' => 'multipart/form-data', 'id' => 'file-form'));
echo CHtml::activeFileField($formModel, 'data', array('id' => 'data'));
echo CHtml::error($formModel, 'data');
?>
 <br><br>
<?php 
echo Yii::t('admin', 'Overwrite old data');
echo X2Html::hint("Overwriting is disabled on Fields as this would remove all currently existing data in that field.");
?>
<br>
<?php 
echo CHtml::activeDropDownList($formModel, 'overwrite', array(0 => Yii::t('app', 'No'), 1 => Yii::t('app', 'Yes')), array('id' => 'overwrite-selector'));
?>

<h3><?php 
echo Yii::t('admin', 'Customize CSV') . X2Html::minimizeButton(array('class' => 'pseudo-link'), '#importSeparator');
?>
</h3>
<div id='importSeparator' style='display:none'>
    <?php 
echo CHtml::activeLabel($formModel, 'delimeter');
echo CHtml::activeTextField($formModel, 'delimeter') . '<br />';
echo CHtml::activeLabel($formModel, 'enclosure');
echo CHtml::activeTextField($formModel, 'enclosure');
?>
</div>
<br><br>
<?php 
echo CHtml::submitButton(Yii::t('app', 'Submit'), array('class' => 'x2-button', 'id' => 'import-button'));
echo CHtml::endForm();
?>
开发者ID:tymiles003,项目名称:X2CRM,代码行数:31,代码来源:import.php


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