コード例 #1
0
        if (Acl::instance()->check(User::instance()->get_role(), null, 'edit')) {
            ?>
							<?php 
            echo form::open('/' . $controller . '/edit', '');
            ?>
							<?php 
            echo form::hidden('form_id', $item->id);
            ?>
							<?php 
            echo form::hidden('controller', $controller);
            ?>
							<?php 
            echo form::hidden('current', Kohana::instance()->uri->string());
            ?>
							<?php 
            echo assets_helper::img_tag('/cache/img/admin/edit_icon.gif', array('alt' => 'Edit', 'name' => 'submit', 'title' => 'Edit this user'), true);
            ?>
							<?php 
            echo form::close();
            ?>
						<?php 
        }
        ?>
					</td>
				</tr>
				<?php 
        $i++;
    }
    ?>
			</table>
			
コード例 #2
0
						<?php 
        echo form::open('auth_admin/view/' . $user->id, '', array('form_id' => $user->id));
        echo assets_helper::img_tag('global/auth_admin/zoom.png', array('title' => 'view'), TRUE);
        echo form::close();
        ?>
						<?php 
        echo form::open('auth_admin/edit', '', array('form_id' => $user->id));
        echo assets_helper::img_tag('global/auth_admin/pencil.png', array('title' => 'edit'), TRUE);
        echo form::close();
        ?>
						<?php 
        if ($user->role != 'superadmin') {
            ?>
							<?php 
            echo form::open('auth_admin/delete', '', array('form_id' => $user->id, 'current' => $_SERVER['REQUEST_URI'], 'controller' => $controller));
            echo assets_helper::img_tag('global/auth_admin/cross.png', array('title' => 'delete'), TRUE);
            echo form::close();
            ?>
						<?php 
        }
        ?>
				</td>
			</tr>
			<?php 
        $i++;
    }
    ?>
		</table>

	<?php 
}
コード例 #3
0
<?php

echo assets_helper::img_tag($row->src, array('id' => $o->form->name . '-' . $o->name, 'name' => $o->form_name . $o->group_id, 'title' => $row->field, 'value' => $row->value, 'class' => $row->class), TRUE);
コード例 #4
0
<div class="admin-item">
	<?php 
if (Acl::instance()->check(User::instance()->get_role(), null, 'add')) {
    ?>
		<div class="flr">
			<?php 
    echo form::open('/' . $controller . '/add?' . $type, '');
    ?>
			<?php 
    echo form::hidden('controller', $controller);
    ?>
			<?php 
    echo form::hidden('current', Kohana::instance()->uri->string() . '?' . $type);
    ?>
			<?php 
    echo assets_helper::img_tag('/cache/img/admin/add_item.gif', array('id' => $controller . '-add-item', 'alt' => 'Add', 'title' => 'Add an item'), true);
    ?>
			<label for="<?php 
    echo $controller;
    ?>
-add-item" class="add-item-label">Add new item</label>
			<?php 
    echo form::close();
    ?>
		</div>
	<?php 
}
?>
	<h3><?php 
echo ucfirst(str_replace('_', ' ', $controller));
?>
コード例 #5
0
            ?>
							<?php 
            echo form::hidden('form_id', $item->id);
            ?>
							<?php 
            echo form::hidden('controller', $controller);
            ?>
							<?php 
            echo form::hidden('current', uri::string());
            ?>
							<?php 
            $sa = array('Publish', 'Archive', 'Suspend');
            $s = $sa[$item->status];
            ?>
							<?php 
            echo assets_helper::img_tag('/cache/img/admin/change_status.gif', array('alt' => 'Status Change', 'name' => 'submit', 'title' => $s . ' item'), true);
            ?>
							<?php 
            echo form::close();
            ?>
						<?php 
        }
        ?>
					</td>
				</tr>
				<?php 
        $i++;
    }
    ?>
				</tbody>
			</table>
コード例 #6
0
    ?>
-form_submit" class="form_submit" />	
		<?php 
}
?>
		<?php 
if (isset($row->cancelsrc)) {
    ?>
			<a href="<?php 
    echo url::base();
    ?>
/<?php 
    echo Kohana::instance()->input->post('current');
    ?>
" style="margin: 0 0 0 1em;"><?php 
    echo assets_helper::img_tag($row->cancelsrc, array('title' => 'Cancel'));
    ?>
</a>
		<?php 
} else {
    ?>
			<a href="<?php 
    echo url::base();
    ?>
/<?php 
    echo Kohana::instance()->input->post('current');
    ?>
" style="margin: 0 0 0 1em;">Cancel</a>
		<?php 
}
?>
コード例 #7
0
                ?>
							<?php 
                echo form::hidden('current', $this->uri->string());
                ?>
							<?php 
                echo assets_helper::img_tag('/cache/img/admin/edit_icon.gif', array('alt' => 'Edit', 'name' => 'submit', 'title' => 'Edit this item'), true);
                ?>
						<?php 
                echo form::close();
                ?>
					<?php 
            }
            ?>
					
					<?php 
            echo assets_helper::img_tag('/cache/img/admin/news-status' . $row->status . '.gif', array('alt' => 'Status: ' . $row->status));
            ?>
				</div>
				<?php 
        }
        ?>
				
				<?php 
        $title = (isset($row->title) and !empty($row->title)) ? $row->title : '';
        ?>
				
				<div class="im">
					<a href="/<?php 
        echo $controller;
        ?>
/original/<?php 
コード例 #8
0
 /**
  * get the js file links
  *
  * @return string
  * @author Andy Bennett
  */
 public function get_js_links()
 {
     return assets_helper::javascript_links($this->jsfiles);
 }
コード例 #9
0
        if (Acl::instance()->check(User::instance()->get_role(), null, 'delete')) {
            ?>
							<?php 
            echo form::open('/' . $controller . '/delete', array('class' => 'formintable'));
            ?>
							<?php 
            echo form::hidden('form_id', $item->id);
            ?>
							<?php 
            echo form::hidden('controller', $controller);
            ?>
							<?php 
            echo form::hidden('current', uri::string());
            ?>
							<?php 
            echo assets_helper::img_tag('/cache/img/admin/delete_item.gif', array('alt' => 'Delete', 'name' => 'submit', 'title' => 'Delete this item'), true);
            ?>
							<?php 
            echo form::close();
            ?>
						<?php 
        }
        ?>
					</td>
				</tr>
				<?php 
        $i++;
    }
    ?>
				</tbody>
			</table>
コード例 #10
0
<div class="admin-item">
	<h3>
		<?php 
if (Acl::instance()->check(User::instance()->get_role(), null, 'add')) {
    ?>
			<div class="flr">
				<?php 
    echo form::open('/' . $controller . '/add', '');
    ?>
				<?php 
    echo form::hidden('controller', $controller);
    ?>
				<?php 
    echo form::hidden('current', Kohana::instance()->uri->string());
    ?>
				<?php 
    echo assets_helper::img_tag('/cache/img/admin/add_item.gif', array('alt' => 'Add', 'title' => 'Add an item'), true);
    ?>
				<?php 
    echo form::close();
    ?>
			</div>
		<?php 
}
?>
		Pages
	</h3>
</div>
<?php 
echo $list;
echo $move;