Update of /cvsroot/webnotes/webnotes/themes/phpnet
In directory usw-pr-cvs1:/tmp/cvs-serv31318/themes/phpnet
Modified Files:
theme_api.php
Added Files:
theme_note_add_page.php theme_note_preview_page.php
Log Message:
Added skeleton for submit/preview in phpnet theme
--- NEW FILE: theme_note_add_page.php ---
<?php
# phpWebNotes - a php based note addition system
# Copyright (C) 2000-2002 Webnotes Team - web...@so...
# This program is distributed under the terms and conditions of the GPL
# See the files README and LICENSE for details
# --------------------------------------------------------
# $Id: theme_note_add_page.php,v 1.1 2002/09/10 03:16:14 vboctor Exp $
# --------------------------------------------------------
#########################################################################
# Each theme needs to implement this page which provides the user with
# a form to submit notes. This action page for this one should be
# theme_note_preview_page.php. The post method should be used.
#
# The reason this page is per theme, is to allow a better integration into
# the hosting site's look'n'feel.
#########################################################################
# @@@@
# make a copy of /note_add_page.php and modify it to work here + change the
# look'n'feel to match the phpnet theme style.
?>
--- NEW FILE: theme_note_preview_page.php ---
<?php
# phpWebNotes - a php based note addition system
# Copyright (C) 2000-2002 Webnotes Team - web...@so...
# This program is distributed under the terms and conditions of the GPL
# See the files README and LICENSE for details
# --------------------------------------------------------
# $Id: theme_note_preview_page.php,v 1.1 2002/09/10 03:16:14 vboctor Exp $
# --------------------------------------------------------
#########################################################################
# Each theme needs to implement this page which allows the user to preview
# the note he just submitted. The user should be able to confirm the submission,
# where in this case the results are posted to /note_add.php or decide to
# edit it again. There are two approaches to provide a re-editing feature:
#
# - Submit the results to theme_note_add_page.php which should default itself
# to the supplied values (i.e. work as add/edit pages).
# - Instruct the user to click the back button and edit.
#
# It is highly recommended to use the first approach.
#
# Preview the post variables using the theme_api.php. Following are the needed
# variables:
# id - The id of the note (not yet assigned), use value 0.
# email - available in post variable
# note - available in post variable
# page - should be available in post variable (from a hidden field)
# url - should be available in post varaible (from hidden field)
#
# The reason this page is per theme, is to allow a better integration into
# the hosting site's look'n'feel.
#########################################################################
?>
Index: theme_api.php
===================================================================
RCS file: /cvsroot/webnotes/webnotes/themes/phpnet/theme_api.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- theme_api.php 9 Sep 2002 22:30:22 -0000 1.3
+++ theme_api.php 10 Sep 2002 03:16:14 -0000 1.4
@@ -1,7 +1,6 @@
<?
# phpWebNotes - a php based note addition system
- # Copyright (C) 2000 Kenzaburo Ito - ke...@30...
- # 2002 Webnotes Team - web...@so...
+ # Copyright (C) 2000-2002 Webnotes Team - web...@so...
# This program is distributed under the terms and conditions of the GPL
# See the files README and LICENSE for details
|