Ejemplo n.º 1
0
              <?php 
                $value = isset($setting[$params['name']]) ? $setting[$params['name']] : '';
                ?>
              <div class='col-sm-3'><?php 
                $this->ui->printFormControl($label, $params, $value);
                ?>
</div>
              <?php 
            }
            ?>
            </div>
          </td>
        </tr>
        <?php 
        }
    }
    ?>
      </table>
    </div>
    <?php 
}
?>
  </div>
  <div class="form-footer">
    <?php 
echo html::hidden('css', $css) . html::hidden('theme', $theme) . html::hidden('template', $template) . html::submitButton();
?>
  </div>
</form>
<?php 
include '../../common/view/footer.modal.html.php';
Ejemplo n.º 2
0
    $disabled = $sonModule->type == 'task' ? '' : 'disabled="true"';
    echo '<span>' . html::input("modules[id{$sonModule->id}]", $sonModule->name, 'class=form-control ' . $disabled) . '</span>';
}
for ($i = 0; $i < TREE::NEW_CHILD_COUNT; $i++) {
    echo '<span>' . html::input("modules[]", '', 'class=form-control') . '</span>';
}
?>
              </td>
            </tr>
            <tr>
              <td></td>
              <td colspan='2'>
                <?php 
echo html::submitButton() . html::backButton();
echo html::hidden('parentModuleID', $currentModuleID);
echo html::hidden('maxOrder', $maxOrder);
?>
      
                <input type='hidden' value='<?php 
echo $currentModuleID;
?>
' name='parentModuleID' />
              </td>
            </tr>
          </table>
        </div>
      </div>
    </form>
  </div>
</div>
<?php 
Ejemplo n.º 3
0
    echo html::a(inlink('page', "mode={$code}"), $modeName);
    ?>
</li>
        <?php 
}
?>
        <li>
          <form method='get'>
            <?php 
echo html::hidden('m', 'stat') . html::hidden('f', 'report');
?>
            <?php 
echo html::hidden('mode', 'fixed');
?>
            <?php 
echo html::hidden('orderBy', 'pv_desc');
?>
            <table class='table table-borderless'>
              <tr>
                <td style='padding:4px'>
                  <?php 
echo html::input('begin', $this->get->begin, "placeholder='{$lang->stat->begin}' class='form-date w-120px'");
?>
 
                  <?php 
echo html::input('end', $this->get->end, "placeholder='{$lang->stat->end}' class='form-date w-120px'");
?>
                  <?php 
echo html::submitButton($lang->stat->view, "btn btn-xs btn-info");
?>
                </td>
Ejemplo n.º 4
0
<div class='child hide'>
  <div class='form-group category'>
    <div class='col-xs-6 col-md-4 col-md-offset-2'><?php 
echo html::input("children[]", '', "class='form-control' placeholder='{$this->lang->category->name}'");
?>
</div>
    <div class='col-xs-6 col-md-4'><?php 
echo html::input("alias[]", '', "class='form-control' placeholder='{$this->lang->category->alias}'");
?>
</div>
    <div class='col-xs-6 col-md-2'>
      <?php 
echo "<i class='icon-move sort-handle'> </i>";
?>
      <?php 
echo html::a('javascript:;', "<i class='icon-plus'></i>", "class='btn btn-link pull-left btn-mini btn-plus'");
?>
      <?php 
echo html::a('javascript:;', "<i class='icon-remove'></i>", "class='btn btn-link pull-left btn-mini btn-remove'");
?>
    </div>
    <?php 
echo html::hidden('mode[]', 'new');
?>
  </div>
</div>
<?php 
js::set('maxID', $maxID);
if (isset($pageJS)) {
    js::execute($pageJS);
}
Ejemplo n.º 5
0
    ?>
'>
          <div class='form-group' id='reply'>
            <?php 
    echo html::textarea('content', '', "rows='6' class='form-control' placeholder='{$lang->reply->content}'");
    ?>
          </div>
          <div class='form-group clearfix captcha-box hide'></div>
          <div class='form-group'><?php 
    echo html::submitButton('', 'btn primary block');
    ?>
</div>
          <?php 
    echo html::hidden('recTotal', $pager->recTotal);
    echo html::hidden('recPerPage', $pager->recPerPage);
    echo html::hidden('pageID', $pager->pageTotal);
    ?>
        </form>
      </div>
    </div>
  </div>
</div>
<script>
$(function()
{
    $.refreshRepliesList = function()
    {
        $('#repliesListWrapper').load(window.location.href + ' #repliesList', function()
        {
            $(window).scrollTop($('#bottomSpace').offset().top);
        });
Ejemplo n.º 6
0
        <td><?php 
        echo html::select("types[{$i}]", $lang->bug->typeList, $type, "class='form-control'");
        ?>
</td>
        <td><?php 
        echo html::select("severities[{$i}]", $lang->bug->severityList, '', "class='form-control'");
        ?>
</td>
        <td><?php 
        echo html::select("oses[{$i}]", $lang->bug->osList, $os, "class='form-control'");
        ?>
</td>
        <td>
          <?php 
        echo html::select("browsers[{$i}]", $lang->bug->browserList, $browser, "class='form-control'");
        echo html::hidden("uploadImage[{$i}]", $fileName);
        ?>
        </td>
      </tr>
      <?php 
        $i++;
        ?>
      <?php 
    }
    ?>
      <?php 
}
?>
      <?php 
$nextStart = $i;
?>
Ejemplo n.º 7
0
    ?>
        <div class='w-p10 f-left'><?php 
    echo '<span>' . html::checkbox('members', array($account => $realname), '') . '</span>';
    ?>
</div>
        <?php 
    if ($i % 8 == 0) {
        echo "<div class='c-both'></div>";
    }
    $i++;
    ?>
        <?php 
}
?>
      </td>
    </tr>
    <tr>
      <th class='rowhead'></th>
      <td class='a-center'>
        <?php 
echo html::submitButton();
echo html::linkButton($lang->goback, $this->createLink('group', 'browse'));
echo html::hidden('foo');
// Just a var, to make sure $_POST is not empty.
?>
      </td>
    </tr>
  </table>
</form>
<?php 
include '../../common/view/footer.html.php';
Ejemplo n.º 8
0
 *
 * @copyright   Copyright 2009-2012 青岛易软天创网络科技有限公司 (QingDao Nature Easy Soft Network Technology Co,LTD www.cnezsoft.com)
 * @license     LGPL (http://www.gnu.org/licenses/lgpl.html)
 * @author      Chunsheng Wang <*****@*****.**>
 * @package     project
 * @version     $Id: manageproducts.html.php 3420 2012-08-28 06:37:10Z wwccss $
 * @link        http://www.zentao.net
 */
include '../../common/view/header.html.php';
?>
<form method='post'>
  <table align='center' class='table-6'> 
    <caption><?php 
echo $lang->project->manageProducts;
?>
</caption>
    <tr>
      <td id='productsBox'><?php 
echo html::checkbox("products", $allProducts, $linkedProducts);
echo html::hidden("post", 'post');
?>
</td>
    </tr>
    <tr><td class='a-center'><?php 
echo html::submitButton();
?>
</td></tr>
  </table>
</form>
<?php 
include '../../common/view/footer.html.php';
echo html::a('', $lang->save, "data-toggle='modal' class='hidden captchaModal'");
?>
</th>
              <td>
               <div id="popup-captcha"></div>  
               <input type="submit" class="btn btn-primary btn" id="popup-submit" value="登录"/>
               <?php 
if (!empty($this->config->site->yangcong)) {
    echo html::a(helper::createLink('yangcong', 'qrcode', "referer=" . helper::safe64Encode($referer)), "<i class='icon icon-qrcode icon-lg'> {$lang->user->yangcongLogin}</i>", "class='btn btn-success pull-right' data-toggle='modal'");
}
?>
              </td>
            </tr>
          </table>
          <?php 
echo html::hidden('referer', $referer);
?>
        </div>
      </div>
    </form>
  </div>
</div>
<?php 
if ($config->debug) {
    js::import($jsRoot . 'jquery/form/min.js');
}
if (isset($pageJS)) {
    js::execute($pageJS);
}
?>
<!-- 引入封装了failback的接口initGeetest -->
Ejemplo n.º 10
0
?>
</td>
            <td><?php 
echo html::a($this->createLink('mail', 'sendmailcode'), $lang->user->getEmailCode, "id='mailSender' class='btn btn-xs'");
?>
</td>
          </tr>
          <tr>
            <th><?php 
echo $lang->user->captcha;
?>
</th>
            <td><?php 
echo html::input('captcha', '', "class='form-control'");
?>
</td>
          </tr>
          <tr>
            <th></th>
            <td><?php 
echo html::submitButton() . html::hidden('referer', $referer);
?>
</td>
          </tr>
        </table>
      </form>
    </div>
  </div>
</div>
<?php 
include TPL_ROOT . 'common/footer.html.php';
Ejemplo n.º 11
0
              <label class='checkbox'><input type='checkbox' name='receiveEmail' value='1' checked /> <?php 
echo $lang->comment->receiveEmail;
?>
</label>
            </div>
          </div>
          <div class='form-group'>
            <label for='content' class='col-sm-1 control-label'><?php 
echo $lang->message->content;
?>
</label>
            <div class='col-sm-11 required'>
              <?php 
echo html::textarea('content', '', "class='form-control' rows='3'");
echo html::hidden('objectType', 'message');
echo html::hidden('objectID', 0);
?>
            </div>
          </div>
          <div class='form-group hiding' id='captchaBox'></div>
          <div class='form-group'>
            <div class='col-sm-1'></div>
            <div class='col-sm-11'><label class='checkbox'><input type='checkbox' name='secret' value='1' /><?php 
echo $lang->message->secret;
?>
</label></div>
          </div>
          <div class='form-group'>
            <div class='col-sm-1'></div>
            <div class='col-sm-11 col-sm-offset-1'>
              <span><?php 
Ejemplo n.º 12
0
echo $lang->project->gantt->task;
?>
</th>
      <th class='w-110px'><?php 
echo $lang->project->gantt->action;
?>
</th>
    </tr>
    </thead>
    <tbody>
    <?php 
for ($i = 1; $i <= 5; $i++) {
    ?>
    <tr>
      <td class='text-center'><?php 
    echo $i . html::hidden("newid[{$i}]", $i);
    ?>
</td>
      <td style='overflow:visible'><?php 
    echo html::select("newpretask[{$i}]", $tasks, '', "class='form-control chosen' onchange='deleteself(this, {$i}, \"new\")'");
    ?>
 </td>
      <td><?php 
    echo html::select("newcondition[{$i}]", $lang->project->gantt->preTaskStatus, '', 'class=form-control');
    ?>
 </td>
      <td style='overflow:visible'><?php 
    echo html::select("newtask[{$i}]", $tasks, '', "class='form-control chosen'");
    ?>
 </td>
      <td><?php 
Ejemplo n.º 13
0
          <td class='w-200px text-center text-middle'>
            <strong class='text-danger'><?php 
        echo $currencySymbol;
        ?>
</strong>
            <strong class='text-danger amountContainer'><?php 
        echo $amount;
        ?>
</strong>
          </td>
          <td class='text-middle text-center'>
            <?php 
        echo html::a(helper::createLink('cart', 'delete', "product={$product->id}"), $lang->delete, "class='cartDeleter'");
        ?>
            <?php 
        echo html::hidden("product[]", $product->id);
        ?>
          </td>
        </tr>
        <?php 
    }
    ?>
      </table>
    </div>
    <div class='panel-footer text-right'>
      <?php 
    printf($lang->order->selectProducts, count($products));
    ?>
      <?php 
    printf($lang->order->totalToPay, $currencySymbol . $total);
    ?>
Ejemplo n.º 14
0
</span></strong></td>
                    </tr>
                    <tr>
                      <th class='small'><?php 
        echo $lang->order->count;
        ?>
</th>
                      <td>
                        <?php 
        echo $product->count;
        ?>
                        <?php 
        echo html::hidden("product[{$product->id}]", $product->id);
        ?>
                        <?php 
        echo html::hidden("count[{$product->id}]", $product->count);
        ?>
                      </td>
                    </tr>
                  </tbody>
                </table>
              </div>
            </div>
          </div>
        <?php 
    }
    ?>
      </div>
      <hr class='space'>
      <div class='alert bg-primary-pale'>
        <?php 
Ejemplo n.º 15
0
</th>
      <th class='w-120px'><?php 
echo $lang->story->closedReason;
?>
</th>
      <th class='w-p30 '> <?php 
echo $lang->story->comment;
?>
</th>
    </tr>
    <?php 
foreach ($editedStories as $story) {
    ?>
    <tr class='a-center'>
      <td><?php 
    echo $story->id . html::hidden("storyIDList[{$story->id}]", $story->id);
    ?>
</td>
      <td class='a-left'><?php 
    echo $story->title;
    ?>
</td>
      <td><?php 
    echo $lang->story->statusList[$story->status];
    ?>
</td>

      <?php 
    if ($story->status != 'closed') {
        ?>
      <td>
Ejemplo n.º 16
0
        <th><?php 
echo $lang->release->desc;
?>
</th>
        <td colspan='2'><?php 
echo html::textarea('desc', htmlspecialchars($release->desc), "rows=10 class='form-control'");
?>
</td>
      </tr>  
      <tr>
        <th><?php 
echo $lang->files;
?>
</th>
        <td colspan='2'><?php 
echo $this->fetch('file', 'buildform', array('fileCount' => 1));
?>
</td>
      </tr>  
      <tr>
        <td></td>
        <td colspan='2'><?php 
echo html::submitButton() . html::backButton() . html::hidden('product', $release->product);
?>
</td>
      </tr>
    </table>
  </form>  
</div>
<?php 
include '../../common/view/footer.html.php';
Ejemplo n.º 17
0
        </tr>
        <tr>
          <th><?php 
echo $lang->article->content;
?>
</th>
          <td colspan='2'><?php 
echo html::textarea('content', '', "rows='20' class='form-control'");
?>
</td>
        </tr>
        <tr>
          <th></th>
          <td colspan='2'>
            <?php 
echo html::submitButton() . html::hidden('type', $type);
?>
 
            <?php 
if ($type != 'blog') {
    echo html::commonButton($lang->article->createDraft, "btn btn-default draft");
}
?>
          </td>
        </tr>
      </table>
    </form>
  </div>
</div>
<?php 
include $app->getModuleRoot() . 'common/view/footer.html.php';
Ejemplo n.º 18
0
    ?>
    <div id='searchbar'>
      <form action='<?php 
    echo helper::createLink('search');
    ?>
' method='get' role='search'>
        <div class='input-group'>
          <?php 
    $keywords = $this->app->getModuleName() == 'search' ? $this->session->serachIngWord : '';
    ?>
          <?php 
    echo html::input('words', $keywords, "class='form-control' placeholder=''");
    ?>
          <?php 
    if ($this->config->requestType == 'GET') {
        echo html::hidden($this->config->moduleVar, 'search') . html::hidden($this->config->methodVar, 'index');
    }
    ?>
          <div class='input-group-btn'>
            <button class='btn btn-default' type='submit'><i class='icon icon-search'></i></button>
          </div>
        </div>
      </form>
    </div>
    <?php 
}
?>
  </header>
  <nav id="blogNav" class="navbar navbar-default" role="navigation">
    <div class='wrapper'>
      <ul class="nav navbar-nav">
Ejemplo n.º 19
0
/>
          <?php 
echo $this->lang->block->titleless;
?>
        <label>
      </td>
      <td class='w-100px'>
        <label>
        <input type='checkbox' name='borderless' value='1' <?php 
if (zget($block, 'borderless') == 1) {
    echo 'checked';
}
?>
/>
          <?php 
echo $this->lang->block->borderless;
?>
        <label>
      </td>
    </tr>
    <tr>
      <td></td>
      <td colspan='2'> <?php 
echo html::submitButton() . html::hidden('page', $layout->page) . html::hidden('region', $layout->region) . html::hidden('block', $block->id);
?>
 </td>
    </tr>
  </table>
</form>
<?php 
include "footer.html.php";
      <tr>
        <th class='w-100px'><?php 
echo $lang->user->account;
?>
</th>
        <td><?php 
echo html::input('account', '', "class='form-control'");
?>
</td>
      </tr>
      <tr>
        <th><?php 
echo $lang->user->password;
?>
</th>
        <td><?php 
echo html::password('password', '', "class='form-control'");
?>
</td>
      </tr>  
      <tr>
        <th></th><td class="text-center"><?php 
echo html::submitButton() . html::hidden('sn', $sn);
?>
</td>
      </tr>
    </table>
  </form>
</div>
<?php 
include '../../common/view/footer.html.php';
Ejemplo n.º 21
0
        <label class='col-md-2 control-label'>分类属性</label>

        <div class="col-md-4">
          <input type="hidden" name="attr_id[]"/>
          <input type="text" name="attr_name[]" class="form-control" placeholder="分类的属性" />
        </div>
        <div class="col-md-2">
          <a href="javascript:;">
            <i class="icon-plus" data-type='attr'></i>
          </a>
        </div>

      </div>

      <div class='form-group' id='edit_submit'>
        <label class='col-md-2'></label>
        <div class='col-md-4'><?php 
echo html::submitButton() . html::hidden('type', $category->type);
?>
</div>
      </div>
      
    </div>
  </div>
  <?php 
if (isset($pageJS)) {
    js::execute($pageJS);
}
?>
</form>
Ejemplo n.º 22
0
?>
</th>
    <td><?php 
echo html::password('password1', '', "class='text-3'") . '<span class="star">*</span>' . $lang->admin->register->lblPasswd;
?>
</td>
  </tr>  
  <tr>
    <th class='rowhead'><?php 
echo $lang->user->password2;
?>
</td>
    <td><?php 
echo html::password('password2', '', "class='text-3'") . '<span class="star">*</span>';
?>
</td>
  </tr> 
  <tr>
    <th>
	  <td colspan="2">
        <?php 
echo html::submitButton($lang->admin->register->submit) . html::hidden('sn', $sn);
echo "<span>" . sprintf($lang->admin->register->bind, html::a(inlink('bind'), $lang->admin->register->click)) . "</span>";
?>
	  </td>
    </th>
  </tr>
</table>
</form>
<?php 
include '../../common/view/footer.html.php';
Ejemplo n.º 23
0
    echo $block->title;
    ?>
</strong></div>
              <div class='panel-body text-center'><?php 
    echo $lang->block->textExample;
    ?>
</div>
            </div>
          </div>
        </div>
        <?php 
}
?>
      </div>
      <div class='form-footer'>
        <?php 
echo html::submitButton() . html::hidden('blockID', $block->id);
?>
        <?php 
echo html::a($this->createLink('guarder', 'validate', "url=&target=modal&account=&type=okFile"), $lang->save, "data-toggle='modal' class='hidden captchaModal'");
?>
</th>
        <?php 
echo html::a($this->session->blockList, $this->lang->goback, "class='btn btn-default btn-cancel'");
?>
      </div>
    </div>
  </div>
</form>
<?php 
include '../../common/view/footer.admin.html.php';
Ejemplo n.º 24
0
      <th class='w-140px'>  <?php 
echo $lang->todo->beginAndEnd;
?>
</th>
      <th class='w-70px'>   <?php 
echo $lang->todo->status;
?>
</th>
    </tr>

    <?php 
foreach ($editedTodos as $todo) {
    ?>
    <tr class='a-center'>
      <td><?php 
    echo $todo->id . html::hidden("todoIDList[{$todo->id}]", $todo->id);
    ?>
</td>
      <td><?php 
    echo html::input("dates[{$todo->id}]", $todo->date, "class='text-2 date'");
    ?>
</td>
      <td><?php 
    echo html::select("types[{$todo->id}]", $lang->todo->typeList, $todo->type, "onchange=loadList(this.value,{$todo->id}) class='select-1'");
    ?>
</td>
      <td><?php 
    echo html::select("pris[{$todo->id}]", $lang->todo->priList, $todo->pri, 'class=select-1');
    ?>
</td>
      <td>
Ejemplo n.º 25
0
<?php

echo html::formStart('bestSelldWidg' . $this->post->ID, array('attrs' => 'onsubmit="toeAddToCart(this, \'\', true); return false;"', 'method' => 'POST'));
?>
	<?php 
//echo html::text('qty', array('value' => 1))
?>
	<?php 
echo html::hidden('addQty', array('value' => 1));
?>
	<?php 
echo html::hidden('mod', array('value' => 'user'));
?>
	<?php 
echo html::hidden('action', array('value' => 'addToCart'));
?>
	<?php 
echo html::hidden('pid', array('value' => $this->post->ID));
?>
	<?php 
echo html::hidden('reqType', array('value' => 'ajax'));
?>
	<?php 
echo html::submit('add', array('value' => lang::_('Add')));
?>
	<div class="toeAddToCartMsg"></div>
<?php 
echo html::formEnd();
Ejemplo n.º 26
0
        <label class='col-sm-2 control-label' for='useraccount'><?php 
echo $lang->user->account;
?>
</label>
        <div class='col-sm-9'><?php 
echo html::input('account', '', "class='form-control'");
?>
</div>
      </div>
      <div class='form-group'>
        <label class='col-sm-2 control-label' for='password'><?php 
echo $lang->user->password;
?>
</label>
        <div class='col-sm-9'><?php 
echo html::password('password', '', "class='form-control'");
?>
</div>
      </div>
      <div class='form-group'>
        <label class='col-sm-2 control-label'></label>
        <div class='col-sm-9'><?php 
echo html::submitButton($lang->login, 'btn btn-success') . html::hidden('referer', $referer);
?>
</div>
      </div>
    </form>
  </div>
</div>
<?php 
include TPL_ROOT . 'common/footer.html.php';
Ejemplo n.º 27
0
    echo html::a(inlink('runCase', "runID={$preCase['runID']}&caseID={$preCase['caseID']}&version={$preCase['version']}"), $lang->testtask->pre, '', "id='pre' class='btn'");
}
if (empty($run->case->steps)) {
    echo html::submitButton($lang->testtask->pass, "onclick=\$('#result').val('pass')", 'btn-success');
    echo html::submitButton($lang->testtask->fail, "onclick=\$('#result').val('fail')", 'btn-danger');
} else {
    echo html::submitButton();
}
if ($nextCase) {
    echo html::a(inlink('runCase', "runID={$nextCase['runID']}&caseID={$nextCase['caseID']}&version={$nextCase['version']}"), $lang->testtask->next, '', "id='next' class='btn'");
}
if (!$run->case->steps) {
    echo html::hidden('result', '');
}
echo html::hidden('case', $run->case->id);
echo html::hidden('version', $run->case->currentVersion);
?>
        </td>
      </tr>
    </table>
  </form>
</div>
<div class='main' id='resultsContainer'>
</div>
<script>
$(function()
{
    $('#resultsContainer').load("<?php 
echo $this->createLink('testtask', 'results', "runID=0&caseID={$caseID}&version={$version}");
?>
 #casesResults", function()
Ejemplo n.º 28
0
        <td>
          &nbsp; &nbsp; <?php 
echo html::radio('delta', $lang->productplan->endList, '', "onclick='computeEndDate(this.value)'");
?>
        </td>
      </tr>
      <tr>
        <th><?php 
echo $lang->productplan->desc;
?>
</th>
        <td colspan='2'><?php 
echo html::textarea('desc', '', "rows='10' class='form-control'");
?>
</td>
      </tr>
      <tr>
        <td></td>
        <td colspan='2'>
          <?php 
echo html::submitButton();
echo html::backButton();
echo html::hidden('product', $product->id);
?>
        </td>
      </tr>
    </table>
  </form>
</div>
<?php 
include '../../common/view/footer.html.php';
Ejemplo n.º 29
0
echo html::hidden('f', 'admin');
?>
        <?php 
echo html::hidden('boardID', $boardID);
?>
        <?php 
echo html::hidden('orderBy', $orderBy);
?>
        <?php 
echo html::hidden('recTotal', isset($this->get->recTotal) ? $this->get->recTotal : 0);
?>
        <?php 
echo html::hidden('recPerPage', isset($this->get->recPerPage) ? $this->get->recPerPage : 10);
?>
        <?php 
echo html::hidden('pageID', isset($this->get->pageID) ? $this->get->pageID : 1);
?>
        <div class="input-group">
          <?php 
echo html::input('searchWord', $this->get->searchWord, "class='form-control search-query'");
?>
          <span class="input-group-btn"><?php 
echo html::submitButton($lang->search->common, "btn btn-primary");
?>
</span>
        </div>
      </form>
    </div>
  </div>
  <table class='table table-hover table-striped tablesorter' id='threadList'>
    <?php 
Ejemplo n.º 30
0
 /**
  * Create form entry of one block backend.
  * 
  * @param  string  $template
  * @param  object  $block 
  * @param  mix     $key 
  * @param  int     $grade 1,2
  * @access public
  * @return void
  */
 public function createEntry($template, $block = null, $key, $grade = 1)
 {
     $blockOptions[''] = $this->lang->block->select;
     $blockOptions += $this->getPairs($template);
     $blockID = isset($block->id) ? $block->id : '';
     $type = isset($block->type) ? $block->type : '';
     $grid = isset($block->grid) ? $block->grid : '';
     $entry = "<div class='block-item row' data-block='{$key}' data-id='{$blockID}'>";
     $readonly = !empty($block->children) ? "readonly='readonly'" : '';
     $entry .= "<div class='col col-type'>" . html::select("blocks[{$key}]", $blockOptions, $blockID, "class='form-control block' id='block_{$key}' {$readonly}") . "</div>";
     $entry .= "<div class='col col-grid'><div class='input-group'><span class='input-group-addon'>{$this->lang->block->grid}</span>" . html::select("grid[{$key}]", $this->lang->block->gridOptions, $grid, "class='form-control'") . '</div></div>';
     $titlelessChecked = isset($block->titleless) && $block->titleless ? 'checked' : '';
     $borderlessChecked = isset($block->borderless) && $block->borderless ? 'checked' : '';
     $containerChecked = isset($block->container) && $block->container ? 'checked' : '';
     $entry .= "\n            <div class='text-center col col-style'>\n               <label>\n                 <input type='checkbox' {$titlelessChecked} value='1'><input type='hidden' name='titleless[{$key}]' /><span>{$this->lang->block->titleless}</span>\n               </label>\n              <label>\n                <input type='checkbox' {$borderlessChecked} value='1'><input type='hidden' name='borderless[{$key}]' /><span>{$this->lang->block->borderless}</span>\n              </label>\n            </div>";
     $entry .= '<div class="col col-actions actions">';
     if ($grade == 1) {
         $entry .= html::a('javascript:;', $this->lang->block->add, "class='plus'");
     }
     if ($grade == 2) {
         $entry .= html::a('javascript:;', $this->lang->block->add, "class='plus-child'");
     }
     $entry .= html::a('javascript:;', $this->lang->delete, "class='delete'");
     $entry .= html::a(inlink('edit', "template={$template}&blockID={$blockID}&type={$type}"), $this->lang->edit, "class='edit'");
     if ($grade == 1) {
         $entry .= html::a('javascript:;', $this->lang->block->addChild, "class='btn-add-child'");
     }
     $entry .= '</div>';
     $entry .= "<div class='col col-move'><span class='sort-handle sort-handle-{$grade}'><i class='icon-move'></i> {$this->lang->block->sort}</span></div>";
     if ($grade == 1) {
         $entry .= "<div class='children'>";
         if (!empty($block->children)) {
             foreach ($block->children as $child) {
                 $key++;
                 $entry .= $this->createEntry($template, $child, $key, 2);
             }
         }
         $entry .= '</div>';
     }
     if ($grade == 2) {
         $entry .= html::hidden("parent[{$key}]", '');
     }
     $entry .= "</div>";
     if ($grade == 1) {
         $this->counter = $key;
     }
     return $entry;
 }