mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:37:02 +02:00
improved group handling
This commit is contained in:
@ -511,6 +511,16 @@ function toggle_bulk_check() {
|
||||
}
|
||||
|
||||
|
||||
function append_email_from_slider(id, value) {
|
||||
var prefix = '\n';
|
||||
|
||||
a = opener.document.getElementById('email');
|
||||
if(a && a.value == '') prefix = '';
|
||||
|
||||
a.value += prefix + value;
|
||||
}
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
$.datepicker.setDefaults($.datepicker.regional[piler_ui_lang]);
|
||||
$("#date1").datepicker( { dateFormat: 'yy-mm-dd' } );
|
||||
|
29
webui/view/theme/default/templates/common/layout-email.tpl
Normal file
29
webui/view/theme/default/templates/common/layout-email.tpl
Normal file
@ -0,0 +1,29 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="hu" lang="hu">
|
||||
|
||||
<head>
|
||||
<title>piler | <?php print $title; ?></title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Language" content="en" />
|
||||
<meta name="keywords" content="piler email archiver" />
|
||||
<meta name="description" content="piler email archiver" />
|
||||
<meta name="rating" content="general" />
|
||||
<meta name="robots" content="all" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/view/theme/default/stylesheet/style-<?php print THEME; ?>.css" />
|
||||
<script type="text/javascript" src="/view/javascript/piler.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body style="background-color: white;">
|
||||
|
||||
<div id="wrap" style="width:200px; height: 300px; border: 0px;">
|
||||
|
||||
<?php if($title) { ?><h3><?php print $title; ?></h3><?php } ?>
|
||||
<?php print $content; ?>
|
||||
|
||||
|
||||
</div> <!-- wrap -->
|
||||
|
||||
</body>
|
||||
</html>
|
47
webui/view/theme/default/templates/common/layout-minimal.tpl
Normal file
47
webui/view/theme/default/templates/common/layout-minimal.tpl
Normal file
@ -0,0 +1,47 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="hu" lang="hu">
|
||||
|
||||
<head>
|
||||
<title>piler | <?php print $title; ?></title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Language" content="en" />
|
||||
<meta name="keywords" content="piler email archiver" />
|
||||
<meta name="description" content="piler email archiver" />
|
||||
<meta name="rating" content="general" />
|
||||
<meta name="robots" content="all" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/view/theme/default/stylesheet/style-<?php print THEME; ?>.css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
var piler_ui_lang = '<?php if(LANG == 'en') { ?>en-GB<?php } else { print LANG; } ?>';
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="wrap">
|
||||
|
||||
<div id="menu">
|
||||
|
||||
<?php print $menu; ?>
|
||||
|
||||
</div> <!-- menu -->
|
||||
|
||||
<div id="main">
|
||||
|
||||
<?php if($title) { ?><h3><?php print $title; ?></h3><?php } ?>
|
||||
<?php print $content; ?>
|
||||
|
||||
</div> <!-- main -->
|
||||
|
||||
|
||||
<div id="footer">
|
||||
<?php print $footer; ?>
|
||||
</div>
|
||||
|
||||
|
||||
</div> <!-- wrap -->
|
||||
|
||||
</body>
|
||||
</html>
|
@ -19,6 +19,11 @@
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_email_addresses; ?>**:</div>
|
||||
<div class="domaincell"><textarea style="height:280px;" name="email" id="email" class="domain"><?php if(isset($post['email'])){ print $post['email']; } ?></textarea></div>
|
||||
<div class="domaincell">
|
||||
<?php foreach(Registry::get('letters') as $letter) { ?>
|
||||
<a href="#" onclick="window.open('<?php print SITE_URL; ?>index.php?route=group/email&term=<?php print $letter; ?>', 'aaa', 'width=300,height=400');" ><?php print $letter; ?></a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
|
@ -21,6 +21,11 @@
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_email_addresses; ?>**:</div>
|
||||
<div class="domaincell"><textarea style="height:280px;" name="email" id="email" class="domain"><?php if(isset($email)){ print $email; } ?></textarea></div>
|
||||
<div class="domaincell">
|
||||
<?php foreach(Registry::get('letters') as $letter) { ?>
|
||||
<a href="#" onclick="window.open('<?php print SITE_URL; ?>index.php?route=group/email&term=<?php print $letter; ?>', 'aaa', 'width=300,height=400');" ><?php print $letter; ?></a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
|
16
webui/view/theme/default/templates/group/email.tpl
Normal file
16
webui/view/theme/default/templates/group/email.tpl
Normal file
@ -0,0 +1,16 @@
|
||||
|
||||
<?php foreach($emails as $email) { ?>
|
||||
<a href="#" onclick="javascript:append_email_from_slider('email', '<?php print $email['email']; ?>');"><?php print $email['email']; ?></a><br />
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<div id="pagenav">
|
||||
<?php if($page > 0){ ?><a href="index.php?route=group/email&page=0&term=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?> « <?php if($page > 0){ ?></a><?php } ?>
|
||||
<?php if($page > 0){ ?><a href="index.php?route=group/email&page=<?php print $prev_page; ?>&term=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?> ‹ <?php if($page > 0){ ?></a><?php } ?>
|
||||
<?php print $emails[0][$sort]; ?> - <?php print $emails[count($emails)-1][$sort]; ?>
|
||||
<?php if($total >= $page_len*($page+1) && $total > $page_len){ ?><a href="index.php?route=group/email&page=<?php print $next_page; ?>&term=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?> › <?php if($total >= $page_len*($page+1) && $total > $page_len){ ?></a><?php } ?>
|
||||
<?php if($page < $total_pages){ ?><a href="index.php?route=group/email&page=<?php print $total_pages; ?>&term=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?> » <?php if($page < $total_pages){ ?></a><?php } ?>
|
||||
</div>
|
||||
|
||||
<div style="margin-top: 20px;"><a href="#" onclick="javascript: window.close();">close</a></div>
|
||||
|
Reference in New Issue
Block a user