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


PHP RSFormProHelper::translateIcon方法代码示例

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


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

示例1:

				</table>
				</td>
			</tr>
			<tr>
				<td width="25%" align="right" nowrap="nowrap" class="key"><?php 
echo JText::_('RSFP_EMAILS_MODE');
?>
</td>
				<td><?php 
echo $this->lists['UserEmailMode'];
?>
</td>
			</tr>
			<tr>
				<td width="25%" align="right" nowrap="nowrap" class="key"><?php 
echo RSFormProHelper::translateIcon();
?>
  <span style="color: red"><?php 
echo JText::_('RSFP_EMAILS_TEXT');
?>
</span></td>
				<td>
					<button class="rs_button rs_left" id="rsform_edit_user_email" onclick="openRSModal('<?php 
echo JRoute::_('index.php?option=com_rsform&task=richtext.show&opener=UserEmailText&formId=' . $this->form->FormId . '&tmpl=component' . (!$this->form->UserEmailMode ? '&noEditor=1' : ''));
?>
')" type="button"><span class="rsform_edit"><?php 
echo JText::_('RSFP_EMAILS_EDIT_TEXT');
?>
</span></button>
					<button class="rs_button rs_left" onclick="openRSModal('<?php 
echo JRoute::_('index.php?option=com_rsform&task=richtext.preview&opener=UserEmailText&formId=' . $this->form->FormId . '&tmpl=component');
开发者ID:AlexanderKri,项目名称:joom-upd,代码行数:31,代码来源:edit_user.php

示例2: getComponentFields


//.........这里部分代码省略.........
                 $field->body = '<span id="caption' . $field->name . '">' . $field->body . '</span>';
                 $field->body .= '<br />';
                 if ($componentId > 0) {
                     if (!isset($data[$field->name])) {
                         $data[$field->name] = '';
                     }
                     if ($lang->hasKey('RSFP_COMP_FVALUE_' . $data[$field->name])) {
                         $value = JText::_('RSFP_COMP_FVALUE_' . $data[$field->name]);
                     } else {
                         $value = $data[$field->name];
                     }
                 } else {
                     $values = RSFormProHelper::isCode($result->FieldValues);
                     if ($lang->hasKey('RSFP_COMP_FVALUE_' . $values)) {
                         $value = JText::_('RSFP_COMP_FVALUE_' . $values);
                     } else {
                         $value = $values;
                     }
                 }
                 $field->body .= '<textarea id="' . $field->name . '" name="param[' . $field->name . ']" rows="5" cols="20" class="rsform_txtarea">' . RSFormProHelper::htmlEscape($value) . '</textarea></td>';
                 break;
             case 'select':
                 if ($lang->hasKey('RSFP_COMP_FIELD_' . $field->name)) {
                     $field->body = JText::_('RSFP_COMP_FIELD_' . $field->name);
                 } else {
                     $field->body = $field->name;
                 }
                 $field->body = '<span id="caption' . $field->name . '">' . $field->body . '</span>';
                 $field->body .= '<br />';
                 $field->body .= '<select name="param[' . $field->name . ']" id="' . $field->name . '" onchange="changeValidation(this);">';
                 if (!isset($data[$field->name])) {
                     $data[$field->name] = '';
                 }
                 $result->FieldValues = str_replace("\r", '', $result->FieldValues);
                 $items = RSFormProHelper::isCode($result->FieldValues);
                 $items = explode("\n", $items);
                 foreach ($items as $item) {
                     $buf = explode('|', $item);
                     $option_value = $buf[0];
                     $option_shown = count($buf) == 1 ? $buf[0] : $buf[1];
                     if ($lang->hasKey('RSFP_COMP_FVALUE_' . $option_shown)) {
                         $label = JText::_('RSFP_COMP_FVALUE_' . $option_shown);
                     } else {
                         $label = $option_shown;
                     }
                     $field->body .= '<option ' . ($componentId > 0 && $data[$field->name] == $option_value ? 'selected="selected"' : '') . ' value="' . $option_value . '">' . RSFormProHelper::htmlEscape($label) . '</option>';
                 }
                 $field->body .= '</select>';
                 break;
             case 'hidden':
                 $values = $result->FieldValues;
                 if (defined('RSFP_COMP_FVALUE_' . $values)) {
                     $value = constant('RSFP_COMP_FVALUE_' . $values);
                 } else {
                     $value = $values;
                 }
                 $field->body = '<input type="hidden" id="' . $field->name . '" name="' . $field->name . '" value="' . RSFormProHelper::htmlEscape($value) . '" />';
                 break;
             case 'hiddenparam':
                 $field->body = '<input type="hidden" id="' . $field->name . '" name="param[' . $field->name . ']" value="' . RSFormProHelper::htmlEscape($result->FieldValues) . '" />';
                 break;
             case 'emailattach':
                 if ($lang->hasKey('RSFP_COMP_FIELD_' . $field->name)) {
                     $field->body = JText::_('RSFP_COMP_FIELD_' . $field->name);
                 } else {
                     $field->body = $field->name;
                 }
                 $field->body .= '<br />';
                 if (!isset($data[$field->name])) {
                     $data[$field->name] = '';
                 }
                 $values = trim($data[$field->name]) != '' ? explode(',', $data[$field->name]) : array();
                 $db->setQuery("SELECT id, subject FROM #__rsform_emails WHERE `type` = 'additional' AND formId = " . $formId . " ");
                 $emails = $db->loadObjectList();
                 $field->body .= '<select name="param[' . $field->name . '][]" id="' . $field->name . '" onchange="changeValidation(this);" multiple="multiple" size="5" style="width:414px">';
                 $field->body .= '<option ' . ($componentId > 0 && in_array('useremail', $values) ? 'selected="selected"' : '') . ' value="useremail">' . RSFormProHelper::htmlEscape(JText::_('RSFP_COMP_ATTACH_UEMAIL')) . '</option>';
                 $field->body .= '<option ' . ($componentId > 0 && in_array('adminemail', $values) ? 'selected="selected"' : '') . ' value="adminemail">' . RSFormProHelper::htmlEscape(JText::_('RSFP_COMP_ATTACH_AEMAIL')) . '</option>';
                 $field->body .= '<optgroup label="' . RSFormProHelper::htmlEscape(JText::_('RSFP_COMP_ATTACH_ADEMAIL')) . '">';
                 if (!empty($emails)) {
                     foreach ($emails as $email) {
                         $field->body .= '<option ' . ($componentId > 0 && in_array($email->id, $values) ? 'selected="selected"' : '') . ' value="' . $email->id . '">' . RSFormProHelper::htmlEscape($email->subject) . '</option>';
                     }
                 }
                 $field->body .= '</optgroup>';
                 $field->body .= '</select>';
                 break;
         }
         if (in_array($result->FieldName, $translatable) && $result->FieldType != 'hiddenparam' && $result->FieldType != 'hidden') {
             $field->body = RSFormProHelper::translateIcon() . ' ' . $field->body;
         }
         if (in_array($field->name, $general) || $result->FieldType == 'hidden' || $result->FieldType == 'hiddenparam') {
             $return['general'][] = $field;
         } elseif (in_array($field->name, $validations) || strpos($field->name, 'VALIDATION') !== false) {
             $return['validations'][] = $field;
         } else {
             $return['attributes'][] = $field;
         }
     }
     return $return;
 }
开发者ID:AlexanderKri,项目名称:joom-upd,代码行数:101,代码来源:formajax.php

示例3: void

JHTML::_('behavior.tooltip');
JHTML::_('behavior.modal');
JHTML::_('behavior.calendar');
?>

<form action="index.php?option=com_rsform&amp;task=forms.edit&amp;formId=<?php 
echo $this->form->FormId;
?>
" method="post" name="adminForm" id="adminForm">

<span><?php 
echo $this->lists['Languages'];
?>
</span>
<span><?php 
echo JText::sprintf('RSFP_YOU_ARE_EDITING_IN', $this->lang, RSFormProHelper::translateIcon());
?>
</span>

<div id="rsform_container">
	<div id="state" style="display: none;"><img src="components/com_rsform/assets/images/load.gif" alt="<?php 
echo JText::_('RSFP_PROCESSING');
?>
" /><?php 
echo JText::_('RSFP_PROCESSING');
?>
</div>
	
	<ul id="rsform_maintabs">
		<li><a href="javascript: void(0);" id="components"><span><?php 
echo JText::_('RSFP_COMPONENTS_TAB_TITLE');
开发者ID:ForAEdesWeb,项目名称:AEW3,代码行数:31,代码来源:edit.php


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