本文整理汇总了PHP中ninja函数的典型用法代码示例。如果您正苦于以下问题:PHP ninja函数的具体用法?PHP ninja怎么用?PHP ninja使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ninja函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defined
<?php
/** $Id: filter_search_enabled.php 770 2010-12-22 13:10:48Z stian $ */
defined('KOOWA') or die('Restricted access');
?>
<table class="adminlist ninja-list">
<thead>
<tr>
<th nowrap="nowrap" style="text-align: left;" width="100%">
<?php
echo @template('admin::com.ninja.view.search.filter_default');
?>
</th>
<th nowrap="nowrap" style="text-align: right" width="0">
 <?php
echo @ninja('grid.filter', array('state' => array('enabled' => $state->enabled)));
?>
 
</th>
</tr>
</thead>
</table>
示例2: array
<style type="text/css">
.current { max-height: 380px; overflow: auto; }
</style>
<?php
echo @ninja('tabs.startpane', array('id' => 'popup', 'options' => array('display' => 1)));
?>
<?php
echo @ninja('tabs.startpanel', array('title' => @text('General Information')));
?>
<?php
echo @template('information');
?>
<?php
echo @ninja('tabs.endpanel');
?>
<?php
/*@helper('tabs.startpanel', @text('Support')) ?>
<?= @template('support') ?>
<?= @helper('tabs.endpanel')*/
?>
<?php
echo @ninja('tabs.startpanel', array('title' => @text('Changelog and Version Information')));
?>
<?php
echo @template('changelog');
?>
<?php
echo @ninja('tabs.endpanel');
echo @ninja('tabs.endpane');
示例3: array
echo @ninja('grid.count', array('total' => @$total, 'title' => true));
?>
<th class="grid-check"><?php
echo @ninja('grid.checkall');
?>
</th>
<th><?php
echo @ninja('grid.sort', array('title' => 'Title'));
?>
</th>
<th><?php
echo @ninja('grid.sort', array('title' => 'Enabled'));
?>
</th>
<th width="1px"><?php
echo @ninja('grid.sort', array('title' => 'Min posts'));
?>
</th>
<th> </th>
</tr>
</thead>
<?php
echo @ninja('paginator.tfoot', array('total' => @$total, 'colspan' => 7));
?>
<tbody class="ranks">
<?php
echo @template('default_items');
?>
</tbody>
</table>
</form>
示例4: array
<label class="key"><?php
echo @text('State');
?>
</label>
<div class="value"><?php
echo @ninja('select.statelist', array('attribs' => array('class' => 'validate-reqchk-byname label:\'state\''), 'selected' => @$rank->enabled));
?>
</div>
</div>
<div class="element">
<label for="rank_file" class="key"><?php
echo @text('Rank Image File');
?>
</label>
<div class="value"><?php
echo @ninja('select.images', array('path' => JPATH_ROOT . '/media/com_ninjaboard/images/rank', 'name' => 'rank_file', 'atrribs' => array('class' => 'value'), 'selected' => @$rank->rank_file, 'vertical' => true));
?>
</div>
</div>
<div class="element">
<?php
echo KFactory::tmp('admin::com.ninja.element.note', array('node' => simplexml_load_string('<param name="hint" type="note" class="note" slide="true" description="Go to the Joomla! media manager, and upload icons here: %s. Create the folders if they don\'t already exist." eval="return JPATH_ROOT.DS.\'images\'.DS.\'com_ninjaboard\'.DS.\'rank\';" show="Show how to upload custom icons." hide="Hide how to upload custom icons." />'), 'value' => '', 'field' => 'note'));
?>
</div>
</div>
<input type="hidden" name="description" value="<?php
echo @escape($rank->description);
?>
"/>
<input type="hidden" name="params" value="<?php
echo @escape($rank->params);
示例5: defined
<?php
defined('KOOWA') or die('Restricted access');
?>
<form action="<?php
echo @route('id=' . @$setting->id);
?>
" method="post" id="<?php
echo @id();
?>
">
<div class="col width-50">
<?php
echo @template('form_details');
?>
<?php
@ninja('behavior.tooltip', array('selector' => '[title].hasTip'));
?>
<?php
echo @template('admin::com.ninja.view.setting.fieldsets');
?>
</div>
</form>
示例6: defined
<?php
defined('KOOWA') or die('Restricted access');
?>
<?php
echo @ninja('bbcode.parse', array('text' => urldecode(KRequest::get('get.text', 'raw'))));
示例7: foreach
?>
<th class="grid-check"><?php
echo @ninja('grid.checkall');
?>
</th>
<th width="100%"><?php
echo @text('Title');
?>
</th>
<?php
foreach ($columns as $column) {
?>
<th><?php
echo @text($column);
?>
</th>
<?php
}
?>
</tr>
</thead>
<?php
echo @ninja('paginator.tfoot', array('total' => @$total, 'colspan' => $colspan, 'display' => 4));
?>
<tbody class="sortable">
<?php
echo @template('default_items');
?>
</tbody>
</table>
</form>
示例8:
<label for="search"><?php
echo @text('Search:');
?>
</label>
<?php
echo @ninja('paginator.search');
?>
  
<input type="hidden" name="option" value="com_ninjaboard" />
<input type="hidden" name="view" value="users" />
<label for="fusergroup"><?php
echo @text('Filter:');
?>
</label>
<?php
echo @ninja('paginator.usergroup');
?>
  
<div class="button2-left" style="float: none; display: inline-block;">
<div class="page" style="float:none;"> <a style="float:none;" href="<?php
echo @route('option=com_ninjaboard&view=users&search=&usergroup=&limit=20&offset=0');
?>
" title="<?php
echo @text('Reset filtering');
?>
"><?php
echo @text('Reset');
?>
</a></div>
</div>
</form>
示例9: defined
<?php
defined('_JEXEC') or die('Restricted access');
?>
<div class="inner"><?php
echo @ninja('manifest.changelogs');
?>
</div>
示例10: isset
</label>
<input type="text" name="subject" id="subject" class="inputbox required value" size="50" value="<?php
echo @escape($post->subject);
?>
" maxlength="100" />
</div>
<div class="element icons">
<label class="key"><?php
echo @text('Topic Icon');
?>
</label>
<?php
$icon = isset($topic->params['customization']['icon']) ? $topic->params['customization']['icon'] : '32__default.png';
?>
<?php
echo @ninja('select.images', array('path' => JPATH_ROOT . '/media/com_ninjaboard/images/topic', 'name' => 'params[customization][icon]', 'attribs' => array('class' => 'value', 'id' => 'params[customization][icon]'), 'selected' => $icon, 'idtag' => false, 'translate' => true, 'vertical' => false, 'script' => false));
?>
</div>
<?php
}
?>
<div class="element wider" style="text-align:center;position:relative">
<textarea name="text" id="text" placeholder="<?php
echo @text('Enter some text');
?>
"><?php
echo @escape($post->text);
?>
</textarea>
<div id="text_preview"></div>
</div>
示例11: defined
<?php
defined('KOOWA') or die('Restricted access');
?>
<?php
@ninja('behavior.tooltip');
$params = KFactory::get('admin::com.ninjaboard.model.settings')->getParams();
?>
<style type="text/css">
.ninja-form .element.avatar {
min-height: 37px;
}
.ninja-form .element .avatar.value {
margin-right: 10px;
}
.ninja-form .element.avatar .avatar.upload,
.ninja-form .element.avatar .avatar.delete {
display: none;
}
.ninja-form .element.avatar .avatar.options {
display: inline-block;
}
.ninja-form .element .avatar.options {
display: none;
}
.ninja-form .element .avatar.options {
display: inline-block;
width: 250px;
position: absolute;
示例12: implode
?>
<div class="message by-<?php
echo $class;
?>
" data-id="<?php
echo $message->id;
?>
" data-conversation_id="<?php
echo $message->conversation_id;
?>
">
<div class="message-from">
<?php
echo implode(', ', (array) $message->conversation_with);
?>
</div>
<div class="message-content">
<div class="message-text"><?php
echo @ninja('bbcode.parse', array('text' => $message->text));
?>
</div>
<div class="message-footer">
<span class="message-date"><?php
echo @ninja('date.html', array('date' => $message->created_on));
?>
</span>
</div>
</div>
</div>
<?php
}
示例13: foreach
echo $remove_selected_button;
?>
</div>
</td>
</tr>
</tfoot>
<tbody class="watches">
<?php
foreach ($watches as $watch) {
?>
<tr class="<?php
echo @ninja('grid.zebra');
?>
">
<td align="center"><?php
echo @ninja('grid.id', array('value' => $watch->id));
?>
</td>
<td style="text-align: center"><img src="<?php
echo $watch->icon;
?>
" title="<?php
echo $watch->type;
?>
" alt="icon" width="16px" /></td>
<td><a href="<?php
echo $watch->link;
?>
"><?php
echo $watch->title;
?>
示例14: foreach
">
<?php
echo @text(KInflector::humanize(KInflector::pluralize($name)));
?>
</option>
<?php
}
?>
</select>
</legend>
<?php
foreach ($this->controllers as $name => $controller) {
?>
<?php
@($actions = KFactory::tmp('admin::com.ninja.helper.access', array('name' => 'com_ninjaboard.permission.' . $name, 'actions' => $controller, 'id' => @ninja('default.formid', $name), 'inputName' => 'access[' . $name . ']', 'inputId' => 'access-' . $name, 'default' => $name == 'default')));
?>
<?php
$actions = array();
?>
<?php
$void = array('access', 'order', 'upload', 'cancel', 'save', 'apply');
?>
<?php
foreach (@$actions->getActions() as $action => $obj) {
?>
<?php
if (in_array($action, $void)) {
continue;
}
示例15: array
echo @template('site::com.ninjaboard.view.person.usergroups', array('usergroups' => $person->usergroups));
}
?>
<ul>
<li>
<strong><?php
echo @text('Posts:');
?>
</strong> <?php
echo $person->posts;
?>
</li>
<li>
<strong><?php
echo @text('Member Since:');
?>
</strong> <?php
echo @ninja('date.html', array('date' => $person->registerDate));
?>
</li>
<li>
<strong><?php
echo @text('Last Logged In:');
?>
</strong> <?php
echo @ninja('date.html', array('date' => $person->lastvisitDate));
?>
</li>
</ul>