Login   Register  
PHP Classes
elePHPant
Icontem

File: addBookmark.tpl.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of barry@nauta.be  >  Bookmarks  >  addBookmark.tpl.php  >  Download  
File: addBookmark.tpl.php
Role: Application script
Content type: text/plain
Description: Adding a bookmarks
Class: Bookmarks
Manage lists of bookmark with Web interface
Author: By
Last change:
Date: 2004-04-27 12:29
Size: 3,064 bytes
 

Contents

Class file image Download
<?php
/**
 * vim: set tabstop=4 :
 * vim: set number :
 *
 * The template file that draws the layout to add a bookmark.
 * 
 * @package be.nauta.booby.plugins.bookmarks.view
 * @author Barry Nauta
 * @copyright Barry Nauta
 * 
 * This file is part of the Booby project.
 * The booby project is located at the following location:
 * http://www.nauta.be/booby/
 *
 * Copyright (c) 2003 - 2004 Barry Nauta
 *
 * The Booby project is released under the General Public License
 * More detailes in the file 'gpl.html' or on the following
 * website: <code>http://www.gnu.org</code> and look for licenses
 *
 * Enjoy :-)
 */
?>
<h2><?php echo $dictionary['add'?>&nbsp;<?php echo $dictionary['bookmark'?></h2>

<form method="POST" action="BookmarkController.php">
    <table width="80%" border="0">
    <?php 
        
if(!empty($parameters['errors'])) 
        { 
            echo (
'<tr><td>'.$icons['warning'].'</td><td>');
            foreach(
$parameters['errors'] as $error
            { 
                echo (
$dictionary[$error].'<br />');
            } 
            echo (
'</td></tr>');
        } 
    
?>
    <tr>
        <td>
            <?php echo $dictionary['title'?>
        </td>
        <td>
            <input type="text" name="name"
            size="40" value="<?php echo $renderObjects->name ?>" />
        </td>
    </tr>

    <!-- Visibility section -->
    <?php 
        
if (true)
        {        
            
// if creating a folder is subject to rights management, put here 
    
?>
    <tr>
        <td>
            &nbsp;
        </td>
        <td>
            <?php echo $dictionary['folder'?>: <input type="radio" name="isParent"
                value="1" <?php echo ($renderObjects->isParent "checked" ""?> /><br />
            <?php echo $dictionary['link'?>: <input type="radio" name="isParent"
                value="0" <?php echo ($renderObjects->isParent "" "checked"?> />
        </td>
    </tr>
    <?php 
        
}
        else
        {
     
?>
        <input type="hidden" name="isParent" value="0" />
    <?php 
        

    
?>
    <tr>
        <td>
            &nbsp;
        </td>
        <td>
            <?php echo $dictionary['item_public'?>: <input type="radio" name="visibility"
                value="public" <?php if($renderObjects->visibility == "public") echo "checked" ?> /><br />
            <?php echo $dictionary['item_private'?>: <input type="radio" name="visibility"
                value="private" <?php if($renderObjects->visibility == "private" || $renderObjects->visibility==null || $renderObjects->visibility=="") echo "checked" ?> />
        </td>
    </tr>
    
    <!-- Locator -->
    <tr>
        <td>
            <?php echo $dictionary['url'?>:
        </td>
        <td> 
            <input type="text" name="locator"
            size="40" value="<?php echo ($renderObjects->locator != "" $renderObjects->locator "http://"?>"/>
        </td>
    </tr>
    <tr>
        <td>
            <?php echo $dictionary['description'?>
        </td>
        <td>
            <textarea name="description"
                cols="80" rows="10"
                ><?php echo $renderObjects->description ?></textarea>
        </td>
    </tr>
    </table>
    <br />
    <input type="hidden" name="action" value="addBookmark" />
    <input type="hidden" name="parentId" value="<?php echo $parentId ?>" >
    <input type="submit" value="<?php echo $dictionary['add'?>" name="addBookmark">
</form>