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


PHP Actions::parseStatus方法代码示例

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


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

示例1: elseif

    </div>-->
    <div class="icon <?php 
echo $type;
?>
">
    <div class="stacked-icon"></div>
    </div>
    <div class="header">
<?php 
if (empty($data->type) || $data->type == 'weblead') {
    echo "<span style='color:grey;cursor:pointer' class='action-frame-link' data-action-id='{$data->id}'>";
    if ($data->complete == 'Yes') {
        echo Yii::t('actions', 'Completed:') . " </span>" . Formatter::formatCompleteDate($data->completeDate);
    } else {
        if (!empty($data->dueDate)) {
            echo Yii::t('actions', 'Due:') . " </span>" . Actions::parseStatus($data->dueDate) . '</b>';
        } elseif (!empty($data->createDate)) {
            echo Yii::t('actions', 'Created:') . " </span>" . Formatter::formatLongDateTime($data->createDate) . '</b>';
        } else {
            echo "&nbsp;";
        }
    }
} elseif ($data->type == 'workflow') {
    // $actionData = explode(':',$data->actionDescription);
    echo Yii::t('workflow', 'Process:') . '<b> ' . $data->workflow->name . '/' . $data->workflowStage->name . '</b> ';
} elseif ($data->type == 'event') {
    echo '<b>' . CHtml::link(Yii::t('calendar', 'Event') . ': ', '#', array('class' => 'action-frame-link', 'data-action-id' => $data->id));
    if ($data->allDay) {
        echo Formatter::formatLongDate($data->dueDate);
        if ($data->completeDate) {
            echo ' - ' . Formatter::formatLongDate($data->completeDate);
开发者ID:dsyman2,项目名称:X2CRM,代码行数:31,代码来源:_view.php

示例2: array

//echo CHtml::link('[x]',array('deleteNote','id'=>$data->id)); //,array('class'=>'x2-button')
?>
	</div>-->
	<div class="icon <?php 
echo $type;
?>
"></div>
	<div class="header">
		<?php 
if (empty($data->type)) {
    if ($data->complete == 'Yes') {
        echo CHtml::link(Yii::t('actions', 'Action') . ':', array('/actions/default/view', 'id' => $data->id)) . ' ';
        echo Yii::t('actions', 'Completed {date}', array('{date}' => Actions::formatDate($data->completeDate)));
    } else {
        echo '<b>' . CHtml::link(Yii::t('actions', 'Action') . ':', array('/actions/default/view', 'id' => $data->id)) . ' ';
        echo Actions::parseStatus($data->dueDate) . '</b>';
    }
} elseif ($data->type == 'attachment') {
    if ($data->completedBy == 'Email') {
        echo Yii::t('actions', 'Email Message:') . ' ' . Actions::formatDate($data->completeDate);
    } else {
        echo Yii::t('actions', 'Attachment:') . ' ' . Actions::formatDate($data->completeDate);
    }
    //User::getUserLinks($data->completedBy);
    echo ' ';
    //if ($data->complete=='Yes')
    //echo Actions::formatDate($data->completeDate);
    //else
    //echo Actions::parseStatus($data->dueDate);
} elseif ($data->type == 'workflow') {
    // $actionData = explode(':',$data->actionDescription);
开发者ID:netconstructor,项目名称:X2Engine,代码行数:31,代码来源:_view.php


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