Changeset 2981
- Timestamp:
- 07/25/08 17:11:21 (4 weeks ago)
- Files:
-
- trunk/project/modules/devel/cms3/heading/actiongroups/admin.actiongroup.php (modified) (1 diff)
- trunk/project/modules/devel/cms3/heading/classes/headingservices.class.php (modified) (2 diffs)
- trunk/project/modules/devel/cms3/heading/resources/heading.properties (modified) (1 diff)
- trunk/project/modules/devel/cms3/heading/resources/heading_fr.properties (modified) (1 diff)
- trunk/project/modules/devel/cms3/heading/templates/breadcrumb.tpl (modified) (1 diff)
- trunk/project/modules/devel/cms3/heading/templates/headingelements.admin.php (modified) (2 diffs)
- trunk/project/modules/devel/cms3/heading/zones/breadcrumb.zone.php (deleted)
- trunk/project/modules/devel/cms3/heading/zones/breadcrumbpopup.zone.php (deleted)
- trunk/project/modules/devel/cms3/heading/zones/headingbreadcrumb.zone.php (modified) (2 diffs)
- trunk/project/modules/devel/cms3/heading/zones/headingbreadcrumbpopup.zone.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/project/modules/devel/cms3/heading/actiongroups/admin.actiongroup.php
r2977 r2981 9 9 $ppo->TITLE_PAGE = 'Administration des contenus du site'; 10 10 $ppo->arHeadingElementTypes = _class ('heading|headingelementtype')->getList (); 11 $ppo->arHeadingElementInformations = _class ('heading|headingelementinformationservices')->find (array ('parent_heading_public_id_hei'=>_request ('heading', 0))); 11 $ppo->arHeadingElementInformations = _class ('heading|headingelementinformationservices')->find (array ('parent_heading_public_id_hei'=>$heading = _request ('heading', 0))); 12 $ppo->heading = $heading; 12 13 return _arPpo ($ppo, 'headingelements.admin.php'); 13 14 } trunk/project/modules/devel/cms3/heading/classes/headingservices.class.php
r2975 r2981 51 51 */ 52 52 public function getPathFromPublicId ($pPublicId){ 53 if (!is_integer($pPublicId)) {54 throw new CopixException ('ID must be an integer');55 }56 53 $path = array (); 57 54 $public_id = $pPublicId; … … 60 57 ->setLimit (0, 1); 61 58 $results = _dao('headingelementinformation')->findBy ($parameters); 62 if ( $results[0]->parent_heading_public_id_hei !== 0) {59 if (isset ($results[0]) && $results[0]->parent_heading_public_id_hei !== 0) { 63 60 $record = _dao('headingelementinformation')->get ($results[0]->parent_heading_public_id_hei); 64 61 if (!$record or $record->parent_heading_public_id_hei === 0) { trunk/project/modules/devel/cms3/heading/resources/heading.properties
r2979 r2981 59 59 heading.editor.message.updated = Updated %s by %s 60 60 heading.editor.message.selectHeading = Please select an heading. 61 62 heading.status.draft = Draft 63 heading.status.proposed = Proposed 64 heading.status.planned = Planned 65 heading.status.published = Published 66 heading.status.archive = Archive 67 heading.status.deleted = Deleted trunk/project/modules/devel/cms3/heading/resources/heading_fr.properties
r2979 r2981 52 52 heading.editor.message.updated = Modifiée le %s par %s 53 53 heading.editor.message.selectHeading = Sélectionnez une rubrique. 54 55 56 heading.status.draft = Brouillon 57 heading.status.proposed = Proposé 58 heading.status.planned = Planifié 59 heading.status.published = Publié 60 heading.status.archive = Archivé 61 heading.status.deleted = Supprimé trunk/project/modules/devel/cms3/heading/templates/breadcrumb.tpl
r2974 r2981 2 2 <a href="#"> Home </a> 3 3 {foreach from=$breadcrumb item=value key=cle} 4 -> {popupinformation text=$value displayimg=false zone='heading| breadcrumbpopup' param=$breadcrumb identifier=$cle} {/popupinformation}4 -> {popupinformation text=$value displayimg=false zone='heading|headingbreadcrumbpopup' param=$breadcrumb identifier=$cle} {/popupinformation} 5 5 {/foreach} 6 6 </div> trunk/project/modules/devel/cms3/heading/templates/headingelements.admin.php
r2977 r2981 1 <div> 2 chemin > chemin > chemin 3 </div> 1 <?php echo CopixZone::process ("heading|headingbreadcrumb", array ('heading' => $ppo->heading)); ?> 4 2 5 3 <div id="HeadingElementInformationDiv" style="float: right;width: 20%; border:1px solid #000;"> … … 106 104 107 105 <script> 106 var lastIdHelt, lastTypeHei; 108 107 function showHeadingElementInformationsIn (pIdElement, pTypeElement, pDivId){ 108 if (pIdElement == lastIdHelt && pTypeElement == lastTypeHei){ 109 if (pTypeElement == 'heading'){ 110 document.location.url = Copix.getActionUrl (); 111 } 112 } 109 113 var AjaxRequest = new Ajax(Copix.getActionURL('heading|admin|headingelementinformation', {'id_helt':pIdElement, 'type_hei':pTypeElement}),{ 110 114 execScripts: true, trunk/project/modules/devel/cms3/heading/zones/headingbreadcrumb.zone.php
r2980 r2981 1 1 <?php 2 class Zone BreadCrumb extends CopixZone {2 class ZoneHeadingBreadCrumb extends CopixZone { 3 3 function _createContent (& $toReturn) { 4 4 $tpl = new CopixTpl (); 5 $publicId = 7;5 $publicId = $this->getParam ('heading'); 6 6 $path = _class('heading|HeadingElementInformationServices')->getHeadingPathFromPublicId ($publicId); 7 7 $breadcrumb = array (); … … 9 9 $breadcrumb[$value] = _class('heading|HeadingElementInformationServices')->getHeadingCaptionFromPublicId ($value); 10 10 } 11 $tpl->assign('breadcrumb', array_reverse($breadcrumb, preserve_keys));11 $tpl->assign('breadcrumb', array_reverse($breadcrumb, true)); 12 12 $toReturn = $tpl->fetch('breadcrumb.tpl'); 13 13 return true; trunk/project/modules/devel/cms3/heading/zones/headingbreadcrumbpopup.zone.php
r2980 r2981 1 1 <?php 2 class Zone BreadCrumbPopup extends CopixZone {2 class ZoneHeadingBreadCrumbPopup extends CopixZone { 3 3 function _createContent (& $toReturn) { 4 4 $tpl = new CopixTpl ();
