
{include file="../head.tpl"}
<form name="form2" method="post" action="guestbook.php?action=settings">
  <table width="100%"  border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
    <tr>
      <td colspan="2" class="header">{$langadmin.gbsettings}</td>
    </tr>
    <tr>
      <td class="firstrow">{$langadmin.comment_maxpostlength}</td>
      <td class="secondrow"><input name="maxpostlength" type="text" id="maxpostlength" value="{$maxpostlength}"></td>
    </tr>
    <tr>
      <td class="firstrow">{$langadmin.comment_spamprotect}</td>
      <td class="secondrow"><input name="spamprotect" type="checkbox" id="spamprotect" value="1" {if $spamprotect==1}checked="checked"{/if}></td>
    </tr>
    <tr>
      <td class="firstrow">{$langadmin.comment_spamprotect_time}</td>
      <td class="secondrow"><input name="spamprotect_time" type="text" id="spamprotect_time" value="{$spamtime}"></td>
    </tr>
    <tr>
      <td class="firstrow">{$langadmin.comment_mailbycomment}</td>
      <td class="secondrow"><input name="mailbycomment" type="checkbox" id="mailbycomment" value="1" {if $mailbycomment==1}checked="checked"{/if}></td>
    </tr>
    <tr>
      <td class="firstrow">&nbsp;</td>
      <td class="secondrow"><input name="Submit" type="submit" class="button" value="{$langadmin.save}"></td>
    </tr>
  </table>
</form>
<br>
  <table width="100%" border="0" cellpadding="4" cellspacing="1" class="tableborder">
    <tr>
      <td colspan="2" class="header"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><strong>{$langadmin.title_guestbook}</strong></td>
          <td><div align="right">
<form action="guestbook.php?action=show"  method="post" name="pp" style="display:inline">
{$navi}
<select name="sort" id="sort">
<option value="desc" {if $smarty.request.sort == desc} selected="selected" {/if}>{$langadmin.sortbydesc}</option>
<option value="asc" {if $smarty.request.sort == asc} selected="selected" {/if}>{$langadmin.sortbyasc}</option>
</select>
<select name="pp" id="pp">
{section name=pp loop=95 step=5}
<option value="{$smarty.section.pp.index+10}" {if $smarty.request.pp == $smarty.section.pp.index+10}selected{/if}>{$smarty.section.pp.index+10} / {$langadmin.eachsite}</option>
{/section}
 </select>
<input type="submit" class="button" value="{$langadmin.show}" />
</form>
</div>
</td>
        </tr>
      </table></td>
    </tr>
	<form name="form1" method="post" action="guestbook.php?action=show&amp;do=save">
	{foreach from=$comments_array item=item}
    <tr class="{cycle name='gb_1' values='secondrow,firstrow'}">
      <td>{$langadmin.date}</td>
      <td>{$item->ctime}</td>
    </tr>
    <tr class="{cycle name='gb_2' values='secondrow,firstrow'}">
      <td width="20%">{$langadmin.name}</td>
      <td><input name="author[{$item->id}]" type="text" value="{$item->author|sslash}" size="30"></td>
    </tr>
    <tr class="{cycle name='gb_3' values='secondrow,firstrow'}">
      <td valign="top">{$langadmin.email}</td>
      <td><input name="email[{$item->id}]" type="text" value="{$item->email|sslash}" size="30"></td>
    </tr>
    <tr class="{cycle name='gb_4' values='secondrow,firstrow'}">
      <td valign="top">{$langadmin.comment_userhttp}</td>
      <td><input name="web[{$item->id}]" type="text" value="{$item->web|sslash}" size="30"></td>
    </tr>
    <tr class="{cycle name='gb_6' values='secondrow,firstrow'}">
      <td valign="top">{$langadmin.comment_ufrom}</td>
      <td><input name="authfrom[{$item->id}]" type="text" value="{$item->authfrom|sslash}" size="30"></td>
    </tr>
    <tr class="{cycle name='gb_7' values='secondrow,firstrow'}">
      <td width="20%" valign="top">{$langadmin.comment_gb}</td>
      <td><textarea name="comment[{$item->id}]" cols="50" rows="8" id="comment[{$item->id}]" style="width:80%">{$item->comment|escape:'html'|sslash}</textarea>
     </td>
    </tr>
    <tr class="{cycle name='gb_8' values='secondrow,firstrow'}">
      <td valign="top">{$langadmin.delete}</td>
      <td><input name="del[{$item->id}]" type="checkbox" id="d" value="1"></td>
    </tr>
	{/foreach}
	<tr class="header">
	<td>&nbsp;</td>
	<td><input name="Submit" type="submit" class="button" value="{$langadmin.save}">
	  </td>
    </form>
	</tr>
  </table>

{include file="../foot.tpl"}