diff options
| author | Christian Fowler <spider@viovio.com> | 2005-12-11 06:34:19 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2005-12-11 06:34:19 +0000 |
| commit | 643f1d7f43ef14bb415fd69ba435035d1426a3a9 (patch) | |
| tree | c89b28e45811025af6a1ad684b6b6e7df5ea96a4 /admin | |
| parent | c0ede787f79de2f5ff07146148676e102d12ba23 (diff) | |
| download | newsletters-643f1d7f43ef14bb415fd69ba435035d1426a3a9.tar.gz newsletters-643f1d7f43ef14bb415fd69ba435035d1426a3a9.tar.bz2 newsletters-643f1d7f43ef14bb415fd69ba435035d1426a3a9.zip | |
add edition saving and listing, almost to the point of getting send working
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/schema_inc.php | 3 | ||||
| -rw-r--r-- | admin/send.php | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/admin/schema_inc.php b/admin/schema_inc.php index 0236724..cbbbffc 100644 --- a/admin/schema_inc.php +++ b/admin/schema_inc.php @@ -6,8 +6,6 @@ $tables = array( nl_id I4 AUTO PRIMARY, content_id I4 NOTNULL, last_sent I8, - editions I8, - users I8, allow_user_sub C(1) default 'y', allow_any_sub C(1), unsub_msg C(1) default 'y', @@ -31,6 +29,7 @@ $tables = array( 'tiki_newsletters_editions' => " edition_id I4 AUTO PRIMARY, nl_id I4 NOTNULL, + is_draft C(1), content_id I4 NOTNULL CONSTRAINTS ', CONSTRAINT `tiki_nl_ed_nl_ref` FOREIGN KEY (`nl_id`) REFERENCES `".BIT_DB_PREFIX."tiki_newsletters`( `nl_id` ) , CONSTRAINT `tiki_nl_ed_con_ref` FOREIGN KEY (`content_id`) REFERENCES `".BIT_DB_PREFIX."tiki_content`( `content_id` )' diff --git a/admin/send.php b/admin/send.php index 28fc6a3..98a8b62 100644 --- a/admin/send.php +++ b/admin/send.php @@ -1,6 +1,6 @@ <?php -// $Header: /cvsroot/bitweaver/_bit_newsletters/admin/send.php,v 1.4 2005/12/10 22:24:23 spiderr Exp $ +// $Header: /cvsroot/bitweaver/_bit_newsletters/admin/send.php,v 1.5 2005/12/11 06:34:19 spiderr Exp $ // Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. // All Rights Reserved. See copyright.txt for details and a complete list of authors. @@ -60,7 +60,7 @@ if (isset($_REQUEST["send"])) { $listHash = array(); $editions = $gContent->getList( $listHash ); -$gBitSmarty->assign_by_ref( 'editions', $editions ); +$gBitSmarty->assign_by_ref( 'editionList', $editions ); $gBitSmarty->assign( 'listInfo', $listHash ); if( $gBitSystem->isFeatureActive( 'tiki_p_use_content_templates' ) ) { |
