Advertisement
bangnokia

Untitled

Nov 8th, 2012
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.87 KB | None | 0 0
  1.  
  2. <?php echo validation_errors(); ?>
  3.  
  4. <div class="form_wrapper margin">
  5.     <form action="<?php echo base_url(); ?>" method="post">
  6.  
  7.         <h1><?php if(!isset($page['title'])){ ?>
  8.             New paste
  9.         <?php } else { ?>
  10.             <?php echo $page['title']; ?>
  11.         <?php } ?></h1>
  12.         <p class="explain border"><?php if(!isset($page['instructions'])){ ?>
  13.         <?php } else { ?>
  14.             <?php echo $page['instructions']; ?>
  15.         <?php } ?></p>                                                     
  16.        
  17.         <div class="item"> 
  18.             <textarea id="code" name="code" tabindex="4"><?php if(isset($paste_set)){ echo $paste_set; }?></textarea>
  19.         </div> 
  20.            
  21.         <h1>Tùy chọn</h1>
  22.         <hr/>
  23.         <div class="form_frame_left">  
  24.             <div class="form_frame">
  25.                 <div class="form_left">Language:</div>
  26.                 <div class="form_right"><?php $lang_extra = 'id="lang" class="select" tabindex="3"'; echo form_dropdown('lang', $languages, $lang_set, $lang_extra); ?></div>
  27.             </div>     
  28.            
  29.             <div class="form_frame">
  30.                 <div class="form_left">Tự động xóa:</div>
  31.                 <div class="form_right">
  32.                 <?php
  33.                     $expire_extra = 'id="expire" class="select" tabindex="7"';
  34.                     $options = array(
  35.                                     "0" => "keep forever",
  36.                                     "30" => "30 minutes",
  37.                                     "60" => "1 hour",
  38.                                     "360" => "6 hours",
  39.                                     "720" => "12 hours",
  40.                                     "1440" => "1 day",
  41.                                     "10080" => "1 week",
  42.                                     "40320" => "4 weeks"
  43.                                 );
  44.                 echo form_dropdown('expire', $options, $expire_set, $expire_extra); ?>
  45.                 </div>
  46.             </div>
  47.            
  48.             <div class="form_frame">
  49.                 <div class="form_left">Tác giả:</div>
  50.                 <div class="form_right">
  51.                 <?php $set = array('name' => 'name', 'id' => 'name', 'value' => $name_set, 'maxlength' => '32', 'tabindex' => '1');
  52.                 echo form_input($set);?>
  53.                 </div>
  54.             </div>
  55.            
  56.             <div class="form_frame">
  57.                 <div class="form_left">Tiêu đề:</div>
  58.                 <div class="form_right"><input value="<?php if(isset($title_set)){ echo $title_set; }?>" type="text" id="title" name="title" tabindex="2" maxlength="32" />
  59.                 </div>
  60.             </div> 
  61.                
  62.             <div class="form_frame">
  63.                 <div class="form_left">Riêng tư:</div>
  64.                 <div class="form_right">
  65.                     <?php
  66.                         $set = array('name' => 'private', 'id' => 'private', 'tabindex' => '6', 'value' => '1', 'checked' => $private_set);
  67.                         if ($this->config->item('private_only')){
  68.                             $set['checked'] = 1;
  69.                             $set['disabled'] = 'disabled';
  70.                         }
  71.                         echo form_checkbox($set);
  72.                     ?>
  73.                 </div>
  74.             </div>
  75.         </div> 
  76.  
  77. <!--
  78.         <div class="item_group">
  79.             <div class="item">
  80.                 <label for="snipurl">Create Shorturl
  81.                     <span class="instruction">Create a shorter url that redirects to your paste?</span>
  82.                 </label>
  83.                 <div class="text_beside">
  84.                     <?php
  85.                         $set = array('name' => 'snipurl', 'id' => 'snipurl', 'value' => '1', 'tabindex' => '5', 'checked' => $snipurl_set);
  86.                         echo form_checkbox($set);
  87.                     ?>
  88.                
  89.                 </div>
  90.             </div>
  91.         </div>
  92. -->
  93.        
  94. <?php if($reply){ ?>
  95.         <input type="hidden" value="<?php echo $reply; ?>" name="reply" />
  96. <?php } ?>
  97.  
  98. <?php if($this->config->item('enable_captcha')){ ?>
  99.         <div class="item_group">
  100.             <div class="item item_captcha">
  101.                 <label for="captcha">Spam Protection
  102.                     <span class="instruction">Type in the characters displayed in the picture.</span>
  103.                 </label>
  104.                 <img class="captcha" src="<?php echo site_url('view/captcha'); ?>?<?php echo date('U', mktime()); ?>" alt="captcha" width="110" height="40" />
  105.                 <input value="<?php if(isset($captcha_set)){ echo $captcha_set; }?>" type="text" id="captcha" name="captcha" tabindex="2" maxlength="32" />
  106.             </div>
  107.         </div>
  108. <?php } ?>
  109.  
  110. <?php
  111.     $set = array('name' => 'email', 'hidden' => 'hidden');
  112.     echo form_input($set);
  113. ?>
  114.  
  115.         <div><button type="submit" value="submit" name="submit">Submit</button></div>
  116.         <div class="spacer"></div>
  117.     </form>
  118. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement