From d633dae00fc9ce954c958e2714e4a43c40b85648 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 26 Aug 2008 20:47:07 +0000 Subject: Central: Create Subscription Management page Refs #25 --- central/trunk/mansub.php | 27 +++++++++++++++++++++++++++ central/trunk/theme/mansub.tpl | 29 +++++++++++++++++++++++++++++ central/trunk/theme/table.css | 27 +++++++++++++++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 central/trunk/mansub.php create mode 100644 central/trunk/theme/mansub.tpl create mode 100644 central/trunk/theme/table.css diff --git a/central/trunk/mansub.php b/central/trunk/mansub.php new file mode 100644 index 0000000..3a2e2d0 --- /dev/null +++ b/central/trunk/mansub.php @@ -0,0 +1,27 @@ +add('SITENAME', instaDisc_getConfig('siteName')); + + $subs = instaDisc_listSubscriptions($_SESSION['username']); + $i=0; + for ($i=0;$i<$subs['size'];$i++) + { + $template->adds_block('SUBSCRIPTION', array( 'URL' => $subs[$i], + 'ID' => $i, + 'EVEN' => (($i % 2 == 0) ? " CLASS=\"even\"" : ""))); + } + + $template->display(); +} else { + header('Location: index.php'); +} + +?> diff --git a/central/trunk/theme/mansub.tpl b/central/trunk/theme/mansub.tpl new file mode 100644 index 0000000..a9c8850 --- /dev/null +++ b/central/trunk/theme/mansub.tpl @@ -0,0 +1,29 @@ + + + <!--SITENAME--> InstaDisc Central Server + + + +
+

InstaDisc Subscription Management

+ +

If you've sponsered subscriptions here but have decided you want to move elsewhere you can delete subscriptions using the table below: + + + + + + + + + > + + + + +
Subscription URLActions
Delete
+ +

Back to User Panel +

+ + diff --git a/central/trunk/theme/table.css b/central/trunk/theme/table.css new file mode 100644 index 0000000..b3603bd --- /dev/null +++ b/central/trunk/theme/table.css @@ -0,0 +1,27 @@ +/* InstaDisc Central - A Four Island Project */ + +table { + border: 0; + width: 100%; +} + +table, table td { + border-spacing: 0; +} + +table tr { + background-color: #3CE4ED; +} + +table tr.even { + background-color: #39B7CD; +} + +table th { + background-color: #FF9912; + text-align: left; +} + +table td { + word-wrap: break-word; +} -- cgit 1.4.1