コード例 #1
0
ファイル: settings.php プロジェクト: hxii/Application-Yaga
<?php

if (!defined('APPLICATION')) {
    exit;
}
/* Copyright 2013 Zachary Doll */
$PhotoString = '';
$DelButton = '';
$Photo = C('Yaga.Ranks.Photo', FALSE);
if ($Photo) {
    $PhotoString = Img($Photo);
    $DelButton = Anchor(T('Delete Photo'), CombinePaths(array('rank/deletephoto', Gdn::Session()->TransientKey())), 'SmallButton Danger PopConfirm');
}
$AgeArray = AgeArray();
echo Wrap($this->Title(), 'h1');
echo Wrap($PhotoString . $this->Form->Open(array('enctype' => 'multipart/form-data', 'class' => 'Rank')) . $this->Form->Errors() . Wrap(Wrap($this->Form->Label('Photo', 'PhotoUpload') . Wrap(T('Yaga.Rank.Photo.Desc'), 'div', array('class' => 'Info')) . $DelButton . $this->Form->Input('PhotoUpload', 'file') . $this->Form->Button('Save', array('class' => 'SmallButton')), 'li'), 'ul') . $this->Form->Close('', ' '), 'div', array('class' => 'Aside'));
echo Wrap(Wrap(T('Yaga.Ranks.Desc'), 'p') . Wrap(T('Yaga.Ranks.Settings.Desc'), 'p') . Wrap(Anchor(T('Yaga.Rank.Add'), 'rank/add', array('class' => 'SmallButton')), 'p'), 'div', array('class' => 'Wrap'));
?>
<table id="Ranks" class="Sortable AltRows">
  <thead>
    <tr>
      <th><?php 
echo T('Name');
?>
</th>
      <th><?php 
echo T('Description');
?>
</th>
      <th><?php 
echo T('Yaga.Ranks.PointsReq');
コード例 #2
0
ファイル: edit.php プロジェクト: hxii/Application-Yaga
  <li>
    <?php 
echo $this->Form->Label('Yaga.Ranks.PointsReq', 'PointReq');
echo $this->Form->TextBox('PointReq');
?>
  </li>
  <li>
    <?php 
echo $this->Form->Label('Yaga.Ranks.PostsReq', 'PostReq');
echo $this->Form->TextBox('PostReq');
?>
  </li>
  <li>
    <?php 
echo $this->Form->Label('Yaga.Ranks.AgeReq', 'AgeReq');
echo $this->Form->Dropdown('AgeReq', AgeArray());
?>
  </li>
  <li>
    <?php 
echo $this->Form->Label('Automatically Award', 'Enabled');
echo $this->Form->CheckBox('Enabled');
?>
  </li>
</ul>
<?php 
echo Wrap(T('Yaga.Perks'), 'h3');
?>
<ul>
  <?php 
// Save the Prefix for later