コード例 #1
0
ファイル: profile.php プロジェクト: tymiles003/X2CRM
if (!$isMyProfile && Yii::app()->user->id == $model->id) {
    $this->insertActionMenu();
}
$this->noBackdrop = true;
Yii::import('application.components.leftWidget.ProfileInfo');
Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/profile.js', CClientScript::POS_END);
Yii::app()->clientScript->registerCssFiles('profileCombinedCss', array('profile.css', 'activityFeed.css', '../../../js/multiselect/css/ui.multiselect.css'));
Yii::app()->clientScript->registerResponsiveCssFile(Yii::app()->theme->baseUrl . '/css/responsiveActivityFeed.css');
AuxLib::registerPassVarsToClientScriptScript('x2.profile', array('isMyProfile' => $isMyProfile ? 'true' : 'false'), 'profileScript');
$fullProfile = $isMyProfile ? 'full-profile' : '';
$width = '';
if ($isMyProfile) {
    $this->leftWidgets = array('ProfileInfo' => array('model' => $model));
    $dashboard = $this->widget('ProfileDashboardManager', array('model' => $model));
    list($width) = $dashboard->getColumnWidths();
    Tours::loadTips('profile.index');
}
?>
<div id='profile-content-container' class='<?php 
echo $fullProfile;
?>
'>

    <div id='profile-info-container-outer'>
        <?php 
if (!$isMyProfile) {
    $this->renderPartial('_profileInfo', array('model' => $model));
}
echo X2Html::getFlashes();
?>
    </div>
コード例 #2
0
ファイル: create.php プロジェクト: dsyman2/X2CRM
 * 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".
 *****************************************************************************************/
Tours::loadTips('marketing.create');
$this->pageTitle = Yii::t('marketing', 'Create Campaign');
$menuOptions = array('all', 'create', 'lists', 'newsletters', 'weblead', 'webtracker', 'x2flow');
$this->insertMenu($menuOptions);
$form = $this->beginWidget('CActiveForm', array('id' => 'campaign-form', 'enableAjaxValidation' => false));
?>

<div class="page-title icon marketing">
    <h2><?php 
echo Yii::t('marketing', 'Create Campaign');
?>
</h2>
    <?php 
echo CHtml::submitButton(Yii::t('module', 'Create'), array('class' => 'x2-button highlight right'));
?>
</div>