Exemplo n.º 1
0
?>
					</div>
					
					<div class="clearfix margin-top-20">
						<label>
							<?php 
echo JText::_('LBL_CUSTOMHEADER');
?>
:
							<i class="icon-info-sign tooltip-hover" title="<?php 
echo JText::_('HLP_CUSTOMHEADER');
?>
"></i>
						</label>
						<?php 
echo CJFunctions::load_editor($editor, 'custom_header', 'custom_header', $this->item->custom_header, '5', '40', '99%', '200px', '', 'width: 99%;');
?>
					</div>
				</div>
				
				<div class="span6">
					<h3 class="page-header"><?php 
echo JText::_('LBL_SURVEY_OPTIONS');
?>
</h3>
					<div class="form-horizontal">
						<div class="control-group">
							<label class="control-label">
								<?php 
echo JText::_('LBL_SURVEYTYPE');
?>
Exemplo n.º 2
0
	</div>
		
	<form id="file-upload-form" action="<?php 
echo JRoute::_('index.php?option=' . S_APP_NAME . '&view=form&task=upload_answer_image' . $itemid);
?>
" enctype="multipart/form-data" method="post" style="position:absolute; top:-10000px;">
		<input name="input-attachment" class="input-file-upload" type="file">
		<input name="id" value="<?php 
echo $this->item->id;
?>
" type="hidden">
	</form>
	
	<div style="display: none;">
		<?php 
echo CJFunctions::load_editor($editor, 'dummy-editor', 'dummy-editor', '', '5', '40', '99%', '200px', '', 'width: 99%;');
?>
		<input type="hidden" id="cjpageid" value="survey_form">
		<input type="hidden" id="page_id" value="<?php 
echo $this->pid;
?>
">
		<span id="url_delete_qn"><?php 
echo JRoute::_('index.php?option=' . S_APP_NAME . '&view=form&task=delete_qn&id=' . $this->item->id . $itemid);
?>
</span>
		<span id="url_update_ordering"><?php 
echo JRoute::_('index.php?option=' . S_APP_NAME . '&view=form&task=update_order&id=' . $this->item->id . $itemid);
?>
</span>
		<span id="url_move_page"><?php 
Exemplo n.º 3
0
 * @license		License GNU General Public License version 2 or later
 */
defined('_JEXEC') or die;
$user = JFactory::getUser();
$itemid = CJFunctions::get_active_menu_id();
$editor = $user->authorise('core.wysiwyg', S_APP_NAME) ? $this->params->get('default_editor', 'bbcode') : 'none';
$invitation_body = $editor == 'wysiwyg' ? str_replace("\n", '<br>', JText::_('TXT_INVITE_DEFAULT_BODY')) : JText::_('TXT_INVITE_DEFAULT_BODY');
?>
<div class="invite-basics-wrapper">
	<label><?php 
echo JText::_('LBL_INVITATION_SUBJECT');
?>
</label>
	<input type="text" name="invitation-subject" value="<?php 
echo JText::_('TXT_INVITE_DEFAULT_SUB');
?>
" class="input-xxlarge">
	
	<label class="margin-top-10"><?php 
echo JText::_('LBL_INVITATION_BODY');
?>
</label>
	<?php 
echo CJFunctions::load_editor($editor, 'invitation-body', 'invitation-body', $invitation_body, '8', '40', '99%', '200px', '', 'width: 99%;');
?>
	
	<p class="help-block margin-top-10"><?php 
echo JText::_('TXT_INVITATION_HELP');
?>
</p>
</div>
Exemplo n.º 4
0
					
					<div class="user-about">
						<?php 
echo CJFunctions::preprocessHtml($this->profile['about'], false, $bbcode);
?>
					</div>
					
					<?php 
if ($aboutTextApp != 'easyprofile' && !$user->guest && ($user->id == $this->profile['id'] || $user->authorise('core.manage'))) {
    ?>
					<form id="edit-about-form" action="<?php 
    echo JRoute::_('index.php?option=' . CJBLOG . '&view=profile&task=save_about&id=' . $this->profile['id'] . $profile_itemid);
    ?>
" style="display: none;">
						<?php 
    echo CJFunctions::load_editor($editor, 'user-about', 'user-about', $this->profile['about'], '10', '40', '100%', '250px', 'form-control', 'width: 100%;', true);
    ?>
						<div class="margin-top-10">
							<button class="btn btn-small btn-edit-about" type="button"><i class="icon-remove"></i> <?php 
    echo JText::_('LBL_CANCEL');
    ?>
</button>
							<button class="btn btn-small btn-success btn-save-about" type="button" data-loading-text="<?php 
    echo JText::_('LBL_WAIT');
    ?>
">
								<i class="icon-ok icon-white"></i> <?php 
    echo JText::_('LBL_SAVE');
    ?>
							</button>
						</div>
Exemplo n.º 5
0
 public function get_rich_textbox_question($item, $class)
 {
     $free_text = '';
     $html = '<div id="qn-' . $item->id . '" class="question-item well well-transperant' . (isset($item->hidden) ? ' hideme ' : ' ') . $class . ' ' . $item->params->get('question_class', '') . ' clearfix"' . (isset($item->hidden) ? ' style="display: none;"' : '') . (isset($item->rule_answered) ? ' showitems="' . implode(',', $item->rule_answered) . '"' : '') . '>';
     $html .= '<div class="question-title qtype-' . $item->question_type . ' ' . $item->params->get('title_class', '') . '">' . CJFunctions::escape($item->title) . '</div>';
     $html .= '<div class="question-description ' . $item->params->get('description_class', '') . '">' . CJFunctions::process_html($item->description, $this->_bbcode, $this->_content) . '</div>';
     if (!empty($item->responses)) {
         foreach ($item->responses as $response) {
             if (!empty($response->free_text)) {
                 $free_text = $response->free_text;
                 break;
             }
         }
     }
     $editor = $this->_wysiwyg ? $this->_bbcode ? 'bbcode' : 'wysiwyg' : 'none';
     $html .= CJFunctions::load_editor($editor, 'free-text-' . $item->id, 'free-text-' . $item->id, $free_text, '5', '23', '100%', '200px', $item->mandatory ? 'required' : '', 'width: 99%;');
     $html .= '</div>';
     return $html;
 }