[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: headlines viewheadline.php,1.9,1.10
From: |
Miles Lott <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: headlines viewheadline.php,1.9,1.10 |
Date: |
Sun, 31 Mar 2002 11:50:19 -0500 |
Update of /cvsroot/phpgroupware/headlines
In directory subversions:/tmp/cvs-serv20782
Modified Files:
viewheadline.php
Log Message:
GLOBALS
Index: viewheadline.php
===================================================================
RCS file: /cvsroot/phpgroupware/headlines/viewheadline.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** viewheadline.php 22 Sep 2001 02:05:38 -0000 1.9
--- viewheadline.php 31 Mar 2002 16:50:15 -0000 1.10
***************
*** 13,17 ****
/* $Id$ */
! $phpgw_info['flags'] = array(
'currentapp' => 'admin',
'enable_nextmatchs_class' => True,
--- 13,18 ----
/* $Id$ */
! $phpgw_info = array();
! $GLOBALS['phpgw_info']['flags'] = array(
'currentapp' => 'admin',
'enable_nextmatchs_class' => True,
***************
*** 21,85 ****
include('../header.inc.php');
! if (! $con)
{
! $phpgw->redirect($phpgw->link('/headlines/admin.php'));
}
!
! $phpgw->common->phpgw_header();
echo parse_navbar();
! $phpgw->db->query("select * from phpgw_headlines_sites where
con='$con'",__LINE__,__FILE__);
! $phpgw->db->next_record();
// This is done for a reason (jengo)
! $phpgw->template->set_root($phpgw->common->get_tpl_dir('headlines'));
! $phpgw->template->set_file(array(
'admin_form' => 'admin_form.tpl'
));
! $phpgw->template->set_block('admin_form','form');
! $phpgw->template->set_block('admin_form','listing_row');
! $phpgw->template->set_block('admin_form','listing_rows');
!
! $phpgw->template->set_var('title',lang('Headlines Administration'));
! $phpgw->template->set_var('lang_header',lang('View headline'));
! $phpgw->template->set_var('th_bg',$phpgw_info['theme']['th_bg']);
! $phpgw->template->set_var('row_on',$phpgw_info['theme']['row_on']);
! $phpgw->template->set_var('row_off',$phpgw_info['theme']['row_off']);
! $phpgw->template->set_var('lang_display',lang('Display'));
! $phpgw->template->set_var('lang_base_url',lang('Base URL'));
! $phpgw->template->set_var('lang_news_file',lang('News File'));
! $phpgw->template->set_var('lang_minutes',lang('Minutes between
refresh'));
! $phpgw->template->set_var('lang_listings',lang('Listings Displayed'));
! $phpgw->template->set_var('lang_type',lang('News Type'));
!
! $phpgw->template->set_var('input_display',$phpgw->db->f('display'));
! $phpgw->template->set_var('input_base_url',$phpgw->db->f('base_url'));
! $phpgw->template->set_var('input_news_file',$phpgw->db->f('newsfile'));
!
$phpgw->template->set_var('input_minutes',$phpgw->common->show_date($phpgw->db->f('lastread')));
! $phpgw->template->set_var('input_listings',$phpgw->db->f('cachetime'));
! $phpgw->template->set_var('input_type',$phpgw->db->f('newstype'));
!
! $phpgw->db->query("select title,link from phpgw_headlines_cached where
site='$con'",__LINE__,__FILE__);
! $phpgw->template->set_var('th_bg2',$phpgw_info['theme']['th_bg']);
! $phpgw->template->set_var('lang_current_cache',lang('Current headlines
in cache'));
! if ($phpgw->db->num_rows() == 0)
{
!
$phpgw->nextmatchs->template_alternate_row_color($phpgw->template);
! $phpgw->template->set_var('value',lang('None'));
! $phpgw->template->parse('listing_rows','listing_row',True);
}
! while ($phpgw->db->next_record())
{
!
$phpgw->nextmatchs->template_alternate_row_color($phpgw->template);
! $phpgw->template->set_var('value','<a href="' .
$phpgw->db->f('link') . '" target="_new">' . $phpgw->db->f('title') . '</a>');
! $phpgw->template->parse('listing_rows','listing_row',True);
}
! $phpgw->template->pfp('out','form');
! $phpgw->common->phpgw_footer();
?>
--- 22,86 ----
include('../header.inc.php');
! $con = get_var('con',array('POST','GET'));
! if(!$con)
{
!
$GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/headlines/admin.php'));
}
!
! $GLOBALS['phpgw']->common->phpgw_header();
echo parse_navbar();
! $GLOBALS['phpgw']->db->query("SELECT * FROM phpgw_headlines_sites WHERE
con='$con'",__LINE__,__FILE__);
! $GLOBALS['phpgw']->db->next_record();
// This is done for a reason (jengo)
!
$GLOBALS['phpgw']->template->set_root($GLOBALS['phpgw']->common->get_tpl_dir('headlines'));
! $GLOBALS['phpgw']->template->set_file(array(
'admin_form' => 'admin_form.tpl'
));
! $GLOBALS['phpgw']->template->set_block('admin_form','form');
! $GLOBALS['phpgw']->template->set_block('admin_form','listing_row');
! $GLOBALS['phpgw']->template->set_block('admin_form','listing_rows');
!
! $GLOBALS['phpgw']->template->set_var('title',lang('Headlines
Administration'));
! $GLOBALS['phpgw']->template->set_var('lang_header',lang('View
headline'));
!
$GLOBALS['phpgw']->template->set_var('th_bg',$GLOBALS['phpgw_info']['theme']['th_bg']);
!
$GLOBALS['phpgw']->template->set_var('row_on',$GLOBALS['phpgw_info']['theme']['row_on']);
!
$GLOBALS['phpgw']->template->set_var('row_off',$GLOBALS['phpgw_info']['theme']['row_off']);
! $GLOBALS['phpgw']->template->set_var('lang_display',lang('Display'));
! $GLOBALS['phpgw']->template->set_var('lang_base_url',lang('Base URL'));
! $GLOBALS['phpgw']->template->set_var('lang_news_file',lang('News
File'));
! $GLOBALS['phpgw']->template->set_var('lang_minutes',lang('Minutes
between refresh'));
! $GLOBALS['phpgw']->template->set_var('lang_listings',lang('Listings
Displayed'));
! $GLOBALS['phpgw']->template->set_var('lang_type',lang('News Type'));
!
!
$GLOBALS['phpgw']->template->set_var('input_display',$GLOBALS['phpgw']->db->f('display'));
!
$GLOBALS['phpgw']->template->set_var('input_base_url',$GLOBALS['phpgw']->db->f('base_url'));
!
$GLOBALS['phpgw']->template->set_var('input_news_file',$GLOBALS['phpgw']->db->f('newsfile'));
!
$GLOBALS['phpgw']->template->set_var('input_minutes',$GLOBALS['phpgw']->common->show_date($GLOBALS['phpgw']->db->f('lastread')));
!
$GLOBALS['phpgw']->template->set_var('input_listings',$GLOBALS['phpgw']->db->f('cachetime'));
!
$GLOBALS['phpgw']->template->set_var('input_type',$GLOBALS['phpgw']->db->f('newstype'));
! $GLOBALS['phpgw']->db->query("SELECT title,link FROM
phpgw_headlines_cached WHERE site='$con'",__LINE__,__FILE__);
!
$GLOBALS['phpgw']->template->set_var('th_bg2',$GLOBALS['phpgw_info']['theme']['th_bg']);
! $GLOBALS['phpgw']->template->set_var('lang_current_cache',lang('Current
headlines in cache'));
! if($GLOBALS['phpgw']->db->num_rows() == 0)
{
!
$GLOBALS['phpgw']->nextmatchs->template_alternate_row_color($GLOBALS['phpgw']->template);
! $GLOBALS['phpgw']->template->set_var('value',lang('None'));
!
$GLOBALS['phpgw']->template->parse('listing_rows','listing_row',True);
}
! while($GLOBALS['phpgw']->db->next_record())
{
!
$GLOBALS['phpgw']->nextmatchs->template_alternate_row_color($GLOBALS['phpgw']->template);
! $GLOBALS['phpgw']->template->set_var('value','<a href="' .
$GLOBALS['phpgw']->db->f('link') . '" target="_new">' .
$GLOBALS['phpgw']->db->f('title') . '</a>');
!
$GLOBALS['phpgw']->template->parse('listing_rows','listing_row',True);
}
! $GLOBALS['phpgw']->template->pfp('out','form');
! $GLOBALS['phpgw']->common->phpgw_footer();
?>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: headlines viewheadline.php,1.9,1.10,
Miles Lott <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: headlines newheadline.php,1.13,1.14
- Next by Date:
[Phpgroupware-cvs] CVS: headlines editheadline.php,1.12,1.13 index.php,1.27,1.28
- Previous by thread:
[Phpgroupware-cvs] CVS: headlines newheadline.php,1.13,1.14
- Next by thread:
[Phpgroupware-cvs] CVS: headlines editheadline.php,1.12,1.13 index.php,1.27,1.28
- Index(es):