set frequency of poll per contact, other misc fixes (photo now has contact-id)
This commit is contained in:
parent
a4a46d82df
commit
3fd4b4264e
7 changed files with 113 additions and 34 deletions
|
|
@ -23,6 +23,11 @@
|
|||
<a href="contacts/$contact_id/drop" id="contact-edit-drop-link" onclick="return confirmDelete();" ><img src="images/b_drophide.gif" alt="Delete contact" title="Delete contact" onmouseover="imgbright(this);" onmouseout="imgdull(this);" /></a>
|
||||
</div>
|
||||
<div id="contact-edit-nav-end"></div>
|
||||
<div id="contact-edit-poll-wrapper">
|
||||
<div id="contact-edit-last-update-text">Last updated: <span id="contact-edit-last-updated">$last_update</span</div>
|
||||
<div id="contact-edit-poll-text">Update public posts: </div>
|
||||
$poll_interval
|
||||
</div>
|
||||
</div>
|
||||
<div id="contact-edit-end" ></div>
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ body {
|
|||
background: #FEFEFE;
|
||||
color: #444444;
|
||||
font-family: "Lucida Grande", Tahoma, sans-serif;
|
||||
letter-spacing: 1px;
|
||||
/* letter-spacing: 1px; */
|
||||
/* font-family: verdana, sans-serif; */
|
||||
font-size: 90%;
|
||||
margin-left: 10px;
|
||||
|
|
@ -880,6 +880,14 @@ input#dfrn-url {
|
|||
margin-left: 30px;
|
||||
}
|
||||
|
||||
#contact-edit-poll-wrapper {
|
||||
margin-left: 50px;
|
||||
margin-top: 30px;
|
||||
}
|
||||
#contact-edit-poll-text {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
#contact-edit-photo-wrapper {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue