Файл: adultscript-2.0.3-pro/files/admin/templates/default/photo_category_edit.tpl.php
Строк: 53
<?php defined('_VALID') or die('Restricted Access!'); ?>
<?php echo $this->fetch('errors'); ?>
<?php echo $this->fetch('messages'); ?>
<?php echo $this->fetch('warnings'); ?>
<div id="container" class="clearfix">
<div id="page">
<?php echo $this->fetch('photo_menu'); ?>
<div class="content clearfix">
<?php echo $this->fetch('photo_category_menu'); if ($this->cat): ?>
<form id="photo-category-edit-form" method="post" action="<?php echo ADMIN_URL; ?>/index.php?q=photo/category_edit&id=<?php echo $this->cat['cat_id']; ?>">
<fieldset>
<legend>Category Properties</legend>
<div class="required">
<label for="name">Name</label>
<input name="name" type="text" id="name" class="large" maxlength="99" value="<?php echo e($this->cat['name']); ?>" />
</div>
<div class="required">
<label for="slug">Slug</label>
<input name="slug" type="text" id="slug" class="large" maxlength="99" value="<?php echo e($this->cat['slug']); ?>" />
</div>
<div class="optional">
<label for="current">Current Image</label>
<img src="<?php echo MEDIA_URL; ?>/photos/cat/<?php echo $this->cat['cat_id']; ?>.jpg?<?php echo rand(0, 100); ?>" alt="" />
</div>
<div class="optional">
<label for="image">Image</label>
<input name="image" type="file" id="image" />
</div>
<div class="optional">
<label for="description">Description</label>
<textarea name="description" id="description" class="mega" rows="5"><?php echo e($this->cat['description']); ?></textarea>
</div>
<div class="optional">
<label for="status">Status</label>
<input name="status" type="radio" id="status" class="radio" value="1"<?php if ($this->cat['status'] == '1'): ?> checked="checked"<?php endif; ?> /> Active
<input name="status" type="radio" class="radio" value="0"<?php if ($this->cat['status'] == '0'): ?> checked="checked"<?php endif; ?> /> Suspended
</div>
</fieldset>
<div class="submit">
<input name="submit_edit_category" type="submit" id="submit_edit_category" class="button butDef" value=" Update Category " />
</div>
</form>
<?php else: ?>
<div class="none">Invalid category id! Are you sure this category exists!</div>
<?php endif; ?>
</div>
</div>
</div>