mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:27:03 +02:00
added conversation available feature
This commit is contained in:
@ -127,6 +127,12 @@ function send_ajax_post_request(url, params, id) {
|
||||
}
|
||||
|
||||
|
||||
function add_message_reference_to_form(s) {
|
||||
e = document.getElementById('ref');
|
||||
if(e) e.value = s;
|
||||
}
|
||||
|
||||
|
||||
function assemble_search_term(n) {
|
||||
var data = '';
|
||||
var attachment_type = '';
|
||||
@ -147,7 +153,6 @@ function assemble_search_term(n) {
|
||||
e = document.getElementById('subject');
|
||||
if(e && e.value) { data = data + "&subject=" + e.value; }
|
||||
|
||||
|
||||
for(i=0; i<=n; i++) {
|
||||
var a = 'key' + i;
|
||||
var b = 'val' + i;
|
||||
@ -181,6 +186,9 @@ function assemble_search_term(n) {
|
||||
|
||||
if(attachment_type) { data = data + "&attachment_type=" + attachment_type.substring(1,attachment_type.length); }
|
||||
|
||||
e = document.getElementById('ref');
|
||||
if(e && e.value) { data = data + "&ref=" + e.value; }
|
||||
|
||||
e = document.getElementById('sort');
|
||||
if(e && e.value) { data = data + "&sort=" + e.value; }
|
||||
|
||||
@ -228,6 +236,9 @@ function reset_simple_form() {
|
||||
a = document.getElementById('from'); a.value = '';
|
||||
a = document.getElementById('to'); a.value = '';
|
||||
a = document.getElementById('subject'); a.value = '';
|
||||
|
||||
a = document.getElementById('ref');
|
||||
if(a) { a.value = ''; }
|
||||
}
|
||||
|
||||
|
||||
@ -253,6 +264,9 @@ function reset_adv_form(n) {
|
||||
a = document.getElementById('val0');
|
||||
if(a) { a.value = ''; }
|
||||
|
||||
a = document.getElementById('ref');
|
||||
if(a) { a.value = ''; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="/view/theme/default/stylesheet/style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/view/theme/default/stylesheet/style-<?php print THEME; ?>.css" />
|
||||
</head>
|
||||
|
||||
<body style="background: white;">
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="/view/theme/default/stylesheet/style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/view/theme/default/stylesheet/style-<?php print THEME; ?>.css" />
|
||||
</head>
|
||||
|
||||
<body style="background: white;">
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="/view/theme/default/stylesheet/style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/view/theme/default/stylesheet/style-<?php print THEME; ?>.css" />
|
||||
</head>
|
||||
|
||||
<body style="background: white;">
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="/view/theme/default/stylesheet/style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/view/theme/default/stylesheet/style-<?php print THEME; ?>.css" />
|
||||
</head>
|
||||
|
||||
<body style="background: white;">
|
||||
|
@ -8,6 +8,9 @@
|
||||
|
||||
<input type="hidden" name="sort" id="sort" value="date" />
|
||||
<input type="hidden" name="order" id="order" value="0" />
|
||||
<input type="hidden" name="ref" id="ref" value="" />
|
||||
|
||||
|
||||
|
||||
<div id="myid">
|
||||
|
||||
|
@ -8,6 +8,7 @@
|
||||
|
||||
<input type="hidden" name="sort" id="sort" value="date" />
|
||||
<input type="hidden" name="order" id="order" value="0" />
|
||||
<input type="hidden" name="ref" id="ref" value="" />
|
||||
|
||||
</div>
|
||||
|
||||
@ -29,7 +30,7 @@
|
||||
<div class="cell1s"> </div>
|
||||
<div class="cell2">
|
||||
<button id="button_search" class="active" onclick="script:load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count), 0);"><?php print $text_search; ?></button>
|
||||
<input type="button" class="advsecondary" onclick="javascript:var a=document.getElementById('_search'); a.value=''; return false;" value="<?php print $text_cancel; ?>" />
|
||||
<input type="button" class="advsecondary" onclick="javascript:var a=document.getElementById('_search'); a.value=''; a = document.getElementById('ref'); a.value=''; return false;" value="<?php print $text_cancel; ?>" />
|
||||
<input type="button" class="advsecondary" value="<?php print $text_save; ?>" onclick="javascript:send_ajax_post_request('<?php print SAVE_SEARCH_URL; ?>', assemble_search_term(0) + '&save=1', 'A1');" />
|
||||
<input type="button" class="load" name="load" onclick="javascript:load_ajax_url('<?php print SAVE_SEARCH_URL; ?>&<?php if(isset($search_args)) { print $search_args; } ?>');" value="<?php print $text_load; ?>..." />
|
||||
</div>
|
||||
|
@ -69,7 +69,7 @@
|
||||
<div class="cell5 id"><?php print ($page*$page_len) + $i; ?>.</div>
|
||||
<div class="cell5 date"><?php print $message['date']; ?></div>
|
||||
<div class="cell5 from"><?php if($message['from'] != $message['shortfrom']) { ?><span onmouseover="Tip('<?php print preg_replace("/&/", "&", $message['from']); ?>', BALLOON, true, ABOVE, true)" onmouseout="UnTip()"><?php print $message['shortfrom']; ?></span><?php } else { print $message['from']; } ?></div>
|
||||
<div class="cell5 subject"><a class="messagelink<?php if($message['spam'] == 1) { ?> spam<?php } ?>" href="<?php print SITE_URL; ?>message.php/<?php print $message['piler_id']; ?>"><?php if($message['subject'] != $message['shortsubject']) { ?><span onmouseover="Tip('<?php print preg_replace("/&/", "&", $message['subject']); ?>', BALLOON, true, ABOVE, true)" onmouseout="UnTip()"><?php print $message['shortsubject']; ?></span><?php } else { print $message['subject']; } ?></a><?php if($message['reference']) { ?> <span onmouseover="Tip('<?php print $message['reference']; ?>', BALLOON, true, ABOVE, true)" onmouseout="UnTip()">[+]</span><?php } ?></div>
|
||||
<div class="cell5 subject"><a class="messagelink<?php if($message['spam'] == 1) { ?> spam<?php } ?>" href="<?php print SITE_URL; ?>message.php/<?php print $message['piler_id']; ?>"><?php if($message['subject'] != $message['shortsubject']) { ?><span onmouseover="Tip('<?php print preg_replace("/&/", "&", $message['subject']); ?>', BALLOON, true, ABOVE, true)" onmouseout="UnTip()"><?php print $message['shortsubject']; ?></span><?php } else { print $message['subject']; } ?></a><?php if($message['reference']) { ?> <a href="#" onclick="script:add_message_reference_to_form('<?php print $message['reference']; ?>'); load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count), 0); a = document.getElementById('ref'); a.value=''; return false;"><span onmouseover="Tip('<?php print $text_conversation_available; ?>', BALLOON, true, ABOVE, true)" onmouseout="UnTip()">[+]</span></a><?php } ?></div>
|
||||
<div class="cell5 size"><?php print $message['size']; ?></div>
|
||||
<div class="cell5"><?php if($message['attachments'] > 0) { ?><img src="<?php print ICON_ATTACHMENT; ?>" alt="" width="16" height="18" /><?php } else { ?> <?php } ?></div>
|
||||
<div class="cell5"><?php if($message['tag']) { ?><span onmouseover="Tip('<?php print $message['tag']; ?>', BALLOON, true, ABOVE, true)" onmouseout="UnTip()"><img src="<?php print ICON_TAG; ?>" alt="" /></span><?php } else { ?> <?php } ?></div>
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
<input type="hidden" name="sort" id="sort" value="date" />
|
||||
<input type="hidden" name="order" id="order" value="0" />
|
||||
<input type="hidden" name="ref" id="ref" value="" />
|
||||
|
||||
<div id="ss1">
|
||||
<div class="row">
|
||||
|
Reference in New Issue
Block a user