            <table class="submenu">
                <tr>
                    <td class="wrapper">
                        <div style="submenu-button-block">
                            <a style="float:left; font-size: 16pt; color: #555;"><b><?php print __('Search Results');?></b></a>
                        </div>
                        <div class="submenu-search-block">
                            <form action="/search/" method="get">
                            <input type="text" name="q" class="submenu-search-field">
                            <input type="submit" value="<?php print __('Search');?>" class="submenu-button-search">
                            </form>
                        </div>
                        <?php display_error_block(); ?> 
                    </td>
                </tr>
            </table>
        </div>

        <div id="vstobjects">
            <table class="data">
                <?php
                    foreach ($data as $key => $value) {
                        ++$i;
                        if ($data[$key]['SUSPENDED'] == 'yes') {
                            $status = 'suspended';
                            $spnd_action = 'unsuspend' ;
                        } else {
                            $status = 'active';
                            $spnd_action = 'suspend';
                        }
                        if ($data[$key]['TYPE'] == 'db') {
                            $object = 'database';
                        } else {
                            $object = strtolower($data[$key]['TYPE']." ".$data[$key]['KEY']);
                        }
                ?>

                <tr class="data-row <? if($status == 'suspended') echo 'suspended';?>">
                    <td class="data-dotted">
                        <table class="data-col1">
                            <tr><td><a class="data-date" title="<?php echo $data[$key]['DATE']."  ".$data[$key]['TIME'] ?>"><?php echo strftime("%d %b %Y", strtotime($data[$key]['DATE']))?></a></td></tr>
                            <tr><td class="data-<?php echo $status ?>"><b><?php echo __($status); ?></b></td></tr>
                        </table>
                    </td>
                    <td class="data-dotted">
                        <?php
                            if ($data[$key]['KEY'] == 'RECORD') {
                                $delete_lnk = '/delete/'.$data[$key]['TYPE'].'/?domain='.$data[$key]['PARENT'].'&record_id='.$data[$key]['LINK'].'&user='.$data[$key]['USER'];
                                $cnfrm = 'DELETE_RECORD_CONFIRMATION';
                            }
                            if ($data[$key]['KEY'] == 'ACCOUNT') {
                                $delete_lnk = '/delete/'.$data[$key]['TYPE'].'/?domain='.$data[$key]['PARENT'].'&account='.$data[$key]['LINK'].'&user='.$data[$key]['USER'];
                                $cnfrm = 'DELETE_USER_CONFIRMATION';
                            }
                            if ($data[$key]['KEY'] == 'JOB') {
                                $delete_lnk = '/delete/'.$data[$key]['TYPE'].'/?job='.$data[$key]['LINK'].'&user='.$data[$key]['USER'];
                                $cnfrm = 'DELETE_CRON_CONFIRMATION';
                            }
                            if ($data[$key]['KEY'] == 'DATABASE') {
                                $delete_lnk = '/delete/'.$data[$key]['TYPE'].'/?database='.$data[$key]['RESULT'].'&user='.$data[$key]['USER'];
                                $cnfrm = 'DELETE_DATABASE_CONFIRMATION';
                            }
                            if (($data[$key]['KEY'] != 'RECORD') && ($data[$key]['KEY'] != 'ACCOUNT') && ($data[$key]['KEY'] != 'JOB') && ($data[$key]['KEY'] != 'DATABASE') ) {
                                $delete_lnk = '/delete/'.$data[$key]['TYPE'].'/?'.strtolower($data[$key]['KEY']).'='.$data[$key]['RESULT'].'&user='.$data[$key]['USER'];
                                $cnfrm = 'DELETE_DOMAIN_CONFIRMATION';
                            }
                        ?> 
                        <a id="delete_link_<?php echo $i ?>" class="do_delete">
                            <span class="data-controls do_delete">
                                <img src="/images/delete.png" width="7px" height="7px">
                                <?php print __('delete');?> 
                                <input type="hidden" name="delete_url" value="<?php echo $delete_lnk; ?>" />
                                <div id="delete_dialog_<?php echo $i ?>" class="confirmation-text-delete hidden" title="Confirmation">
                                    <p class="confirmation"><?php print __($cnfrm,$data[$key]['RESULT']);?></p>
                                </div>
                            </span>
                        </a>

                        <?php

                            if ($data[$key]['KEY'] == 'RECORD') {
                                $spnd_lnk = '/'.$spnd_action.'/'.$data[$key]['TYPE'].'/?domain='.$data[$key]['PARENT'].'&record_id='.$data[$key]['LINK'].'&user='.$data[$key]['USER'];
                                $cnfrm = 'SUSPEND_RECORD_CONFIRMATION';
                            }
                            if ($data[$key]['KEY'] == 'ACCOUNT') {
                                $spnd_lnk = '/'.$spnd_action.'/'.$data[$key]['TYPE'].'/?domain='.$data[$key]['PARENT'].'&account='.$data[$key]['LINK'].'&user='.$data[$key]['USER'];
                                $cnfrm = 'SUSPEND_USER_CONFIRMATION';
                            }
                            if ($data[$key]['KEY'] == 'JOB') {
                                $spnd_lnk = '/'.$spnd_action.'/'.$data[$key]['TYPE'].'/?job='.$data[$key]['LINK'].'&user='.$data[$key]['USER'];
                                $cnfrm = 'SUSPEND_CRON_CONFIRMATION';
                            }
                            if ($data[$key]['KEY'] == 'DATABASE') {
                                $spnd_lnk = '/'.$spnd_action.'/'.$data[$key]['TYPE'].'/?database='.$data[$key]['RESULT'].'&user='.$data[$key]['USER'];
                                $cnfrm = 'SUSPEND_DATABASE_CONFIRMATION';
                            }
                            if (($data[$key]['KEY'] != 'RECORD') && ($data[$key]['KEY'] != 'ACCOUNT') && ($data[$key]['KEY'] != 'JOB') && ($data[$key]['KEY'] != 'DATABASE') ) {
                                $spnd_lnk = '/'.$spnd_action.'/'.$data[$key]['TYPE'].'/?'.strtolower($data[$key]['KEY']).'='.$data[$key]['RESULT'].'&user='.$data[$key]['USER'];
                                $cnfrm = 'SUSPEND_DOMAIN_CONFIRMATION';
                            }
                        ?> 
                        <a id="<?php echo $spnd_action ?>_link_<?php echo $i ?>" class="do_<?php echo $spnd_action ?>">
                            <span class="data-controls do_<?php echo $spnd_action ?>">
                                <img src="/images/suspend.png" width="7px" height="8px">
                                <?php echo __($spnd_action); ?> 
                                <input type="hidden" name="<?php echo $spnd_action ?>_url" value="<?php echo $spnd_lnk ?>" />
                                <div id="<?php echo $spnd_action ?>_dialog_<?php echo $i ?>" class="confirmation-text-suspention hidden" title="<?php print __('Confirmation');?>">
                                    <p class="confirmation"><?php print __($cnfrm,$data[$key]['RESULT']);?></p>
                                </div>
                            </span>
                        </a>

                        <?php
                            if ($data[$key]['KEY'] == 'RECORD') {
                                $edit_lnk = '/edit/'.$data[$key]['TYPE'].'/?domain='.$data[$key]['PARENT'].'&record_id='.$data[$key]['LINK'].'&user='.$data[$key]['USER'];
                            }
                            if ($data[$key]['KEY'] == 'ACCOUNT') {
                                $edit_lnk = '/edit/'.$data[$key]['TYPE'].'/?domain='.$data[$key]['PARENT'].'&account='.$data[$key]['LINK'].'&user='.$data[$key]['USER'];
                            }
                            if ($data[$key]['KEY'] == 'JOB') {
                                $edit_lnk = '/edit/'.$data[$key]['TYPE'].'/?job='.$data[$key]['LINK'].'&user='.$data[$key]['USER'];
                            }
                            if ($data[$key]['KEY'] == 'DATABASE') {
                                $edit_lnk = '/edit/'.$data[$key]['TYPE'].'/?database='.$data[$key]['RESULT'].'&user='.$data[$key]['USER'];
                            }
                            if (($data[$key]['KEY'] != 'RECORD') && ($data[$key]['KEY'] != 'ACCOUNT') && ($data[$key]['KEY'] != 'JOB') && ($data[$key]['KEY'] != 'DATABASE') ) {
                                $edit_lnk = '/edit/'.$data[$key]['TYPE'].'/?'.strtolower($data[$key]['KEY']).'='.$data[$key]['RESULT'].'&user='.$data[$key]['USER'];
                            }
                        ?> 
                        <a href="<?php echo $edit_lnk; ?>">
                            <span class="data-controls">
                                <img src="/images/edit.png" width="8px" height="8px">
                                <?php print __('edit'); ?> 
                            </span>
                        </a>

                        <?php
                            if ($data[$key]['USER'] != $user) {
                        ?> 
                        <a href="/login/?loginas=<?php echo $data[$key]['USER'] ?>">
                            <span class="data-controls">
                                <img src="/images/login-as.png" width="8px" height="8px">
                                <?php print __('login as'). ' ' . $data[$key]['USER'];?> 
                            </span>
                        </a>
                        <?php
                            }
                        ?> 

                        <table class="data-col2">
                            <tr><td colspan=3 class="domain"><b><?php echo $data[$key]['RESULT'] ?></b> <a class="aliases"><?php echo str_replace(',', ', ', $data[$key]['ALIAS']) ?></a></td></tr>
                            <tr>
                                <td style="vertical-align:top;" width="239px">
                                    <table>
                                        <tr>
                                            <td class="counter-value">
                                                <?php echo $object ?> 
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td style="vertical-align:top;" width="238px">
                                    <table>
                                        <tr>
                                            <td class="counter-name">
                                                <?php print __('Owner');?>:
                                            </td>
                                            <td class="counter-value">
                                                <?php echo $data[$key]['USER'] ?> 
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td style="vertical-align:top;">
                                    <table >
                                        <tr>
                                            <td class="counter-name">
                                                <?php print __('Status');?>:
                                            </td>
                                            <td class="counter-value">
                                                <?php echo __($status); ?> 
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <?php
                    }
                ?> 
            </table>
            </form>

            <div class="data-count">
                <?php
                    if ( $i == 1){
                        echo __('1 object');
                    } else {
                        echo __('%s objects',$i);
                    }
                ?> 
            </div>
        </div>
