Changeset 6950 for extensions/AMetaData/amd_aip.class.inc.php
- Timestamp:
- Sep 16, 2010, 8:55:20 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AMetaData/amd_aip.class.inc.php
r6919 r6950 49 49 $this->tabsheet = new tabsheet(); 50 50 51 if($this->config['amd_ interfaceMode']=='basic')51 if($this->config['amd_InterfaceMode']=='basic') 52 52 { 53 53 $this->tabsheet->add('metadata', … … 69 69 l10n('g003_search'), 70 70 $this->getAdminLink().'&fAMD_tabsheet=search'); 71 $this->tabsheet->add('tags', 72 l10n('g003_tags'), 73 $this->getAdminLink().'&fAMD_tabsheet=tags'); 71 74 $this->tabsheet->add('help', 72 75 l10n('g003_help'), … … 128 131 $this->displaySearch($_REQUEST['fAMD_page']); 129 132 break; 133 case 'tags': 134 $this->displayTags(); 135 break; 130 136 } 131 137 … … 168 174 if(!isset($_REQUEST['fAMD_tabsheet'])) 169 175 { 170 if($this->getNumOfPictures()==0 and $this->config['amd_ interfaceMode']=='advanced')176 if($this->getNumOfPictures()==0 and $this->config['amd_InterfaceMode']=='advanced') 171 177 { 172 178 $_REQUEST['fAMD_tabsheet']="database"; … … 183 189 $_REQUEST['fAMD_tabsheet']=="help" or 184 190 $_REQUEST['fAMD_tabsheet']=="database" or 185 $_REQUEST['fAMD_tabsheet']=="search") 191 $_REQUEST['fAMD_tabsheet']=="search" or 192 $_REQUEST['fAMD_tabsheet']=="tags") 186 193 or 187 $this->config['amd_ interfaceMode']=='basic' and194 $this->config['amd_InterfaceMode']=='basic' and 188 195 ( 189 196 $_REQUEST['fAMD_tabsheet']=="database" or 190 $_REQUEST['fAMD_tabsheet']=="search" 197 $_REQUEST['fAMD_tabsheet']=="search" or 198 $_REQUEST['fAMD_tabsheet']=="tags" 191 199 ) 192 200 ) … … 202 210 if(!isset($_REQUEST['fAMD_page'])) 203 211 { 204 if($this->config['amd_ interfaceMode']=='basic')212 if($this->config['amd_InterfaceMode']=='basic') 205 213 { 206 214 $_REQUEST['fAMD_page']="display"; … … 216 224 $_REQUEST['fAMD_page']=="display") 217 225 or 218 $this->config['amd_ interfaceMode']=='basic' and226 $this->config['amd_InterfaceMode']=='basic' and 219 227 ( 220 228 $_REQUEST['fAMD_page']=="select" … … 222 230 ) 223 231 { 224 if($this->config['amd_ interfaceMode']=='basic')232 if($this->config['amd_InterfaceMode']=='basic') 225 233 { 226 234 $_REQUEST['fAMD_page']="display"; … … 268 276 } 269 277 278 270 279 } //init_request 271 280 … … 327 336 l10n('g003_personnal'), 328 337 $this->getAdminLink().'&fAMD_tabsheet=metadata&fAMD_page=personnal'); 329 if($this->config['amd_ interfaceMode']=='advanced')338 if($this->config['amd_InterfaceMode']=='advanced') 330 339 { 331 340 $statTabsheet->add('select', … … 362 371 protected function displayMetaDataPersonnal() 363 372 { 364 global $template, $theme, $themes, $themeconf ;373 global $template, $theme, $themes, $themeconf, $lang; 365 374 366 375 $template->set_filename('sheet_page', … … 392 401 } 393 402 403 $lang['g003_personnal_page_help']=GPCCore::BBtoHTML($lang['g003_personnal_page_help']); 404 394 405 $template->assign('datas', $datas); 395 406 return($template->parse('sheet_page', true)); … … 404 415 protected function displayMetaDataSelect() 405 416 { 406 global $template, $theme, $themes, $themeconf ;417 global $template, $theme, $themes, $themeconf, $lang; 407 418 408 419 $template->set_filename('sheet_page', … … 418 429 ); 419 430 431 $lang['g003_select_page_help']=GPCCore::BBtoHTML($lang['g003_select_page_help']); 432 420 433 $template->assign('datas', $datas); 421 434 return($template->parse('sheet_page', true)); … … 430 443 protected function displayMetaDataDisplay() 431 444 { 432 global $user, $template ;445 global $user, $template, $lang; 433 446 434 447 //$local_tpl = new Template(AMD_PATH."admin/", ""); … … 490 503 } 491 504 505 $lang['g003_display_page_help']=GPCCore::BBtoHTML($lang['g003_display_page_help']); 492 506 $template->assign('datas', $datas); 493 507 return($template->parse('sheet_page', true)); … … 745 759 } 746 760 761 762 /** 763 * display and manage the tags page 764 * 765 */ 766 protected function displayTags() 767 { 768 global $template, $user, $lang; 769 $template->set_filename('body_page', dirname(__FILE__).'/admin/amd_metadata_tags.tpl'); 770 771 $datas=array( 772 'urlRequest' => $this->getAdminLink('ajax') 773 ); 774 775 $lang['g003_tags_page_help']=GPCCore::BBtoHTML($lang['g003_tags_page_help']); 776 777 $template->assign('datas', $datas); 778 779 $template->assign_var_from_handle('AMD_BODY_PAGE', 'body_page'); 780 } 781 782 747 783 } // AMD_AIP class 748 784
Note: See TracChangeset
for help on using the changeset viewer.