Changeset 32902 for extensions/manage_properties_photos
- Timestamp:
- Jan 15, 2023, 1:40:32 PM (16 months ago)
- Location:
- extensions/manage_properties_photos
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/manage_properties_photos/admin.php
r32741 r32902 3 3 // | Manage Properties Photos plugin for Piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2007-202 2ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2007-2023 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | … … 152 152 'IDINFOPHO' => $info_photos['id_prop_pho'], 153 153 'AIPWORDING' => trigger_change('AP_render_content',$info_photos['wording']), 154 'AIPDATA' => $row['datadate'],154 //'AIPDATA' => $row['datadate'], 155 155 'AIPTYP' => $info_photos['Typ'], 156 156 ); 157 157 if(isset($row['datadate'])){ 158 $items['AIPDATA']=$row['datadate']; 158 $items['AIPDATA']=$row['datadate']; 159 }else{ 160 $items['AIPDATA']=""; 159 161 } 160 162 if($info_photos['wording']=="**delpho**"){ … … 173 175 if(isset($row['data'])){ 174 176 $items['AIPDATA']=$row['data']; 177 }else{ 178 $items['AIPDATA']=""; 175 179 } 176 180 if($info_photos['Typ']==4||$info_photos['Typ']==5){ … … 190 194 $test = pwg_query($q); 191 195 $row = pwg_db_fetch_assoc($test); 192 if ( count($row) > 0) {196 if (!empty($row)) { 193 197 if ($data != '') { 194 198 $query = 'UPDATE ' . $prefixeTable . 'add_properties_photos_data SET data="' . $data . '" WHERE id_img=' . $id_img . ' AND id_prop_pho=' . $id_prop_pho; … … 207 211 $test = pwg_query($q); 208 212 $row = pwg_db_fetch_assoc($test); 209 if ( count($row) > 0) {213 if (!empty($row)) { 210 214 if ($data != '') { 211 215 $query = 'UPDATE ' . $prefixeTable . 'add_properties_photos_datadate SET datadate="' . $data . '" WHERE id_img=' . $id_img . ' AND id_prop_pho=' . $id_prop_pho; … … 302 306 $items['AIPTYP'] = $info_photos['Typ']; 303 307 if($info_photos['Typ']==4||$info_photos['Typ']==5){ 304 $items['AIPDATAPROP'] = json_encode(unserialize($info_photos['dataprop'])); 308 $items['AIPDATAPROP'] = json_encode(unserialize($info_photos['dataprop'])); 309 }else{ 310 $items['AIPDATAPROP'] = ""; 305 311 } 306 312 if($info_photos['Typ']==3||$info_photos['Typ']==6){ -
extensions/manage_properties_photos/admin/admin.tpl
r32740 r32902 295 295 <fieldset class="with-border"> 296 296 <legend><span id="leg_add">{'Create new Property photo'|@translate}</span><span id="leg_edit">{'Edit Property photo'|@translate}</span></legend> 297 <input id="hideid" data-maxfield="{$MPPMAXFIELD}" type="hidden" name="invisibleID" value=" {$addinfo_edit2.AIPID}"></input>297 <input id="hideid" data-maxfield="{$MPPMAXFIELD}" type="hidden" name="invisibleID" value=""></input> 298 298 <input class="radtyp" id="radtyptex" type="radio" name="typ" value="1"> <span class="radtypspan">{'Text'|@translate}</span></input> 299 299 <input class="radtyp" type="radio" name="typ" value="4"><span class="radtypspan"> {'select'|@translate}</span></input> … … 306 306 <p id="wordingta" class="input"> 307 307 <label for="inserwording"><strong>{'Wording'|@translate}</strong></label><br /> 308 <textarea {if $useED==1}placeholder="{'Use Extended Description tags...'|@translate}"{/if} style="margin-left:50px" rows="5" cols="50" class="description" name="inserwording" id="aip_add"> {$addinfo_edit2.AIPDESC}</textarea>308 <textarea {if $useED==1}placeholder="{'Use Extended Description tags...'|@translate}"{/if} style="margin-left:50px" rows="5" cols="50" class="description" name="inserwording" id="aip_add"></textarea> 309 309 {if $useED==1} 310 310 <a href="{$ROOT_URL}admin/popuphelp.php?page=extended_desc" onclick="popuphelp(this.href); return false;" title="{'Use Extended Description tags...'|translate}" style="vertical-align: middle; border: 0; margin: 0.5em;"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/help.png" class="button" alt="{'Use Extended Description tags...'|translate}'"></a> … … 313 313 <p class="input" style="width: 700px;"> 314 314 <label for="inseractive">{'Hide'|@translate}</label> 315 <input id="aip_hide" type="checkbox" name="inseractive" {if {$addinfo_edit2.AIPACTIF}==1}checked{/if}value="1">315 <input id="aip_hide" type="checkbox" name="inseractive" value="1"> 316 316 </p> 317 317 <div id="mppselect" class="input_fields_wrap"> -
extensions/manage_properties_photos/include/function.aip.inc.php
r32391 r32902 4 4 // | Manage Properties Photos plugin for Piwigo by TEMMII | 5 5 // +-----------------------------------------------------------------------+ 6 // | Copyright(C) 2007-202 1ddtddt http://temmii.com/piwigo/ |6 // | Copyright(C) 2007-2023 ddtddt http://temmii.com/piwigo/ | 7 7 // +-----------------------------------------------------------------------+ 8 8 // | This program is free software; you can redistribute it and/or modify | -
extensions/manage_properties_photos/initadmin.php
r32735 r32902 3 3 // | Manage Properties Photos plugin for Piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2007-202 2ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2007-2023 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | … … 80 80 if($info_select['Typ']==4||$info_select['Typ']==5){ 81 81 $items['AIPDATAPROP'] = json_encode(unserialize($info_select['dataprop'])); 82 }else{ 83 $items['AIPDATAPROP'] = ""; 82 84 } 83 85 if($info_select['wording']=="**delpho**"){ -
extensions/manage_properties_photos/initpicture.php
r32741 r32902 3 3 // | Manage Properties Photos plugin for Piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2007-202 2ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2007-2023 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/manage_properties_photos/language/en_UK/plugin.lang.php
r32585 r32902 3 3 // | Manage Properties Photos plugin for Piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2007-202 1ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2007-2023 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/manage_properties_photos/language/fr_FR/plugin.lang.php
r32551 r32902 3 3 // | Manage Properties Photos plugin for Piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2007-202 1ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2007-2023 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/manage_properties_photos/main.inc.php
r32735 r32902 13 13 // | Manage Properties Photos plugin for Piwigo by TEMMII | 14 14 // +-----------------------------------------------------------------------+ 15 // | Copyright(C) 2007-202 2ddtddt http://temmii.com/piwigo/ |15 // | Copyright(C) 2007-2023 ddtddt http://temmii.com/piwigo/ | 16 16 // +-----------------------------------------------------------------------+ 17 17 // | This program is free software; you can redistribute it and/or modify | -
extensions/manage_properties_photos/maintain.class.php
r32735 r32902 3 3 // | Manage Properties Photos plugin for Piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2007-202 2ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2007-2023 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/manage_properties_photos/mmp.tpl
r32162 r32902 93 93 <input id="hidetyp" type="hidden" name="invisibleTyp" value=""> 94 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>95 <textarea rows="3" cols="100" {if $useED==1}placeholder="{'Use Extended Description tags...'|@translate}"{/if} name="dataglob"></textarea> 96 96 </div> 97 97 <div id="changeproda" style="display: none;" >
Note: See TracChangeset
for help on using the changeset viewer.