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


PHP Html::icon方法代码示例

本文整理汇总了PHP中Html::icon方法的典型用法代码示例。如果您正苦于以下问题:PHP Html::icon方法的具体用法?PHP Html::icon怎么用?PHP Html::icon使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Html的用法示例。


在下文中一共展示了Html::icon方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: renderButton

 /**
  * @inheritdoc
  */
 protected function renderButton($id, $button, $row, $data)
 {
     if (!empty($button['icon'])) {
         if (!isset($button['options']['title'])) {
             $button['options']['title'] = isset($button['label']) ? $button['label'] : $id;
         }
         $button['label'] = Html::icon($button['icon']);
         $button['imageUrl'] = null;
     }
     if ($this->enableTooltips) {
         $button['options']['data-toggle'] = 'tooltip';
     }
     parent::renderButton($id, $button, $row, $data);
 }
开发者ID:intersvyaz,项目名称:yii-bootstrap,代码行数:17,代码来源:ButtonColumn.php

示例2: function

?>

<div class="buttons">
	<input type="hidden" name="insertAndReturn" value="0" id="insertAndReturn" />
	<a href="javascript:void(0);" onclick="$('form').submit();" class="icon button primary">
		<?php 
echo Html::icon('add', 16, false, 'core.insert');
?>
		<span><?php 
echo Yii::t('core', 'insert');
?>
</span>
	</a>
	<a href="javascript:void(0);" onclick="$('#insertAndReturn').attr('value', 1); $('form').submit();" class="icon button">
		<?php 
echo Html::icon('arrow_turn_090', 16, false, 'core.insertAndReturnToThisPage');
?>
		<span><?php 
echo Yii::t('core', 'insertAndReturnToThisPage');
?>
</span>
	</a>
</div>

<script type="text/javascript">
	$('form').ajaxForm({
		success: function(response) {
			AjaxResponse.handle(response);
		}
	});
</script>
开发者ID:cebe,项目名称:chive,代码行数:31,代码来源:insert.php

示例3:

    ?>
				<a href="javascript:void(0)" onclick="schemaList.addSchema()" class="icon button">
					<?php 
    echo Html::icon('add');
    ?>
					<span><?php 
    echo Yii::t('core', 'addSchema');
    ?>
</span>
				</a>
			<?php 
} else {
    ?>
				<span class="icon button">
					<?php 
    echo Html::icon('add', 16, true);
    ?>
					<span><?php 
    echo Yii::t('core', 'addSchema');
    ?>
</span>
				</span>
			<?php 
}
?>
		</div>
	</div>

	<div class="clear"></div>

	<?php 
开发者ID:cebe,项目名称:chive,代码行数:31,代码来源:list.php

示例4: echo

            break;
        }
        ?>
				<tr class="noSwitch">
					<td><?php 
        echo (string) $formatter->formatDateTime(strtotime($entry->published));
        ?>
</td>
					<td><?php 
        echo (string) $entry->title;
        ?>
</td>
					<td>
						<a href="javascript:void(0);" onclick="$(this).parent().parent().next().toggle();">
							<?php 
        echo Html::icon('search', 16, false, 'core.showDetails');
        ?>
						</a>
					</td>
				</tr>
				<tr style="display: none;">
					<td colspan="3">
						<?php 
        echo $entry->content;
        ?>
					</td>
				</tr>
				<?php 
        $i++;
        ?>
			<?php 
开发者ID:helloqingbing,项目名称:MySQL_Bench_Yii1.1.4,代码行数:31,代码来源:index.php

示例5:

			<a href="javascript:void(0)" onclick="schemaTables.runTableOperation('REPAIR')" class="icon button">
					<?php 
echo Html::icon('operation', 16);
?>
				<span><?php 
echo Yii::t('core', 'repair');
?>
</span>
			</a>

		</div>
		<div class="right">
			<a href="javascript:void(0)" class="icon button" onclick="schemaTables.addTable()">
				<?php 
echo Html::icon('add');
?>
				<span><?php 
echo Yii::t('core', 'addTable');
?>
</span>
			</a>
		</div>
	</div>

</div>

<script type="text/javascript">
setTimeout(function() {
	schemaTables.setupDialogs();
}, 500);
开发者ID:helloqingbing,项目名称:MySQL_Bench_Yii1.1.4,代码行数:30,代码来源:tables.php

示例6: foreach

<ul class="tabMenu">
	<?php 
foreach ($items as $item) {
    ?>

		<?php 
    echo CHtml::openTag('li', $item['htmlOptions']);
    ?>
			<?php 
    echo Html::ajaxLink($item['a']['href'], $item['a']['htmlOptions']);
    ?>
				<?php 
    if ($item['icon']) {
        ?>
					<?php 
        echo Html::icon($item['icon']);
        ?>
				<?php 
    }
    ?>
				<span><?php 
    echo $item['label'];
    ?>
</span>
			<?php 
    echo CHtml::closeTag('a');
    ?>
		<?php 
    echo CHtml::closeTag('li');
    ?>
开发者ID:helloqingbing,项目名称:MySQL_Bench_Yii1.1.4,代码行数:30,代码来源:tabMenu.php

示例7: function

}
?>
		</fieldset>
	</div>
	<div class="buttonContainer">
		<a href="javascript:void(0)" onclick="$('#<?php 
echo CHtml::$idPrefix;
?>
').submit()" class="icon button">
			<?php 
echo Html::icon('save');
?>
			<span><?php 
echo Yii::t('core', 'save');
?>
</span>
		</a>
		<a href="javascript:void(0)" onclick="$('#<?php 
echo CHtml::$idPrefix;
?>
').slideUp(500, function() { $(this).parents('tr').remove(); })" class="icon button">
			<?php 
echo Html::icon('delete');
?>
			<span><?php 
echo Yii::t('core', 'cancel');
?>
</span>
		</a>
	</div>
</form>
开发者ID:cebe,项目名称:chive,代码行数:31,代码来源:schemaPrivilegeForm.php

示例8:

echo Yii::t('core', 'cancel');
?>
</span>
		</a>
		<?php 
if ($column->allowNull) {
    ?>
			<?php 
    echo Yii::t('core', 'or');
    ?>
			<a href="javascript:void(0);" onclick="$('#isNull').val(1); $('#form_<?php 
    echo $id;
    ?>
').submit();" class="icon button">
				<?php 
    echo Html::icon('null', 16, false, 'core.null');
    ?>
				<span><?php 
    echo Yii::t('core', 'setNull');
    ?>
</span>
			</a>
		<?php 
}
?>
	</div>

</div>

<?php 
echo CHtml::endForm();
开发者ID:cebe,项目名称:chive,代码行数:31,代码来源:input.php

示例9:

    if ($params->get('show_email_icon')) {
        ?>
		<li class="email-icon">
			<?php 
        echo Html::icon('email', $this->item, $params);
        ?>
		</li>
		<?php 
    }
    ?>
		<?php 
    if ($canEdit) {
        ?>
		<li class="edit-icon">
			<?php 
        echo Html::icon('edit', $this->item, $params);
        ?>
		</li>
		<?php 
    }
    ?>
	</ul>
<?php 
}
?>

<?php 
if (!$params->get('show_intro')) {
    ?>
	<?php 
    echo $this->item->event->afterDisplayTitle;
开发者ID:mined-gatech,项目名称:hubzero-cms,代码行数:31,代码来源:blog_item.php

示例10: submitFormArea

 /**
  * Returns the form icon buttons submit and cancel.
  *
  * @param	bool						include container
  * @param	bool						include submit button
  * @param	bool						include cancel button
  * @return	string
  */
 public static function submitFormArea($container = true, $submit = true, $cancel = true)
 {
     if ($submit) {
         $submitButton = '<a href="javascript:void(0)" onclick="$(\'#' . CHtml::$idPrefix . '\').submit()" class="icon button primary">' . Html::icon('save') . '<span>' . Yii::t('core', 'save') . '</span>' . '</a>' . CHtml::submitButton(Yii::t('core', 'save'), array('style' => 'display: none'));
     } else {
         $submitButton = '';
     }
     if ($cancel) {
         $cancelButton = '<a href="javascript:void(0)" onclick="$(\'#' . CHtml::$idPrefix . '\').slideUp(500, function() { $(this).parents(\'tr\').remove(); })" class="icon button">' . Html::icon('delete') . '<span>' . Yii::t('core', 'cancel') . '</span>' . '</a>';
     } else {
         $cancelButton = '';
     }
     if ($container) {
         return '<div class="buttonContainer">' . $submitButton . $cancelButton . '</div>';
     } else {
         return $submitButton . $cancelButton;
     }
 }
开发者ID:cebe,项目名称:chive,代码行数:26,代码来源:Html.php

示例11: array

?>
				<?php 
echo Html::icon('process');
?>
				<span><?php 
echo Yii::t('core', 'processes');
?>
</span>
			</a>
		</li>
		<li class="nowrap">
			<?php 
echo Html::ajaxLink('information/about', array('class' => 'icon'));
?>
				<?php 
echo Html::icon('info');
?>
				<span><?php 
echo Yii::t('core', 'about');
?>
</span>
			</a>
		</li>
	</ul>
</div>

</div>
</div>
<div class="ui-layout-center" id="content"><?php 
echo $content;
?>
开发者ID:helloqingbing,项目名称:MySQL_Bench_Yii1.1.4,代码行数:31,代码来源:main.php

示例12: array

				<td class="center">
					<?php 
    echo $column->allowNull ? CHtml::checkBox($columnName . '[null]', true) : '';
    ?>
				</td>
				<td>
					<?php 
    $this->widget('InputField', array('row' => $row, 'column' => $column, 'htmlOptions' => array('onfocus' => '$("#' . $columnName . '_null").attr("checked", "").change();')));
    ?>
				</td>
			</tr>
		<?php 
}
?>
	</tbody>
</table>

<div class="buttons">
	<a href="javascript:void(0);" onclick="$('form').submit();" class="icon button">
		<?php 
echo Html::icon('add', 16, false, 'core.insert');
?>
		<span><?php 
echo Yii::t('core', 'insert');
?>
</span>
	</a>
</div>

<?php 
echo CHtml::endForm();
开发者ID:cebe,项目名称:chive,代码行数:31,代码来源:insert.php

示例13:

        ?>

		<?php 
        /*if ($canEdit) : ?>
        			<li class="edit-icon">
        			<?php echo Html::icon('edit', $this->item, $params); ?>
        			</li>
        		<?php endif;*/
        ?>

	<?php 
    } else {
        ?>
		<li>
		<?php 
        echo Html::icon('print_screen', $this->item, $params);
        ?>
		</li>
	<?php 
    }
    ?>
	</ul>
<?php 
}
?>

<?php 
if (!$params->get('show_intro')) {
    echo $this->item->event->afterDisplayTitle;
}
?>
开发者ID:kevinwojo,项目名称:hubzero-cms,代码行数:31,代码来源:default.php

示例14: actionSearch

 public function actionSearch()
 {
     $cmdBuilder = new CDbCommandBuilder(Yii::app()->db->getSchema());
     $criteria = new CDbCriteria();
     $criteria->condition = "TABLE_NAME LIKE :table OR TABLE_SCHEMA LIKE :schema";
     $criteria->params = array(":table" => "%" . Yii::app()->getRequest()->getParam('q') . "%", ":schema" => "%" . Yii::app()->getRequest()->getParam('q') . "%");
     $criteria->order = 'TABLE_SCHEMA, TABLE_NAME';
     $items = array();
     $lastSchemaName = '';
     foreach (Table::model()->findAll($criteria) as $table) {
         if ($table->TABLE_SCHEMA != $lastSchemaName) {
             $items[] = CJSON::encode(array('text' => '<span class="icon schema">' . Html::icon('database') . '<span>' . StringUtil::cutText($table->TABLE_SCHEMA, 30) . '</span></span>', 'target' => Yii::app()->createUrl('schema/' . $table->TABLE_SCHEMA), 'plain' => $table->TABLE_SCHEMA));
         }
         $lastSchemaName = $table->TABLE_SCHEMA;
         $items[] = CJSON::encode(array('text' => '<span class="icon table">' . Html::icon('table') . '<span>' . StringUtil::cutText($table->TABLE_NAME, 30) . '</span></span>', 'target' => Yii::app()->createUrl('schema/' . $table->TABLE_SCHEMA) . '#tables/' . $table->TABLE_NAME . '/browse', 'plain' => $table->TABLE_NAME));
     }
     Yii::app()->end(implode("\n", $items));
 }
开发者ID:cebe,项目名称:chive,代码行数:18,代码来源:SiteController.php

示例15:

    ?>
									</td>
									<td>
										<a href="javascript:void(0)" class="icon">
											<?php 
    echo Html::icon('arrow_move', 16, false, 'core.move');
    ?>
										</a>
									</td>
									<td>
										<a href="javascript:void(0)" onclick="indexForm.removeColumn('<?php 
    echo CHtml::$idPrefix;
    ?>
', this)" class="icon">
											<?php 
    echo Html::icon('delete', 16, false, 'core.remove');
    ?>
										</a>
									</td>
								</tr>
							<?php 
}
?>
						</tbody>
						<tfoot>
							<tr>
								<th colspan="3">
									<?php 
echo CHtml::dropDownList('addColumn', null, $addColumnData);
?>
								</th>
开发者ID:cebe,项目名称:chive,代码行数:31,代码来源:form.php


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