| 1 |
<?php |
<?php |
| 2 |
/** |
/** |
| 3 |
* @version $Id: content.php,v 1.7 2005/11/24 04:28:51 csouza Exp $ |
* @package Mambo Open Source |
|
* @package Mambo |
|
| 4 |
* @subpackage Content |
* @subpackage Content |
| 5 |
* @copyright (C) 2000 - 2005 Miro International Pty Ltd |
* @copyright (C) 2005 - 2006 Mambo Foundation Inc. |
| 6 |
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL |
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL |
| 7 |
|
* |
| 8 |
|
* Mambo was originally developed by Miro (www.miro.com.au) in 2000. Miro assigned the copyright in Mambo to The Mambo Foundation in 2005 to ensure |
| 9 |
|
* that Mambo remained free Open Source software owned and managed by the community. |
| 10 |
* Mambo is Free Software |
* Mambo is Free Software |
| 11 |
*/ |
*/ |
| 12 |
|
|
| 323 |
$sectionid = $category->section; |
$sectionid = $category->section; |
| 324 |
} |
} |
| 325 |
|
|
| 326 |
$pathway = mosPathway::getInstance(); |
$pathway =& mosPathway::getInstance(); |
| 327 |
$pathway->addItem($category->title, categoryURL($sectionid, $id)); |
$pathway->addItem($category->title, categoryURL($sectionid, $id)); |
| 328 |
|
|
| 329 |
if ( $access->canEdit ) { |
if ( $access->canEdit ) { |
| 367 |
|
|
| 368 |
// get the total number of published items in the category |
// get the total number of published items in the category |
| 369 |
// filter functionality |
// filter functionality |
|
$filter = trim( mosGetParam( $_POST, 'filter', '' ) ); |
|
|
$filter = strtolower( $filter ); |
|
| 370 |
$and = ''; |
$and = ''; |
| 371 |
if ( $filter ) { |
if ($filter = mosGetParam($_POST, 'filter', '')) { |
| 372 |
|
$filter = strtolower( $filter ); |
| 373 |
|
$filter = $database->getEscaped($filter); |
| 374 |
if ( $params->get( 'filter' ) ) { |
if ( $params->get( 'filter' ) ) { |
| 375 |
switch ( $params->get( 'filter_type' ) ) { |
switch ( $params->get( 'filter_type' ) ) { |
| 376 |
case 'title': |
case 'title': |
| 999 |
$row = new mosExtendedContent(); |
$row = new mosExtendedContent(); |
| 1000 |
|
|
| 1001 |
if ( $database->loadObject( $row ) ) { |
if ( $database->loadObject( $row ) ) { |
| 1002 |
$pathway = mosPathway::getInstance(); |
$pathway =& mosPathway::getInstance(); |
| 1003 |
$pathway->addItem($row->category, categoryURL($row->sectionid, $row->catid)); |
$pathway->addItem($row->category, categoryURL($row->sectionid, $row->catid)); |
| 1004 |
$pathway->addItem($row->title, ''); |
$pathway->addItem($row->title, ''); |
| 1005 |
$params =& new mosParameters( $row->attribs ); |
$params =& new mosParameters( $row->attribs ); |
| 1239 |
$row->frontpage = 0; |
$row->frontpage = 0; |
| 1240 |
} |
} |
| 1241 |
|
|
|
|
|
| 1242 |
// calls function to read image from directory |
// calls function to read image from directory |
| 1243 |
$pathA = $mosConfig_absolute_path .'/images/stories'; |
$pathA = $mosConfig_absolute_path .'/images/stories'; |
| 1244 |
$pathL = $mosConfig_live_site .'/images/stories'; |
$pathL = $mosConfig_live_site .'/images/stories'; |
| 1266 |
. "\n ORDER BY ordering" |
. "\n ORDER BY ordering" |
| 1267 |
; |
; |
| 1268 |
$lists['ordering'] = mosAdminMenus::SpecificOrdering( $row, $uid, $query, 1 ); |
$lists['ordering'] = mosAdminMenus::SpecificOrdering( $row, $uid, $query, 1 ); |
|
|
|
| 1269 |
// build list of categories |
// build list of categories |
| 1270 |
$lists['catid'] = mosAdminMenus::ComponentCategory( 'catid', $sectionid, intval( $row->catid ) ); |
$lists['catid'] = mosAdminMenus::ComponentCategory( 'catid', $sectionid, intval( $row->catid ) ); |
| 1271 |
// build the select list for the image positions |
// build the select list for the image positions |
| 1397 |
|
|
| 1398 |
$Itemid = mosGetParam( $_POST, 'Returnid', '0' ); |
$Itemid = mosGetParam( $_POST, 'Returnid', '0' ); |
| 1399 |
|
|
|
if ( $Itemid ) { |
|
|
mosRedirect( 'index.php?option=com_content&task=view&id='. $row->id .'&Itemid='. $Itemid ); |
|
|
} else { |
|
| 1400 |
mosRedirect( 'index.php' ); |
mosRedirect( 'index.php' ); |
| 1401 |
} |
} |
|
} |
|
| 1402 |
|
|
| 1403 |
/** |
/** |
| 1404 |
* Shows the email form for a given content item. |
* Shows the email form for a given content item. |