| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/administrator/components/com_itemrating/views/group/tmpl/ |
Upload File : |
<?php
/**
* @version 2.1.6
* @package com_itemrating
* @copyright Copyright (C) 2014. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @author Joomunited <contact@joomunited.com> - www.joomunited.com
*/
// no direct access
defined('_JEXEC') or die;
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
JHtml::_('behavior.formvalidator');
JHtml::_('behavior.keepalive');
JHtml::_('jquery.framework');
// Import CSS
$document = JFactory::getDocument();
$document->addStyleSheet('components/com_itemrating/assets/css/itemrating.css');
$document->addStyleSheet(JURI::root() . '/components/com_itemrating/assets/css/materialize.css');
$document->addScript('components/com_itemrating/assets/jscolor.js');
?>
<script type="text/javascript">
js = jQuery.noConflict();
js(document).ready(function() {
js( "#outer_border,#head_color,#head_background,#item_background,#bar_bg,#score_bg,#fontcolor,#jform_show_vote,#jform_score_position,#jform_score_type,#jform_show_vote,#jform_customcss" ).change(function() {
createWidget();
});
js('#jform_theme').change(function() {
var theme=js(this).val();
if(theme==1)
{
document.getElementById('outer_border').color.fromString("41465C");
document.getElementById('head_color').color.fromString("D0D0D0");
document.getElementById('head_background').color.fromString("20253B");
document.getElementById('item_background').color.fromString("20253B");
document.getElementById('bar_bg').color.fromString("20253B");
document.getElementById('score_bg').color.fromString("20253B");
document.getElementById('font-color').color.fromString("D0D0D0");
document.getElementById('vote_color').color.fromString("D0D0D0");
}
else if(theme==2)
{
document.getElementById('outer_border').color.fromString("E7E7E7");
document.getElementById('head_color').color.fromString("555555");
document.getElementById('head_background').color.fromString("E7E7E7");
document.getElementById('item_background').color.fromString("FFFFFF");
document.getElementById('bar_bg').color.fromString("555555");
document.getElementById('score_bg').color.fromString("FFFFFF");
document.getElementById('font-color').color.fromString("555555");
document.getElementById('vote_color').color.fromString("555555");
}
else if(theme==3)
{
document.getElementById('outer_border').color.fromString("DFDAEA");
document.getElementById('head_background').color.fromString("8E74EA");
document.getElementById('head_color').color.fromString("FFFFFF");
document.getElementById('item_background').color.fromString("FFFFFF");
document.getElementById('bar_bg').color.fromString("8E74EA");
document.getElementById('score_bg').color.fromString("FFFFFF");
document.getElementById('font-color').color.fromString("4E565B");
document.getElementById('vote_color').color.fromString("4E565B");
}
else if(theme==4)
{
document.getElementById('outer_border').color.fromString("E7E7E7");
document.getElementById('head_background').color.fromString("4267B2");
document.getElementById('head_color').color.fromString("FFFFFF");
document.getElementById('item_background').color.fromString("FFFFFF");
document.getElementById('bar_bg').color.fromString("4267B2");
document.getElementById('score_bg').color.fromString("FFFFFF");
document.getElementById('font-color').color.fromString("333333");
document.getElementById('vote_color').color.fromString("333333");
}
else if(theme==5)
{
document.getElementById('outer_border').color.fromString("efebe9");
document.getElementById('head_background').color.fromString("795548");
document.getElementById('head_color').color.fromString("efebe9");
document.getElementById('item_background').color.fromString("efebe9");
document.getElementById('bar_bg').color.fromString("795548");
document.getElementById('score_bg').color.fromString("efebe9");
document.getElementById('font-color').color.fromString("474747");
document.getElementById('vote_color').color.fromString("474747");
}
createWidget();
});
});
function createWidget()
{
var outer_border="#"+document.getElementById('outer_border').value;
var head_color="#"+document.getElementById('head_color').value;
var head_background="#"+document.getElementById('head_background').value;
var item_background="#"+document.getElementById('item_background').value;
var bar_bg="#"+document.getElementById('bar_bg').value;
var score_bg="#"+document.getElementById('score_bg').value;
var fontcolor="#"+document.getElementById('font-color').value;
var jform_show_vote=document.getElementById('jform_show_vote').value;
var vote_color="#"+document.getElementById('vote_color').value;
var jform_score_position=document.getElementById('jform_score_position').value;
var jform_score_type=document.getElementById('jform_score_type').value;
var jform_customcss=document.getElementById('jform_customcss').value;
var jform_show_vote=document.getElementById('jform_show_vote').value;
js("#review-box .review-item h5, #review-box h1, #review-box h2, #review-box h3, #review-box h4, #review-box h5, #review-box h6, #review-box p, #review-box strong, .user-rate-wrap .user-rating-text, #review-box .review-final-score h3, #review-box .review-final-score h4,.itemrating-pros-cons .pros-title, .itemrating-pros-cons .cons-title,.voting").css('color',vote_color);
js(".ratingbox_<?php echo $this->item->id?> h2.review-box-header").css({'background-color':head_background,'color':head_color});
js(".ratingbox_<?php echo $this->item->id?> .review-box,.ratingbox_<?php echo $this->item->id?> .review-percentage .review-item span span,.ratingbox_<?php echo $this->item->id?> .review-final-score,.review-stars .review-item, .review-percentage .review-item span, .review-summary, .review-container, .itemrating-pros-cons, .itemrating-pros-cons .itemrating-pros").css('background-color',item_background);
js(".review-container").css('background-color',item_background);
js("#review-box").css('background-color',outer_border);
js("#review-box .rating-final-box").css('background-color',bar_bg);
js( "<style>"+jform_customcss+"</style>" ).appendTo( "head" );
}
<?php if (!version_compare(JVERSION, '4.0', 'ge')) {?>
Joomla.submitbutton = function(task)
{
if (task == 'group.cancel') {
Joomla.submitform(task, document.getElementById('group-form'));
}
else {
if (task != 'group.cancel' && document.formvalidator.isValid(document.getElementById('group-form'))) {
Joomla.submitform(task, document.getElementById('group-form'));
}
else {
alert('<?php echo $this->escape(JText::_('JGLOBAL_VALIDATION_FORM_FAILED')); ?>');
}
}
}
<?php }?>
</script>
<style type="text/css">
.form-horizontal .control-label
{
width: 160px;
}
</style>
<div id="ju-form" class="main-card">
<form action="<?php echo JRoute::_('index.php?option=com_itemrating&layout=edit&id=' . (int) $this->item->id); ?>" method="post" enctype="multipart/form-data" name="adminForm" id="group-form" class="form-validate">
<fieldset class="adminform">
<div class="form-horizontal">
<div class="row-fluid">
<fieldset class="adminform">
<div class="span12 form-horizontal row">
<div class="span5 col-lg-5">
<div class="control-group" style="display: none;">
<div class="control-label"><?php echo $this->form->getLabel('id'); ?></div>
<div class="controls"><?php echo $this->form->getInput('id'); ?></div>
</div>
<div class="control-group" style="display: none;">
<div class="control-label"><?php echo $this->form->getLabel('created_by'); ?></div>
<div class="controls"><?php echo $this->form->getInput('created_by'); ?></div>
</div>
<div class="control-group">
<div class="control-label"><?php echo $this->form->getLabel('title'); ?></div>
<div class="controls"><?php echo $this->form->getInput('title'); ?></div>
</div>
<div class="control-group">
<div class="control-label"><?php echo $this->form->getLabel('theme'); ?></div>
<div class="controls"><?php echo $this->form->getInput('theme'); ?></div>
</div>
<div class="control-group">
<div class="control-label"><?php echo $this->form->getLabel('display'); ?></div>
<div class="controls"><?php echo $this->form->getInput('display'); ?></div>
</div>
<div class="control-group">
<div class="control-label"><?php echo $this->form->getLabel('snippettype'); ?></div>
<div class="controls"><?php echo $this->form->getInput('snippettype'); ?></div>
</div>
<div class="style-box">
<h3><?php echo JText::_('JCATEGORY'); ?></h3>
<?php echo $this->form->getInput('customcategory'); ?>
</div>
<div class="well">
<div class="control-group">
<div class="control-label"><?php echo $this->form->getLabel('textforscore'); ?></div>
<div class="controls"><?php echo $this->form->getInput('textforscore'); ?></div>
</div>
<div class="control-group">
<div class="control-label"><?php echo $this->form->getLabel('reviewsummary'); ?></div>
<div class="controls"><?php echo $this->form->getInput('reviewsummary'); ?></div>
</div>
<div class="control-group">
<div class="control-label"><?php echo $this->form->getLabel('pros'); ?></div>
<div class="controls"><?php echo $this->form->getInput('pros'); ?></div>
</div>
<div class="control-group">
<div class="control-label"><?php echo $this->form->getLabel('cons'); ?></div>
<div class="controls"><?php echo $this->form->getInput('cons'); ?></div>
</div>
</div>
<div class="control-group">
<div class="control-label"><?php echo $this->form->getLabel('position'); ?></div>
<div class="controls"><?php echo $this->form->getInput('position'); ?></div>
</div>
<div class="control-group">
<div class="control-label"><?php echo $this->form->getLabel('state'); ?></div>
<div class="controls"><?php echo $this->form->getInput('state'); ?></div>
</div>
</div><div class="span5 col-lg-7">
<?php
if(!empty($this->item->id))
{
$itemdata=new stdClass();
$itemdata->groupdata=$this->item->id;
$itemdata->position="none";
$html=ItemratingHelper::createWidget($itemdata);
echo("<h3>".JText::_('COM_ITEMRATING_PREVIEW')."</h3><span class='ratingbox_".$this->item->id."'>".$html."</span>");
}
?>
<div class="control-group style-box">
<h3><?php echo $this->form->getLabel('styling'); ?></h3>
<?php
$json=@json_decode($this->form->getValue('styling'));
if(!empty($this->item->id))
{
$this->form->setValue('show_vote', '' , $json->show_vote);
$this->form->setValue('score_position', '' , $json->score_position);
$this->form->setValue('score_type', '' , $json->score_type);
}
?>
<div class="style-box-item" style="display:none;"><?php echo $this->form->getInput('styling'); ?>
</div>
<div class="control-group">
<div class="control-label">
<label title="" class="hasTooltip" for="jform_textforscore" id="jform_textforscore-lbl" data-original-title="<?php echo JText::_('COM_ITEMRATING_FORM_BORDER_DESC')?>"><?php echo JText::_('COM_ITEMRATING_FORM_BORDER')?></label></div>
<div class="controls"><input type="text" name="outer_border" id="outer_border" class="color" value="<?php if(!empty($json->outer_border)) { echo $json->outer_border; }else {echo '#eeeeee';}?>"></div>
</div>
<div class="control-group">
<div class="control-label">
<label title="" class="hasTooltip" for="jform_textforscore" id="jform_textforscore-lbl" data-original-title="<?php echo JText::_('COM_ITEMRATING_FORM_BACK_DESC')?>"><?php echo JText::_('COM_ITEMRATING_FORM_BACK')?></label></div>
<div class="controls"><input type="text" name="head_background" id="head_background" class="color" value="<?php if(!empty($json->head_background)) { echo $json->head_background; }else {echo '#444444';}?>"></div>
</div>
<div class="control-group">
<div class="control-label">
<label title="" class="hasTooltip" for="jform_textforscore" id="jform_textforscore-lbl" data-original-title="<?php echo JText::_('COM_ITEMRATING_FORM_HCOLOR_DESC')?>"><?php echo JText::_('COM_ITEMRATING_FORM_HCOLOR')?></label>
</div>
<div class="controls"><input type="text" name="head_color" id="head_color" class="color" value="<?php if(!empty($json->head_color)) { echo $json->head_color; }else {'#eeeeee';}?>"></div>
</div>
<div class="control-group">
<div class="control-label">
<label title="" class="hasTooltip" for="jform_textforscore" id="jform_textforscore-lbl" data-original-title="<?php echo JText::_('COM_ITEMRATING_FORM_BCOLOR_DESC')?>"><?php echo JText::_('COM_ITEMRATING_FORM_BCOLOR')?></label></div>
<div class="controls"><input type="text" name="item_background" id="item_background" class="color" value="<?php if(!empty($json->item_background)) { echo $json->item_background; }else {echo '#e0e0e0';}?>"></div>
</div>
<div class="control-group">
<div class="control-label">
<label title="" class="hasTooltip" for="jform_textforscore" id="jform_textforscore-lbl" data-original-title="<?php echo JText::_('COM_ITEMRATING_BAR_BG_DESC')?>"><?php echo JText::_('COM_ITEMRATING_BAR_BG')?></label></div>
<div class="controls"><input type="text" name="bar_bg" id="bar_bg" class="color" value="<?php if(!empty($json->bar_bg)) { echo $json->bar_bg; }else {echo '#4db2ec';}?>"></div>
</div>
<div class="control-group">
<div class="control-label">
<label title="" class="hasTooltip" for="jform_textforscore" id="jform_textforscore-lbl" data-original-title="<?php echo JText::_('COM_ITEMRATING_FORM_PCOLOR_DESC')?>"><?php echo JText::_('COM_ITEMRATING_FORM_PCOLOR')?></label></div>
<div class="controls"><input type="text" name="score_bg" id="score_bg" class="color" value="<?php if(!empty($json->score_bg)) { echo $json->score_bg; }else {echo '#ffffff';}?>"></div>
</div>
<div class="control-group">
<div class="control-label">
<label title="" class="hasTooltip" for="jform_textforscore" id="jform_textforscore-lbl" data-original-title="<?php echo JText::_('COM_ITEMRATING_FORM_FCOLOR_DESC')?>"><?php echo JText::_('COM_ITEMRATING_FORM_FCOLOR')?></label></div>
<div class="controls"><input type="text" name="link_color" id="font-color" class="color" value="<?php if(!empty($json->link_color)) { echo $json->link_color; }else {echo '#666666';}?>"></div>
</div>
<div class="control-group">
<div class="control-label">
<label title="" class="hasTooltip" for="jform_textforscore" id="jform_textforscore-lbl" data-original-title="<?php echo JText::_('COM_ITEMRATING_VOTE_FCOLOR_DESC')?>"><?php echo JText::_('COM_ITEMRATING_VOTE_FCOLOR')?></label></div>
<div class="controls"><input type="text" name="vote_color" id="vote_color" class="color" value="<?php if(!empty($json->vote_color)) { echo $json->vote_color; }else {echo '#666666';}?>"></div>
</div>
<div class="control-group">
<div class="control-label">
<label title="" class="hasTooltip" for="jform_textforscore" id="jform_textforscore-lbl" data-original-title="<?php echo JText::_('COM_ITEMRATING_VOTE_SHOW_DESC')?>"><?php echo JText::_('COM_ITEMRATING_VOTE_SHOW')?></label></div>
<div class="controls">
<?php echo $this->form->getInput('show_vote'); ?>
</div>
</div>
<div class="control-group">
<div class="control-label"><?php echo $this->form->getLabel('score_position'); ?></div>
<div class="controls">
<?php echo $this->form->getInput('score_position'); ?>
</div>
</div>
<div class="control-group">
<div class="control-label"><?php echo $this->form->getLabel('score_type'); ?></div>
<div class="controls">
<?php echo $this->form->getInput('score_type'); ?>
</div>
</div>
</div>
<div class="control-group style-box"><h3><?php echo $this->form->getLabel('customcss'); ?></h3><div class="style-box-item"><?php echo $this->form->getInput('customcss'); ?></div>
</div>
</div>
</div>
</fieldset>
</div>
<input type="hidden" name="task" value="" />
<?php echo $this->form->getInput('checked_out'); ?>
<?php echo JHtml::_('form.token'); ?>
</div>
</fieldset>
</form>