[32135] | 1 | {combine_script id='jquery.ui.sortable' require='jquery.ui' load='footer' path='themes/default/js/ui/minified/jquery.ui.sortable.min.js'} |
---|
| 2 | {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} |
---|
[32162] | 3 | {include file='include/datepicker.inc.tpl'} |
---|
[32135] | 4 | |
---|
| 5 | {combine_script id='jquery.chosen' load='footer' path='themes/default/js/plugins/chosen.jquery.min.js'} |
---|
| 6 | {combine_css path="themes/default/js/plugins/chosen.css"} |
---|
| 7 | {combine_css path="themes/default/js/ui/theme/jquery.ui.slider.css"} |
---|
| 8 | |
---|
[31406] | 9 | {footer_script} |
---|
| 10 | jQuery(document).ready(function(){ |
---|
[32162] | 11 | |
---|
| 12 | {* <!-- DATEPICKER --> *} |
---|
| 13 | jQuery(function(){ {* <!-- onLoad needed to wait localization loads --> *} |
---|
| 14 | jQuery('[data-datepicker]').pwgDatepicker({ |
---|
| 15 | showTimepicker: true, |
---|
| 16 | cancelButton: '{'Cancel'|translate}' |
---|
| 17 | }); |
---|
| 18 | }); |
---|
| 19 | |
---|
[31406] | 20 | $("input[name=check_MPP]").change(function(){ |
---|
| 21 | if($(this).is(':checked')){ |
---|
[32135] | 22 | $('#changeselect').hide(); |
---|
| 23 | $('#changepro').hide(); |
---|
| 24 | $('#changeproda').hide(); |
---|
[31406] | 25 | }else{ |
---|
[32135] | 26 | $('#selectMPP').val(0).change(); |
---|
[31406] | 27 | } |
---|
| 28 | }); |
---|
[32135] | 29 | |
---|
| 30 | $('#selectMPP') |
---|
| 31 | .change(function () { |
---|
| 32 | $("input[name=check_MPP]").attr('checked', false); |
---|
| 33 | $('#dataselect').children().remove() |
---|
| 34 | var selected = $(':selected', this); |
---|
| 35 | var typ=$(':selected', this).data('typ'); |
---|
| 36 | var dataprop=$(':selected', this).data('dataprop'); |
---|
| 37 | $('#hidetyp').val(typ); |
---|
| 38 | if(typ=='4'){ |
---|
| 39 | $('#changeselect').show(); |
---|
| 40 | $('#changepro').hide(); |
---|
| 41 | $('#changeproda').hide(); |
---|
| 42 | for (key in dataprop){ |
---|
| 43 | $('#dataselect').append(new Option(dataprop[key])); |
---|
| 44 | } |
---|
| 45 | $('#changeradio').hide(); |
---|
| 46 | $('#changeradio').empty(); |
---|
| 47 | }else if(typ=='2'){ |
---|
| 48 | $('#changepro').hide(); |
---|
| 49 | $('#changeproda').show(); |
---|
| 50 | $('#changeselect').hide(); |
---|
| 51 | $('#changeradio').hide(); |
---|
| 52 | $('#changeradio').empty(); |
---|
| 53 | }else if(typ=='5'){ |
---|
| 54 | $('#changeselect').hide(); |
---|
| 55 | $('#changepro').hide(); |
---|
| 56 | $('#changeproda').hide(); |
---|
| 57 | $('#changeradio').empty(); |
---|
| 58 | for (key in dataprop){ |
---|
| 59 | $('<input type="radio" name="radioselect" value="'+dataprop[key]+'">'+dataprop[key]+'</input><span style="margin: 0 0 0 10px">').appendTo('#changeradio'); |
---|
| 60 | } |
---|
| 61 | $('#changeradio').show(); |
---|
| 62 | }else if(typ=='1'){ |
---|
| 63 | $('#changeselect').hide(); |
---|
| 64 | $('#changepro').show(); |
---|
| 65 | $('#changeproda').hide(); |
---|
| 66 | $('#changeradio').hide(); |
---|
| 67 | $('#changeradio').empty(); |
---|
| 68 | }else{ |
---|
| 69 | $('#changeselect').hide(); |
---|
| 70 | $('#changepro').hide(); |
---|
| 71 | $('#changeproda').hide(); |
---|
| 72 | $('#changeradio').hide(); |
---|
| 73 | $('#changeradio').empty(); |
---|
| 74 | } |
---|
| 75 | }) |
---|
| 76 | .change(); |
---|
| 77 | |
---|
[31406] | 78 | }); |
---|
| 79 | {/footer_script} |
---|
[31360] | 80 | <span id="persompp"> |
---|
[31406] | 81 | {'Choose a property'|@translate} |
---|
[32135] | 82 | <br> |
---|
| 83 | <br> |
---|
| 84 | <select name="IDMPP" id="selectMPP"> |
---|
| 85 | |
---|
| 86 | {foreach from=$info_select item=infoselect} |
---|
| 87 | <option value="{$infoselect.IDINFOPHO}" data-typ="{$infoselect.AIPTYP}" data-dataprop='{$infoselect.AIPDATAPROP}' id="selectMPP{$infoselect.IDINFOPHO}">{$infoselect.AIPWORDING}</option> |
---|
| 88 | {/foreach} |
---|
| 89 | </select> |
---|
| 90 | <br> |
---|
| 91 | <br> |
---|
[31406] | 92 | <input id="check_MPP" type="checkbox" name="check_MPP"> {'delete data this property'|@translate}<br /> |
---|
[32135] | 93 | <input id="hidetyp" type="hidden" name="invisibleTyp" value=""> |
---|
| 94 | <div id="changepro" style="display: none;" > |
---|
| 95 | <textarea rows="3" cols="100" {if $useED==1}placeholder="{'Use Extended Description tags...'|@translate}"{/if} name="dataglob">{$PLUG_MPP}</textarea> |
---|
[31406] | 96 | </div> |
---|
[32135] | 97 | <div id="changeproda" style="display: none;" > |
---|
[32162] | 98 | <input type="hidden" name="datadate" value="{$DATADATE}"> |
---|
| 99 | <label> |
---|
| 100 | <i class="icon-calendar"></i> |
---|
| 101 | <input type="text" data-datepicker="datadate" readonly> |
---|
| 102 | </label> |
---|
[32135] | 103 | </div> |
---|
| 104 | <div id="changeselect" style="display: none;" > |
---|
| 105 | <select name="dataselect" id="dataselect"> |
---|
| 106 | </select> |
---|
| 107 | </div> |
---|
| 108 | <div id="changeradio" style="display: none;" > |
---|
| 109 | </div> |
---|
[31360] | 110 | </span> |
---|