Changeset 31747
- Timestamp:
- Mar 7, 2017, 1:20:19 PM (8 years ago)
- Location:
- extensions/read_metadata
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/read_metadata/admin.php
r31592 r31747 3 3 // | Read Metadata | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2016 ddtddthttp://temmii.com/piwigo/ |5 // | Copyright(C) 2016-2017 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | … … 53 53 $_POST['submitreadmetadata']=1; 54 54 } 55 if(isset($_POST['idreadmetadata2']) and $_POST['idreadmetadata2']!=-1){ 56 $_POST['idreadmetadata']=$_POST['idreadmetadata2']; 57 } 55 58 56 59 if(isset($_POST['idreadmetadata'])){ … … 63 66 array('RM_ID' => '')); 64 67 } 68 if(isset($_POST['idreadmetadata'])){ echo $_POST['idreadmetadata']; } 69 $tab_picture = pwg_query('SELECT id,name FROM ' . IMAGES_TABLE . ' order by id;'); 70 if (pwg_db_num_rows($tab_picture)) { 71 while ($info_photos = pwg_db_fetch_assoc($tab_picture)) { 72 $items = array( 73 'PHOTOID' => $info_photos['id'], 74 'PHOTOINFO' => $info_photos['id'].' - '.$info_photos['name'], 75 ); 76 $template->append('info_photos', $items); 77 } 78 } 79 65 80 if (isset($_POST['submitreadmetadata'])){ 66 81 if (isset($_POST['idreadmetadata']) and is_numeric($_POST['idreadmetadata'])){ -
extensions/read_metadata/admin.tpl
r31567 r31747 6 6 <fieldset id="mainrm"> 7 7 <legend>{'Choose photo ID'|@translate}</legend> 8 <input type="number" name="idreadmetadata" value="{$read.RM_ID}"> 8 <input type="number" name="idreadmetadata" value="{$read.RM_ID}"> {'or'|@translate} 9 <select name="idreadmetadata2"> 10 <option value="-1">-----</option> 11 {foreach from=$info_photos item=infophoto} 12 <option value="{$infophoto.PHOTOID}">{$infophoto.PHOTOINFO}</option> 13 {/foreach} 14 </select> 9 15 <p> 10 16 <input class="submit" name="submitreadmetadata" type="submit" value="{'Submit'|@translate}"> -
extensions/read_metadata/initadmin.php
r31593 r31747 3 3 // | Read Metadata | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2016 ddtddthttp://temmii.com/piwigo/ |5 // | Copyright(C) 2016-2017 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/read_metadata/language/en_UK/plugin.lang.php
r31567 r31747 3 3 // | Read Metadata | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2016 ddtddthttp://temmii.com/piwigo/ |5 // | Copyright(C) 2016-2017 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | … … 30 30 $lang['Show metadata'] = 'Show metadata'; 31 31 $lang['Photo admin page'] = 'Photo admin page'; 32 $lang['or'] = 'or'; -
extensions/read_metadata/language/fr_FR/plugin.lang.php
r31567 r31747 3 3 // | Read Metadata | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2016 ddtddthttp://temmii.com/piwigo/ |5 // | Copyright(C) 2016-2017 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | … … 30 30 $lang['Show metadata'] = 'Voir les métadonnées'; 31 31 $lang['Photo admin page'] = 'Page d\'administration de la photo'; 32 $lang['or'] = 'ou'; -
extensions/read_metadata/main.inc.php
r31551 r31747 12 12 // | Read Metadata | 13 13 // +-----------------------------------------------------------------------+ 14 // | Copyright(C) 2016 ddtddthttp://temmii.com/piwigo/ |14 // | Copyright(C) 2016-2017 ddtddt http://temmii.com/piwigo/ | 15 15 // +-----------------------------------------------------------------------+ 16 16 // | This program is free software; you can redistribute it and/or modify |
Note: See TracChangeset
for help on using the changeset viewer.