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


PHP FSS_Helper::GetYesNoText方法代码示例

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


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

示例1: elseif

                ?>
'>
							<?php 
            }
            ?>
							<?php 
            if ($field->type == "lookup") {
                ?>
								<?php 
                echo $this->GetLookupText($field, $item[$field->field]);
                ?>
							<?php 
            } elseif ($field->type == "checkbox") {
                ?>
								<?php 
                echo FSS_Helper::GetYesNoText($item[$field->field]);
                ?>
							<?php 
            } else {
                ?>
								<?php 
                echo $item[$field->field];
                ?>
							<?php 
            }
            ?>
							<?php 
            if ($field->link) {
                ?>
</a><?php 
            }
开发者ID:vstorm83,项目名称:propertease,代码行数:31,代码来源:list.php

示例2: ToggleAllEMail

 function ToggleAllEMail()
 {
     $db = JFactory::getDBO();
     $userid = FSS_Input::getInt('userid');
     $groupid = FSS_Input::getInt('groupid');
     if (!$this->canAdminGroup($groupid)) {
         return;
     }
     $qry = "SELECT allemail FROM #__fss_ticket_group_members WHERE user_id = '" . FSSJ3Helper::getEscaped($db, $userid) . "' AND group_id = '" . FSSJ3Helper::getEscaped($db, $groupid) . "'";
     $db->setQuery($qry);
     $current = $db->loadObject();
     $allemail = $current->allemail;
     $allemail = 1 - $allemail;
     $qry = "UPDATE #__fss_ticket_group_members SET allemail = '" . FSSJ3Helper::getEscaped($db, $allemail) . "' WHERE user_id = '" . FSSJ3Helper::getEscaped($db, $userid) . "' AND group_id = '" . FSSJ3Helper::getEscaped($db, $groupid) . "'";
     $db->setQuery($qry);
     $db->Query();
     echo FSS_Helper::GetYesNoText($allemail);
     exit;
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:19,代码来源:view.html.php

示例3: foreach

<?php 
if (count($this->groups) == 0) {
    ?>
	<div class="alert alert-info">
		<?php 
    echo JText::_("THERE_ARE_CURRENTLY_NO_GROUP");
    ?>
	</div>	
<?php 
}
?>

<?php 
foreach ($this->groups as &$group) {
    $allemail = FSS_Helper::GetYesNoText($group->allemail);
    $ccexclude = FSS_Helper::GetYesNoText($group->ccexclude);
    if ($group->allsee == 0) {
        $allsee = JText::_('VIEW_NONE');
        //"None";
    } elseif ($group->allsee == 1) {
        $allsee = JText::_('VIEW');
        //"See all tickets";
    } elseif ($group->allsee == 2) {
        $allsee = JText::_('VIEW_REPLY');
        //"Reply to all tickets";
    } elseif ($group->allsee == 3) {
        $allsee = JText::_('VIEW_REPLY_CLOSE');
        //"Reply to all tickets";
    }
    ?>
开发者ID:vstorm83,项目名称:propertease,代码行数:30,代码来源:default.php

示例4: elseif

			<tr>
				<td colspan="5"><?php 
        echo JText::_('NO_USERS');
        ?>
</td>
			</tr>
		</tbody>
	<?php 
    }
    $k = 0;
    for ($i = 0, $n = count($this->groupmembers); $i < $n; $i++) {
        $row = $this->groupmembers[$i];
        $user = JFactory::getUser();
        $userid = $user->id;
        $allemail = FSS_Helper::GetYesNoText($row->allemail);
        $isadmin = FSS_Helper::GetYesNoText($row->isadmin);
        if ($row->allsee == 0) {
            $allsee = JText::_('INHERITED');
            //"None";
            $allsee .= " (";
            $perm = $this->group->allsee;
            if ($perm == 0) {
                $allsee .= JText::_('VIEW_NONE');
                //"None";
            } elseif ($perm == 1) {
                $allsee .= JText::_('VIEW');
                //"See all tickets";
            } elseif ($perm == 2) {
                $allsee .= JText::_('VIEW_REPLY');
                //"Reply to all tickets";
            } elseif ($perm == 3) {
开发者ID:vstorm83,项目名称:propertease,代码行数:31,代码来源:default_group.php


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