Status/Resolution/Reason: Closed/Withdrawn/
Reporter/Name(from Bugbase): Reinhard Jung / Reinhard Jung (Tigermutze)
Created: 03/05/2009
Components: AJAX, UI Components
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 9,0,0,216113 /
Priority/Frequency: Major / Unknown
Locale/System: English / Win All
Vote Count: 0
Duplicate ID: CF-3035613
Problem:
I created a layout with cflayouts etc.
It looks great within CF8, but not within CF9.
Screens ist not autorisizing within CF9, but within CF8.
It is exactly the same Code!!!!
Method:
<!--- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> --->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<cfset variables.thisPage = getFileFromPath(getCurrentTemplatePath()) />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<cfoutput><title>#application[application.applicationname].getConfig('blog.title')# - [#application[application.applicationname].getConfig('blog.info')#] - Admin</title></cfoutput>
<link rel="stylesheet" media="screen" href="config/css/screen.css">
<link rel="stylesheet" media="print" href="config/css/print.css">
<link rel="stylesheet" media="handheld" href="config/css/handheld.css">
<!--- ext CSS & JS
<link rel="stylesheet" type="text/css" href="#application[application.applicationname].getConfig('load.extJS')#resources/css/ext-all.css" />
<script type="text/javascript" src="#application[application.applicationname].getConfig('load.extJS')#adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="#application[application.applicationname].getConfig('load.extJS')#ext-all.js"></script>
<script type="text/javascript" src="#application[application.applicationname].getConfig('load.extJS')#ext-all-debug.js"></script>
<script type="text/javascript" src="config/script/sgs_ext.js"></script>
--->
<!--- FS JS & Ext Funktionen --->
<script type="text/javascript" src="config/script/sgs_functions.js"></script>
</head>
<body id="admin">
<cfinclude template="login.cfm">
<cflayout type="border"><cfoutput>
<!--- Header --->
<cflayoutarea position="top" style="background:url('config/images/columnheader.jpg'); height:24px;">
<div id="headname">
<em>#application[application.applicationname].getLanguage('admin.blog')#</em> <a href="." title="#application[application.applicationname].getLanguage('admin.blogLink')#"><strong>#application[application.applicationname].getConfig('blog.name')# - [#application[application.applicationname].getConfig('blog.info')#]</strong></a>
</div>
<div id="headdesc"><em>#application[application.applicationname].getLanguage('admin.entries')#:</em> #application[application.applicationname].getEntriesByCategory(0).recordCount# - <em>#application[application.applicationname].getLanguage('admin.categories')#:</em> #application[application.applicationname].getAllComments().recordCount#</div></div>
</cflayoutarea>
<!--- Content/Main --->
<cflayoutarea position="center">
<cfswitch expression="#request[application.applicationname].event#">
<cfcase value="admin.listEntries,admin.doSearch">
<cfif request[application.applicationname].event IS "admin.doSearch">
<cfset myEntries = application[application.applicationname].searchEntries(request[application.applicationname].search) />
</cfif>
<cfparam name="myEntries" type="query" default="#application[application.applicationname].getEntriesByCategory()#" />
<div class="main">
<h3>#application[application.applicationname].getLanguage('admin.entryHead')# (#(myEntries.recordCount)#)</h3>
<table cellpadding="0" cellspacing="0">
<thead>
<tr>
<th class="large">#application[application.applicationname].getLanguage('table.title')#</th>
<th class="medium">#application[application.applicationname].getLanguage('table.date')#</th>
<th><img src="config/images/Download.gif" title="#application[application.applicationname].getLanguage('image.download')#" alt="D"></th>
<th><img src="config/images/Maps.png" title="#application[application.applicationname].getLanguage('image.location')#" alt="L"></th>
<th><img src="config/images/Home.ico" title="#application[application.applicationname].getLanguage('image.homepage')#" alt="HP"></th>
<th><img src="config/images/Viewed.ico" title="#application[application.applicationname].getLanguage('image.viewed')#" alt="V"></th>
<th><img src="config/images/Comments.ico" title="#application[application.applicationname].getLanguage('image.comments')#" alt="C"></th>
</tr>
</thead>
<cfloop query="myEntries">
<tr <cfif myEntries.CurrentRow MOD 2>class="mod"</cfif> onmouseover="this.className='def'" <cfif myEntries.CurrentRow MOD 2>onmouseout="this.className='mod'"<cfelse>onmouseout="this.className='"</cfif>>
<td class="nowrap"><a href="?Event=admin.editEntry&Ident=#myEntries.Ident#">#myEntries.Title#</a></td>
<td class="nowrap">#lsDateFormat(myEntries.posted,application[application.applicationname].getLanguage('system.dateshort'))# - #lsTimeFormat(myEntries.posted,application[application.applicationname].getLanguage('system.timeformat'))#</td>
<td class="center"><cfif len(myEntries.Download)><a href="#myEntries.Download#">X</a></cfif></td>
<td class="center"><cfif len(myEntries.Location)><a href="#myEntries.Location#">X</a></cfif></td>
<td class="center"><cfif len(myEntries.HomePage)><a href="#myEntries.HomePage#">X</a></cfif></td>
<td class="right">#val(myEntries.viewed)#</td>
<td class="right">#application[application.applicationname].getCommentsByEntry(myEntries.Ident).recordCount#</td>
</tr>
</cfloop>
</table>
</div>
</cfcase>
<cfcase value="admin.listCategories">
<div class="main">
<cfset myCategories = application[application.applicationname].getCategories() />
<h3>#application[application.applicationname].getLanguage('admin.categoryHead')# (#myCategories.recordCount#)</h3>
<table cellpadding="0" cellspacing="0">
<thead>
<tr>
<th class="left">#application[application.applicationname].getLanguage('table.title')#</th>
<th class="left">#application[application.applicationname].getLanguage('table.info')#</th>
</tr>
</thead>
<cfloop query="myCategories">
<tr <cfif myCategories.CurrentRow MOD 2>class="mod"</cfif> onmouseover="this.className='def'" <cfif myCategories.CurrentRow MOD 2>onmouseout="this.className='mod'"<cfelse>onmouseout="this.className='"</cfif>>
<td class="nowrap"><a href="?event=admin.editCategory&Ident=#myCategories.Ident#">#myCategories.Title#</a></td>
<td class="nowrap"><a href="?event=admin.editCategory&Ident=#myCategories.Ident#">#myCategories.Info#</a></td>
</tr>
</cfloop>
</table>
</fieldset>
</div>
</cfcase>
<cfcase value="admin.listComments">
<div class="main">
<cfset myComments = application[application.applicationname].getAllComments() />
<cfparam name="variables.event" type="string" default="admin.deleteComments" />
<cfparam name="variables.returnTo" type="string" default="admin.listComments" />
<h3>#application[application.applicationname].getLanguage('admin.commentHead')# (#myComments.recordCount#)</h3>
<form action="" method="post">
<table id="tableadmin" width="100%" cellpadding="0" cellspacing="0">
<thead>
<tr>
<th class="left"> </th>
<th class="left">#application[application.applicationname].getLanguage('table.date')#</th>
<th class="left">#application[application.applicationname].getLanguage('table.expositor')#</th>
<th class="left">#application[application.applicationname].getLanguage('table.email')#</th>
<th class="left">#application[application.applicationname].getLanguage('table.website')#</th>
<th class="left">#application[application.applicationname].getLanguage('table.remoteip')#</th>
</tr>
</thead>
<cfloop query="myComments">
<tr <cfif myComments.CurrentRow MOD 2>class="mod"</cfif> onmouseover="this.className='def'" <cfif myComments.CurrentRow MOD 2>onmouseout="this.className='mod'"<cfelse>onmouseout="this.className='"</cfif>>
<td class="check"><input type="checkbox" name="Idents" value="#myComments.Ident#"></td>
<td class="nowrap">#lsDateFormat(myComments.posted,application[application.applicationname].getLanguage('system.dateformat'))# - #lsTimeFormat(myComments.posted,application[application.applicationname].getLanguage('system.timeformat'))#</td>
<td class="nowrap">#myComments.Expositor#</td>
<td class="nowrap">#myComments.eMail#</td>
<td class="nowrap">#myComments.WebSite#</td>
<td class="nowrap">#myComments.RemoteIP#</td>
</tr>
</cfloop>
</table>
<input type="hidden" name="event" value="#variables.event#" />
<input type="hidden" name="returnTo" value="#variables.returnTo#" />
<input type="submit" class="btn" value="#application[application.applicationname].getLanguage('adminform.commentDelete')#">
</form>
</div>
</cfcase>
<!--- hier --->
<cfcase value="admin.editEntry">
<h3>#application[application.applicationname].getLanguage('admin.editEntryHead')#</h3>
<form action="" method="post" name="editEntry" class="editForm">
<cfparam name="variables.field.ident" type="uuid" default="#createUUID()#" />
<cfparam name="variables.field.title" type="string" default="" />
<cfparam name="variables.field.teaser" type="string" default="" />
<cfparam name="variables.field.body" type="string" default="" />
<cfparam name="variables.field.posted" type="date" default="#lsDateFormat(now(),'DD.MM.YYYY')# #lsTimeFormat(now(),'HH:MM')#" />
<cfparam name="variables.field.viewed" type="numeric" default="0" />
<cfparam name="variables.field.location" type="string" default="" />
<cfparam name="variables.field.homepage" type="string" default="" />
<cfparam name="variables.field.download" type="string" default="" />
<cfif structKeyExists(request[application.applicationname],'ident')>
<cfset myEntry = application[application.applicationname].getEntryByIdent(request[application.applicationname].ident) />
<cfloop collection="#variables.field#" item="myField">
<cfset variables.field[myField] = myEntry[myField][1] />
</cfloop>
<cfset variables.field.posted = lsDateFormat(variables.field.posted,'DD.MM.YYYY') &" " &lsTimeFormat(variables.field.posted,'HH:MM') />
</cfif>
<cfparam name="variables.event" type="string" default="#iif(structKeyExists(request[application.applicationname],'Ident'),de('admin.update'),de('admin.create'))#Entry" />
<cfparam name="variables.returnTo" type="string" default="admin.editEntry&Ident=#variables.field.ident#" />
<!--- docu:Reinhard Jung/ 2008.09.16 14:03:41 PM aus INI lesen --->
<input name="Posted" type="text" class="floatr right date" value="#variables.field.posted#" />
<input name="Title" class="title" type="text" value="#variables.field.Title#" />
<textarea id="body" name="body">#variables.field.Body#</textarea><br />
<textarea id="teaser" name="teaser">#variables.field.Teaser#</textarea><br />
<label for="download"><img src="config/images/Download.gif" title="#application[application.applicationname].getLanguage('image.download')#" alt="Dln" />#application[application.applicationname].getLanguage('image.download')#</label>
<input name="Download" id="download" class="attachments" type="text" value="#variables.field.Download#" />
<br />
<label for="homepage"><img src="config/images/Home.ico" title="#application[application.applicationname].getLanguage('image.homepage')#" alt="HP" />#application[application.applicationname].getLanguage('image.homepage')#</label>
<input name="Homepage" id="homepage" class="attachments" type="text" value="#variables.field.Homepage#" />
<br />
<label for="location"><img src="config/images/Maps.png" title="#application[application.applicationname].getLanguage('image.location')#" alt="Loc" />#application[application.applicationname].getLanguage('image.location')#</label>
<input name="Location" id="location" class="attachments" type="text" value="#variables.field.Location#" />
<br />
<input type="hidden" name="ident" value="#variables.field.ident#" />
<input type="hidden" name="viewed" value="#variables.field.viewed#" />
<input type="hidden" name="event" value="#variables.event#" />
<input type="hidden" name="returnTo" value="#variables.returnTo#" />
<input type="submit" name="submit" value="#application[application.applicationname].getLanguage('adminform.entrySubmit')#" class="btn" />
<cfif structKeyExists(request[application.applicationname],'Ident')><input type="button" name="Loeschen" value="#application[application.applicationname].getLanguage('adminform.entryDelete')#" class="btn floatr" onclick="top.location.href='#variables.thisPage#?event=admin.deleteEntry&ident=#variables.field.ident#&returnTo=admin.listEntries'" /></cfif>
</fieldset>
</form>
</div>
</cfcase>
<cfcase value="admin.editCategory">
<div class="main">
<h3>#application[application.applicationname].getLanguage('admin.editCategoryHead')#</h3>
<cfparam name="variables.field.ident" type="uuid" default="#createUUID()#" />
<cfparam name="variables.field.title" type="string" default="" />
<cfparam name="variables.field.info" type="string" default="" />
<cfif structKeyExists(request[application.applicationname],'ident')>
<cfset myCategory = application[application.applicationname].getCategory(request[application.applicationname].ident) />
<cfloop collection="#variables.field#" item="myField">
<cfset variables.field[myField] = myCategory[myField][1] />
</cfloop>
</cfif>
<cfparam name="variables.event" type="string" default="#iif(structKeyExists(request[application.applicationname],'Ident'),de('admin.update'),de('admin.create'))#Category" />
<cfparam name="variables.returnTo" type="string" default="admin.listCategories" />
<form action="" method="post" class="editForm">
<label for="Title">#application[application.applicationname].getLanguage('adminform.title')#</label>
<input name="Title" id="Title" type="text" class="attachments" value="#variables.field.title#" /><br />
<label for="Info">#application[application.applicationname].getLanguage('adminform.info')#</label>
<input name="Info" id="Info" type="text" class="attachments" value="#variables.field.info#" /><br />
<input type="hidden" name="ident" value="#variables.field.ident#" />
<input type="hidden" name="event" value="#variables.event#" />
<input type="hidden" name="returnTo" value="#variables.returnTo#" />
<cfif structKeyExists(request[application.applicationname],'Ident')><input type="button" class="btn floatr" value="#application[application.applicationname].getLanguage('adminform.categoryDelete')#" onclick="top.location.href='#variables.thisPage#?event=admin.deleteCategory&ident=#variables.field.ident#&returnTo=admin.listCategories'" /></cfif>
<input type="submit" name="submit" value="#application[application.applicationname].getLanguage('adminform.categorySubmit')#" class="btn" />
</form>
</div>
</cfcase>
<cfcase value="admin.updateEntry,admin.createEntry,admin.updateCategory,admin.deleteEntry,admin.createCategory,admin.deleteCategory,admin.deleteComments,admin.createFeed">
<cfinvoke component="#application[application.applicationname]#" method="#listLast(request[application.applicationname].event,'.')#" argumentcollection="#request[application.applicationname]#" returnvariable="xxx">
<cflocation url="?event=#request[application.applicationname].returnTo#">
</cfcase>
<cfcase value="admin.doLogin,page.home">
<div class="main">
<h3>#application[application.applicationname].getLanguage('admin.welcome')#</h3>
<fieldset><legend>#application[application.applicationname].getLanguage('admin.translation')#</legend>
<ul style="font:normal normal 12px courier; text-align:left;">
<li>de_CH = Sarah Ammann, Claudia Minini</li>
<li>fr_FR = Jonathan</li>
<li>it_IT = Goran Joc</li>
<li>ru_RU = Natalia Lutz</li>
</ul>
</fieldset>
</div>
</cfcase>
<cfdefaultcase>
#application[application.applicationname].getLanguage('admin.error')#
<cfdump var="#request#">
</cfdefaultcase>>
</cfswitch>
</cflayoutarea>
<!--- Right --->
<cfif #request[application.applicationname].event# EQ 'admin.editEntry'>
<cflayoutarea position="right" collapsible="true" title="#application[application.applicationname].getLanguage('admin.rightTitle')#" size="150" maxsize="150">
<cfset myCategories = application[application.applicationname].getCategories() />
<cfif structKeyExists(request[application.applicationname],'Ident')>
<cfset myCategoriesByEntry = application[application.applicationname].getCategoriesByEntry(request[application.applicationname].Ident) />
<cfset justToConvertedToValueList = application[application.applicationname].getCategoriesByEntry(request[application.applicationname].Ident) />
<cfset myCategoriesByEntryList = valuelist(justToConvertedToValueList.category_ident) />
</cfif>
<form name="editEntryCategories" id="editEntryCategories">
<cfloop query="myCategories">
<cfset myCatID = "category_" &myCategories.currentRow />
<input id="#myCategories.Title#" type="checkbox" value="#myCategories.Ident#" onclick="myCheckbox('#myCatID#','#myCategories.Ident#');" <cfif structKeyExists(request[application.applicationname],'Ident')><cfif listFind(myCategoriesByEntryList,myCategories.Ident)>checked</cfif></cfif>>
<label for="#myCategories.Title#" title="#myCategories.Info#"> #myCategories.Title#</label><br />
<script type="text/javascript">myCheckedBox('#myCategories.Title#','#myCatID#','#myCategories.Ident#');</script>
</cfloop>
</form>
</cflayoutarea>
</cfif>
<!--- Left --->
<cflayoutarea position="left" collapsible="true" title="#application[application.applicationname].getLanguage('admin.search')#" size="200" maxsize="200">
<cflayout type="vbox">
<cflayoutarea style="padding:2px 0 6px;">
<form action="" method="post">
<input type="text" name="search" value="" /><br />
<input type="hidden" name="event" value="admin.doSearch" />
<input type="submit" class="btn" value="#application[application.applicationname].getLanguage('adminform.search')#" /><br />
</form>
</cflayoutarea>
<cflayoutarea style="border-bottom:1px solid ##ccc; padding:0 0 6px;">
<h3 class="headline">#application[application.applicationname].getLanguage('admin.leftTitle')#</h3>
<a href="?event=page.home" class="navi">#application[application.applicationname].getLanguage('admin.naviHome')#</a><br />
<cfloop list="#application[application.applicationname].getConfig('navigation.admin')#" index="myNavi">
<cfset myLink = application[application.applicationname].getConfig('navigation.#myNavi#') />
<cfif listFindNoCase(application[application.applicationname].getConfig('navigation.creates'),myNavi)>
<cfset myLinkNew = application[application.applicationname].getConfig('navigation.new#myNavi#') />
</cfif>
<a href="?event=#myLink#" class="navi">#application[application.applicationname].getLanguage('admin.#myNavi#')#</a><cfif isDefined('myLinkNew')><a href="?event=#myLinkNew#" class="new">#application[application.applicationname].getLanguage('admin.new')#</a></cfif><br />
</cfloop>
<!---
<h3 class="headline">#application[application.applicationname].getLanguage('admin.lang')#</h3>
<p class="lang">
<cfloop collection="#application[application.applicationname].getLanguages().myLanguage#" item="myLanguage">
<a href="fs_#variables.thisPage#?languageCode=#myLanguage#"><img src="config/images/languages/#listlast(myLanguage,'_')#.png" alt="" /></a>
</cfloop>
</p>
--->
<!---
<h3 class="headline">#application[application.applicationname].getLanguage('admin.RSS')#</h3>
<img src="config/images/ico_rss2.gif" alt="#application[application.applicationname].getLanguage('admin.createRSS')#" class="rss" /><a href="?event=admin.createFeed&returnTo=admin.listEntries" class="rss">#application[application.applicationname].getLanguage('admin.createRSS')#</a>
--->
</cflayoutarea>
</cflayout>
</cflayoutarea>
</cfoutput>
</cflayout>
</body>
</html>
Result:
There are not Erros, but the Screen is incorrect wrong!!!
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3037760
External Customer Info:
External Company:
External Customer Name: Reinhard Jung
External Customer Email: 4DD96DF448671727992015A7
External Test Config: 03/05/2009
Attachments:
Comments: