AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.94
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/vesoul/modules/mod_djclassifieds_maps/tmpl/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/vesoul/modules/mod_djclassifieds_maps/tmpl/inc/fieldvalues.php
<?php
/**
 * @package DJ-Classifieds
 * @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
 * @license http://www.gnu.org/licenses GNU/GPL
 * @author url: http://dj-extensions.com
 * @author email contact@dj-extensions.com
 *
 */

defined ( '_JEXEC' ) or die ( 'Restricted access' );

?>

<?php if($params->get('field_id')){ ?>

    <?php 
        $field_id = $params->get('field_id');
        $field = DJClassifiedsField::getField($field_id);
    ?>

    <div class="field-values-wrapper p-1">
        <?php foreach(explode(';',$field->values) as $key => $fval){ ?>
            <div class="maps-chx">
                <input type="checkbox" value="<?php echo $fval; ?>" id="map_chx_<?php echo $module->id; ?>_<?php echo $key; ?>" class="form-check-input">
                <label for="map_chx_<?php echo $module->id; ?>_<?php echo $key; ?>"><?php echo $fval; ?></label>
            </div>
        <?php } ?>
    </div>

    <script>
        jQuery(function($){
            $('#mod_djcf_maps<?php echo $module->id; ?> .field-values-wrapper input').change(function(){
                var fval_arr = [];
                $(this).closest('.field-values-wrapper').find('input:checked').each(function(){
                    fval_arr.push($(this).val());
                });

                jQuery.ajax({
                    url: '<?php echo JRoute::_('index.php'); ?>',
                    type: 'post',
                    data: {
                        'option': 'com_ajax',
                        'module': 'djclassifieds_maps',
                        'method': 'getItems',
                        'format': 'raw',
                        'mod_id': '<?php echo $module->id; ?>',
                        'f_vals': fval_arr.join(';')
                    }
                }).done(function(response, textStatus, jqXHR){
                    if(textStatus == 'success'){
                        djmodMapAddMarkers<?php echo $module->id; ?>(JSON.parse(response));
                    }
                });
            });
        });
    </script>

<?php } ?>

Anon7 - 2022
AnonSec Team