Файл: adultscript-2.0.3-pro/files/admin/templates/default/link_edit.tpl.php
Строк: 145
<?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('link_menu'); ?>
<div class="content clearfix">
<?php echo $this->fetch('link_manage_menu'); ?>
<?php if ($this->link): ?>
<form name="link-add-form" id="link-add-form" method="post" action="<?php echo ADMIN_URL; ?>/index.php?q=link/edit&id=<?php echo $this->link['link_id']; ?>">
<fieldset>
<legend>Link Properties</legend>
<div class="required">
<label for="title">Title</label>
<input name="title" type="text" id="title" class="mega" value="<?php echo e($this->link['title']); ?>" />
</div>
<div class="required">
<label for="description">Description</label>
<textarea name="description" id="description" class="mega" rows="2"><?php echo e($this->link['description']); ?></textarea>
</div>
<div class="required">
<label for="url">URL</label>
<input name="url" type="text" id="url" class="mega" value="<?php echo e($this->link['url']); ?>" />
</div>
<div class="required">
<label for="name">Webmaster Name</label>
<input name="name" type="text" id="name" class="mega" value="<?php echo e($this->link['name']); ?>" />
</div>
<div class="required">
<label for="email">Webmaster Email</label>
<input name="email" type="text" id="email" class="mega" value="<?php echo e($this->link['email']); ?>" />
</div>
<div class="required">
<label for="linkback">Linkback URL</label>
<input name="linkback" type="text" id="linkback" class="mega" value="<?php echo e($this->link['linkback']); ?>" />
</div>
<div class="required">
<label for="type">Type</label>
<select name="type" id="type">
<option value="exchange"<?php if ($this->link['type'] == 'exchange'): echo ' selected="selected"'; endif; ?>>Link Exchange</option>
<option value="sponsor"<?php if ($this->link['type'] == 'sponsor'): echo ' selected="selected"'; endif; ?>>Sponsored Link</option>
</select>
</div>
<div class="required">
<label for="widget">Widget Position</label>
<select name="widget" id="widget">
<option value="left"<?php if ($this->link['widget'] == 'left'): echo ' selected="selected"'; endif; ?>>Left</option>
<option value="right"<?php if ($this->link['widget'] == 'right'): echo ' selected="selected"'; endif; ?>>Right</option>
<option value="footer"<?php if ($this->link['widget'] == 'footer'): echo ' selected="selected"'; endif; ?>>Footer</option>
</select>
</div>
<div class="required">
<label for="target">Target</label>
<select name="target" id="target">
<option value="none"<?php if ($this->item['target'] == 'none'): ?> selected="selected"<?php endif; ?>>Same Window or Tab</option>
<option value="self"<?php if ($this->item['target'] == 'top'): ?> selected="selected"<?php endif; ?>>Same Window or Tab (no frames)</option>
<option value="blank"<?php if ($this->item['target'] == 'blank'): ?> selected="selected"<?php endif; ?>>New Window or Tab</option>
</select>
</div>
<div class="optional">
<label for="hardlink">Hardlink</label>
<input name="hardlink" type="radio" id="hardlink" class="radio" value="1"<?php if ($this->link['hardlink'] == '1'): ?> checked="checked"<?php endif; ?> /> Yes
<input name="hardlink" type="radio" class="radio" value="0"<?php if ($this->link['hardlink'] == '0'): ?> checked="checked"<?php endif; ?> /> No
</div>
<div class="optional">
<label for="status">Status</label>
<input name="status" type="radio" id="status" class="radio" value="1"<?php if ($this->link['status'] == '1'): ?> checked="checked"<?php endif; ?> /> Active
<input name="status" type="radio" class="radio" value="0"<?php if ($this->link['status'] == '0'): ?> checked="checked"<?php endif; ?> /> Suspended
</div>
</fieldset>
<div class="submit">
<input name="submit_edit_link" type="submit" id="submit_edit_link" class="button butDef" value=" Update Link " />
</div>
</form>
<?php else: ?>
<div class="none">Invalid link! Are you sure this link exists!?</div>
<?php endif; ?>
</div>
</div>
</div>