本文整理汇总了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
}
示例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;
}
示例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";
}
?>
示例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) {