diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-08-01 05:46:51 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-08-01 05:46:51 -0700 |
commit | 3fd4b4264ef8c418bbf78edaa02f7e4e32f5022e (patch) | |
tree | 641803dc59dcd8440e252e5133424fde2a835636 /view/contact_selectors.php | |
parent | a4a46d82df14d5bcc6812a8e2b9f24eb78141e4e (diff) | |
download | volse-hubzilla-3fd4b4264ef8c418bbf78edaa02f7e4e32f5022e.tar.gz volse-hubzilla-3fd4b4264ef8c418bbf78edaa02f7e4e32f5022e.tar.bz2 volse-hubzilla-3fd4b4264ef8c418bbf78edaa02f7e4e32f5022e.zip |
set frequency of poll per contact, other misc fixes (photo now has contact-id)
Diffstat (limited to 'view/contact_selectors.php')
-rw-r--r-- | view/contact_selectors.php | 32 |
1 files changed, 26 insertions, 6 deletions
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 .= "<select id=\"contact-reputation-selector\" name=\"reputation\" />\r\n"; $rep = array( - 0 => "Unknown | Not categorised", - 1 => "Block immediately", - 2 => "Shady, spammer, self-marketer", - 3 => "Known to me, but no opinion", - 4 => "OK, probably harmless", - 5 => "Reputable, has my trust" + 0 => t('Unknown | Not categorised'), + 1 => t('Block immediately'), + 2 => t('Shady, spammer, self-marketer'), + 3 => t('Known to me, but no opinion'), + 4 => t('OK, probably harmless'), + 5 => t('Reputable, has my trust') ); foreach($rep as $k => $v) { @@ -43,4 +43,24 @@ function contact_reputation($current) { } +function contact_poll_interval($current) { + $o = ''; + $o .= '<select id="contact-poll-interval" name="poll" />' . "\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 .= "<option value=\"$k\" $selected >$v</option>\r\n"; + } + $o .= "</select>\r\n"; + return $o; +} |