• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP ninja函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中ninja函数的典型用法代码示例。如果您正苦于以下问题:PHP ninja函数的具体用法?PHP ninja怎么用?PHP ninja使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了ninja函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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">
				&#160;<?php 
echo @ninja('grid.filter', array('state' => array('enabled' => $state->enabled)));
?>
&#160;
			</th>
		</tr>
	</thead>
</table>
开发者ID:ravenlife,项目名称:Ninja-Framework,代码行数:23,代码来源:filter_search_enabled.php


示例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');
开发者ID:ravenlife,项目名称:Ninja-Framework,代码行数:30,代码来源:popup.php


示例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>&#160;</th>
			</tr>
		</thead>
		<?php 
echo @ninja('paginator.tfoot', array('total' => @$total, 'colspan' => 7));
?>
		<tbody class="ranks">
			<?php 
echo @template('default_items');
?>
		</tbody>
	</table>
</form>
开发者ID:ravenlife,项目名称:Ninjaboard,代码行数:31,代码来源:default.php


示例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);
开发者ID:ravenlife,项目名称:Ninjaboard,代码行数:31,代码来源:form.php


示例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>
开发者ID:ravenlife,项目名称:Ninjaboard,代码行数:26,代码来源:form.php


示例6: defined

<?php

defined('KOOWA') or die('Restricted access');
?>

<?php 
echo @ninja('bbcode.parse', array('text' => urldecode(KRequest::get('get.text', 'raw'))));
开发者ID:ravenlife,项目名称:Ninjaboard,代码行数:7,代码来源:preview.php


示例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>
开发者ID:ravenlife,项目名称:Ninjaboard,代码行数:31,代码来源:default.php


示例8:

					<label for="search"><?php 
echo @text('Search:');
?>
</label>
					<?php 
echo @ninja('paginator.search');
?>
					&#160;&#160;
					<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');
?>
					&#160;&#160;
					<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>
开发者ID:ravenlife,项目名称:Ninjaboard,代码行数:31,代码来源:form_filtering.php


示例9: defined

<?php

defined('_JEXEC') or die('Restricted access');
?>
<div class="inner"><?php 
echo @ninja('manifest.changelogs');
?>
</div>
开发者ID:ravenlife,项目名称:Ninja-Framework,代码行数:8,代码来源:changelog.php


示例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>
开发者ID:ravenlife,项目名称:Ninjaboard,代码行数:31,代码来源:form_inner.php


示例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;
开发者ID:ravenlife,项目名称:Ninjaboard,代码行数:31,代码来源:form.php


示例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 
}
开发者ID:ravenlife,项目名称:Ninjaboard,代码行数:31,代码来源:conversation.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;
    ?>
开发者ID:ravenlife,项目名称:Ninjaboard,代码行数:31,代码来源:default.php


示例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;
        }
开发者ID:ravenlife,项目名称:Ninjaboard,代码行数:31,代码来源:default.php


示例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>
开发者ID:ravenlife,项目名称:Ninjaboard,代码行数:30,代码来源:default_profile.php


示例16: array

?>
" maxlength="150" />
			</div>
			<div class="element">	
				<label class="key hasTip" title="<?php 
echo @text("Visibility allows you to setup advanced acl without exposing it to your users. By only showing usergroups that makes sense to them, like 'Moderator', 'Administrator' and 'Banned'.");
?>
"><?php 
echo @text('Visibility');
?>
</label>
				<?php 
/* Needs to use other icons than the default enabled/disabled ones, or better yet should be iPhone style switches */
?>
				<?php 
echo @ninja('select.statelist', array('name' => 'visible', 'id' => 'visible', 'attribs' => array('class' => 'validate-reqchk-byname label:\'visible\''), 'selected' => $usergroup->visible, 'yes' => 'Visible', 'no' => 'Hidden'));
?>
			</div>
		</fieldset>
		<fieldset class="adminform ninja-form">
			<legend><?php 
echo @text('Group permissions');
?>
</legend>
				
			<?php 
echo $permissions->render();
?>
		
		</fieldset>
	</div>
开发者ID:ravenlife,项目名称:Ninjaboard,代码行数:31,代码来源:form.php


示例17: array

			<span class="message-label"><?php 
echo @text('From:');
?>
</span><a href="#"><?php 
echo $message->from;
?>
</a>
		</div>
		<div class="message-header-to">
			<span class="message-label"><?php 
echo @text('To:');
?>
</span><a href="#"><?php 
echo $me->display_name;
?>
</a>
		</div>
		<div class="message-header-date">
			<span class="message-label"><?php 
echo @text('Date:');
?>
</span><?php 
echo @date(array('date' => $message->created_on, 'format' => @text('DATE_FORMAT_LC2')));
?>
		</div>
	</div>
</div>
<div class="message-body"><?php 
echo @ninja('bbcode.parse', array('text' => $message->text));
?>
</div>
开发者ID:ravenlife,项目名称:Ninjaboard,代码行数:31,代码来源:default.php


示例18: array

?>
	<table class="adminlist ninja-list">
		<thead>
			<tr>
				<th width="32px" class="hasHint" title="<?php 
echo @text('Drag here to reorder&hellip;');
?>
"></th>
				<?php 
echo @ninja('grid.count', array('total' => @$total, 'title' => true));
?>
				<th class="grid-check"><?php 
echo @ninja('grid.checkall');
?>
</th>
				<th colspan="2"><?php 
echo @ninja('grid.sort', array('title' => 'Title'));
?>
</th>
			</tr>
		</thead>
		<?php 
echo @ninja('paginator.tfoot', array('total' => @$total, 'display' => 4, 'colspan' => 5, 'ajax' => true));
?>
		<tbody class="sortable">
		<?php 
echo @template('default_items');
?>
		</tbody>
	</table>
</form>
开发者ID:ravenlife,项目名称:Ninjaboard,代码行数:31,代码来源:default.php


示例19: elseif

		<?php 
} elseif (count($images) || count($files)) {
    ?>
			<h5 class="notice attachments-no-access"><?php 
    echo @text("You don't have access to view the attachments in this post.");
    ?>
</h5>
		<?php 
}
?>
		<div style="clear: both; display: block;"></div>
		<!-- .signature.footer still present because of browser cache. Browser cache is solved permanently in Ninjaboard 1.2 -->
		<div class="ninjaboard-post-footer signature footer">
		    <div class="ninjaboard-signature">
			    <?php 
echo @ninja('bbcode.parse', array('text' => @$post->signature));
?>
			</div>
			<?php 
if (@$forum->post_permissions == 3 or @$forum->post_permissions == 2 && @$post->created_by == @$user->id) {
    ?>
			<div class="ninjaboard-buttons actions toolbar">
				<?php 
    echo @edit_post_button($post->id);
    ?>
				<?php 
    if ($topic->first_post_id != $post->id) {
        echo $delete_post_button;
    }
    ?>
			</div>
开发者ID:ravenlife,项目名称:Ninjaboard,代码行数:31,代码来源:default_item_inner.php


示例20:

echo @ninja('grid.checkall');
?>
</th>
				<th><?php 
echo @text('Name');
?>
</th>
				<th><?php 
echo @text('Version');
?>
</th>
				<th><?php 
echo @text('Date');
?>
</th>
				<th><?php 
echo @text('Author');
?>
</th>
			</tr>
		</thead>
		<?php 
echo @ninja('paginator.tfoot', @$total, @$state->offset, @$state->limit, 4, 6);
?>
		<tbody>
			<?php 
echo @template('default_items');
?>
		</tbody>
	</table>
</form>
开发者ID:ravenlife,项目名称:Ninjaboard,代码行数:31,代码来源:default.php



注:本文中的ninja函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP ninja_forms_display_form函数代码示例发布时间:2022-05-15
下一篇:
PHP nimbus_get_option函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap