From 3fd4b4264ef8c418bbf78edaa02f7e4e32f5022e Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sun, 1 Aug 2010 05:46:51 -0700 Subject: set frequency of poll per contact, other misc fixes (photo now has contact-id) --- view/contact_selectors.php | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) (limited to 'view/contact_selectors.php') diff --git a/view/contact_selectors.php b/view/contact_selectors.php index a6cafe4ee..7c7abfc7c 100644 --- a/view/contact_selectors.php +++ b/view/contact_selectors.php @@ -26,12 +26,12 @@ function contact_reputation($current) { $o .= "' . "\r\n"; + + $rep = array( + 0 => t('Frequently'), + 1 => t('Hourly'), + 2 => t('Twice daily'), + 3 => t('Daily'), + 4 => t('Weekly'), + 5 => t('Monthly') + ); + + foreach($rep as $k => $v) { + $selected = (($k == $current) ? " selected=\"selected\" " : ""); + $o .= "\r\n"; + } + $o .= "\r\n"; + return $o; +} -- cgit v1.2.3