当前位置: 首页>>代码示例>>PHP>>正文


PHP ninja函数代码示例

本文整理汇总了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">
				&#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


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