<?php
/** View Template: search blog trackback template
 *
 * @package koubel homepage
 * @author Miroslav Kubelik (koubel@volny.cz)
 * @copyright Copyright (c) 2007-2009 Miroslav Kubelik
 * @license http://opensource.org/licenses/gpl-license.php GNU GPL
 */
?>
<h2>Search trackback</h2>

<form id="searchBlogTrackBack" method="post" action="<?php echo $this->url(
    array(
        "controller"=>"trackback",
        "action"=>"search-result"
    ),
    "blogAdmin")?>">

<fieldset style="margin:0;padding:0;border:none">


<div>title</div>
<input style="width:200px" id="title" name="title" value="" />

<div>excerpt</div>
<input style="width:200px" id="excerpt" name="excerpt" value="" />

<div>name of blog</div>
<input style="width:200px" id="blogName" name="blogName" value="" />

<div>Is trackback spam?</div>
<select name="isSpam">
    <option value="undef">doesn't matter</option>
    <option value="1">Yes</option>
    <option value="0">No</option>
</select>

<div>From (datetime)</div>
<input id="from" name="from" value="" />
<a href="javascript:fromCal.popup();"><img style="border:none" src="<?php echo MKLib_AppBaseUrl::getBaseUrl()?>/images/calendarimg/cal.gif" alt="Click Here to Pick up the datetime" /></a>

<div>To (datetime)</div>
<input id="to" name="to"  value="" />
<a href="javascript:toCal.popup();"><img style="border:none" src="<?php echo MKLib_AppBaseUrl::getBaseUrl()?>/images/calendarimg/cal.gif" alt="Click Here to Pick up the datetime" /></a>

<!-- button must be in div -->
<div style="margin-top:0.5em">
 <input type="submit" value="Search" />
 <input type="reset" value="Reset" />
</div>

</fieldset> 
</form>

<script type="text/javascript">
<!--
// create calendar object(s) just after form tag closed
var fromCal = new calendar1(document.getElementById('from'),baseurl);
var toCal = new calendar1(document.getElementById('to'),baseurl);
//-->
</script>
