function tag_attr_checked($val) { return tag_attribute('checked', $val); }
<label for="post_rating_questionable">Questionable</label> </td></tr> <tr><td> <input <?php echo tag_attribute('checked', $post->rating == 's'); ?> id="post_rating_safe" name="post[rating]" tabindex="22" type="radio" value="s" /> <label for="post_rating_safe">Safe</label> </td></tr> <tr><th style="text-align:left;"><label class="block" for="post_tags_quick">Tags</label></th></tr> <tr><td> <textarea cols="50"<?php echo tag_attribute('disabled', $post->is('deleted')); ?> id="post_quick_tags" style="width:208px;" name="post[tags]" rows="4" tabindex="10" autocomplete="off"><?php echo $post->tags . ' '; ?> </textarea> </td></tr> <tr><td><input name="commit" tabindex="24" type="submit" value="Save changes" /></td></tr> </table> </form> </div> <?php end_content_for(); ?>
</tr> <tr> <th> <label class="block" for="post_tags">Tags</label> <?php if (User::is('<20')) { ?> <p>Separate tags with spaces (<a href="/help/tags" target="_blank">help</a>)</p> <?php } ?> </th> <td> <textarea cols="50"<?php echo tag_attribute('disabled', $post->is_deleted()); ?> id="post_tags" name="post[tags]" rows="4" tabindex="10" autocomplete="off"><?php echo $post->tags . ' '; ?> </textarea> <?php if ($post->can_be_seen_by()) { ?> <a href="" onclick="RelatedTags.find('tags'); return false;">Related tags</a> | <a href="" onclick="RelatedTags.find('tags', 'artist'); return false;">Related artists</a> | <a href="" onclick="RelatedTags.find('tags', 'char'); return false;">Related characters</a> | <a href="" onclick="RelatedTags.find('tags', 'copyright'); return false;">Related copyrights</a> | <a href="" onclick="RelatedTags.find_artist($F('source')); return false;">Find artist</a> <?php }