mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merged revisions 50488 via svnmerge from
http://svn.silverstripe.com/open/modules/sapphire/branches/2.2.2 ........ r50488 | sminnee | 2008-03-03 21:59:09 +1300 (Mon, 03 Mar 2008) | 1 line #2280 - Fixed XML parsing errors in CTF ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@50870 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
11074f013f
commit
a0be727cc3
@ -477,7 +477,7 @@ JS;
|
||||
|
||||
$item = $this->unpagedSourceItems->First();
|
||||
$start = 0;
|
||||
return $this->PopupBaseLink() . "&methodName={$_REQUEST['methodName']}&ctf[childID]={$item->ID}&ctf[start]={$start}";
|
||||
return Convert::raw2att($this->PopupBaseLink() . "&methodName={$_REQUEST['methodName']}&ctf[childID]={$item->ID}&ctf[start]={$start}");
|
||||
}
|
||||
|
||||
function PopupLastLink() {
|
||||
@ -487,7 +487,7 @@ JS;
|
||||
|
||||
$item = $this->unpagedSourceItems->Last();
|
||||
$start = $this->totalCount - 1;
|
||||
return $this->PopupBaseLink() . "&methodName={$_REQUEST['methodName']}&ctf[childID]={$item->ID}&ctf[start]={$start}";
|
||||
return Convert::raw2att($this->PopupBaseLink() . "&methodName={$_REQUEST['methodName']}&ctf[childID]={$item->ID}&ctf[start]={$start}");
|
||||
}
|
||||
|
||||
function PopupNextLink() {
|
||||
@ -498,7 +498,7 @@ JS;
|
||||
$item = $this->unpagedSourceItems->getOffset($_REQUEST['ctf']['start'] + 1);
|
||||
|
||||
$start = $_REQUEST['ctf']['start'] + 1;
|
||||
return $this->PopupBaseLink() . "&methodName={$_REQUEST['methodName']}&ctf[childID]={$item->ID}&ctf[start]={$start}";
|
||||
return Convert::raw2att($this->PopupBaseLink() . "&methodName={$_REQUEST['methodName']}&ctf[childID]={$item->ID}&ctf[start]={$start}");
|
||||
}
|
||||
|
||||
function PopupPrevLink() {
|
||||
@ -509,7 +509,7 @@ JS;
|
||||
$item = $this->unpagedSourceItems->getOffset($_REQUEST['ctf']['start'] - 1);
|
||||
|
||||
$start = $_REQUEST['ctf']['start'] - 1;
|
||||
return $this->PopupBaseLink() . "&methodName={$_REQUEST['methodName']}&ctf[childID]={$item->ID}&ctf[start]={$start}";
|
||||
return Convert::raw2att($this->PopupBaseLink() . "&methodName={$_REQUEST['methodName']}&ctf[childID]={$item->ID}&ctf[start]={$start}");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -533,7 +533,7 @@ JS;
|
||||
for($i = $offset;$i <= $offset + $this->pageSize && $i <= $this->totalCount;$i++) {
|
||||
$start = $i - 1;
|
||||
$item = $this->unpagedSourceItems->getOffset($i-1);
|
||||
$links['link'] = $this->PopupBaseLink() . "&methodName={$_REQUEST['methodName']}&ctf[childID]={$item->ID}&ctf[start]={$start}";
|
||||
$links['link'] = Convert::raw2att($this->PopupBaseLink() . "&methodName={$_REQUEST['methodName']}&ctf[childID]={$item->ID}&ctf[start]={$start}");
|
||||
$links['number'] = $i;
|
||||
$links['active'] = $i == $currentItem ? false : true;
|
||||
$result->push(new ArrayData($links));
|
||||
@ -566,7 +566,7 @@ JS;
|
||||
}
|
||||
|
||||
function AddLink() {
|
||||
return "{$this->PopupBaseLink()}&methodName=add";
|
||||
return Convert::raw2att("{$this->PopupBaseLink()}&methodName=add");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -671,15 +671,15 @@ class ComplexTableField_Item extends TableListField_Item {
|
||||
}
|
||||
|
||||
function EditLink() {
|
||||
return $this->PopupBaseLink() . "&methodName=edit";
|
||||
return Convert::raw2att($this->PopupBaseLink() . "&methodName=edit");
|
||||
}
|
||||
|
||||
function ShowLink() {
|
||||
return $this->PopupBaseLink() . "&methodName=show";
|
||||
return Convert::raw2att($this->PopupBaseLink() . "&methodName=show");
|
||||
}
|
||||
|
||||
function DeleteLink() {
|
||||
return $this->PopupBaseLink() . "&methodName=delete";
|
||||
return Convert::raw2att($this->PopupBaseLink() . "&methodName=delete");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -242,7 +242,7 @@ JS
|
||||
"Name" => $fieldName,
|
||||
"Title" => $fieldTitle,
|
||||
"IsSortable" => $isSortable,
|
||||
"SortLink" => $sortLink,
|
||||
"SortLink" => Convert::raw2xml($sortLink),
|
||||
"SortBy" => $isSorted,
|
||||
"SortDirection" => (isset($_REQUEST['ctf'][$this->Name()]['dir'])) ? $_REQUEST['ctf'][$this->Name()]['dir'] : null
|
||||
));
|
||||
|
@ -11,7 +11,7 @@
|
||||
<a href="$SortLink">$Title</a>
|
||||
</span>
|
||||
<span class="sortLink <% if SortBy %><% else %>sortLinkHidden<% end_if %>">
|
||||
<a href="$SortLink"">
|
||||
<a href="$SortLink">
|
||||
<% if SortDirection = desc %>
|
||||
<img src="cms/images/bullet_arrow_up.png" alt="<% _t('SORTASC', 'Sort ascending') %>" />
|
||||
<% else %>
|
||||
|
Loading…
Reference in New Issue
Block a user