Changeset 31342 for extensions
- Timestamp:
- Jan 27, 2016, 10:21:07 AM (9 years ago)
- Location:
- extensions/manage_properties_photos
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/manage_properties_photos/initpicture.php
r30703 r31342 155 155 </dd> 156 156 </div> 157 {else if $addinfophotos.AIPWORDING == \'Description\' and isset($COMMENT_IMG)} 158 <div id="Description" class="imageInfo"> 159 <dt>{\'Description\'|@translate}</dt> 160 <dd> 161 {$COMMENT_IMG} 162 </dd> 163 </div> 164 {footer_script} 165 jQuery(document).ready(function(){ 166 jQuery(".imageComment").hide(); 167 }); 168 {/footer_script} 157 169 {else if $addinfophotos.AIPDATA} 158 170 <div id="add_info" class="imageInfo"> -
extensions/manage_properties_photos/maintain.class.php
r30702 r31342 61 61 62 62 function update($old_version, $new_version, &$errors=array()){ 63 63 global $prefixeTable; 64 if (!defined('ADD_PROP_PHOTO_TABLE')) define('ADD_PROP_PHOTO_TABLE', $prefixeTable.'add_properties_photos'); 65 $desc = pwg_db_fetch_assoc(pwg_query("SELECT wording FROM " . ADD_PROP_PHOTO_TABLE . " WHERE wording = 'Description' LIMIT 1;")); 66 if ($desc == NULL){ 67 $order=pwg_db_fetch_assoc(pwg_query('SELECT orderprop FROM ' . ADD_PROP_PHOTO_TABLE . ' ORDER BY orderprop DESC LIMIT 1;')); 68 $order=$order['orderprop']+1; 69 $q = 'INSERT INTO ' . $prefixeTable . 'add_properties_photos(wording,orderprop,active,edit)VALUES ("Description",'.$order.',1,0);'; 70 pwg_query($q); 71 } 72 64 73 } 65 74
Note: See TracChangeset
for help on using the changeset viewer.