[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/styles/prosilver/template/ -> mcp_ban.html (source)

   1  <!-- INCLUDE mcp_header.html -->
   2  
   3  <script type="text/javascript">
   4  // <![CDATA[
   5  
   6      var ban_length = new Array();
   7          ban_length[-1] = '';
   8      <!-- BEGIN ban_length -->
   9          ban_length['{ban_length.BAN_ID}'] = '{ban_length.A_LENGTH}';
  10      <!-- END ban_length -->
  11  
  12      var ban_reason = new Array();
  13          ban_reason[-1] = '';
  14      <!-- BEGIN ban_reason -->
  15          ban_reason['{ban_reason.BAN_ID}'] = '{ban_reason.A_REASON}';
  16      <!-- END ban_reason -->
  17  
  18      var ban_give_reason = new Array();
  19          ban_give_reason[-1] = '';
  20      <!-- BEGIN ban_give_reason -->
  21          ban_give_reason['{ban_give_reason.BAN_ID}'] = '{ban_give_reason.A_REASON}';
  22      <!-- END ban_give_reason -->
  23  
  24  	function display_details(option)
  25      {
  26          document.getElementById('unbangivereason').innerHTML = ban_give_reason[option];
  27          document.getElementById('unbanreason').innerHTML = ban_reason[option];
  28          document.getElementById('unbanlength').innerHTML = ban_length[option];
  29      }
  30  
  31  // ]]>
  32  </script>
  33  
  34  <form id="mcp_ban" method="post" action="{U_ACTION}">
  35  
  36  <h2>{L_TITLE}</h2>
  37  
  38  <div class="panel">
  39      <div class="inner"><span class="corners-top"><span></span></span>
  40  
  41      <h3>{L_TITLE}</h3>
  42      <p>{L_EXPLAIN}</p>
  43  
  44      <fieldset>
  45      <dl>
  46          <dt><label for="ban">{L_BAN_CELL}:</label></dt>
  47          <dd><label for="ban"><textarea name="ban" id="ban" class="inputbox" cols="40" rows="3">{BAN_QUANTIFIER}</textarea></label></dd>
  48          <!-- IF S_USERNAME_BAN --><dd><strong><a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a></strong></dd><!-- ENDIF -->
  49      </dl>
  50      <dl>
  51          <dt><label for="banlength">{L_BAN_LENGTH}:</label></dt>
  52          <dd><label for="banlength"><select name="banlength" id="banlength" onchange="if(this.value==-1){document.getElementById('banlengthother').style.display = 'block';}else{document.getElementById('banlengthother').style.display='none';}">{S_BAN_END_OPTIONS}</select></label></dd>
  53          <dd id="banlengthother" style="display: none;"><label><input type="text" name="banlengthother" class="inputbox" /><br /><span>{L_YEAR_MONTH_DAY}</span></label></dd>
  54      </dl>
  55      <dl>
  56          <dt><label for="banreason">{L_BAN_REASON}:</label></dt>
  57          <dd><input name="banreason" id="banreason" type="text" class="inputbox" maxlength="255" /></dd>
  58      </dl>
  59      <dl>
  60          <dt><label for="bangivereason">{L_BAN_GIVE_REASON}:</label></dt>
  61          <dd><input name="bangivereason" id="bangivereason" type="text" class="inputbox" maxlength="255" /></dd>
  62      </dl>
  63  
  64      <hr />
  65  
  66      <dl>
  67          <dt><label for="banexclude0">{L_BAN_EXCLUDE}:</label><br /><span>{L_BAN_EXCLUDE_EXPLAIN}</span></dt>
  68          <dd>
  69              <label for="banexclude1"><input type="radio" name="banexclude" id="banexclude1" value="1" /> {L_YES}</label> 
  70              <label for="banexclude0"><input type="radio" name="banexclude" id="banexclude0" value="0" checked="checked" /> {L_NO}</label>
  71          </dd>
  72      </dl>
  73      </fieldset>
  74  
  75      <span class="corners-bottom"><span></span></span></div>
  76  </div>
  77  
  78  <fieldset class="submit-buttons">
  79      {S_HIDDEN_FIELDS}<input type="reset" value="{L_RESET}" name="reset" class="button2" />&nbsp; 
  80      <input type="submit" name="bansubmit" value="{L_SUBMIT}" class="button1" />
  81      {S_FORM_TOKEN}
  82  </fieldset>
  83  
  84  <div class="panel">
  85      <div class="inner"><span class="corners-top"><span></span></span>
  86  
  87      <h3>{L_UNBAN_TITLE}</h3>
  88      <p>{L_UNBAN_EXPLAIN}</p>
  89  
  90      <!-- IF S_BANNED_OPTIONS -->
  91          <fieldset>
  92          <dl>
  93              <dt><label for="unban">{L_BAN_CELL}:</label></dt>
  94              <dd><select name="unban[]" id="unban" multiple="multiple" size="5" onchange="if (this.selectedIndex != -1) {display_details(this.options[this.selectedIndex].value);}">{BANNED_OPTIONS}</select></dd>
  95          </dl>
  96          <dl>
  97              <dt>{L_BAN_LENGTH}:</dt>
  98              <dd><strong id="unbanlength"></strong></dd>
  99          </dl>
 100          <dl>
 101              <dt>{L_BAN_REASON}:</dt>
 102              <dd><strong id="unbanreason"></strong></dd>
 103          </dl>
 104          <dl>
 105              <dt>{L_BAN_GIVE_REASON}:</dt>
 106              <dd><strong id="unbangivereason"></strong></dd>
 107          </dl>
 108          </fieldset>
 109  
 110          <span class="corners-bottom"><span></span></span></div>
 111      </div>
 112  
 113      <fieldset class="submit-buttons">
 114          {S_HIDDEN_FIELDS}<input type="reset" value="{L_RESET}" name="reset" class="button2" />&nbsp; 
 115          <input type="submit" name="unbansubmit" value="{L_SUBMIT}" class="button1" />
 116      </fieldset>
 117  
 118      <!-- ELSE -->
 119  
 120          <p><strong>{L_NO_BAN_CELL}</strong></p>
 121  
 122          <span class="corners-bottom"><span></span></span></div>
 123      </div>
 124  
 125      <!-- ENDIF -->
 126  </form>
 127  
 128  <!-- INCLUDE mcp_footer.html -->


Generated: Wed Oct 2 15:03:47 2013 Cross-referenced by PHPXref 0.7.1