示例#1
0
} else {
    ?>
	<table class="crud">
		<?php 
    foreach ($tables as $table_name => $table_class) {
        ?>
		<tr>
			<th class="<?php 
        echo $table_class;
        ?>
"><?php 
        echo $table_name;
        ?>
</th>
<?php 
        $omissions = Crude\Stencil::get(Crude\Table::get('crud.STENCIL_NAME'), 'table_link_omissions');
        if (!in_array('Wizard', $omissions) and substr($table_name, 0, strlen($TBL_PREFIX)) == $TBL_PREFIX) {
            ?>
			<td class="center"><?php 
            echo Html::anchor(Uri::create('crude/crud/namespace/' . $table_name . '/load'), 'Wizard');
            ?>
</td>
<?php 
        } else {
            ?>
			<td class="center" style="color:silver;">Wizard</td>
<?php 
        }
        if (!in_array('Express', $omissions) and substr($table_name, 0, strlen($TBL_PREFIX)) == $TBL_PREFIX) {
            ?>
			<td class="center"><?php 
示例#2
0
<?php

if (\Request::active()->action == 'finish') {
    ?>
<h3>Files</h3>
<?php 
    foreach ($stencil['data']['files'] as $key => $file) {
        ?>
	<?php 
        $data['file_header'] = Crude\Stencil::file_header($file['output_path'], $TBL_NAME, $STENCIL_NAME);
        ?>

	<?php 
        if (Crude\Stencil::get(Crude\Table::get('crud.STENCIL_NAME'), 'enable_download')) {
            ?>
		<h4>
			<span class="show_hide" onclick="ShowHide('<?php 
            echo $key;
            ?>
', this, '+', '-');">+</span>
			<span class="black_text"><?php 
            echo $file['output_path'];
            ?>
</span>
			<div id="<?php 
            echo $key;
            ?>
" class="code_block">
				<!--span class="select_all" onclick="SelectText('<?php 
            echo $key;
            ?>