403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Old Sites/rescommittee/administrator/components/com_uniform/views/submission/tmpl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Old Sites/rescommittee/administrator/components/com_uniform/views/submission/tmpl/default.php
<?php

/**
 * @version     $Id: detail.php 19013 2012-11-28 04:48:47Z thailv $
 * @package     JSNUniform
 * @subpackage  Submission
 * @author      JoomlaShine Team <support@joomlashine.com>
 * @copyright   Copyright (C) 2016 JoomlaShine.com. All Rights Reserved.
 * @license     GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Websites: http://www.joomlashine.com
 * Technical Support:  Feedback - http://www.joomlashine.com/contact-us/get-support.html
 */
defined('_JEXEC') or die('Restricted access');

JHTML::_('behavior.modal');
JHtml::_('behavior.tooltip');
$dataFields = $this->_dataFields;
$submission = $this->_dataSubmission;
$input 		= JFactory::getApplication()->input;
$submission_id 	= $input->get('submission_id');
// Display messages
if (JFactory::getApplication()->input->getInt('ajax') != 1)
{
	echo $this->msgs;
}
?>
<div id="submission-settings" class="jsn-page-settings jsn-bootstrap">
<form action="<?php echo JRoute::_('index.php?option=com_uniform&view=submission'); ?>" method="post" name="adminForm" id="adminForm">
<div class="row-fluid ">
<div class="span6 submission-details" style=" position: relative;">
	<h2 class="jsn-section-header"><?php echo JText::_('JSN_UNIFORM_SUBMISSION_DETAIL'); ?></h2>

	<div class="jsn-section-content">
		<table class="table table-bordered">
			<tr>
				<th>
					<?php echo JText::_('JSN_UNIFORM_FORMS'); ?>
				</th>
				<td><?php echo $dataFields[0]->form_title; ?></td>
			</tr>
			<tr>
				<th>
					<?php echo JText::_('JSN_UNIFORM_SUBMISSION_FORM_LOCATION');?>
				</th>
				<td>
					<a href="<?php echo $this->_item->submission_form_location; ?>" target="_blank">
						<?php echo $this->_item->submission_form_location; ?>
					</a>
				</td>
			</tr>
			<tr>
				<th>
					<?php echo JText::_('JSN_UNIFORM_SUBMISSION_CREATED_AT'); ?>
				</th>
				<td>
					<?php

					$dateTime = new DateTime($this->_item->submission_created_at);
					echo $dateTime->format("j F Y g:i:s a");

					?>
				</td>
			</tr>
			<tr>
				<th>
					<?php echo JText::_('JSN_UNIFORM_SUBMISSION_CREATED_BY'); ?>
				</th>
				<td>
					<?php
						if (isset($this->_item->submission_created_by) && $this->_item->submission_created_by != 0)
						{
							echo JSNUniformHelper::getUserNameById($this->_item->submission_created_by);
						}
						else
						{
							echo "Guest";
						}
					?>
				</td>
			</tr>
			<tr>
				<th>
					<?php echo JText::_('JSN_UNIFORM_SUBMISSION_IP'); ?>
				</th>
				<td><?php echo $this->_item->submission_ip; ?></td>
			</tr>
			<tr>
				<th>
					<?php echo JText::_('JSN_UNIFORM_SUBMISSION_COUNTRY'); ?>
				</th>
				<td> <?php echo $this->_item->submission_country; ?></td>
			</tr>
			<tr>
				<th>
					<?php echo JText::_('JSN_UNIFORM_SUBMISSION_BROWSER'); ?>
				</th>
				<td><?php echo $this->_item->submission_browser; ?></td>
			</tr>
			<tr>
				<th>
					<?php echo JText::_('JSN_UNIFORM_SUBMISSION_OS'); ?>
				</th>
				<td> <?php echo $this->_item->submission_os; ?></td>
			</tr>
		</table>

	</div>
</div>
<div class="span6 submission-data" style="position: relative;">
	<h2 class="jsn-section-header"><?php echo JText::_('JSN_UNIFORM_SUBMISSION_DATA'); ?></h2>

	<div class="jsn-section-content">
		<div class="jsn-form-bar">
			<?php

			$formType = isset($this->_infoForm->form_type) ? $this->_infoForm->form_type : 1;
			if ($formType == 2)
			{

				?>
				<div class="control-group ">
					<label class="control-label"><?php echo JText::_('JSN_UNIFORM_DATA_PRESENTATION'); ?>
						:</label>

					<div class="controls">
						<select class="jsn-input-fluid" data-value="<?php echo $formType; ?>" id="jform_form_type">
							<option value="1"><?php echo JText::_('JSN_UNIFORM_TYPE_SINGLE_PAGE'); ?></option>
							<option value="2"><?php echo JText::_('JSN_UNIFORM_TYPE_MULTIPLE_PAGES'); ?></option>
						</select>
					</div>
				</div>
				<?php
			}
			?>
			<div class="control-group pull-right">
				<div class="controls">
					<a href="index.php?option=com_uniform&view=submission&layout=default_print&print=1&tmpl=component&submission_id=<?php echo $submission_id ?>" class="btn" id="jsn-submission-print" onclick="return false;">
					<span class="icon-print"></span><?php echo JText::_('JSN_UNIFORM_SUBMISSION_PRINT'); ?></a>
					<button class="btn" id="jsn-submission-edit" onclick="return false;">
						<i class="icon-pencil"></i><?php echo JText::_('JTOOLBAR_EDIT'); ?></button>
					<button class="btn btn-primary hide" id="jsn-submission-save" onclick="return false;">
						<i class="icon-pencil"></i><?php echo JText::_('JSN_UNIFORM_DONE'); ?></button>
				</div>
			</div>
		</div>
		<div class="submission-content">
			<div class="jsn-page-actions btn-group" style="display: block;">
				<button class="btn btn-icon prev-page hide" onclick="return false;" disabled="disabled">
					<i class="icon-arrow-left"></i></button>
				<button class="btn btn-icon next-page hide" onclick="return false;" disabled="disabled">
					<i class="icon-arrow-right"></i></button>
			</div>
			<?php

			foreach ($this->_formPages as $formPages)
			{
				$pageContent = json_decode($formPages->page_content);
				$submissionDetail = "";
				$submissionEdit = "";

				foreach ($pageContent as $fields)
				{
					$key = "sd_" . $fields->id;
					if (isset($fields->type))
					{
						if ($fields->type != 'static-content' && $fields->type != 'google-maps')
						{
							$label = $fields->label != '' ? $fields->label : $fields->identify;
							$submissionEdit .= '<div class="control-group ">
												<label class="control-label">' . rtrim($label, ':') . ':</label>
												<div class="controls">';
							$contentField       = "";
							$contentFieldEdit   = "";
							$contentFieldDetail = "";

							$contentField     = JSNUniformHelper::getDataField($fields->type, $submission, $key, $this->_item->form_id, false);

							$contentFieldEdit = $contentField;

							if ($fields->type == "email")
							{

								$contentFieldDetail = !empty($contentField) ? '<a href="mailto:' . htmlentities($contentField, ENT_QUOTES, "UTF-8") . '">' . htmlentities($contentField, ENT_QUOTES, "UTF-8") . '</a>' : "N/A";
							}
							else
							{
								$contentFieldDetail = $contentField;
							}

							// Show submission details only if the current field has submitted data.
							if (isset($submission->{$key}))
							{
								$submissionDetail .= '<dt>' . rtrim($label, ':') . ':</dt><dd id="' . $key . '">';
							}
							else
                            {
	                            $submissionDetail .= '<dt class="hide">' . rtrim($label, ':') . ':</dt><dd id="' . $key . '" class="hide">';
                            }

                            $submissionDetail .= htmlentities(trim($contentFieldDetail), ENT_QUOTES, "UTF-8") != '' ? str_replace("\n", "<br/>", trim(htmlentities($contentFieldDetail, ENT_QUOTES, "UTF-8"))) : "N/A";

							if ($fields->type == "checkboxes" || $fields->type == "list" || $fields->type == "paragraph-text")
							{
								if ($fields->type == "checkboxes" || $fields->type == "list")
								{
									$contentFieldEdit = str_replace("<br/>", "\n", $contentFieldEdit);
									$contentFieldEdit = str_replace("\n\n", "\n", $contentFieldEdit);
									$contentFieldEdit = htmlentities($contentFieldEdit, ENT_QUOTES | ENT_IGNORE, "UTF-8");
								}
								$submissionEdit .= "<textarea name=\"submission[{$key}]\" class=\"jsn-input-xxlarge-fluid\" dataValue='" . $fields->id . "' typeValue='" . $fields->type . "' rows=\"5\" >{$contentFieldEdit}</textarea>";
							}
							elseif ($fields->type == "likert")
							{
								$likertData = json_decode($submission->$key);
								$settings   = json_decode($likertData->settings);
								$tdRows     = "<input type=\"hidden\" class='jsn-likert-settings' data-value='{$key}' name='submission[{$key}][likert][settings]' value='" . htmlentities(json_encode(array('rows' => $settings->rows, 'columns' => $settings->columns)), ENT_QUOTES, "UTF-8") . "' />";
								$tdColumns  = '';

								foreach ($settings->rows as $row)
								{
									$tdRows .= "<tr>";
									$tdRows .= '<td>' . $row->text . '</td>';
									foreach ($settings->columns as $column)
									{
										$checked = '';
										foreach ($likertData->values as $k => $val)
										{
											if (($k == md5($row->text) || $k == $row->text) && $val == $column->text)
											{
												$checked = 'checked="checked" ';
											}
										}
										$tdRows .= "<td class=\"text-center\"><input " . $checked . " type=\"radio\" data-value='" . htmlentities($row->text, ENT_QUOTES, "UTF-8") . "' name='submission[{$key}][likert][values][" . htmlentities($row->text, ENT_QUOTES, "UTF-8") . "]'  value='" . htmlentities($column->text, ENT_QUOTES, "UTF-8") . "' /></td>";
									}
									$tdRows .= "</tr>";
								}
								foreach ($settings->columns as $column)
								{
									$tdColumns .= '<th class="text-center">' . $column->text . '</th>';
								}
								$submissionEdit .= "<table class=\"jsn-likert table table-bordered table-striped\">
										<thead>
											<tr>
												<th></th>
												{$tdColumns}
											</tr>
										</thead>
										<tbody>
											{$tdRows}
										</tbody>
									</table>";
							}
							elseif ($fields->type == "file-upload")
							{
								$submissionEdit .= $contentFieldEdit;
							}
							else
							{
								$contentFieldEdit = htmlentities(str_replace('<span>N/A</span>', '', $contentFieldEdit), ENT_QUOTES, "UTF-8");
								$submissionEdit .= "<input type=\"text\" name=\"submission[{$key}]\" dataValue=\"{$fields->id}\" typeValue=\"{$fields->type}\" class=\"jsn-input-xxlarge-fluid\" value=\"{$contentFieldEdit}\"" . (isset($submission->{$key}) ? '' : ' disabled') . ' />';
							}

							$submissionEdit .= '</div></div>';
                            $submissionDetail .= '</dd>';
						}
						elseif (isset($submission->{$key}))
						{
							if ($fields->type == 'static-content')
							{
								$submissionDetail .= '<dt>' . $fields->label . ':</dt><dd id="' . htmlentities($key, ENT_QUOTES, "UTF-8") . '">';
								$submissionDetail .= "<dd class='clearfix'>" . htmlentities($fields->options->value, ENT_QUOTES, "UTF-8") . "</dd>";
							}
							elseif ($fields->type == 'google-maps')
							{

								$height           = isset($fields->options->height) ? $fields->options->height : "";
								$width            = isset($fields->options->width) ? $fields->options->width : "";
								$formatWidth      = isset($fields->options->formatWidth) ? $fields->options->formatWidth : "";
								$googleMaps       = isset($fields->options->googleMaps) ? $fields->options->googleMaps : "";
								$googleMapsMarKer = isset($fields->options->googleMapsMarKer) ? $fields->options->googleMapsMarKer : "";
								$submissionDetail .= "<dd class='clearfix'><div class=\"content-google-maps\" data-width='{$width}{$formatWidth}' data-height='{$height}' data-value='{$googleMaps}' data-marker='" . htmlentities($googleMapsMarKer, ENT_QUOTES, "UTF-8") . "'><div class=\"google_maps map rounded\"></div></div></dd>";
							}

						}
					}
				}
				?>
				<div class="submission-page" data-title="<?php echo $formPages->page_title; ?>" data-value="<?php echo $formPages->page_id; ?>">
					<div class="submission-page-header">
						<h3><?php echo $formPages->page_title; ?></h3>
					</div>

					<dl class="submission-page-content" id="dl_<?php echo $formPages->page_id; ?>">
						<?php  echo html_entity_decode($submissionDetail, ENT_QUOTES, 'UTF-8') ; ?>
					</dl>
					<div class="submission-page-content hide" id="div_<?php echo $formPages->page_id; ?>">
						<?php echo $submissionEdit; ?>
					</div>
				</div>
				<?php
			}

			?>
		</div>
	</div>
</div>
</div>
	<div id="dialog-plugin">
		<div class="ui-dialog-content-inner jsn-bootstrap">
		</div>
	</div>
<input type="hidden" name="filter_form_id" id="filter_form_id" value="<?php echo $this->_item->form_id; ?>" />
<input type="hidden" name="cid" id="cid" value="<?php echo $this->_item->submission_id; ?>" />
<input type="hidden" name="action" id="action" value="" />
<input type="hidden" name="option" value="com_uniform" /> <input type="hidden" name="task" value="" />
<?php echo JHtml::_('form.token'); ?>
</form>
<?php
$products = JSNUniformHelper::getDependentExtensions();
// Display footer
JSNHtmlGenerate::footer($products);

Youez - 2016 - github.com/yon3zu
LinuXploit