Project

General

Profile

« Previous | Next » 

Revision 1780

Added by Dietmar about 12 years ago

! change help mouseover to onclick in page settings only on help icon
+ add help to input filename
! /framework/initialize.php now accept _GET and _POST to set user language

View differences:

settings.php
25 25
	{
26 26
		global $admin, $database, $oTpl, $aCurrentPage, $field_set;
27 27
		$sDisabled = ' disabled="disabled"';
28
		$sSelected  = ' selected="selected"';
28
		$sSelected = ' selected="selected"';
29 29

  
30 30
		$sql = 'SELECT `page_id`, `level`, `link`, `parent`, `menu_title`, `page_title`, '
31 31
		     .        '`language`, `admin_groups`, `admin_users`, `visibility`, '
......
82 82
	$mLang = ModLanguage::getInstance();
83 83
	$mLang->setLanguage(dirname(__FILE__).'/languages/', LANGUAGE, DEFAULT_LANGUAGE);
84 84
	$sDisabled = ' disabled="disabled"';
85
	$sSelected  = ' selected="selected"';
86
	$sChecked   = ' checked="checked"';
85
	$sSelected = ' selected="selected"';
86
	$sChecked  = ' checked="checked"';
87 87

  
88 88
// Get page id
89 89
	$page_id = $_GET['page_id'] ? intval($_GET['page_id']) : 0;
......
196 196
//	$oTpl->set_var('ICON_DIR', WB_REL.$sIconDir);
197 197
	$sHelp = replaceVars($mLang->HELP_PAGE_IMAGE_DIR, array('icon_dir'=>WB_REL.$sIconDir ) );
198 198

  
199
	$sql = 'SELECT `link` FROM `'.TABLE_PREFIX.'pages` '
200
	     . 'WHERE `page_id`='.$page_id.' ';
201
	$sAccesFile = (($database->get_one($sql)));
202
	$sFilename = replaceVars($mLang->HELP_SEO_TITLE, array('filename'=>PAGES_DIRECTORY.$sAccesFile.PAGE_EXTENSION ) );
203

  
199 204
	$oTpl->set_var('PAGE_EXTENDED_HIDE',  $bIconDirHide);
200 205
	$oTpl->set_var('p_page_icon_dir',  p($sHelp,$mLang->TEXT_PAGE_ICON_DIR));
201 206
	$oTpl->set_var('p_menu_icon0_dir', p($sHelp,$mLang->TEXT_MENU_ICON_0_DIR));
202 207
	$oTpl->set_var('p_menu_icon1_dir', p($sHelp,$mLang->TEXT_MENU_ICON_1_DIR));
203 208
	$oTpl->set_var('p_menu_page_code', p($mLang->HELP_PAGE_CODE,$mLang->TEXT_PAGE_CODE));
209
	$oTpl->set_var('p_menu_filename', p($sFilename,$mLang->TEXT_SEO_TITLE));
204 210

  
205 211
	if(is_readable(WB_PATH.$sIconDir)) {
206 212
		$oIterator = new DirectoryIterator(WB_PATH.$sIconDir);
......
596 602
function p($text,$lang)
597 603
{
598 604
	global $admin;
599
	$retVal  = 'onmouseover="return overlib(';
605
	$retVal  = 'onclick="return overlib(';
600 606
	$retVal .= '\''.$text.'\',';
601 607
	$retVal .= 'CAPTION,\''.$lang.'\',';
602 608
	$retVal .= 'FGCOLOR,\'#ffffff\',';

Also available in: Unified diff