Ejemplo n.º 1
0
 function display($tpl = null)
 {
     global $mainframe, $option;
     // Initialize variables
     $user =& JFactory::getUser();
     $document =& JFactory::getDocument();
     // Request variables
     $id = JRequest::getVar('id', null, '', 'int');
     $limit = JRequest::getVar('limit', 5, '', 'int');
     $limitstart = JRequest::getVar('limitstart', 0, '', 'int');
     // Get the page/component configuration
     $params =& $mainframe->getParams();
     // parameters
     $intro = $params->def('num_intro_articles', 4);
     $leading = $params->def('num_leading_articles', 1);
     $links = $params->def('num_links', 4);
     $descrip = $params->def('show_description', 1);
     $descrip_image = $params->def('show_description_image', 1);
     $params->set('show_intro', 1);
     $limit = $intro + $leading + $links;
     JRequest::setVar('limit', (int) $limit);
     //set data model
     $items =& $this->get('data');
     $total =& $this->get('total');
     // Create a user access object for the user
     $access = new stdClass();
     $access->canEdit = $user->authorize('com_content', 'edit', 'content', 'all');
     $access->canEditOwn = $user->authorize('com_content', 'edit', 'content', 'own');
     $access->canPublish = $user->authorize('com_content', 'publish', 'content', 'all');
     //add alternate feed link
     if ($params->get('show_feed_link', 1) == 1) {
         $link = '&format=feed&limitstart=';
         $attribs = array('type' => 'application/rss+xml', 'title' => 'RSS 2.0');
         $document->addHeadLink(JRoute::_($link . '&type=rss'), 'alternate', 'rel', $attribs);
         $attribs = array('type' => 'application/atom+xml', 'title' => 'Atom 1.0');
         $document->addHeadLink(JRoute::_($link . '&type=atom'), 'alternate', 'rel', $attribs);
     }
     $menus =& JSite::getMenu();
     $menu = $menus->getActive();
     // because the application sets a default page title, we need to get it
     // right from the menu item itself
     if (is_object($menu)) {
         $menu_params = new JParameter($menu->params);
         if (!$menu_params->get('page_title')) {
             $params->set('page_title', htmlspecialchars_decode($mainframe->getCfg('sitename')));
         }
     } else {
         $params->set('page_title', htmlspecialchars_decode($mainframe->getCfg('sitename')));
     }
     $document->setTitle($params->get('page_title'));
     jimport('joomla.html.pagination');
     $this->pagination = new JPagination($total, $limitstart, $limit - $links);
     $this->assign('total', $total);
     $this->assignRef('user', $user);
     $this->assignRef('access', $access);
     $this->assignRef('params', $params);
     $this->assignRef('items', $items);
     parent::display($tpl);
 }
Ejemplo n.º 2
0
 function display($tpl = null)
 {
     global $mainframe, $option;
     // Initialize some variables
     $user =& JFactory::getUser();
     $document =& JFactory::getDocument();
     // Get the page/component configuration
     $params =& $mainframe->getParams();
     // Request variables
     $limit = JRequest::getVar('limit', $params->get('display_num'), '', 'int');
     $limitstart = JRequest::getVar('limitstart', 0, '', 'int');
     //parameters
     $intro = $params->def('num_intro_articles', 4);
     $leading = $params->def('num_leading_articles', 1);
     $links = $params->def('num_links', 4);
     $limit = $intro + $leading + $links;
     JRequest::setVar('limit', (int) $limit);
     // Get some data from the model
     $items =& $this->get('Data');
     $total =& $this->get('Total');
     $categories =& $this->get('Categories');
     $section =& $this->get('Section');
     // Create a user access object for the user
     $access = new stdClass();
     $access->canEdit = $user->authorize('com_content', 'edit', 'content', 'all');
     $access->canEditOwn = $user->authorize('com_content', 'edit', 'content', 'own');
     $access->canPublish = $user->authorize('com_content', 'publish', 'content', 'all');
     //add alternate feed link
     if ($params->get('show_feed_link', 1) == 1) {
         $link = '&format=feed&limitstart=';
         $attribs = array('type' => 'application/rss+xml', 'title' => 'RSS 2.0');
         $document->addHeadLink(JRoute::_($link . '&type=rss'), 'alternate', 'rel', $attribs);
         $attribs = array('type' => 'application/atom+xml', 'title' => 'Atom 1.0');
         $document->addHeadLink(JRoute::_($link . '&type=atom'), 'alternate', 'rel', $attribs);
     }
     for ($i = 0; $i < count($categories); $i++) {
         $category =& $categories[$i];
         $category->link = JRoute::_('index.php?view=category&id=' . $category->slug);
     }
     if ($total == 0) {
         $params->set('show_categories', false);
     }
     jimport('joomla.html.pagination');
     $pagination = new JPagination($total, $limitstart, $limit - $links);
     $this->assign('total', $total);
     $this->assignRef('items', $items);
     $this->assignRef('section', $section);
     $this->assignRef('categories', $categories);
     $this->assignRef('params', $params);
     $this->assignRef('user', $user);
     $this->assignRef('access', $access);
     $this->assignRef('pagination', $pagination);
     parent::display($tpl);
 }
Ejemplo n.º 3
0
 function display($tpl = null)
 {
     global $mainframe, $option;
     if (empty($layout)) {
         // degrade to default
         $layout = 'list';
     }
     // Initialize some variables
     $user =& JFactory::getUser();
     $pathway =& $mainframe->getPathway();
     // Get the page/component configuration
     $params =& $mainframe->getParams('com_content');
     // Request variables
     $task = JRequest::getCmd('task');
     $limit = JRequest::getVar('limit', $params->get('display_num', 20), '', 'int');
     $limitstart = JRequest::getVar('limitstart', 0, '', 'int');
     $month = JRequest::getInt('month');
     $year = JRequest::getInt('year');
     $filter = JRequest::getString('filter');
     // Get some data from the model
     $state =& $this->get('state');
     $items =& $this->get('data');
     $total =& $this->get('total');
     // Add item to pathway
     $pathway->addItem(JText::_('Archive'), '');
     $params->def('filter', 1);
     $params->def('filter_type', 'title');
     jimport('joomla.html.pagination');
     $pagination = new JPagination($total, $limitstart, $limit);
     $form = new stdClass();
     // Month Field
     $months = array(JHTML::_('select.option', null, JText::_('Month')), JHTML::_('select.option', '01', JText::_('JANUARY_SHORT')), JHTML::_('select.option', '02', JText::_('FEBRUARY_SHORT')), JHTML::_('select.option', '03', JText::_('MARCH_SHORT')), JHTML::_('select.option', '04', JText::_('APRIL_SHORT')), JHTML::_('select.option', '05', JText::_('MAY_SHORT')), JHTML::_('select.option', '06', JText::_('JUNE_SHORT')), JHTML::_('select.option', '07', JText::_('JULY_SHORT')), JHTML::_('select.option', '08', JText::_('AUGUST_SHORT')), JHTML::_('select.option', '09', JText::_('SEPTEMBER_SHORT')), JHTML::_('select.option', '10', JText::_('OCTOBER_SHORT')), JHTML::_('select.option', '11', JText::_('NOVEMBER_SHORT')), JHTML::_('select.option', '12', JText::_('DECEMBER_SHORT')));
     $form->monthField = JHTML::_('select.genericlist', $months, 'month', 'size="1" class="inputbox"', 'value', 'text', $month);
     // Year Field
     $years = array();
     $years[] = JHTML::_('select.option', null, JText::_('Year'));
     for ($i = 2000; $i <= 2010; $i++) {
         $years[] = JHTML::_('select.option', $i, $i);
     }
     $form->yearField = JHTML::_('select.genericlist', $years, 'year', 'size="1" class="inputbox"', 'value', 'text', $year);
     $form->limitField = $pagination->getLimitBox();
     $this->assign('filter', $filter);
     $this->assign('year', $year);
     $this->assign('month', $month);
     $this->assignRef('form', $form);
     $this->assignRef('items', $items);
     $this->assignRef('params', $params);
     $this->assignRef('user', $user);
     $this->assignRef('pagination', $pagination);
     parent::display($tpl);
 }
Ejemplo n.º 4
0
 function display($tpl = null)
 {
     global $mainframe, $option;
     // Initialize some variables
     $user =& JFactory::getUser();
     $uri =& JFactory::getURI();
     $document =& JFactory::getDocument();
     $pathway =& $mainframe->getPathway();
     // Get the menu item object
     $menus =& JSite::getMenu();
     $menu = $menus->getActive();
     // Get the page/component configuration
     $params = clone $mainframe->getParams('com_content');
     // Request variables
     $layout = JRequest::getCmd('layout');
     $task = JRequest::getCmd('task');
     // Parameters
     $params->def('num_leading_articles', 1);
     $params->def('num_intro_articles', 4);
     $params->def('num_columns', 2);
     $params->def('num_links', 4);
     $params->def('show_headings', 1);
     $params->def('show_pagination', 2);
     $params->def('show_pagination_results', 1);
     $params->def('show_pagination_limit', 1);
     $params->def('filter', 1);
     $intro = $params->get('num_intro_articles');
     $leading = $params->get('num_leading_articles');
     $links = $params->get('num_links');
     $limitstart = JRequest::getVar('limitstart', 0, '', 'int');
     if ($layout == 'blog') {
         $default_limit = $intro + $leading + $links;
     } else {
         $params->def('display_num', $mainframe->getCfg('list_limit'));
         $default_limit = $params->get('display_num');
     }
     $limit = $mainframe->getUserStateFromRequest('com_content.' . $this->getLayout() . '.limit', 'limit', $default_limit, 'int');
     JRequest::setVar('limit', (int) $limit);
     $contentConfig =& JComponentHelper::getParams('com_content');
     $params->def('show_page_title', $contentConfig->get('show_title'));
     // Get some data from the model
     $items =& $this->get('Data');
     $total =& $this->get('Total');
     $category =& $this->get('Category');
     //add alternate feed link
     if ($params->get('show_feed_link', 1) == 1) {
         $link = '&format=feed&limitstart=';
         $attribs = array('type' => 'application/rss+xml', 'title' => 'RSS 2.0');
         $document->addHeadLink(JRoute::_($link . '&type=rss'), 'alternate', 'rel', $attribs);
         $attribs = array('type' => 'application/atom+xml', 'title' => 'Atom 1.0');
         $document->addHeadLink(JRoute::_($link . '&type=atom'), 'alternate', 'rel', $attribs);
     }
     // Create a user access object for the user
     $access = new stdClass();
     $access->canEdit = $user->authorize('com_content', 'edit', 'content', 'all');
     $access->canEditOwn = $user->authorize('com_content', 'edit', 'content', 'own');
     $access->canPublish = $user->authorize('com_content', 'publish', 'content', 'all');
     // Set page title per category
     // because the application sets a default page title, we need to get it
     // right from the menu item itself
     if (is_object($menu)) {
         $menu_params = new JParameter($menu->params);
         if (!$menu_params->get('page_title')) {
             $params->set('page_title', $category->title);
         }
     } else {
         $params->set('page_title', $category->title);
     }
     $document->setTitle($params->get('page_title'));
     //set breadcrumbs
     if (is_object($menu) && $menu->query['view'] != 'category') {
         $pathway->addItem($category->title, '');
     }
     // Prepare category description
     $category->description = JHTML::_('content.prepare', $category->description);
     $params->def('date_format', JText::_('DATE_FORMAT_LC1'));
     // Keep a copy for safe keeping this is soooooo dirty -- must deal with in a later version
     // @todo -- oh my god we need to find this reference issue in 1.6 :)
     $this->_params = $params->toArray();
     jimport('joomla.html.pagination');
     //In case we are in a blog view set the limit
     if ($layout == 'blog') {
         $pagination = new JPagination($total, $limitstart, $limit - $links);
     } else {
         $pagination = new JPagination($total, $limitstart, $limit);
     }
     $this->assign('total', $total);
     $this->assign('action', $uri->toString());
     $this->assignRef('items', $items);
     $this->assignRef('params', $params);
     $this->assignRef('category', $category);
     $this->assignRef('user', $user);
     $this->assignRef('access', $access);
     $this->assignRef('pagination', $pagination);
     parent::display($tpl);
 }
 function insertPagebreak()
 {
     $document =& JFactory::getDocument();
     $document->setTitle(JText::_('PGB ARTICLE PAGEBRK'));
     ContentView::insertPagebreak();
 }
Ejemplo n.º 6
0
 function display($tpl = null)
 {
     global $mainframe, $option;
     // Initialize some variables
     $user =& JFactory::getUser();
     $document =& JFactory::getDocument();
     // Get the page/component configuration
     $params =& $mainframe->getParams();
     // Request variables
     $limit = JRequest::getVar('limit', $params->get('display_num'), '', 'int');
     $limitstart = JRequest::getVar('limitstart', 0, '', 'int');
     //parameters
     $intro = $params->def('num_intro_articles', 4);
     $leading = $params->def('num_leading_articles', 1);
     $links = $params->def('num_links', 4);
     $limit = $intro + $leading + $links;
     JRequest::setVar('limit', (int) $limit);
     // Get some data from the model
     $items =& $this->get('Data');
     $total =& $this->get('Total');
     $categories =& $this->get('Categories');
     $section =& $this->get('Section');
     // Create a user access object for the user
     $access = new stdClass();
     $access->canEdit = $user->authorize('com_content', 'edit', 'content', 'all');
     $access->canEditOwn = $user->authorize('com_content', 'edit', 'content', 'own');
     $access->canPublish = $user->authorize('com_content', 'publish', 'content', 'all');
     //add alternate feed link
     if ($params->get('show_feed_link', 1) == 1) {
         $link = '&format=feed&limitstart=';
         $attribs = array('type' => 'application/rss+xml', 'title' => 'RSS 2.0');
         $document->addHeadLink(JRoute::_($link . '&type=rss'), 'alternate', 'rel', $attribs);
         $attribs = array('type' => 'application/atom+xml', 'title' => 'Atom 1.0');
         $document->addHeadLink(JRoute::_($link . '&type=atom'), 'alternate', 'rel', $attribs);
     }
     $menus =& JSite::getMenu();
     $menu = $menus->getActive();
     // because the application sets a default page title, we need to get it
     // right from the menu item itself
     if (is_object($menu)) {
         $menu_params = new JParameter($menu->params);
         if (!$menu_params->get('page_title')) {
             $params->set('page_title', $section->title);
         }
     } else {
         $params->set('page_title', $section->title);
     }
     $document->setTitle($params->get('page_title'));
     // Prepare section description
     $section->description = JHTML::_('content.prepare', $section->description);
     for ($i = 0; $i < count($categories); $i++) {
         $category =& $categories[$i];
         $category->link = JRoute::_(ContentHelperRoute::getCategoryRoute($category->slug, $category->section) . '&layout=default');
         // Prepare category description
         $category->description = JHTML::_('content.prepare', $category->description);
     }
     if ($total == 0) {
         $params->set('show_categories', false);
     }
     jimport('joomla.html.pagination');
     $pagination = new JPagination($total, $limitstart, $limit - $links);
     $this->assign('total', $total);
     $this->assignRef('items', $items);
     $this->assignRef('section', $section);
     $this->assignRef('categories', $categories);
     $this->assignRef('params', $params);
     $this->assignRef('user', $user);
     $this->assignRef('access', $access);
     $this->assignRef('pagination', $pagination);
     parent::display($tpl);
 }
Ejemplo n.º 7
0
    /**
     * Writes the edit form for new and existing article
     *
     * A new record is defined when <var>$row</var> is passed with the <var>id</var>
     * property set to 0.
     * @param JTableContent The category object
     * @param string The html for the groups select list
     */
    function editContent(&$row, $section, &$lists, &$sectioncategories, $option, &$form)
    {
        JRequest::setVar('hidemainmenu', 1);
        jimport('joomla.html.pane');
        JFilterOutput::objectHTMLSafe($row);
        $db =& JFactory::getDBO();
        $editor =& JFactory::getEditor();
        $pane =& JPane::getInstance('sliders');
        JHTML::_('behavior.tooltip');
        ?>
		<script language="javascript" type="text/javascript">
		<!--
		var sectioncategories = new Array;
		<?php 
        $i = 0;
        foreach ($sectioncategories as $k => $items) {
            foreach ($items as $v) {
                echo "sectioncategories[" . $i++ . "] = new Array( '{$k}','" . addslashes($v->id) . "','" . addslashes($v->title) . "' );\n\t\t";
            }
        }
        ?>

		function submitbutton(pressbutton)
		{
			var form = document.adminForm;

			if ( pressbutton == 'menulink' ) {
				if ( form.menuselect.value == "" ) {
					alert( "<?php 
        echo JText::_('Please select a Menu', true);
        ?>
" );
					return;
				} else if ( form.link_name.value == "" ) {
					alert( "<?php 
        echo JText::_('Please enter a Name for this menu item', true);
        ?>
" );
					return;
				}
			}

			if (pressbutton == 'cancel') {
				submitform( pressbutton );
				return;
			}

			// do field validation
			var text = <?php 
        echo $editor->getContent('text');
        ?>
			if (form.title.value == ""){
				alert( "<?php 
        echo JText::_('Article must have a title', true);
        ?>
" );
			} else if (form.sectionid.value == "-1"){
				alert( "<?php 
        echo JText::_('You must select a Section', true);
        ?>
" );
			} else if (form.catid.value == "-1"){
				alert( "<?php 
        echo JText::_('You must select a Category', true);
        ?>
" );
 			} else if (form.catid.value == ""){
 				alert( "<?php 
        echo JText::_('You must select a Category', true);
        ?>
" );
			} else if (text == ""){
				alert( "<?php 
        echo JText::_('Article must have some text', true);
        ?>
" );
			} else {
				<?php 
        echo $editor->save('text');
        ?>
				submitform( pressbutton );
			}
		}
		//-->
		</script>

		<form action="index.php" method="post" name="adminForm">

		<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td valign="top">
				<?php 
        ContentView::_displayArticleDetails($row, $lists);
        ?>
				<table class="adminform">
				<tr>
					<td>
						<?php 
        // parameters : areaname, content, width, height, cols, rows
        echo $editor->display('text', $row->text, '100%', '550', '75', '20');
        ?>
					</td>
				</tr>
				</table>
			</td>
			<td valign="top" width="320" style="padding: 7px 0 0 5px">
			<?php 
        ContentView::_displayArticleStats($row, $lists);
        $title = JText::_('Parameters - Article');
        echo $pane->startPane("content-pane");
        echo $pane->startPanel($title, "detail-page");
        echo $form->render('details');
        $title = JText::_('Parameters - Advanced');
        echo $pane->endPanel();
        echo $pane->startPanel($title, "params-page");
        echo $form->render('params', 'advanced');
        $title = JText::_('Metadata Information');
        echo $pane->endPanel();
        echo $pane->startPanel($title, "metadata-page");
        echo $form->render('meta', 'metadata');
        echo $pane->endPanel();
        echo $pane->endPane();
        ?>
			</td>
		</tr>
		</table>

		<input type="hidden" name="id" value="<?php 
        echo $row->id;
        ?>
" />
		<input type="hidden" name="cid[]" value="<?php 
        echo $row->id;
        ?>
" />
		<input type="hidden" name="version" value="<?php 
        echo $row->version;
        ?>
" />
		<input type="hidden" name="mask" value="0" />
		<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
" />
		<input type="hidden" name="task" value="" />
		<?php 
        echo JHTML::_('form.token');
        ?>
		</form>
		<?php 
        echo JHTML::_('behavior.keepalive');
    }
Ejemplo n.º 8
0
 function _displayPagebreak($tpl)
 {
     $document =& JFactory::getDocument();
     $document->setTitle(JText::_('PGB ARTICLE PAGEBRK'));
     parent::display($tpl);
 }
        $t_products_item['attributes'] = $t_products_attributes;
    }
    $data_products .= '' . "\n";
    if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 0 && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 1) {
        if (sizeof($order->info['tax_groups']) > 1) {
            $data_products .= '            <td valign="top" align="right">' . xtc_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n";
        }
    }
    $data_products .= '</tr><tr><td class="table_products_space"></td></tr>' . "\n";
    $t_products_array[] = $t_products_item;
}
$t_products_array[sizeof($t_products_array) - 1]['flag_last_item'] = true;
$data_products .= '</table>';
$smarty->assign('PRODUCTS_BLOCK', $data_products);
# products table part
$coo_content_view = new ContentView();
$coo_content_view->set_content_template('module/checkout_confirmation_products.html');
$coo_content_view->set_content_data('products_data', $t_products_array);
$t_products_table_part = $coo_content_view->get_html();
$smarty->assign('PRODUCTS_TABLE_PART', $t_products_table_part);
// EOF GM_MOD
if ($order->info['payment_method'] != 'no_payment' && $order->info['payment_method'] != '') {
    include DIR_WS_LANGUAGES . '/' . $_SESSION['language'] . '/modules/payment/' . $order->info['payment_method'] . '.php';
    $smarty->assign('PAYMENT_METHOD', constant(MODULE_PAYMENT_ . strtoupper($order->info['payment_method']) . _TEXT_TITLE));
    if (isset($_GET['payment_error']) && is_object(${$_GET['payment_error']}) && ($error = ${$_GET['payment_error']}->get_error())) {
        $smarty->assign('error', $error['title'] . '<br />' . htmlspecialchars($error['error']));
    }
}
$smarty->assign('PAYMENT_EDIT', xtc_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
// BOF GM_MOD saferpay
if (strpos($_SESSION['payment'], 'saferpaygw') === false) {
    /**
     * Writes the edit form for new and existing article
     *
     * A new record is defined when <var>$row</var> is passed with the <var>id</var>
     * property set to 0.
     * @param JTableContent The category object
     * @param string The html for the groups select list
     */
    function editContent(&$row, $section, &$lists, &$sectioncategories, $option, &$form)
    {
        JRequest::setVar('hidemainmenu', 1);
        jimport('joomla.html.pane');
        JFilterOutput::objectHTMLSafe($row);
        $db =& JFactory::getDBO();
        $editor =& JFactory::getEditor();
        // TODO: allowAllClose should default true in J!1.6, so remove the array when it does.
        $pane =& JPane::getInstance('sliders', array('allowAllClose' => true));
        JHTML::_('behavior.tooltip');
        ?>
		<script language="javascript" type="text/javascript">
		<!--
		var sectioncategories = new Array;
		<?php 
        $i = 0;
        foreach ($sectioncategories as $k => $items) {
            foreach ($items as $v) {
                echo "sectioncategories[" . $i++ . "] = new Array( '{$k}','" . addslashes($v->id) . "','" . addslashes($v->title) . "' );\n\t\t";
            }
        }
        ?>

		function submitbutton(pressbutton)
		{
			var form = document.adminForm;

			if ( pressbutton == 'menulink' ) {
				if ( form.menuselect.value == "" ) {
					alert( "<?php 
        echo JText::_('Please select a Menu', true);
        ?>
" );
					return;
				} else if ( form.link_name.value == "" ) {
					alert( "<?php 
        echo JText::_('Please enter a Name for this menu item', true);
        ?>
" );
					return;
				}
			}

			if (pressbutton == 'cancel') {
				submitform( pressbutton );
				return;
			}
			
			
			var sectn = document.getElementById('sectionid');			
			var count=0;
			for(h=0;h<sectn.options.length;h++) {
				if (sectn.options[h].selected) {
					count++;
				}
			}
			for(b=0;b<sectn.options.length;b++) {
				if (sectn.options[b].selected) {
					if ((sectn.options[b].value == 1) && (count > 1)) {
						alert("<?php 
        echo JText::_('When you select uncategorized, others should not be selected', true);
        ?>
" );
						return false;
					}
				}
			}
			

			// do field validation
			var text = <?php 
        echo $editor->getContent('text');
        ?>
			if (form.title.value == ""){
				alert( "<?php 
        echo JText::_('Article must have a title', true);
        ?>
" );
			} else if ((form.sectionid.value == "-1") || (form.sectionid.value == "")){
				alert( "<?php 
        echo JText::_('You must select a Section', true);
        ?>
" );
			} /*else if {
				alert( "<?php 
        echo JText::_('You must select a Section', true);
        ?>
" );
			} /*else if (form.catid.value == "-1"){
				alert( "<?php 
        echo JText::_('You must select a Category', true);
        ?>
" );
 			} else if (form.catid.value == ""){
 				alert( "<?php 
        echo JText::_('You must select a Category', true);
        ?>
" );
			} */else if (text == ""){
				alert( "<?php 
        echo JText::_('Article must have some text', true);
        ?>
" );
			} else if (!(text.match(/<hr\s+id=(\"|')system-readmore(\"|')\s*\/*>/))) {
				alert( "<?php 
        echo JText::_('Article must have Read More Entry', true);
        ?>
" );
			}
			else {
				<?php 
        echo $editor->save('text');
        ?>
				submitform( pressbutton );
			}
		}
		//-->
		</script>

		<form action="index.php" method="post" name="adminForm">

		<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td valign="top">
				<?php 
        ContentView::_displayArticleDetails($row, $lists);
        ?>
				<table class="adminform">
				<tr>
					<td>
						<?php 
        // parameters : areaname, content, width, height, cols, rows
        echo $editor->display('text', $row->text, '100%', '550', '75', '20');
        ?>
					</td>
				</tr>
				</table>
			</td>
			<td valign="top" width="320" style="padding: 7px 0 0 5px">
			<?php 
        ContentView::_displayArticleStats($row, $lists);
        $title = JText::_('Parameters - Article');
        echo $pane->startPane("content-pane");
        echo $pane->startPanel($title, "detail-page");
        echo $form->render('details');
        $title = JText::_('Parameters - Advanced');
        echo $pane->endPanel();
        echo $pane->startPanel($title, "params-page");
        echo $form->render('params', 'advanced');
        $title = JText::_('Metadata Information');
        echo $pane->endPanel();
        echo $pane->startPanel($title, "metadata-page");
        echo $form->render('meta', 'metadata');
        echo $pane->endPanel();
        echo $pane->endPane();
        ?>
			</td>
		</tr>
		</table>

		<input type="hidden" name="id" value="<?php 
        echo $row->id;
        ?>
" />
		<input type="hidden" name="cid[]" value="<?php 
        echo $row->id;
        ?>
" />
		<input type="hidden" name="version" value="<?php 
        echo $row->version;
        ?>
" />
		<input type="hidden" name="mask" value="0" />
		<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
" />
		<input type="hidden" name="task" value="" />
		<?php 
        echo JHTML::_('form.token');
        ?>
		</form>
		<?php 
        echo JHTML::_('behavior.keepalive');
    }
Ejemplo n.º 11
0
 public function library()
 {
     include_once "views/content.php";
     ContentView::render($this->vars, "showLibrary");
 }