Browse the code

Revision log Information on the revision Clone the sources
Revision 327

 

Show the differences
* Updated fr/codingteam.po
You can get the sources via Subversion.
code

 

Download this file

 

<h1 style="margin-bottom: 20px;"><?=i18n('Notepad');?></h1>
<h2><?=i18n('Add a new entrie');?></h2>
 
<? if (is_string($form_error)): ?>
  <div class="box error"><?=$form_error;?></div>
<? endif; ?>
 
<form action="<?=getURLbyTags($this->page);?>" method="post">
  <p>
    <input type="hidden" name="pid" value="<?=$pid;?>" />
 
    <strong><?=i18n('Snippet title:');?></strong><br />
    <input type="text" style="width:200px;" maxlength="255" name="title" value="<?=$snippet_title;?>" />
    <br /><br />
 
    <strong><?=i18n('Language:');?></strong><br />
    <select name="language" style="width:205px;">
    <? foreach($snippet_language as $lang): ?>
      <option value="<?=$lang['key'];?>" <?=(($lang['sel']) ? 'selected="selected"' : '');?>><?=$lang['val'];?></option>
    <? endforeach; ?>
    </select>
    <br /><br />
 
    <strong><?=i18n('Code:');?></strong><br />
    <textarea name="code" cols="100" rows="20" style="width: 98%;"><?=$snippet_code;?></textarea>
 
    <? if ($is_logged): ?>
      <input type="hidden" name="nickname" value="" />
      <br /><br />
    <? else: ?>
      </p>
      <div style="margin: 20px;width: 280px;padding-left: 15px;" class="border_left">
        <strong><?=i18n('Captcha security:');?></strong><br />
        <?=i18n('In order to check you are not a robot, please answer to that simple question:');?><br />
        <div class="justify"><?=$captcha[0];?> + <?=$captcha[1];?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <input type="text" style="width:40px;" maxlength="255" name="<?=$_SESSION['captcha'];?>" value="" />
          <input type="text" name="captcha_" value="<?=$captcha[2];?>" class="captcha" />
        </div><br />
        <strong><?=i18n('Nickname:');?></strong><br />
        <input type="text" style="width: 98%;" maxlength="255" name="nickname" value="<? if (!empty($form_nickname)): ?><?=$form_nickname;?><? endif; ?>" />
      </div>
      <p>
    <? endif; ?>
 
    <strong><?=i18n('Time available:');?></strong><br />
    <? if ($ask_time): ?>
      <label>
        <input type="radio" name="time" value="0" <?=( (empty($form_time) || (!empty($form_time) && $form_time == 'd')) ? 'checked="checked"' : '');?> />
        <?=i18n('A day');?></label>&nbsp;&nbsp;
 
      <label>
        <input type="radio" name="time" value="1" <?=( (!empty($form_time) && $form_time == 'm') ? 'checked="checked"' : '');?> />
        <?=i18n('A month');?></label>&nbsp;&nbsp;
 
      <label><input type="radio" name="time" value="2" <?=( (!empty($form_time) && $form_time == 'f') ? 'checked="checked"' : '');?> />
        <?=i18n('Forever');?></label>
    <? else: ?>
      <em><?=i18n('Not available when editing.');?></em>
      <input type="hidden" name="time" value="2" />
    <? endif; ?>
 
    <br /><br />
    <input class="submit" style="width: 100px;" type="submit" value="<?=i18n('Paste!');?>" />
  </p>
</form>