[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: polls admin.php,1.16,1.16.2.1 admin_addanswer.ph
From: |
Bettina Gille <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: polls admin.php,1.16,1.16.2.1 admin_addanswer.php,1.14,1.14.2.1 admin_editquestion.php,1.8,1.8.2.1 admin_settings.php,1.10,1.10.2.1 admin_viewquestion.php,1.9,1.9.2.1 |
Date: |
Fri, 15 Nov 2002 12:26:54 -0500 |
Update of /cvsroot/phpgroupware/polls
In directory subversions:/tmp/cvs-serv32337
Modified Files:
Tag: Version-0_9_14-branch
admin.php admin_addanswer.php admin_editquestion.php
admin_settings.php admin_viewquestion.php
Log Message:
update
Index: admin.php
===================================================================
RCS file: /cvsroot/phpgroupware/polls/admin.php,v
retrieving revision 1.16
retrieving revision 1.16.2.1
diff -C2 -r1.16 -r1.16.2.1
*** admin.php 15 Nov 2002 09:07:42 -0000 1.16
--- admin.php 15 Nov 2002 17:26:52 -0000 1.16.2.1
***************
*** 21,27 ****
include('../header.inc.php');
! $show = get_var('show',Array('GET'));
! $order = get_var('order',Array('GET'));
! $sort = get_var('sort',Array('GET'));
if(!$show)
--- 21,27 ----
include('../header.inc.php');
! $show = $HTTP_GET_VARS['show'];
! $order = $HTTP_GET_VARS['order'];
! $sort = $HTTP_GET_VARS['sort'];
if(!$show)
***************
*** 86,90 ****
else
{
!
$GLOBALS['phpgw']->template->set_var('row_answer',stripslashes(($GLOBALS['phpgw']->db->f('option_text')));
$GLOBALS['phpgw']->template->set_var('row_title',stripslashes($GLOBALS['phpgw']->db->f('poll_title')));
$GLOBALS['phpgw']->template->set_var('row_edit','<a
href="' . $GLOBALS['phpgw']->link('/polls/admin_editanswer.php','vote_id=' .
$GLOBALS['phpgw']->db->f('vote_id')) . '">' . lang('Edit') . '</a>');
--- 86,90 ----
else
{
!
$GLOBALS['phpgw']->template->set_var('row_answer',stripslashes($GLOBALS['phpgw']->db->f('option_text')));
$GLOBALS['phpgw']->template->set_var('row_title',stripslashes($GLOBALS['phpgw']->db->f('poll_title')));
$GLOBALS['phpgw']->template->set_var('row_edit','<a
href="' . $GLOBALS['phpgw']->link('/polls/admin_editanswer.php','vote_id=' .
$GLOBALS['phpgw']->db->f('vote_id')) . '">' . lang('Edit') . '</a>');
Index: admin_addanswer.php
===================================================================
RCS file: /cvsroot/phpgroupware/polls/admin_addanswer.php,v
retrieving revision 1.14
retrieving revision 1.14.2.1
diff -C2 -r1.14 -r1.14.2.1
*** admin_addanswer.php 15 Nov 2002 09:07:42 -0000 1.14
--- admin_addanswer.php 15 Nov 2002 17:26:52 -0000 1.14.2.1
***************
*** 25,33 ****
$GLOBALS['phpgw']->template->set_block('admin','row','row');
! if(get_var('submit',Array('POST')))
{
! $poll_id = get_var('poll_Id',Array('POST'));
! $answer = get_var('answer',Array('POST'));
! $vote_id = get_var('vote_Id',Array('POST'));
$GLOBALS['phpgw']->db->query("select max(vote_id)+1 from
phpgw_polls_data where poll_id='$poll_id'",__LINE__,__FILE__);
--- 25,33 ----
$GLOBALS['phpgw']->template->set_block('admin','row','row');
! if($POST['submit'])
{
! $poll_id = $HTTP_POST_VARS['poll_Id'];
! $answer = $HTTP_POST_VARS['answer'];
! $vote_id = $HTTP_POST_VARS['vote_Id'];
$GLOBALS['phpgw']->db->query("select max(vote_id)+1 from
phpgw_polls_data where poll_id='$poll_id'",__LINE__,__FILE__);
Index: admin_editquestion.php
===================================================================
RCS file: /cvsroot/phpgroupware/polls/admin_editquestion.php,v
retrieving revision 1.8
retrieving revision 1.8.2.1
diff -C2 -r1.8 -r1.8.2.1
*** admin_editquestion.php 15 Nov 2002 09:07:42 -0000 1.8
--- admin_editquestion.php 15 Nov 2002 17:26:52 -0000 1.8.2.1
***************
*** 25,33 ****
$GLOBALS['phpgw']->template->set_block('admin','row','row');
! $poll_id = get_var('poll_id',Array('POST','GET'));
! if(get_var('edit',Array('POST')))
{
! $question = get_var('question',Array('POST'));
$GLOBALS['phpgw']->db->query("update phpgw_polls_desc set
poll_title='" . addslashes($question)
. "' where poll_id='$poll_id'",__LINE__,__FILE__);
--- 25,33 ----
$GLOBALS['phpgw']->template->set_block('admin','row','row');
! $poll_id = $HTTP_GET_VARS['poll_id'] ? $HTTP_GET_VARS['poll_id'] :
$HTTP_POST_VARS['poll_id'];
! if ($HTTP_POST_VARS['edit'])
{
! $question = $HTTP_POST_VARS['question'];
$GLOBALS['phpgw']->db->query("update phpgw_polls_desc set
poll_title='" . addslashes($question)
. "' where poll_id='$poll_id'",__LINE__,__FILE__);
Index: admin_settings.php
===================================================================
RCS file: /cvsroot/phpgroupware/polls/admin_settings.php,v
retrieving revision 1.10
retrieving revision 1.10.2.1
diff -C2 -r1.10 -r1.10.2.1
*** admin_settings.php 15 Nov 2002 09:07:42 -0000 1.10
--- admin_settings.php 15 Nov 2002 17:26:52 -0000 1.10.2.1
***************
*** 21,27 ****
include('../header.inc.php');
! if(get_var('submit',Array('POST')))
{
! $settings = get_var('settings',Array('POST'));
$GLOBALS['phpgw']->db->query('delete from
phpgw_polls_settings',__LINE__,__FILE__);
--- 21,27 ----
include('../header.inc.php');
! if ($HTTP_POST_VARS['submit'])
{
! $settings = $HTTP_POST_VARS['settings'];
$GLOBALS['phpgw']->db->query('delete from
phpgw_polls_settings',__LINE__,__FILE__);
Index: admin_viewquestion.php
===================================================================
RCS file: /cvsroot/phpgroupware/polls/admin_viewquestion.php,v
retrieving revision 1.9
retrieving revision 1.9.2.1
diff -C2 -r1.9 -r1.9.2.1
*** admin_viewquestion.php 15 Nov 2002 09:07:42 -0000 1.9
--- admin_viewquestion.php 15 Nov 2002 17:26:52 -0000 1.9.2.1
***************
*** 21,25 ****
include('../header.inc.php');
! $poll_id = get_var('poll_id',Array('GET'));
$GLOBALS['phpgw']->template->set_file(array('admin' =>
'admin_form.tpl'));
--- 21,25 ----
include('../header.inc.php');
! $poll_id = $HTTP_GET_VARS['poll_id'];
$GLOBALS['phpgw']->template->set_file(array('admin' =>
'admin_form.tpl'));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: polls admin.php,1.16,1.16.2.1 admin_addanswer.php,1.14,1.14.2.1 admin_editquestion.php,1.8,1.8.2.1 admin_settings.php,1.10,1.10.2.1 admin_viewquestion.php,1.9,1.9.2.1,
Bettina Gille <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: bookmarks import.php,1.17,1.17.2.1 maintain.php,1.26.2.1,1.26.2.2 tree.php,1.26,1.26.2.1 view.php,1.18,1.18.2.1
- Next by Date:
[Phpgroupware-cvs] CVS: property/templates/default header.tpl,1.12,1.13 config.tpl,1.5,1.6 invoice_paid.tpl,1.4,1.5
- Previous by thread:
[Phpgroupware-cvs] CVS: bookmarks import.php,1.17,1.17.2.1 maintain.php,1.26.2.1,1.26.2.2 tree.php,1.26,1.26.2.1 view.php,1.18,1.18.2.1
- Next by thread:
[Phpgroupware-cvs] CVS: property/templates/default header.tpl,1.12,1.13 config.tpl,1.5,1.6 invoice_paid.tpl,1.4,1.5
- Index(es):