本文整理匯總了PHP中Dict::word方法的典型用法代碼示例。如果您正苦於以下問題:PHP Dict::word方法的具體用法?PHP Dict::word怎麽用?PHP Dict::word使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Dict
的用法示例。
在下文中一共展示了Dict::word方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: foreach
echo '<tr>';
echo '<td><input type="checkbox" name="ids[' . $row->id . ']"' . ((isset($_GET['ids'][$row->id]) and $_GET['ids'][$row->id] == 'on') ? ' checked="checked"' : '') . '/></td>';
foreach ($columns as $column => $name) {
echo '<td onclick="document.location = \'' . Router::createUrl(array('id' => $row->id)) . '\'">' . $row->{$column} . '</td>';
}
echo '</tr>';
}
?>
</table>
<?php
if ($countAll > 0) {
?>
<a href="javascript:document.getElementById('crud-form').submit()"><?php
echo Dict::word('delete marked');
?>
</a>
|
<?php
}
echo Dict::word('total'), ': ', $countAll, ' ';
?>
<?php
if ($countAll > 0) {
?>
| <?php
echo $pagination;
}
?>
</div>
</form>
示例2:
<form method="post" action="">
<div>
<label for="name"><?php
echo Dict::word('Name');
?>
:</label><br/>
<input type="text" class="wide" value="" name="name"/>
<br/>
<br/>
<textarea name="body" id="static-body" class="static-body">
</textarea>
<script type="text/javascript" src="<?php
echo Router::baseUrl();
?>
public/ckeditor/ckeditor.js"></script>
<script type="text/javascript">
CKEDITOR.replaceAll('static-body');
</script>
<div class="right">
<input type="submit" class="submit" value="<?php
echo Dict::word('Save');
?>
"/>
</div>
</div>
</form>
示例3: str_replace
echo $total_pages;
?>
</a>
<?php
}
?>
<?php
if ($next_page) {
?>
<a href="<?php
echo str_replace('{page}', $next_page, $url);
?>
"><?php
echo Dict::word('next');
?>
»</a>
<?php
} else {
?>
<?php
echo Dict::word('next');
?>
»
<?php
}
?>
</span>