Beispiel #1
0
        <label for="Category_Title">Name (*): </label><a name="title"></a>
        <?php 
    echo FHtml::activeTextField($category, 'Title');
    ?>
    </div>
    <div class="Input">
        <label for="Category_Description">Description: </label>
        <?php 
    echo FHtml::activeTextArea($category, 'Description', array('cols' => 48, 'rows' => 6));
    ?>
    </div>
    
    <div class="Input">
        <label for="Category_Image">Image: </label><a name="title"></a>
        <?php 
    echo FHtml::activeFileField($category, 'Image');
    if (!empty($category->Image)) {
        ?>
			    <div style="padding: 1em 0 0 160px;">
				    <img src="<?php 
        echo BASEURL . '/image.php?thumb=' . $category->Image;
        ?>
" /> &nbsp;
				    <?php 
        echo FHtml::link('Delete', $this->createUrl('deleteImage', array('categoryId' => $category->Id)), array('id' => 'lnkDeleteImage', 'name' => 'lnkDeleteImage'));
        ?>
			    </div>
			    
			    <script type="text/javascript">
			    	$('#lnkDeleteImage').click(function(){
						if (!confirm('Are you sure to delete this image')) {