[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: wcm/inc class.sopage.inc.php,1.11,1.12 class.uis
From: |
Miles Lott <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: wcm/inc class.sopage.inc.php,1.11,1.12 class.uisite.inc.php,1.10,1.11 |
Date: |
Sun, 24 Feb 2002 00:33:27 -0500 |
Update of /cvsroot/phpgroupware/wcm/inc
In directory subversions:/tmp/cvs-serv26631/inc
Modified Files:
class.sopage.inc.php class.uisite.inc.php
Log Message:
Add dummy publish function to site edit page
Index: class.sopage.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/wcm/inc/class.sopage.inc.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** class.sopage.inc.php 24 Feb 2002 03:46:06 -0000 1.11
--- class.sopage.inc.php 24 Feb 2002 05:33:25 -0000 1.12
***************
*** 205,209 ****
if($simple)
{
!
$this->pages[$GLOBALS['phpgw']->db->f('page_id')] =
$GLOBALS['phpgw']->db->f('page_name');
}
else
--- 205,209 ----
if($simple)
{
!
$this->pages[$GLOBALS['phpgw']->db->f('page_id')] =
$GLOBALS['phpgw']->db->f('page_name') . ' - ' .
$GLOBALS['phpgw']->db->f('page_url');
}
else
Index: class.uisite.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/wcm/inc/class.uisite.inc.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** class.uisite.inc.php 24 Feb 2002 04:21:16 -0000 1.10
--- class.uisite.inc.php 24 Feb 2002 05:33:25 -0000 1.11
***************
*** 15,22 ****
{
var $public_functions = array(
! 'index' => True,
! 'edit' => True,
! 'add' => True,
! 'delete' => True
);
--- 15,23 ----
{
var $public_functions = array(
! 'index' => True,
! 'edit' => True,
! 'add' => True,
! 'delete' => True,
! 'publish' => True
);
***************
*** 293,296 ****
--- 294,298 ----
$GLOBALS['phpgw']->template->set_var('doneurl',$GLOBALS['phpgw']->link('/index.php','menuaction=wcm.uisite.index'));
$GLOBALS['phpgw']->template->set_var('view',$GLOBALS['phpgw']->link('/wcm/website','sitename='
. $site['site_name']));
+
$GLOBALS['phpgw']->template->set_var('publishurl',$GLOBALS['phpgw']->link('/index.php','menuaction=wcm.uisite.publish&site_id='
. $site_id));
$GLOBALS['phpgw']->template->set_var('lang_name',lang('Site name'));
***************
*** 315,318 ****
--- 317,321 ----
$GLOBALS['phpgw']->template->set_var('lang_version',lang('Version'));
$GLOBALS['phpgw']->template->set_var('lang_add_page',lang('Add Page'));
+
$GLOBALS['phpgw']->template->set_var('lang_publish',lang('Publish'));
$GLOBALS['phpgw']->template->set_var('site_left',$site['site_left'] ?
$site['site_left'] : '130');
***************
*** 390,400 ****
$nolink =
$GLOBALS['phpgw']->link('/index.php','menuaction=wcm.uisite.index');
! $yeslink = '<form method="POST"
name="yesbutton" action="' .
$GLOBALS['phpgw']->link('/index.php','menuaction=wcm.uisite.delete') . '">'
! . '<input type="hidden" name="site_id"
value="' . $site_id . '">'
! . '<input type="hidden" name="confirm"
value="True">'
! . '<input type="submit"
name="yesbutton" value=Yes>'
! .
'</form><script>document.yesbutton.yesbutton.focus()</script>';
$GLOBALS['phpgw']->template->set_var('messages',lang('Are you sure you want to
delete this site?'));
$GLOBALS['phpgw']->template->set_var('no','<a
href="' . $nolink . '">' . lang('No') . '</a>');
$GLOBALS['phpgw']->template->set_var('yes',$yeslink);
--- 393,436 ----
$nolink =
$GLOBALS['phpgw']->link('/index.php','menuaction=wcm.uisite.index');
! $yeslink = '<form method="POST"
name="yesbutton" action="' .
$GLOBALS['phpgw']->link('/index.php','menuaction=wcm.uisite.delete') . '">' .
"\n"
! . ' <input type="hidden"
name="site_id" value="' . $site_id . '">' . "\n"
! . ' <input type="hidden"
name="confirm" value="True">' . "\n"
! . ' <input type="submit"
name="yesbutton" value="Yes">' . "\n"
! . '
</form><script>document.yesbutton.yesbutton.focus()</script>' . "\n";
$GLOBALS['phpgw']->template->set_var('messages',lang('Are you sure you want to
delete this site?'));
+ $GLOBALS['phpgw']->template->set_var('no','<a
href="' . $nolink . '">' . lang('No') . '</a>');
+
$GLOBALS['phpgw']->template->set_var('yes',$yeslink);
+
$GLOBALS['phpgw']->template->pparse('out','site_delete');
+ }
+ }
+
+ function publish()
+ {
+ $GLOBALS['phpgw']->common->phpgw_header();
+ echo parse_navbar();
+ include(PHPGW_APP_INC . SEP . 'header.inc.php');
+
+ $site_id = $GLOBALS['HTTP_POST_VARS']['site_id'] ?
$GLOBALS['HTTP_POST_VARS']['site_id'] : $GLOBALS['HTTP_GET_VARS']['site_id'];
+
+ if ($GLOBALS['HTTP_POST_VARS']['confirm'])
+ {
+ echo 'Publish not working yet, but...';
+ $site = $this->bo->read($site_id);
+ _debug_array($site);
+ }
+ else
+ {
+
$GLOBALS['phpgw']->template->set_file(array('site_delete' =>
'delete_common.tpl'));
+
+ $nolink =
$GLOBALS['phpgw']->link('/index.php','menuaction=wcm.uisite.index');
+
+ $yeslink = '<form method="POST"
name="yesbutton" action="' .
$GLOBALS['phpgw']->link('/index.php','menuaction=wcm.uisite.publish') . '">' .
"\n"
+ . ' <input type="hidden"
name="site_id" value="' . $site_id . '">' . "\n"
+ . ' <input type="hidden"
name="confirm" value="True">' . "\n"
+ . ' <input type="submit"
name="yesbutton" value="Yes">' . "\n"
+ . '
</form><script>document.yesbutton.yesbutton.focus()</script>' . "\n";
+
+
$GLOBALS['phpgw']->template->set_var('messages',lang('Are you sure you want to
publish this site?'));
$GLOBALS['phpgw']->template->set_var('no','<a
href="' . $nolink . '">' . lang('No') . '</a>');
$GLOBALS['phpgw']->template->set_var('yes',$yeslink);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: wcm/inc class.sopage.inc.php,1.11,1.12 class.uisite.inc.php,1.10,1.11,
Miles Lott <address@hidden> <=