Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php echo validation_errors(); ?>
- <div class="form_wrapper margin">
- <form action="<?php echo base_url(); ?>" method="post">
- <h1><?php if(!isset($page['title'])){ ?>
- New paste
- <?php } else { ?>
- <?php echo $page['title']; ?>
- <?php } ?></h1>
- <p class="explain border"><?php if(!isset($page['instructions'])){ ?>
- <?php } else { ?>
- <?php echo $page['instructions']; ?>
- <?php } ?></p>
- <div class="item">
- <textarea id="code" name="code" tabindex="4"><?php if(isset($paste_set)){ echo $paste_set; }?></textarea>
- </div>
- <h1>Tùy chọn</h1>
- <hr/>
- <div class="form_frame_left">
- <div class="form_frame">
- <div class="form_left">Language:</div>
- <div class="form_right"><?php $lang_extra = 'id="lang" class="select" tabindex="3"'; echo form_dropdown('lang', $languages, $lang_set, $lang_extra); ?></div>
- </div>
- <div class="form_frame">
- <div class="form_left">Tự động xóa:</div>
- <div class="form_right">
- <?php
- $expire_extra = 'id="expire" class="select" tabindex="7"';
- $options = array(
- "0" => "keep forever",
- "30" => "30 minutes",
- "60" => "1 hour",
- "360" => "6 hours",
- "720" => "12 hours",
- "1440" => "1 day",
- "10080" => "1 week",
- "40320" => "4 weeks"
- );
- echo form_dropdown('expire', $options, $expire_set, $expire_extra); ?>
- </div>
- </div>
- <div class="form_frame">
- <div class="form_left">Tác giả:</div>
- <div class="form_right">
- <?php $set = array('name' => 'name', 'id' => 'name', 'value' => $name_set, 'maxlength' => '32', 'tabindex' => '1');
- echo form_input($set);?>
- </div>
- </div>
- <div class="form_frame">
- <div class="form_left">Tiêu đề:</div>
- <div class="form_right"><input value="<?php if(isset($title_set)){ echo $title_set; }?>" type="text" id="title" name="title" tabindex="2" maxlength="32" />
- </div>
- </div>
- <div class="form_frame">
- <div class="form_left">Riêng tư:</div>
- <div class="form_right">
- <?php
- $set = array('name' => 'private', 'id' => 'private', 'tabindex' => '6', 'value' => '1', 'checked' => $private_set);
- if ($this->config->item('private_only')){
- $set['checked'] = 1;
- $set['disabled'] = 'disabled';
- }
- echo form_checkbox($set);
- ?>
- </div>
- </div>
- </div>
- <!--
- <div class="item_group">
- <div class="item">
- <label for="snipurl">Create Shorturl
- <span class="instruction">Create a shorter url that redirects to your paste?</span>
- </label>
- <div class="text_beside">
- <?php
- $set = array('name' => 'snipurl', 'id' => 'snipurl', 'value' => '1', 'tabindex' => '5', 'checked' => $snipurl_set);
- echo form_checkbox($set);
- ?>
- </div>
- </div>
- </div>
- -->
- <?php if($reply){ ?>
- <input type="hidden" value="<?php echo $reply; ?>" name="reply" />
- <?php } ?>
- <?php if($this->config->item('enable_captcha')){ ?>
- <div class="item_group">
- <div class="item item_captcha">
- <label for="captcha">Spam Protection
- <span class="instruction">Type in the characters displayed in the picture.</span>
- </label>
- <img class="captcha" src="<?php echo site_url('view/captcha'); ?>?<?php echo date('U', mktime()); ?>" alt="captcha" width="110" height="40" />
- <input value="<?php if(isset($captcha_set)){ echo $captcha_set; }?>" type="text" id="captcha" name="captcha" tabindex="2" maxlength="32" />
- </div>
- </div>
- <?php } ?>
- <?php
- $set = array('name' => 'email', 'hidden' => 'hidden');
- echo form_input($set);
- ?>
- <div><button type="submit" value="submit" name="submit">Submit</button></div>
- <div class="spacer"></div>
- </form>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement