159 lines
6.3 KiB
Smarty
159 lines
6.3 KiB
Smarty
{include file='admin_header.tpl'}
|
|
|
|
{* $Id: admin_viewblogs.tpl 5 2009-01-11 06:01:16Z john $ *}
|
|
|
|
<h2>{lang_print id=1500002}</h2>
|
|
{lang_print id=1500131}
|
|
<br />
|
|
<br />
|
|
|
|
|
|
<form action='admin_viewblogs.php' method='post'>
|
|
<table cellpadding='0' cellspacing='0' width='400' align='center'>
|
|
<tr>
|
|
<td align='center'>
|
|
<div class='box'>
|
|
<table cellpadding='0' cellspacing='0' align='center'>
|
|
<tr>
|
|
<td>
|
|
{lang_print id=1500111}<br />
|
|
<input type='text' class='text' name='f_title' value='{$f_title}' size='15' maxlength='100' />
|
|
</td>
|
|
<td style="padding-left: 3px;">
|
|
{lang_print id=1500080}<br />
|
|
<input type='text' class='text' name='f_owner' value='{$f_owner}' size='15' maxlength='50' />
|
|
</td>
|
|
<td style="padding-left: 3px;">
|
|
{lang_block id=1002 var=langBlockTemp}<input type='submit' class='button' value='{$langBlockTemp}' />{/lang_block}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<input type='hidden' name='s' value='{$s}' />
|
|
</form>
|
|
<br />
|
|
|
|
|
|
{* IF THERE ARE NO BLOG ENTRIES *}
|
|
{if $total_blogentries == 0}
|
|
|
|
<table cellpadding='0' cellspacing='0' width='400' align='center'>
|
|
<tr>
|
|
<td align='center'>
|
|
<div class='box' style='width: 300px;'><b>{lang_print id=1500112}</b></div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<br>
|
|
|
|
|
|
{* IF THERE ARE BLOG ENTRIES *}
|
|
{else}
|
|
|
|
{* JAVASCRIPT FOR CHECK ALL *}
|
|
{literal}
|
|
<script language='JavaScript'>
|
|
<!---
|
|
var checkboxcount = 1;
|
|
function doCheckAll() {
|
|
if(checkboxcount == 0) {
|
|
with (document.items) {
|
|
for (var i=0; i < elements.length; i++) {
|
|
if (elements[i].type == 'checkbox') {
|
|
elements[i].checked = false;
|
|
}}
|
|
checkboxcount = checkboxcount + 1;
|
|
}
|
|
} else
|
|
with (document.items) {
|
|
for (var i=0; i < elements.length; i++) {
|
|
if (elements[i].type == 'checkbox') {
|
|
elements[i].checked = true;
|
|
}}
|
|
checkboxcount = checkboxcount - 1;
|
|
}
|
|
}
|
|
// -->
|
|
</script>
|
|
{/literal}
|
|
|
|
<div class='pages'>
|
|
{lang_sprintf id=1500113 1=$total_blogentries}
|
|
|
|
|
{lang_print id=1005}
|
|
{section name=page_loop loop=$pages}
|
|
{if $pages[page_loop].link}
|
|
{$pages[page_loop].page}
|
|
{else}
|
|
<a href='admin_viewblogs.php?s={$s}&p={$pages[page_loop].page}&f_title={$f_title}&f_owner={$f_owner}'>{$pages[page_loop].page}</a>
|
|
{/if}
|
|
{/section}
|
|
</div>
|
|
|
|
<form action='admin_viewblogs.php' method='post' name='items'>
|
|
<table cellpadding='0' cellspacing='0' class='list'>
|
|
<tr>
|
|
<td class='header' width='10'><input type='checkbox' name='select_all' onClick='javascript:doCheckAll()'></td>
|
|
<td class='header' width='10' style='padding-left: 0px;'><a class='header' href='admin_viewblogs.php?s={$i}&p={$p}&f_title={$f_title}&f_owner={$f_owner}'>{lang_print id=87}</a></td>
|
|
<td class='header'><a class='header' href='admin_viewblogs.php?s={$t}&p={$p}&f_title={$f_title}&f_owner={$f_owner}'>{lang_print id=1500111}</a></td>
|
|
<td class='header'><a class='header' href='admin_viewblogs.php?s={$o}&p={$p}&f_title={$f_title}&f_owner={$f_owner}'>{lang_print id=1500080}</a></td>
|
|
<td class='header' align='center'><a class='header' href='admin_viewblogs.php?s={$v}&p={$p}&f_title={$f_title}&f_owner={$f_owner}'>{lang_print id=396}</a></td>
|
|
<td class='header' width='100'><a class='header' href='admin_viewblogs.php?s={$d}&p={$p}&f_title={$f_title}&f_owner={$f_owner}'>{lang_print id=88}</a></td>
|
|
<td class='header' width='100'>{lang_print id=153}</td>
|
|
</tr>
|
|
|
|
{section name=blog_loop loop=$entries}
|
|
{assign var='blogentry_url' value=$url->url_create('blog_entry', $entries[blog_loop].blogentry_author->user_info.user_username, $entries[blog_loop].blogentry_id)}
|
|
|
|
{* CHECK IF NO TITLE *}
|
|
<tr class='{cycle values="background1,background2"}'>
|
|
<td class='item' style='padding-right: 0px;'><input type='checkbox' name='delete_blogentries[]' value='{$entries[blog_loop].blogentry_id}' /></td>
|
|
<td class='item' style='padding-left: 0px;'>{$entries[blog_loop].blogentry_id}</td>
|
|
<td class='item'>{$entries[blog_loop].blogentry_title}</td>
|
|
<td class='item'><a href='{$url->url_create("profile", $entries[blog_loop].blogentry_author->user_info.user_username)}' target='_blank'>{$entries[blog_loop].blogentry_author->user_info.user_username}</a></td>
|
|
<td class='item' align='center'>{$entries[blog_loop].blogentry_views}</td>
|
|
<td class='item'>{$datetime->cdate($setting.setting_dateformat, $datetime->timezone($entries[blog_loop].blogentry_date, $setting.setting_timezone))}</td>
|
|
<td class='item'>
|
|
[ <a href='admin_loginasuser.php?user_id={$entries[blog_loop].blogentry_author->user_info.user_id}&return_url={$blogentry_url}' target='_blank'>{lang_print id=1500115}</a> ]
|
|
[ <a href="javascript:if(confirm('{lang_print id=1500114}')) {literal}{{/literal} location.href = 'admin_viewblogs.php?task=deleteentries&delete_blogentries[]={$entries[blog_loop].blogentry_id}&s={$s}&p={$p}&f_title={$f_title}&f_owner={$f_owner}'; {literal}}{/literal}">{lang_print id=155}</a> ]
|
|
</td>
|
|
</tr>
|
|
{/section}
|
|
</table>
|
|
<br />
|
|
|
|
|
|
<table cellpadding='0' cellspacing='0' width='100%'>
|
|
<tr>
|
|
<td>
|
|
{lang_block id=788 var=langBlockTemp}<input type='submit' class='button' value='{$langBlockTemp}' />{/lang_block}
|
|
<input type='hidden' name='task' value='deleteentries' />
|
|
<input type='hidden' name='p' value='{$p}' />
|
|
<input type='hidden' name='s' value='{$s}' />
|
|
<input type='hidden' name='f_title' value='{$f_title}' />
|
|
<input type='hidden' name='f_owner' value='{$f_owner}' />
|
|
</form>
|
|
</td>
|
|
<td align='right' valign='top'>
|
|
<div class='pages2'>
|
|
{lang_sprintf id=1500113 1=$total_blogentries}
|
|
|
|
|
{lang_print id=1005}
|
|
{section name=page_loop loop=$pages}
|
|
{if $pages[page_loop].link}
|
|
{$pages[page_loop].page}
|
|
{else}
|
|
<a href='admin_viewblogs.php?s={$s}&p={$pages[page_loop].page}&f_title={$f_title}&f_owner={$f_owner}'>{$pages[page_loop].page}</a>
|
|
{/if}
|
|
{/section}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
{/if}
|
|
|
|
{include file='admin_footer.tpl'} |